SPMMP02200_DetailView.xfdl 324 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMP02200" position="absolute 0 0 845 655" titletext="StepDetail 정보" oninit="SPMMP02200_oninit" onload="SPMMP02200_onload" scrollbars="autoboth" onsize="SPMMP02200_onsize">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 512 0 841 25" id="group1" anchor="top right">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_first" taborder="1" text="맨앞으로" class="btn2" enable="false" position="absolute 59 3 121 22" anchor="default" onclick="group1_btn_first_onclick"/>
  11. <Button id="btn_prev" taborder="3" text="이전 페이지" onclick="group1_btn_prev_onclick" class="btn2" enable="false" position="absolute 121 3 199 22" anchor="default"/>
  12. <Button id="btn_next" taborder="4" text="다음 페이지" onclick="group1_btn_next_onclick" class="btn2" enable="false" position="absolute 200 3 278 22" anchor="default"/>
  13. <Button id="btn_last" taborder="5" text="맨뒤로" onclick="group1_btn_last_onclick" class="btn2" enable="false" position="absolute 278 3 329 22" anchor="default"/>
  14. <Button id="btn_excel" taborder="6" text="Excel" onclick="group1_btn_excel_onclick" class="btn7" position="absolute 1 3 59 22" anchor="default"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Static text="4" position="absolute 60 5 75 25" id="caption1" visible="false" onclick="caption1_onclick"/>
  19. <Calendar id="cmb_prcpdd" taborder="2" class="input_essential" visible="false" position="absolute 370 3 470 22" anchor="default"/>
  20. <Button id="cap_day3" taborder="6" onclick="cap_day3_onclick" position="absolute 435 28 635 48" style="background:#8dceffff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" ondblclick="cap_day_ondblclick" anchor="default"/>
  21. <Button id="cap_day4" taborder="7" onclick="cap_day4_onclick" position="absolute 637 28 837 48" style="background:#30a7ffff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" ondblclick="cap_day_ondblclick" anchor="default"/>
  22. <Button id="cap_day1" taborder="4" position="absolute 29 28 229 48" style="background:#e5f4ffff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" onclick="cap_day1_onclick" ondblclick="cap_day_ondblclick" anchor="default"/>
  23. <Button id="cap_day2" taborder="5" position="absolute 232 28 432 48" style="background:#c4e5feff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" ondblclick="cap_day_ondblclick" onclick="cap_day2_onclick" anchor="default"/>
  24. <Button id="cap_drug" taborder="8" position="absolute 0 50 27 170" style="background:#e5f4ffff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" text="투&#13;&#10;&#13;&#10;&#13;&#10;약" onclick="cap_drug_onclick" anchor="default"/>
  25. <Button id="cap_test" taborder="9" text="검&#13;&#10;&#13;&#10;&#13;&#10;사" position="absolute 0 171 27 286" style="background:#c4e5feff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" onclick="cap_test_onclick" anchor="default"/>
  26. <Button id="cap_caredelive" taborder="10" text="간&#13;&#10;호&#13;&#10;전&#13;&#10;달" position="absolute 0 287 27 382" style="background:#8dceffff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" onclick="cap_caredelive_onclick" anchor="default"/>
  27. <Button id="cap_form" taborder="11" text="서&#13;&#10;&#13;&#10;&#13;&#10;식" position="absolute 0 383 27 478" style="background:#8dceffff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" onclick="cap_form_onclick" anchor="default"/>
  28. <Button id="cap_etc" taborder="12" text="기&#13;&#10;&#13;&#10;&#13;&#10;타" onclick="cap_etc_onclick" position="absolute 0 479 27 569" style="background:#30a7ffff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" anchor="default"/>
  29. <Button id="cap_hichart" taborder="17" text="설&#13;&#10;명&#13;&#10;처&#13;&#10;방" position="absolute 0 570 27 653" style="background:#30a7ffff;border:0 none #808080ff ;color:#262626ff;align:center middle;font:Dotum,9;gradation:none 0,0 white 100,100 black;" anchor="default" onclick="cap_hichart_onclick"/>
  30. <Shape id="rct_border" type="rectangle" visible="false" position="absolute 28 49 230 655" style="strokepen:2 solid #ff0000ff;fillbrush:solid transparent true;background:transparent;" anchor="default"/>
  31. <Grid id="grd_hichart1" taborder="22" binddataset="ds_main_hichartlist01" useinputpanel="false" position="absolute 29 570 229 653" anchor="default" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" onlbuttondown="Grid_onlbuttondown" autofittype="col">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="22"/>
  36. <Column size="160"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="24" band="head"/>
  40. <Row size="24"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell/>
  44. <Cell col="1" text="콘텐츠 제목"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell celltype="head"/>
  48. <Cell col="1" style="align:left;" text="bind:prcpnm" tooltiptype="bottom"/>
  49. </Band>
  50. </Format>
  51. </Formats>
  52. </Grid>
  53. <Grid id="grd_form1" taborder="23" binddataset="ds_main_formlist1" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 29 383 229 478" anchor="default">
  54. <Formats>
  55. <Format id="default">
  56. <Columns>
  57. <Column size="22"/>
  58. <Column size="65"/>
  59. <Column size="186"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. </Columns>
  70. <Rows>
  71. <Row size="24" band="head"/>
  72. <Row size="22"/>
  73. </Rows>
  74. <Band id="head">
  75. <Cell/>
  76. <Cell col="1" text="STEP명"/>
  77. <Cell col="2" text="caption1"/>
  78. <Cell col="3" text="caption2"/>
  79. <Cell col="4" text="prtlstat"/>
  80. <Cell col="5"/>
  81. <Cell col="6"/>
  82. <Cell col="7"/>
  83. <Cell col="8"/>
  84. <Cell col="9"/>
  85. <Cell col="10"/>
  86. <Cell col="11"/>
  87. </Band>
  88. <Band id="body">
  89. <Cell celltype="head"/>
  90. <Cell col="1" text="bind:stepnm"/>
  91. <Cell col="2" style="align:left;" text="bind:prcpnm"/>
  92. <Cell col="3" text="bind:formprogflag"/>
  93. <Cell col="4" text="bind:prtlstat"/>
  94. <Cell col="5" text="bind:status"/>
  95. <Cell col="6" text="bind:prcpdd"/>
  96. <Cell col="7" text="bind:times"/>
  97. <Cell col="8" text="bind:stepno"/>
  98. <Cell col="9" text="bind:prtlprcpno"/>
  99. <Cell col="10" text="bind:prcpno"/>
  100. <Cell col="11" text="bind:prcphistno"/>
  101. </Band>
  102. </Format>
  103. </Formats>
  104. </Grid>
  105. <Grid id="grd_caredelive1" taborder="24" binddataset="ds_main_caredelivelist1" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 29 287 229 382" anchor="default">
  106. <Formats>
  107. <Format id="default">
  108. <Columns>
  109. <Column size="22"/>
  110. <Column size="0"/>
  111. <Column size="45"/>
  112. <Column size="205"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. <Column size="0"/>
  119. <Column size="0"/>
  120. <Column size="0"/>
  121. </Columns>
  122. <Rows>
  123. <Row size="24" band="head"/>
  124. <Row size="22"/>
  125. </Rows>
  126. <Band id="head">
  127. <Cell/>
  128. <Cell col="1" text="처방희망일"/>
  129. <Cell col="2" text="종류"/>
  130. <Cell col="3" text="처방명"/>
  131. <Cell col="4" text="prtlstat"/>
  132. <Cell col="5"/>
  133. <Cell col="6"/>
  134. <Cell col="7"/>
  135. <Cell col="8"/>
  136. <Cell col="9"/>
  137. <Cell col="10"/>
  138. <Cell col="11"/>
  139. </Band>
  140. <Band id="body">
  141. <Cell celltype="head"/>
  142. <Cell col="1" text="bind:prcphopedd" mask="####-##-##"/>
  143. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  144. <Cell col="3" displaytype="text" text="bind:prcpnm"/>
  145. <Cell col="4" text="bind:prtlstat"/>
  146. <Cell col="5" text="bind:status"/>
  147. <Cell col="6" text="bind:prcpdd"/>
  148. <Cell col="7" text="bind:times"/>
  149. <Cell col="8" text="bind:stepno"/>
  150. <Cell col="9" text="bind:prtlprcpno"/>
  151. <Cell col="10" text="bind:prcpno"/>
  152. <Cell col="11" text="bind:prcphistno"/>
  153. </Band>
  154. </Format>
  155. </Formats>
  156. </Grid>
  157. <Grid id="grd_test1" taborder="25" binddataset="ds_main_testlist1" useinputpanel="false" selecttype="multirow" extendsizetype="col" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 29 171 229 286" anchor="default">
  158. <Formats>
  159. <Format id="default">
  160. <Columns>
  161. <Column size="22" band="left"/>
  162. <Column size="0" band="left"/>
  163. <Column size="0" band="left"/>
  164. <Column size="35" band="left"/>
  165. <Column size="45" band="left"/>
  166. <Column size="70"/>
  167. <Column size="200"/>
  168. <Column size="70"/>
  169. <Column size="90"/>
  170. <Column size="80"/>
  171. <Column size="40"/>
  172. <Column size="45"/>
  173. <Column size="0"/>
  174. <Column size="0"/>
  175. <Column size="0"/>
  176. <Column size="0"/>
  177. <Column size="0"/>
  178. <Column size="0"/>
  179. <Column size="0"/>
  180. <Column size="0"/>
  181. </Columns>
  182. <Rows>
  183. <Row size="24" band="head"/>
  184. <Row size="22"/>
  185. </Rows>
  186. <Band id="head">
  187. <Cell/>
  188. <Cell col="1"/>
  189. <Cell col="2" text="처방희망일"/>
  190. <Cell col="3" text="상태"/>
  191. <Cell col="4" text="종류"/>
  192. <Cell col="5" text="처방코드"/>
  193. <Cell col="6" text="처방명"/>
  194. <Cell col="7" text="예약일"/>
  195. <Cell col="8" text="검체"/>
  196. <Cell col="9" text="전달"/>
  197. <Cell col="10" colspan="2" text="검사결과"/>
  198. <Cell col="12" text="prtlstat"/>
  199. <Cell col="13"/>
  200. <Cell col="14"/>
  201. <Cell col="15"/>
  202. <Cell col="16"/>
  203. <Cell col="17"/>
  204. <Cell col="18"/>
  205. <Cell col="19"/>
  206. </Band>
  207. <Band id="body">
  208. <Cell celltype="head"/>
  209. <Cell col="1" text="bind:prcpclscd"/>
  210. <Cell col="2" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  211. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpstatcd" combodataset="ds_init_prcpstatcd" combocodecol="cdid" combodatacol="cdnm"/>
  212. <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  213. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  214. <Cell col="6" style="align:left;color:EXPR(( prcphistcd == &quot;E&quot; ? &quot;#c0c0c0&quot; : ( prtlstat == &quot;30&quot; &amp;&amp; prcphistcd == &quot;C&quot; ? #ff0000 : ( prtlstat == &quot;30&quot; &amp;&amp; prtlprcpno ) )));" text="bind:prcpnm"/>
  215. <Cell col="7" displaytype="date" text="bind:rsrvdd" calendardisplaynulltype="none"/>
  216. <Cell col="8" style="align:left;" text="bind:drugmthdspccdnm"/>
  217. <Cell col="9" style="align:left;" text="bind:prcpdelivefact"/>
  218. <Cell col="10" text="bind:testrsltcnts"/>
  219. <Cell col="11" text="bind:testrsltunit"/>
  220. <Cell col="12" text="bind:prtlstat"/>
  221. <Cell col="13" text="bind:status"/>
  222. <Cell col="14" text="bind:prcpdd"/>
  223. <Cell col="15" text="bind:times"/>
  224. <Cell col="16" text="bind:stepno"/>
  225. <Cell col="17" text="bind:prtlprcpno"/>
  226. <Cell col="18" text="bind:prcpno"/>
  227. <Cell col="19" text="bind:prcphistno"/>
  228. </Band>
  229. </Format>
  230. </Formats>
  231. </Grid>
  232. <Grid id="grd_drug1" taborder="26" binddataset="ds_main_druglist1" useinputpanel="false" selecttype="multirow" extendsizetype="col" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 29 50 229 170" anchor="default" visible="true">
  233. <Formats>
  234. <Format id="default">
  235. <Columns>
  236. <Column size="22" band="left"/>
  237. <Column size="0" band="left"/>
  238. <Column size="0" band="left"/>
  239. <Column size="35" band="left"/>
  240. <Column size="45" band="left"/>
  241. <Column size="70"/>
  242. <Column size="130"/>
  243. <Column size="50"/>
  244. <Column size="50"/>
  245. <Column size="35"/>
  246. <Column size="40"/>
  247. <Column size="40"/>
  248. <Column size="36"/>
  249. <Column size="35"/>
  250. <Column size="35"/>
  251. <Column size="31"/>
  252. <Column size="80"/>
  253. <Column size="0"/>
  254. <Column size="0"/>
  255. <Column size="0"/>
  256. <Column size="0"/>
  257. <Column size="0"/>
  258. <Column size="0"/>
  259. <Column size="0"/>
  260. <Column size="0"/>
  261. </Columns>
  262. <Rows>
  263. <Row size="24" band="head"/>
  264. <Row size="22"/>
  265. </Rows>
  266. <Band id="head">
  267. <Cell/>
  268. <Cell col="1"/>
  269. <Cell col="2" text="처방희망일"/>
  270. <Cell col="3" text="상태"/>
  271. <Cell col="4" text="종류"/>
  272. <Cell col="5" text="처방코드"/>
  273. <Cell col="6" text="처방명"/>
  274. <Cell col="7" colspan="3" text="총용량"/>
  275. <Cell col="10" colspan="3" text="수량"/>
  276. <Cell col="13" text="횟수"/>
  277. <Cell col="14" text="일수"/>
  278. <Cell col="15" text="MIX"/>
  279. <Cell col="16" text="용법"/>
  280. <Cell col="17" text="prtlstat"/>
  281. <Cell col="18"/>
  282. <Cell col="19"/>
  283. <Cell col="20"/>
  284. <Cell col="21"/>
  285. <Cell col="22"/>
  286. <Cell col="23"/>
  287. <Cell col="24"/>
  288. </Band>
  289. <Band id="body">
  290. <Cell celltype="head"/>
  291. <Cell col="1" text="bind:prcpclscd"/>
  292. <Cell col="2" text="bind:prcphopedd" mask="####-##-##"/>
  293. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpstatcd" combodataset="ds_init_prcpstatcd" combocodecol="cdid" combodatacol="cdnm"/>
  294. <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  295. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  296. <Cell col="6" style="align:left;" text="bind:prcpnm"/>
  297. <Cell col="7" displaytype="text" text="bind:prcpvol"/>
  298. <Cell col="8" displaytype="text" text="bind:drprcpetc7"/>
  299. <Cell col="9" displaytype="text" text="bind:prcpvolunitnm"/>
  300. <Cell col="10" displaytype="text" text="bind:prcpqty"/>
  301. <Cell col="11" displaytype="text" text="bind:drprcpetc8"/>
  302. <Cell col="12" displaytype="text" text="bind:prcpqtyunitnm"/>
  303. <Cell col="13" displaytype="text" text="bind:prcptims"/>
  304. <Cell col="14" displaytype="text" text="bind:prcpdayno"/>
  305. <Cell col="15" displaytype="text" text="bind:prcpmixno"/>
  306. <Cell col="16" displaytype="text" text="bind:drugmthdspccdnm"/>
  307. <Cell col="17" text="bind:prtlstat"/>
  308. <Cell col="18" text="bind:status"/>
  309. <Cell col="19" text="bind:prcpdd"/>
  310. <Cell col="20" text="bind:times"/>
  311. <Cell col="21" text="bind:stepno"/>
  312. <Cell col="22" text="bind:prtlprcpno"/>
  313. <Cell col="23" text="bind:prcpno"/>
  314. <Cell col="24" text="bind:prcphistno"/>
  315. </Band>
  316. </Format>
  317. </Formats>
  318. </Grid>
  319. <Grid id="grd_hichart2" taborder="27" binddataset="ds_main_hichartlist02" useinputpanel="false" position="absolute 232 570 432 653" anchor="default" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" onlbuttondown="Grid_onlbuttondown" autofittype="col" cellsizebandtype="body" cellsizingtype="none">
  320. <Formats>
  321. <Format id="default">
  322. <Columns>
  323. <Column size="22"/>
  324. <Column size="160"/>
  325. </Columns>
  326. <Rows>
  327. <Row size="24" band="head"/>
  328. <Row size="24"/>
  329. </Rows>
  330. <Band id="head">
  331. <Cell/>
  332. <Cell col="1" text="콘텐츠 제목"/>
  333. </Band>
  334. <Band id="body">
  335. <Cell celltype="head"/>
  336. <Cell col="1" style="align:left;" text="bind:prcpnm"/>
  337. </Band>
  338. </Format>
  339. </Formats>
  340. </Grid>
  341. <Grid id="grd_form2" taborder="29" binddataset="ds_main_formlist2" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 232 383 432 478" anchor="default">
  342. <Formats>
  343. <Format id="default">
  344. <Columns>
  345. <Column size="22"/>
  346. <Column size="65"/>
  347. <Column size="186"/>
  348. <Column size="0"/>
  349. <Column size="0"/>
  350. <Column size="0"/>
  351. <Column size="0"/>
  352. <Column size="0"/>
  353. <Column size="0"/>
  354. <Column size="0"/>
  355. <Column size="0"/>
  356. <Column size="0"/>
  357. </Columns>
  358. <Rows>
  359. <Row size="24" band="head"/>
  360. <Row size="22"/>
  361. </Rows>
  362. <Band id="head">
  363. <Cell/>
  364. <Cell col="1" text="STEP명"/>
  365. <Cell col="2" text="caption1"/>
  366. <Cell col="3" text="caption2"/>
  367. <Cell col="4" text="prtlstat"/>
  368. <Cell col="5"/>
  369. <Cell col="6"/>
  370. <Cell col="7"/>
  371. <Cell col="8"/>
  372. <Cell col="9"/>
  373. <Cell col="10"/>
  374. <Cell col="11"/>
  375. </Band>
  376. <Band id="body">
  377. <Cell celltype="head"/>
  378. <Cell col="1" text="bind:stepnm"/>
  379. <Cell col="2" style="align:left;" text="bind:prcpnm"/>
  380. <Cell col="3" text="bind:formprogflag"/>
  381. <Cell col="4" text="bind:prtlstat"/>
  382. <Cell col="5" text="bind:status"/>
  383. <Cell col="6" text="bind:prcpdd"/>
  384. <Cell col="7" text="bind:times"/>
  385. <Cell col="8" text="bind:stepno"/>
  386. <Cell col="9" text="bind:prtlprcpno"/>
  387. <Cell col="10" text="bind:prcpno"/>
  388. <Cell col="11" text="bind:prcphistno"/>
  389. </Band>
  390. </Format>
  391. </Formats>
  392. </Grid>
  393. <Grid id="grd_caredelive2" taborder="30" binddataset="ds_main_caredelivelist2" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 232 287 432 382" anchor="default">
  394. <Formats>
  395. <Format id="default">
  396. <Columns>
  397. <Column size="22"/>
  398. <Column size="0"/>
  399. <Column size="45"/>
  400. <Column size="205"/>
  401. <Column size="0"/>
  402. <Column size="0"/>
  403. <Column size="0"/>
  404. <Column size="0"/>
  405. <Column size="0"/>
  406. <Column size="0"/>
  407. <Column size="0"/>
  408. <Column size="0"/>
  409. </Columns>
  410. <Rows>
  411. <Row size="24" band="head"/>
  412. <Row size="22"/>
  413. </Rows>
  414. <Band id="head">
  415. <Cell/>
  416. <Cell col="1" text="처방희망일"/>
  417. <Cell col="2" text="종류"/>
  418. <Cell col="3" text="처방명"/>
  419. <Cell col="4" text="prtlstat"/>
  420. <Cell col="5"/>
  421. <Cell col="6"/>
  422. <Cell col="7"/>
  423. <Cell col="8"/>
  424. <Cell col="9"/>
  425. <Cell col="10"/>
  426. <Cell col="11"/>
  427. </Band>
  428. <Band id="body">
  429. <Cell celltype="head"/>
  430. <Cell col="1" text="bind:prcphopedd" mask="####-##-##"/>
  431. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  432. <Cell col="3" displaytype="text" text="bind:prcpnm"/>
  433. <Cell col="4" text="bind:prtlstat"/>
  434. <Cell col="5" text="bind:status"/>
  435. <Cell col="6" text="bind:prcpdd"/>
  436. <Cell col="7" text="bind:times"/>
  437. <Cell col="8" text="bind:stepno"/>
  438. <Cell col="9" text="bind:prtlprcpno"/>
  439. <Cell col="10" text="bind:prcpno"/>
  440. <Cell col="11" text="bind:prcphistno"/>
  441. </Band>
  442. </Format>
  443. </Formats>
  444. </Grid>
  445. <Grid id="grd_test2" taborder="31" binddataset="ds_main_testlist2" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 232 171 432 286" anchor="default">
  446. <Formats>
  447. <Format id="default">
  448. <Columns>
  449. <Column size="22" band="left"/>
  450. <Column size="0" band="left"/>
  451. <Column size="0" band="left"/>
  452. <Column size="35" band="left"/>
  453. <Column size="45" band="left"/>
  454. <Column size="70"/>
  455. <Column size="200"/>
  456. <Column size="70"/>
  457. <Column size="90"/>
  458. <Column size="80"/>
  459. <Column size="40"/>
  460. <Column size="45"/>
  461. <Column size="0"/>
  462. <Column size="0"/>
  463. <Column size="0"/>
  464. <Column size="0"/>
  465. <Column size="0"/>
  466. <Column size="0"/>
  467. <Column size="0"/>
  468. <Column size="0"/>
  469. </Columns>
  470. <Rows>
  471. <Row size="24" band="head"/>
  472. <Row size="22"/>
  473. </Rows>
  474. <Band id="head">
  475. <Cell/>
  476. <Cell col="1"/>
  477. <Cell col="2" text="처방희망일"/>
  478. <Cell col="3" text="상태"/>
  479. <Cell col="4" text="종류"/>
  480. <Cell col="5" text="처방코드"/>
  481. <Cell col="6" text="처방명"/>
  482. <Cell col="7" text="예약일"/>
  483. <Cell col="8" text="검체"/>
  484. <Cell col="9" text="전달"/>
  485. <Cell col="10" colspan="2" text="검사결과"/>
  486. <Cell col="12" text="prtlstat"/>
  487. <Cell col="13"/>
  488. <Cell col="14"/>
  489. <Cell col="15"/>
  490. <Cell col="16"/>
  491. <Cell col="17"/>
  492. <Cell col="18"/>
  493. <Cell col="19"/>
  494. </Band>
  495. <Band id="body">
  496. <Cell celltype="head"/>
  497. <Cell col="1" text="bind:prcpclscd"/>
  498. <Cell col="2" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  499. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpstatcd" combodataset="ds_init_prcpstatcd" combocodecol="cdid" combodatacol="cdnm"/>
  500. <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  501. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  502. <Cell col="6" style="align:left;" text="bind:prcpnm"/>
  503. <Cell col="7" displaytype="date" text="bind:rsrvdd" calendardisplaynulltype="none"/>
  504. <Cell col="8" style="align:left;" text="bind:drugmthdspccdnm"/>
  505. <Cell col="9" style="align:left;" text="bind:prcpdelivefact"/>
  506. <Cell col="10" text="bind:testrsltcnts"/>
  507. <Cell col="11" text="bind:testrsltunit"/>
  508. <Cell col="12" text="bind:prtlstat"/>
  509. <Cell col="13" text="bind:status"/>
  510. <Cell col="14" text="bind:prcpdd"/>
  511. <Cell col="15" text="bind:times"/>
  512. <Cell col="16" text="bind:stepno"/>
  513. <Cell col="17" text="bind:prtlprcpno"/>
  514. <Cell col="18" text="bind:prcpno"/>
  515. <Cell col="19" text="bind:prcphistno"/>
  516. </Band>
  517. </Format>
  518. </Formats>
  519. </Grid>
  520. <Grid id="grd_drug2" taborder="32" binddataset="ds_main_druglist2" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 232 50 432 170" anchor="default" visible="true">
  521. <Formats>
  522. <Format id="default">
  523. <Columns>
  524. <Column size="22" band="left"/>
  525. <Column size="0" band="left"/>
  526. <Column size="0" band="left"/>
  527. <Column size="35" band="left"/>
  528. <Column size="45" band="left"/>
  529. <Column size="70"/>
  530. <Column size="130"/>
  531. <Column size="50"/>
  532. <Column size="50"/>
  533. <Column size="35"/>
  534. <Column size="40"/>
  535. <Column size="40"/>
  536. <Column size="36"/>
  537. <Column size="35"/>
  538. <Column size="35"/>
  539. <Column size="31"/>
  540. <Column size="80"/>
  541. <Column size="0"/>
  542. <Column size="0"/>
  543. <Column size="0"/>
  544. <Column size="0"/>
  545. <Column size="0"/>
  546. <Column size="0"/>
  547. <Column size="0"/>
  548. <Column size="0"/>
  549. </Columns>
  550. <Rows>
  551. <Row size="24" band="head"/>
  552. <Row size="22"/>
  553. </Rows>
  554. <Band id="head">
  555. <Cell/>
  556. <Cell col="1"/>
  557. <Cell col="2" text="처방희망일"/>
  558. <Cell col="3" text="상태"/>
  559. <Cell col="4" text="종류"/>
  560. <Cell col="5" text="처방코드"/>
  561. <Cell col="6" text="처방명"/>
  562. <Cell col="7" colspan="3" text="총용량"/>
  563. <Cell col="10" colspan="3" text="수량"/>
  564. <Cell col="13" text="횟수"/>
  565. <Cell col="14" text="일수"/>
  566. <Cell col="15" text="MIX"/>
  567. <Cell col="16" text="용법"/>
  568. <Cell col="17" text="prtlstat"/>
  569. <Cell col="18"/>
  570. <Cell col="19"/>
  571. <Cell col="20"/>
  572. <Cell col="21"/>
  573. <Cell col="22"/>
  574. <Cell col="23"/>
  575. <Cell col="24"/>
  576. </Band>
  577. <Band id="body">
  578. <Cell celltype="head"/>
  579. <Cell col="1" text="bind:prcpclscd"/>
  580. <Cell col="2" text="bind:prcphopedd" mask="####-##-##"/>
  581. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpstatcd" combodataset="ds_init_prcpstatcd" combocodecol="cdid" combodatacol="cdnm"/>
  582. <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  583. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  584. <Cell col="6" style="align:left;" text="bind:prcpnm"/>
  585. <Cell col="7" displaytype="text" text="bind:prcpvol"/>
  586. <Cell col="8" displaytype="text" text="bind:drprcpetc7"/>
  587. <Cell col="9" displaytype="text" text="bind:prcpvolunitnm"/>
  588. <Cell col="10" displaytype="text" text="bind:prcpqty"/>
  589. <Cell col="11" displaytype="text" text="bind:drprcpetc8"/>
  590. <Cell col="12" displaytype="text" text="bind:prcpqtyunitnm"/>
  591. <Cell col="13" displaytype="text" text="bind:prcptims"/>
  592. <Cell col="14" displaytype="text" text="bind:prcpdayno"/>
  593. <Cell col="15" displaytype="text" text="bind:prcpmixno"/>
  594. <Cell col="16" displaytype="text" style="align:left;" text="bind:drugmthdspccdnm"/>
  595. <Cell col="17" text="bind:prtlstat"/>
  596. <Cell col="18" text="bind:status"/>
  597. <Cell col="19" text="bind:prcpdd"/>
  598. <Cell col="20" text="bind:times"/>
  599. <Cell col="21" text="bind:stepno"/>
  600. <Cell col="22" text="bind:prtlprcpno"/>
  601. <Cell col="23" text="bind:prcpno"/>
  602. <Cell col="24" text="bind:prcphistno"/>
  603. </Band>
  604. </Format>
  605. </Formats>
  606. </Grid>
  607. <Grid id="grd_drug3" taborder="33" binddataset="ds_main_druglist3" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 435 50 635 170" anchor="default" visible="true">
  608. <Formats>
  609. <Format id="default">
  610. <Columns>
  611. <Column size="22" band="left"/>
  612. <Column size="0" band="left"/>
  613. <Column size="0" band="left"/>
  614. <Column size="35" band="left"/>
  615. <Column size="45" band="left"/>
  616. <Column size="70"/>
  617. <Column size="130"/>
  618. <Column size="50"/>
  619. <Column size="50"/>
  620. <Column size="35"/>
  621. <Column size="40"/>
  622. <Column size="40"/>
  623. <Column size="36"/>
  624. <Column size="35"/>
  625. <Column size="35"/>
  626. <Column size="31"/>
  627. <Column size="80"/>
  628. <Column size="0"/>
  629. <Column size="0"/>
  630. <Column size="0"/>
  631. <Column size="0"/>
  632. <Column size="0"/>
  633. <Column size="0"/>
  634. <Column size="0"/>
  635. <Column size="0"/>
  636. </Columns>
  637. <Rows>
  638. <Row size="24" band="head"/>
  639. <Row size="22"/>
  640. </Rows>
  641. <Band id="head">
  642. <Cell/>
  643. <Cell col="1"/>
  644. <Cell col="2" text="처방희망일"/>
  645. <Cell col="3" text="상태"/>
  646. <Cell col="4" text="종류"/>
  647. <Cell col="5" text="처방코드"/>
  648. <Cell col="6" text="처방명"/>
  649. <Cell col="7" colspan="3" text="총용량"/>
  650. <Cell col="10" colspan="3" text="수량"/>
  651. <Cell col="13" text="횟수"/>
  652. <Cell col="14" text="일수"/>
  653. <Cell col="15" text="MIX"/>
  654. <Cell col="16" text="용법"/>
  655. <Cell col="17" text="prtlstat"/>
  656. <Cell col="18"/>
  657. <Cell col="19"/>
  658. <Cell col="20"/>
  659. <Cell col="21"/>
  660. <Cell col="22"/>
  661. <Cell col="23"/>
  662. <Cell col="24"/>
  663. </Band>
  664. <Band id="body">
  665. <Cell celltype="head"/>
  666. <Cell col="1" text="bind:prcpclscd"/>
  667. <Cell col="2" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  668. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpstatcd" combodataset="ds_init_prcpstatcd" combocodecol="cdid" combodatacol="cdnm"/>
  669. <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  670. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  671. <Cell col="6" style="align:left;" text="bind:prcpnm"/>
  672. <Cell col="7" displaytype="text" text="bind:prcpvol"/>
  673. <Cell col="8" displaytype="text" text="bind:drprcpetc7"/>
  674. <Cell col="9" displaytype="text" text="bind:prcpvolunitnm"/>
  675. <Cell col="10" displaytype="text" text="bind:prcpqty"/>
  676. <Cell col="11" displaytype="text" text="bind:drprcpetc8"/>
  677. <Cell col="12" displaytype="text" text="bind:prcpqtyunitnm"/>
  678. <Cell col="13" displaytype="text" text="bind:prcptims"/>
  679. <Cell col="14" displaytype="text" text="bind:prcpdayno"/>
  680. <Cell col="15" displaytype="text" text="bind:prcpmixno"/>
  681. <Cell col="16" displaytype="text" style="align:left;" text="bind:drugmthdspccdnm"/>
  682. <Cell col="17" text="bind:prtlstat"/>
  683. <Cell col="18" text="bind:status"/>
  684. <Cell col="19" text="bind:prcpdd"/>
  685. <Cell col="20" text="bind:times"/>
  686. <Cell col="21" text="bind:stepno"/>
  687. <Cell col="22" text="bind:prtlprcpno"/>
  688. <Cell col="23" text="bind:prcpno"/>
  689. <Cell col="24" text="bind:prcphistno"/>
  690. </Band>
  691. </Format>
  692. </Formats>
  693. </Grid>
  694. <Grid id="grd_test3" taborder="34" binddataset="ds_main_testlist3" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 435 171 635 286" anchor="default">
  695. <Formats>
  696. <Format id="default">
  697. <Columns>
  698. <Column size="22" band="left"/>
  699. <Column size="0" band="left"/>
  700. <Column size="45" band="left"/>
  701. <Column size="45" band="left"/>
  702. <Column size="70"/>
  703. <Column size="200"/>
  704. <Column size="70"/>
  705. <Column size="90"/>
  706. <Column size="80"/>
  707. <Column size="40"/>
  708. <Column size="45"/>
  709. <Column size="0"/>
  710. <Column size="0"/>
  711. <Column size="0"/>
  712. <Column size="0"/>
  713. <Column size="0"/>
  714. <Column size="0"/>
  715. <Column size="0"/>
  716. <Column size="0"/>
  717. </Columns>
  718. <Rows>
  719. <Row size="24" band="head"/>
  720. <Row size="22"/>
  721. </Rows>
  722. <Band id="head">
  723. <Cell/>
  724. <Cell col="1" text="처방희망일"/>
  725. <Cell col="2" text="상태"/>
  726. <Cell col="3" text="종류"/>
  727. <Cell col="4" text="처방코드"/>
  728. <Cell col="5" text="처방명"/>
  729. <Cell col="6" text="예약일"/>
  730. <Cell col="7" text="검체"/>
  731. <Cell col="8" text="전달"/>
  732. <Cell col="9" colspan="2" text="검사결과"/>
  733. <Cell col="11" text="prtlstat"/>
  734. <Cell col="12"/>
  735. <Cell col="13"/>
  736. <Cell col="14"/>
  737. <Cell col="15"/>
  738. <Cell col="16"/>
  739. <Cell col="17"/>
  740. <Cell col="18"/>
  741. </Band>
  742. <Band id="body">
  743. <Cell celltype="head" text="bind:prcpclscd"/>
  744. <Cell col="1" text="bind:prcphopedd" mask="####-##-##"/>
  745. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpstatcd" combodataset="ds_init_prcpstatcd" combocodecol="cdid" combodatacol="cdnm"/>
  746. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  747. <Cell col="4" displaytype="text" text="bind:prcpcd"/>
  748. <Cell col="5" style="align:left;" text="bind:prcpnm"/>
  749. <Cell col="6" displaytype="date" text="bind:rsrvdd" calendardisplaynulltype="none"/>
  750. <Cell col="7" style="align:left;" text="bind:drugmthdspccdnm"/>
  751. <Cell col="8" style="align:left;" text="bind:prcpdelivefact"/>
  752. <Cell col="9" text="bind:testrsltcnts"/>
  753. <Cell col="10" text="bind:testrsltunit"/>
  754. <Cell col="11" text="bind:prtlstat"/>
  755. <Cell col="12" text="bind:status"/>
  756. <Cell col="13" text="bind:prcpdd"/>
  757. <Cell col="14" text="bind:times"/>
  758. <Cell col="15" text="bind:stepno"/>
  759. <Cell col="16" text="bind:prtlprcpno"/>
  760. <Cell col="17" text="bind:prcpno"/>
  761. <Cell col="18" text="bind:prcphistno"/>
  762. </Band>
  763. </Format>
  764. </Formats>
  765. </Grid>
  766. <Grid id="grd_caredelive3" taborder="35" binddataset="ds_main_caredelivelist3" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 435 287 635 382" anchor="default">
  767. <Formats>
  768. <Format id="default">
  769. <Columns>
  770. <Column size="22"/>
  771. <Column size="0"/>
  772. <Column size="45"/>
  773. <Column size="205"/>
  774. <Column size="0"/>
  775. <Column size="0"/>
  776. <Column size="0"/>
  777. <Column size="0"/>
  778. <Column size="0"/>
  779. <Column size="0"/>
  780. <Column size="0"/>
  781. <Column size="0"/>
  782. </Columns>
  783. <Rows>
  784. <Row size="24" band="head"/>
  785. <Row size="22"/>
  786. </Rows>
  787. <Band id="head">
  788. <Cell/>
  789. <Cell col="1" text="처방희망일"/>
  790. <Cell col="2" text="종류"/>
  791. <Cell col="3" text="처방명"/>
  792. <Cell col="4" text="prtlstat"/>
  793. <Cell col="5"/>
  794. <Cell col="6"/>
  795. <Cell col="7"/>
  796. <Cell col="8"/>
  797. <Cell col="9"/>
  798. <Cell col="10"/>
  799. <Cell col="11"/>
  800. </Band>
  801. <Band id="body">
  802. <Cell celltype="head"/>
  803. <Cell col="1" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  804. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  805. <Cell col="3" displaytype="text" text="bind:prcpnm"/>
  806. <Cell col="4" text="bind:prtlstat"/>
  807. <Cell col="5" text="bind:status"/>
  808. <Cell col="6" text="bind:prcpdd"/>
  809. <Cell col="7" text="bind:times"/>
  810. <Cell col="8" text="bind:stepno"/>
  811. <Cell col="9" text="bind:prtlprcpno"/>
  812. <Cell col="10" text="bind:prcpno"/>
  813. <Cell col="11" text="bind:prcphistno"/>
  814. </Band>
  815. </Format>
  816. </Formats>
  817. </Grid>
  818. <Grid id="grd_form3" taborder="36" binddataset="ds_main_formlist3" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 435 383 635 478" anchor="default">
  819. <Formats>
  820. <Format id="default">
  821. <Columns>
  822. <Column size="22"/>
  823. <Column size="65"/>
  824. <Column size="186"/>
  825. <Column size="0"/>
  826. <Column size="0"/>
  827. <Column size="0"/>
  828. <Column size="0"/>
  829. <Column size="0"/>
  830. <Column size="0"/>
  831. <Column size="0"/>
  832. <Column size="0"/>
  833. <Column size="0"/>
  834. </Columns>
  835. <Rows>
  836. <Row size="24" band="head"/>
  837. <Row size="22"/>
  838. </Rows>
  839. <Band id="head">
  840. <Cell/>
  841. <Cell col="1" text="STEP명"/>
  842. <Cell col="2" text="caption1"/>
  843. <Cell col="3" text="caption2"/>
  844. <Cell col="4" text="prtlstat"/>
  845. <Cell col="5"/>
  846. <Cell col="6"/>
  847. <Cell col="7"/>
  848. <Cell col="8"/>
  849. <Cell col="9"/>
  850. <Cell col="10"/>
  851. <Cell col="11"/>
  852. </Band>
  853. <Band id="body">
  854. <Cell celltype="head"/>
  855. <Cell col="1" text="bind:stepnm"/>
  856. <Cell col="2" style="align:left;" text="bind:prcpnm"/>
  857. <Cell col="3" text="bind:formprogflag"/>
  858. <Cell col="4" text="bind:prtlstat"/>
  859. <Cell col="5" text="bind:status"/>
  860. <Cell col="6" text="bind:prcpdd"/>
  861. <Cell col="7" text="bind:times"/>
  862. <Cell col="8" text="bind:stepno"/>
  863. <Cell col="9" text="bind:prtlprcpno"/>
  864. <Cell col="10" text="bind:prcpno"/>
  865. <Cell col="11" text="bind:prcphistno"/>
  866. </Band>
  867. </Format>
  868. </Formats>
  869. </Grid>
  870. <Grid id="grd_hichart3" taborder="38" binddataset="ds_main_hichartlist03" useinputpanel="false" position="absolute 435 570 635 653" anchor="default" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" onlbuttondown="Grid_onlbuttondown" autofittype="col">
  871. <Formats>
  872. <Format id="default">
  873. <Columns>
  874. <Column size="22"/>
  875. <Column size="160"/>
  876. </Columns>
  877. <Rows>
  878. <Row size="24" band="head"/>
  879. <Row size="24"/>
  880. </Rows>
  881. <Band id="head">
  882. <Cell/>
  883. <Cell col="1" text="콘텐츠 제목"/>
  884. </Band>
  885. <Band id="body">
  886. <Cell celltype="head"/>
  887. <Cell col="1" style="align:left;" text="bind:prcpnm"/>
  888. </Band>
  889. </Format>
  890. </Formats>
  891. </Grid>
  892. <Grid id="grd_hichart4" taborder="39" binddataset="ds_main_hichartlist04" useinputpanel="false" position="absolute 636 570 836 653" anchor="default" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" onlbuttondown="Grid_onlbuttondown" autofittype="col">
  893. <Formats>
  894. <Format id="default">
  895. <Columns>
  896. <Column size="22"/>
  897. <Column size="160"/>
  898. </Columns>
  899. <Rows>
  900. <Row size="24" band="head"/>
  901. <Row size="24"/>
  902. </Rows>
  903. <Band id="head">
  904. <Cell/>
  905. <Cell col="1" text="콘텐츠 제목"/>
  906. </Band>
  907. <Band id="body">
  908. <Cell celltype="head"/>
  909. <Cell col="1" style="align:left;" text="bind:prcpnm"/>
  910. </Band>
  911. </Format>
  912. </Formats>
  913. </Grid>
  914. <Grid id="grd_form4" taborder="41" binddataset="ds_main_formlist4" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 637 383 837 478" anchor="default">
  915. <Formats>
  916. <Format id="default">
  917. <Columns>
  918. <Column size="22"/>
  919. <Column size="65"/>
  920. <Column size="186"/>
  921. <Column size="0"/>
  922. <Column size="0"/>
  923. <Column size="0"/>
  924. <Column size="0"/>
  925. <Column size="0"/>
  926. <Column size="0"/>
  927. <Column size="0"/>
  928. <Column size="0"/>
  929. <Column size="0"/>
  930. </Columns>
  931. <Rows>
  932. <Row size="24" band="head"/>
  933. <Row size="22"/>
  934. </Rows>
  935. <Band id="head">
  936. <Cell/>
  937. <Cell col="1" text="STEP명"/>
  938. <Cell col="2" text="caption1"/>
  939. <Cell col="3" text="caption2"/>
  940. <Cell col="4" text="prtlstat"/>
  941. <Cell col="5"/>
  942. <Cell col="6"/>
  943. <Cell col="7"/>
  944. <Cell col="8"/>
  945. <Cell col="9"/>
  946. <Cell col="10"/>
  947. <Cell col="11"/>
  948. </Band>
  949. <Band id="body">
  950. <Cell celltype="head"/>
  951. <Cell col="1" text="bind:stepnm"/>
  952. <Cell col="2" style="align:left;" text="bind:prcpnm"/>
  953. <Cell col="3" text="bind:formprogflag"/>
  954. <Cell col="4" text="bind:prtlstat"/>
  955. <Cell col="5" text="bind:status"/>
  956. <Cell col="6" text="bind:prcpdd"/>
  957. <Cell col="7" text="bind:times"/>
  958. <Cell col="8" text="bind:stepno"/>
  959. <Cell col="9" text="bind:prtlprcpno"/>
  960. <Cell col="10" text="bind:prcpno"/>
  961. <Cell col="11" text="bind:prcphistno"/>
  962. </Band>
  963. </Format>
  964. </Formats>
  965. </Grid>
  966. <Grid id="grd_caredelive4" taborder="42" binddataset="ds_main_caredelivelist4" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 637 287 837 382" anchor="default">
  967. <Formats>
  968. <Format id="default">
  969. <Columns>
  970. <Column size="22"/>
  971. <Column size="0"/>
  972. <Column size="45"/>
  973. <Column size="206"/>
  974. <Column size="0"/>
  975. <Column size="0"/>
  976. <Column size="0"/>
  977. <Column size="0"/>
  978. <Column size="0"/>
  979. <Column size="0"/>
  980. <Column size="0"/>
  981. <Column size="0"/>
  982. </Columns>
  983. <Rows>
  984. <Row size="24" band="head"/>
  985. <Row size="22"/>
  986. </Rows>
  987. <Band id="head">
  988. <Cell/>
  989. <Cell col="1" text="처방희망일"/>
  990. <Cell col="2" text="종류"/>
  991. <Cell col="3" text="처방명"/>
  992. <Cell col="4" text="prtlstat"/>
  993. <Cell col="5"/>
  994. <Cell col="6"/>
  995. <Cell col="7"/>
  996. <Cell col="8"/>
  997. <Cell col="9"/>
  998. <Cell col="10"/>
  999. <Cell col="11"/>
  1000. </Band>
  1001. <Band id="body">
  1002. <Cell celltype="head"/>
  1003. <Cell col="1" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  1004. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  1005. <Cell col="3" displaytype="text" text="bind:prcpnm"/>
  1006. <Cell col="4" text="bind:prtlstat"/>
  1007. <Cell col="5" text="bind:status"/>
  1008. <Cell col="6" text="bind:prcpdd"/>
  1009. <Cell col="7" text="bind:times"/>
  1010. <Cell col="8" text="bind:stepno"/>
  1011. <Cell col="9" text="bind:prtlprcpno"/>
  1012. <Cell col="10" text="bind:prcpno"/>
  1013. <Cell col="11" text="bind:prcphistno"/>
  1014. </Band>
  1015. </Format>
  1016. </Formats>
  1017. </Grid>
  1018. <Grid id="grd_test4" taborder="43" binddataset="ds_main_testlist4" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 637 171 837 286" anchor="default">
  1019. <Formats>
  1020. <Format id="default">
  1021. <Columns>
  1022. <Column size="22" band="left"/>
  1023. <Column size="0" band="left"/>
  1024. <Column size="0" band="left"/>
  1025. <Column size="35" band="left"/>
  1026. <Column size="45" band="left"/>
  1027. <Column size="70"/>
  1028. <Column size="200"/>
  1029. <Column size="70"/>
  1030. <Column size="90"/>
  1031. <Column size="80"/>
  1032. <Column size="40"/>
  1033. <Column size="45"/>
  1034. <Column size="0"/>
  1035. <Column size="0"/>
  1036. <Column size="0"/>
  1037. <Column size="0"/>
  1038. <Column size="0"/>
  1039. <Column size="0"/>
  1040. <Column size="0"/>
  1041. <Column size="0"/>
  1042. </Columns>
  1043. <Rows>
  1044. <Row size="24" band="head"/>
  1045. <Row size="22"/>
  1046. </Rows>
  1047. <Band id="head">
  1048. <Cell/>
  1049. <Cell col="1"/>
  1050. <Cell col="2" text="처방희망일"/>
  1051. <Cell col="3" text="상태"/>
  1052. <Cell col="4" text="종류"/>
  1053. <Cell col="5" text="처방코드"/>
  1054. <Cell col="6" text="처방명"/>
  1055. <Cell col="7" text="예약일"/>
  1056. <Cell col="8" text="검체"/>
  1057. <Cell col="9" text="전달"/>
  1058. <Cell col="10" colspan="2" text="검사결과"/>
  1059. <Cell col="12" text="prtlstat"/>
  1060. <Cell col="13"/>
  1061. <Cell col="14"/>
  1062. <Cell col="15"/>
  1063. <Cell col="16"/>
  1064. <Cell col="17"/>
  1065. <Cell col="18"/>
  1066. <Cell col="19"/>
  1067. </Band>
  1068. <Band id="body">
  1069. <Cell celltype="head"/>
  1070. <Cell col="1" text="bind:prcpclscd"/>
  1071. <Cell col="2" text="bind:prcphopedd" mask="####-##-##"/>
  1072. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpstatcd" combodataset="ds_init_prcpstatcd" combocodecol="cdid" combodatacol="cdnm"/>
  1073. <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  1074. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  1075. <Cell col="6" style="align:left;" text="bind:prcpnm"/>
  1076. <Cell col="7" displaytype="date" text="bind:rsrvdd" calendardisplaynulltype="none"/>
  1077. <Cell col="8" style="align:left;" text="bind:drugmthdspccdnm"/>
  1078. <Cell col="9" style="align:left;" text="bind:prcpdelivefact"/>
  1079. <Cell col="10" text="bind:testrsltcnts"/>
  1080. <Cell col="11" text="bind:testrsltunit"/>
  1081. <Cell col="12" text="bind:prtlstat"/>
  1082. <Cell col="13" text="bind:status"/>
  1083. <Cell col="14" text="bind:prcpdd"/>
  1084. <Cell col="15" text="bind:times"/>
  1085. <Cell col="16" text="bind:stepno"/>
  1086. <Cell col="17" text="bind:prtlprcpno"/>
  1087. <Cell col="18" text="bind:prcpno"/>
  1088. <Cell col="19" text="bind:prcphistno"/>
  1089. </Band>
  1090. </Format>
  1091. </Formats>
  1092. </Grid>
  1093. <Grid id="grd_drug4" taborder="44" binddataset="ds_main_druglist4" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 637 50 837 170" visible="true" anchor="default">
  1094. <Formats>
  1095. <Format id="default">
  1096. <Columns>
  1097. <Column size="22" band="left"/>
  1098. <Column size="0" band="left"/>
  1099. <Column size="0" band="left"/>
  1100. <Column size="35" band="left"/>
  1101. <Column size="45" band="left"/>
  1102. <Column size="70"/>
  1103. <Column size="130"/>
  1104. <Column size="50"/>
  1105. <Column size="50"/>
  1106. <Column size="35"/>
  1107. <Column size="40"/>
  1108. <Column size="40"/>
  1109. <Column size="36"/>
  1110. <Column size="35"/>
  1111. <Column size="35"/>
  1112. <Column size="31"/>
  1113. <Column size="80"/>
  1114. <Column size="0"/>
  1115. <Column size="0"/>
  1116. <Column size="0"/>
  1117. <Column size="0"/>
  1118. <Column size="0"/>
  1119. <Column size="0"/>
  1120. <Column size="0"/>
  1121. <Column size="0"/>
  1122. </Columns>
  1123. <Rows>
  1124. <Row size="24" band="head"/>
  1125. <Row size="22"/>
  1126. </Rows>
  1127. <Band id="head">
  1128. <Cell/>
  1129. <Cell col="1"/>
  1130. <Cell col="2" text="처방희망일"/>
  1131. <Cell col="3" text="상태"/>
  1132. <Cell col="4" text="종류"/>
  1133. <Cell col="5" text="처방코드"/>
  1134. <Cell col="6" text="처방명"/>
  1135. <Cell col="7" colspan="3" text="총용량"/>
  1136. <Cell col="10" colspan="3" text="수량"/>
  1137. <Cell col="13" text="횟수"/>
  1138. <Cell col="14" text="일수"/>
  1139. <Cell col="15" text="MIX"/>
  1140. <Cell col="16" text="용법"/>
  1141. <Cell col="17" text="prtlstat"/>
  1142. <Cell col="18"/>
  1143. <Cell col="19"/>
  1144. <Cell col="20"/>
  1145. <Cell col="21"/>
  1146. <Cell col="22"/>
  1147. <Cell col="23"/>
  1148. <Cell col="24"/>
  1149. </Band>
  1150. <Band id="body">
  1151. <Cell celltype="head"/>
  1152. <Cell col="1" text="bind:prcpclscd"/>
  1153. <Cell col="2" text="bind:prcphopedd" mask="####-##-##"/>
  1154. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpstatcd" combodataset="ds_init_prcpstatcd" combocodecol="cdid" combodatacol="cdnm"/>
  1155. <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  1156. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  1157. <Cell col="6" style="align:left;" text="bind:prcpnm"/>
  1158. <Cell col="7" displaytype="text" text="bind:prcpvol"/>
  1159. <Cell col="8" displaytype="text" text="bind:drprcpetc7"/>
  1160. <Cell col="9" displaytype="text" text="bind:prcpvolunitnm"/>
  1161. <Cell col="10" displaytype="text" text="bind:prcpqty"/>
  1162. <Cell col="11" displaytype="text" text="bind:drprcpetc8"/>
  1163. <Cell col="12" displaytype="text" text="bind:prcpqtyunitnm"/>
  1164. <Cell col="13" displaytype="text" text="bind:prcptims"/>
  1165. <Cell col="14" displaytype="text" text="bind:prcpdayno"/>
  1166. <Cell col="15" displaytype="text" text="bind:prcpmixno"/>
  1167. <Cell col="16" displaytype="text" style="align:left;" text="bind:drugmthdspccdnm"/>
  1168. <Cell col="17" text="bind:prtlstat"/>
  1169. <Cell col="18" text="bind:status"/>
  1170. <Cell col="19" text="bind:prcpdd"/>
  1171. <Cell col="20" text="bind:times"/>
  1172. <Cell col="21" text="bind:stepno"/>
  1173. <Cell col="22" text="bind:prtlprcpno"/>
  1174. <Cell col="23" text="bind:prcpno"/>
  1175. <Cell col="24" text="bind:prcphistno"/>
  1176. </Band>
  1177. </Format>
  1178. </Formats>
  1179. </Grid>
  1180. <Div id="grp_prcplist" taborder="45" visible="false" position="absolute 540 557 830 647">
  1181. <Layouts>
  1182. <Layout>
  1183. <Grid id="grd_prcplist" taborder="0" binddataset="ds_main_prcplist" useinputpanel="false" position="absolute -271 8 -71 98" anchor="default">
  1184. <Formats>
  1185. <Format id="default">
  1186. <Columns>
  1187. <Column size="38"/>
  1188. <Column size="55"/>
  1189. <Column size="0"/>
  1190. <Column size="55"/>
  1191. <Column size="80"/>
  1192. <Column size="250"/>
  1193. <Column size="45"/>
  1194. <Column size="37"/>
  1195. <Column size="37"/>
  1196. <Column size="37"/>
  1197. <Column size="40"/>
  1198. <Column size="37"/>
  1199. <Column size="153"/>
  1200. <Column size="26"/>
  1201. <Column size="61"/>
  1202. <Column size="-4"/>
  1203. <Column size="50"/>
  1204. <Column size="100"/>
  1205. <Column size="100"/>
  1206. <Column size="60"/>
  1207. <Column size="0"/>
  1208. <Column size="0"/>
  1209. <Column size="85"/>
  1210. <Column size="87"/>
  1211. <Column size="101"/>
  1212. <Column size="0"/>
  1213. <Column size="0"/>
  1214. </Columns>
  1215. <Rows>
  1216. <Row size="24" band="head"/>
  1217. <Row size="24"/>
  1218. </Rows>
  1219. <Band id="head">
  1220. <Cell/>
  1221. <Cell col="1" text="상태"/>
  1222. <Cell col="2" text="분류"/>
  1223. <Cell col="3" text="종류"/>
  1224. <Cell col="4" text="처방코드"/>
  1225. <Cell col="5" text="처방명"/>
  1226. <Cell col="6" text="총용량"/>
  1227. <Cell col="7" text="총용량"/>
  1228. <Cell col="8" text="수량"/>
  1229. <Cell col="9" text="수량"/>
  1230. <Cell col="10" text="횟수"/>
  1231. <Cell col="11" text="일수"/>
  1232. <Cell col="12" text="용법/검체"/>
  1233. <Cell col="13" text="MIX"/>
  1234. <Cell col="14" text="급비"/>
  1235. <Cell col="15" text="전달"/>
  1236. <Cell col="16" text="원내외"/>
  1237. <Cell col="17" text="처치부서"/>
  1238. <Cell col="18" text="희망일자"/>
  1239. <Cell col="19" text="선택진료"/>
  1240. <Cell col="20" text="등록일시"/>
  1241. <Cell col="21" text="등록자"/>
  1242. <Cell col="22" text="변경불가여부"/>
  1243. <Cell col="23" text="제한시간(분)"/>
  1244. <Cell col="24" text="제한상태코드"/>
  1245. <Cell col="25" text="caption2"/>
  1246. <Cell col="26" text="caption1"/>
  1247. </Band>
  1248. <Band id="body">
  1249. <Cell enable="false" text="bind:status" edittype="combo" displaytype="combo"/>
  1250. <Cell col="1" enable="false" text="bind:prcpstatcd" edittype="combo" displaytype="combo"/>
  1251. <Cell col="2" text="bind:prcpclscd" edittype="combo" displaytype="combo"/>
  1252. <Cell col="3" class="gridcombo" text="bind:prcpkindcd" edittype="combo" displaytype="combo"/>
  1253. <Cell col="4" text="bind:prcpcd" edittype="none" displaytype="none"/>
  1254. <Cell col="5" text="bind:prcpnm" edittype="text" displaytype="text"/>
  1255. <Cell col="6" text="bind:prcpvol" edittype="text" displaytype="text" mask="#.#"/>
  1256. <Cell col="7" text="bind:prcpvolunitnm" edittype="none" displaytype="none"/>
  1257. <Cell col="8" text="bind:prcpqty" edittype="text" displaytype="text" mask="#.#"/>
  1258. <Cell col="9" text="bind:prcpqtyunitnm"/>
  1259. <Cell col="10" text="bind:prcptims" edittype="text" displaytype="text" mask="#"/>
  1260. <Cell col="11" text="bind:prcpdayno" edittype="text" displaytype="text" mask="#"/>
  1261. <Cell col="12" text="bind:drugmthdspccdnm" edittype="none" displaytype="none"/>
  1262. <Cell col="13" text="bind:prcpmixno" edittype="text" displaytype="text"/>
  1263. <Cell col="14" class="gridcombo" text="bind:payflagcd" edittype="combo" displaytype="combo"/>
  1264. <Cell col="15" text="bind:prcpdelivefact"/>
  1265. <Cell col="16" enable="false" text="bind:hosinhosoutflag" edittype="combo" displaytype="combo"/>
  1266. <Cell col="17" class="gridcombo" text="bind:prcpexecdeptcd" edittype="combo" displaytype="combo"/>
  1267. <Cell col="18" text="bind:prcphopedd" edittype="date" displaytype="date" mask="yyyy-mm-dd"/>
  1268. <Cell col="19" text="bind:choiordflag" edittype="checkbox" displaytype="checkbox"/>
  1269. <Cell col="20" text="bind:rgsttm" mask="yyyy-mm-dd"/>
  1270. <Cell col="21" text="bind:rgstridnm"/>
  1271. <Cell col="22" edittype="combo" displaytype="combo"/>
  1272. <Cell col="23" edittype="text" displaytype="text"/>
  1273. <Cell col="24" edittype="combo" displaytype="combo"/>
  1274. <Cell col="25" text="bind:prtlprcpno"/>
  1275. <Cell col="26" text="bind:rsrvdd"/>
  1276. </Band>
  1277. </Format>
  1278. </Formats>
  1279. </Grid>
  1280. </Layout>
  1281. </Layouts>
  1282. </Div>
  1283. <Grid id="grd_downlist" taborder="46" binddataset="ds_main_down_prcplist" useinputpanel="false" visible="false" position="absolute 610 592 825 642">
  1284. <Formats>
  1285. <Format id="default">
  1286. <Columns>
  1287. <Column size="100"/>
  1288. <Column size="0"/>
  1289. <Column size="55"/>
  1290. <Column size="80"/>
  1291. <Column size="260"/>
  1292. <Column size="45"/>
  1293. <Column size="27"/>
  1294. <Column size="37"/>
  1295. <Column size="27"/>
  1296. <Column size="40"/>
  1297. <Column size="37"/>
  1298. <Column size="60"/>
  1299. <Column size="153"/>
  1300. <Column size="38"/>
  1301. <Column size="40"/>
  1302. <Column size="50"/>
  1303. <Column size="100"/>
  1304. <Column size="60"/>
  1305. <Column size="0"/>
  1306. <Column size="0"/>
  1307. <Column size="80"/>
  1308. </Columns>
  1309. <Rows>
  1310. <Row size="24" band="head"/>
  1311. <Row size="24"/>
  1312. </Rows>
  1313. <Band id="head">
  1314. <Cell text="스텝명"/>
  1315. <Cell col="1" text="분류"/>
  1316. <Cell col="2" text="종류"/>
  1317. <Cell col="3" text="처방코드"/>
  1318. <Cell col="4" text="처방명"/>
  1319. <Cell col="5" colspan="2" text="1회용량"/>
  1320. <Cell col="7" colspan="2" text="1회수량"/>
  1321. <Cell col="9" text="횟수"/>
  1322. <Cell col="10" text="일수"/>
  1323. <Cell col="11" text="급비"/>
  1324. <Cell col="12" text="용법/검체"/>
  1325. <Cell col="13" text="MIX"/>
  1326. <Cell col="14" text="전달"/>
  1327. <Cell col="15" text="원내외"/>
  1328. <Cell col="16" text="시행부서"/>
  1329. <Cell col="17" text="선택진료"/>
  1330. <Cell col="18" text="등록일시"/>
  1331. <Cell col="19" text="등록자"/>
  1332. <Cell col="20" text="마취확정필요여부"/>
  1333. </Band>
  1334. <Band id="body">
  1335. <Cell text="bind:stepnm"/>
  1336. <Cell col="1" displaytype="combo" edittype="combo" text="bind:prcpclscd" combodataset="ds_init_prcpclscd" combocodecol="cdid" combodatacol="cdnm"/>
  1337. <Cell col="2" displaytype="combo" edittype="combo" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  1338. <Cell col="3" displaytype="text" edittype="text" text="bind:prcpcd"/>
  1339. <Cell col="4" displaytype="text" edittype="text" text="bind:prcpnm"/>
  1340. <Cell col="5" displaytype="text" edittype="text" text="bind:drprcpetc7" mask="#.#"/>
  1341. <Cell col="6" displaytype="none" edittype="none" text="bind:prcpvolunitnm"/>
  1342. <Cell col="7" displaytype="text" edittype="text" text="bind:drprcpetc8" mask="#.#"/>
  1343. <Cell col="8" text="bind:prcpqtyunitnm"/>
  1344. <Cell col="9" displaytype="text" edittype="text" text="bind:prcptims" mask="#"/>
  1345. <Cell col="10" displaytype="text" edittype="text" text="bind:prcpdayno" mask="#"/>
  1346. <Cell col="11" displaytype="combo" edittype="combo" text="bind:payflagcd" combodataset="ds_init_payflagcd" combocodecol="cdid" combodatacol="cdnm"/>
  1347. <Cell col="12" displaytype="none" edittype="none" text="bind:drugmthdspccdnm"/>
  1348. <Cell col="13" displaytype="text" edittype="text" text="bind:prcpmixno"/>
  1349. <Cell col="14" text="bind:prcpdelivefact"/>
  1350. <Cell col="15" displaytype="combo" edittype="combo" text="bind:hosinhosoutflag" combodataset="ds_cmb_hosinhosoutflag" combocodecol="cdid" combodatacol="cdnm"/>
  1351. <Cell col="16" displaytype="combo" edittype="combo" class="gridcombo" text="bind:prcpexecdeptcd" combodataset="ds_orddept" combocodecol="deptcd" combodatacol="depthngnm"/>
  1352. <Cell col="17" displaytype="checkbox" edittype="checkbox" text="bind:choiordflag" expr="expr:(chkColumn==&quot;Y&quot;||chkColumn==1)?1:0"/>
  1353. <Cell col="18" displaytype="date" text="bind:rgsttm"/>
  1354. <Cell col="19" text="bind:rgstridnm"/>
  1355. <Cell col="20" displaytype="combo" edittype="combo" class="gridcombo" text="bind:anstcnfmneedyn" combodataset="ds_cmb_anstcnfmneedyn"/>
  1356. </Band>
  1357. </Format>
  1358. </Formats>
  1359. </Grid>
  1360. <PopupMenu id="pmn_menu_1" innerdataset="@ds_MouseR1" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick" position="absolute 856 11 930 74"/>
  1361. <PopupMenu id="pmn_menu_2" innerdataset="@ds_MouseR2" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick" position="absolute 856 78 963 166"/>
  1362. <Grid id="grd_etc4" taborder="47" binddataset="ds_main_etclist4" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 637 479 837 569" anchor="default">
  1363. <Formats>
  1364. <Format id="default">
  1365. <Columns>
  1366. <Column size="22"/>
  1367. <Column size="0"/>
  1368. <Column size="45"/>
  1369. <Column size="45"/>
  1370. <Column size="161"/>
  1371. <Column size="0"/>
  1372. <Column size="0"/>
  1373. <Column size="0"/>
  1374. <Column size="0"/>
  1375. <Column size="0"/>
  1376. <Column size="0"/>
  1377. <Column size="0"/>
  1378. <Column size="0"/>
  1379. </Columns>
  1380. <Rows>
  1381. <Row size="24" band="head"/>
  1382. <Row size="22"/>
  1383. </Rows>
  1384. <Band id="head">
  1385. <Cell/>
  1386. <Cell col="1" text="처방희망일"/>
  1387. <Cell col="2" text="종류"/>
  1388. <Cell col="3" text="분류"/>
  1389. <Cell col="4" text="caption1"/>
  1390. <Cell col="5" text="prtlstat"/>
  1391. <Cell col="6"/>
  1392. <Cell col="7"/>
  1393. <Cell col="8"/>
  1394. <Cell col="9"/>
  1395. <Cell col="10"/>
  1396. <Cell col="11"/>
  1397. <Cell col="12"/>
  1398. </Band>
  1399. <Band id="body">
  1400. <Cell celltype="head"/>
  1401. <Cell col="1" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  1402. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  1403. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpclscd" combodataset="ds_init_prcpclscd" combocodecol="cdid" combodatacol="cdnm"/>
  1404. <Cell col="4" style="align:left;" text="bind:prcpnm"/>
  1405. <Cell col="5" text="bind:prtlstat"/>
  1406. <Cell col="6" text="bind:status"/>
  1407. <Cell col="7" text="bind:prcpdd"/>
  1408. <Cell col="8" text="bind:times"/>
  1409. <Cell col="9" text="bind:stepno"/>
  1410. <Cell col="10" text="bind:prtlprcpno"/>
  1411. <Cell col="11" text="bind:prcpno"/>
  1412. <Cell col="12" text="bind:prcphistno"/>
  1413. </Band>
  1414. </Format>
  1415. </Formats>
  1416. </Grid>
  1417. <Grid id="grd_etc3" taborder="48" binddataset="ds_main_etclist3" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 435 479 635 569" anchor="default">
  1418. <Formats>
  1419. <Format id="default">
  1420. <Columns>
  1421. <Column size="22"/>
  1422. <Column size="0"/>
  1423. <Column size="45"/>
  1424. <Column size="45"/>
  1425. <Column size="161"/>
  1426. <Column size="0"/>
  1427. <Column size="0"/>
  1428. <Column size="0"/>
  1429. <Column size="0"/>
  1430. <Column size="0"/>
  1431. <Column size="0"/>
  1432. <Column size="0"/>
  1433. <Column size="0"/>
  1434. </Columns>
  1435. <Rows>
  1436. <Row size="24" band="head"/>
  1437. <Row size="22"/>
  1438. </Rows>
  1439. <Band id="head">
  1440. <Cell/>
  1441. <Cell col="1" text="처방희망일"/>
  1442. <Cell col="2" text="종류"/>
  1443. <Cell col="3" text="분류"/>
  1444. <Cell col="4" text="caption1"/>
  1445. <Cell col="5" text="prtlstat"/>
  1446. <Cell col="6"/>
  1447. <Cell col="7"/>
  1448. <Cell col="8"/>
  1449. <Cell col="9"/>
  1450. <Cell col="10"/>
  1451. <Cell col="11"/>
  1452. <Cell col="12"/>
  1453. </Band>
  1454. <Band id="body">
  1455. <Cell celltype="head"/>
  1456. <Cell col="1" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  1457. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  1458. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpclscd" combodataset="ds_init_prcpclscd" combocodecol="cdid" combodatacol="cdnm"/>
  1459. <Cell col="4" style="align:left;" text="bind:prcpnm"/>
  1460. <Cell col="5" text="bind:prtlstat"/>
  1461. <Cell col="6" text="bind:status"/>
  1462. <Cell col="7" text="bind:prcpdd"/>
  1463. <Cell col="8" text="bind:times"/>
  1464. <Cell col="9" text="bind:stepno"/>
  1465. <Cell col="10" text="bind:prtlprcpno"/>
  1466. <Cell col="11" text="bind:prcpno"/>
  1467. <Cell col="12" text="bind:prcphistno"/>
  1468. </Band>
  1469. </Format>
  1470. </Formats>
  1471. </Grid>
  1472. <Grid id="grd_etc2" taborder="49" binddataset="ds_main_etclist2" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 232 479 432 569" anchor="default">
  1473. <Formats>
  1474. <Format id="default">
  1475. <Columns>
  1476. <Column size="22"/>
  1477. <Column size="0"/>
  1478. <Column size="45"/>
  1479. <Column size="45"/>
  1480. <Column size="161"/>
  1481. <Column size="0"/>
  1482. <Column size="0"/>
  1483. <Column size="0"/>
  1484. <Column size="0"/>
  1485. <Column size="0"/>
  1486. <Column size="0"/>
  1487. <Column size="0"/>
  1488. <Column size="0"/>
  1489. </Columns>
  1490. <Rows>
  1491. <Row size="24" band="head"/>
  1492. <Row size="22"/>
  1493. </Rows>
  1494. <Band id="head">
  1495. <Cell/>
  1496. <Cell col="1" text="처방희망일"/>
  1497. <Cell col="2" text="종류"/>
  1498. <Cell col="3" text="분류"/>
  1499. <Cell col="4" text="caption1"/>
  1500. <Cell col="5" text="prtlstat"/>
  1501. <Cell col="6"/>
  1502. <Cell col="7"/>
  1503. <Cell col="8"/>
  1504. <Cell col="9"/>
  1505. <Cell col="10"/>
  1506. <Cell col="11"/>
  1507. <Cell col="12"/>
  1508. </Band>
  1509. <Band id="body">
  1510. <Cell celltype="head"/>
  1511. <Cell col="1" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  1512. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  1513. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpclscd" combodataset="ds_init_prcpclscd" combocodecol="cdid" combodatacol="cdnm"/>
  1514. <Cell col="4" style="align:left;" text="bind:prcpnm"/>
  1515. <Cell col="5" text="bind:prtlstat"/>
  1516. <Cell col="6" text="bind:status"/>
  1517. <Cell col="7" text="bind:prcpdd"/>
  1518. <Cell col="8" text="bind:times"/>
  1519. <Cell col="9" text="bind:stepno"/>
  1520. <Cell col="10" text="bind:prtlprcpno"/>
  1521. <Cell col="11" text="bind:prcpno"/>
  1522. <Cell col="12" text="bind:prcphistno"/>
  1523. </Band>
  1524. </Format>
  1525. </Formats>
  1526. </Grid>
  1527. <Grid id="grd_etc1" taborder="50" binddataset="ds_main_etclist1" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" onlbuttondown="Grid_onlbuttondown" onrbuttondown="fPopupMenuEvent" onmousemove="comn_onmousemove" oncellclick="grd_All_oncellclick" oncelldblclick="Grid_oncelldblclick" position="absolute 29 479 229 569" anchor="default">
  1528. <Formats>
  1529. <Format id="default">
  1530. <Columns>
  1531. <Column size="22"/>
  1532. <Column size="0"/>
  1533. <Column size="45"/>
  1534. <Column size="45"/>
  1535. <Column size="161"/>
  1536. <Column size="0"/>
  1537. <Column size="0"/>
  1538. <Column size="0"/>
  1539. <Column size="0"/>
  1540. <Column size="0"/>
  1541. <Column size="0"/>
  1542. <Column size="0"/>
  1543. <Column size="0"/>
  1544. </Columns>
  1545. <Rows>
  1546. <Row size="24" band="head"/>
  1547. <Row size="22"/>
  1548. </Rows>
  1549. <Band id="head">
  1550. <Cell/>
  1551. <Cell col="1" text="처방희망일"/>
  1552. <Cell col="2" text="종류"/>
  1553. <Cell col="3" text="분류"/>
  1554. <Cell col="4" text="caption1"/>
  1555. <Cell col="5" text="prtlstat"/>
  1556. <Cell col="6"/>
  1557. <Cell col="7"/>
  1558. <Cell col="8"/>
  1559. <Cell col="9"/>
  1560. <Cell col="10"/>
  1561. <Cell col="11"/>
  1562. <Cell col="12"/>
  1563. </Band>
  1564. <Band id="body">
  1565. <Cell celltype="head"/>
  1566. <Cell col="1" text="bind:prcphopedd" mask="yyyy-mm-dd"/>
  1567. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" class="gridcombo" text="bind:prcpkindcd" combodataset="ds_init_prcpkindcd" combocodecol="cdid" combodatacol="cdnm"/>
  1568. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:prcpclscd" combodataset="ds_init_prcpclscd" combocodecol="cdid" combodatacol="cdnm"/>
  1569. <Cell col="4" style="align:left;" text="bind:prcpnm"/>
  1570. <Cell col="5" text="bind:prtlstat"/>
  1571. <Cell col="6" text="bind:status"/>
  1572. <Cell col="7" text="bind:prcpdd"/>
  1573. <Cell col="8" text="bind:times"/>
  1574. <Cell col="9" text="bind:stepno"/>
  1575. <Cell col="10" text="bind:prtlprcpno"/>
  1576. <Cell col="11" text="bind:prcpno"/>
  1577. <Cell col="12" text="bind:prcphistno"/>
  1578. </Band>
  1579. </Format>
  1580. </Formats>
  1581. </Grid>
  1582. </Layout>
  1583. </Layouts>
  1584. <Objects>
  1585. <Dataset id="ds_main_druglist4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1586. <ColumnInfo>
  1587. <Column id="prcpclscd" type="STRING"/>
  1588. <Column id="prcphopedd" type="STRING"/>
  1589. <Column id="prcpstatcd" type="STRING"/>
  1590. <Column id="prcpkindcd" type="STRING"/>
  1591. <Column id="prcpcd" type="STRING"/>
  1592. <Column id="prcpnm" type="STRING"/>
  1593. <Column id="prcpvol" type="STRING"/>
  1594. <Column id="drprcpetc7" type="STRING"/>
  1595. <Column id="prcpvolunitnm" type="STRING"/>
  1596. <Column id="prcpqty" type="STRING"/>
  1597. <Column id="drprcpetc8" type="STRING"/>
  1598. <Column id="prcpqtyunitnm" type="STRING"/>
  1599. <Column id="prcptims" type="STRING"/>
  1600. <Column id="prcpdayno" type="STRING"/>
  1601. <Column id="prcpmixno" type="STRING"/>
  1602. <Column id="drugmthdspccdnm" type="STRING"/>
  1603. <Column id="prtlstat" type="STRING"/>
  1604. <Column id="status" type="STRING"/>
  1605. <Column id="prcpdd" type="STRING"/>
  1606. <Column id="times" type="STRING"/>
  1607. <Column id="stepno" type="STRING"/>
  1608. <Column id="prtlprcpno" type="STRING"/>
  1609. <Column id="prcpno" type="STRING"/>
  1610. <Column id="prcphistno" type="STRING"/>
  1611. </ColumnInfo>
  1612. </Dataset>
  1613. <Dataset id="ds_main_druglist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1614. <ColumnInfo>
  1615. <Column id="prcpclscd" type="STRING"/>
  1616. <Column id="prcphopedd" type="STRING"/>
  1617. <Column id="prcpstatcd" type="STRING"/>
  1618. <Column id="prcpkindcd" type="STRING"/>
  1619. <Column id="prcpcd" type="STRING"/>
  1620. <Column id="prcpnm" type="STRING"/>
  1621. <Column id="prcpvol" type="STRING"/>
  1622. <Column id="drprcpetc7" type="STRING"/>
  1623. <Column id="prcpvolunitnm" type="STRING"/>
  1624. <Column id="prcpqty" type="STRING"/>
  1625. <Column id="drprcpetc8" type="STRING"/>
  1626. <Column id="prcpqtyunitnm" type="STRING"/>
  1627. <Column id="prcptims" type="STRING"/>
  1628. <Column id="prcpdayno" type="STRING"/>
  1629. <Column id="prcpmixno" type="STRING"/>
  1630. <Column id="drugmthdspccdnm" type="STRING"/>
  1631. <Column id="prtlstat" type="STRING"/>
  1632. <Column id="status" type="STRING"/>
  1633. <Column id="prcpdd" type="STRING"/>
  1634. <Column id="times" type="STRING"/>
  1635. <Column id="stepno" type="STRING"/>
  1636. <Column id="prtlprcpno" type="STRING"/>
  1637. <Column id="prcpno" type="STRING"/>
  1638. <Column id="prcphistno" type="STRING"/>
  1639. </ColumnInfo>
  1640. </Dataset>
  1641. <Dataset id="ds_main_druglist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1642. <ColumnInfo>
  1643. <Column id="prcpclscd" type="STRING"/>
  1644. <Column id="prcphopedd" type="STRING"/>
  1645. <Column id="prcpstatcd" type="STRING"/>
  1646. <Column id="prcpkindcd" type="STRING"/>
  1647. <Column id="prcpcd" type="STRING"/>
  1648. <Column id="prcpnm" type="STRING"/>
  1649. <Column id="prcpvol" type="STRING"/>
  1650. <Column id="drprcpetc7" type="STRING"/>
  1651. <Column id="prcpvolunitnm" type="STRING"/>
  1652. <Column id="prcpqty" type="STRING"/>
  1653. <Column id="drprcpetc8" type="STRING"/>
  1654. <Column id="prcpqtyunitnm" type="STRING"/>
  1655. <Column id="prcptims" type="STRING"/>
  1656. <Column id="prcpdayno" type="STRING"/>
  1657. <Column id="prcpmixno" type="STRING"/>
  1658. <Column id="drugmthdspccdnm" type="STRING"/>
  1659. <Column id="prtlstat" type="STRING"/>
  1660. <Column id="status" type="STRING"/>
  1661. <Column id="prcpdd" type="STRING"/>
  1662. <Column id="times" type="STRING"/>
  1663. <Column id="stepno" type="STRING"/>
  1664. <Column id="prtlprcpno" type="STRING"/>
  1665. <Column id="prcpno" type="STRING"/>
  1666. <Column id="prcphistno" type="STRING"/>
  1667. </ColumnInfo>
  1668. </Dataset>
  1669. <Dataset id="ds_main_druglist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1670. <ColumnInfo>
  1671. <Column id="prcpclscd" type="STRING"/>
  1672. <Column id="prcphopedd" type="STRING"/>
  1673. <Column id="prcpstatcd" type="STRING"/>
  1674. <Column id="prcpkindcd" type="STRING"/>
  1675. <Column id="prcpcd" type="STRING"/>
  1676. <Column id="prcpnm" type="STRING"/>
  1677. <Column id="prcpvol" type="STRING"/>
  1678. <Column id="drprcpetc7" type="STRING"/>
  1679. <Column id="prcpvolunitnm" type="STRING"/>
  1680. <Column id="prcpqty" type="STRING"/>
  1681. <Column id="drprcpetc8" type="STRING"/>
  1682. <Column id="prcpqtyunitnm" type="STRING"/>
  1683. <Column id="prcptims" type="STRING"/>
  1684. <Column id="prcpdayno" type="STRING"/>
  1685. <Column id="prcpmixno" type="STRING"/>
  1686. <Column id="drugmthdspccdnm" type="STRING"/>
  1687. <Column id="prtlstat" type="STRING"/>
  1688. <Column id="status" type="STRING"/>
  1689. <Column id="prcpdd" type="STRING"/>
  1690. <Column id="times" type="STRING"/>
  1691. <Column id="stepno" type="STRING"/>
  1692. <Column id="prtlprcpno" type="STRING"/>
  1693. <Column id="prcpno" type="STRING"/>
  1694. <Column id="prcphistno" type="STRING"/>
  1695. </ColumnInfo>
  1696. </Dataset>
  1697. <Dataset id="ds_main_testlist4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1698. <ColumnInfo>
  1699. <Column id="prcpclscd" type="STRING"/>
  1700. <Column id="prcphopedd" type="STRING"/>
  1701. <Column id="prcpstatcd" type="STRING"/>
  1702. <Column id="prcpkindcd" type="STRING"/>
  1703. <Column id="prcpcd" type="STRING"/>
  1704. <Column id="prcpnm" type="STRING"/>
  1705. <Column id="rsrvdd" type="STRING"/>
  1706. <Column id="drugmthdspccdnm" type="STRING"/>
  1707. <Column id="prcpdelivefact" type="STRING"/>
  1708. <Column id="testrsltcnts" type="STRING"/>
  1709. <Column id="testrsltunit" type="STRING"/>
  1710. <Column id="prtlstat" type="STRING"/>
  1711. <Column id="status" type="STRING"/>
  1712. <Column id="prcpdd" type="STRING"/>
  1713. <Column id="times" type="STRING"/>
  1714. <Column id="stepno" type="STRING"/>
  1715. <Column id="prtlprcpno" type="STRING"/>
  1716. <Column id="prcpno" type="STRING"/>
  1717. <Column id="prcphistno" type="STRING"/>
  1718. </ColumnInfo>
  1719. </Dataset>
  1720. <Dataset id="ds_main_testlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1721. <ColumnInfo>
  1722. <Column id="prcpclscd" type="STRING"/>
  1723. <Column id="prcphopedd" type="STRING"/>
  1724. <Column id="prcpstatcd" type="STRING"/>
  1725. <Column id="prcpkindcd" type="STRING"/>
  1726. <Column id="prcpcd" type="STRING"/>
  1727. <Column id="prcpnm" type="STRING"/>
  1728. <Column id="rsrvdd" type="STRING"/>
  1729. <Column id="drugmthdspccdnm" type="STRING"/>
  1730. <Column id="prcpdelivefact" type="STRING"/>
  1731. <Column id="testrsltcnts" type="STRING"/>
  1732. <Column id="testrsltunit" type="STRING"/>
  1733. <Column id="prtlstat" type="STRING"/>
  1734. <Column id="status" type="STRING"/>
  1735. <Column id="prcpdd" type="STRING"/>
  1736. <Column id="times" type="STRING"/>
  1737. <Column id="stepno" type="STRING"/>
  1738. <Column id="prtlprcpno" type="STRING"/>
  1739. <Column id="prcpno" type="STRING"/>
  1740. <Column id="prcphistno" type="STRING"/>
  1741. </ColumnInfo>
  1742. </Dataset>
  1743. <Dataset id="ds_main_testlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1744. <ColumnInfo>
  1745. <Column id="prcpclscd" type="STRING"/>
  1746. <Column id="prcphopedd" type="STRING"/>
  1747. <Column id="prcpstatcd" type="STRING"/>
  1748. <Column id="prcpkindcd" type="STRING"/>
  1749. <Column id="prcpcd" type="STRING"/>
  1750. <Column id="prcpnm" type="STRING"/>
  1751. <Column id="rsrvdd" type="STRING"/>
  1752. <Column id="drugmthdspccdnm" type="STRING"/>
  1753. <Column id="prcpdelivefact" type="STRING"/>
  1754. <Column id="testrsltcnts" type="STRING"/>
  1755. <Column id="testrsltunit" type="STRING"/>
  1756. <Column id="prtlstat" type="STRING"/>
  1757. <Column id="status" type="STRING"/>
  1758. <Column id="prcpdd" type="STRING"/>
  1759. <Column id="times" type="STRING"/>
  1760. <Column id="stepno" type="STRING"/>
  1761. <Column id="prtlprcpno" type="STRING"/>
  1762. <Column id="prcpno" type="STRING"/>
  1763. <Column id="prcphistno" type="STRING"/>
  1764. </ColumnInfo>
  1765. </Dataset>
  1766. <Dataset id="ds_main_testlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1767. <ColumnInfo>
  1768. <Column id="prcpclscd" type="STRING"/>
  1769. <Column id="prcphopedd" type="STRING"/>
  1770. <Column id="prcpstatcd" type="STRING"/>
  1771. <Column id="prcpkindcd" type="STRING"/>
  1772. <Column id="prcpcd" type="STRING"/>
  1773. <Column id="prcpnm" type="STRING"/>
  1774. <Column id="rsrvdd" type="STRING"/>
  1775. <Column id="drugmthdspccdnm" type="STRING"/>
  1776. <Column id="prcpdelivefact" type="STRING"/>
  1777. <Column id="testrsltcnts" type="STRING"/>
  1778. <Column id="testrsltunit" type="STRING"/>
  1779. <Column id="prtlstat" type="STRING"/>
  1780. <Column id="status" type="STRING"/>
  1781. <Column id="prcpdd" type="STRING"/>
  1782. <Column id="times" type="STRING"/>
  1783. <Column id="stepno" type="STRING"/>
  1784. <Column id="prtlprcpno" type="STRING"/>
  1785. <Column id="prcpno" type="STRING"/>
  1786. <Column id="prcphistno" type="STRING"/>
  1787. </ColumnInfo>
  1788. </Dataset>
  1789. <Dataset id="ds_main_caredelivelist4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1790. <ColumnInfo>
  1791. <Column id="prcphopedd" type="STRING"/>
  1792. <Column id="prcpkindcd" type="STRING"/>
  1793. <Column id="prcpnm" type="STRING"/>
  1794. <Column id="prtlstat" type="STRING"/>
  1795. <Column id="status" type="STRING"/>
  1796. <Column id="prcpdd" type="STRING"/>
  1797. <Column id="times" type="STRING"/>
  1798. <Column id="stepno" type="STRING"/>
  1799. <Column id="prtlprcpno" type="STRING"/>
  1800. <Column id="prcpno" type="STRING"/>
  1801. <Column id="prcphistno" type="STRING"/>
  1802. </ColumnInfo>
  1803. </Dataset>
  1804. <Dataset id="ds_main_caredelivelist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1805. <ColumnInfo>
  1806. <Column id="prcphopedd" type="STRING"/>
  1807. <Column id="prcpkindcd" type="STRING"/>
  1808. <Column id="prcpnm" type="STRING"/>
  1809. <Column id="prtlstat" type="STRING"/>
  1810. <Column id="status" type="STRING"/>
  1811. <Column id="prcpdd" type="STRING"/>
  1812. <Column id="times" type="STRING"/>
  1813. <Column id="stepno" type="STRING"/>
  1814. <Column id="prtlprcpno" type="STRING"/>
  1815. <Column id="prcpno" type="STRING"/>
  1816. <Column id="prcphistno" type="STRING"/>
  1817. </ColumnInfo>
  1818. </Dataset>
  1819. <Dataset id="ds_main_caredelivelist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1820. <ColumnInfo>
  1821. <Column id="prcphopedd" type="STRING"/>
  1822. <Column id="prcpkindcd" type="STRING"/>
  1823. <Column id="prcpnm" type="STRING"/>
  1824. <Column id="prtlstat" type="STRING"/>
  1825. <Column id="status" type="STRING"/>
  1826. <Column id="prcpdd" type="STRING"/>
  1827. <Column id="times" type="STRING"/>
  1828. <Column id="stepno" type="STRING"/>
  1829. <Column id="prtlprcpno" type="STRING"/>
  1830. <Column id="prcpno" type="STRING"/>
  1831. <Column id="prcphistno" type="STRING"/>
  1832. </ColumnInfo>
  1833. </Dataset>
  1834. <Dataset id="ds_main_caredelivelist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1835. <ColumnInfo>
  1836. <Column id="prcphopedd" type="STRING"/>
  1837. <Column id="prcpkindcd" type="STRING"/>
  1838. <Column id="prcpnm" type="STRING"/>
  1839. <Column id="prtlstat" type="STRING"/>
  1840. <Column id="status" type="STRING"/>
  1841. <Column id="prcpdd" type="STRING"/>
  1842. <Column id="times" type="STRING"/>
  1843. <Column id="stepno" type="STRING"/>
  1844. <Column id="prtlprcpno" type="STRING"/>
  1845. <Column id="prcpno" type="STRING"/>
  1846. <Column id="prcphistno" type="STRING"/>
  1847. </ColumnInfo>
  1848. </Dataset>
  1849. <Dataset id="ds_main_formlist4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1850. <ColumnInfo>
  1851. <Column id="stepnm" type="STRING"/>
  1852. <Column id="prcpnm" type="STRING"/>
  1853. <Column id="formprogflag" type="STRING"/>
  1854. <Column id="prtlstat" type="STRING"/>
  1855. <Column id="status" type="STRING"/>
  1856. <Column id="prcpdd" type="STRING"/>
  1857. <Column id="times" type="STRING"/>
  1858. <Column id="stepno" type="STRING"/>
  1859. <Column id="prtlprcpno" type="STRING"/>
  1860. <Column id="prcpno" type="STRING"/>
  1861. <Column id="prcphistno" type="STRING"/>
  1862. </ColumnInfo>
  1863. </Dataset>
  1864. <Dataset id="ds_main_formlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1865. <ColumnInfo>
  1866. <Column id="stepnm" type="STRING"/>
  1867. <Column id="prcpnm" type="STRING"/>
  1868. <Column id="formprogflag" type="STRING"/>
  1869. <Column id="prtlstat" type="STRING"/>
  1870. <Column id="status" type="STRING"/>
  1871. <Column id="prcpdd" type="STRING"/>
  1872. <Column id="times" type="STRING"/>
  1873. <Column id="stepno" type="STRING"/>
  1874. <Column id="prtlprcpno" type="STRING"/>
  1875. <Column id="prcpno" type="STRING"/>
  1876. <Column id="prcphistno" type="STRING"/>
  1877. </ColumnInfo>
  1878. </Dataset>
  1879. <Dataset id="ds_main_formlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1880. <ColumnInfo>
  1881. <Column id="stepnm" type="STRING"/>
  1882. <Column id="prcpnm" type="STRING"/>
  1883. <Column id="formprogflag" type="STRING"/>
  1884. <Column id="prtlstat" type="STRING"/>
  1885. <Column id="status" type="STRING"/>
  1886. <Column id="prcpdd" type="STRING"/>
  1887. <Column id="times" type="STRING"/>
  1888. <Column id="stepno" type="STRING"/>
  1889. <Column id="prtlprcpno" type="STRING"/>
  1890. <Column id="prcpno" type="STRING"/>
  1891. <Column id="prcphistno" type="STRING"/>
  1892. </ColumnInfo>
  1893. </Dataset>
  1894. <Dataset id="ds_main_formlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1895. <ColumnInfo>
  1896. <Column id="stepnm" type="STRING"/>
  1897. <Column id="prcpnm" type="STRING"/>
  1898. <Column id="formprogflag" type="STRING"/>
  1899. <Column id="prtlstat" type="STRING"/>
  1900. <Column id="status" type="STRING"/>
  1901. <Column id="prcpdd" type="STRING"/>
  1902. <Column id="times" type="STRING"/>
  1903. <Column id="stepno" type="STRING"/>
  1904. <Column id="prtlprcpno" type="STRING"/>
  1905. <Column id="prcpno" type="STRING"/>
  1906. <Column id="prcphistno" type="STRING"/>
  1907. </ColumnInfo>
  1908. </Dataset>
  1909. <Dataset id="ds_main_etclist4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1910. <ColumnInfo>
  1911. <Column id="prcphopedd" type="STRING"/>
  1912. <Column id="prcpkindcd" type="STRING"/>
  1913. <Column id="prcpclscd" type="STRING"/>
  1914. <Column id="prcpnm" type="STRING"/>
  1915. <Column id="prtlstat" type="STRING"/>
  1916. <Column id="status" type="STRING"/>
  1917. <Column id="prcpdd" type="STRING"/>
  1918. <Column id="times" type="STRING"/>
  1919. <Column id="stepno" type="STRING"/>
  1920. <Column id="prtlprcpno" type="STRING"/>
  1921. <Column id="prcpno" type="STRING"/>
  1922. <Column id="prcphistno" type="STRING"/>
  1923. </ColumnInfo>
  1924. </Dataset>
  1925. <Dataset id="ds_main_etclist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1926. <ColumnInfo>
  1927. <Column id="prcphopedd" type="STRING"/>
  1928. <Column id="prcpkindcd" type="STRING"/>
  1929. <Column id="prcpclscd" type="STRING"/>
  1930. <Column id="prcpnm" type="STRING"/>
  1931. <Column id="prtlstat" type="STRING"/>
  1932. <Column id="status" type="STRING"/>
  1933. <Column id="prcpdd" type="STRING"/>
  1934. <Column id="times" type="STRING"/>
  1935. <Column id="stepno" type="STRING"/>
  1936. <Column id="prtlprcpno" type="STRING"/>
  1937. <Column id="prcpno" type="STRING"/>
  1938. <Column id="prcphistno" type="STRING"/>
  1939. </ColumnInfo>
  1940. </Dataset>
  1941. <Dataset id="ds_main_etclist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1942. <ColumnInfo>
  1943. <Column id="prcphopedd" type="STRING"/>
  1944. <Column id="prcpkindcd" type="STRING"/>
  1945. <Column id="prcpclscd" type="STRING"/>
  1946. <Column id="prcpnm" type="STRING"/>
  1947. <Column id="prtlstat" type="STRING"/>
  1948. <Column id="status" type="STRING"/>
  1949. <Column id="prcpdd" type="STRING"/>
  1950. <Column id="times" type="STRING"/>
  1951. <Column id="stepno" type="STRING"/>
  1952. <Column id="prtlprcpno" type="STRING"/>
  1953. <Column id="prcpno" type="STRING"/>
  1954. <Column id="prcphistno" type="STRING"/>
  1955. </ColumnInfo>
  1956. </Dataset>
  1957. <Dataset id="ds_main_etclist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1958. <ColumnInfo>
  1959. <Column id="prcphopedd" type="STRING"/>
  1960. <Column id="prcpkindcd" type="STRING"/>
  1961. <Column id="prcpclscd" type="STRING"/>
  1962. <Column id="prcpnm" type="STRING"/>
  1963. <Column id="prtlstat" type="STRING"/>
  1964. <Column id="status" type="STRING"/>
  1965. <Column id="prcpdd" type="STRING"/>
  1966. <Column id="times" type="STRING"/>
  1967. <Column id="stepno" type="STRING"/>
  1968. <Column id="prtlprcpno" type="STRING"/>
  1969. <Column id="prcpno" type="STRING"/>
  1970. <Column id="prcphistno" type="STRING"/>
  1971. </ColumnInfo>
  1972. </Dataset>
  1973. <Dataset id="ds_main_prcp_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1974. <ColumnInfo>
  1975. <Column id="status" type="STRING"/>
  1976. <Column id="prcpstatcd" type="STRING"/>
  1977. <Column id="prcpclscd" type="STRING"/>
  1978. <Column id="prcpkindcd" type="STRING"/>
  1979. <Column id="prcpcd" type="STRING"/>
  1980. <Column id="prcpnm" type="STRING"/>
  1981. <Column id="prcpvol" type="STRING"/>
  1982. <Column id="prcpvolunitnm" type="STRING"/>
  1983. <Column id="prcpqty" type="STRING"/>
  1984. <Column id="prcpqtyunitnm" type="STRING"/>
  1985. <Column id="prcptims" type="STRING"/>
  1986. <Column id="prcpdayno" type="STRING"/>
  1987. <Column id="drugmthdspccdnm" type="STRING"/>
  1988. <Column id="prcpmixno" type="STRING"/>
  1989. <Column id="payflagcd" type="STRING"/>
  1990. <Column id="prcpdelivefact" type="STRING"/>
  1991. <Column id="hosinhosoutflag" type="STRING"/>
  1992. <Column id="prcpexecdeptcd" type="STRING"/>
  1993. <Column id="prcphopedd" type="STRING"/>
  1994. <Column id="choiordflag" type="STRING"/>
  1995. <Column id="rgsttm" type="STRING"/>
  1996. <Column id="rgstridnm" type="STRING"/>
  1997. <Column id="prtlprcpno" type="STRING"/>
  1998. <Column id="rsrvdd" type="STRING"/>
  1999. <Column id="pampkspec" type="STRING" size="0"/>
  2000. <Column id="prcppkspec" type="STRING" size="0"/>
  2001. </ColumnInfo>
  2002. </Dataset>
  2003. <Dataset id="ds_main_down_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_down_prcplist_oncolumnchanged">
  2004. <ColumnInfo>
  2005. <Column id="stepnm" type="STRING"/>
  2006. <Column id="prcpclscd" type="STRING"/>
  2007. <Column id="prcpkindcd" type="STRING"/>
  2008. <Column id="prcpcd" type="STRING"/>
  2009. <Column id="prcpnm" type="STRING"/>
  2010. <Column id="drprcpetc7" type="STRING"/>
  2011. <Column id="prcpvolunitnm" type="STRING"/>
  2012. <Column id="drprcpetc8" type="STRING"/>
  2013. <Column id="prcpqtyunitnm" type="STRING"/>
  2014. <Column id="prcptims" type="STRING"/>
  2015. <Column id="prcpdayno" type="STRING"/>
  2016. <Column id="payflagcd" type="STRING"/>
  2017. <Column id="drugmthdspccdnm" type="STRING"/>
  2018. <Column id="prcpmixno" type="STRING"/>
  2019. <Column id="prcpdelivefact" type="STRING"/>
  2020. <Column id="hosinhosoutflag" type="STRING"/>
  2021. <Column id="prcpexecdeptcd" type="STRING"/>
  2022. <Column id="choiordflag" type="STRING"/>
  2023. <Column id="rgsttm" type="STRING"/>
  2024. <Column id="rgstridnm" type="STRING"/>
  2025. <Column id="anstcnfmneedyn" type="STRING"/>
  2026. </ColumnInfo>
  2027. </Dataset>
  2028. <Dataset id="ds_init_prcpkindcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2029. <Dataset id="ds_init_prcpclscd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2030. <Dataset id="ds_init_prcpstatcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2031. <Dataset id="ds_init_hosinprcpresncd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2032. <Dataset id="ds_init_payflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2033. <Dataset id="ds_main_steplist_stepinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2034. <ColumnInfo>
  2035. <Column id="cpgno" type="STRING" size="256"/>
  2036. <Column id="cpghistseq" type="STRING" size="256"/>
  2037. <Column id="cpgflagcd" type="STRING" size="256"/>
  2038. </ColumnInfo>
  2039. <Rows>
  2040. <Row>
  2041. <Col id="cpgno"/>
  2042. <Col id="cpghistseq"/>
  2043. <Col id="cpgflagcd"/>
  2044. </Row>
  2045. </Rows>
  2046. </Dataset>
  2047. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2048. <ColumnInfo>
  2049. <Column id="grdmode" type="STRING" size="256"/>
  2050. <Column id="mstatus" type="STRING" size="256"/>
  2051. <Column id="tmpprcpno" type="STRING" size="256"/>
  2052. </ColumnInfo>
  2053. <Rows>
  2054. <Row>
  2055. <Col id="grdmode">4</Col>
  2056. <Col id="tmpprcpno">0</Col>
  2057. </Row>
  2058. </Rows>
  2059. </Dataset>
  2060. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2061. <ColumnInfo>
  2062. <Column id="prcpdd" type="STRING" size="256"/>
  2063. <Column id="prcpstatcd" type="STRING" size="256"/>
  2064. <Column id="prcpclscd" type="STRING" size="256"/>
  2065. <Column id="prcpkindcd" type="STRING" size="256"/>
  2066. <Column id="hosinprcpresncd" type="STRING" size="256"/>
  2067. <Column id="payflagcd" type="STRING" size="256"/>
  2068. <Column id="prcpddcond" type="STRING" size="256"/>
  2069. </ColumnInfo>
  2070. <Rows>
  2071. <Row>
  2072. <Col id="prcpdd"/>
  2073. <Col id="prcpstatcd"/>
  2074. <Col id="prcpclscd"/>
  2075. <Col id="prcpkindcd"/>
  2076. <Col id="hosinprcpresncd"/>
  2077. <Col id="payflagcd"/>
  2078. <Col id="prcpddcond"/>
  2079. </Row>
  2080. </Rows>
  2081. </Dataset>
  2082. <Dataset id="ds_root" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2083. <ColumnInfo>
  2084. <Column id="cp" type="STRING" size="256"/>
  2085. </ColumnInfo>
  2086. <Rows>
  2087. <Row>
  2088. <Col id="cp">D</Col>
  2089. </Row>
  2090. </Rows>
  2091. </Dataset>
  2092. <Dataset id="ds_temp_getdatalist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2093. <Dataset id="ds_temp_getdatalist_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2094. <Dataset id="ds_temp_formlist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2095. <ColumnInfo>
  2096. <Column id="times" type="STRING" size="256"/>
  2097. <Column id="prcpdd" type="STRING" size="256"/>
  2098. <Column id="prcpcd" type="STRING" size="256"/>
  2099. <Column id="prcpno" type="STRING" size="256"/>
  2100. <Column id="prcpnm" type="STRING" size="256"/>
  2101. <Column id="stepnm" type="STRING" size="256"/>
  2102. <Column id="prcpclscd" type="STRING" size="256"/>
  2103. </ColumnInfo>
  2104. </Dataset>
  2105. <Dataset id="ds_send_data_singdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2106. <Dataset id="ds_temp_choiprcpinfo_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2107. <Dataset id="ds_temp_choiprcpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2108. <ColumnInfo>
  2109. <Column id="saveflag" type="STRING" size="256"/>
  2110. </ColumnInfo>
  2111. <Rows>
  2112. <Row/>
  2113. </Rows>
  2114. </Dataset>
  2115. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2116. <Dataset id="ds_temp_copyset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2117. <Dataset id="ds_main_prcpsrch_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2118. <ColumnInfo>
  2119. <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
  2120. <Column id="prcpstatcd" type="STRING" size="256" sumtext="처방상태코드"/>
  2121. <Column id="prcpclscd" type="STRING" size="256" sumtext="처방분류코드"/>
  2122. <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방종류코드"/>
  2123. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  2124. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  2125. <Column id="prcpvol" type="STRING" size="256" sumtext="처방용량"/>
  2126. <Column id="prcpvolunitnm" type="STRING" size="256" sumtext="처방용량단위명"/>
  2127. <Column id="prcpqty" type="STRING" size="256" sumtext="처방수량"/>
  2128. <Column id="prcpqtyunitnm" type="STRING" size="256" sumtext="처방수량단위명"/>
  2129. <Column id="prcptims" type="STRING" size="256" sumtext="처방횟수"/>
  2130. <Column id="prcpdayno" type="STRING" size="256" sumtext="처방일수"/>
  2131. <Column id="drugmthdspccdnm" type="STRING" size="256" sumtext="투여방법검체코드명"/>
  2132. <Column id="prcpmixno" type="STRING" size="256" sumtext="처방Mix번호"/>
  2133. <Column id="payflagcd" type="STRING" size="256" sumtext="급여구분코드"/>
  2134. <Column id="prcpdelivefact" type="STRING" size="256" sumtext="전달사항"/>
  2135. <Column id="hosinhosoutflag" type="STRING" size="256" sumtext="원내/원외구분"/>
  2136. <Column id="prcpexecdeptcd" type="STRING" size="256" sumtext="처방실시부서코드"/>
  2137. <Column id="prcphopedd" type="STRING" size="256" sumtext="처방희망일시"/>
  2138. <Column id="choiordflag" type="STRING" size="256" sumtext="선택진료구분"/>
  2139. <Column id="rgstdt" type="STRING" size="256" sumtext="등록일시"/>
  2140. <Column id="rgstridnm" type="STRING" size="256" sumtext="등록자명"/>
  2141. <Column id="testrsltunit" type="STRING" size="256" sumtext="검사결과단위"/>
  2142. <Column id="testrsltcnts" type="STRING" size="256" sumtext="검사결과"/>
  2143. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="처방발생구분"/>
  2144. <Column id="prcphistcd" type="STRING" size="256" sumtext="처방이력코드"/>
  2145. <Column id="tempprcpflag" type="STRING" size="256" sumtext="임시처방구분"/>
  2146. <Column id="prcpsetcd" type="STRING" size="256" sumtext="처방SET코드"/>
  2147. <Column id="prcpvolunitflag" type="STRING" size="256" sumtext="처방용량단위구분"/>
  2148. <Column id="prcpqtyunitflag" type="STRING" size="256" sumtext="처방수량단위구분"/>
  2149. <Column id="orgprcpqty" type="STRING" size="256" sumtext="실제처방수량"/>
  2150. <Column id="drugspd" type="STRING" size="256" sumtext="투여속도"/>
  2151. <Column id="drugspdunitflag" type="STRING" size="256" sumtext="투여속도단위구분"/>
  2152. <Column id="powdflag" type="STRING" size="256" sumtext="파우더구분"/>
  2153. <Column id="prnprcpflag" type="STRING" size="256" sumtext="PRN처방구분"/>
  2154. <Column id="prepprcpflag" type="STRING" size="256" sumtext="Prep처방구분"/>
  2155. <Column id="selfprcpflag" type="STRING" size="256" sumtext="자가처방구분"/>
  2156. <Column id="selfdrugflag" type="STRING" size="256" sumtext="SELF약구분"/>
  2157. <Column id="drugpackflag" type="STRING" size="256" sumtext="투약포장구분"/>
  2158. <Column id="erprcpflag" type="STRING" size="256" sumtext="응급처방구분"/>
  2159. <Column id="precureprcpflag" type="STRING" size="256" sumtext="선처치처방구분"/>
  2160. <Column id="nigtprcpflag" type="STRING" size="256" sumtext="야간처방구분"/>
  2161. <Column id="portprcpflag" type="STRING" size="256" sumtext="포터블처방구분"/>
  2162. <Column id="fixprcpflag" type="STRING" size="256" sumtext="정액처방구분"/>
  2163. <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증(력)구분"/>
  2164. <Column id="fastprcpflag" type="STRING" size="256" sumtext="금식처방구분"/>
  2165. <Column id="erreadflag" type="STRING" size="256" sumtext="응급판독구분"/>
  2166. <Column id="prcpdirecflag" type="STRING" size="256" sumtext="처방방향구분"/>
  2167. <Column id="tnsuseflag" type="STRING" size="256" sumtext="수혈사용구분"/>
  2168. <Column id="tnsfiltflag" type="STRING" size="256" sumtext="수혈필터구분"/>
  2169. <Column id="trnptbftestflag" type="STRING" size="256" sumtext="이식전검사구분"/>
  2170. <Column id="offictourhealexamflag" type="STRING" size="256" sumtext="출장건진구분"/>
  2171. <Column id="stemcellflag" type="STRING" size="256" sumtext="조혈모(줄기)세포구분"/>
  2172. <Column id="angioflagcd" type="STRING" size="256" sumtext="Angio구분"/>
  2173. <Column id="opansflagcd" type="STRING" size="256" sumtext="수술마취구분"/>
  2174. <Column id="ansttm" type="STRING" size="256" sumtext="마취시간"/>
  2175. <Column id="mealcalrcnts" type="STRING" size="256" sumtext="식이열량함량"/>
  2176. <Column id="mealprotcnts" type="STRING" size="256" sumtext="식이단백질함량"/>
  2177. <Column id="mealupdtflag" type="STRING" size="256" sumtext="식이수정구분"/>
  2178. <Column id="hosinprcpresncd" type="STRING" size="256" sumtext="원내처방사유코드"/>
  2179. <Column id="etcprcpresncd" type="STRING" size="256" sumtext="기타처방사유코드"/>
  2180. <Column id="drugmthdspccd" type="STRING" size="256" sumtext="투여방법검체코드"/>
  2181. <Column id="issdeptcd" type="STRING" size="256" sumtext="발행부서코드"/>
  2182. <Column id="prcpauthflag" type="STRING" size="256" sumtext="처방권한구분"/>
  2183. <Column id="prcpinptflag" type="STRING" size="256" sumtext="처방입력구분"/>
  2184. <Column id="prcpsignflag" type="STRING" size="256" sumtext="처방서명구분"/>
  2185. <Column id="rateprcpflag" type="STRING" size="256" sumtext="비율처방구분"/>
  2186. <Column id="prcprefseq" type="STRING" size="256" sumtext="처방조회순서"/>
  2187. <Column id="ordreqlnkno" type="STRING" size="256" sumtext="진료의뢰연결번호"/>
  2188. <Column id="testreqlnkno" type="STRING" size="256" sumtext="검사의뢰연결번호"/>
  2189. <Column id="prcplnkdd" type="STRING" size="256" sumtext="처방연계일자"/>
  2190. <Column id="prcplnkno" type="STRING" size="256" sumtext="처방연계번호"/>
  2191. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  2192. <Column id="tootfact" type="STRING" size="256" sumtext="치식사항"/>
  2193. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견내용"/>
  2194. <Column id="prcpessninptflag" type="STRING" size="256" sumtext="처방필수입력구분"/>
  2195. <Column id="grupsnglflag" type="STRING" size="256" sumtext="그룹싱글구분"/>
  2196. <Column id="drugrateqty" type="STRING" size="256" sumtext="투약비율수랑"/>
  2197. <Column id="asttestflag" type="STRING" size="256" sumtext="AST검사구분"/>
  2198. <Column id="clincstdyflag" type="STRING" size="256" sumtext="임상연구구분"/>
  2199. <Column id="prtlno" type="STRING" size="256" sumtext="프로토콜번호"/>
  2200. <Column id="clincstdycd" type="STRING" size="256" sumtext="임상연구코드"/>
  2201. <Column id="optermcd" type="STRING" size="256" sumtext="수술용어"/>
  2202. <Column id="prcpflag" type="STRING" size="256" sumtext="처방구분"/>
  2203. <Column id="hscttempprcpflag" type="STRING" size="256" sumtext="HSCT임시처방구분"/>
  2204. <Column id="inclprcpcd" type="STRING" size="256" sumtext="종속처방코드"/>
  2205. <Column id="inclprcpno" type="STRING" size="256" sumtext="종속처방번호"/>
  2206. <Column id="pampkspec" type="STRING" size="256" sumtext="원무PK내역"/>
  2207. <Column id="prcppkspec" type="STRING" size="256" sumtext="처방PK내역"/>
  2208. <Column id="calcscormastspec" type="STRING" size="256" sumtext="수가마스터내역"/>
  2209. <Column id="drugmastspec" type="STRING" size="256" sumtext="약품마스터내역"/>
  2210. <Column id="rateprcpspec" type="STRING" size="256" sumtext="비율처방내역"/>
  2211. <Column id="matrsetprcpspec" type="STRING" size="256" sumtext="재료SET처방내역"/>
  2212. <Column id="suppdeptspec" type="STRING" size="256" sumtext="지원부서내역"/>
  2213. <Column id="contprcpspec" type="STRING" size="256" sumtext="연속처방내역"/>
  2214. <Column id="etclnkspec" type="STRING" size="256" sumtext="기타연계내역"/>
  2215. <Column id="srchcondcnts" type="STRING" size="256" sumtext="검색조건내용"/>
  2216. <Column id="orgprcpnm" type="STRING" size="256" sumtext="수가처방명"/>
  2217. <Column id="chkcol" type="STRING" size="256" sumtext="전처방check표시"/>
  2218. <Column id="hsctdelivepos" type="STRING" size="256" sumtext="hsct전달위치"/>
  2219. <Column id="hsctlnkno" type="STRING" size="256" sumtext="hsct연계번호"/>
  2220. <Column id="etcprcpflag" type="STRING" size="256" sumtext="기타처방구분"/>
  2221. <Column id="aftcertflag" type="STRING" size="256" sumtext="후인증 구분"/>
  2222. <Column id="aftcertdrid" type="STRING" size="256" sumtext="후인증 대상의사 ID"/>
  2223. <Column id="prcpvalidd" type="STRING" size="256" sumtext="처방유효일자"/>
  2224. <Column id="spynpy1" type="STRING" size="256" sumtext="환자급비유형"/>
  2225. <Column id="specdrid" type="STRING" size="256" sumtext="선택진료의ID"/>
  2226. <Column id="anticncrprtlno" type="STRING" size="256" sumtext="항암프로토콜에 대한 코드로 일련번호 형태로 관리"/>
  2227. <Column id="anticncrdayno" type="STRING" size="256" sumtext="항암프로토콜의 실시 차수"/>
  2228. <Column id="druglnkno" type="STRING" size="256" sumtext="항암프로토콜,TPN처방의 처방번호"/>
  2229. <Column id="rehbprcpcurefreqflag" type="STRING" size="256" sumtext="재활처방치료빈도"/>
  2230. <Column id="dietprcpgenrflag" type="STRING" size="256" sumtext="식이처방발생구분"/>
  2231. <Column id="irpayflag" type="STRING" size="256" sumtext="Irradiation급비구분"/>
  2232. <Column id="irflag" type="STRING" size="256" sumtext="Irradiation구분"/>
  2233. <Column id="procerdietflag" type="STRING" size="256" sumtext="보호자식이구분"/>
  2234. <Column id="diagtestconttestintvlflag" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  2235. <Column id="drugindependpackflag" type="STRING" size="256" sumtext="따로포장구분"/>
  2236. <Column id="diagtestconttestbasetm" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  2237. <Column id="diagtestconttestorgtims" type="STRING" size="256" sumtext="진단검사연속검사원횟수"/>
  2238. <Column id="ermediscmngtresncd" type="STRING" size="256" sumtext="응급의학관리료사유코드"/>
  2239. <Column id="rehbprcpenddd" type="STRING" size="256" sumtext="재활처방마감일자"/>
  2240. <Column id="matrallsizespecid" type="STRING" size="256" sumtext="재료AllSize규격ID"/>
  2241. <Column id="rehbprcpcurepartcd" type="STRING" size="256" sumtext="재활처방치료부위"/>
  2242. <Column id="lowdrugresncd" type="STRING" size="256" sumtext="저함량배수사유코드"/>
  2243. <Column id="tfdtlcd" type="STRING" size="256" sumtext="경장영양식세부코드"/>
  2244. <Column id="dnorreqlnkno" type="STRING" size="256" sumtext="HLA검사의뢰지"/>
  2245. <Column id="subcretno" type="STRING" size="256" sumtext="기왕증,임상연구보조유형"/>
  2246. <Column id="exptmthdfact" type="STRING" size="256" sumtext="예외용법설명"/>
  2247. <Column id="lowdrugresnetcfact" type="STRING" size="256" sumtext="기타저함량배수 상세사유"/>
  2248. <Column id="diagtestconttestcdspec" type="STRING" size="256" sumtext="진단검사 연속검사코드내역"/>
  2249. <Column id="drgacptflag" type="STRING" size="256" sumtext="DRG인정 Flag"/>
  2250. <Column id="drprcpetc1" type="STRING" size="256" sumtext="의사처방기타1"/>
  2251. <Column id="drprcpetc2" type="STRING" size="256" sumtext="의사처방기타2"/>
  2252. <Column id="drprcpetc3" type="STRING" size="256" sumtext="의사처방기타3"/>
  2253. <Column id="drprcpetc4" type="STRING" size="256" sumtext="의사처방기타4"/>
  2254. <Column id="drprcpetc5" type="STRING" size="256" sumtext="의사처방기타5"/>
  2255. <Column id="drprcpetc6" type="STRING" size="256" sumtext="의사처방기타6"/>
  2256. <Column id="drprcpetc7" type="STRING" size="256" sumtext="의사처방기타7"/>
  2257. <Column id="drprcpetc8" type="STRING" size="256" sumtext="의사처방기타8"/>
  2258. <Column id="drprcpetc9" type="STRING" size="256" sumtext="의사처방기타9"/>
  2259. <Column id="drprcpetc10" type="STRING" size="256" sumtext="의사처방기타10"/>
  2260. <Column id="tempcol1" type="STRING" size="256" sumtext="임시컬럼1"/>
  2261. <Column id="tempcol2" type="STRING" size="256" sumtext="임시컬럼2"/>
  2262. <Column id="tempcol3" type="STRING" size="256" sumtext="임시컬럼3"/>
  2263. <Column id="tempcol4" type="STRING" size="256" sumtext="임시컬럼4"/>
  2264. <Column id="tempcol5" type="STRING" size="256" sumtext="임시컬럼5"/>
  2265. <Column id="tempcol6" type="STRING" size="256" sumtext="임시컬럼6"/>
  2266. <Column id="tempcol7" type="STRING" size="256" sumtext="임시컬럼7"/>
  2267. <Column id="tempcol8" type="STRING" size="256" sumtext="임시컬럼8"/>
  2268. <Column id="tempcol9" type="STRING" size="256" sumtext="임시컬럼9"/>
  2269. <Column id="tempcol10" type="STRING" size="256" sumtext="임시컬럼10"/>
  2270. <Column id="tempcol11" type="STRING" size="256" sumtext="임시컬럼11"/>
  2271. <Column id="tempcol12" type="STRING" size="256" sumtext="임시컬럼12"/>
  2272. <Column id="tempcol13" type="STRING" size="256" sumtext="임시컬럼13"/>
  2273. <Column id="tempcol14" type="STRING" size="256" sumtext="임시컬럼14"/>
  2274. <Column id="tempcol15" type="STRING" size="256" sumtext="임시컬럼15"/>
  2275. <Column id="tempcol16" type="STRING" size="256" sumtext="임시컬럼16"/>
  2276. <Column id="tempcol17" type="STRING" size="256" sumtext="임시컬럼17"/>
  2277. <Column id="tempcol18" type="STRING" size="256" sumtext="임시컬럼18"/>
  2278. <Column id="tempcol19" type="STRING" size="256" sumtext="임시컬럼19"/>
  2279. <Column id="tempcol20" type="STRING" size="256" sumtext="임시컬럼20"/>
  2280. <Column id="tempcol21" type="STRING" size="256" sumtext="임시컬럼21"/>
  2281. <Column id="tempcol22" type="STRING" size="256" sumtext="임시컬럼22"/>
  2282. <Column id="tempcol23" type="STRING" size="256" sumtext="임시컬럼23"/>
  2283. <Column id="tempcol24" type="STRING" size="256" sumtext="임시컬럼24"/>
  2284. <Column id="tempcol25" type="STRING" size="256" sumtext="임시컬럼25"/>
  2285. <Column id="stepno" type="STRING" size="256" sumtext="CP스텝번호"/>
  2286. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  2287. <Column id="anstcnfmneedyn" type="STRING" size="256" sumtext="수술마취확정필요여부"/>
  2288. <Column id="checkyn" type="STRING" size="256" sumtext="수술마취확정필요여부(CPG속성관리시 사용함)"/>
  2289. <Column id="setno" type="STRING" size="256" sumtext="셋번호(CPG속성관리시 사용함)"/>
  2290. <Column id="settypecd" type="STRING" size="256" sumtext="셋형태코드(CPG속성관리시 사용함)"/>
  2291. <Column id="setcdno" type="STRING" size="256" sumtext="셋코드번호(CPG속성관리시 사용함)"/>
  2292. <Column id="essnprcpyn" type="STRING" size="256" sumtext="스텝필수여부(CPG 스텝필수 속성번호)"/>
  2293. <Column id="limno" type="STRING" size="256" sumtext="제한시간번호(CPG 스텝필수 속성번호)"/>
  2294. <Column id="limhistno" type="STRING" size="256" sumtext="제한시간이력번호(CPG 스텝필수 속성번호)"/>
  2295. <Column id="rowkey" type="STRING" size="256" sumtext="rowid"/>
  2296. <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
  2297. <Column id="rsrvdd" type="STRING" size="256"/>
  2298. <Column id="prtlprcpno" type="STRING" size="256"/>
  2299. </ColumnInfo>
  2300. </Dataset>
  2301. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2302. <Dataset id="ds_temp_setlist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2303. <Dataset id="ds_cmb_hosinhosoutflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2304. <ColumnInfo>
  2305. <Column id="label" type="STRING" size="256"/>
  2306. <Column id="value" type="STRING" size="256"/>
  2307. </ColumnInfo>
  2308. <Rows>
  2309. <Row>
  2310. <Col id="label">원내</Col>
  2311. <Col id="value">I</Col>
  2312. </Row>
  2313. <Row>
  2314. <Col id="label">원외</Col>
  2315. <Col id="value">O</Col>
  2316. </Row>
  2317. <Row>
  2318. <Col id="label"/>
  2319. <Col id="value"/>
  2320. </Row>
  2321. </Rows>
  2322. </Dataset>
  2323. <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2324. <ColumnInfo>
  2325. <Column id="depthngnm" type="STRING" size="256"/>
  2326. <Column id="deptcd" type="STRING" size="256"/>
  2327. </ColumnInfo>
  2328. </Dataset>
  2329. <Dataset id="ds_cmb_anstcnfmneedyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2330. <ColumnInfo>
  2331. <Column id="label" type="STRING" size="256"/>
  2332. <Column id="value" type="STRING" size="256"/>
  2333. </ColumnInfo>
  2334. <Rows>
  2335. <Row>
  2336. <Col id="label">Y</Col>
  2337. <Col id="value">Y</Col>
  2338. </Row>
  2339. <Row>
  2340. <Col id="label">N</Col>
  2341. <Col id="value">N</Col>
  2342. </Row>
  2343. </Rows>
  2344. </Dataset>
  2345. <Dataset id="ds_main_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2346. <ColumnInfo>
  2347. <Column id="status" type="STRING" size="256" sumtext="입력,수정,삭제,d/c"/>
  2348. <Column id="prcpstatcd" type="STRING" size="256" sumtext="처방상태코드"/>
  2349. <Column id="prcpclscd" type="STRING" size="256" sumtext="처방분류코드"/>
  2350. <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방종류코드"/>
  2351. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  2352. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  2353. <Column id="prcpvol" type="BIGDECIMAL" size="256" sumtext="처방용량"/>
  2354. <Column id="prcpvolunitnm" type="STRING" size="256" sumtext="처방용량단위명"/>
  2355. <Column id="prcpqty" type="STRING" size="256" sumtext="처방수량"/>
  2356. <Column id="prcpqtyunitnm" type="STRING" size="256" sumtext="처방수량단위명"/>
  2357. <Column id="prcptims" type="STRING" size="256" sumtext="처방횟수"/>
  2358. <Column id="prcpdayno" type="STRING" size="256" sumtext="처방일수"/>
  2359. <Column id="drugmthdspccdnm" type="STRING" size="256" sumtext="투여방법검체코드명"/>
  2360. <Column id="prcpmixno" type="STRING" size="256" sumtext="처방mix번호"/>
  2361. <Column id="payflagcd" type="STRING" size="256" sumtext="급여구분코드"/>
  2362. <Column id="prcpdelivefact" type="STRING" size="256" sumtext="전달사항"/>
  2363. <Column id="hosinhosoutflag" type="STRING" size="256" sumtext="원내/원외구분"/>
  2364. <Column id="prcpexecdeptcd" type="STRING" size="256" sumtext="처방실시부서코드"/>
  2365. <Column id="prcphopedd" type="STRING" size="256" sumtext="처방희망일시"/>
  2366. <Column id="choiordflag" type="STRING" size="256" sumtext="선택진료구분"/>
  2367. <Column id="rgstdt" type="STRING" size="256" sumtext="등록일시"/>
  2368. <Column id="rgstridnm" type="STRING" size="256" sumtext="등록자명"/>
  2369. <Column id="testrsltunit" type="STRING" size="256" sumtext="검사결과단위"/>
  2370. <Column id="testrsltcnts" type="STRING" size="256" sumtext="검사결과"/>
  2371. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="처방발생구분"/>
  2372. <Column id="prcphistcd" type="STRING" size="256" sumtext="처방이력코드"/>
  2373. <Column id="tempprcpflag" type="STRING" size="256" sumtext="임시처방구분"/>
  2374. <Column id="prcpsetcd" type="STRING" size="256" sumtext="처방set코드"/>
  2375. <Column id="prcpvolunitflag" type="STRING" size="256" sumtext="처방용량단위구분"/>
  2376. <Column id="prcpqtyunitflag" type="STRING" size="256" sumtext="처방수량단위구분"/>
  2377. <Column id="orgprcpqty" type="STRING" size="256" sumtext="실제처방수량"/>
  2378. <Column id="drugspd" type="STRING" size="256" sumtext="투여속도"/>
  2379. <Column id="drugspdunitflag" type="STRING" size="256" sumtext="투여속도단위구분"/>
  2380. <Column id="powdflag" type="STRING" size="256" sumtext="파우더구분"/>
  2381. <Column id="prnprcpflag" type="STRING" size="256" sumtext="prn처방구분"/>
  2382. <Column id="prepprcpflag" type="STRING" size="256" sumtext="prep처방구분"/>
  2383. <Column id="selfprcpflag" type="STRING" size="256" sumtext="자가처방구분"/>
  2384. <Column id="selfdrugflag" type="STRING" size="256" sumtext="self약구분"/>
  2385. <Column id="drugpackflag" type="STRING" size="256" sumtext="투약포장구분"/>
  2386. <Column id="erprcpflag" type="STRING" size="256" sumtext="응급처방구분"/>
  2387. <Column id="precureprcpflag" type="STRING" size="256" sumtext="선처치처방구분"/>
  2388. <Column id="nigtprcpflag" type="STRING" size="256" sumtext="야간처방구분"/>
  2389. <Column id="portprcpflag" type="STRING" size="256" sumtext="포터블처방구분"/>
  2390. <Column id="fixprcpflag" type="STRING" size="256" sumtext="정액처방구분"/>
  2391. <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증(력)구분"/>
  2392. <Column id="fastprcpflag" type="STRING" size="256" sumtext="금식처방구분"/>
  2393. <Column id="erreadflag" type="STRING" size="256" sumtext="응급판독구분"/>
  2394. <Column id="prcpdirecflag" type="STRING" size="256" sumtext="처방방향구분"/>
  2395. <Column id="tnsuseflag" type="STRING" size="256" sumtext="수혈사용구분"/>
  2396. <Column id="tnsfiltflag" type="STRING" size="256" sumtext="수혈필터구분"/>
  2397. <Column id="trnptbftestflag" type="STRING" size="256" sumtext="이식전검사구분"/>
  2398. <Column id="offictourhealexamflag" type="STRING" size="256" sumtext="출장건진구분"/>
  2399. <Column id="stemcellflag" type="STRING" size="256" sumtext="조혈모(줄기)세포구분"/>
  2400. <Column id="angioflagcd" type="STRING" size="256" sumtext="angio구분"/>
  2401. <Column id="opansflagcd" type="STRING" size="256" sumtext="수술마취구분"/>
  2402. <Column id="ansttm" type="STRING" size="256" sumtext="마취시간"/>
  2403. <Column id="mealcalrcnts" type="STRING" size="256" sumtext="식이열량함량"/>
  2404. <Column id="mealprotcnts" type="STRING" size="256" sumtext="식이단백질함량"/>
  2405. <Column id="mealupdtflag" type="STRING" size="256" sumtext="식이수정구분"/>
  2406. <Column id="hosinprcpresncd" type="STRING" size="256" sumtext="원내처방사유코드"/>
  2407. <Column id="etcprcpresncd" type="STRING" size="256" sumtext="기타처방사유코드"/>
  2408. <Column id="drugmthdspccd" type="STRING" size="256" sumtext="투여방법검체코드"/>
  2409. <Column id="issdeptcd" type="STRING" size="256" sumtext="발행부서코드"/>
  2410. <Column id="prcpauthflag" type="STRING" size="256" sumtext="처방권한구분"/>
  2411. <Column id="prcpinptflag" type="STRING" size="256" sumtext="처방입력구분"/>
  2412. <Column id="prcpsignflag" type="STRING" size="256" sumtext="처방서명구분"/>
  2413. <Column id="rateprcpflag" type="STRING" size="256" sumtext="비율처방구분"/>
  2414. <Column id="prcprefseq" type="STRING" size="256" sumtext="처방조회순서"/>
  2415. <Column id="ordreqlnkno" type="STRING" size="256" sumtext="진료의뢰연결번호"/>
  2416. <Column id="testreqlnkno" type="STRING" size="256" sumtext="검사의뢰연결번호"/>
  2417. <Column id="prcplnkdd" type="STRING" size="256" sumtext="처방연계일자"/>
  2418. <Column id="prcplnkno" type="STRING" size="256" sumtext="처방연계번호"/>
  2419. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  2420. <Column id="tootfact" type="STRING" size="256" sumtext="치식사항"/>
  2421. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견내용"/>
  2422. <Column id="prcpessninptflag" type="STRING" size="256" sumtext="처방필수입력구분"/>
  2423. <Column id="grupsnglflag" type="STRING" size="256" sumtext="그룹싱글구분"/>
  2424. <Column id="drugrateqty" type="STRING" size="256" sumtext="투약비율수랑"/>
  2425. <Column id="asttestflag" type="STRING" size="256" sumtext="ast검사구분"/>
  2426. <Column id="clincstdyflag" type="STRING" size="256" sumtext="임상연구구분"/>
  2427. <Column id="prtlno" type="STRING" size="256" sumtext="프로토콜번호"/>
  2428. <Column id="clincstdycd" type="STRING" size="256" sumtext="임상연구코드"/>
  2429. <Column id="optermcd" type="STRING" size="256" sumtext="수술용어"/>
  2430. <Column id="prcpflag" type="STRING" size="256" sumtext="처방구분"/>
  2431. <Column id="hscttempprcpflag" type="STRING" size="256" sumtext="hsct임시처방구분"/>
  2432. <Column id="inclprcpcd" type="STRING" size="256" sumtext="종속처방코드"/>
  2433. <Column id="inclprcpno" type="STRING" size="256" sumtext="종속처방번호"/>
  2434. <Column id="pampkspec" type="STRING" size="256" sumtext="원무pk내역"/>
  2435. <Column id="prcppkspec" type="STRING" size="256" sumtext="처방pk내역"/>
  2436. <Column id="calcscormastspec" type="STRING" size="256" sumtext="수가마스터내역"/>
  2437. <Column id="drugmastspec" type="STRING" size="256" sumtext="약품마스터내역"/>
  2438. <Column id="rateprcpspec" type="STRING" size="256" sumtext="비율처방내역"/>
  2439. <Column id="matrsetprcpspec" type="STRING" size="256" sumtext="재료set처방내역"/>
  2440. <Column id="suppdeptspec" type="STRING" size="256" sumtext="지원부서내역"/>
  2441. <Column id="contprcpspec" type="STRING" size="256" sumtext="연속처방내역"/>
  2442. <Column id="etclnkspec" type="STRING" size="256" sumtext="기타연계내역"/>
  2443. <Column id="srchcondcnts" type="STRING" size="256" sumtext="검색조건내용"/>
  2444. <Column id="orgprcpnm" type="STRING" size="256" sumtext="수가처방명"/>
  2445. <Column id="chkcol" type="STRING" size="256" sumtext="전처방check표시"/>
  2446. <Column id="hsctdelivepos" type="STRING" size="256" sumtext="hsct전달위치"/>
  2447. <Column id="hsctlnkno" type="STRING" size="256" sumtext="hsct연계번호"/>
  2448. <Column id="etcprcpflag" type="STRING" size="256" sumtext="기타처방구분"/>
  2449. <Column id="aftcertflag" type="STRING" size="256" sumtext="후인증구분"/>
  2450. <Column id="aftcertdrid" type="STRING" size="256" sumtext="후인증대상의사id"/>
  2451. <Column id="prcpvalidd" type="STRING" size="256" sumtext="처방유효일자"/>
  2452. <Column id="spynpy1" type="STRING" size="256" sumtext="환자급비유형"/>
  2453. <Column id="specdrid" type="STRING" size="256" sumtext="선택진료의id"/>
  2454. <Column id="specdrnm" type="STRING" size="256" sumtext="선택진료의명"/>
  2455. <Column id="anticncrprtlno" type="STRING" size="256" sumtext="항암프로토콜에대한코드로일련번호형태로관리"/>
  2456. <Column id="anticncrdayno" type="STRING" size="256" sumtext="항암프로토콜의실시차수"/>
  2457. <Column id="druglnkno" type="STRING" size="256" sumtext="항암프로토콜,tpn처방의처방번호"/>
  2458. <Column id="rehbprcpcurefreqflag" type="STRING" size="256" sumtext="재활처방치료빈도"/>
  2459. <Column id="dietprcpgenrflag" type="STRING" size="256" sumtext="식이처방발생구분"/>
  2460. <Column id="irpayflag" type="STRING" size="256" sumtext="irradiation급비구분"/>
  2461. <Column id="irflag" type="STRING" size="256" sumtext="irradiation구분"/>
  2462. <Column id="procerdietflag" type="STRING" size="256" sumtext="보호자식이구분"/>
  2463. <Column id="diagtestconttestintvlflag" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  2464. <Column id="drugindependpackflag" type="STRING" size="256" sumtext="따로포장구분"/>
  2465. <Column id="diagtestconttestbasetm" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  2466. <Column id="diagtestconttestorgtims" type="STRING" size="256" sumtext="진단검사연속검사원횟수"/>
  2467. <Column id="ermediscmngtresncd" type="STRING" size="256" sumtext="응급의학관리료사유코드"/>
  2468. <Column id="rehbprcpenddd" type="STRING" size="256" sumtext="재활처방마감일자"/>
  2469. <Column id="matrallsizespecid" type="STRING" size="256" sumtext="재료allsize규격id"/>
  2470. <Column id="rehbprcpcurepartcd" type="STRING" size="256" sumtext="재활처방치료부위"/>
  2471. <Column id="lowdrugresncd" type="STRING" size="256" sumtext="저함량배수사유코드"/>
  2472. <Column id="tfdtlcd" type="STRING" size="256" sumtext="경장영양식세부코드"/>
  2473. <Column id="dnorreqlnkno" type="STRING" size="256" sumtext="hla검사의뢰지"/>
  2474. <Column id="subcretno" type="STRING" size="256" sumtext="기왕증,임상연구보조유형"/>
  2475. <Column id="exptmthdfact" type="STRING" size="256" sumtext="예외용법설명"/>
  2476. <Column id="lowdrugresnetcfact" type="STRING" size="256" sumtext="기타저함량배수상세사유"/>
  2477. <Column id="diagtestconttestcdspec" type="STRING" size="256" sumtext="진단검사연속검사코드내역"/>
  2478. <Column id="drgacptflag" type="STRING" size="256" sumtext="drg인정flag"/>
  2479. <Column id="drprcpetc1" type="STRING" size="256" sumtext="의사처방기타1"/>
  2480. <Column id="drprcpetc2" type="STRING" size="256" sumtext="의사처방기타2"/>
  2481. <Column id="drprcpetc3" type="STRING" size="256" sumtext="의사처방기타3"/>
  2482. <Column id="drprcpetc4" type="STRING" size="256" sumtext="의사처방기타4"/>
  2483. <Column id="drprcpetc5" type="STRING" size="256" sumtext="의사처방기타5"/>
  2484. <Column id="drprcpetc6" type="STRING" size="256" sumtext="의사처방기타6"/>
  2485. <Column id="drprcpetc7" type="STRING" size="256" sumtext="의사처방기타7"/>
  2486. <Column id="drprcpetc8" type="STRING" size="256" sumtext="의사처방기타8"/>
  2487. <Column id="drprcpetc9" type="STRING" size="256" sumtext="의사처방기타9"/>
  2488. <Column id="drprcpetc10" type="STRING" size="256" sumtext="의사처방기타10"/>
  2489. <Column id="tempcol1" type="STRING" size="256" sumtext="임시컬럼1"/>
  2490. <Column id="tempcol2" type="STRING" size="256" sumtext="임시컬럼2"/>
  2491. <Column id="tempcol3" type="STRING" size="256" sumtext="임시컬럼3"/>
  2492. <Column id="tempcol4" type="STRING" size="256" sumtext="임시컬럼4"/>
  2493. <Column id="tempcol5" type="STRING" size="256" sumtext="임시컬럼5"/>
  2494. <Column id="tempcol6" type="STRING" size="256" sumtext="임시컬럼6"/>
  2495. <Column id="tempcol7" type="STRING" size="256" sumtext="임시컬럼7"/>
  2496. <Column id="tempcol8" type="STRING" size="256" sumtext="임시컬럼8"/>
  2497. <Column id="tempcol9" type="STRING" size="256" sumtext="임시컬럼9"/>
  2498. <Column id="tempcol10" type="STRING" size="256" sumtext="임시컬럼10"/>
  2499. <Column id="tempcol11" type="STRING" size="256" sumtext="임시컬럼11"/>
  2500. <Column id="tempcol12" type="STRING" size="256" sumtext="임시컬럼12"/>
  2501. <Column id="tempcol13" type="STRING" size="256" sumtext="임시컬럼13"/>
  2502. <Column id="tempcol14" type="STRING" size="256" sumtext="임시컬럼14"/>
  2503. <Column id="tempcol15" type="STRING" size="256" sumtext="임시컬럼15"/>
  2504. <Column id="tempcol16" type="STRING" size="256" sumtext="임시컬럼16"/>
  2505. <Column id="tempcol17" type="STRING" size="256" sumtext="임시컬럼17"/>
  2506. <Column id="tempcol18" type="STRING" size="256" sumtext="임시컬럼18"/>
  2507. <Column id="tempcol19" type="STRING" size="256" sumtext="임시컬럼19"/>
  2508. <Column id="tempcol20" type="STRING" size="256" sumtext="임시컬럼20"/>
  2509. <Column id="tempcol21" type="STRING" size="256" sumtext="임시컬럼21"/>
  2510. <Column id="tempcol22" type="STRING" size="256" sumtext="임시컬럼22"/>
  2511. <Column id="tempcol23" type="STRING" size="256" sumtext="임시컬럼23"/>
  2512. <Column id="tempcol24" type="STRING" size="256" sumtext="임시컬럼24"/>
  2513. <Column id="tempcol25" type="STRING" size="256" sumtext="임시컬럼25"/>
  2514. <Column id="rgstdeptcd" type="STRING" size="256" sumtext="최초등록부서(insert)"/>
  2515. <Column id="prcpclassnm" type="STRING" size="256" sumtext="처방분류명"/>
  2516. <Column id="rowkey" type="STRING" size="256" sumtext="rowid"/>
  2517. <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
  2518. </ColumnInfo>
  2519. </Dataset>
  2520. <Dataset id="ds_MouseR1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2521. <ColumnInfo>
  2522. <Column id="func" type="STRING" size="256"/>
  2523. <Column id="label" type="STRING" size="256"/>
  2524. <Column id="level" type="STRING" size="256"/>
  2525. </ColumnInfo>
  2526. <Rows>
  2527. <Row>
  2528. <Col id="label"> 수정</Col>
  2529. <Col id="func">fSetPrcp</Col>
  2530. <Col id="level">0</Col>
  2531. </Row>
  2532. <Row>
  2533. <Col id="label"> 추가</Col>
  2534. <Col id="func">fAddPrcp</Col>
  2535. <Col id="level">0</Col>
  2536. </Row>
  2537. <Row>
  2538. <Col id="label"> 삭제</Col>
  2539. <Col id="func">fDelPrcp</Col>
  2540. <Col id="level">0</Col>
  2541. </Row>
  2542. </Rows>
  2543. </Dataset>
  2544. <Dataset id="ds_MouseR2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2545. <ColumnInfo>
  2546. <Column id="func" type="STRING" size="256"/>
  2547. <Column id="label" type="STRING" size="256"/>
  2548. <Column id="level" type="STRING" size="256"/>
  2549. </ColumnInfo>
  2550. <Rows>
  2551. <Row>
  2552. <Col id="label"> 수정</Col>
  2553. <Col id="func">fSetPrcp</Col>
  2554. <Col id="level">0</Col>
  2555. </Row>
  2556. <Row>
  2557. <Col id="label"> 추가</Col>
  2558. <Col id="func">fAddPrcp</Col>
  2559. <Col id="level">0</Col>
  2560. </Row>
  2561. <Row>
  2562. <Col id="label"> 삭제</Col>
  2563. <Col id="func">fDelPrcp</Col>
  2564. <Col id="level">0</Col>
  2565. </Row>
  2566. <Row>
  2567. <Col id="label">-</Col>
  2568. <Col id="func"/>
  2569. <Col id="level">0</Col>
  2570. </Row>
  2571. <Row>
  2572. <Col id="label">통합검사결과조회</Col>
  2573. <Col id="func">fOpenTestRslt</Col>
  2574. <Col id="level">0</Col>
  2575. </Row>
  2576. </Rows>
  2577. </Dataset>
  2578. <Dataset id="ds_prcptemp_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2579. <Dataset id="ds_main_hichartlist01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2580. <ColumnInfo>
  2581. <Column id="times" type="STRING" size="256"/>
  2582. <Column id="prcpdd" type="STRING" size="256"/>
  2583. <Column id="prcpcd" type="STRING" size="256"/>
  2584. <Column id="prcpno" type="STRING" size="256"/>
  2585. <Column id="prcpnm" type="STRING" size="256"/>
  2586. <Column id="stepnm" type="STRING" size="256"/>
  2587. <Column id="prcpclscd" type="STRING" size="256"/>
  2588. </ColumnInfo>
  2589. </Dataset>
  2590. <Dataset id="ds_main_hichartlist02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2591. <ColumnInfo>
  2592. <Column id="times" type="STRING" size="256"/>
  2593. <Column id="prcpdd" type="STRING" size="256"/>
  2594. <Column id="prcpcd" type="STRING" size="256"/>
  2595. <Column id="prcpno" type="STRING" size="256"/>
  2596. <Column id="prcpnm" type="STRING" size="256"/>
  2597. <Column id="stepnm" type="STRING" size="256"/>
  2598. <Column id="prcpclscd" type="STRING" size="256"/>
  2599. </ColumnInfo>
  2600. </Dataset>
  2601. <Dataset id="ds_main_hichartlist03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2602. <ColumnInfo>
  2603. <Column id="times" type="STRING" size="256"/>
  2604. <Column id="prcpdd" type="STRING" size="256"/>
  2605. <Column id="prcpcd" type="STRING" size="256"/>
  2606. <Column id="prcpno" type="STRING" size="256"/>
  2607. <Column id="prcpnm" type="STRING" size="256"/>
  2608. <Column id="stepnm" type="STRING" size="256"/>
  2609. <Column id="prcpclscd" type="STRING" size="256"/>
  2610. </ColumnInfo>
  2611. </Dataset>
  2612. <Dataset id="ds_main_hichartlist04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2613. <ColumnInfo>
  2614. <Column id="times" type="STRING" size="256"/>
  2615. <Column id="prcpdd" type="STRING" size="256"/>
  2616. <Column id="prcpcd" type="STRING" size="256"/>
  2617. <Column id="prcpno" type="STRING" size="256"/>
  2618. <Column id="prcpnm" type="STRING" size="256"/>
  2619. <Column id="stepnm" type="STRING" size="256"/>
  2620. <Column id="prcpclscd" type="STRING" size="256"/>
  2621. </ColumnInfo>
  2622. </Dataset>
  2623. <Dataset id="ds_temp_hichart_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2624. <ColumnInfo>
  2625. <Column id="times" type="STRING" size="256"/>
  2626. <Column id="prcpdd" type="STRING" size="256"/>
  2627. <Column id="prcpcd" type="STRING" size="256"/>
  2628. <Column id="prcpno" type="STRING" size="256"/>
  2629. <Column id="prcpnm" type="STRING" size="256"/>
  2630. <Column id="stepnm" type="STRING" size="256"/>
  2631. <Column id="prcpclscd" type="STRING" size="256"/>
  2632. </ColumnInfo>
  2633. </Dataset>
  2634. </Objects>
  2635. <Bind>
  2636. <BindItem id="item0" compid="cmb_prcpdd" propid="value" datasetid="ds_init" columnid="prcpdd"/>
  2637. </Bind>
  2638. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  2639. * System Name :
  2640. * Job Name :
  2641. * Creator :
  2642. * Make Date : 2015-04-15
  2643. * Description :
  2644. *---------------------------------------------------------------------------------------
  2645. * Modify Date Modifier Modify Description
  2646. *---------------------------------------------------------------------------------------
  2647. * 2015-04-15 Live Converter TF->XP
  2648. *
  2649. *---------------------------------------------------------------------------------------
  2650. ****************************************************************************************/
  2651. //=======================================================================================
  2652. // Lib Include
  2653. //---------------------------------------------------------------------------------------
  2654. include "com_commonxp::comm_main.xjs";
  2655. include "emr_prcpmngtxp::MMOCommon.xjs";
  2656. include "emr_prcpmngtxp::MMO001.xjs";
  2657. include "emr_prcpmngtxp::SMMMO00100.xjs";
  2658. //include "emr_prcpmngtxp::MMO001.xjs"
  2659. //Global Variant
  2660. var timesArray = "";
  2661. var prcpddArray = "";
  2662. var setArray = "";
  2663. var stepstatArray = "";
  2664. var openerNM = "";
  2665. var dayCnt = 0;
  2666. var cpgno = "";
  2667. var cpghistno = "";
  2668. var cpgflagcd = ""; //W or G
  2669. var cpgappno = "";
  2670. var pamInfo = "";
  2671. var pageCnt = 1;
  2672. var currentViewPage = 1;
  2673. var selectedDayCaption = "";
  2674. var deselectedDayCaption = "";
  2675. var selectedKindCaption = "";
  2676. var selectedDay = "";
  2677. var curTrgGrd = null;
  2678. var GPS_ViewMode = "S";
  2679. var etcLnkSpec = ""; //cp적용번호
  2680. var fromNo = 0; //from~
  2681. var toNo = 0; //~to
  2682. var beforeCpgAppNo = 0;
  2683. //var newPrcpCnt = 0; //rsrvdd 인스턴스 사용.. 환자계획표에서 새로 추가한 처방의 갯수
  2684. var iSelRow = 0;
  2685. //var oOpener = this.getOwnerFrame().form; // 15.12.02
  2686. var oOpener = frmf_getoOpener(); // 15.12.02
  2687. var arErrorCode = new HashArray();
  2688. var iTotalLeft; // day1~4 의 가장 왼쪽 좌표
  2689. var iTotalRight; // day1~4 의 가장 오른쪽 좌표
  2690. var iTotalWidth;
  2691. var iGap;// 갭 사이의 너비
  2692. var iHoriNum = 4; //day 수(기본은 4개, 처방화면에서 2개 이하 인 경우 2개로 셋팅)
  2693. var iHoriGapNum; // 가로열 day1~4사이의 갭 수
  2694. var iVerNum; // 투약, 검사, 간호전달 서식, 기타, 설명처방 총 6개
  2695. var iVerGapNum; // 투약, 검사, 간호전달 서식, 기타, 설명처방 사이의 갭 수
  2696. var iDayWidth; //Day 한개당 너비
  2697. var iTotalTop;//투약 그리드 상단 좌표
  2698. var iTotalBottom;// 화면 하단 좌표
  2699. var iTotalHeight;
  2700. var iDayHeight; //투약 한개의 높이
  2701. //=======================================================================================
  2702. // Event
  2703. //---------------------------------------------------------------------------------------
  2704. /****************************************************************************************
  2705. * Components : Form
  2706. * Components ID : SPMMP02200
  2707. * Event : oninit
  2708. * Argument : 01.obj : Object Event has occurred
  2709. * : 02.e : Event Object
  2710. * Description : 화면 처음 초기화시 폼초기화
  2711. ****************************************************************************************/
  2712. function SPMMP02200_oninit(obj:Form, e:InitEventInfo)
  2713. {
  2714. frmf_initForm(obj); // 폼 초기화
  2715. }
  2716. /****************************************************************************************
  2717. * Components : Button
  2718. * Components ID : btn_excel
  2719. * Event : onclick
  2720. * Argument : 01.obj : Object Event has occurred
  2721. * : 02.e : Event Object
  2722. * Description : Excel 버튼 클릭
  2723. ****************************************************************************************/
  2724. function group1_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  2725. {
  2726. dsf_makeValue(ds_send_reqdata,"cpgno" ,"string",oOpener.ds_main_masterinfo_info.getColumn(0,"cpgno"));
  2727. dsf_makeValue(ds_send_reqdata,"cpghistseq","string",oOpener.ds_main_masterinfo_info.getColumn(0,"cpghistseq"));
  2728. var iSetArray = ds_send_reqdata.getColumn(0,"setcond");
  2729. dsf_makeValue(ds_send_reqdata,"setcond","string","");
  2730. var oParam = {};
  2731. oParam.id = "TRMQP01403";
  2732. oParam.service = "prcpbaseapp.CpMngt";
  2733. oParam.method = "reqGetPrcpSetList";
  2734. oParam.inds = "req=ds_send_reqdata";
  2735. oParam.outds = "ds_main_down_prcplist=prcplist";
  2736. oParam.async = false;
  2737. oParam.callback = "cf_TRMQP01403";
  2738. tranf_submit(oParam);
  2739. if( arErrorCode.pop("TRMQP01403") > -1 ){
  2740. var cpgNm = oOpener.ds_main_masterinfo_info.getColumn(0,"cpgnm");
  2741. if(ds_main_down_prcplist.rowcount > 0) {
  2742. grdf_exportExcel(grd_downlist,cpgNm,"프로토콜 리스트");
  2743. sysf_messageBox("저장이 ", "I002");
  2744. } else {
  2745. sysf_messageBox("조회된 데이터가 ", "I004");
  2746. }
  2747. // var fileName = window.fileDialog("save", ",", false, cpgNm, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  2748. // if (fileName != ""){
  2749. // grd_downlist.saveExcel(fileName, "프로토콜 리스트", false, false, "", "", false);
  2750. // }
  2751. }
  2752. dsf_makeValue(ds_send_reqdata,"setcond","string",iSetArray);
  2753. }
  2754. /****************************************************************************************
  2755. * Components : Button
  2756. * Components ID : group1.btn_first
  2757. * Event : onclick
  2758. * Argument : 01.obj : Object Event has occurred
  2759. * : 02.e : Event Object
  2760. * Description : 맨앞으로 버튼 클릭
  2761. ****************************************************************************************/
  2762. function group1_btn_first_onclick(obj:Button, e:ClickEventInfo)
  2763. {
  2764. group1.btn_first.enable = false;
  2765. group1.btn_prev.enable = false;
  2766. group1.btn_next.enable = true;
  2767. group1.btn_last.enable = true;
  2768. fromNo = 0;
  2769. toNo = 4;
  2770. fMoveData(fromNo, 4, 2);
  2771. currentViewPage = 1;
  2772. }
  2773. /****************************************************************************************
  2774. * Components : Button
  2775. * Components ID : group1.btn_prev
  2776. * Event : onclick
  2777. * Argument : 01.obj : Object Event has occurred
  2778. * : 02.e : Event Object
  2779. * Description : 이전페이지 버튼 클릭
  2780. ****************************************************************************************/
  2781. function group1_btn_prev_onclick(obj:Button, e:ClickEventInfo)
  2782. {
  2783. currentViewPage--;
  2784. var Start = ((currentViewPage-1) * 4) + 1;
  2785. if(currentViewPage == 1){
  2786. var Cnt = 4;
  2787. group1.btn_first.enable = false;
  2788. group1.btn_prev.enable = false;
  2789. } else {
  2790. var Cnt = 4*currentViewPage;
  2791. group1.btn_first.enable = true;
  2792. group1.btn_prev.enable = true;
  2793. }
  2794. group1.btn_next.enable = true;
  2795. group1.btn_last.enable = true;
  2796. fromNo = Start-1;
  2797. toNo = Cnt;
  2798. //alert(currentViewPage + "page " + fromNo + " ~ " + Cnt);
  2799. fMoveData(fromNo, Cnt, 2);
  2800. }
  2801. /****************************************************************************************
  2802. * Components : Button
  2803. * Components ID : group1.btn_next
  2804. * Event : onclick
  2805. * Argument : 01.obj : Object Event has occurred
  2806. * : 02.e : Event Object
  2807. * Description : 다음페이지 버튼 클릭
  2808. ****************************************************************************************/
  2809. function group1_btn_next_onclick(obj:Button, e:ClickEventInfo)
  2810. {
  2811. fromNo = (currentViewPage * 4); //4
  2812. var Cnt = dayCnt;
  2813. if( Cnt > (fromNo + 4) ){ //8
  2814. Cnt = fromNo + 4;
  2815. group1.btn_next.enable = true;
  2816. group1.btn_last.enable = true;
  2817. } else {
  2818. Cnt = dayCnt;
  2819. group1.btn_next.enable = false;
  2820. group1.btn_last.enable = false;
  2821. }
  2822. group1.btn_first.enable = true;
  2823. group1.btn_prev.enable = true;
  2824. //alert( Start + " ~ " + Cnt );
  2825. toNo = Cnt;
  2826. fMoveData(fromNo, Cnt, 2);
  2827. currentViewPage++;
  2828. }
  2829. /****************************************************************************************
  2830. * Components : Button
  2831. * Components ID : group1.btn_last
  2832. * Event : onclick
  2833. * Argument : 01.obj : Object Event has occurred
  2834. * : 02.e : Event Object
  2835. * Description : 맨뒤로 버튼 클릭
  2836. ****************************************************************************************/
  2837. function group1_btn_last_onclick(obj:Button, e:ClickEventInfo)
  2838. {
  2839. currentViewPage = pageCnt - 1;
  2840. fromNo = (currentViewPage * 4);
  2841. group1.btn_next.enable = false;
  2842. group1.btn_last.enable = false;
  2843. group1.btn_first.enable = true;
  2844. group1.btn_prev.enable = true;
  2845. toNo = dayCnt;
  2846. fMoveData(fromNo, dayCnt, 2);
  2847. currentViewPage = pageCnt;
  2848. }
  2849. /****************************************************************************************
  2850. * Components : Button
  2851. * Components ID : cap_day1
  2852. * Event : onclick
  2853. * Argument : 01.obj : Object Event has occurred
  2854. * : 02.e : Event Object
  2855. * Description : 1일자 위 캡션클릭
  2856. ****************************************************************************************/
  2857. function cap_day1_onclick(obj:Button, e:ClickEventInfo)
  2858. {
  2859. if(selectedDayCaption != "cap_day1"){
  2860. fSelectOneDay("1", "ex");
  2861. selectedDayCaption = "cap_day1";
  2862. deselectedDayCaption = "";
  2863. } else {
  2864. fSelectOneDay("1", "re");
  2865. selectedDayCaption = "";
  2866. deselectedDayCaption = "cap_day1";
  2867. }
  2868. fChangeGridArea("1");
  2869. }
  2870. /****************************************************************************************
  2871. * Components : Button
  2872. * Components ID : cap_day2
  2873. * Event : onclick
  2874. * Argument : 01.obj : Object Event has occurred
  2875. * : 02.e : Event Object
  2876. * Description : 2일자 위 캡션클릭
  2877. ****************************************************************************************/
  2878. function cap_day2_onclick(obj:Button, e:ClickEventInfo)
  2879. {
  2880. if(selectedDayCaption != "cap_day2"){
  2881. fSelectOneDay("2", "ex");
  2882. selectedDayCaption = "cap_day2";
  2883. deselectedDayCaption = "";
  2884. } else {
  2885. fSelectOneDay("2", "re");
  2886. selectedDayCaption = "";
  2887. deselectedDayCaption = "cap_day2";
  2888. }
  2889. fChangeGridArea("2");
  2890. }
  2891. /****************************************************************************************
  2892. * Components : Button
  2893. * Components ID : cap_day3
  2894. * Event : onclick
  2895. * Argument : 01.obj : Object Event has occurred
  2896. * : 02.e : Event Object
  2897. * Description : 3일자 위 캡션클릭
  2898. ****************************************************************************************/
  2899. function cap_day3_onclick(obj:Button, e:ClickEventInfo)
  2900. {
  2901. if(selectedDayCaption != "cap_day3"){
  2902. fSelectOneDay("3", "ex");
  2903. selectedDayCaption = "cap_day3";
  2904. deselectedDayCaption = "";
  2905. } else {
  2906. fSelectOneDay("3", "re");
  2907. selectedDayCaption = "";
  2908. deselectedDayCaption = "cap_day3";
  2909. }
  2910. fChangeGridArea("3");
  2911. }
  2912. /****************************************************************************************
  2913. * Components : Button
  2914. * Components ID : cap_day4
  2915. * Event : onclick
  2916. * Argument : 01.obj : Object Event has occurred
  2917. * : 02.e : Event Object
  2918. * Description : 4일자 위 캡션클릭
  2919. ****************************************************************************************/
  2920. function cap_day4_onclick(obj:Button, e:ClickEventInfo)
  2921. {
  2922. if(selectedDayCaption != "cap_day4"){
  2923. fSelectOneDay("4", "ex");
  2924. selectedDayCaption = "cap_day4";
  2925. deselectedDayCaption = "";
  2926. } else {
  2927. fSelectOneDay("4", "re");
  2928. selectedDayCaption = "";
  2929. deselectedDayCaption = "cap_day4";
  2930. }
  2931. fChangeGridArea("4");
  2932. }
  2933. /****************************************************************************************
  2934. * Components : Button
  2935. * Components ID : cap_day
  2936. * Event : onclick
  2937. * Argument : 01.obj : Object Event has occurred
  2938. * : 02.e : Event Object
  2939. * Description : 각일자 위 캡션 더블클릭
  2940. ****************************************************************************************/
  2941. function cap_day_ondblclick(obj:Button, e:MouseEventInfo)
  2942. {
  2943. fSetPrePostOP(ds_temp_getdatalist_list,0);
  2944. }
  2945. /****************************************************************************************
  2946. * Components : Button
  2947. * Components ID : cap_drug
  2948. * Event : onclick
  2949. * Argument : 01.obj : Object Event has occurred
  2950. * : 02.e : Event Object
  2951. * Description : 투약캡션 클릭
  2952. ****************************************************************************************/
  2953. function cap_drug_onclick(obj:Button, e:ClickEventInfo)
  2954. {
  2955. if(selectedKindCaption != "D"){
  2956. fSelectOneKind("D", "ex");
  2957. selectedKindCaption = "D";
  2958. } else {
  2959. fSelectOneKind("D", "re");
  2960. selectedKindCaption = "";
  2961. }
  2962. }
  2963. /****************************************************************************************
  2964. * Components : Button
  2965. * Components ID : cap_test
  2966. * Event : onclick
  2967. * Argument : 01.obj : Object Event has occurred
  2968. * : 02.e : Event Object
  2969. * Description : 검사캡션 클릭
  2970. ****************************************************************************************/
  2971. function cap_test_onclick(obj:Button, e:ClickEventInfo)
  2972. {
  2973. if(selectedKindCaption != "T"){
  2974. fSelectOneKind("T", "ex");
  2975. selectedKindCaption = "T";
  2976. } else {
  2977. fSelectOneKind("T", "re");
  2978. selectedKindCaption = "";
  2979. }
  2980. }
  2981. /****************************************************************************************
  2982. * Components : Button
  2983. * Components ID : cap_caredelive
  2984. * Event : onclick
  2985. * Argument : 01.obj : Object Event has occurred
  2986. * : 02.e : Event Object
  2987. * Description : 간호전달캡션 클릭
  2988. ****************************************************************************************/
  2989. function cap_caredelive_onclick(obj:Button, e:ClickEventInfo)
  2990. {
  2991. if(selectedKindCaption != "C"){
  2992. fSelectOneKind("C", "ex");
  2993. selectedKindCaption = "C";
  2994. } else {
  2995. fSelectOneKind("C", "re");
  2996. selectedKindCaption = "";
  2997. }
  2998. }
  2999. /****************************************************************************************
  3000. * Components : Button
  3001. * Components ID : cap_form
  3002. * Event : onclick
  3003. * Argument : 01.obj : Object Event has occurred
  3004. * : 02.e : Event Object
  3005. * Description : 서식캡션 클릭
  3006. ****************************************************************************************/
  3007. function cap_form_onclick(obj:Button, e:ClickEventInfo)
  3008. {
  3009. if(selectedKindCaption != "F"){
  3010. fSelectOneKind("F", "ex");
  3011. selectedKindCaption = "F";
  3012. } else {
  3013. fSelectOneKind("F", "re");
  3014. selectedKindCaption = "";
  3015. }
  3016. }
  3017. /****************************************************************************************
  3018. * Components : Button
  3019. * Components ID : cap_etc
  3020. * Event : onclick
  3021. * Argument : 01.obj : Object Event has occurred
  3022. * : 02.e : Event Object
  3023. * Description : 기타캡션 클릭
  3024. ****************************************************************************************/
  3025. function cap_etc_onclick(obj:Button, e:ClickEventInfo)
  3026. {
  3027. if(selectedKindCaption != "E"){
  3028. fSelectOneKind("E", "ex");
  3029. selectedKindCaption = "E";
  3030. } else {
  3031. fSelectOneKind("E", "re");
  3032. selectedKindCaption = "";
  3033. }
  3034. }
  3035. /****************************************************************************************
  3036. * Components : Button
  3037. * Components ID : cap_etc
  3038. * Event : onclick
  3039. * Argument : 01.obj : Object Event has occurred
  3040. * : 02.e : Event Object
  3041. * Description : 설명처방캡션 클릭
  3042. ****************************************************************************************/
  3043. function cap_hichart_onclick(obj:Button, e:ClickEventInfo)
  3044. {
  3045. if(selectedKindCaption != "H"){
  3046. fSelectOneKind("H", "ex");
  3047. selectedKindCaption = "H";
  3048. } else {
  3049. fSelectOneKind("H", "re");
  3050. selectedKindCaption = "";
  3051. }
  3052. }
  3053. /****************************************************************************************
  3054. * Components : Grid
  3055. * Components ID : 그리드 전체
  3056. * Event : oncellclick
  3057. * Argument : 01.obj : Object Event has occurred
  3058. * : 02.e : Event Object
  3059. * Description : 그리드 셀 클릭
  3060. ****************************************************************************************/
  3061. function grd_All_oncellclick(obj:Grid, e:GridClickEventInfo)
  3062. {
  3063. var gridName = obj.name;
  3064. var gridNo = gridName.substr(gridName.length-1, 1);
  3065. fChangeGridArea(gridNo);
  3066. }
  3067. /****************************************************************************************
  3068. * Components : Grid
  3069. * Components ID : 그리드 전체
  3070. * Event : oncelldblclick
  3071. * Argument : 01.obj : Object Event has occurred
  3072. * : 02.e : Event Object
  3073. * Description : 그리드 셀 더블클릭
  3074. ****************************************************************************************/
  3075. function Grid_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  3076. {
  3077. fOpenPrcpDetail(obj.name);
  3078. }
  3079. //=======================================================================================
  3080. // Function
  3081. //---------------------------------------------------------------------------------------
  3082. /****************************************************************************************
  3083. * Function : fInitialize
  3084. * Description : 초기화
  3085. * Argument :
  3086. * return type :
  3087. * Creator :
  3088. ****************************************************************************************/
  3089. function fInitialize(){
  3090. timesArray = "";
  3091. prcpddArray = "";
  3092. setArray = "";
  3093. openerNM = "";
  3094. dayCnt = 0;
  3095. cpgno = "";
  3096. cpghistno = "";
  3097. cpgflagcd = ""; //W or G
  3098. cpgappno = "";
  3099. pamInfo = "";
  3100. pageCnt = 1;
  3101. currentViewPage = 1;
  3102. selectedDayCaption = "";
  3103. deselectedDayCaption = "";
  3104. selectedKindCaption = "";
  3105. selectedDay = "";
  3106. curTrgGrd = null;
  3107. GPS_ViewMode = "S";
  3108. etcLnkSpec = "";
  3109. fromNo = 0;
  3110. toNo = 0;
  3111. beforeCpgAppNo = 0;
  3112. iSelRow = 0;
  3113. // grd_form1.rowHidden(0) = true;
  3114. // grd_form2.rowHidden(0) = true;
  3115. // grd_form3.rowHidden(0) = true;
  3116. // grd_form4.rowHidden(0) = true;
  3117. // grd_etc1.rowHidden(0) = true;
  3118. // grd_etc2.rowHidden(0) = true;
  3119. // grd_etc3.rowHidden(0) = true;
  3120. // grd_etc4.rowHidden(0) = true;
  3121. grd_form1.setFormatRowProperty(0,"size",0);
  3122. grd_form2.setFormatRowProperty(0,"size",0);
  3123. grd_form3.setFormatRowProperty(0,"size",0);
  3124. grd_form4.setFormatRowProperty(0,"size",0);
  3125. grd_etc1.setFormatRowProperty(0,"size",0);
  3126. grd_etc2.setFormatRowProperty(0,"size",0);
  3127. grd_etc3.setFormatRowProperty(0,"size",0);
  3128. grd_etc4.setFormatRowProperty(0,"size",0);
  3129. if( oOpener.ds_main_masterinfo_info.getColumn(0,"cpgflagcd") != "01" ){
  3130. grd_drug1.setFormatColProperty(grd_drug1.getBindCellIndex("body","prcphopedd"),"size",80);
  3131. grd_test1.setFormatColProperty(grd_test1.getBindCellIndex("body","prcphopedd"),"size",80);
  3132. grd_caredelive1.setFormatColProperty(grd_caredelive1.getBindCellIndex("body","prcphopedd"),"size",80);
  3133. grd_etc1.setFormatColProperty(grd_etc1.getBindCellIndex("body","prcphopedd"),"size",80);
  3134. grd_drug2.setFormatColProperty(grd_drug2.getBindCellIndex("body","prcphopedd"),"size",80);
  3135. grd_test2.setFormatColProperty(grd_test2.getBindCellIndex("body","prcphopedd"),"size",80);
  3136. grd_caredelive2.setFormatColProperty(grd_caredelive2.getBindCellIndex("body","prcphopedd"),"size",80);
  3137. grd_etc2.setFormatColProperty(grd_etc2.getBindCellIndex("body","prcphopedd"),"size",80);
  3138. grd_drug3.setFormatColProperty(grd_drug3.getBindCellIndex("body","prcphopedd"),"size",80);
  3139. grd_test3.setFormatColProperty(grd_test3.getBindCellIndex("body","prcphopedd"),"size",80);
  3140. grd_caredelive3.setFormatColProperty(grd_caredelive3.getBindCellIndex("body","prcphopedd"),"size",80);
  3141. grd_etc3.setFormatColProperty(grd_etc3.getBindCellIndex("body","prcphopedd"),"size",80);
  3142. grd_drug4.setFormatColProperty(grd_drug4.getBindCellIndex("body","prcphopedd"),"size",80);
  3143. grd_test4.setFormatColProperty(grd_test4.getBindCellIndex("body","prcphopedd"),"size",80);
  3144. grd_caredelive4.setFormatColProperty(grd_caredelive4.getBindCellIndex("body","prcphopedd"),"size",80);
  3145. grd_etc4.setFormatColProperty(grd_etc4.getBindCellIndex("body","prcphopedd"),"size",80);
  3146. }
  3147. //CP 생성기인 경우
  3148. else{
  3149. grd_drug1.setFormatColProperty(grd_drug1.getBindCellIndex("body","prcphopedd"),"size",0);
  3150. grd_test1.setFormatColProperty(grd_test1.getBindCellIndex("body","prcphopedd"),"size",0);
  3151. grd_caredelive1.setFormatColProperty(grd_caredelive1.getBindCellIndex("body","prcphopedd"),"size",0);
  3152. grd_etc1.setFormatColProperty(grd_etc1.getBindCellIndex("body","prcphopedd"),"size",0);
  3153. grd_drug2.setFormatColProperty(grd_drug2.getBindCellIndex("body","prcphopedd"),"size",0);
  3154. grd_test2.setFormatColProperty(grd_test2.getBindCellIndex("body","prcphopedd"),"size",0);
  3155. grd_caredelive2.setFormatColProperty(grd_caredelive2.getBindCellIndex("body","prcphopedd"),"size",0);
  3156. grd_etc2.setFormatColProperty(grd_etc2.getBindCellIndex("body","prcphopedd"),"size",0);
  3157. grd_drug3.setFormatColProperty(grd_drug3.getBindCellIndex("body","prcphopedd"),"size",0);
  3158. grd_test3.setFormatColProperty(grd_test3.getBindCellIndex("body","prcphopedd"),"size",0);
  3159. grd_caredelive3.setFormatColProperty(grd_caredelive3.getBindCellIndex("body","prcphopedd"),"size",0);
  3160. grd_etc3.setFormatColProperty(grd_etc3.getBindCellIndex("body","prcphopedd"),"size",0);
  3161. grd_drug4.setFormatColProperty(grd_drug4.getBindCellIndex("body","prcphopedd"),"size",0);
  3162. grd_test4.setFormatColProperty(grd_test4.getBindCellIndex("body","prcphopedd"),"size",0);
  3163. grd_caredelive4.setFormatColProperty(grd_caredelive4.getBindCellIndex("body","prcphopedd"),"size",0);
  3164. grd_etc4.setFormatColProperty(grd_etc4.getBindCellIndex("body","prcphopedd"),"size",0);
  3165. }
  3166. // grd_drug1.explorerbar = "sortshow";
  3167. // grd_test1.explorerbar = "sortshow";
  3168. // grd_caredelive1.explorerbar = "sortshow";
  3169. // grd_form1.explorerbar = "sortshow";
  3170. // grd_etc1.explorerbar = "sortshow";
  3171. grdf_setGridSort(grd_drug1);
  3172. grdf_setGridSort(grd_test1);
  3173. grdf_setGridSort(grd_caredelive1);
  3174. grdf_setGridSort(grd_form1);
  3175. grdf_setGridSort(grd_etc1);
  3176. grdf_setGridSort(grd_drug2);
  3177. grdf_setGridSort(grd_test2);
  3178. grdf_setGridSort(grd_caredelive2);
  3179. grdf_setGridSort(grd_form2);
  3180. grdf_setGridSort(grd_etc2);
  3181. grdf_setGridSort(grd_drug3);
  3182. grdf_setGridSort(grd_test3);
  3183. grdf_setGridSort(grd_caredelive3);
  3184. grdf_setGridSort(grd_form3);
  3185. grdf_setGridSort(grd_etc3);
  3186. grdf_setGridSort(grd_drug4);
  3187. grdf_setGridSort(grd_test4);
  3188. grdf_setGridSort(grd_caredelive4);
  3189. grdf_setGridSort(grd_form4);
  3190. grdf_setGridSort(grd_etc4);
  3191. /*
  3192. //그리드 컨트롤들에 동적 이벤트를 추가 2
  3193. grd_drug1.attribute("onaftersort") = "fAfterSortEvent()";
  3194. grd_test1.attribute("onaftersort") = "fAfterSortEvent()";
  3195. grd_caredelive1.attribute("onaftersort") = "fAfterSortEvent()";
  3196. grd_form1.attribute("onaftersort") = "fAfterSortEvent()";
  3197. grd_etc1.attribute("onaftersort") = "fAfterSortEvent()";
  3198. grd_drug2.attribute("onaftersort") = "fAfterSortEvent()";
  3199. grd_test2.attribute("onaftersort") = "fAfterSortEvent()";
  3200. grd_caredelive2.attribute("onaftersort") = "fAfterSortEvent()";
  3201. grd_form2.attribute("onaftersort") = "fAfterSortEvent()";
  3202. grd_etc2.attribute("onaftersort") = "fAfterSortEvent()";
  3203. grd_drug3.attribute("onaftersort") = "fAfterSortEvent()";
  3204. grd_test3.attribute("onaftersort") = "fAfterSortEvent()";
  3205. grd_caredelive3.attribute("onaftersort") = "fAfterSortEvent()";
  3206. grd_form3.attribute("onaftersort") = "fAfterSortEvent()";
  3207. grd_etc3.attribute("onaftersort") = "fAfterSortEvent()";
  3208. grd_drug4.attribute("onaftersort") = "fAfterSortEvent()";
  3209. grd_test4.attribute("onaftersort") = "fAfterSortEvent()";
  3210. grd_caredelive4.attribute("onaftersort") = "fAfterSortEvent()";
  3211. grd_form4.attribute("onaftersort") = "fAfterSortEvent()";
  3212. grd_etc4.attribute("onaftersort") = "fAfterSortEvent()";
  3213. */
  3214. utlf_addLog("oOpener.OpenerKind : " + oOpener.OpenerKind + " || openerNM : " + openerNM);
  3215. //처방에서 호출하는 경우
  3216. if( oOpener.OpenerKind == "GPS" || openerNM == "GPS" ){ //OpenerKind
  3217. //fHoriAdjustSize(4);
  3218. rct_border.visible = false;
  3219. if( oOpener.ds_temp1_refresh_obj.getColumn(0,"change_gps") == "Y") {
  3220. oOpener.fSendDetailValue();
  3221. fInitGrigInfo();
  3222. oOpener.ds_temp1_refresh_obj.setColumn(0,"change_gps", "N");
  3223. ds_init.setColumn(0,"prcpdd", utlf_getCurrentDate());
  3224. }
  3225. if( oOpener.ds_temp_getdata.getColumn(0,"authflag") == "U" ){
  3226. //사용자(진료의)일 경우만, 수정,추가,삭제 가능
  3227. grd_drug1.onrbuttondown.addHandler(fPopupMenuEvent);
  3228. grd_test1.onrbuttondown.addHandler(fPopupMenuEvent);
  3229. grd_caredelive1.onrbuttondown.addHandler(fPopupMenuEvent);
  3230. // grd_form1.attribute("onmousedown") = "initPopupMenu()";
  3231. grd_etc1.onrbuttondown.addHandler(fPopupMenuEvent);
  3232. grd_drug2.onrbuttondown.addHandler(fPopupMenuEvent);
  3233. grd_test2.onrbuttondown.addHandler(fPopupMenuEvent);
  3234. grd_caredelive2.onrbuttondown.addHandler(fPopupMenuEvent);
  3235. // grd_form2.attribute("onmousedown") = "initPopupMenu()";
  3236. grd_etc2.onrbuttondown.addHandler(fPopupMenuEvent);
  3237. grd_drug3.onrbuttondown.addHandler(fPopupMenuEvent);
  3238. grd_test3.onrbuttondown.addHandler(fPopupMenuEvent);
  3239. grd_caredelive3.onrbuttondown.addHandler(fPopupMenuEvent);
  3240. // grd_form3.attribute("onmousedown") = "initPopupMenu()";
  3241. grd_etc3.onrbuttondown.addHandler(fPopupMenuEvent);
  3242. grd_drug4.onrbuttondown.addHandler(fPopupMenuEvent);
  3243. grd_test4.onrbuttondown.addHandler(fPopupMenuEvent);
  3244. grd_caredelive4.onrbuttondown.addHandler(fPopupMenuEvent);
  3245. // grd_form4.attribute("onmousedown") = "initPopupMenu()";
  3246. grd_etc4.onrbuttondown.addHandler(fPopupMenuEvent);
  3247. // grd_drug1.attribute("DOMFocusOut") = "initPopupMenu()";
  3248. // grd_test1.attribute("DOMFocusOut") = "initPopupMenu()";
  3249. // grd_caredelive1.attribute("DOMFocusOut") = "initPopupMenu()";
  3250. // grd_etc1.attribute("DOMFocusOut") = "initPopupMenu()";
  3251. // grd_drug2.attribute("DOMFocusOut") = "initPopupMenu()";
  3252. // grd_test2.attribute("DOMFocusOut") = "initPopupMenu()";
  3253. // grd_caredelive2.attribute("DOMFocusOut") = "initPopupMenu()";
  3254. // grd_etc2.attribute("DOMFocusOut") = "initPopupMenu()";
  3255. // grd_drug3.attribute("DOMFocusOut") = "initPopupMenu()";
  3256. // grd_test3.attribute("DOMFocusOut") = "initPopupMenu()";
  3257. // grd_caredelive3.attribute("DOMFocusOut") = "initPopupMenu()";
  3258. // grd_etc3.attribute("DOMFocusOut") = "initPopupMenu()";
  3259. // grd_drug4.attribute("DOMFocusOut") = "initPopupMenu()";
  3260. // grd_test4.attribute("DOMFocusOut") = "initPopupMenu()";
  3261. // grd_caredelive4.attribute("DOMFocusOut") = "initPopupMenu()";
  3262. // grd_etc4.attribute("DOMFocusOut") = "initPopupMenu()";
  3263. objects[grd_drug1.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3264. objects[grd_test1.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3265. objects[grd_caredelive1.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3266. objects[grd_form1.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3267. objects[grd_etc1.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3268. objects[grd_drug2.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3269. objects[grd_test2.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3270. objects[grd_caredelive2.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3271. objects[grd_form2.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3272. objects[grd_etc2.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3273. objects[grd_drug3.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3274. objects[grd_test3.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3275. objects[grd_caredelive3.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3276. objects[grd_form3.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3277. objects[grd_etc3.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3278. objects[grd_drug4.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3279. objects[grd_test4.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3280. objects[grd_caredelive4.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3281. objects[grd_form4.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3282. objects[grd_etc4.binddataset].oncolumnchanged.addHandler(fChangeValue);
  3283. group1.btn_first.enable = false;
  3284. group1.btn_prev.enable = false;
  3285. //-------------------------------서식(main) 호출(2008.09.05)---------------------------//
  3286. //if( cpgflagcd != "W" ) return;
  3287. if(oOpener.loadFormTab != "D") return;
  3288. //전처방 로딩이 완료되면 진료대상자에서 진료기록을 호출하는 로직
  3289. var mainObj = frmf_getMainViewer();
  3290. var srcOrdPatListwnd = mainObj.frmf_findPopup("SMMMO04100");
  3291. var ordPatWndCpFlag = ""; //진료대상자리스트에서 cp구분이 X인 경우는 처방을 통해서 열리는 경우가 아니므로 체크 추가(2010.06.22 JJE)
  3292. if( !utlf_isNull(srcOrdPatListwnd) ) ordPatWndCpFlag = srcOrdPatListwnd.ds_root.getColumn(0,"cpflag"); //"X"
  3293. //마취기록지에서 처방창을 열경우 마취기록지를 initialize 시키지 않는 로직
  3294. var srcAnstRecwnd = mainObj.frmf_findPopup("SMMMR03700");
  3295. var anstrereload = mainObj.frmf_getParameter("SMMMR03700_refresh");
  3296. if (!utlf_isNull(srcAnstRecwnd)) {
  3297. var anstrereload = srcAnstRecwnd.frmf_getParameter("SMMMR03700_refresh");
  3298. }
  3299. //최초 적용 시, 처방창에서 이미 기록지 호출이 되었으므로, 재호출 안함 -> opener.window.javascript.appstepstatflag != "i" 조건 추가 (2008.09.29)
  3300. if ( anstrereload != "false" && !utlf_isNull(srcOrdPatListwnd) && (oOpener.appstepstatflag != "i" || ordPatWndCpFlag == "X") ) {
  3301. var fstopenflag = oOpener.ds_temp1_refresh_obj.getColumn(0,"refreshyn"); //처방화면이 최초 생성 여부
  3302. //alert( "Refresy_YN = " + fstopenflag );
  3303. if( fstopenflag == "N") {
  3304. oOpener.ds_init.setColumn(0,"fstopenflag", "Y"); //잠시, 값 치환
  3305. srcOrdPatListwnd.fChngMainEMRScrn();
  3306. }
  3307. }
  3308. oOpener.ds_temp1_refresh_obj.setColumn(0,"refreshyn", "Y"); //최초조회가 아닌경우, refresh 여부 "Y"
  3309. oOpener.ds_init.setColumn(0,"fstopenflag", "N"); //처방최초 open여부를 재설정, 진료기록을 열기위해
  3310. //--------------------------------------------------------------------------------//
  3311. //2008.09.04 순서 변경
  3312. oOpener.fMssg(); //Drop 및 퇴원예고 유도... 알림 Message 출력
  3313. }
  3314. }
  3315. this.position.width = this.parent.ivw_detail.position.width + 1;
  3316. this.position.height = this.parent.ivw_detail.position.height + 1;
  3317. fSetSize();
  3318. return true;
  3319. }
  3320. /****************************************************************************************
  3321. * Function : fInitGrigInfo
  3322. * Description : 초기 및 재조회시...
  3323. * Argument :
  3324. * return type :
  3325. * Creator :
  3326. ****************************************************************************************/
  3327. function fInitGrigInfo(){
  3328. var stepinfo = oOpener.frmf_getParameter("stepinfo");
  3329. if( !utlf_isNull(stepinfo) ){
  3330. //if( opener.model.getValue("/root/main/masterinfo/info/cpgflagcd") == "01" ) cpgflagcd = "W";
  3331. //else cpgflagcd = "G";
  3332. cpgno = stepinfo.split("|")[0];
  3333. cpghistno = stepinfo.split("|")[1];
  3334. cpgflagcd = stepinfo.split("|")[2];
  3335. timesArray = stepinfo.split("|")[3];
  3336. openerNM = stepinfo.split("|")[4]; //Generater or GPS
  3337. ds_main_steplist_stepinfo.setColumn(0,"cpgno" , cpgno);
  3338. ds_main_steplist_stepinfo.setColumn(0,"cpghistseq" , cpghistno);
  3339. ds_main_steplist_stepinfo.setColumn(0,"cpgflagcd" , cpgflagcd);
  3340. if( oOpener.OpenerKind == "GPS" || openerNM == "GPS" ){
  3341. if( !utlf_isNull(ds_main_steplist_stepinfo.getColumn(0,"cpgappno")) ){
  3342. beforeCpgAppNo = ds_main_steplist_stepinfo.getColumn(0,"cpgappno"); //이전 화면의 CP적용번호
  3343. }
  3344. cpgappno = stepinfo.split("|")[5];
  3345. setArray = stepinfo.split("|")[6];
  3346. prcpddArray = stepinfo.split("|")[7];
  3347. pamInfo = stepinfo.split("|")[8];
  3348. dsf_makeValue(ds_main_steplist_stepinfo,"cpgappno" ,"string",cpgappno);
  3349. //model.makeValue("/root/main/steplist/stepinfo/setcond", setArray); => fMoveData()로 이동
  3350. dsf_makeValue(ds_main_steplist_stepinfo,"pid" ,"string" , pamInfo.split(",")[0]);
  3351. dsf_makeValue(ds_main_steplist_stepinfo,"orddd" ,"string", pamInfo.split(",")[1]);
  3352. dsf_makeValue(ds_main_steplist_stepinfo,"cretno" ,"string", pamInfo.split(",")[2]);
  3353. dsf_makeValue(ds_main_steplist_stepinfo,"prcpgenrflag" ,"string", pamInfo.split(",")[3]);
  3354. etcLnkSpec = "0|" + ds_main_steplist_stepinfo.getColumn(0,"cpgappno");
  3355. }
  3356. }
  3357. if( openerNM == "generater" || (openerNM != "generater" && !utlf_isNull(setArray) && setArray != " ") ){
  3358. //start: CPG 분기 처리
  3359. if( cpgflagcd == "W" ){ //2010.07.06 조건 추가했다가 다시 삭제함.. openerNM != "GPS" ||
  3360. dayCnt = (timesArray.split(",")).length;
  3361. }else{
  3362. dayCnt = (prcpddArray.split(",")).length;
  3363. }
  3364. /*
  3365. if( cpgflagcd != "W" || instance1.selectSingleNode("/root/main/steppath/info[swimlineno=1 and refseq=1 and stepstat=30]") == null) && toNo>0 && dayCnt != Cnt ){
  3366. //###CPG 스텝 결정 시, Cnt, toNo가 달라진다 (2008.12.02)
  3367. //toNo = dayCnt;
  3368. }
  3369. */
  3370. //end
  3371. var Cnt = dayCnt;
  3372. if(Cnt >= 1){
  3373. //day가 총 2일 이하일 때, 2개 모드, 그렇지 않으면 4개 모드 (2009.02.20) (s)
  3374. var orgGrdCnt = ds_temp.getColumn(0,"grdmode");
  3375. if( dayCnt>0 && dayCnt<=2 /*&& orgGrdCnt!="2"*/ ){
  3376. ds_temp.setColumn(0,"grdmode", "2");
  3377. fSetupGrdMode("2", false);
  3378. iHoriNum = 2;
  3379. }else if( dayCnt>0 && dayCnt>=4 /*&& orgGrdCnt!="4" */){
  3380. ds_temp.setColumn(0,"grdmode", "4");
  3381. fSetupGrdMode("4", false);
  3382. iHoriNum = 4;
  3383. }
  3384. //(e)
  3385. if(Cnt > 4){
  3386. pageCnt = Math.ceil(dayCnt/4);
  3387. Cnt = 4;
  3388. group1.btn_next.enable = true;
  3389. group1.btn_last.enable = true;
  3390. }else{
  3391. group1.btn_next.enable = false;
  3392. group1.btn_last.enable = false;
  3393. }
  3394. if(toNo == 0){ //환자계획표 최초 조회 시 toNo=0
  3395. toNo = Cnt;
  3396. }
  3397. //if( !isNull(timesArray) ){
  3398. if( !utlf_isNull(dayCnt) ){ //CPG는 times가 null일 수 있으므로 조건 변경 (2008.12.10)
  3399. /*if( dayCnt - fromNo > 4 ){
  3400. fromNo = 0;
  3401. dayCnt = 4;
  3402. }*/
  3403. fMoveData(fromNo, toNo, 1);
  3404. }
  3405. }
  3406. }
  3407. }
  3408. /****************************************************************************************
  3409. * Function : fSetupGrdMode
  3410. * Description : DAY 수에 맞추어 그리드 크기조절...
  3411. * Argument :
  3412. * return type :
  3413. * Creator :
  3414. ****************************************************************************************/
  3415. function fSetupGrdMode( grdCnt, boolFlag ){
  3416. //20180131 이돈희 수정 : 기존 크기 계산에서 fHoriAdjustSize으로 수정
  3417. //grdCnt : 보여 줄 Day 수
  3418. //grdCnt에 맞추어 그리드 및 기타 크기 조절
  3419. fHoriAdjustSize(grdCnt);
  3420. /*
  3421. if( grdCnt == "2" ){
  3422. if( group1.position.left == 825 ) { //생성기
  3423. var xWidth = 583;//580
  3424. var yWidth = 579;
  3425. var xLeft = 614;//609
  3426. var x = 580;
  3427. }else{
  3428. var xWidth = 585;//587
  3429. var yWidth = 586;
  3430. var xLeft = 616;
  3431. var x = 587;
  3432. }
  3433. }else{
  3434. if( group1.position.left == 825 ) { //생성기
  3435. var xWidth = 290;
  3436. var yWidth = 579;
  3437. var xLeft = 319;
  3438. var x = 290;
  3439. }else{
  3440. var xWidth = 294;
  3441. var yWidth = 293;
  3442. var xLeft = 325; // 323
  3443. var x = 294;
  3444. }
  3445. }
  3446. cap_day1.position.width = xWidth;
  3447. grd_drug1.position.width = xWidth;
  3448. grd_test1.position.width = xWidth;
  3449. grd_caredelive1.position.width = xWidth;
  3450. grd_form1.position.width = xWidth;
  3451. grd_etc1.position.width = xWidth;
  3452. grd_caredelive1.setFormatColProperty(3,"size",x - 83);
  3453. grd_form1.setFormatColProperty(2,"size",x - 103);
  3454. grd_etc1.setFormatColProperty(4,"size",x - 129);
  3455. cap_day2.position.left = xLeft;
  3456. grd_drug2.position.left = xLeft;
  3457. grd_test2.position.left = xLeft;
  3458. grd_caredelive2.position.left = xLeft;
  3459. grd_form2.position.left = xLeft;
  3460. grd_etc2.position.left = xLeft;
  3461. cap_day2.position.width = xWidth;
  3462. grd_drug2.position.width = xWidth;
  3463. grd_test2.position.width = xWidth;
  3464. grd_caredelive2.position.width = xWidth;
  3465. grd_form2.position.width = xWidth;
  3466. grd_etc2.position.width = xWidth;
  3467. grd_caredelive2.setFormatColProperty(3,"size",x - 83);
  3468. grd_form2.setFormatColProperty(2,"size",x - 103);
  3469. grd_etc2.setFormatColProperty(4,"size",x - 129);
  3470. */
  3471. }
  3472. /****************************************************************************************
  3473. * Function : fMoveData
  3474. * Description : 조회한 데이터를 각 그리드로 나눈다.
  3475. * Argument : Start - start row
  3476. * : Cnt - end row
  3477. * : iCase - (1:데이터 재조회, 2:페이지 이동)
  3478. * return type :
  3479. * Creator :
  3480. ****************************************************************************************/
  3481. function fMoveData(Start, Cnt, iCase){
  3482. trace("fMoveData(Start, Cnt, iCase) Start = " + Start + " Cnt = " + Cnt + " iCase = " + iCase );
  3483. //노드셋 초기화
  3484. ds_main_druglist1.clear();
  3485. ds_main_druglist2.clear();
  3486. ds_main_druglist3.clear();
  3487. ds_main_druglist4.clear();
  3488. ds_main_testlist1.clear();
  3489. ds_main_testlist2.clear();
  3490. ds_main_testlist3.clear();
  3491. ds_main_testlist4.clear();
  3492. ds_main_caredelivelist1.clear();
  3493. ds_main_caredelivelist2.clear();
  3494. ds_main_caredelivelist3.clear();
  3495. ds_main_caredelivelist4.clear();
  3496. ds_main_formlist1.clear();
  3497. ds_main_formlist2.clear();
  3498. ds_main_formlist3.clear();
  3499. ds_main_formlist4.clear();
  3500. ds_main_etclist1.clear();
  3501. ds_main_etclist2.clear();
  3502. ds_main_etclist3.clear();
  3503. ds_main_etclist4.clear();
  3504. ds_main_hichartlist01.clear();
  3505. ds_main_hichartlist02.clear();
  3506. ds_main_hichartlist03.clear();
  3507. ds_main_hichartlist04.clear();
  3508. cap_day1.text = "";
  3509. cap_day2.text = "";
  3510. cap_day3.text = "";
  3511. cap_day4.text = "";
  3512. // dsf_createDs("ds_send_reqdata");
  3513. ds_send_reqdata.clearData();
  3514. ds_send_reqdata.copyData(ds_main_steplist_stepinfo);
  3515. var tms = "";
  3516. var iSetArray = "";
  3517. var iPrcpddArray = "";
  3518. var dd = "";
  3519. //이전 화면에서 2번째 페이지 열린 상태에서, 다른 환자의 CP를 선택하여 화면이 재조회 될 경우, 1회차부터 조회
  3520. if( iCase == 1 && beforeCpgAppNo != dsf_getColumnNullToEmpty(ds_main_steplist_stepinfo, 0, "cpgappno") ){
  3521. Start = 0;
  3522. }
  3523. for(var i = Start; i < dayCnt; i++){ //Cnt->dayCnt
  3524. tms = tms + timesArray.split(",")[i] + ","; //tms + "'" + timesArray.split(",")[i] + "'";
  3525. //(s) 환자계획표 최초 조회 시 최대 timescond 갯수 4(0~3) (2008.10.05 조건 추가)
  3526. //start: 일수는 같으나 프로토콜 setno가 다른 경우가 있어 setno를 다시 select해줘야 함 (2010.05.25 JJE)
  3527. /*
  3528. if( cpgflagcd == "W" ){ //!isNull(setArray) &&
  3529. var tmsSetnoNodes = opener.instance1.selectNodes("/root/main/steplist/info[times='"+timesArray.split(",")[i]+"']");
  3530. if( tmsSetnoNodes.length > 0 ){
  3531. for(var j=0; j<tmsSetnoNodes.length; j++){
  3532. var node = tmsSetnoNodes.item(j);
  3533. var setnoNode = node.selectSingleNode("setno");
  3534. iSetArray = iSetArray + setnoNode.text + ",";
  3535. }
  3536. }
  3537. }else iSetArray = iSetArray + setArray.split(",")[i] + ",";
  3538. */
  3539. if( !utlf_isNull(prcpddArray) )
  3540. iPrcpddArray = iPrcpddArray + prcpddArray.split(",")[i] + ",";
  3541. if( iCase == 1 && i == 3 ) break;
  3542. // (e)
  3543. }
  3544. //start: CPG 분기 처리
  3545. //if( !isNull(tms) && (openerNM != "GPS" || cpgflagcd == "W") ){ //2008.12.22 조건 추가 (중간타기의 CPG 적용 후 조회 안되는 문제때문-times와 prcpdd의 불일치)
  3546. if( !utlf_isNull(tms) && cpgflagcd == "W" ){ //if( !isNull(tms) ){
  3547. tms = tms.substr(0, tms.length-1);
  3548. dsf_makeValue(ds_send_reqdata,"timescond","string",tms);
  3549. }else{
  3550. dsf_makeValue(ds_send_reqdata,"timescond","string","");
  3551. }
  3552. if( !utlf_isNull(iSetArray) && cpgflagcd == "W" ){ //CPG는 회차와 상관없이 처방일이 기준이므로 처방일자 array만 보내면 됨 (2008.12.10)
  3553. iSetArray = iSetArray.substr(0, iSetArray.length-1);
  3554. dsf_makeValue(ds_send_reqdata,"setcond","string",iSetArray);
  3555. }else{
  3556. dsf_makeValue(ds_send_reqdata,"setcond","string","");
  3557. }
  3558. if( !utlf_isNull(iPrcpddArray) && cpgflagcd == "W" ) {
  3559. iPrcpddArray = iPrcpddArray.substr(0, iPrcpddArray.length-1);
  3560. dsf_makeValue(ds_send_reqdata,"prcpddcond","string",iPrcpddArray);
  3561. ds_init.setColumn(0,"prcpddcond",iPrcpddArray);
  3562. }else if( !utlf_isNull(iPrcpddArray) && cpgflagcd == "G" ) {
  3563. //CPG는 처방일자가, 프로토콜 회차와 불일치하므로 별도 셋팅
  3564. dsf_makeValue(ds_send_reqdata,"prcpddcond","string",prcpddArray);
  3565. ds_init.setColumn(0,"prcpddcond",prcpddArray);
  3566. }
  3567. //end
  3568. //여기부터
  3569. // var srcref = ds_temp_getdatalist_list;
  3570. //if( iCase == 1 ){ //2008.10.05 조건 삭제
  3571. // var srcNode = instance1.selectSingleNode(srcref);
  3572. // var appstat = oOpener.ds_temp1_getdata.getColumn(0,"appstat");
  3573. // submit("TRMMP02201", false); //전체 그리드의 prcplist 조회
  3574. // fMakeCopyColumn(ds_send_reqdata,cretno,prcpgenrflag);
  3575. var oParam = {};
  3576. oParam.id = "TRMMP02201";
  3577. oParam.service = "prcpbaseapp.CpMngt";
  3578. oParam.method = "reqGetStepDetailInfo";
  3579. oParam.inds = "req=ds_send_reqdata";
  3580. oParam.outds = "ds_temp_getdatalist_list=list ds_temp_getdatalist_prcplist=prcplist";
  3581. oParam.async = false;
  3582. oParam.callback = "cf_TRMMP02201";
  3583. tranf_submit(oParam);
  3584. // if( !utlf_isNull(srcNode) ){
  3585. if( ds_temp_getdatalist_list.rowcount > 0 || ds_temp_getdatalist_prcplist.rowcount > 0 ){
  3586. //서식 쪼개기.. (/root/main/getdatalist/list)
  3587. var formNode = oOpener.objects["ds_main_formlist_info"] != null ? oOpener.ds_main_formlist_info.getColumn(0,"formcd") : "";
  3588. if( openerNM == "GPS" && !utlf_isNull(formNode) ){
  3589. var formNodeList = oOpener.ds_main_formlist_info; //opener.instance1.selectNodes("/root/main/formlist/info");
  3590. ds_temp_formlist_list.clearData();
  3591. for(var i = 0; i < formNodeList.rowcount; i++){
  3592. // var node = formNodeList.item(i);
  3593. // appendChildPrcp ( "/root/temp/reset/list", "/root/temp/formlist", "main" );
  3594. lf_appendChildPrcp("ds_temp_reset_list", "ds_temp_formlist_list", "main");
  3595. ds_temp_formlist_list.addRow();
  3596. var iTime = formNodeList.getColumn(i, "times"); //node.selectSingleNode("times").text;
  3597. ds_temp_formlist_list.setColumn(i, "times" , iTime.substr(1, iTime.length-1) );
  3598. ds_temp_formlist_list.setColumn(i, "prcpdd" , formNodeList.getColumn(i,"prcpdd"));
  3599. ds_temp_formlist_list.setColumn(i, "prcpcd" , formNodeList.getColumn(i,"formcd"));
  3600. ds_temp_formlist_list.setColumn(i, "prcpno" , formNodeList.getColumn(i,"formseq"));
  3601. ds_temp_formlist_list.setColumn(i, "prcpnm" , formNodeList.getColumn(i,"formnm"));
  3602. ds_temp_formlist_list.setColumn(i, "stepnm" , formNodeList.getColumn(i,"stepnm"));
  3603. ds_temp_formlist_list.setColumn(i, "prcpclscd" , "FM" );
  3604. // 2008.07.31 pymi
  3605. //model.setValue("/root/temp/formlist/list[" + (i+1) + "]/stepno", node.selectSingleNode("stepno").text );
  3606. }
  3607. //20180224 이돈희 : main에서 hichartlist 가져오기
  3608. var hichartList = oOpener.ds_main_hichartlist_info;
  3609. ds_temp_hichart_list.clearData();
  3610. for(var iIndex = 0 ; iIndex < hichartList.rowcount; iIndex++){
  3611. lf_appendChildPrcp("ds_temp_reset_list", "ds_temp_hichartlist_list", "main");
  3612. ds_temp_hichart_list.addRow();
  3613. var iTime = hichartList.getColumn(iIndex, "times"); //node.selectSingleNode("times").text;
  3614. ds_temp_hichart_list.setColumn(iIndex, "times" , iTime.substr(1, iTime.length-1) );
  3615. ds_temp_hichart_list.setColumn(iIndex, "prcpdd" , hichartList.getColumn(iIndex,"prcpdd"));
  3616. ds_temp_hichart_list.setColumn(iIndex, "prcpcd" , hichartList.getColumn(iIndex,"contentscd"));
  3617. //ds_temp_hichart_list.setColumn(iIndex, "prcpno" , hichartList.getColumn(iIndex,"formseq"));
  3618. ds_temp_hichart_list.setColumn(iIndex, "prcpnm" , hichartList.getColumn(iIndex,"contentsnm"));
  3619. ds_temp_hichart_list.setColumn(iIndex, "stepnm" , hichartList.getColumn(iIndex,"stepnm"));
  3620. ds_temp_hichart_list.setColumn(iIndex, "prcpclscd" , "HC" );
  3621. }
  3622. }
  3623. /*
  3624. TRMMP02201 인스턴스 구조를 통일하여, 서브밋 하나로 처리
  3625. if( (opener.window.javascript.OpenerKind == "GPS" || openerNM == "GPS") ){
  3626. if( appstat == "10" || appstat == "30" ){ //미래처방이 존재 할 경우,
  3627. submit("TRMMP02203", false);
  3628. }
  3629. }
  3630. */
  3631. //Prcp 노드에 copy
  3632. ds_main_prcplist.clearData();
  3633. ds_main_prcplist.copyData(ds_temp_getdatalist_prcplist);
  3634. ds_temp_getdatalist_prcplist.clearData();
  3635. }
  3636. //}
  3637. var drugcls = "(prcpclscd == 'A2' || prcpclscd == 'A4' || prcpclscd == 'A6')";
  3638. var testcls = "(prcpclscd == 'B2' || prcpclscd == 'B4' || prcpclscd == 'B6' || prcpclscd == 'C2' || prcpclscd == 'C4' || prcpclscd == 'C6' || prcpclscd == 'D2' || prcpclscd == 'E2')";
  3639. var carecls = "(prcpclscd == '00' || prcpclscd == '01' || prcpclscd == '02' || prcpclscd == '03' || prcpclscd == '04' || prcpclscd == '09')";
  3640. var etc = "(prcpclscd == 'F2' || prcpclscd == 'G2' || prcpclscd == 'H2' || prcpclscd == 'H4' || prcpclscd == 'H6' || prcpclscd == 'I2' || prcpclscd == 'I4' || prcpclscd == 'J2' || prcpclscd == 'K2' || prcpclscd == 'M2' || prcpclscd == 'N2' || prcpclscd == 'O2' || prcpclscd == 'Z0')";
  3641. var form = "(prcpclscd == 'FM')";
  3642. var hichart = "(prcpclscd == 'HC')";
  3643. tms = "";
  3644. var dd = "";
  3645. var prcpDD = "";
  3646. var fcsCaptionCtrl;
  3647. var no = 0;
  3648. var curNo = 1;
  3649. var fcsCaptionCtrl = null;
  3650. var gridID = "";
  3651. prcpddArray = prcpddArray.setReplaceWord("'", "");
  3652. if(prcpddArray.substr(prcpddArray.length-1, 1) == ","){
  3653. prcpddArray = prcpddArray.substr(0, prcpddArray.length-1);
  3654. }
  3655. var genrFlag = oOpener.ds_patflag.getColumn(0,"prcpgenrflag");
  3656. var D0StepExstYN = "N";
  3657. // instance1.selectSingleNode("/root/main/steppath/info" + "[times = '0']") != null && genrFlag == "O"
  3658. if( oOpener.ds_main_steppath_info.findRow("times","0") > -1 && genrFlag == "0" ) D0StepExstYN = "Y";
  3659. //1page:0~4, 2page:4~8, 3page:8~12...
  3660. for(var i = Start; i < Cnt; i++) { //Cnt->dayCnt
  3661. no++;
  3662. tms = timesArray.split(",")[i];
  3663. fcsCaptionCtrl = this.components["cap_day" + no];
  3664. dsf_createDs("ds_temp_steppath_info");
  3665. oOpener.ds_main_steppath_info.filter("stepstat == '10' || stepstat == '20' || stepstat == '30'");
  3666. ds_temp_steppath_info.copyData(oOpener.ds_main_steppath_info,true);
  3667. if( (openerNM == "GPS" || oOpener.OpenerKind == "GPS") && ds_temp_steppath_info.rowcount > 0 ) { //opener.instance1.selectSingleNode("/root/main/steppath/info" + "[stepstat = '10' or stepstat = '20' or stepstat = '30']") != null
  3668. if( utlf_isNull(fcsCaptionCtrl) ) continue;
  3669. if( D0StepExstYN == "Y" && i > 0 ){
  3670. if( !utlf_isNull(timesArray) ){
  3671. fcsCaptionCtrl.text = "Day" + tms;
  3672. }
  3673. }else{
  3674. dd = prcpddArray.split(",")[i];
  3675. if( utlf_isNull(prcpddArray) || utlf_isNull(dd) ) continue;
  3676. prcpDD = dd.substr(0,4) + "-" + dd.substr(4,2) + "-" + dd.substr(6,2); //err
  3677. //start: CPG 분기 처리
  3678. if( cpgflagcd == "W" ) fcsCaptionCtrl.text = "Day" + tms + " (" + prcpDD + ")";
  3679. else fcsCaptionCtrl.text = prcpDD;
  3680. //end
  3681. if( dd == utlf_getCurrentDate() ){
  3682. fcsCaptionCtrl.style.color = "#FF0000";
  3683. fcsCaptionCtrl.style.font.type = "bold";
  3684. }else{
  3685. fcsCaptionCtrl.style.color = "#000000";
  3686. fcsCaptionCtrl.style.font.type = "";
  3687. }
  3688. }
  3689. // fcsCaptionCtrl.refresh();
  3690. }else{
  3691. fcsCaptionCtrl.text = "Day" + tms;
  3692. }
  3693. dsf_deleteDs("ds_temp_steppath_info");
  3694. //var trg = instance1.selectSingleNode("/root/temp/getdatalist/list[times = '" + tms + "']");
  3695. if( openerNM == "GPS" || oOpener.OpenerKind == "GPS" ){
  3696. //M-GPS에서 조회 후, 분리
  3697. var stepstatNode = null;
  3698. var stepstat = "";
  3699. //start: CPG 분기 처리
  3700. if( cpgflagcd == "W" ){
  3701. // stepstatNode = opener.instance1.selectSingleNode("/root/main/steppath/info[times='"+tms+"']/stepstat");
  3702. stepstatNode = oOpener.ds_main_steppath_info.getColumn(oOpener.ds_main_steppath_info.findRow("times",tms),"stepstat");
  3703. stepstat = stepstatNode;
  3704. }else{
  3705. // stepstatNode = opener.instance1.selectSingleNode("/root/main/steppath/info[prcpdd='"+dd+"']/stepstat");
  3706. stepstatNode = oOpener.ds_main_steppath_info.getColumn(oOpener.ds_main_steppath_info.findRow("prcpdd",dd),"stepstat");
  3707. if( !utlf_isNull(stepstatNode) ) stepstat = stepstatNode;
  3708. else stepstat = "10";
  3709. }
  3710. //end
  3711. // stepstatNode = opener.instance1.selectSingleNode("/root/main/steppath/info[times='"+tms+"' and prcpdd='"+dd+"']/stepstat");
  3712. stepstatNode = oOpener.ds_main_steppath_info.getColumn(oOpener.ds_main_steppath_info.findRowExpr("times=='"+tms+"' && prcpdd=='"+dd+"'"),"stepstat");
  3713. if( !utlf_isNull(stepstatNode) ) stepstat = stepstatNode;
  3714. else{
  3715. //CPG는 모든 스텝이 적용되었어도 종료하지 않으면 계속적으로 진행, 환자계획표도 계획에 없는 일자가 보여야 하므로 변경함(2009.04.10)
  3716. // stepstatNode = opener.instance1.selectSingleNode("/root/main/steppath/info[times='"+tms+"']/stepstat");
  3717. stepstatNode = oOpener.ds_main_steppath_info.getColumn(oOpener.ds_main_steppath_info.findRow("times",tms),"stepstat");
  3718. if( !utlf_isNull(stepstatNode) ) stepstat = stepstatNode;
  3719. else stepstat = "30";
  3720. }
  3721. //alert("no="+no + " , tms="+tms + " , dd=" + dd + " , stepstat="+stepstat);
  3722. if( cpgflagcd != "W" || stepstat >= 20 ){ //(cpgflagcd != "W" && isNull(timesArray))
  3723. // copyNodeListType("/root/main/druglist" + no, srcref + "[ prcpdd = '" + dd + "' and " + drugcls+ "]", "replace");
  3724. // copyNodeListType("/root/main/testlist" + no, srcref + "[ prcpdd = '" + dd + "' and " + testcls+ "]", "replace");
  3725. // copyNodeListType("/root/main/etclist" + no, srcref + "[ prcpdd = '" + dd + "' and " + etc+ "]", "replace");
  3726. // copyNodeListType("/root/main/caredelivelist" + no, srcref + "[ prcpdd = '" + dd + "' and " + carecls + "]", "replace");
  3727. // copyNodeListType("/root/main/formlist" + no, "/root/temp/formlist/list[ prcpdd = '" + dd + "' and " + form + "]", "replace");
  3728. ds_temp_getdatalist_list.filter("prcpdd == '" + dd + "' && " + drugcls);
  3729. objects["ds_main_druglist"+no].copyData(ds_temp_getdatalist_list,true);
  3730. ds_temp_getdatalist_list.filter("prcpdd == '" + dd + "' && " + testcls);
  3731. objects["ds_main_testlist"+no].copyData(ds_temp_getdatalist_list,true);
  3732. ds_temp_getdatalist_list.filter("prcpdd == '" + dd + "' && " + etc);
  3733. objects["ds_main_etclist"+no].copyData(ds_temp_getdatalist_list,true);
  3734. ds_temp_getdatalist_list.filter("prcpdd == '" + dd + "' && " + carecls);
  3735. objects["ds_main_caredelivelist"+no].copyData(ds_temp_getdatalist_list,true);
  3736. //20180510 이돈희 : 중간시작하는 경우 prcpdd == dd 로 조회시 한스텝에 여러 스텝이 들어가는 현상 발생으로 tms로 조회로 수정
  3737. ds_temp_formlist_list.filter("times == '" + tms + "' && " + form);
  3738. objects["ds_main_formlist"+no].copyData(ds_temp_formlist_list,true);
  3739. //20180130 이돈희 하이차트 추가
  3740. ds_temp_hichart_list.filter("times == '" + tms + "' && " + hichart);
  3741. objects["ds_main_hichartlist0"+no].copyData(ds_temp_hichart_list,true);
  3742. }else{
  3743. //처방에서 CP 적용 데이터 처리
  3744. // copyNodeListType("/root/main/druglist" + no, srcref + "[ times = '" + tms + "' and " + drugcls+ "]", "replace");
  3745. // copyNodeListType("/root/main/testlist" + no, srcref + "[ times = '" + tms + "' and " + testcls+ "]", "replace");
  3746. // copyNodeListType("/root/main/etclist" + no, srcref + "[ times = '" + tms + "' and " + etc+ "]", "replace");
  3747. // copyNodeListType("/root/main/caredelivelist" + no, srcref + "[ times = '" + tms + "' and " + carecls + "]", "replace");
  3748. // copyNodeListType("/root/main/formlist" + no, "/root/temp/formlist/list[ times = '" + tms + "' and " + form + "]", "replace");
  3749. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + drugcls);
  3750. objects["ds_main_druglist"+no].copyData(ds_temp_getdatalist_list,true);
  3751. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + testcls);
  3752. objects["ds_main_testlist"+no].copyData(ds_temp_getdatalist_list,true);
  3753. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + etc);
  3754. objects["ds_main_etclist"+no].copyData(ds_temp_getdatalist_list,true);
  3755. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + carecls);
  3756. objects["ds_main_caredelivelist"+no].copyData(ds_temp_getdatalist_list,true);
  3757. ds_temp_formlist_list.filter("times == '" + tms + "' && " + form);
  3758. objects["ds_main_formlist"+no].copyData(ds_temp_formlist_list,true);
  3759. //20180130 이돈희 하이차트 추가
  3760. ds_temp_hichart_list.filter("times == '" + tms + "' && " + hichart);
  3761. objects["ds_main_hichartlist0"+no].copyData(ds_temp_hichart_list,true);
  3762. }
  3763. }else{
  3764. //생성기에서 조회 후, 분리
  3765. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + drugcls);
  3766. objects["ds_main_druglist"+no].copyData(ds_temp_getdatalist_list,true);
  3767. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + testcls);
  3768. objects["ds_main_testlist"+no].copyData(ds_temp_getdatalist_list,true);
  3769. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + etc);
  3770. objects["ds_main_etclist"+no].copyData(ds_temp_getdatalist_list,true);
  3771. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + carecls);
  3772. objects["ds_main_caredelivelist"+no].copyData(ds_temp_getdatalist_list,true);
  3773. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + form);
  3774. objects["ds_main_formlist"+no].copyData(ds_temp_getdatalist_list,true);
  3775. //20180130 이돈희 하이차트 추가
  3776. ds_temp_getdatalist_list.filter("times == '" + tms + "' && " + hichart);
  3777. objects["ds_main_hichartlist0"+no].copyData(ds_temp_getdatalist_list,true);
  3778. }
  3779. }
  3780. ds_temp_getdatalist_list.filter("");
  3781. ds_temp_formlist_list.filter("");
  3782. ds_temp_hichart_list.filter("");
  3783. fSettingGrid();
  3784. }
  3785. /****************************************************************************************
  3786. * Function : cf_TRMMP02201
  3787. * Description : TRMMP02201 콜백 함수
  3788. * Argument :
  3789. * return type :
  3790. * Creator :
  3791. ****************************************************************************************/
  3792. function cf_TRMMP02201(sSvcId, nErrorCode, sErrorMsg) {
  3793. if(nErrorCode < 0) return;
  3794. dsf_setDefaultVal(ds_temp_getdatalist_list, "status:-,prcpvol:0,prcpqty:0,prcptims:0,prcpdayno:0,hosinhosoutflag:-,drugspd:0,mealcalrcnts:0,mealprotcnts:0,hosinprcpresncd:00,prcprefseq:0,ordreqlnkno:0,testreqlnkno:0,prcplnkno:0,prtlno:0,inclprcpno:0,hsctdelivepos:0,hsctlnkno:0,etcprcpflag:-,aftcertflag:-,aftcertdrid:-,prcpvalidd:00000000,specdrid:-,anticncrprtlno:0,anticncrdayno:0,druglnkno:0,rehbprcpcurefreqflag:0,dietprcpgenrflag:-,irpayflag:N,irflag:N,procerdietflag:N,diagtestconttestintvlflag:N,drugindependpackflag:N,diagtestconttestbasetm:0,diagtestconttestorgtims:0,ermediscmngtresncd:-,rehbprcpenddd:-,matrallsizespecid:-,rehbprcpcurepartcd:-,lowdrugresncd:N,tfdtlcd:-,dnorreqlnkno:0,subcretno:0,exptmthdfact:-,lowdrugresnetcfact:-,diagtestconttestcdspec:-,drgacptflag:-");
  3795. dsf_setDefaultVal(ds_temp_getdatalist_prcplist, "status:-,prcpvol:0,prcpqty:0,prcptims:0,prcpdayno:0,hosinhosoutflag:-,drugspd:0,mealcalrcnts:0,mealprotcnts:0,hosinprcpresncd:00,prcprefseq:0,ordreqlnkno:0,testreqlnkno:0,prcplnkno:0,prtlno:0,inclprcpno:0,hsctdelivepos:0,hsctlnkno:0,etcprcpflag:-,aftcertflag:-,aftcertdrid:-,prcpvalidd:00000000,specdrid:-,anticncrprtlno:0,anticncrdayno:0,druglnkno:0,rehbprcpcurefreqflag:0,dietprcpgenrflag:-,irpayflag:N,irflag:N,procerdietflag:N,diagtestconttestintvlflag:N,drugindependpackflag:N,diagtestconttestbasetm:0,diagtestconttestorgtims:0,ermediscmngtresncd:-,rehbprcpenddd:-,matrallsizespecid:-,rehbprcpcurepartcd:-,lowdrugresncd:N,tfdtlcd:-,dnorreqlnkno:0,subcretno:0,exptmthdfact:-,lowdrugresnetcfact:-,diagtestconttestcdspec:-,drgacptflag:-");
  3796. }
  3797. /****************************************************************************************
  3798. * Function : fSettingGrid
  3799. * Description :
  3800. * Argument :
  3801. * return type :
  3802. * Creator :
  3803. ****************************************************************************************/
  3804. function fSettingGrid(){
  3805. initGrdBackground(grd_drug1);
  3806. initGrdBackground(grd_drug2);
  3807. initGrdBackground(grd_drug3);
  3808. initGrdBackground(grd_drug4);
  3809. initGrdBackground(grd_test1);
  3810. initGrdBackground(grd_test2);
  3811. initGrdBackground(grd_test3);
  3812. initGrdBackground(grd_test4);
  3813. initGrdBackground(grd_caredelive1);
  3814. initGrdBackground(grd_caredelive2);
  3815. initGrdBackground(grd_caredelive3);
  3816. initGrdBackground(grd_caredelive4);
  3817. initGrdBackground(grd_form1);
  3818. initGrdBackground(grd_form2);
  3819. initGrdBackground(grd_form3);
  3820. initGrdBackground(grd_form4);
  3821. initGrdBackground(grd_etc1);
  3822. initGrdBackground(grd_etc2);
  3823. initGrdBackground(grd_etc3);
  3824. initGrdBackground(grd_etc4);
  3825. objects[grd_drug1.binddataset].applyChange();
  3826. objects[grd_drug2.binddataset].applyChange();
  3827. objects[grd_drug3.binddataset].applyChange();
  3828. objects[grd_drug4.binddataset].applyChange();
  3829. objects[grd_test1.binddataset].applyChange();
  3830. objects[grd_test2.binddataset].applyChange();
  3831. objects[grd_test3.binddataset].applyChange();
  3832. objects[grd_test4.binddataset].applyChange();
  3833. objects[grd_caredelive1.binddataset].applyChange();
  3834. objects[grd_caredelive2.binddataset].applyChange();
  3835. objects[grd_caredelive3.binddataset].applyChange();
  3836. objects[grd_caredelive4.binddataset].applyChange();
  3837. objects[grd_form1.binddataset].applyChange();
  3838. objects[grd_form2.binddataset].applyChange();
  3839. objects[grd_form3.binddataset].applyChange();
  3840. objects[grd_form4.binddataset].applyChange();
  3841. objects[grd_etc1.binddataset].applyChange();
  3842. objects[grd_etc2.binddataset].applyChange();
  3843. objects[grd_etc3.binddataset].applyChange();
  3844. objects[grd_etc4.binddataset].applyChange();
  3845. var cpgappNum = parseInt(cpgappno.getLeftPad(10, "0")); //조건 추가. drop한 CP의 처방이 검정색으로 보이는 문제 해결
  3846. // cpg 번호를 int형으로 형변환 : 2010. 03. 08 han19
  3847. var histcd = "";
  3848. var p_stat = "";
  3849. var p_prcpno = "";
  3850. for(var no = 1; no <= 4; no++){
  3851. //처방 저장상태에 따라 테이블의 컬럼 색상을 달리 한다.
  3852. if(openerNM == "GPS"){
  3853. var statNode = ds_temp_getdatalist_list; //instance1.selectNodes("/root/temp/getdatalist/list");
  3854. //처방일이 오늘날짜 이상이면, 색상을 달리한다
  3855. fcsCaptionCtrl = this.components["grd_drug" + no];
  3856. var colcnt = fcsCaptionCtrl.getCellCount("body");
  3857. for(var colno = 0; colno < colcnt; colno++) {
  3858. // 글자색(c0c0c0 : 은색, ff0000 : 빨간색, 0000ff : 파란색)
  3859. fcsCaptionCtrl.setCellProperty("body", colno, "color","EXPR((getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prcphistcd')=='E')?&quot;#c0c0c0&quot;"
  3860. +":(getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prcphistcd')=='C')?&quot;#ff0000&quot;"
  3861. +":((getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prtlprcpno') != '"+cpgappNum+"' && getColumn(currow,'prcphistcd')!='E' && getColumn(currow,'prcphistcd')!='C')"
  3862. +" || (getColumn(currow,'prtlstat')=='20' && getColumn(currow,'prtlprcpno') == '0') || getColumn(currow,'prtlstat')=='21')?&quot;#0000ff&quot;"
  3863. +":(getColumn(currow,'prtlstat')=='11' || getColumn(currow,'prtlstat')=='12')?&quot;#ff0000&quot;"
  3864. +":&quot;#000000&quot;)");
  3865. // 배경색
  3866. fcsCaptionCtrl.setCellProperty("body", colno, "background", 'EXPR(prtlstat == "30"? "#c8e67b":(prtlstat >= "10"? "#E5F3C2" : "") )');
  3867. fcsCaptionCtrl.setCellProperty("body", colno, "background2", 'EXPR(prtlstat == "30"? "#c8e67b":(prtlstat >= "10"? "#E5F3C2" : "") )');
  3868. }
  3869. fcsCaptionCtrl = this.components["grd_test" + no];
  3870. colcnt = fcsCaptionCtrl.getCellCount("body");
  3871. for( var colno = 0; colno < colcnt; colno++ ) {
  3872. // 글자색
  3873. fcsCaptionCtrl.setCellProperty("body", colno, "color","EXPR((getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prcphistcd')=='E')?&quot;#c0c0c0&quot;"
  3874. +":(getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prcphistcd')=='C')?&quot;#ff0000&quot;"
  3875. +":((getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prtlprcpno') != '"+cpgappNum+"' && getColumn(currow,'prcphistcd')!='E' && getColumn(currow,'prcphistcd')!='C')"
  3876. +" || (getColumn(currow,'prtlstat')=='20' && getColumn(currow,'prtlprcpno') == '0') || getColumn(currow,'prtlstat')=='21')?&quot;#0000ff&quot;"
  3877. +":(getColumn(currow,'prtlstat')=='11' || getColumn(currow,'prtlstat')=='12')?&quot;#ff0000&quot;"
  3878. +":&quot;#000000&quot;)");
  3879. // 배경색
  3880. fcsCaptionCtrl.setCellProperty("body", colno, "background", 'EXPR(prtlstat == "30"? "#c8e67b":(prtlstat >= "10"? "#E5F3C2" : "") )');
  3881. fcsCaptionCtrl.setCellProperty("body", colno, "background2", 'EXPR(prtlstat == "30"? "#c8e67b":(prtlstat >= "10"? "#E5F3C2" : "") )');
  3882. }
  3883. fcsCaptionCtrl = this.components["grd_caredelive" + no];
  3884. colcnt = fcsCaptionCtrl.getCellCount("body");
  3885. for(var colno = 0; colno < colcnt; colno++) {
  3886. // 글자색
  3887. fcsCaptionCtrl.setCellProperty("body", colno, "color","EXPR((getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prcphistcd')=='E')?&quot;#c0c0c0&quot;"
  3888. +":(getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prcphistcd')=='C')?&quot;#ff0000&quot;"
  3889. +":((getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prtlprcpno') != '"+cpgappNum+"' && getColumn(currow,'prcphistcd')!='E' && getColumn(currow,'prcphistcd')!='C')"
  3890. +" || (getColumn(currow,'prtlstat')=='20' && getColumn(currow,'prtlprcpno') == '0') || getColumn(currow,'prtlstat')=='21')?&quot;#0000ff&quot;"
  3891. +":(getColumn(currow,'prtlstat')=='11' || getColumn(currow,'prtlstat')=='12')?&quot;#ff0000&quot;"
  3892. +":&quot;#000000&quot;)");
  3893. // 배경색
  3894. fcsCaptionCtrl.setCellProperty("body", colno, "background", 'EXPR(prtlstat == "30"? "#c8e67b":(prtlstat >= "10"? "#E5F3C2" : "") )');
  3895. fcsCaptionCtrl.setCellProperty("body", colno, "background2", 'EXPR(prtlstat == "30"? "#c8e67b":(prtlstat >= "10"? "#E5F3C2" : "") )');
  3896. }
  3897. fcsCaptionCtrl = this.components["grd_etc" + no];
  3898. colcnt = fcsCaptionCtrl.getCellCount("body");
  3899. for(var colno = 0; colno < colcnt; colno++) {
  3900. // 글자색
  3901. fcsCaptionCtrl.setCellProperty("body", colno, "color","EXPR((getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prcphistcd')=='E')?&quot;#c0c0c0&quot;"
  3902. +":(getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prcphistcd')=='C')?&quot;#ff0000&quot;"
  3903. +":((getColumn(currow,'prtlstat')=='30' && getColumn(currow,'prtlprcpno') != '"+cpgappNum+"' && getColumn(currow,'prcphistcd')!='E' && getColumn(currow,'prcphistcd')!='C')"
  3904. +" || (getColumn(currow,'prtlstat')=='20' && getColumn(currow,'prtlprcpno') == '0') || getColumn(currow,'prtlstat')=='21')?&quot;#0000ff&quot;"
  3905. +":(getColumn(currow,'prtlstat')=='11' || getColumn(currow,'prtlstat')=='12')?&quot;#ff0000&quot;"
  3906. +":&quot;#000000&quot;)");
  3907. // 배경색
  3908. fcsCaptionCtrl.setCellProperty("body", colno, "background", 'EXPR(prtlstat == "30"? "#c8e67b":(prtlstat >= "10"? "#E5F3C2" : "") )');
  3909. fcsCaptionCtrl.setCellProperty("body", colno, "background2", 'EXPR(prtlstat == "30"? "#c8e67b":(prtlstat >= "10"? "#E5F3C2" : "") )');
  3910. }
  3911. }
  3912. }
  3913. // model.refresh();
  3914. //grd_caredelive1.rowHidden(0) = true;
  3915. //grd_caredelive2.rowHidden(0) = true;
  3916. //grd_caredelive3.rowHidden(0) = true;
  3917. //grd_caredelive4.rowHidden(0) = true;
  3918. // grd_form1.rowHidden(0) = true;
  3919. // grd_form2.rowHidden(0) = true;
  3920. // grd_form3.rowHidden(0) = true;
  3921. // grd_form4.rowHidden(0) = true;
  3922. // grd_etc1.rowHidden(0) = true;
  3923. // grd_etc2.rowHidden(0) = true;
  3924. // grd_etc3.rowHidden(0) = true;
  3925. // grd_etc4.rowHidden(0) = true;
  3926. /*
  3927. grd_form1.setFormatRowProperty(0,"size",0);
  3928. grd_form2.setFormatRowProperty(0,"size",0);
  3929. grd_form3.setFormatRowProperty(0,"size",0);
  3930. grd_form4.setFormatRowProperty(0,"size",0);
  3931. grd_etc1.setFormatRowProperty(0,"size",0);
  3932. grd_etc2.setFormatRowProperty(0,"size",0);
  3933. grd_etc3.setFormatRowProperty(0,"size",0);
  3934. grd_etc4.setFormatRowProperty(0,"size",0);
  3935. if( oOpener.ds_main_masterinfo_info.getColumn(0,"cpgflagcd") != "01" ) {
  3936. grd_drug1.setFormatColProperty((grd_drug1.getBindCellIndex("body","prcphopedd")),"size",80);
  3937. grd_test1.setFormatColProperty((grd_test1.getBindCellIndex("body","prcphopedd")),"size",80);
  3938. grd_caredelive1.setFormatColProperty((grd_caredelive1.getBindCellIndex("body","prcphopedd")),"size",80);
  3939. grd_etc1.setFormatColProperty((grd_etc1.getBindCellIndex("body","prcphopedd")),"size",80);
  3940. grd_drug2.setFormatColProperty((grd_drug2.getBindCellIndex("body","prcphopedd")),"size",80);
  3941. grd_test2.setFormatColProperty((grd_test2.getBindCellIndex("body","prcphopedd")),"size",80);
  3942. grd_caredelive2.setFormatColProperty((grd_caredelive2.getBindCellIndex("body","prcphopedd")),"size",80);
  3943. grd_etc2.setFormatColProperty((grd_etc2.getBindCellIndex("body","prcphopedd")),"size",80);
  3944. grd_drug3.setFormatColProperty((grd_drug3.getBindCellIndex("body","prcphopedd")),"size",80);
  3945. grd_test3.setFormatColProperty((grd_test3.getBindCellIndex("body","prcphopedd")),"size",80);
  3946. grd_caredelive3.setFormatColProperty((grd_caredelive3.getBindCellIndex("body","prcphopedd")),"size",80);
  3947. grd_etc3.setFormatColProperty((grd_etc3.getBindCellIndex("body","prcphopedd")),"size",80);
  3948. grd_drug4.setFormatColProperty((grd_drug4.getBindCellIndex("body","prcphopedd")),"size",80);
  3949. grd_test4.setFormatColProperty((grd_test4.getBindCellIndex("body","prcphopedd")),"size",80);
  3950. grd_caredelive4.setFormatColProperty((grd_caredelive4.getBindCellIndex("body","prcphopedd")),"size",80);
  3951. grd_etc4.setFormatColProperty((grd_etc4.getBindCellIndex("body","prcphopedd")),"size",80);
  3952. //model.refresh();
  3953. }else{
  3954. grd_drug1.setFormatColProperty((grd_drug1.getBindCellIndex("body","prcphopedd")),"size",0);
  3955. grd_test1.setFormatColProperty((grd_test1.getBindCellIndex("body","prcphopedd")),"size",0);
  3956. grd_caredelive1.setFormatColProperty((grd_caredelive1.getBindCellIndex("body","prcphopedd")),"size",0);
  3957. grd_etc1.setFormatColProperty((grd_etc1.getBindCellIndex("body","prcphopedd")),"size",0);
  3958. grd_drug2.setFormatColProperty((grd_drug2.getBindCellIndex("body","prcphopedd")),"size",0);
  3959. grd_test2.setFormatColProperty((grd_test2.getBindCellIndex("body","prcphopedd")),"size",0);
  3960. grd_caredelive2.setFormatColProperty((grd_caredelive2.getBindCellIndex("body","prcphopedd")),"size",0);
  3961. grd_etc2.setFormatColProperty((grd_etc2.getBindCellIndex("body","prcphopedd")),"size",0);
  3962. grd_drug3.setFormatColProperty((grd_drug3.getBindCellIndex("body","prcphopedd")),"size",0);
  3963. grd_test3.setFormatColProperty((grd_test3.getBindCellIndex("body","prcphopedd")),"size",0);
  3964. grd_caredelive3.setFormatColProperty((grd_caredelive3.getBindCellIndex("body","prcphopedd")),"size",0);
  3965. grd_etc3.setFormatColProperty((grd_etc3.getBindCellIndex("body","prcphopedd")),"size",0);
  3966. grd_drug4.setFormatColProperty((grd_drug4.getBindCellIndex("body","prcphopedd")),"size",0);
  3967. grd_test4.setFormatColProperty((grd_test4.getBindCellIndex("body","prcphopedd")),"size",0);
  3968. grd_caredelive4.setFormatColProperty((grd_caredelive4.getBindCellIndex("body","prcphopedd")),"size",0);
  3969. grd_etc4.setFormatColProperty((grd_etc4.getBindCellIndex("body","prcphopedd")),"size",0);
  3970. }
  3971. */
  3972. }
  3973. /**
  3974. * @group :
  3975. * @ver : 2008.09
  3976. * @by : 전지은
  3977. * @---------------------------------------------------
  3978. * @type : function
  3979. * @access : public
  3980. * @desc : 재조회 시, 선택된 셀의 색상을 초기화
  3981. * @param :
  3982. * @return :
  3983. * @---------------------------------------------------
  3984. */
  3985. function fInitGridStyle(){
  3986. /*
  3987. grd_drug1.rebuild();
  3988. grd_test1.rebuild();
  3989. grd_caredelive1.rebuild();
  3990. grd_etc1.rebuild();
  3991. grd_form1.rebuild();
  3992. grd_drug2.rebuild();
  3993. grd_test2.rebuild();
  3994. grd_caredelive2.rebuild();
  3995. grd_etc2.rebuild();
  3996. grd_form2.rebuild();
  3997. grd_drug3.rebuild();
  3998. grd_test3.rebuild();
  3999. grd_caredelive3.rebuild();
  4000. grd_etc3.rebuild();
  4001. grd_form3.rebuild();
  4002. grd_drug4.rebuild();
  4003. grd_test4.rebuild();
  4004. grd_caredelive4.rebuild();
  4005. grd_etc4.rebuild();
  4006. grd_form4.rebuild();
  4007. */
  4008. grd_drug1.initStyle("background-color");
  4009. grd_drug2.initStyle("background-color");
  4010. grd_drug3.initStyle("background-color");
  4011. grd_drug4.initStyle("background-color");
  4012. grd_test1.initStyle("background-color");
  4013. grd_test2.initStyle("background-color");
  4014. grd_test3.initStyle("background-color");
  4015. grd_test4.initStyle("background-color");
  4016. grd_caredelive1.initStyle("background-color");
  4017. grd_caredelive2.initStyle("background-color");
  4018. grd_caredelive3.initStyle("background-color");
  4019. grd_caredelive4.initStyle("background-color");
  4020. grd_form1.initStyle("background-color");
  4021. grd_form2.initStyle("background-color");
  4022. grd_form3.initStyle("background-color");
  4023. grd_form4.initStyle("background-color");
  4024. grd_etc1.initStyle("background-color");
  4025. grd_etc2.initStyle("background-color");
  4026. grd_etc3.initStyle("background-color");
  4027. grd_etc4.initStyle("background-color");
  4028. grd_drug1.initStyle("color");
  4029. grd_drug2.initStyle("color");
  4030. grd_drug3.initStyle("color");
  4031. grd_drug4.initStyle("color");
  4032. grd_test1.initStyle("color");
  4033. grd_test2.initStyle("color");
  4034. grd_test3.initStyle("color");
  4035. grd_test4.initStyle("color");
  4036. grd_caredelive1.initStyle("color");
  4037. grd_caredelive2.initStyle("color");
  4038. grd_caredelive3.initStyle("color");
  4039. grd_caredelive4.initStyle("color");
  4040. grd_form1.initStyle("color");
  4041. grd_form2.initStyle("color");
  4042. grd_form3.initStyle("color");
  4043. grd_form4.initStyle("color");
  4044. grd_etc1.initStyle("color");
  4045. grd_etc2.initStyle("color");
  4046. grd_etc3.initStyle("color");
  4047. grd_etc4.initStyle("color");
  4048. grd_drug1.clearStatus();
  4049. grd_drug2.clearStatus();
  4050. grd_drug3.clearStatus();
  4051. grd_drug4.clearStatus();
  4052. grd_test1.clearStatus();
  4053. grd_test2.clearStatus();
  4054. grd_test3.clearStatus();
  4055. grd_test4.clearStatus();
  4056. grd_caredelive1.clearStatus();
  4057. grd_caredelive2.clearStatus();
  4058. grd_caredelive3.clearStatus();
  4059. grd_caredelive4.clearStatus();
  4060. grd_form1.clearStatus();
  4061. grd_form2.clearStatus();
  4062. grd_form3.clearStatus();
  4063. grd_form4.clearStatus();
  4064. grd_etc1.clearStatus();
  4065. grd_etc2.clearStatus();
  4066. grd_etc3.clearStatus();
  4067. grd_etc4.clearStatus();
  4068. grd_form1.rowHidden(0) = true;
  4069. grd_form2.rowHidden(0) = true;
  4070. grd_form3.rowHidden(0) = true;
  4071. grd_form4.rowHidden(0) = true;
  4072. grd_etc1.rowHidden(0) = true;
  4073. grd_etc2.rowHidden(0) = true;
  4074. grd_etc3.rowHidden(0) = true;
  4075. grd_etc4.rowHidden(0) = true;
  4076. if( opener.model.getValue("/root/main/masterinfo/info/cpgflagcd") != "01" ){
  4077. grd_drug1.colHidden(grd_drug1.colRef("prcphopedd")) = false;
  4078. grd_test1.colHidden(grd_test1.colRef("prcphopedd")) = false;
  4079. grd_caredelive1.colHidden(grd_caredelive1.colRef("prcphopedd")) = false;
  4080. grd_etc1.colHidden(grd_etc1.colRef("prcphopedd")) = false;
  4081. grd_drug2.colHidden(grd_drug2.colRef("prcphopedd")) = false;
  4082. grd_test2.colHidden(grd_test2.colRef("prcphopedd")) = false;
  4083. grd_caredelive2.colHidden(grd_caredelive2.colRef("prcphopedd")) = false;
  4084. grd_etc2.colHidden(grd_etc2.colRef("prcphopedd")) = false;
  4085. grd_drug3.colHidden(grd_drug3.colRef("prcphopedd")) = false;
  4086. grd_test3.colHidden(grd_test3.colRef("prcphopedd")) = false;
  4087. grd_caredelive3.colHidden(grd_caredelive3.colRef("prcphopedd")) = false;
  4088. grd_etc3.colHidden(grd_etc3.colRef("prcphopedd")) = false;
  4089. grd_drug4.colHidden(grd_drug4.colRef("prcphopedd")) = false;
  4090. grd_test4.colHidden(grd_test4.colRef("prcphopedd")) = false;
  4091. grd_caredelive4.colHidden(grd_caredelive4.colRef("prcphopedd")) = false;
  4092. grd_etc4.colHidden(grd_etc4.colRef("prcphopedd")) = false;
  4093. //model.refresh();
  4094. }else{
  4095. grd_drug1.colHidden(grd_drug1.colRef("prcphopedd")) = true;
  4096. grd_test1.colHidden(grd_test1.colRef("prcphopedd")) = true;
  4097. grd_caredelive1.colHidden(grd_caredelive1.colRef("prcphopedd")) = true;
  4098. grd_etc1.colHidden(grd_etc1.colRef("prcphopedd")) = true;
  4099. grd_drug2.colHidden(grd_drug2.colRef("prcphopedd")) = true;
  4100. grd_test2.colHidden(grd_test2.colRef("prcphopedd")) = true;
  4101. grd_caredelive2.colHidden(grd_caredelive2.colRef("prcphopedd")) = true;
  4102. grd_etc2.colHidden(grd_etc2.colRef("prcphopedd")) = true;
  4103. grd_drug3.colHidden(grd_drug3.colRef("prcphopedd")) = true;
  4104. grd_test3.colHidden(grd_test3.colRef("prcphopedd")) = true;
  4105. grd_caredelive3.colHidden(grd_caredelive3.colRef("prcphopedd")) = true;
  4106. grd_etc3.colHidden(grd_etc3.colRef("prcphopedd")) = true;
  4107. grd_drug4.colHidden(grd_drug4.colRef("prcphopedd")) = true;
  4108. grd_test4.colHidden(grd_test4.colRef("prcphopedd")) = true;
  4109. grd_caredelive4.colHidden(grd_caredelive4.colRef("prcphopedd")) = true;
  4110. grd_etc4.colHidden(grd_etc4.colRef("prcphopedd")) = true;
  4111. }
  4112. }
  4113. /****************************************************************************************
  4114. * Function : initGrdBackground
  4115. * Description : 그리드 백그라운드 초기화
  4116. * Argument :
  4117. * return type :
  4118. * Creator :
  4119. ****************************************************************************************/
  4120. function initGrdBackground(objGrd) {
  4121. for(var i = 0 ; i < objGrd.getCellCount("body"); i++) {
  4122. objGrd.setCellProperty("body",i,"background","");
  4123. objGrd.setCellProperty("body",i,"background2","");
  4124. }
  4125. }
  4126. /****************************************************************************************
  4127. * Function : fMakeCopyColumn
  4128. * Description : 데이터셋 특정컬럼 카피하여 새컬럼 생성
  4129. * : objDs - 대상 그리드
  4130. * : sColSrc - 생성할 컬럼명
  4131. * : sColTgt - 카피할 컬럼명
  4132. * Argument :
  4133. * return type :
  4134. * Creator :
  4135. ****************************************************************************************/
  4136. function fMakeCopyColumn(objDs,sColSrc,sColTgt) {
  4137. for(var i = 0 ; i < objDs.rowcount ; i++) {
  4138. dsf_makeValue(objDs,sColTgt,"string",objDs.getColumn(i,sColSrc),i);
  4139. }
  4140. }
  4141. /****************************************************************************************
  4142. * Function : fPopupMenuEvent
  4143. * Description : 그리드들에 이벤트를 매핑시킨다
  4144. * Argument :
  4145. * return type :
  4146. * Creator :
  4147. ****************************************************************************************/
  4148. function fPopupMenuEvent(obj:Grid, e:GridMouseEventInfo)
  4149. {
  4150. if(e.row < 0 || e.col < 0 ) return;
  4151. var ctrl1 = obj.name;
  4152. // var ctrl2 = event.target;
  4153. // var selControl = document.controls(ctrl1);
  4154. curTrgGrd = ctrl1;
  4155. if((obj.getEditText() != undefined) && (ds_main_prcplist.rowposition == e.row) && (obj.getCellPos() == e.cell)) return;
  4156. // if((obj.getEditText() != undefined) && (ds_main_prcplist.rowposition == e.row) && (obj.getCellPos() == e.cell)) return;
  4157. grdf_setSelectedCell(obj, e);
  4158. if(ctrl1.substr(0, ctrl1.length-1) == "grd_test"){
  4159. pmn_menu_2.trackPopup(e.screenX,e.screenY);
  4160. }
  4161. //20180130 이돈희 : 하아치트 추가
  4162. else if(ctrl1.substr(0, ctrl1.length-1) == "grd_hichart"){
  4163. pmn_menu_3.trackPopup(e.screenX,e.screenY);
  4164. }
  4165. else{
  4166. pmn_menu_1.trackPopup(e.screenX,e.screenY);
  4167. }
  4168. }
  4169. /****************************************************************************************
  4170. * Function : fPopupmenu
  4171. * Description : 팝업메뉴 선택시 분기하여 함수 실행
  4172. * Argument :
  4173. * return type :
  4174. * Creator :
  4175. ****************************************************************************************/
  4176. function fPopupmenu(obj:PopupMenu, e:MenuClickEventInfo) {
  4177. if(e.id == "S") {
  4178. fSetPrcp();
  4179. } else if(e.id == "A") {
  4180. fAddPrcp();
  4181. } else if(e.id == "D") {
  4182. fDelPrcp();
  4183. } else if(e.id == "O") {
  4184. fOpenTestRslt();
  4185. }
  4186. }
  4187. /****************************************************************************************
  4188. * Function : fSetPrcp
  4189. * Description : 프로토콜 처방을 수정한다.
  4190. * Argument :
  4191. * return type :
  4192. * Creator :
  4193. ****************************************************************************************/
  4194. function fSetPrcp(){
  4195. fOpenPrcpDetail( curTrgGrd, "SET" );
  4196. curTrgGrd = null;
  4197. }
  4198. /****************************************************************************************
  4199. * Function : fAddPrcp
  4200. * Description : 프로토콜 처방을 추가한다.
  4201. * Argument :
  4202. * return type :
  4203. * Creator :
  4204. ****************************************************************************************/
  4205. function fAddPrcp(){
  4206. fOpenPrcpDetail( curTrgGrd, "ADD" );
  4207. curTrgGrd = null;
  4208. }
  4209. /****************************************************************************************
  4210. * Function : fDelPrcp
  4211. * Description : 프로토콜 처방을 삭제한다.
  4212. * Argument :
  4213. * return type :
  4214. * Creator :
  4215. ****************************************************************************************/
  4216. function fDelPrcp(){
  4217. fOpenPrcpDetail( curTrgGrd, "DEL" );
  4218. curTrgGrd = null;
  4219. }
  4220. /****************************************************************************************
  4221. * Function : fOpenTestRslt
  4222. * Description : 통합검사결과조회 화면 OPEN
  4223. * Argument :
  4224. * return type :
  4225. * Creator :
  4226. ****************************************************************************************/
  4227. function fOpenTestRslt() {
  4228. if( utlf_isNull(curTrgGrd) ) return ;
  4229. var grdCtrl = this.components[curTrgGrd];
  4230. if( (objects[grdCtrl.binddataset].rowposition < 0 ) ) return ;
  4231. if( selectedDayCaption == "" ) return ;
  4232. var curDate = "";
  4233. if( selectedDayCaption == "cap_day1" ) curDate = cap_day1.text;
  4234. if( selectedDayCaption == "cap_day2" ) curDate = cap_day2.text;
  4235. if( selectedDayCaption == "cap_day3" ) curDate = cap_day3.text;
  4236. if( selectedDayCaption == "cap_day4" ) curDate = cap_day4.text;
  4237. if( (utlf_isNull(curDate)) || (curDate.length < 10 ) ) return ;
  4238. var vNode = ds_send_data_singdata; //"/root/send/data/singdata" ;
  4239. // var vPidNode = vNode + "/srchpid" ;
  4240. // var vDate1Node = vNode + "/srchdate11" ; //fromdd yyyymmdd
  4241. // var vDate2Node = vNode + "/srchdate22" ; //todd yyyymmdd
  4242. // var vDateFlagNode = vNode + "/listflag2" ; //처방일 : P , 검사일 : J , 보고일 : Z
  4243. var vPid = ds_main_steplist_stepinfo.getColumn(0,"pid" );
  4244. var vDate1 = curDate.substring( curDate.length - 11 , curDate.length -1);
  4245. vDate1 = vDate1.replace("-", "");
  4246. // vDate1 = vDate1.replace("-", "");
  4247. dsf_makeValue(vNode,"srchpid" ,"string",vPid);
  4248. dsf_makeValue(vNode,"srchdate11","string",vDate1);
  4249. dsf_makeValue(vNode,"srchdate22","string",vDate1);
  4250. dsf_makeValue(vNode,"listflag2" ,"string","P");
  4251. // open( "SMAER00800",1, 100,10,"SMAER00800","/root/send/data/singdata",vNode);
  4252. var objArg = new Object();
  4253. objArg.arg_ds_send_data_singdata = ds_send_data_singdata;
  4254. frmf_open("SMAER00800", "SMAER00800", objArg, null, 1, 100, 10, null, null, null, null, null, "M");
  4255. }
  4256. /****************************************************************************************
  4257. * Function : fChangeValue
  4258. * Description : 미래처방 수정 시, 변경값 체크하여, 상태값도 변경한다.
  4259. * Argument :
  4260. * return type :
  4261. * Creator :
  4262. ****************************************************************************************/
  4263. function fChangeValue(obj:Dataset, e:DSColChangeEventInfo){
  4264. // var ctrl1 = event.currentTarget;
  4265. // var ctrl2 = event.target;
  4266. // var selControl = document.controls(ctrl1);
  4267. //처방상태값이 바뀌었을때, 업데이트 셋팅
  4268. if ( e.columnid == "prcpkindcd" ) {
  4269. // var grdName = selControl.attribute("id");
  4270. // var grdNo = ctrl1.substr(ctrl1.length-1, 1);
  4271. // grdNodeNm = fGetGridNodeName(ctrl1);
  4272. fGetPrcpNo(obj);
  4273. var orgPrcpKindCd = obj.getColumn(e.row,"prcpkindcd");
  4274. var trgPrcpKindCd = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpkindcd");
  4275. if( !utlf_isNull(orgPrcpKindCd) && !utlf_isNull(trgPrcpKindCd) ){
  4276. if( orgPrcpKindCd != trgPrcpKindCd){
  4277. var rStatus = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"status");
  4278. var prcpclscd = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpclscd");
  4279. prtlPrcpNo = obj.getColumn(e.row,"prcpno");
  4280. ds_main_prcplist.setColumn(ds_main_prcplist.rowposition,"prcpkindcd",orgPrcpKindCd);
  4281. if(rStatus == "I") { // 신규 입력 처방이면 상태(status)값을 수정 하지 않고 리턴 한다.
  4282. return;
  4283. }
  4284. // ds_temp.setColumn(0,"mstatus", "U");
  4285. ds_main_prcplist.setColumn(ds_main_prcplist.rowposition,"status", "U" );
  4286. ds_temp.setColumn(0,"mstatus", rStatus);
  4287. obj.setColumn(e.row,"status", "U");
  4288. }
  4289. }
  4290. }
  4291. }
  4292. /****************************************************************************************
  4293. * Function : fOpenPrcpDetail
  4294. * Description : 선택된 처방에 대항 상세 내용을 보여주고, 수정이 기능하도록 한다.
  4295. * Argument : grdName - 그리드명
  4296. * : mode - 동작
  4297. * return type :
  4298. * Creator :
  4299. ****************************************************************************************/
  4300. function fOpenPrcpDetail( grdName, mode ){
  4301. var sCpBatchTime = lf_getHardCDList("Y", 599, 3); //배치 실행 시간 2018.01.25 엄영만
  4302. if(utlf_isNull(sCpBatchTime)) {
  4303. if(sysf_getUserInfo("dutplceinstcd") == "031") {
  4304. sCpBatchTime = "153000"; // 디폴트 6시 => 153000 으로 변경
  4305. } else {
  4306. sCpBatchTime = "153000"; // 디폴트 6시 => 153000 으로 변경
  4307. }
  4308. }
  4309. if( openerNM == "GPS" ){
  4310. if( utlf_isNull(grdName) ){
  4311. return;
  4312. }else{
  4313. // => 처음 처방 조회할 때, 필요한 데이터를 더 가지고 온다(프로토콜처방번호, 스텝번호...)
  4314. var selectedGridNM = grdName.substr(0, grdName.length-1);
  4315. var grdNo = grdName.substr(grdName.length-1, 1);
  4316. var grdCtrl = this.components[grdName];
  4317. var choiPrcpNode = null; //선택한 처방에 대한 데이터를 담아두는 노드
  4318. var prtlstat = null;
  4319. var prtlPrcpNo = null;
  4320. var iPrcpDD = "";
  4321. var yPos = null;
  4322. if( utlf_isNull(mode) ) mode = "SET";
  4323. var currow = objects[grdCtrl.binddataset].rowposition;
  4324. if( currow < 0 ) return;
  4325. dsf_createDs("ds_temp_selectedGrid");
  4326. switch ( selectedGridNM ){
  4327. case "grd_drug" :
  4328. // choiPrcpNode = instance1.selectSingleNode("/root/main/druglist" + grdNo + "/list[" + grdCtrl.row + "]");
  4329. dsf_copyColInfo(ds_temp_selectedGrid, objects["ds_main_druglist"+grdNo]);
  4330. ds_temp_selectedGrid.copyRow(ds_temp_selectedGrid.addRow(),objects["ds_main_druglist"+grdNo],currow);
  4331. choiPrcpNode = ds_temp_selectedGrid;
  4332. prtlstat = objects["ds_main_druglist"+grdNo].getColumn(currow,"prtlstat");
  4333. prtlPrcpNo = objects["ds_main_druglist"+grdNo].getColumn(currow,"prcpno"); // prtlprcpno ?
  4334. iPrcpDD = objects["ds_main_druglist"+grdNo].getColumn(currow,"prcpdd");
  4335. break;
  4336. case "grd_test" :
  4337. // choiPrcpNode = instance1.selectSingleNode("/root/main/testlist" + grdNo + "/list[" + grdCtrl.row + "]");
  4338. dsf_copyColInfo(ds_temp_selectedGrid, objects["ds_main_testlist"+grdNo]);
  4339. ds_temp_selectedGrid.copyRow(ds_temp_selectedGrid.addRow(),objects["ds_main_testlist"+grdNo],currow);
  4340. choiPrcpNode = ds_temp_selectedGrid;
  4341. prtlstat = objects["ds_main_testlist"+grdNo].getColumn(currow,"prtlstat");
  4342. prtlPrcpNo = objects["ds_main_testlist"+grdNo].getColumn(currow,"prcpno");
  4343. iPrcpDD = objects["ds_main_testlist"+grdNo].getColumn(currow,"prcpdd");
  4344. break;
  4345. case "grd_caredelive" :
  4346. // choiPrcpNode = instance1.selectSingleNode("/root/main/caredelivelist" + grdNo + "/list[" + grdCtrl.row + "]");
  4347. dsf_copyColInfo(ds_temp_selectedGrid, objects["ds_main_caredelivelist"+grdNo]);
  4348. ds_temp_selectedGrid.copyRow(ds_temp_selectedGrid.addRow(),objects["ds_main_caredelivelist"+grdNo],currow);
  4349. choiPrcpNode = ds_temp_selectedGrid;
  4350. prtlstat = objects["ds_main_caredelivelist"+grdNo].getColumn(currow,"prtlstat");
  4351. prtlPrcpNo = objects["ds_main_caredelivelist"+grdNo].getColumn(currow,"prcpno");
  4352. iPrcpDD = objects["ds_main_caredelivelist"+grdNo].getColumn(currow,"prcpdd");
  4353. break;
  4354. case "grd_form" :
  4355. // choiPrcpNode = instance1.selectSingleNode("/root/main/formlist" + grdNo + "/list[" + grdCtrl.row + "]");
  4356. dsf_copyColInfo(ds_temp_selectedGrid, objects["ds_main_formlist"+grdNo]);
  4357. ds_temp_selectedGrid.copyRow(ds_temp_selectedGrid.addRow(),objects["ds_main_formlist"+grdNo],currow);
  4358. choiPrcpNode = ds_temp_selectedGrid;
  4359. prtlstat = objects["ds_main_formlist"+grdNo].getColumn(currow,"prtlstat");
  4360. prtlPrcpNo = objects["ds_main_formlist"+grdNo].getColumn(currow,"prcpno");
  4361. iPrcpDD = objects["ds_main_formlist"+grdNo].getColumn(currow,"prcpdd");
  4362. break;
  4363. case "grd_etc" :
  4364. // choiPrcpNode = instance1.selectSingleNode("/root/main/etclist" + grdNo + "/list[" + grdCtrl.row + "]");
  4365. dsf_copyColInfo(ds_temp_selectedGrid, objects["ds_main_etclist"+grdNo]);
  4366. ds_temp_selectedGrid.copyRow(ds_temp_selectedGrid.addRow(),objects["ds_main_etclist"+grdNo],currow);
  4367. choiPrcpNode = ds_temp_selectedGrid;
  4368. prtlstat = objects["ds_main_etclist"+grdNo].getColumn(currow,"prtlstat");
  4369. prtlPrcpNo = objects["ds_main_etclist"+grdNo].getColumn(currow,"prcpno");
  4370. iPrcpDD = objects["ds_main_etclist"+grdNo].getColumn(currow,"prcpdd");
  4371. break;
  4372. }
  4373. //서식을 선택하면, 상단의 서식그리드를 강제 선택하도록 함으로써, 서식을 띄운다.
  4374. if( selectedGridNM == "grd_form" ){
  4375. var formcd = objects["ds_main_formlist"+grdNo].getColumn(currow,"prcpcd");
  4376. var times = "D" + objects["ds_main_formlist"+grdNo].getColumn(currow,"times");
  4377. var formseq = objects["ds_main_formlist"+grdNo].getColumn(currow,"prcpno");
  4378. //var formSeq = opener.instance1.selectSingleNode("/root/main/formlist/info[formcd='"+ formcd +"' and times='"+ times +"']/formseq");
  4379. var findFlag = "N";
  4380. for(var i = 0; i < oOpener.ds_main_formlist_info.rowcount; i++){ //grp_biz.swt_formatt.att_tab.grd_formlist
  4381. var grd_formseq = oOpener.ds_main_formlist_info.getColumn(i,"formseq");
  4382. var grd_times = oOpener.ds_main_formlist_info.getColumn(i,"times");
  4383. var grd_formcd = oOpener.ds_main_formlist_info.getColumn(i,"formcd");
  4384. if( grd_formcd == formcd && grd_times == times && grd_formseq == formseq ){
  4385. //opener.grd_formlist.selectedRow(i);
  4386. // opener.grd_formlist.select(i, 1) = true;
  4387. oOpener.grp_biz.swt_formatt.att_tab.grd_formlist.setFocus();
  4388. //oOpener.grp_biz.swt_formatt.att_tab.grd_formlist.setCellPos(i+1);
  4389. // opener.grd_formlist.row = i;
  4390. oOpener.grp_biz.swt_formatt.att_tab.grd_formlist.setCellPos(i);
  4391. //objects[oOpener.grp_biz.swt_formatt.att_tab.grd_formlist.binddataset].rowposition = i;
  4392. oOpener.ds_main_formlist_info.rowposition = i;
  4393. // opener.grd_formlist.dispatch("ondblclick");
  4394. var ev = new GridClickEventInfo;
  4395. oOpener.frmf_inputEnterKey("grp_biz.swt_formatt.att_tab.grd_formlist", "oncelldblclick", ev );
  4396. findFlag = "Y";
  4397. return;
  4398. }
  4399. }
  4400. if( findFlag == "N" ){
  4401. sysf_messageBox("서식이 존재하지 않아서 조회", "E001");
  4402. return;
  4403. }
  4404. }
  4405. if(parseInt(prtlstat) < 10){
  4406. sysf_messageBox("프로토콜 처방으로 저장되지 않았습니다. \n수정", "E001");
  4407. return;
  4408. }else if( parseInt(prtlstat) >= 10 && parseInt(prtlstat) < 30 ){
  4409. //처방일이 오늘날짜이면서, 6시 이전이라면 OCS에서 처방 저장해야 함 msg.(2008.11.13)
  4410. if( mode == "ADD" && utlf_getCurrentDate() == iPrcpDD && utlf_getCurrentTime() < sCpBatchTime){
  4411. sysf_messageBox("당일 처방은 OCS에서", "C001");
  4412. return;
  4413. }
  4414. //MSet, BMT지시처방의 자코드는 수정불가, 삭제시, 모코드+자코드 모두 삭제
  4415. //프로토콜 처방 변경 가능 (선택한 처방을 따로 노드에 담아두고, 처방상세 창을 띄운다)
  4416. // model.copyNode("/root/temp/choiprcpinfo/list", choiPrcpNode);
  4417. ds_temp_choiprcpinfo_list.copyData(choiPrcpNode);
  4418. ds_temp_choiprcpinfo.setColumn(0,"saveflag", mode);
  4419. yPos = parseInt( grdCtrl.position.top );
  4420. fGetPrcpSetList(prtlPrcpNo, yPos, mode, grdCtrl); //선택한 처방에 대한 상세팝업/처방 조회팝업을 띄운다
  4421. } else if( parseInt(prtlstat) >= 30){
  4422. if( utlf_getCurrentDate() < iPrcpDD && utlf_getCurrentTime() < sCpBatchTime ){
  4423. ds_temp_choiprcpinfo_list.copyData(choiPrcpNode);
  4424. ds_temp_choiprcpinfo.setColumn(0,"saveflag", mode);
  4425. yPos = parseInt( grdCtrl.position.top );
  4426. fGetPrcpSetList(prtlPrcpNo, yPos, mode, grdCtrl); //선택한 처방에 대한 상세팝업/처방 조회팝업을 띄운다
  4427. }else{
  4428. var msg = sysf_messageBox("해당 날짜 처방은 실처방으로 저장되었습니다. \n전처방에서", "Q003");
  4429. if( msg == "6" ){
  4430. oOpener.fCpInPrcpVisible();
  4431. }else{
  4432. return;
  4433. }
  4434. }
  4435. }
  4436. dsf_deleteDs("ds_temp_selectedGrid");
  4437. }
  4438. }
  4439. }
  4440. /****************************************************************************************
  4441. * Function : fGetPrcpSetList
  4442. * Description : 처방set 을 조회한다.
  4443. * Argument : prtlPrcpNo -
  4444. * : yPos -
  4445. * : mode - 추가/삭제등모드
  4446. * : gridCtrl - 그리드ID
  4447. * return type :
  4448. * Creator :
  4449. ****************************************************************************************/
  4450. function fGetPrcpSetList(prtlPrcpNo, yPos, mode, gridCtrl){
  4451. // model.removeNodeset("/root/send");
  4452. // model.makeNode("/root/send");
  4453. ds_send.clear();
  4454. if( !utlf_isNull(prtlPrcpNo) ){
  4455. var mon = sysf_getCurrentMonitorNumber();
  4456. var ctrlID = gridCtrl.name; //.attribute("id");
  4457. var no = ctrlID.substr( ctrlID.length-1, 1 );
  4458. var grdName = new Array();
  4459. grdName[0] = ""; //투약그리드
  4460. grdName[1] = ""; //검사그리드
  4461. grdName[2] = ""; //전달그리드
  4462. grdName[3] = ""; //기타그리드
  4463. yPos = yPos + 23;
  4464. // prtlprcpno 컬럼이 bigdecimal이어서 추가된 처방의 prtlprcpno 가 빈값으로 들어감 즉, fGetPrcpNo()에서 그리드DS와 ds_main_prcplist 의 rowposition 싱크가 안맞게 됨
  4465. dsf_setTypeFormat(objects["ds_main_druglist"+no], "prtlprcpno:STRING");
  4466. dsf_setTypeFormat(objects["ds_main_testlist"+no], "prtlprcpno:STRING");
  4467. dsf_setTypeFormat(objects["ds_main_caredelivelist"+no], "prtlprcpno:STRING");
  4468. dsf_setTypeFormat(objects["ds_main_etclist"+no], "prtlprcpno:STRING");
  4469. if( mode == "ADD"){
  4470. //if( iSelRow < 1 ) iSelRow = gridCtrl.row; //2008.11.08
  4471. ds_temp.setColumn(0,"mstatus", "I");
  4472. frmf_setParameter("patplanyn", "Y"); //환자계획표 여부 :Y
  4473. // var nodeSet = gridCtrl.nodeset;
  4474. var nodeSet = objects[gridCtrl.binddataset];
  4475. // model.resetInstanceNode("/root/temp/copyset"); //리턴 결과를 담을 곳
  4476. // model.removeNodeset("/root/temp/copyset/list");
  4477. ds_temp_copyset.clear();
  4478. // modal("SPMQP01400", mon, "", "", "", nodeSet + "[" + gridCtrl.row + " ]", "/root/reset/list");
  4479. dsf_createDs("ds_temp_nodeSet");
  4480. dsf_copyColInfo(ds_temp_nodeSet, nodeSet); // 컬럼정보 복사
  4481. var insRow = ds_temp_nodeSet.addRow();
  4482. ds_temp_nodeSet.copyRow(insRow, nodeSet, nodeSet.rowposition);
  4483. var objArg = new Object();
  4484. objArg.arg_ds_reset_list = ds_temp_nodeSet;
  4485. frmf_modal("SPMQP01400", "SPMQP01400", objArg, null, mon, null, null, null, null, null, null, null, "M");
  4486. dsf_deleteDs("ds_temp_nodeSet");
  4487. dsf_createDs("ds_temp_rowcopy");
  4488. dsf_copyColInfo(ds_temp_rowcopy, ds_temp_copyset);
  4489. ds_temp_rowcopy.copyData(ds_temp_copyset);
  4490. var nodeList = ds_temp_copyset; //instance1.selectNodes("/root/temp/copyset/list");
  4491. for(var i = 0; i < nodeList.rowcount; i++){
  4492. // var node = nodeList.item(i);
  4493. var prcpclscdNode = nodeList.getColumn(i,"prcpclscd"); //node.selectSingleNode("prcpclscd");
  4494. var prcpclscdText = prcpclscdNode.substr(0, 1);
  4495. // var statusNode = node.selectSingleNode("status");
  4496. // model.setValue(statusNode, "I");
  4497. nodeList.setColumn(i,"status","I");
  4498. // ds_temp_rowcopy.addRow();
  4499. if( prcpclscdText == "A" ){
  4500. // copyNodeListType("/root/main/druglist" + no , "/root/temp/copyset/list[" + (i+1) + "]", "after", model, model);
  4501. var insRow = objects["ds_main_druglist"+no].addRow();
  4502. objects["ds_main_druglist"+no].copyRow(insRow, ds_temp_rowcopy, i); //dsf_copyDs(objects["ds_main_druglist"+no],ds_temp_rowcopy,"after");
  4503. gridCtrl = this.components["grd_drug" + no];
  4504. grdName[0] = "grd_drug"+ no;
  4505. }else if( prcpclscdText == "B" || prcpclscdText == "C" || prcpclscdText == "D" || prcpclscdText == "E" ){
  4506. // copyNodeListType("/root/main/testlist" + no , "/root/temp/copyset/list[" + (i+1) + "]", "after", model, model);
  4507. var insRow = objects["ds_main_testlist"+no].addRow();
  4508. objects["ds_main_testlist"+no].copyRow(insRow, ds_temp_rowcopy, i); //ds_temp_rowcopy.copyRow(0,ds_temp_copyset,i);
  4509. gridCtrl = this.components["grd_test" + no];
  4510. grdName[1] = "grd_test"+ no;
  4511. }else if( prcpclscdText == "0" ){
  4512. // copyNodeListType("/root/main/caredelivelist" + no , "/root/temp/copyset/list[" + (i+1) + "]", "after", model, model);
  4513. var insRow = objects["ds_main_caredelivelist"+no].addRow();
  4514. objects["ds_main_caredelivelist"+no].copyRow(insRow, ds_temp_rowcopy, i);
  4515. gridCtrl = this.components["grd_caredelive" + no];
  4516. grdName[2] = "grd_caredelive"+ no;
  4517. }else{
  4518. // copyNodeListType("/root/main/etclist" + no , "/root/temp/copyset/list[" + (i+1) + "]", "after", model, model);
  4519. var insRow = objects["ds_main_etclist"+no].addRow();
  4520. objects["ds_main_etclist"+no].copyRow(insRow, ds_temp_rowcopy, i);
  4521. gridCtrl = this.components["grd_etc" + no];
  4522. grdName[3] = "grd_etc"+ no;
  4523. }
  4524. }
  4525. for( var i = 0; i < grdName.length; i++ ){
  4526. if( !utlf_isNull(grdName[i]) ){
  4527. gridCtrl = this.components[grdName[i]];
  4528. // gridCtrl.refresh();
  4529. fReSetRowStatus(gridCtrl);
  4530. }
  4531. }
  4532. // grd_prcplist.refresh();
  4533. //iSelRow = 0; //2008.11.08
  4534. }else if( mode == "DEL" ){
  4535. ds_temp.setColumn(0,"mstatus", "D");
  4536. var grdNodeNm = fGetGridNodeName(ctrlID);
  4537. //fGetPrcpNo(gridCtrl); //loop 안으로 위치 이동
  4538. //선택한 rows 모두 삭제처리 함, loop문 추가 (2008.11.08)
  4539. var dSelectedRows = grdf_getSelectedRows(gridCtrl); //gridCtrl or ctrlID /*var selectedRows = grdf_getSelectedRows(그리드ID);*/
  4540. var dRow = 0;
  4541. var inclprcpno = "";
  4542. var hsctlnkno = "";
  4543. var inclprcpstat = "";
  4544. var hsctlnkstat = "";
  4545. var iInclprcpno = "";
  4546. var iHsctlnkno = "";
  4547. var iInclprcpstat = "";
  4548. var iHsctlnkstat = "";
  4549. var grupsnglflag1 = "";
  4550. var grupsnglflag2 = "";
  4551. for( var i = dSelectedRows.length-1; i >= 0; i-- ){
  4552. dRow = dSelectedRows[i]; //gridCtrl.selectedRow(i);
  4553. //gridCtrl.row = dRow;
  4554. fGetPrcpNo(gridCtrl, dRow);
  4555. //iGrupsnglflag == "J" or "M"
  4556. iHsctlnkno = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"hsctlnkno");
  4557. iInclprcpno = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"inclprcpno");
  4558. if( iHsctlnkno != "0" ){
  4559. grupsnglflag1 = "J";
  4560. hsctlnkno = hsctlnkno + iHsctlnkno + "|";
  4561. hsctlnkstat = hsctlnkstat + objects["ds_main_"+grdNodeNm].getColumn(dRow,"status") + "|";
  4562. }else if( iInclprcpno != "0" ){
  4563. grupsnglflag2 = "M";
  4564. inclprcpno = inclprcpno + iInclprcpno + "|";
  4565. inclprcpstat = inclprcpstat + objects["ds_main_"+grdNodeNm].getColumn(dRow,"status") + "|";
  4566. }else{
  4567. //gridCtrl.row -> dRow
  4568. if( objects["ds_main_"+grdNodeNm].getColumn(dRow,"status") == "I" ){
  4569. //바로 삭제
  4570. // model.removeNodeset("/root/main/prcp/prcplist[" + dRow + "]");
  4571. ds_main_prcplist.deleteRow(dRow);
  4572. objects[gridCtrl.binddataset].deleteRow(dRow);
  4573. }else if( objects["ds_main_"+grdNodeNm].getColumn(dRow,"status") == "D" ){
  4574. //flag 복귀
  4575. ds_main_prcplist.setColumn(ds_main_prcplist.rowposition,"status", "-" );
  4576. objects["ds_main_"+grdNodeNm].setColumn(dRow,"status","-")
  4577. }else{
  4578. //삭제 flag
  4579. ds_main_prcplist.setColumn(ds_main_prcplist.rowposition,"status", "D" );
  4580. objects["ds_main_"+grdNodeNm].setColumn(dRow,"status","D");
  4581. }
  4582. }
  4583. } //end for
  4584. //grupsnglflag == "J" or "M"
  4585. var ctrlPreNm = ctrlID.substr(0, ctrlID.length-1);
  4586. var ctrlFullNm;
  4587. if( grupsnglflag1 == "J" ){
  4588. var iHsctlnknoTxt = hsctlnkno.split("|");
  4589. var tobeStatus = "";
  4590. iHsctlnkstat = hsctlnkstat.split("|");
  4591. for( var i = 0; i < iHsctlnknoTxt.length-1; i++ ){
  4592. if( iHsctlnkstat[i] == "I" ){
  4593. // model.removeNodeset("/root/main/druglist" + no + "/list[inclprcpno='"+ iHsctlnknoTxt[i] +"']");
  4594. // model.removeNodeset("/root/main/testlist" + no + "/list[inclprcpno='"+ iHsctlnknoTxt[i] +"']");
  4595. // model.removeNodeset("/root/main/caredelivelist" + no + "/list[inclprcpno='"+ iHsctlnknoTxt[i] +"']");
  4596. // model.removeNodeset("/root/main/etclist" + no + "/list[inclprcpno='"+ iHsctlnknoTxt[i] +"']");
  4597. // model.removeNodeset("/root/main/prcp/prcplist[inclprcpno='"+ iHsctlnknoTxt[i] +"']");
  4598. fDelNode( objects["ds_main_druglist"+no], "inclprcpno", iHsctlnknoTxt[i] );
  4599. fDelNode( objects["ds_main_testlist"+no], "inclprcpno", iHsctlnknoTxt[i] );
  4600. fDelNode( objects["ds_main_caredelivelist"+no], "inclprcpno", iHsctlnknoTxt[i] );
  4601. fDelNode( objects["ds_main_etclist"+no], "inclprcpno", iHsctlnknoTxt[i] );
  4602. fDelNode( ds_main_prcplist, "inclprcpno", iHsctlnknoTxt[i] );
  4603. }else{
  4604. if( iHsctlnkstat[i] == "D" ) tobeStatus = "-";
  4605. else tobeStatus = "D";
  4606. // fSetValue( instance1.selectNodes("/root/main/druglist" + no + "/list[inclprcpno='"+ iHsctlnknoTxt[i] +"']"), "status", tobeStatus );
  4607. // fSetValue( instance1.selectNodes("/root/main/testlist" + no + "/list[inclprcpno='"+ iHsctlnknoTxt[i] +"']"), "status", tobeStatus );
  4608. // fSetValue( instance1.selectNodes("/root/main/caredelivelist" + no + "/list[inclprcpno='"+ iHsctlnknoTxt[i] +"']"), "status", tobeStatus );
  4609. // fSetValue( instance1.selectNodes("/root/main/etclist" + no + "/list[inclprcpno='"+ iHsctlnknoTxt[i] +"']"), "status", tobeStatus );
  4610. // fSetValue( instance1.selectNodes("/root/main/prcp/prcplist[inclprcpno='"+ iHsctlnknoTxt[i] +"']"), "status", tobeStatus );
  4611. fSetValue( objects["ds_main_druglist"+no],"inclprcpno",iHsctlnknoTxt[i],"status",tobeStatus );
  4612. fSetValue( objects["ds_main_testlist"+no],"inclprcpno",iHsctlnknoTxt[i],"status",tobeStatus );
  4613. fSetValue( objects["ds_main_caredelivelist"+no],"inclprcpno",iHsctlnknoTxt[i],"status",tobeStatus );
  4614. fSetValue( objects["ds_main_etclist"+no],"inclprcpno",iHsctlnknoTxt[i],"status",tobeStatus );
  4615. fSetValue( ds_main_prcplist,"inclprcpno",iHsctlnknoTxt[i],"status",tobeStatus );
  4616. }
  4617. }
  4618. gridCtrl = this.components["grd_drug" + no];
  4619. // gridCtrl.refresh();
  4620. fReSetRowStatus(gridCtrl);
  4621. gridCtrl = this.components["grd_test" + no];
  4622. // gridCtrl.refresh();
  4623. fReSetRowStatus(gridCtrl);
  4624. gridCtrl = this.components["grd_caredelive" + no];
  4625. // gridCtrl.refresh();
  4626. fReSetRowStatus(gridCtrl);
  4627. gridCtrl = this.components["grd_etc" + no];
  4628. // gridCtrl.refresh();
  4629. fReSetRowStatus(gridCtrl);
  4630. if(grupsnglflag2 != "M") return;
  4631. }
  4632. if( grupsnglflag2 == "M" ){
  4633. var iInclprcpnoTxt = inclprcpno.split("|");
  4634. var tobeStatus = "";
  4635. iInclprcpstat = inclprcpstat.split("|");
  4636. for( var i = 0; i < iInclprcpnoTxt.length-1; i++ ){
  4637. if( iInclprcpstat[i] == "I" ){
  4638. // model.removeNodeset("/root/main/druglist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']");
  4639. // model.removeNodeset("/root/main/testlist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']");
  4640. // model.removeNodeset("/root/main/caredelivelist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']");
  4641. // model.removeNodeset("/root/main/etclist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']");
  4642. // model.removeNodeset("/root/main/prcp/prcplist[inclprcpno='"+ iInclprcpnoTxt[i] +"']");
  4643. fDelNode( objects["ds_main_druglist"+no], "inclprcpno", iInclprcpnoTxt[i] );
  4644. fDelNode( objects["ds_main_testlist"+no], "inclprcpno", iInclprcpnoTxt[i] );
  4645. fDelNode( objects["ds_main_caredelivelist"+no], "inclprcpno", iInclprcpnoTxt[i] );
  4646. fDelNode( objects["ds_main_etclist"+no], "inclprcpno", iInclprcpnoTxt[i] );
  4647. fDelNode( ds_main_prcplist, "inclprcpno", iInclprcpnoTxt[i] );
  4648. }else{
  4649. if( iHsctlnkstat[i] == "D" ) tobeStatus = "-";
  4650. else tobeStatus = "D";
  4651. //model.setValue("/root/main/druglist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']/status", "D");
  4652. // fSetValue( instance1.selectNodes("/root/main/druglist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']"), "status", tobeStatus );
  4653. // fSetValue( instance1.selectNodes("/root/main/testlist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']"), "status", tobeStatus );
  4654. // fSetValue( instance1.selectNodes("/root/main/caredelivelist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']"), "status", tobeStatus );
  4655. // fSetValue( instance1.selectNodes("/root/main/etclist" + no + "/list[inclprcpno='"+ iInclprcpnoTxt[i] +"']"), "status", tobeStatus );
  4656. // fSetValue( instance1.selectNodes("/root/main/prcp/prcplist[inclprcpno='"+ iInclprcpnoTxt[i] +"']"), "status", tobeStatus );
  4657. fSetValue( objects["ds_main_druglist"+no],"inclprcpno",iInclprcpnoTxt[i],"status",tobeStatus );
  4658. fSetValue( objects["ds_main_testlist"+no],"inclprcpno",iInclprcpnoTxt[i],"status",tobeStatus );
  4659. fSetValue( objects["ds_main_caredelivelist"+no],"inclprcpno",iInclprcpnoTxt[i],"status",tobeStatus );
  4660. fSetValue( objects["ds_main_etclist"+no],"inclprcpno",iInclprcpnoTxt[i],"status",tobeStatus );
  4661. fSetValue( ds_main_prcplist,"inclprcpno",iInclprcpnoTxt[i],"status",tobeStatus );
  4662. }
  4663. }
  4664. gridCtrl = this.components["grd_drug" + no];
  4665. // gridCtrl.refresh();
  4666. fReSetRowStatus(gridCtrl);
  4667. gridCtrl = this.components["grd_test" + no];
  4668. // gridCtrl.refresh();
  4669. fReSetRowStatus(gridCtrl);
  4670. gridCtrl = this.components["grd_caredelive" + no];
  4671. // gridCtrl.refresh();
  4672. fReSetRowStatus(gridCtrl);
  4673. gridCtrl = this.components["grd_etc" + no];
  4674. // gridCtrl.refresh();
  4675. fReSetRowStatus(gridCtrl);
  4676. return;
  4677. }
  4678. //gridCtrl.refresh();
  4679. fReSetRowStatus(gridCtrl);
  4680. //fSetGroupPrcp(mode, gridCtrl, grdNodeNm); //그룹코드일 경우, 모코드를 포함한 자코드 모두 삭제처리 (포함)
  4681. }else{
  4682. //1. /root/main/prcp/prcplist 의 노드를 기준으로 한다... ( gridCtrl.row )
  4683. fGetPrcpNo(gridCtrl);
  4684. //iGrupsnglflag == "J" or "M"
  4685. var iHsctlnkno = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"hsctlnkno");
  4686. var iInclprcpno = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"inclprcpno");
  4687. if( iHsctlnkno != "0" ){
  4688. sysf_messageBox ( "BMT지시 처방은 그룹처방이므로 일부만 수정", "E001" );
  4689. return;
  4690. }else if( iInclprcpno != "0" ){
  4691. sysf_messageBox ( "Mset 처방은 그룹처방이므로 일부만 수정", "E001" );
  4692. return;
  4693. }
  4694. var rStatus = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"status");
  4695. var prcpclscd = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpclscd");
  4696. var iPrtlprcpno = ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prtlprcpno");
  4697. // var org = instance1.selectSingleNode( "/root/main/prcp/prcplist[" + grd_prcplist.row + "]" ); //선택한 처방 데이터(비교를 위함)
  4698. var org_prcp = dsf_getDsCSV(ds_main_prcplist, ds_main_prcplist.rowposition);
  4699. if( utlf_isNull(org_prcp) ){
  4700. return;
  4701. }
  4702. // var org_prcp = org;
  4703. //처방 더블클릭 이벤트와 동일 (단, 매핑된 컬럼 순서가 다름)
  4704. if( gridCtrl.currentrow > -1 ){
  4705. if ( gridCtrl.currentcol == gridCtrl.getBindCellIndex("body","drugmthdspccdnm") ) { //복용방법 선택
  4706. if ( prcpclscd == "A2" || prcpclscd == "A4" || prcpclscd == "A6") {
  4707. // fPrcpModal("SPMMO01900", 500, 200);
  4708. frmf_modal("SPMMO01900", "SPMMO01900", null, null, null, 500, 200, null, null, null, null, null, "M");
  4709. } else if ( prcpclscd == "B2" || prcpclscd == "B4" || prcpclscd == "B6" ) {
  4710. fGetSpc(gridCtrl.currentrow);
  4711. }
  4712. } else if ( gridCtrl.currentcol == gridCtrl.getBindCellIndex("body","prcpdelivefact") ) { //전달 선택
  4713. fPrcpdelivefact( "M" );
  4714. } else {
  4715. //전달 처방일 경우, 띄워주는 popup 없음.
  4716. if( fPrcpDetl_CP(gridCtrl) == false && prcpclscd.substr(0, 1) == "0" ){
  4717. //gridCtrl.editCell();
  4718. return;
  4719. }
  4720. }
  4721. }
  4722. var grdNodeNm = fGetGridNodeName( ctrlID );
  4723. //그리드의 status는 변경 여부에 따라 U로 셋팅한다.
  4724. // var trg_prcp = instance1.selectSingleNode( "/root/main/prcp/prcplist[" + grd_prcplist.row + "]" ).xml;
  4725. var trg_prcp = dsf_getDsCSV(ds_main_prcplist, ds_main_prcplist.rowposition);
  4726. if( rStatus == "-" && org_prcp != trg_prcp){
  4727. ds_temp.setColumn(0,"mstatus", "U");
  4728. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"status", "U");
  4729. ds_main_prcplist.setColumn(ds_main_prcplist.rowposition,"status", "U");
  4730. //alert(model.getValue("/root/main/" + grdNodeNm + "/list[" + gridCtrl.row + "]/status"));
  4731. }else{
  4732. ds_temp.setColumn(0,"mstatus", rStatus);
  4733. }
  4734. if( fSetGroupPrcp(mode, gridCtrl, grdNodeNm) == false ){ //그룹코드일 경우, 모코드를 포함한 자코드 모두 삭제처리
  4735. return;
  4736. }
  4737. //계획표상의 status 수정
  4738. // model.setValue( "/root/main/" + grdNodeNm + "/list[" + gridCtrl.row + "]/prcpnm", model.getValue("/root/main/prcp/prcplist[" + grd_prcplist.row + "]/prcpnm"));
  4739. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"prcpnm",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpnm"));
  4740. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"prcpvol"))){
  4741. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"prcpvol",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpvol"))
  4742. }
  4743. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"drprcpetc7"))){
  4744. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"drprcpetc7",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"drprcpetc7"))
  4745. }
  4746. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"volunit"))){
  4747. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"volunit",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"volunit"))
  4748. }
  4749. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"prcpqty"))){
  4750. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"prcpqty",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpqty"))
  4751. }
  4752. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"drprcpetc8"))){
  4753. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"drprcpetc8",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"drprcpetc8"))
  4754. }
  4755. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"qtyunit"))){
  4756. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"qtyunit",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"qtyunit"))
  4757. }
  4758. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"prcptims"))){
  4759. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"prcptims",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcptims"))
  4760. }
  4761. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"prcpdayno"))){
  4762. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"prcpdayno",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpdayno"))
  4763. }
  4764. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"prcpmixno"))){
  4765. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"prcpmixno",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpmixno"))
  4766. }
  4767. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"drugmthdspccdnm"))){
  4768. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"drugmthdspccdnm",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"drugmthdspccdnm"))
  4769. }
  4770. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"rsrvdd"))){
  4771. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"rsrvdd",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"rsrvdd"))
  4772. }
  4773. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"drugmthdspccdnm"))){
  4774. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"drugmthdspccdnm",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"drugmthdspccdnm"))
  4775. }
  4776. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"prcpdelivefact"))){
  4777. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"prcpdelivefact",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"prcpdelivefact"))
  4778. }
  4779. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"testrsltcnts"))){
  4780. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"testrsltcnts",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"testrsltcnts"))
  4781. }
  4782. if(!utlf_isNull(objects["ds_main_"+grdNodeNm].getColumn(gridCtrl.currentrow,"testrsltunit"))){
  4783. objects["ds_main_"+grdNodeNm].setColumn(gridCtrl.currentrow,"testrsltunit",ds_main_prcplist.getColumn(ds_main_prcplist.rowposition,"testrsltunit"))
  4784. }
  4785. //JJE (2008.10.09) (s)
  4786. // model.removeNodeset("/root/main/prcpsrch/prcplist[prtlprcpno='" + iPrtlprcpno + "']");
  4787. fDelNode( ds_main_prcpsrch_prcplist, "prtlprcpno", iPrtlprcpno );
  4788. // copyNodeListType( "/root/main/prcpsrch", "/root/main/prcp/prcplist[" + grd_prcplist.row + "]", "after", model, model);
  4789. ds_main_prcpsrch_prcplist.copyRow(ds_main_prcpsrch_prcplist.addRow(), ds_main_prcplist, ds_main_prcplist.rowposition);
  4790. var srchRowNum = ds_main_prcpsrch_prcplist.rowcount - 1;
  4791. ds_main_prcpsrch_prcplist.setColumn(srchRowNum,"status", "I");
  4792. //(e)
  4793. // gridCtrl.refresh();
  4794. fReSetRowStatus(gridCtrl);
  4795. }
  4796. }else{
  4797. //조회만 할 경우, (수행하는 case가 없음!)
  4798. if( !utlf_isNull(selectedDay) ){
  4799. ds_send_reqdata.copyData(ds_main_steplist_stepinfo);
  4800. dsf_makeValue(ds_send_reqdata,"dayno","string",selectedDay);
  4801. if(openerNM == "GPS"){
  4802. dsf_makeValue(ds_send_reqdata,"setcond","string",setArray);
  4803. }
  4804. dsf_makeValue(ds_send,"cpgappno","string",ds_main_steplist_stepinfo.getColumn(0,"cpgappno"));
  4805. dsf_makeValue(ds_send,"case" ,"string","day");
  4806. // submit("TRMMP02202", false);
  4807. dsf_setDefaultVal(ds_send, "srchcondflag:G");
  4808. var oParam = {};
  4809. oParam.id = "TRMMP02202";
  4810. oParam.service = "prcpbaseapp.CpMngt";
  4811. oParam.method = "reqGetPrcpSetList";
  4812. oParam.inds = "req=ds_send";
  4813. oParam.outds = "ds_main_prcplist=prcplist ds_main_prcp_essprcplist=essprcplist";
  4814. oParam.async = false;
  4815. oParam.callback = "cf_TRMMP02202";
  4816. tranf_submit(oParam);
  4817. return;
  4818. }else{
  4819. return;
  4820. }
  4821. }
  4822. }
  4823. function cf_TRMMP02202(sSvcId, nErrorCode, sErrorMsg) {
  4824. if(nErrorCode < 0) return;
  4825. dsf_setDefaultVal(ds_main_prcplist, "prcpvol:0,prcpqty:0,prcptims:0,prcpdayno:0,hosinhosoutflag:-,drugspd:0,mealcalrcnts:0,mealprotcnts:0,hosinprcpresncd:00,prcprefseq:0,ordreqlnkno:0,testreqlnkno:0,prcplnkno:0,prtlno:0,inclprcpno:0,hsctdelivepos:0,hsctlnkno:0,etcprcpflag:-,aftcertflag:-,aftcertdrid:-,prcpvalidd:00000000,specdrid:-,anticncrprtlno:0,anticncrdayno:0,druglnkno:0,rehbprcpcurefreqflag:0,dietprcpgenrflag:-,irpayflag:N,irflag:N,procerdietflag:N,diagtestconttestintvlflag:N,drugindependpackflag:N,diagtestconttestbasetm:0,diagtestconttestorgtims:0,ermediscmngtresncd:-,rehbprcpenddd:-,matrallsizespecid:-,rehbprcpcurepartcd:-,lowdrugresncd:N,tfdtlcd:-,dnorreqlnkno:0,subcretno:0,exptmthdfact:-,lowdrugresnetcfact:-,diagtestconttestcdspec:-,drgacptflag:-,anstcnfmneedyn:'',essnprcpyn:N");
  4826. dsf_setDefaultVal(ds_main_prcp_essprcplist, "prcpvol:0,prcpqty:0,prcptims:0,prcpdayno:0,hosinhosoutflag:-,drugspd:0,mealcalrcnts:0,mealprotcnts:0,hosinprcpresncd:00,prcprefseq:0,ordreqlnkno:0,testreqlnkno:0,prcplnkno:0,prtlno:0,inclprcpno:0,hsctdelivepos:0,hsctlnkno:0,etcprcpflag:-,aftcertflag:-,aftcertdrid:-,prcpvalidd:00000000,specdrid:-,anticncrprtlno:0,anticncrdayno:0,druglnkno:0,rehbprcpcurefreqflag:0,dietprcpgenrflag:-,irpayflag:N,irflag:N,procerdietflag:N,diagtestconttestintvlflag:N,drugindependpackflag:N,diagtestconttestbasetm:0,diagtestconttestorgtims:0,ermediscmngtresncd:-,rehbprcpenddd:-,matrallsizespecid:-,rehbprcpcurepartcd:-,lowdrugresncd:N,tfdtlcd:-,dnorreqlnkno:0,subcretno:0,exptmthdfact:-,lowdrugresnetcfact:-,diagtestconttestcdspec:-,drgacptflag:-,anstcnfmneedyn:'',essnprcpyn:N");
  4827. }
  4828. /****************************************************************************************
  4829. * Function : fReSetRowStatus
  4830. * Description : status 컬럼값에 따라 해당행의 rowtype을 설정한다.
  4831. * Argument : gridCtrl - 그리드ID
  4832. * return type :
  4833. * Creator :
  4834. ****************************************************************************************/
  4835. function fReSetRowStatus(gridCtrl){
  4836. // var ctrlID = gridCtrl.name;
  4837. // var grdNodeNm = fGetGridNodeName(ctrlID);
  4838. // 데이셋들이 updatecontrol이 true로 되어있는 것을 잠깐 해제
  4839. objects[gridCtrl.binddataset].updatecontrol = false;
  4840. for( var i = 0; i < gridCtrl.rowcount; i++ ){
  4841. if( objects[gridCtrl.binddataset].getColumn(i,"status") == "I" ){
  4842. // gridCtrl.rowstatus(i) = 1;
  4843. objects[gridCtrl.binddataset].setRowType(i,2);
  4844. }else if( objects[gridCtrl.binddataset].getColumn(i,"status") == "U" ){
  4845. // gridCtrl.rowstatus(i) = 2;
  4846. objects[gridCtrl.binddataset].setRowType(i,4);
  4847. }else if( objects[gridCtrl.binddataset].getColumn(i,"status") == "D" ){
  4848. // gridCtrl.rowstatus(i) = 4;
  4849. objects[gridCtrl.binddataset].setRowType(i,8);
  4850. }else if( objects[gridCtrl.binddataset].getColumn(i,"status") == "-" ){
  4851. // gridCtrl.rowstatus(i) = 0;
  4852. objects[gridCtrl.binddataset].setRowType(i,1);
  4853. }
  4854. }
  4855. // 데이셋들이 updatecontrol이 true로 되어있는 것을 잠깐 해제
  4856. objects[gridCtrl.binddataset].updatecontrol = true;
  4857. }
  4858. /****************************************************************************************
  4859. * Function : fGetGridNodeName
  4860. * Description : 그리드명에 따라 바인드된 데이터셋 명을 리턴(굳이 필요할지..)
  4861. * Argument : grdName - 그리드명
  4862. * return type :
  4863. * Creator :
  4864. ****************************************************************************************/
  4865. function fGetGridNodeName(grdName){
  4866. //alert("grdName = " + grdName);
  4867. var grdNo = grdName.substr(grdName.length-1, 1);
  4868. var grdNodeNm = "";
  4869. if( grdName.substr(0, grdName.length-1) == "grd_drug" ){
  4870. grdNodeNm = "druglist";
  4871. }else if( grdName.substr(0, grdName.length-1) == "grd_test" ){
  4872. grdNodeNm = "testlist";
  4873. }else if( grdName.substr(0, grdName.length-1) == "grd_caredelive" ){
  4874. grdNodeNm = "caredelivelist";
  4875. }else if( grdName.substr(0, grdName.length-1) == "grd_etc" ){
  4876. grdNodeNm = "etclist";
  4877. }
  4878. return grdNodeNm + grdNo;
  4879. }
  4880. /****************************************************************************************
  4881. * Function : fGetPrcpNo
  4882. * Description : prcppkspec 에서 prtlprcpno 를 return 한다
  4883. * Argument : gridCtrl - 그리드ID
  4884. * : sRow - 대상 Row
  4885. * return type :
  4886. * Creator :
  4887. ****************************************************************************************/
  4888. function fGetPrcpNo(gridCtrl, sRow){
  4889. var objType = sysf_getObjType(gridCtrl);
  4890. var nodeSet;
  4891. var dsFlag = false;
  4892. if(objType == "Dataset") { // 데이터셋을 받아와서도 사용할수 있게 수정
  4893. dsFlag = true;
  4894. nodeSet = gridCtrl;
  4895. } else {
  4896. nodeSet = objects[gridCtrl.binddataset];
  4897. }
  4898. if( utlf_isNull(sRow) ){
  4899. sRow = nodeSet.rowposition;
  4900. }
  4901. var selPrcpNo = nodeSet.getColumn(sRow,"prtlprcpno");
  4902. var iRow = objects[grp_prcplist.grd_prcplist.binddataset].findRow("prtlprcpno", selPrcpNo); //objects[grp_prcplist.grd_prcplist.binddataset].findRow(25, selPrcpNo); //findRow(selPrcpNo, 0, 25, false, true);
  4903. var gridCtrlID = gridCtrl.name;
  4904. var gridCtrlNM = gridCtrlID.substr(1, gridCtrlID.length-1);
  4905. if( dsFlag != true ) {
  4906. if ( gridCtrl.currentcol == gridCtrl.getBindCellIndex("body","drugmthdspccdnm") ) { //복용방법 선택
  4907. // grp_prcplist.grd_prcplist.select(iRow, 12) = true;
  4908. grp_prcplist.grd_prcplist.setFocus();
  4909. grp_prcplist.grd_prcplist.setCellPos(iRow);
  4910. } else if ( gridCtrlNM == "grd_caredelive" || gridCtrl.currentcol == gridCtrl.getBindCellIndex("body","prcpdelivefact") ) { //전달 선택
  4911. // grd_prcplist.select(iRow, 15) = true;
  4912. grp_prcplist.grd_prcplist.setFocus();
  4913. grp_prcplist.grd_prcplist.setCellPos(iRow);
  4914. } else {
  4915. // grd_prcplist.select(iRow, 1) = true;
  4916. grp_prcplist.grd_prcplist.setFocus();
  4917. ds_main_prcplist.rowposition = iRow; //grp_prcplist.grd_prcplist.setCellPos(iRow+1);
  4918. }
  4919. }
  4920. var selectedRow = grdf_getSelectedRows(grp_prcplist.grd_prcplist);
  4921. objects[grp_prcplist.grd_prcplist.binddataset].rowposition = selectedRow[0];
  4922. }
  4923. /****************************************************************************************
  4924. * Function : fSetValue
  4925. * Description : Dataset에서 조건에 맞는 Row 값 변경
  4926. * Argument : objDs - DatasetID
  4927. * : colNm - 비교대상 column명
  4928. * : value - 비교할 값
  4929. * : setColNm - 수정할 column명
  4930. * : SetValue - 수정할 값
  4931. * return type :
  4932. * Creator :
  4933. ****************************************************************************************/
  4934. function fSetValue( objDs, colNm, value, setColNm, SetValue ){
  4935. for( var i = 0; i < objDs.rowcount; i++ ){
  4936. if(objDs.getColumn(i,colNm) == value) {
  4937. objDs.setColumn(i,setColNm,SetValue);
  4938. }
  4939. }
  4940. }
  4941. /****************************************************************************************
  4942. * Function : fDelNode
  4943. * Description : Dataset에서 조건에 맞는 Row를 삭제한다.
  4944. * Argument : objDs - DatasetID
  4945. * : colNm - 비교대상 column명
  4946. * : value - 비교할 값
  4947. * return type :
  4948. * Creator :
  4949. ****************************************************************************************/
  4950. function fDelNode( objDs, colNm, value ){
  4951. for( var i = objDs.rowcount-1; i >= 0; i-- ){
  4952. if(objDs.getColumn(i,colNm) == value) {
  4953. objDs.deleteRow(i);
  4954. }
  4955. }
  4956. }
  4957. /****************************************************************************************
  4958. * Function : fSetGroupPrcp
  4959. * Description : Dataset에서 조건에 맞는 Row를 삭제한다.
  4960. * Argument : mode - 추가/삭제등모드
  4961. * : gridCtrl - 그리드ID
  4962. * : grdNodeNm - 노드명(ds_main 붙기전에 이름)
  4963. * return type :
  4964. * Creator :
  4965. ****************************************************************************************/
  4966. function fSetGroupPrcp(mode, gridCtrl, grdNodeNm){
  4967. var nodeSet = this.objects[gridCtrl.binddataset]; //gridCtrl.binddataset;
  4968. var prcpNodeSet = this.objects[grp_prcplist.grd_prcplist.binddataset]; //grp_prcplist.grd_prcplist.binddataset; // /root/main/prcp/prcplist
  4969. var selPrcpNo = nodeSet.getColumn(nodeSet.rowposition,"prcpno");
  4970. var iRow = prcpNodeSet.findRow(25,selPrcpNo); //grd_prcplist.findRow(selPrcpNo, 0, 25, false, true);
  4971. var ctrlNo = grdNodeNm.substr(grdNodeNm.length-1, grdNodeNm.length); //1,2,3,4
  4972. var selPrcpdd = prcpNodeSet.getColumn(iRow,"prcpdd" );
  4973. var selPrcpkindcd = prcpNodeSet.getColumn(iRow,"prcpkindcd" );
  4974. var selIncpltnresn = prcpNodeSet.getColumn(iRow,"incpltnresn" );
  4975. var selPrtlprcpno = prcpNodeSet.getColumn(iRow,"prtlprcpno" );
  4976. var selGroupFlag = prcpNodeSet.getColumn(iRow,"grupsnglflag" ); //그룹코드(M,J,S)
  4977. var selInclprcpno = prcpNodeSet.getColumn(iRow,"inclprcpno" ); //Mset처방 연계번호
  4978. var selHsctlnkno = prcpNodeSet.getColumn(iRow,"hsctlnkno" ); //BMT지시처방 연계번호
  4979. //alert( "selGroupFlag = " + selGroupFlag + " selInclprcpno = " + selInclprcpno + " selHsctlnkno = " + selHsctlnkno );
  4980. if( eval(selInclprcpno) > 0 || eval(selHsctlnkno) > 0 ){
  4981. var nodeList = null;
  4982. dsf_createDs("ds_temp_prcpNodeSet");
  4983. if( selGroupFlag == "M" || (selGroupFlag == "S" && eval(selInclprcpno) > 0) ){
  4984. //Mset모코드 삭제 시
  4985. // nodeList = instance1.selectNodes( prcpNodeSet + "[inclprcpno = '" + selInclprcpno + "']" );
  4986. prcpNodeSet.filter("inclprcpno == '" + selInclprcpno + "'");
  4987. ds_temp_prcpNodeSet.copyData(prcpNodeSet,true);
  4988. nodeList = ds_temp_prcpNodeSet;
  4989. }else if( selGroupFlag == "J" || (selGroupFlag == "S" && eval(selHsctlnkno) > 0) ){
  4990. //BMT지시처방 모코드 삭제시
  4991. // nodeList = instance1.selectNodes( prcpNodeSet + "[hsctlnkno = '" + selHsctlnkno + "']" );
  4992. prcpNodeSet.filter("hsctlnkno == '" + selHsctlnkno + "'");
  4993. ds_temp_prcpNodeSet.copyData(prcpNodeSet,true);
  4994. nodeList = ds_temp_prcpNodeSet;
  4995. }
  4996. if(nodeList.rowcount == 0){
  4997. return true;
  4998. }
  4999. if(mode == "SET"){
  5000. if(sysf_messageBox ( "그룹처방은 수정할 수 없습니다.", "Q001" ) == "7"){
  5001. return false;
  5002. }
  5003. }
  5004. for(var i = 0; i < nodeList.rowcount; i++){
  5005. // var node = nodeList.item(i);
  5006. var statusNode = nodeList.getColumn(i,"status");
  5007. var prtlprcpnoNode = nodeList.getColumn(i,"prtlprcpno");
  5008. var prcpnoNode = nodeList.getColumn(i,"prcpno");
  5009. var prtlprcpnoTxt = prtlprcpnoNode;
  5010. var sFindRow;
  5011. //처방인스턴스(prcplist) status 변경
  5012. //model.setValue( "/root/main/prcp/prcplist[" + grd_prcplist.row + "]/status", "D" );
  5013. // model.setValue( statusNode, "D" );
  5014. statusNode = "D";
  5015. nodeList.setColumn(i,"status","D");
  5016. //실제 환자계획표의 해당 처방 status 변경
  5017. // sNode = instance1.selectSingleNode( "/root/main/druglist" + ctrlNo + "/list[prcpno = '" + prtlprcpnoTxt + "']/status" );
  5018. sFindRow = objects["ds_main_druglist"+ctrlNo].findRow("prcpno",prtlprcpnoTxt);
  5019. if( sFindRow >= 0 ){
  5020. objects["ds_main_druglist"+ctrlNo].setColumn(sFindRow,"status","D");
  5021. }
  5022. // sNode = instance1.selectSingleNode( "/root/main/testlist" + ctrlNo + "/list[prcpno = '" + prtlprcpnoTxt + "']/status" );
  5023. sFindRow = objects["ds_main_testlist"+ctrlNo].findRow("prcpno",prtlprcpnoTxt);
  5024. if( sFindRow >= 0 ){
  5025. objects["ds_main_testlist"+ctrlNo].setColumn(sFindRow,"status","D");
  5026. }
  5027. // sNode = instance1.selectSingleNode( "/root/main/caredelivelist" + ctrlNo + "/list[prcpno = '" + prtlprcpnoTxt + "']/status" );
  5028. sFindRow = objects["ds_main_caredelivelist"+ctrlNo].findRow("prcpno",prtlprcpnoTxt);
  5029. if( sFindRow >= 0 ){
  5030. objects["ds_main_caredelivelist"+ctrlNo].setColumn(sFindRow,"status","D");
  5031. }
  5032. // sNode = instance1.selectSingleNode( "/root/main/etclist" + ctrlNo + "/list[prcpno = '" + prtlprcpnoTxt + "']/status" );
  5033. sFindRow = objects["ds_main_etclist"+ctrlNo].findRow("prcpno",prtlprcpnoTxt);
  5034. if( sFindRow >= 0 ){
  5035. objects["ds_main_etclist"+ctrlNo].setColumn(sFindRow,"status","D");
  5036. }
  5037. }
  5038. //해당 일자 환자계획표 처방 그리드 refresh
  5039. var gridCtrl1 = "grd_drug" + ctrlNo;
  5040. var gridCtrl11 = this.components[gridCtrl1];
  5041. var gridCtrl2 = "grd_test" + ctrlNo;
  5042. var gridCtrl22 = this.components[gridCtrl2];
  5043. var gridCtrl3 = "grd_caredelive" + ctrlNo;
  5044. var gridCtrl33 = this.components[gridCtrl3];
  5045. var gridCtrl4 = "grd_etc" + ctrlNo;
  5046. var gridCtrl44 = this.components[gridCtrl4];
  5047. fReSetRowStatus(gridCtrl11);
  5048. fReSetRowStatus(gridCtrl22);
  5049. fReSetRowStatus(gridCtrl33);
  5050. fReSetRowStatus(gridCtrl44);
  5051. dsf_deleteDs("ds_temp_prcpNodeSet");
  5052. }else{
  5053. return true;
  5054. }
  5055. }
  5056. /****************************************************************************************
  5057. * Function : cf_TRMQP01403
  5058. * Description : TRMQP01403 콜백함수
  5059. * Argument :
  5060. * return type :
  5061. * Creator :
  5062. ****************************************************************************************/
  5063. function cf_TRMQP01403(sSvcId, nErrorCode, sErrorMsg) {
  5064. arErrorCode.push(sSvcId, nErrorCode);
  5065. dsf_setDefaultVal(ds_main_down_prcplist, "prcpvol:0,prcpqty:0,prcptims:0,prcpdayno:0,hosinhosoutflag:-,drugspd:0,mealcalrcnts:0,mealprotcnts:0,hosinprcpresncd:00,prcprefseq:0,ordreqlnkno:0,testreqlnkno:0,prcplnkno:0,prtlno:0,inclprcpno:0,hsctdelivepos:0,hsctlnkno:0,etcprcpflag:-,aftcertflag:-,aftcertdrid:-,prcpvalidd:00000000,specdrid:-,anticncrprtlno:0,anticncrdayno:0,druglnkno:0,rehbprcpcurefreqflag:0,dietprcpgenrflag:-,irpayflag:N,irflag:N,procerdietflag:N,diagtestconttestintvlflag:N,drugindependpackflag:N,diagtestconttestbasetm:0,diagtestconttestorgtims:0,ermediscmngtresncd:-,rehbprcpenddd:-,matrallsizespecid:-,rehbprcpcurepartcd:-,lowdrugresncd:N,tfdtlcd:-,dnorreqlnkno:0,subcretno:0,exptmthdfact:-,lowdrugresnetcfact:-,diagtestconttestcdspec:-,drgacptflag:-,anstcnfmneedyn:'',essnprcpyn:N,limno:0,limhistno:0,limcdno:0,inqrno:0,qestno:0");
  5066. }
  5067. /****************************************************************************************
  5068. * Function : fSelectOneDay
  5069. * Description : 선택한 그리드의 widrh는 확장하고, 나머지 그리드의 width는 축소한다.
  5070. * Argument :
  5071. * return type :
  5072. * Creator :
  5073. ****************************************************************************************/
  5074. function fSelectOneDay(num, mode){
  5075. var fcsCaptionCtrl = null;
  5076. var grdCnt = 4;
  5077. var iZoominWidth; // 확대인 경우 확대 너비
  5078. var iZoomoutWidth;// 한개 셀이 확대되면 나머지 셀은 축소 됨, 나머지 셀의 너비
  5079. if(grdCnt == 2) {
  5080. iZoominWidth = 800;
  5081. iZoomoutWidth = iDayWidth - ((iZoominWidth - iDayWidth));
  5082. }
  5083. else {
  5084. if(iTotalWidth > 1500){
  5085. iZoominWidth = 800;
  5086. }
  5087. else {
  5088. iZoominWidth = 450;
  5089. }
  5090. iZoomoutWidth = iDayWidth - ((iZoominWidth - iDayWidth)/3);
  5091. }
  5092. if(ds_temp.getColumn(0,"grdmode") == "2") var grdCnt = 2;
  5093. if(grdCnt == 4){
  5094. var dcol1 = 0;
  5095. var dcol2 = 0;
  5096. var dcol3 = 0;
  5097. var tcol1 = 0;
  5098. var tcol2 = 0;
  5099. //var tcol3 = 0;
  5100. var tcol4 = 0;
  5101. var tcol5 = 0;
  5102. var ncol1 = 85;
  5103. var fcol1 = 103;
  5104. var ecol1 = 129;
  5105. }else if(grdCnt == 2){
  5106. if( group1.position.left == 825 ) {
  5107. var x = 14;
  5108. }else{
  5109. var x = 0;
  5110. }
  5111. var dcol1 = 40-x; //처방코드
  5112. var dcol2 = 350-x; //처방명
  5113. var dcol3 = 110-x; //용법
  5114. var tcol1 = 40-x; //처방코드
  5115. var tcol2 = 275-x; //처방명
  5116. //var tcol3 = x-80; //예약일
  5117. var tcol4 = 60-x; //검체
  5118. var tcol5 = 70-x; //전달
  5119. var ncol1 = 85; //처방명
  5120. var fcol1 = 103; //처방명
  5121. var ecol1 = 129; //처방명
  5122. }
  5123. for(var i = 1; i <= grdCnt; i++){
  5124. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  5125. // 그리드 왼쪽 시작점 설정
  5126. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  5127. var xPos = 0;
  5128. //확대 영역이 있는 경우
  5129. if(mode == "ex"){
  5130. //그리드 너비 설정
  5131. if(i == num ){
  5132. wdth = iZoominWidth;
  5133. }
  5134. else{
  5135. wdth = iZoomoutWidth;
  5136. }
  5137. //확대 구역을 제외하고 계산
  5138. if(i <= num){
  5139. xPos = iTotalLeft + iZoomoutWidth * (i - 1) + iGap * (i -1);
  5140. }
  5141. //확대 구역을 포함하여 계산
  5142. else {
  5143. xPos = iTotalLeft + iZoominWidth + iZoomoutWidth * (i-2) + iGap * (i -1);
  5144. }
  5145. }
  5146. // 확대 영역이 없는 경우
  5147. else {
  5148. //그리드 너비 설정
  5149. wdth = iDayWidth;
  5150. xPos = iTotalLeft + iDayWidth * (i - 1) + iGap * (i -1);
  5151. }
  5152. //첫번째 그리드는 시작점 고정이므로 2번째 그리드 부터 왼쪽 시작점 계산
  5153. if( i > 1 ){
  5154. fcsCaptionCtrl = this.components["cap_day" + i];
  5155. fcsCaptionCtrl.position.left = xPos;
  5156. fcsCaptionCtrl = this.components["grd_drug" + i];
  5157. fcsCaptionCtrl.position.left = xPos;
  5158. fcsCaptionCtrl = this.components["grd_test" + i];
  5159. fcsCaptionCtrl.position.left = xPos;
  5160. fcsCaptionCtrl = this.components["grd_caredelive" + i];
  5161. fcsCaptionCtrl.position.left = xPos;
  5162. fcsCaptionCtrl = this.components["grd_etc" + i];
  5163. fcsCaptionCtrl.position.left = xPos;
  5164. fcsCaptionCtrl = this.components["grd_form" + i];
  5165. fcsCaptionCtrl.position.left = xPos;
  5166. fcsCaptionCtrl = this.components["grd_hichart" + i];
  5167. fcsCaptionCtrl.position.left = xPos;
  5168. xPos = xPos + wdth + 2;
  5169. }
  5170. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  5171. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  5172. // 그리드 너비 설정
  5173. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  5174. //확대인경우
  5175. if(i == num && mode == "ex"){
  5176. fcsCaptionCtrl = this.components["cap_day" + i];
  5177. fcsCaptionCtrl.position.width = wdth - 1;
  5178. fcsCaptionCtrl = this.components["grd_drug" + i];
  5179. fcsCaptionCtrl.position.width = wdth;
  5180. fcsCaptionCtrl.setFormatColProperty(5 ,"size",fcsCaptionCtrl.getFormatColSize(5) + dcol1);
  5181. fcsCaptionCtrl.setFormatColProperty(6 ,"size",fcsCaptionCtrl.getFormatColSize(6) + dcol2);
  5182. fcsCaptionCtrl.setFormatColProperty(14,"size",fcsCaptionCtrl.getFormatColSize(14) + dcol3);
  5183. fcsCaptionCtrl.setFormatColProperty(5, "band", "left");
  5184. fcsCaptionCtrl = this.components["grd_test" + i];
  5185. fcsCaptionCtrl.position.width = wdth;
  5186. fcsCaptionCtrl.setFormatColProperty(5 ,"size",fcsCaptionCtrl.getFormatColSize(5) + tcol1);
  5187. fcsCaptionCtrl.setFormatColProperty(6 ,"size",fcsCaptionCtrl.getFormatColSize(6) + tcol2);
  5188. fcsCaptionCtrl.setFormatColProperty(8 ,"size",fcsCaptionCtrl.getFormatColSize(8) + tcol4);
  5189. fcsCaptionCtrl.setFormatColProperty(9 ,"size",fcsCaptionCtrl.getFormatColSize(9) + tcol5);
  5190. fcsCaptionCtrl.setFormatColProperty(5, "band", "left");
  5191. fcsCaptionCtrl.setFormatColProperty(6, "band", "left");
  5192. fcsCaptionCtrl = this.components["grd_caredelive" + i];
  5193. fcsCaptionCtrl.position.width = wdth;
  5194. fcsCaptionCtrl.setFormatColProperty(3 ,"size",wdth - ncol1);
  5195. fcsCaptionCtrl = this.components["grd_form" + i];
  5196. fcsCaptionCtrl.position.width = wdth;
  5197. fcsCaptionCtrl.setFormatColProperty(2 ,"size",wdth - fcol1);
  5198. fcsCaptionCtrl = this.components["grd_etc" + i];
  5199. fcsCaptionCtrl.position.width = wdth;
  5200. fcsCaptionCtrl.setFormatColProperty(4 ,"size",wdth - ecol1);
  5201. //20180131 이돈희 : 하이차트 추가
  5202. fcsCaptionCtrl = this.components["grd_hichart" + i];
  5203. fcsCaptionCtrl.position.width = wdth;
  5204. fcsCaptionCtrl.setFormatColProperty(1 ,"size",wdth - 40);
  5205. //축소인경우
  5206. }else{
  5207. fcsCaptionCtrl = this.components["cap_day" + i];
  5208. fcsCaptionCtrl.position.width = wdth - 1;
  5209. fcsCaptionCtrl = this.components["grd_drug" + i];
  5210. fcsCaptionCtrl.position.width = wdth;
  5211. fcsCaptionCtrl.setFormatColProperty(5, "band", "body");
  5212. if(i == num){
  5213. fcsCaptionCtrl.setFormatColProperty(5 ,"size",fcsCaptionCtrl.getFormatColSize(5) - dcol1);
  5214. fcsCaptionCtrl.setFormatColProperty(6 ,"size",fcsCaptionCtrl.getFormatColSize(6) - dcol2);
  5215. fcsCaptionCtrl.setFormatColProperty(14 ,"size",fcsCaptionCtrl.getFormatColSize(14) - dcol3);
  5216. }
  5217. fcsCaptionCtrl = this.components["grd_test" + i];
  5218. fcsCaptionCtrl.position.width = wdth;
  5219. fcsCaptionCtrl.setFormatColProperty(6, "band", "body");
  5220. fcsCaptionCtrl.setFormatColProperty(5, "band", "body");
  5221. if(i == num){
  5222. fcsCaptionCtrl.setFormatColProperty(5 ,"size",fcsCaptionCtrl.getFormatColSize(5) - tcol1);
  5223. fcsCaptionCtrl.setFormatColProperty(6 ,"size",fcsCaptionCtrl.getFormatColSize(6) - tcol2);
  5224. fcsCaptionCtrl.setFormatColProperty(8 ,"size",fcsCaptionCtrl.getFormatColSize(8) - tcol4);
  5225. fcsCaptionCtrl.setFormatColProperty(9 ,"size",fcsCaptionCtrl.getFormatColSize(9) - tcol5);
  5226. }
  5227. fcsCaptionCtrl = this.components["grd_caredelive" + i];
  5228. fcsCaptionCtrl.position.width = wdth;
  5229. fcsCaptionCtrl.setFormatColProperty(3 ,"size",wdth - ncol1);
  5230. fcsCaptionCtrl = this.components["grd_form" + i];
  5231. fcsCaptionCtrl.position.width = wdth;
  5232. fcsCaptionCtrl.setFormatColProperty(2 ,"size",wdth - fcol1);
  5233. fcsCaptionCtrl = this.components["grd_etc" + i];
  5234. fcsCaptionCtrl.position.width = wdth;
  5235. fcsCaptionCtrl.setFormatColProperty(4 ,"size",wdth - ecol1);
  5236. //20180131 이돈희 : 하이차트 추가
  5237. fcsCaptionCtrl = this.components["grd_hichart" + i];
  5238. fcsCaptionCtrl.position.width = wdth;
  5239. fcsCaptionCtrl.setFormatColProperty(1 ,"size",wdth - 40);
  5240. }
  5241. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  5242. }
  5243. }
  5244. /****************************************************************************************
  5245. * Function : fChangeGridArea
  5246. * Description : 그리드를 선택하면 해당 일자의 그리드에 테두리가 바뀐다.
  5247. * Argument : dayno - 해당일자
  5248. * return type :
  5249. * Creator :
  5250. ****************************************************************************************/
  5251. function fChangeGridArea(dayno){
  5252. if( utlf_isNull(dayno) ){
  5253. //캡션이나 그리드를 제외한 여백을 선택한 경우
  5254. return;
  5255. } else{
  5256. var ctrl = this.components["cap_day" + dayno];
  5257. if( parseInt(dayno) > 0 ){
  5258. var ctrl = this.components["grd_drug" + dayno];
  5259. rct_border.position.left = ctrl.position.left - 2;
  5260. rct_border.position.right = ctrl.position.right + 2;
  5261. rct_border.position.top = cap_day1.position.bottom + 2;
  5262. rct_border.position.bottom = this.parent.ivw_detail.position.height-1;
  5263. rct_border.visible = true;
  5264. selectedDay = dayno;
  5265. return;
  5266. }else{
  5267. rct_border.visible = false;
  5268. return;
  5269. }
  5270. }
  5271. }
  5272. /****************************************************************************************
  5273. * Function : fSetPrePostOP
  5274. * Description :
  5275. * Argument :
  5276. * return type :
  5277. * Creator :
  5278. ****************************************************************************************/
  5279. function fSetPrePostOP(ref, opCnt) {
  5280. var opYN = "N";
  5281. var opFlag = "";
  5282. var opNo1 = "";
  5283. var opNo2 = "";
  5284. var postOp = "";
  5285. if( selectedDayCaption == "cap_day1" || deselectedDayCaption == "cap_day1" ) {
  5286. var sPos = cap_day1.text.indexOf( "(" );
  5287. var curPrcpdd = cap_day1.text.substr(sPos+1, 10);
  5288. }
  5289. if( selectedDayCaption == "cap_day2" || deselectedDayCaption == "cap_day2" ) {
  5290. var sPos = cap_day2.text.indexOf( "(" );
  5291. var curPrcpdd = cap_day2.text.substr(sPos+1, 10);
  5292. }
  5293. if( selectedDayCaption == "cap_day3" || deselectedDayCaption == "cap_day3" ) {
  5294. var sPos = cap_day3.text.indexOf( "(" );
  5295. var curPrcpdd = cap_day3.text.substr(sPos+1, 10);
  5296. }
  5297. if( selectedDayCaption == "cap_day4" || deselectedDayCaption == "cap_day4" ) {
  5298. var sPos = cap_day4.text.indexOf( "(" );
  5299. var curPrcpdd = cap_day4.text.substr(sPos+1, 10);
  5300. }
  5301. //var sPos = cap_day.text.indexOf( "(" );
  5302. //var curPrcpdd = cap_day.text.substr(sPos+1, 10);
  5303. curPrcpdd = curPrcpdd.setReplaceWord("-", "");
  5304. var stepnoTxt = "";
  5305. var setnoTxt = "";
  5306. var timeTxt = "";
  5307. // var curDay = opener.instance1.selectNodes("/root/main/steppath/info[prcpdd = '"+ curPrcpdd +"']");
  5308. dsf_createDs("ds_temp_steppath_info");
  5309. oOpener.ds_main_steppath_info.filter("prcpdd == '"+ curPrcpdd +"'");
  5310. ds_temp_steppath_info.copyData(oOpener.ds_main_steppath_info,true);
  5311. var curDay = ds_temp_steppath_info;
  5312. oOpener.ds_main_steppath_info.filter("");
  5313. if( curDay.rowcount > 1 ) { //1day 에 step이 2개 이상일때만
  5314. for(var i = 0; i < curDay.rowcount; i++) {
  5315. // var node = curDay.item(i);
  5316. var stepno = curDay.getColumn(i,"stepno");
  5317. var curTime = curDay.getColumn(i,"times");
  5318. var curSetno = curDay.getColumn(i,"setno");
  5319. if( utlf_isNull(opFlag) ) {
  5320. //opNo1 = instance1.selectNodes("/root/temp/getdatalist/list[stepno = '" + stepno.text + "' and prcpkindcd = '30' ]");
  5321. //opNo2 = instance1.selectNodes("/root/temp/getdatalist/list[stepno = '" + stepno.text + "' and prcpkindcd = '40' ]");
  5322. dsf_createDs("ds_temp_opNo1");
  5323. dsf_createDs("ds_temp_opNo2");
  5324. ref.filter("stepno == '" + stepno + "' && prcpkindcd == '30'");
  5325. ds_temp_opNo1.copyData(ref,true);
  5326. ref.filter("stepno == '" + stepno + "' && prcpkindcd == '40'");
  5327. ds_temp_opNo2.copyData(ref,true);
  5328. opNo1 = ds_temp_opNo1;
  5329. opNo2 = ds_temp_opNo2;
  5330. ref.filter("");
  5331. } else {
  5332. //postOp = instance1.selectNodes("/root/temp/getdatalist/list[stepno = '" + stepno.text + "' and " + opFlag + "]");
  5333. //postOp = instance1.selectNodes(ref+ "[stepno = '" + stepno.text + "' and " + opFlag + "]");
  5334. dsf_createDs("ds_temp_postOp");
  5335. ref.filter("stepno == '" + stepno + "' && " + opFlag);
  5336. ds_temp_postOp.copyData(ref,true);
  5337. postOp = ds_temp_postOp;
  5338. ref.filter("");
  5339. }
  5340. if( (opNo1.rowcount <= 0) && (opNo2.rowcount <= 0) ) {
  5341. opYN = "N";
  5342. } else {
  5343. if( opNo1.rowcount > 0 ) opFlag = "prcpkindcd == '40' ";
  5344. else if( opNo2.rowcount > 0 ) opFlag = "prcpkindcd == '30' ";
  5345. else if( (opNo1.rowcount > 0) && (opNo2.rowcount > 0) ) opYN = "N"; //수술전,후가 같은 step에 있을때는 popup을 띄우지 않음
  5346. if( postOp.rowcount > 0 ) opYN = "Y";
  5347. }
  5348. stepnoTxt += stepno + ",";
  5349. timeTxt += curTime + ",";
  5350. setnoTxt += curSetno + "," ;
  5351. }
  5352. if( opYN == "Y" ) {
  5353. var mon = sysf_getCurrentMonitorNumber();
  5354. // model.setValue("/root/send/reqdata/timescond", curTime);
  5355. dsf_makeValue(ds_send_reqdata,"timescond" ,"string",curTime);
  5356. dsf_makeValue(ds_send_reqdata,"stepscond" ,"string",stepnoTxt);
  5357. dsf_makeValue(ds_send_reqdata,"getdatalist" ,"string",dsf_getDsCSV(ref)); //대기 MGR에서 어떻게 받는지 확인해야함
  5358. var formList = dsf_getDsCSV(ds_temp_formlist_list); //getNodeListCSV(instance1.selectNodes("/root/temp/formlist/list"));
  5359. dsf_makeValue(ds_send_reqdata,"formlist" ,"string",formList);
  5360. // open("SPMMP03000", mon,"","","", "/root/send/reqdata", "/root/send/reqdata");
  5361. var objArg = new Object();
  5362. objArg.arg_ds_send_reqdata = ds_send_reqdata;
  5363. frmf_open("SPMMP03000", "SPMMP03000", objArg, null, mon, null, null, null, null, null, null, null, "M");
  5364. } else { //실처방, 프로토콜처방이 발행된 경우 stepno를 조회해오지 않으므로 setno를 조회 후 일일히 stepno를 set 해준다.
  5365. if( opCnt == 0) { // 수술전후 step이 아니라서 opYN == "N" 로 빠질 경우 무한 루프에 빠지는 것을 방지
  5366. dsf_makeValue(ds_send_reqdata,"setcond" ,"string",setnoTxt.substr(0, setnoTxt.length-1));
  5367. var oParam = {};
  5368. oParam.id = "TRMMP02204";
  5369. oParam.service = "prcpbaseapp.CpMngt";
  5370. oParam.method = "reqGetStepNoInfo";
  5371. oParam.inds = "req=ds_send_reqdata";
  5372. oParam.outds = "ds_temp_getdatalist_list=list";
  5373. oParam.async = false;
  5374. oParam.callback = "cf_TRMMP02204";
  5375. tranf_submit(oParam);
  5376. if(arErrorCode.pop("TRMMP02204") > -1) { // setno 조회
  5377. dsf_createDs("ds_temp_tmplist_list");
  5378. ds_temp_getdatalist_list.filter("prcpdd == '"+ curPrcpdd +"'");
  5379. ds_temp_tmplist_list.copyData(ds_temp_getdatalist_list,true);
  5380. var tmpList = ds_temp_tmplist_list;
  5381. var setList = ds_temp_setlist_list;
  5382. ds_temp_tmplist_list.filter("prcpdd = '"+ curPrcpdd +"'");
  5383. if( ds_temp_tmplist_list.rowcount > 0){ // 2008.08.27 발생이 안됐을경우 tmplist에 아무것도 copy가 안되서 추가
  5384. for(var i = 0; i < setList.rowcount ; i++) {
  5385. for(var j = 0; j < tmpList.rowcount ; j++ ) {
  5386. if( setList.getColumn(i,"prcpcd") == tmpList.getColumn(j,"prcpcd") )
  5387. tmpList.getColumn(j,"stepno") = setList.getColumn(i,"stepno");
  5388. }
  5389. }
  5390. }
  5391. fSetPrePostOP(ds_temp_tmplist_list,1);
  5392. dsf_deleteDs("ds_temp_tmplist_list");
  5393. ds_temp_getdatalist_list.filter("");
  5394. }
  5395. }
  5396. }
  5397. }
  5398. }
  5399. /****************************************************************************************
  5400. * Function : cf_TRMMP02204
  5401. * Description : TRMMP02204 콜백 함수
  5402. * Argument :
  5403. * return type :
  5404. * Creator :
  5405. ****************************************************************************************/
  5406. function cf_TRMMP02204(sSvcId, nErrorCode, sErrorMsg) {
  5407. arErrorCode.push(sSvcId, nErrorCode);
  5408. dsf_setDefaultVal(ds_temp_getdatalist_list, "status:-,prcpvol:0,prcpqty:0,prcptims:0,prcpdayno:0,hosinhosoutflag:-,drugspd:0,mealcalrcnts:0,mealprotcnts:0,hosinprcpresncd:00,prcprefseq:0,ordreqlnkno:0,testreqlnkno:0,prcplnkno:0,prtlno:0,inclprcpno:0,hsctdelivepos:0,hsctlnkno:0,etcprcpflag:-,aftcertflag:-,aftcertdrid:-,prcpvalidd:00000000,specdrid:-,anticncrprtlno:0,anticncrdayno:0,druglnkno:0,rehbprcpcurefreqflag:0,dietprcpgenrflag:-,irpayflag:N,irflag:N,procerdietflag:N,diagtestconttestintvlflag:N,drugindependpackflag:N,diagtestconttestbasetm:0,diagtestconttestorgtims:0,ermediscmngtresncd:-,rehbprcpenddd:-,matrallsizespecid:-,rehbprcpcurepartcd:-,lowdrugresncd:N,tfdtlcd:-,dnorreqlnkno:0,subcretno:0,exptmthdfact:-,lowdrugresnetcfact:-,diagtestconttestcdspec:-,drgacptflag:-");
  5409. }
  5410. /****************************************************************************************
  5411. * Function : fSelectOneKind
  5412. * Description : 선택한 그리드의 height는 확장하고, 나머지 그리드의 height는 축소한다.
  5413. * Argument : kind - 대상그리드 그룹
  5414. * : mode - ex : 확장 / re : 축소
  5415. * return type :
  5416. * Creator :
  5417. ****************************************************************************************/
  5418. function fSelectOneKind(kind, mode){
  5419. var iZoominHeight; //확대인 경우 확대 높이
  5420. var iZoomoutHeight; //한개 셀이 확대되면 나머지 셀은 축소 됨, 나머지 셀의 높이
  5421. var rct_border_hght = parseInt(rct_border.position.height);
  5422. switch(mode){
  5423. case "ex":
  5424. if(rct_border_hght > 800){
  5425. iZoominHeight = 500;
  5426. }
  5427. else if(rct_border_hght > 700){
  5428. iZoominHeight = 400;
  5429. }
  5430. else if(rct_border_hght > 500){
  5431. iZoominHeight = 300;
  5432. }
  5433. else if(rct_border_hght > 450){
  5434. iZoominHeight = 200;
  5435. }
  5436. else{
  5437. iZoominHeight = 150;
  5438. }
  5439. //변경된 확대건의 높이에 따라 축소 건의 높이 조정
  5440. iZoomoutHeight = ((iTotalHeight - iGap*iVerGapNum) - iZoominHeight)/(iVerNum-1);
  5441. //size 조정
  5442. for(var i=1; i<=4; i++){
  5443. yPos = iTotalTop;
  5444. switch(kind){
  5445. case "D":
  5446. fcsCaptionCtrl = this.components[ "cap_drug" ];
  5447. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5448. fcsCaptionCtrl = this.components[ "grd_drug" + i ];
  5449. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5450. yPos = yPos + iZoominHeight + iGap;
  5451. fcsCaptionCtrl = this.components[ "cap_test" ];
  5452. fcsCaptionCtrl.position.top = yPos;
  5453. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5454. fcsCaptionCtrl = this.components[ "grd_test" + i ];
  5455. fcsCaptionCtrl.position.top = yPos;
  5456. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5457. yPos = yPos + iZoomoutHeight + iGap;
  5458. fcsCaptionCtrl = this.components[ "cap_caredelive" ];
  5459. fcsCaptionCtrl.position.top = yPos;
  5460. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5461. fcsCaptionCtrl = this.components[ "grd_caredelive" + i ];
  5462. fcsCaptionCtrl.position.top = yPos;
  5463. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5464. yPos = yPos + iZoomoutHeight + iGap;
  5465. fcsCaptionCtrl = this.components[ "cap_form" ];
  5466. fcsCaptionCtrl.position.top = yPos;
  5467. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5468. fcsCaptionCtrl = this.components[ "grd_form" + i ];
  5469. fcsCaptionCtrl.position.top = yPos;
  5470. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5471. yPos = yPos + iZoomoutHeight + iGap;
  5472. fcsCaptionCtrl = this.components[ "cap_etc" ];
  5473. fcsCaptionCtrl.position.top = yPos;
  5474. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5475. fcsCaptionCtrl = this.components[ "grd_etc" + i ];
  5476. fcsCaptionCtrl.position.top = yPos;
  5477. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5478. yPos = yPos + iZoomoutHeight + iGap;
  5479. fcsCaptionCtrl = this.components[ "cap_hichart" ];
  5480. fcsCaptionCtrl.position.top = yPos;
  5481. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5482. fcsCaptionCtrl = this.components[ "grd_hichart" + i ];
  5483. fcsCaptionCtrl.position.top = yPos;
  5484. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5485. yPos = yPos + iZoomoutHeight + iGap;
  5486. break;
  5487. case "T":
  5488. fcsCaptionCtrl = this.components[ "cap_drug" ];
  5489. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5490. fcsCaptionCtrl = this.components[ "grd_drug" + i ];
  5491. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5492. yPos = yPos + iZoomoutHeight + iGap;
  5493. fcsCaptionCtrl = this.components[ "cap_test" ];
  5494. fcsCaptionCtrl.position.top = yPos;
  5495. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5496. fcsCaptionCtrl = this.components[ "grd_test" + i ];
  5497. fcsCaptionCtrl.position.top = yPos;
  5498. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5499. yPos = yPos + iZoominHeight + iGap;
  5500. fcsCaptionCtrl = this.components[ "cap_caredelive" ];
  5501. fcsCaptionCtrl.position.top = yPos;
  5502. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5503. fcsCaptionCtrl = this.components[ "grd_caredelive" + i ];
  5504. fcsCaptionCtrl.position.top = yPos;
  5505. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5506. yPos = yPos + iZoomoutHeight + iGap;
  5507. fcsCaptionCtrl = this.components[ "cap_form" ];
  5508. fcsCaptionCtrl.position.top = yPos;
  5509. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5510. fcsCaptionCtrl = this.components[ "grd_form" + i ];
  5511. fcsCaptionCtrl.position.top = yPos;
  5512. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5513. yPos = yPos + iZoomoutHeight + iGap;
  5514. fcsCaptionCtrl = this.components[ "cap_etc" ];
  5515. fcsCaptionCtrl.position.top = yPos;
  5516. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5517. fcsCaptionCtrl = this.components[ "grd_etc" + i ];
  5518. fcsCaptionCtrl.position.top = yPos;
  5519. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5520. yPos = yPos + iZoomoutHeight + iGap;
  5521. fcsCaptionCtrl = this.components[ "cap_hichart" ];
  5522. fcsCaptionCtrl.position.top = yPos;
  5523. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5524. fcsCaptionCtrl = this.components[ "grd_hichart" + i ];
  5525. fcsCaptionCtrl.position.top = yPos;
  5526. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5527. yPos = yPos + iZoomoutHeight + iGap;
  5528. break;
  5529. case "C":
  5530. fcsCaptionCtrl = this.components[ "cap_drug" ];
  5531. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5532. fcsCaptionCtrl = this.components[ "grd_drug" + i ];
  5533. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5534. yPos = yPos + iZoomoutHeight + iGap;
  5535. fcsCaptionCtrl = this.components[ "cap_test" ];
  5536. fcsCaptionCtrl.position.top = yPos;
  5537. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5538. fcsCaptionCtrl = this.components[ "grd_test" + i ];
  5539. fcsCaptionCtrl.position.top = yPos;
  5540. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5541. yPos = yPos + iZoomoutHeight + iGap;
  5542. fcsCaptionCtrl = this.components[ "cap_caredelive" ];
  5543. fcsCaptionCtrl.position.top = yPos;
  5544. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5545. fcsCaptionCtrl = this.components[ "grd_caredelive" + i ];
  5546. fcsCaptionCtrl.position.top = yPos;
  5547. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5548. yPos = yPos + iZoominHeight + iGap;
  5549. fcsCaptionCtrl = this.components[ "cap_form" ];
  5550. fcsCaptionCtrl.position.top = yPos;
  5551. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5552. fcsCaptionCtrl = this.components[ "grd_form" + i ];
  5553. fcsCaptionCtrl.position.top = yPos;
  5554. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5555. yPos = yPos + iZoomoutHeight + iGap;
  5556. fcsCaptionCtrl = this.components[ "cap_etc" ];
  5557. fcsCaptionCtrl.position.top = yPos;
  5558. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5559. fcsCaptionCtrl = this.components[ "grd_etc" + i ];
  5560. fcsCaptionCtrl.position.top = yPos;
  5561. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5562. yPos = yPos + iZoomoutHeight + iGap;
  5563. fcsCaptionCtrl = this.components[ "cap_hichart" ];
  5564. fcsCaptionCtrl.position.top = yPos;
  5565. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5566. fcsCaptionCtrl = this.components[ "grd_hichart" + i ];
  5567. fcsCaptionCtrl.position.top = yPos;
  5568. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5569. yPos = yPos + iZoomoutHeight + iGap;
  5570. break;
  5571. case "F":
  5572. fcsCaptionCtrl = this.components[ "cap_drug" ];
  5573. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5574. fcsCaptionCtrl = this.components[ "grd_drug" + i ];
  5575. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5576. yPos = yPos + iZoomoutHeight + iGap;
  5577. fcsCaptionCtrl = this.components[ "cap_test" ];
  5578. fcsCaptionCtrl.position.top = yPos;
  5579. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5580. fcsCaptionCtrl = this.components[ "grd_test" + i ];
  5581. fcsCaptionCtrl.position.top = yPos;
  5582. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5583. yPos = yPos + iZoomoutHeight + iGap;
  5584. fcsCaptionCtrl = this.components[ "cap_caredelive" ];
  5585. fcsCaptionCtrl.position.top = yPos;
  5586. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5587. fcsCaptionCtrl = this.components[ "grd_caredelive" + i ];
  5588. fcsCaptionCtrl.position.top = yPos;
  5589. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5590. yPos = yPos + iZoomoutHeight + iGap;
  5591. fcsCaptionCtrl = this.components[ "cap_form" ];
  5592. fcsCaptionCtrl.position.top = yPos;
  5593. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5594. fcsCaptionCtrl = this.components[ "grd_form" + i ];
  5595. fcsCaptionCtrl.position.top = yPos;
  5596. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5597. yPos = yPos + iZoominHeight + iGap;
  5598. fcsCaptionCtrl = this.components[ "cap_etc" ];
  5599. fcsCaptionCtrl.position.top = yPos;
  5600. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5601. fcsCaptionCtrl = this.components[ "grd_etc" + i ];
  5602. fcsCaptionCtrl.position.top = yPos;
  5603. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5604. yPos = yPos + iZoomoutHeight + iGap;
  5605. fcsCaptionCtrl = this.components[ "cap_hichart" ];
  5606. fcsCaptionCtrl.position.top = yPos;
  5607. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5608. fcsCaptionCtrl = this.components[ "grd_hichart" + i ];
  5609. fcsCaptionCtrl.position.top = yPos;
  5610. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5611. yPos = yPos + iZoomoutHeight + iGap;
  5612. break;
  5613. case "E":
  5614. fcsCaptionCtrl = this.components[ "cap_drug" ];
  5615. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5616. fcsCaptionCtrl = this.components[ "grd_drug" + i ];
  5617. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5618. yPos = yPos + iZoomoutHeight + iGap;
  5619. fcsCaptionCtrl = this.components[ "cap_test" ];
  5620. fcsCaptionCtrl.position.top = yPos;
  5621. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5622. fcsCaptionCtrl = this.components[ "grd_test" + i ];
  5623. fcsCaptionCtrl.position.top = yPos;
  5624. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5625. yPos = yPos + iZoomoutHeight + iGap;
  5626. fcsCaptionCtrl = this.components[ "cap_caredelive" ];
  5627. fcsCaptionCtrl.position.top = yPos;
  5628. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5629. fcsCaptionCtrl = this.components[ "grd_caredelive" + i ];
  5630. fcsCaptionCtrl.position.top = yPos;
  5631. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5632. yPos = yPos + iZoomoutHeight + iGap;
  5633. fcsCaptionCtrl = this.components[ "cap_form" ];
  5634. fcsCaptionCtrl.position.top = yPos;
  5635. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5636. fcsCaptionCtrl = this.components[ "grd_form" + i ];
  5637. fcsCaptionCtrl.position.top = yPos;
  5638. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5639. yPos = yPos + iZoomoutHeight + iGap;
  5640. fcsCaptionCtrl = this.components[ "cap_etc" ];
  5641. fcsCaptionCtrl.position.top = yPos;
  5642. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5643. fcsCaptionCtrl = this.components[ "grd_etc" + i ];
  5644. fcsCaptionCtrl.position.top = yPos;
  5645. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5646. yPos = yPos + iZoominHeight + iGap;
  5647. fcsCaptionCtrl = this.components[ "cap_hichart" ];
  5648. fcsCaptionCtrl.position.top = yPos;
  5649. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5650. fcsCaptionCtrl = this.components[ "grd_hichart" + i ];
  5651. fcsCaptionCtrl.position.top = yPos;
  5652. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5653. yPos = yPos + iZoomoutHeight + iGap;
  5654. break;
  5655. case "H":
  5656. fcsCaptionCtrl = this.components[ "cap_drug" ];
  5657. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5658. fcsCaptionCtrl = this.components[ "grd_drug" + i ];
  5659. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5660. yPos = yPos + iZoomoutHeight + iGap;
  5661. fcsCaptionCtrl = this.components[ "cap_test" ];
  5662. fcsCaptionCtrl.position.top = yPos;
  5663. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5664. fcsCaptionCtrl = this.components[ "grd_test" + i ];
  5665. fcsCaptionCtrl.position.top = yPos;
  5666. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5667. yPos = yPos + iZoomoutHeight + iGap;
  5668. fcsCaptionCtrl = this.components[ "cap_caredelive" ];
  5669. fcsCaptionCtrl.position.top = yPos;
  5670. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5671. fcsCaptionCtrl = this.components[ "grd_caredelive" + i ];
  5672. fcsCaptionCtrl.position.top = yPos;
  5673. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5674. yPos = yPos + iZoomoutHeight + iGap;
  5675. fcsCaptionCtrl = this.components[ "cap_form" ];
  5676. fcsCaptionCtrl.position.top = yPos;
  5677. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5678. fcsCaptionCtrl = this.components[ "grd_form" + i ];
  5679. fcsCaptionCtrl.position.top = yPos;
  5680. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5681. yPos = yPos + iZoomoutHeight + iGap;
  5682. fcsCaptionCtrl = this.components[ "cap_etc" ];
  5683. fcsCaptionCtrl.position.top = yPos;
  5684. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5685. fcsCaptionCtrl = this.components[ "grd_etc" + i ];
  5686. fcsCaptionCtrl.position.top = yPos;
  5687. fcsCaptionCtrl.position.height = parseInt(iZoomoutHeight);
  5688. yPos = yPos + iZoomoutHeight + iGap;
  5689. fcsCaptionCtrl = this.components[ "cap_hichart" ];
  5690. fcsCaptionCtrl.position.top = yPos;
  5691. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5692. fcsCaptionCtrl = this.components[ "grd_hichart" + i ];
  5693. fcsCaptionCtrl.position.top = yPos;
  5694. fcsCaptionCtrl.position.height = parseInt(iZoominHeight);
  5695. yPos = yPos + iZoominHeight + iGap;
  5696. break;
  5697. }
  5698. }
  5699. break;
  5700. case "re":
  5701. for(var i=1; i<=4; i++){
  5702. yPos = iTotalTop;
  5703. fcsCaptionCtrl = this.components[ "cap_drug" ];
  5704. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5705. fcsCaptionCtrl = this.components[ "grd_drug" + i ];
  5706. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5707. yPos = yPos + iDayHeight + iGap;
  5708. fcsCaptionCtrl = this.components[ "cap_test" ];
  5709. fcsCaptionCtrl.position.top = yPos;
  5710. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5711. fcsCaptionCtrl = this.components[ "grd_test" + i ];
  5712. fcsCaptionCtrl.position.top = yPos;
  5713. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5714. yPos = yPos + iDayHeight + iGap;
  5715. fcsCaptionCtrl = this.components[ "cap_caredelive" ];
  5716. fcsCaptionCtrl.position.top = yPos;
  5717. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5718. fcsCaptionCtrl = this.components[ "grd_caredelive" + i ];
  5719. fcsCaptionCtrl.position.top = yPos;
  5720. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5721. yPos = yPos + iDayHeight + iGap;
  5722. fcsCaptionCtrl = this.components[ "cap_form" ];
  5723. fcsCaptionCtrl.position.top = yPos;
  5724. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5725. fcsCaptionCtrl = this.components[ "grd_form" + i ];
  5726. fcsCaptionCtrl.position.top = yPos;
  5727. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5728. yPos = yPos + iDayHeight + iGap;
  5729. fcsCaptionCtrl = this.components[ "cap_etc" ];
  5730. fcsCaptionCtrl.position.top = yPos;
  5731. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5732. fcsCaptionCtrl = this.components[ "grd_etc" + i ];
  5733. fcsCaptionCtrl.position.top = yPos;
  5734. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5735. yPos = yPos + iDayHeight + iGap;
  5736. fcsCaptionCtrl = this.components[ "cap_hichart" ];
  5737. fcsCaptionCtrl.position.top = yPos;
  5738. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5739. fcsCaptionCtrl = this.components[ "grd_hichart" + i ];
  5740. fcsCaptionCtrl.position.top = yPos;
  5741. fcsCaptionCtrl.position.height = parseInt(iDayHeight);
  5742. yPos = yPos + iDayHeight + iGap;
  5743. }
  5744. break;
  5745. }
  5746. }
  5747. /****************************************************************************************
  5748. * Function : fReSize
  5749. * Description : 세로 사이즈 결정
  5750. * Argument : mode - L : 확장 / S : 축소
  5751. * return type :
  5752. * Creator :
  5753. ****************************************************************************************/
  5754. function fReSize( mode ){
  5755. if( mode == "S"){
  5756. GPS_ViewMode = "S";
  5757. rct_border.position.height = parseInt(rct_border.position.height) - 115;
  5758. cap_drug.position.height = parseInt(cap_drug.position.height) - 35;
  5759. cap_test.position.top = parseInt(cap_test.position.top) - 35;
  5760. cap_test.position.height = parseInt(cap_test.position.height) - 20;
  5761. cap_caredelive.position.top = parseInt(cap_caredelive.position.top) - 55;
  5762. cap_caredelive.position.height = parseInt(cap_caredelive.position.height) - 20;
  5763. cap_form.position.top = parseInt(cap_form.position.top) - 75;
  5764. cap_form.position.height = parseInt(cap_form.position.height) - 20;
  5765. cap_etc.position.top = parseInt(cap_etc.position.top) - 95;
  5766. cap_etc.position.height = parseInt(cap_etc.position.height) - 20;
  5767. grd_drug1.position.height = parseInt(grd_drug1.position.height) - 35;
  5768. grd_drug2.position.height = parseInt(grd_drug2.position.height) - 35;
  5769. grd_drug3.position.height = parseInt(grd_drug3.position.height) - 35;
  5770. grd_drug4.position.height = parseInt(grd_drug4.position.height) - 35;
  5771. grd_test1.position.top = parseInt(grd_test1.position.top) - 35;
  5772. grd_test2.position.top = parseInt(grd_test2.position.top) - 35;
  5773. grd_test3.position.top = parseInt(grd_test3.position.top) - 35;
  5774. grd_test4.position.top = parseInt(grd_test4.position.top) - 35;
  5775. grd_test1.position.height = parseInt(grd_test1.position.height) - 20;
  5776. grd_test2.position.height = parseInt(grd_test2.position.height) - 20;
  5777. grd_test3.position.height = parseInt(grd_test3.position.height) - 20;
  5778. grd_test4.position.height = parseInt(grd_test4.position.height) - 20;
  5779. grd_caredelive1.position.top = parseInt(grd_caredelive1.position.top) - 55;
  5780. grd_caredelive2.position.top = parseInt(grd_caredelive2.position.top) - 55;
  5781. grd_caredelive3.position.top = parseInt(grd_caredelive3.position.top) - 55;
  5782. grd_caredelive4.position.top = parseInt(grd_caredelive4.position.top) - 55;
  5783. grd_caredelive1.position.height = parseInt(grd_caredelive1.position.height) - 20;
  5784. grd_caredelive2.position.height = parseInt(grd_caredelive2.position.height) - 20;
  5785. grd_caredelive3.position.height = parseInt(grd_caredelive3.position.height) - 20;
  5786. grd_caredelive4.position.height = parseInt(grd_caredelive4.position.height) - 20;
  5787. grd_form1.position.top = parseInt(grd_form1.position.top) - 75;
  5788. grd_form2.position.top = parseInt(grd_form2.position.top) - 75;
  5789. grd_form3.position.top = parseInt(grd_form3.position.top) - 75;
  5790. grd_form4.position.top = parseInt(grd_form4.position.top) - 75;
  5791. grd_form1.position.height = parseInt(grd_form1.position.height) - 20;
  5792. grd_form2.position.height = parseInt(grd_form2.position.height) - 20;
  5793. grd_form3.position.height = parseInt(grd_form3.position.height) - 20;
  5794. grd_form4.position.height = parseInt(grd_form4.position.height) - 20;
  5795. grd_etc1.position.top = parseInt(grd_etc1.position.top) - 95;
  5796. grd_etc2.position.top = parseInt(grd_etc2.position.top) - 95;
  5797. grd_etc3.position.top = parseInt(grd_etc3.position.top) - 95;
  5798. grd_etc4.position.top = parseInt(grd_etc4.position.top) - 95;
  5799. grd_etc1.position.height = parseInt(grd_etc1.position.height) - 20;
  5800. grd_etc2.position.height = parseInt(grd_etc2.position.height) - 20;
  5801. grd_etc3.position.height = parseInt(grd_etc3.position.height) - 20;
  5802. grd_etc4.position.height = parseInt(grd_etc4.position.height) - 20;
  5803. }else{
  5804. GPS_ViewMode = "L";
  5805. rct_border.position.height = parseInt(rct_border.position.height) + 115;
  5806. cap_drug.position.height = parseInt(cap_drug.position.height) + 35;
  5807. cap_test.position.top = parseInt(cap_test.position.top) + 35;
  5808. cap_test.position.height = parseInt(cap_test.position.height) + 20;
  5809. cap_caredelive.position.top = parseInt(cap_caredelive.position.top) + 55;
  5810. cap_caredelive.position.height = parseInt(cap_caredelive.position.height) + 20;
  5811. cap_form.position.top = parseInt(cap_form.position.top) + 75;
  5812. cap_form.position.height = parseInt(cap_form.position.height) + 20;
  5813. cap_etc.position.top = parseInt(cap_etc.position.top) + 95;
  5814. cap_etc.position.height = parseInt(cap_etc.position.height) + 20;
  5815. grd_drug1.position.height = parseInt(grd_drug1.position.height) + 35;
  5816. grd_drug2.position.height = parseInt(grd_drug2.position.height) + 35;
  5817. grd_drug3.position.height = parseInt(grd_drug3.position.height) + 35;
  5818. grd_drug4.position.height = parseInt(grd_drug4.position.height) + 35;
  5819. grd_test1.position.top = parseInt(grd_test1.position.top) + 35;
  5820. grd_test2.position.top = parseInt(grd_test2.position.top) + 35;
  5821. grd_test3.position.top = parseInt(grd_test3.position.top) + 35;
  5822. grd_test4.position.top = parseInt(grd_test4.position.top) + 35;
  5823. grd_test1.position.height = parseInt(grd_test1.position.height) + 20;
  5824. grd_test2.position.height = parseInt(grd_test2.position.height) + 20;
  5825. grd_test3.position.height = parseInt(grd_test3.position.height) + 20;
  5826. grd_test4.position.height = parseInt(grd_test4.position.height) + 20;
  5827. grd_caredelive1.position.top = parseInt(grd_caredelive1.position.top) + 55;
  5828. grd_caredelive2.position.top = parseInt(grd_caredelive2.position.top) + 55;
  5829. grd_caredelive3.position.top = parseInt(grd_caredelive3.position.top) + 55;
  5830. grd_caredelive4.position.top = parseInt(grd_caredelive4.position.top) + 55;
  5831. grd_caredelive1.position.height = parseInt(grd_caredelive1.position.height) + 20;
  5832. grd_caredelive2.position.height = parseInt(grd_caredelive2.position.height) + 20;
  5833. grd_caredelive3.position.height = parseInt(grd_caredelive3.position.height) + 20;
  5834. grd_caredelive4.position.height = parseInt(grd_caredelive4.position.height) + 20;
  5835. grd_form1.position.top = parseInt(grd_form1.position.top) + 75;
  5836. grd_form2.position.top = parseInt(grd_form2.position.top) + 75;
  5837. grd_form3.position.top = parseInt(grd_form3.position.top) + 75;
  5838. grd_form4.position.top = parseInt(grd_form4.position.top) + 75;
  5839. grd_form1.position.height = parseInt(grd_form1.position.height) + 20;
  5840. grd_form2.position.height = parseInt(grd_form2.position.height) + 20;
  5841. grd_form3.position.height = parseInt(grd_form3.position.height) + 20;
  5842. grd_form4.position.height = parseInt(grd_form4.position.height) + 20;
  5843. grd_etc1.position.top = parseInt(grd_etc1.position.top) + 95;
  5844. grd_etc2.position.top = parseInt(grd_etc2.position.top) + 95;
  5845. grd_etc3.position.top = parseInt(grd_etc3.position.top) + 95;
  5846. grd_etc4.position.top = parseInt(grd_etc4.position.top) + 95;
  5847. grd_etc1.position.height = parseInt(grd_etc1.position.height) + 20;
  5848. grd_etc2.position.height = parseInt(grd_etc2.position.height) + 20;
  5849. grd_etc3.position.height = parseInt(grd_etc3.position.height) + 20;
  5850. grd_etc4.position.height = parseInt(grd_etc4.position.height) + 20;
  5851. }
  5852. }
  5853. //공통코드 최초 조회 안되는 문제로 인해, 화면 visible 처리 전에 공통코드 조회하도록 위치 변경 (2011.07.04)
  5854. function fGetCodeList_Detail(){
  5855. //zbcfGetCodeList
  5856. // zbcfGetCodeListSubmit(new Array("M0003", "M0005", "M0011", "P0034", "M0029" ),
  5857. // new Array("/root/init/prcpkindcd","/root/init/prcpclscd","/root/init/prcpstatcd","/root/init/hosinprcpresncd","/root/init/payflagcd"));
  5858. var arrParam = [{dsNm: "ds_init_prcpkindcd" , cdGrpId: "M0003"}
  5859. ,{dsNm: "ds_init_prcpclscd" , cdGrpId: "M0005"}
  5860. ,{dsNm: "ds_init_prcpstatcd" , cdGrpId: "M0011"}
  5861. ,{dsNm: "ds_init_hosinprcpresncd", cdGrpId: "P0034"}
  5862. ,{dsNm: "ds_init_payflagcd" , cdGrpId: "M0029"}
  5863. ]
  5864. appf_getCodeList(arrParam);
  5865. // model.refresh();
  5866. }
  5867. function ds_main_down_prcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  5868. {
  5869. if(e.columnid=="choiordflag") {
  5870. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  5871. }
  5872. }
  5873. function Grid_onlbuttondown(obj:Grid, e:GridMouseEventInfo)
  5874. {
  5875. var gridName = obj.name;
  5876. var gridNo = gridName.substr(gridName.length-1, 1);
  5877. fChangeGridArea(gridNo);
  5878. }
  5879. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  5880. {
  5881. eval(e.id + "()");
  5882. }
  5883. function SPMMP02200_onload(obj:Form, e:LoadEventInfo)
  5884. {
  5885. oOpener = frmf_getoOpener();
  5886. var colHidnValue = lf_grdBaseColHidn("D");
  5887. lf_grdBaseColHidn(colHidnValue, "grd_drug1", 50, "prcpvol", "prcpqty", "drprcpetc7", "drprcpetc8");
  5888. lf_grdBaseColHidn(colHidnValue, "grd_drug2", 50, "prcpvol", "prcpqty", "drprcpetc7", "drprcpetc8");
  5889. lf_grdBaseColHidn(colHidnValue, "grd_drug3", 50, "prcpvol", "prcpqty", "drprcpetc7", "drprcpetc8");
  5890. lf_grdBaseColHidn(colHidnValue, "grd_drug4", 50, "prcpvol", "prcpqty", "drprcpetc7", "drprcpetc8");
  5891. lf_prcpExecDeptSrch("all");
  5892. // 15.12.02 start
  5893. if( oOpener.OpenerKind == "GPS" ){
  5894. // copyNodesetType("/root/init/prcpkindcd", "/root/init/prcpkindcd", "replace", model, opener.model);
  5895. // copyNodesetType("/root/init/prcpclscd", "/root/init/prcpclscd", "replace", model, .model);
  5896. // copyNodesetType("/root/init/prcpstatcd", "/root/init/prcpstatcd", "replace", model, opener.model);
  5897. // copyNodesetType("/root/init/hosinprcpresncd", "/root/init/hosinprcpresncd", "replace", model, opener.model);
  5898. // copyNodesetType("/root/init/payflagcd", "/root/init/payflagcd", "replace", model, opener.model);
  5899. ds_init_prcpkindcd.copyData(oOpener.ds_M0003);
  5900. ds_init_prcpclscd.copyData(oOpener.ds_M0005);
  5901. ds_init_prcpstatcd.copyData(oOpener.ds_M0011);
  5902. ds_init_hosinprcpresncd.copyData(oOpener.ds_P0034);
  5903. ds_init_payflagcd.copyData(oOpener.ds_M0029);
  5904. frmf_setSpclScrnAuth("R", false);
  5905. fInitialize(); //(steppath 조회 후 수행되어야 함) -> ivw_detail의 초기화
  5906. }else{
  5907. frmf_setSpclScrnAuth("X", false);
  5908. }
  5909. frmf_createPopupMenu("popupmenu"
  5910. ,"fPopupmenu"
  5911. ,[{id: "S", level: "0", title: "수정"}
  5912. ,{id: "A", level: "0", title: "추가"}
  5913. ,{id: "D", level: "0", title: "삭제"}
  5914. ,{id: "", level: "0", title: "----------------"}
  5915. ,{id: "O", level: "0", title: "통합검사결과조회"}
  5916. ]);
  5917. frmf_createPopupMenu("popupmenu2"
  5918. ,"fPopupmenu"
  5919. ,[{id: "S", level: "0", title: "수정"}
  5920. ,{id: "A", level: "0", title: "추가"}
  5921. ,{id: "D", level: "0", title: "삭제"}
  5922. ]);
  5923. // 그리드 상태 아이콘 보여주기
  5924. // 투약
  5925. grdf_setRowTypeIcon(grd_drug1, 0);
  5926. grdf_setRowTypeIcon(grd_drug2, 0);
  5927. grdf_setRowTypeIcon(grd_drug3, 0);
  5928. grdf_setRowTypeIcon(grd_drug4, 0);
  5929. // 검사
  5930. grdf_setRowTypeIcon(grd_test1, 0);
  5931. grdf_setRowTypeIcon(grd_test2, 0);
  5932. grdf_setRowTypeIcon(grd_test3, 0);
  5933. grdf_setRowTypeIcon(grd_test4, 0);
  5934. // 간호
  5935. grdf_setRowTypeIcon(grd_caredelive1, 0);
  5936. grdf_setRowTypeIcon(grd_caredelive2, 0);
  5937. grdf_setRowTypeIcon(grd_caredelive3, 0);
  5938. grdf_setRowTypeIcon(grd_caredelive4, 0);
  5939. // 서식
  5940. grdf_setRowTypeIcon(grd_form1, 0);
  5941. grdf_setRowTypeIcon(grd_form2, 0);
  5942. grdf_setRowTypeIcon(grd_form3, 0);
  5943. grdf_setRowTypeIcon(grd_form4, 0);
  5944. // 서식
  5945. grdf_setRowTypeIcon(grd_etc1, 0);
  5946. grdf_setRowTypeIcon(grd_etc2, 0);
  5947. grdf_setRowTypeIcon(grd_etc3, 0);
  5948. grdf_setRowTypeIcon(grd_etc4, 0);
  5949. //설명처방
  5950. grdf_setRowTypeIcon(grd_hichart1, 0);
  5951. grdf_setRowTypeIcon(grd_hichart2, 0);
  5952. grdf_setRowTypeIcon(grd_hichart3, 0);
  5953. grdf_setRowTypeIcon(grd_hichart4, 0);
  5954. }
  5955. /****************************************************************************************
  5956. * Components : Grid
  5957. * Components ID : Drug, Test, Caredelive, Form, Etc
  5958. * Event : onmousemove
  5959. * Argument : 01.obj : Object Event has occurred
  5960. * : 02.e : Event Object
  5961. * Description : tooltip
  5962. ****************************************************************************************/
  5963. function comn_onmousemove(obj:Grid, e:GridMouseEventInfo)
  5964. {
  5965. lf_tooltipSet(obj, e.row, e.cell);
  5966. }
  5967. function lf_tooltipSet(grdObj, currow, curcell)
  5968. {
  5969. if(currow > -1 && curcell > 0)
  5970. {
  5971. grdObj.tooltiptext = grdObj.getCellText(currow, curcell);
  5972. }
  5973. else
  5974. {
  5975. grdObj.tooltiptext = "";
  5976. }
  5977. }
  5978. //20180201 이돈희 : 가로 사이즈 조정
  5979. function fHoriAdjustSize(grdCnt)
  5980. {
  5981. //group1.position.right = iTotalRight;
  5982. rct_border.position.width = iDayWidth + 2;
  5983. rct_border.position.height = iDayHeight * iVerNum + 1; // <-755 (-18)
  5984. //day1~4 타이틀 가로 정리
  5985. cap_day1.position.width = iDayWidth;
  5986. cap_day2.position.left = cap_day1.position.right + iGap;
  5987. cap_day2.position.width = iDayWidth;
  5988. cap_day3.position.left = cap_day2.position.right + iGap;
  5989. cap_day3.position.width = iDayWidth;
  5990. cap_day4.position.left = cap_day3.position.right + iGap;
  5991. cap_day4.position.width = iDayWidth;
  5992. //투약열 가로 정리
  5993. grd_drug1.position.left = iTotalLeft;
  5994. grd_drug1.position.width = iDayWidth;
  5995. grd_drug2.position.left = cap_day1.position.right + iGap;
  5996. grd_drug2.position.width = iDayWidth;
  5997. grd_drug3.position.left = cap_day2.position.right + iGap;
  5998. grd_drug3.position.width = iDayWidth;
  5999. grd_drug4.position.left = cap_day3.position.right + iGap;
  6000. grd_drug4.position.width = iDayWidth;
  6001. //투약열 세로 정리
  6002. cap_drug.position.top = iTotalTop;
  6003. cap_drug.position.height = iDayHeight;
  6004. grd_drug1.position.top = iTotalTop;
  6005. grd_drug1.position.height = iDayHeight;
  6006. grd_drug2.position.top = iTotalTop;
  6007. grd_drug2.position.height = iDayHeight;
  6008. grd_drug3.position.top = iTotalTop;
  6009. grd_drug3.position.height = iDayHeight;
  6010. grd_drug4.position.top = iTotalTop;
  6011. grd_drug4.position.height = iDayHeight;
  6012. //검사열 가로 정리
  6013. grd_test1.position.left = iTotalLeft;
  6014. grd_test1.position.width = iDayWidth;
  6015. grd_test2.position.left = cap_day1.position.right + iGap;
  6016. grd_test2.position.width = iDayWidth;
  6017. grd_test3.position.left = cap_day2.position.right + iGap;
  6018. grd_test3.position.width = iDayWidth;
  6019. grd_test4.position.left = cap_day3.position.right + iGap;
  6020. grd_test4.position.width = iDayWidth;
  6021. //검사열 세로정리
  6022. cap_test.position.top = cap_drug.position.bottom + iGap;
  6023. cap_test.position.height = iDayHeight;
  6024. grd_test1.position.top = cap_drug.position.bottom + iGap;
  6025. grd_test1.position.height = iDayHeight;
  6026. grd_test2.position.top = cap_drug.position.bottom + iGap;
  6027. grd_test2.position.height = iDayHeight;
  6028. grd_test3.position.top = cap_drug.position.bottom + iGap;
  6029. grd_test3.position.height = iDayHeight;
  6030. grd_test4.position.top = cap_drug.position.bottom + iGap;
  6031. grd_test4.position.height = iDayHeight;
  6032. //간호전달열 가로 정리
  6033. grd_caredelive1.position.left = iTotalLeft;
  6034. grd_caredelive1.position.width = iDayWidth;
  6035. grd_caredelive2.position.left = cap_day1.position.right + iGap;
  6036. grd_caredelive2.position.width = iDayWidth;
  6037. grd_caredelive3.position.left = cap_day2.position.right + iGap;
  6038. grd_caredelive3.position.width = iDayWidth;
  6039. grd_caredelive4.position.left = cap_day3.position.right + iGap;
  6040. grd_caredelive4.position.width = iDayWidth;
  6041. //간호전달열 세로정리
  6042. cap_caredelive.position.top = cap_test.position.bottom + iGap;
  6043. cap_caredelive.position.height = iDayHeight;
  6044. grd_caredelive1.position.top = cap_test.position.bottom + iGap;
  6045. grd_caredelive1.position.height = iDayHeight;
  6046. grd_caredelive2.position.top = cap_test.position.bottom + iGap;
  6047. grd_caredelive2.position.height = iDayHeight;
  6048. grd_caredelive3.position.top = cap_test.position.bottom + iGap;
  6049. grd_caredelive3.position.height = iDayHeight;
  6050. grd_caredelive4.position.top = cap_test.position.bottom + iGap;
  6051. grd_caredelive4.position.height = iDayHeight;
  6052. //서식열 가로 정리
  6053. grd_form1.position.left = iTotalLeft;
  6054. grd_form1.position.width = iDayWidth;
  6055. grd_form2.position.left = cap_day1.position.right + iGap;
  6056. grd_form2.position.width = iDayWidth;
  6057. grd_form3.position.left = cap_day2.position.right + iGap;
  6058. grd_form3.position.width = iDayWidth;
  6059. grd_form4.position.left = cap_day3.position.right + iGap;
  6060. grd_form4.position.width = iDayWidth;
  6061. //서식열 세로정리
  6062. cap_form.position.top = cap_caredelive.position.bottom + iGap;
  6063. cap_form.position.height = iDayHeight;
  6064. grd_form1.position.top = cap_caredelive.position.bottom + iGap;
  6065. grd_form1.position.height = iDayHeight;
  6066. grd_form2.position.top = cap_caredelive.position.bottom + iGap;
  6067. grd_form2.position.height = iDayHeight;
  6068. grd_form3.position.top = cap_caredelive.position.bottom + iGap;
  6069. grd_form3.position.height = iDayHeight;
  6070. grd_form4.position.top = cap_caredelive.position.bottom + iGap;
  6071. grd_form4.position.height = iDayHeight;
  6072. //기타열 가로 정리
  6073. grd_etc1.position.left = iTotalLeft;
  6074. grd_etc1.position.width = iDayWidth;
  6075. grd_etc2.position.left = cap_day1.position.right + iGap;
  6076. grd_etc2.position.width = iDayWidth;
  6077. grd_etc3.position.left = cap_day2.position.right + iGap;
  6078. grd_etc3.position.width = iDayWidth;
  6079. grd_etc4.position.left = cap_day3.position.right + iGap;
  6080. grd_etc4.position.width = iDayWidth;
  6081. //기타열 세로정리
  6082. cap_etc.position.top = cap_form.position.bottom + iGap;
  6083. cap_etc.position.height = iDayHeight;
  6084. grd_etc1.position.top = cap_form.position.bottom + iGap;
  6085. grd_etc1.position.height = iDayHeight;
  6086. grd_etc2.position.top = cap_form.position.bottom + iGap;
  6087. grd_etc2.position.height = iDayHeight;
  6088. grd_etc3.position.top = cap_form.position.bottom + iGap;
  6089. grd_etc3.position.height = iDayHeight;
  6090. grd_etc4.position.top = cap_form.position.bottom + iGap;
  6091. grd_etc4.position.height = iDayHeight;
  6092. //설병처방열 가로 정리
  6093. grd_hichart1.position.left = iTotalLeft;
  6094. grd_hichart1.position.width = iDayWidth;
  6095. grd_hichart2.position.left = cap_day1.position.right + iGap;
  6096. grd_hichart2.position.width = iDayWidth;
  6097. grd_hichart3.position.left = cap_day2.position.right + iGap;
  6098. grd_hichart3.position.width = iDayWidth;
  6099. grd_hichart4.position.left = cap_day3.position.right + iGap;
  6100. grd_hichart4.position.width = iDayWidth;
  6101. //설명처방열 세로정리
  6102. cap_hichart.position.top = cap_etc.position.bottom + iGap;
  6103. cap_hichart.position.height = iDayHeight;
  6104. grd_hichart1.position.top = cap_etc.position.bottom + iGap;
  6105. grd_hichart1.position.height = iDayHeight;
  6106. grd_hichart2.position.top = cap_etc.position.bottom + iGap;
  6107. grd_hichart2.position.height = iDayHeight;
  6108. grd_hichart3.position.top = cap_etc.position.bottom + iGap;
  6109. grd_hichart3.position.height = iDayHeight;
  6110. grd_hichart4.position.top = cap_etc.position.bottom + iGap;
  6111. grd_hichart4.position.height = iDayHeight;
  6112. }
  6113. //초기 및 화면 화면 사이즈 셋팅
  6114. function fSetSize()
  6115. {
  6116. //모든 그리드 사이즈를 바꾼다
  6117. iTotalLeft = cap_day1.position.left; // day1~4 의 가장 왼쪽 좌표
  6118. iTotalRight = this.parent.ivw_detail.position.width - 2; // day1~4 의 가장 오른쪽 좌표
  6119. iTotalWidth = iTotalRight - iTotalLeft;
  6120. iGap = 5; // 갭 사이의 너비
  6121. //iHoriNum = dayCnt; //day 수
  6122. iHoriGapNum = 3; // 가로열 day1~4사이의 갭 수
  6123. iVerNum = 6; // 투약, 검사, 간호전달 서식, 기타, 설명처방 총 6개
  6124. iVerGapNum = 5; // 투약, 검사, 간호전달 서식, 기타, 설명처방 사이의 갭 수
  6125. iDayWidth = (iTotalWidth - iGap*iHoriGapNum)/iHoriNum; //Day 한개당 너비
  6126. iTotalTop = cap_drug.position.top + 1;//투약 그리드 상단 좌표, 1 : border를 위한 갭
  6127. iTotalBottom = this.parent.ivw_detail.position.height;// 화면 하단 좌표
  6128. iTotalHeight = iTotalBottom - iTotalTop - 2;//2 : border를 위한 갭
  6129. iDayHeight = (iTotalHeight - iGap*iVerGapNum)/iVerNum; //투약 한개의 높이
  6130. /*
  6131. trace("--------------------------------");
  6132. trace("iTotalLeft = " + iTotalLeft);
  6133. trace("iTotalRight = " + iTotalRight);
  6134. trace("iTotalTop = " + iTotalTop);
  6135. trace("iTotalBottom = " + iTotalBottom);
  6136. trace("iTotalWidth = " + iTotalWidth);
  6137. trace("iTotalHeight = " + iTotalHeight);
  6138. trace("iDayWidth = " + iDayWidth);
  6139. trace("iDayHeight = " + iDayHeight);
  6140. trace("iDivHeight = " + this.position.height);
  6141. */
  6142. }
  6143. //20180312 이돈희 : 상하 확장 버튼 으로 사이즈 변경시 리사이징
  6144. function SPMMP02200_onsize(obj:Form, e:SizeEventInfo)
  6145. {
  6146. //사이즈 변경시 div의 사이즈 설정(이벤트가 살아있으면 무한 루프임)
  6147. this.enableevent = false;
  6148. this.position.width = this.parent.ivw_detail.position.width;
  6149. this.position.height = this.parent.ivw_detail.position.height;
  6150. this.enableevent = true;
  6151. trace("this.parent.ivw_detail.position.width = " + this.parent.ivw_detail.position.width);
  6152. //화면 사이즈 변경 시 모두 축소된 상태에서 사이즈 변경
  6153. fSelectOneDay("", "re");
  6154. deselectedDayCaption = selectedDayCaption;
  6155. selectedDayCaption = "";
  6156. //화면 사이즈 재설정
  6157. fSetSize();
  6158. fSetupGrdMode(iHoriNum, false);
  6159. //선택 그리드 재설정
  6160. fChangeGridArea(selectedDay)
  6161. //일부 그리드가 제대로 안보이는 현상으로 임시로 그리드 확장 축소 시킴
  6162. fSelectOneDay("1", "ex");
  6163. fSelectOneDay("1", "re");
  6164. }
  6165. ]]></Script>
  6166. </Form>
  6167. </FDL>