SMRAD08100_전표입력관리.xrw 283 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>전표입력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <unsl/>
  11. <unsl_one>
  12. <instcd/>
  13. <unsldd/>
  14. <unslno/>
  15. <unslseqno/>
  16. <projectid/>
  17. <projectnm/>
  18. <slipflag/>
  19. <slipkind/>
  20. <acountingflag/>
  21. <drcrflag>D</drcrflag>
  22. <acntcd/>
  23. <acntnm/>
  24. <suppitemcd/>
  25. <bugtcd>01</bugtcd>
  26. <bugtnm/>
  27. <custflag/>
  28. <custcd/>
  29. <custnm/>
  30. <costcntrdeptcd/>
  31. <costcntrdeptnm/>
  32. <bugtmngtdeptcd/>
  33. <bugtmngtdeptnm/>
  34. <costbelongdeptcd/>
  35. <costbelongdeptnm/>
  36. <slipdeptcd/>
  37. <slipdeptnm/>
  38. <fundscd/>
  39. <profflag/>
  40. <notefactnm1/>
  41. <notefactcd1/>
  42. <notefactspec1/>
  43. <notefactnm2/>
  44. <notefactcd2/>
  45. <notefactspec2/>
  46. <notefactnm3/>
  47. <notefactcd3/>
  48. <notefactspec3/>
  49. <notefactnm4/>
  50. <notefactcd4/>
  51. <notefactspec4/>
  52. <notefactnm5/>
  53. <notefactcd5/>
  54. <notefactspec5/>
  55. <notefactnm6/>
  56. <notefactcd6/>
  57. <notefactspec6/>
  58. <etcnotefact/>
  59. <autjournflag/>
  60. <profdata/>
  61. <seqno/>
  62. <defrayreqdd/>
  63. <bugtaprvyn/>
  64. <bugtautoaprvyn/>
  65. <bugtearncostflag/>
  66. <unslwrit/>
  67. <usernm/>
  68. <sanctyn/>
  69. <dramt/>
  70. <cramt/>
  71. <amt/>
  72. <bugtamt>0</bugtamt>
  73. <sanctno/>
  74. <rlaacntseqno/>
  75. <supacntnm/>
  76. <slipcmt/>
  77. <approval11/>
  78. <approval12/>
  79. <approval13/>
  80. <approval14/>
  81. <approval15/>
  82. <approval16/>
  83. <approval17/>
  84. <approval21/>
  85. <approval22/>
  86. <approval23/>
  87. <approval24/>
  88. <approval25/>
  89. <approval26/>
  90. <approval27/>
  91. <orgbugtamtsum/>
  92. <revbugtamtsum/>
  93. <bugtexecamtsum/>
  94. <bugtflag/>
  95. <bugtflagnm/>
  96. <servseqno/>
  97. <etcprofcnt/>
  98. <ymdaction/>
  99. <cdbojo1/>
  100. <cdbojo2/>
  101. <ymdpum/>
  102. </unsl_one>
  103. <transacnt/>
  104. <slipproflist/>
  105. <bugtacptlist/>
  106. <apln>
  107. <approval11/>
  108. <approval12/>
  109. <approval13/>
  110. <approval14/>
  111. <approval15/>
  112. <approval16/>
  113. <approval17/>
  114. <approval21/>
  115. <approval22/>
  116. <approval23/>
  117. <approval24/>
  118. <approval25/>
  119. <approval26/>
  120. <approval27/>
  121. <iudflag/>
  122. <instcd/>
  123. <deptcd/>
  124. <aplnflag/>
  125. <arbitrary1/>
  126. <arbitrary2/>
  127. <arbitrary3/>
  128. <arbitrary4/>
  129. <arbitrary5/>
  130. <arbitrary6/>
  131. </apln>
  132. <list/>
  133. <slipsearch>
  134. <unsldd/>
  135. <unslno/>
  136. </slipsearch>
  137. <vincostunsl/>
  138. <grnt>
  139. <grntlist1/>
  140. </grnt>
  141. <genrinfo>
  142. <genrlist>
  143. <drcrflag/>
  144. <acntcd/>
  145. <acntnm/>
  146. <slipcmt/>
  147. <amt/>
  148. </genrlist>
  149. </genrinfo>
  150. </main>
  151. <send>
  152. <data1>
  153. <instcd/>
  154. <slipdd/>
  155. <slipflag/>
  156. </data1>
  157. <data2>
  158. <instcd/>
  159. <acntcd/>
  160. <drcrflag/>
  161. </data2>
  162. <data3>
  163. <instcd/>
  164. <unsldd/>
  165. <unslno/>
  166. <slipdeptcd/>
  167. <unslddno/>
  168. <aplnflag>1</aplnflag>
  169. <costcntrdeptcd/>
  170. <drcrcmt/>
  171. </data3>
  172. <unsl/>
  173. <data4>
  174. <mngtcd/>
  175. <instcd/>
  176. </data4>
  177. <data5>
  178. <instcd/>
  179. <unsldd/>
  180. <deptcd/>
  181. <refcond/>
  182. <retrnm/>
  183. <sqlkind/>
  184. <drcrflag/>
  185. </data5>
  186. <data6>
  187. <instcd/>
  188. <unsldd/>
  189. <unslno/>
  190. </data6>
  191. <transacntlist>
  192. <transacnt/>
  193. </transacntlist>
  194. <paydedu>
  195. <acntcd/>
  196. <sanctslipdd/>
  197. <sanctslipno/>
  198. <yyyy/>
  199. </paydedu>
  200. <data7>
  201. <acntcd/>
  202. <custcode/>
  203. <gubun/>
  204. <instcd/>
  205. </data7>
  206. </send>
  207. <hidden>
  208. <acntcdinfo>
  209. <instcd/>
  210. <acntcd/>
  211. <acntnm/>
  212. <acntflag/>
  213. <slipyn/>
  214. <expsprofyn/>
  215. <balflag/>
  216. <custflag/>
  217. <notecd1/>
  218. <notecdnm1/>
  219. <mngtkind1/>
  220. <inptkind1/>
  221. <frmt1/>
  222. <popwnd1/>
  223. <notecd2/>
  224. <notecdnm2/>
  225. <mngtkind2/>
  226. <inptkind2/>
  227. <frmt2/>
  228. <popwnd2/>
  229. <notecd3/>
  230. <notecdnm3/>
  231. <mngtkind3/>
  232. <inptkind3/>
  233. <frmt3/>
  234. <popwnd3/>
  235. <notecd4/>
  236. <notecdnm4/>
  237. <mngtkind4/>
  238. <inptkind4/>
  239. <frmt4/>
  240. <popwnd4/>
  241. <notecd5/>
  242. <notecdnm5/>
  243. <mngtkind5/>
  244. <inptkind5/>
  245. <frmt5/>
  246. <popwnd5/>
  247. <notecd6/>
  248. <notecdnm6/>
  249. <mngtkind6/>
  250. <inptkind6/>
  251. <frmt6/>
  252. <popwnd6/>
  253. <bugtcostacntcd/>
  254. <bugtuseyn/>
  255. <bugtcntryn/>
  256. <bugtautoaprvyn/>
  257. <fundscd/>
  258. <suppitemcd/>
  259. <option1/>
  260. <option2/>
  261. <option3/>
  262. <option4/>
  263. <option5/>
  264. <option6/>
  265. </acntcdinfo>
  266. <acntcdcombo>
  267. <notecombo1>
  268. <cdnm/>
  269. <cdid/>
  270. </notecombo1>
  271. <notecombo2>
  272. <cdnm/>
  273. <cdid/>
  274. </notecombo2>
  275. <notecombo3>
  276. <cdnm/>
  277. <cdid/>
  278. </notecombo3>
  279. <notecombo4>
  280. <cdnm/>
  281. <cdid/>
  282. </notecombo4>
  283. <notecombo5>
  284. <cdnm/>
  285. <cdid/>
  286. </notecombo5>
  287. <notecombo6>
  288. <cdnm/>
  289. <cdid/>
  290. </notecombo6>
  291. </acntcdcombo>
  292. <condition>
  293. <slipkind>3</slipkind>
  294. <unsldd/>
  295. <unslno/>
  296. <slipflag>1</slipflag>
  297. <projectid/>
  298. <projectnm/>
  299. <instcd/>
  300. <slipcmt/>
  301. <defrayreqdd/>
  302. <slipdeptcd/>
  303. <slipdeptnm/>
  304. <costbelongdeptcd/>
  305. <costbelongdeptnm/>
  306. <drcrcmt>D</drcrcmt>
  307. <acountingflag>1</acountingflag>
  308. <ymdaction/>
  309. <ymdpum/>
  310. <genrfrom/>
  311. <genrto/>
  312. </condition>
  313. <maxslipno>
  314. <unslno/>
  315. </maxslipno>
  316. <maxslipseqno>00000</maxslipseqno>
  317. <drsum/>
  318. <crsum/>
  319. <unsl_one>
  320. <instcd/>
  321. <unsldd/>
  322. <unslno/>
  323. <unslseqno/>
  324. <projectid/>
  325. <projectnm/>
  326. <slipflag/>
  327. <slipkind/>
  328. <acountingflag/>
  329. <drcrflag/>
  330. <acntcd/>
  331. <acntnm/>
  332. <suppitemcd/>
  333. <bugtcd/>
  334. <bugtnm/>
  335. <custflag/>
  336. <custcd/>
  337. <custnm/>
  338. <costcntrdeptcd/>
  339. <costcntrdeptnm/>
  340. <bugtmngtdeptcd/>
  341. <bugtmngtdeptnm/>
  342. <costbelongdeptcd/>
  343. <costbelongdeptnm/>
  344. <slipdeptcd/>
  345. <slipdeptnm/>
  346. <fundscd/>
  347. <profflag/>
  348. <notefactnm1/>
  349. <notefactcd1/>
  350. <notefactspec1/>
  351. <notefactnm2/>
  352. <notefactcd2/>
  353. <notefactspec2/>
  354. <notefactnm3/>
  355. <notefactcd3/>
  356. <notefactspec3/>
  357. <notefactnm4/>
  358. <notefactcd4/>
  359. <notefactspec4/>
  360. <notefactnm5/>
  361. <notefactcd5/>
  362. <notefactspec5/>
  363. <notefactnm6/>
  364. <notefactcd6/>
  365. <notefactspec6/>
  366. <etcnotefact/>
  367. <autjournflag/>
  368. <profdata/>
  369. <seqno/>
  370. <defrayreqdd/>
  371. <bugtaprvyn/>
  372. <bugtautoaprvyn/>
  373. <bugtearncostflag/>
  374. <unslwrit/>
  375. <usernm/>
  376. <sanctyn/>
  377. <dramt/>
  378. <cramt/>
  379. <amt/>
  380. <bugtamt/>
  381. <sanctno/>
  382. <rlaacntseqno/>
  383. <supacntnm/>
  384. <slipcmt/>
  385. <approval11/>
  386. <approval12/>
  387. <approval13/>
  388. <approval14/>
  389. <approval15/>
  390. <approval16/>
  391. <approval17/>
  392. <approval21/>
  393. <approval22/>
  394. <approval23/>
  395. <approval24/>
  396. <approval25/>
  397. <approval26/>
  398. <approval27/>
  399. <orgbugtamtsum/>
  400. <revbugtamtsum/>
  401. <bugtexecamtsum/>
  402. <bugtflag/>
  403. <bugtflagnm/>
  404. <servseqno/>
  405. <etcprofcnt/>
  406. <ymdaction/>
  407. <cdbojo1/>
  408. <cdbojo2/>
  409. <ymdpum/>
  410. </unsl_one>
  411. <slipyn>Y</slipyn>
  412. <allexpsacntsum/>
  413. <expsacntsum/>
  414. <expsacnt/>
  415. <rptparm>
  416. <instcd/>
  417. <instnm/>
  418. <slipno/>
  419. <reprtyn/>
  420. <bugtinfocnt/>
  421. <profinfocnt/>
  422. <transinfocnt/>
  423. <dayworkerprntlistcnt/>
  424. <priprofprntlistcnt/>
  425. <etcprofprntlistcnt/>
  426. <retrprofprntlistcnt/>
  427. <servprofprntlistcnt/>
  428. <expansion/>
  429. <preview/>
  430. </rptparm>
  431. <orchreturn>
  432. <seqno/>
  433. <amt/>
  434. <etcnotefact/>
  435. <incmtax/>
  436. <resdntax/>
  437. </orchreturn>
  438. <prntlist>
  439. <dayworkerprntlist/>
  440. <priprofprntlist/>
  441. <etcprofprntlist/>
  442. </prntlist>
  443. <retexpacntsum/>
  444. <chklist/>
  445. <tempnode>
  446. <emplno/>
  447. <emplnm/>
  448. </tempnode>
  449. <acntyy/>
  450. <prev_prof/>
  451. <delaact>
  452. <transacnt>
  453. <instcd/>
  454. <unsldd/>
  455. <unslno/>
  456. <jobflag/>
  457. </transacnt>
  458. </delaact>
  459. <projectidlist/>
  460. <userinfo>
  461. <unslwrit/>
  462. <usernm/>
  463. </userinfo>
  464. <copyshiftslip>
  465. <newunsldd/>
  466. <newunslno/>
  467. </copyshiftslip>
  468. <seizureyn>N</seizureyn>
  469. <kijeomitlist/>
  470. <instcardseqnoinfo>
  471. <instcardseqno/>
  472. </instcardseqnoinfo>
  473. <deptflag>1</deptflag>
  474. <slipstatus/>
  475. </hidden>
  476. <init>
  477. <R0008list>
  478. <R0008>
  479. <cdnm/>
  480. <cdid/>
  481. </R0008>
  482. </R0008list>
  483. <R0017list>
  484. <R0017>
  485. <cdnm/>
  486. <cdid/>
  487. </R0017>
  488. </R0017list>
  489. <Z0007list>
  490. <Z0007>
  491. <cdnm/>
  492. <cdid/>
  493. </Z0007>
  494. </Z0007list>
  495. <profflaglist>
  496. <profflag>
  497. <nm>법인카드</nm>
  498. <cd>1</cd>
  499. </profflag>
  500. <profflag>
  501. <nm>개인신용카드</nm>
  502. <cd>2</cd>
  503. </profflag>
  504. <profflag>
  505. <nm>현금영수증</nm>
  506. <cd>3</cd>
  507. </profflag>
  508. <profflag>
  509. <nm>세금계산서</nm>
  510. <cd>4</cd>
  511. </profflag>
  512. <profflag>
  513. <nm>계산서</nm>
  514. <cd>5</cd>
  515. </profflag>
  516. <profflag>
  517. <nm>기타</nm>
  518. <cd>6</cd>
  519. </profflag>
  520. <profflag>
  521. <nm>근로소득</nm>
  522. <cd>7</cd>
  523. </profflag>
  524. <profflag>
  525. <nm>비과세근로소득</nm>
  526. <cd>8</cd>
  527. </profflag>
  528. <profflag>
  529. <nm>퇴직소득</nm>
  530. <cd>9</cd>
  531. </profflag>
  532. <profflag>
  533. <nm>일용근로소득</nm>
  534. <cd>A</cd>
  535. </profflag>
  536. <profflag>
  537. <nm>사업소득</nm>
  538. <cd>B</cd>
  539. </profflag>
  540. <profflag>
  541. <nm>기타소득</nm>
  542. <cd>C</cd>
  543. </profflag>
  544. </profflaglist>
  545. <custflaglist>
  546. <custflag>
  547. <nm>거래처</nm>
  548. <cd>1</cd>
  549. </custflag>
  550. <custflag>
  551. <nm>부서</nm>
  552. <cd>3</cd>
  553. </custflag>
  554. <custflag>
  555. <nm>직원</nm>
  556. <cd>4</cd>
  557. </custflag>
  558. <custflag>
  559. <nm>개인</nm>
  560. <cd>5</cd>
  561. </custflag>
  562. <custflag>
  563. <nm>기타</nm>
  564. <cd>9</cd>
  565. </custflag>
  566. </custflaglist>
  567. <fundscdlist>
  568. <fundscd>
  569. <nm/>
  570. <cd/>
  571. </fundscd>
  572. <fundscd>
  573. <nm>의료수입</nm>
  574. <cd>1100</cd>
  575. </fundscd>
  576. <fundscd>
  577. <nm>의료외수입</nm>
  578. <cd>1900</cd>
  579. </fundscd>
  580. <fundscd>
  581. <nm>인건비</nm>
  582. <cd>2100</cd>
  583. </fundscd>
  584. <fundscd>
  585. <nm>재료비</nm>
  586. <cd>2200</cd>
  587. </fundscd>
  588. <fundscd>
  589. <nm>관리운영비</nm>
  590. <cd>2300</cd>
  591. </fundscd>
  592. <fundscd>
  593. <nm>의료외지출</nm>
  594. <cd>2900</cd>
  595. </fundscd>
  596. <fundscd>
  597. <nm>자산매각</nm>
  598. <cd>3100</cd>
  599. </fundscd>
  600. <fundscd>
  601. <nm>자산취득</nm>
  602. <cd>4100</cd>
  603. </fundscd>
  604. <fundscd>
  605. <nm>기본금증가</nm>
  606. <cd>5100</cd>
  607. </fundscd>
  608. <fundscd>
  609. <nm>기본금감소</nm>
  610. <cd>6100</cd>
  611. </fundscd>
  612. <fundscd>
  613. <nm>예금인출</nm>
  614. <cd>7100</cd>
  615. </fundscd>
  616. <fundscd>
  617. <nm>금융수입</nm>
  618. <cd>7200</cd>
  619. </fundscd>
  620. <fundscd>
  621. <nm>차입실행</nm>
  622. <cd>7300</cd>
  623. </fundscd>
  624. <fundscd>
  625. <nm>대여금회수</nm>
  626. <cd>7400</cd>
  627. </fundscd>
  628. <fundscd>
  629. <nm>예금불입</nm>
  630. <cd>8100</cd>
  631. </fundscd>
  632. <fundscd>
  633. <nm>금융비용</nm>
  634. <cd>8200</cd>
  635. </fundscd>
  636. <fundscd>
  637. <nm>차입상환</nm>
  638. <cd>8300</cd>
  639. </fundscd>
  640. <fundscd>
  641. <nm>자금대여</nm>
  642. <cd>8400</cd>
  643. </fundscd>
  644. <fundscd>
  645. <nm>자금이체</nm>
  646. <cd>9000</cd>
  647. </fundscd>
  648. </fundscdlist>
  649. <code>
  650. <codelist/>
  651. </code>
  652. <arbitrarylist>
  653. <arbitrary>
  654. <nm>결재선</nm>
  655. <cd>1</cd>
  656. </arbitrary>
  657. <arbitrary>
  658. <nm>전결</nm>
  659. <cd>2</cd>
  660. </arbitrary>
  661. <arbitrary>
  662. <nm>후결</nm>
  663. <cd>3</cd>
  664. </arbitrary>
  665. <arbitrary>
  666. <nm>대결</nm>
  667. <cd>4</cd>
  668. </arbitrary>
  669. </arbitrarylist>
  670. <combo4>
  671. <acntcmb>
  672. <bojocd/>
  673. <bojonm/>
  674. </acntcmb>
  675. </combo4>
  676. </init>
  677. <temp>
  678. <cardcd/>
  679. <cardno/>
  680. </temp>
  681. <temp2>
  682. <purgrpno/>
  683. <usedd/>
  684. <unslwrit/>
  685. <slipcmt/>
  686. <amt/>
  687. <cmt/>
  688. <tranflag/>
  689. </temp2>
  690. <target>
  691. </target>
  692. <griddatainfo>
  693. <acntcdlist>
  694. <acntcd/>
  695. <acntnm/>
  696. </acntcdlist>
  697. <custlist>
  698. <custcode/>
  699. <custnm/>
  700. </custlist>
  701. </griddatainfo>
  702. <pop2data>
  703. <xrwseq/>
  704. <no/>
  705. </pop2data>
  706. </root>
  707. </instance>
  708. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  709. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" resultref="/root/init/code/codelist"/>
  710. <submission id="TRRAD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/init/combo4"/>
  711. <submission id="TRRAD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/unsl"/>
  712. <submission id="TRRAD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/maxslipno"/>
  713. <submission id="TRRAD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/acntcdinfo"/>
  714. <submission id="TRRAD00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/chklist"/>
  715. <submission id="TRRAD00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/transacnt"/>
  716. <submission id="TRRAD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/prntlist"/>
  717. <submission id="TXRAD08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsl" resultref="/root/main/unsl"/>
  718. <submission id="TXRAD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/unsl"/>
  719. <bind id="bind_caption13" ref="/root/hidden/drsum" calculate="sum(/root/main/unsl/dramt)"/>
  720. <bind id="bind_caption14" ref="/root/hidden/crsum" calculate="sum(/root/main/unsl/cramt)"/>
  721. <submission id="TRRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/apln"/>
  722. <submission id="TXRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/apln" resultref="/root/temp"/>
  723. <submission id="TRRAD90107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/main/list"/>
  724. <submission id="TRRAD00152" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/kijeomitlist"/>
  725. <submission id="TRRAD00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/slipproflist"/>
  726. <submission id="TRRAD00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/bugtacptlist"/>
  727. <submission id="TXRAD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/condition" resultref="/root/temp"/>
  728. <submission id="TRRAD00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/vincostunsl"/>
  729. <submission id="TXRAD00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp2" resultref="/root/temp2"/>
  730. <submission id="TRRAD03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  731. <submission id="TRRAD03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  732. <submission id="TRRAD00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data7" resultref="/root/griddatainfo"/>
  733. <submission id="TRRAD00117" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/condition" resultref="/root/main/genrinfo"/>
  734. <submission id="TRRAD03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  735. <submission id="TRRAH01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  736. </model>
  737. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  738. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  739. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  740. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  741. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  742. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  743. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  744. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  745. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  746. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  747. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  748. <script type="javascript" ev:event="xforms-ready">
  749. <![CDATA[
  750. fCheckAuth();
  751. fInitialize();
  752. ]]>
  753. </script>
  754. <script type="javascript">
  755. <![CDATA[
  756. var cashcd = ""; //현금 계정코드 default 값 "11101001"
  757. var cashcdnm = ""; //현금 계정명 default 값 "현금"
  758. var expsacnt = ""; //입출금 기본계정 default 값 - 기업자유예금 "11101004"
  759. var expsacntnm = ""; //입출금 기본계정 default 값 "기업자유예금"
  760. var acntdept = ""; //재무팀 부서코드 default 값 "4030100000"
  761. var bugtdept = ""; //기획팀 부서코드 default 값 "4060100000"
  762. var incmtax = ""; //소득세 예수금 계정
  763. var incmtaxnm = ""; //소득세 예수금 계정명
  764. var resdntax = ""; //주민세 예수금 계정
  765. var resdntaxnm = ""; //주민세 예수금 계정명
  766. var isacntdept = false;
  767. //var servcd = "";
  768. //var servnm = "";
  769. var seizurecd = "";
  770. var seizurenm = "";
  771. var sExpsacnt_Entrregno = ""; //입출금 기본계좌의 거래처코드
  772. var sExpsacnt_Custnm = ""; //입출금 기본계좌의 거래처명
  773. var sExpsacnt_Aactcd = ""; //입출금 기본계좌의 계좌코드
  774. var sExpsacnt_Aactno = ""; //입출금 기본계좌의 계좌번호
  775. var arrCashAcntCd = new Array();
  776. var arrTransAcntCd = new Array();
  777. var expansion = radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition3');
  778. //========================================================================================
  779. //화면 권한 체크
  780. //========================================================================================
  781. function fCheckAuth()
  782. {
  783. // btn_search.disabled = !checkAuth("R") ;
  784. // btn_save.disabled = !checkAuth("X") ;
  785. // btn_delete.disabled = !checkAuth("X") ;
  786. }
  787. //========================================================================================
  788. //행 추가 부분 값
  789. //========================================================================================
  790. function misfGridIUDs (pGrid_Name, pIAD_Flag) {
  791. if (pGrid_Name.elementName != "xforms:datagrid") {
  792. return;
  793. }
  794. model.setfocus(pGrid_Name.attribute("id"));
  795. if (pIAD_Flag == "A" || pIAD_Flag == "I") {
  796. pGrid_Name.dispatch("onrowchanged");
  797. misfGridDefaultSet(pGrid_Name);
  798. pGrid_Name.col = 1;
  799. }
  800. }
  801. //========================================================================================
  802. //초기화
  803. //========================================================================================
  804. function fInitialize()
  805. {
  806. var sToday = getCurrentDate().toString();
  807. var instcd = getUserInfo("dutplceinstcd");
  808. var deptcd = getUserInfo("dutplcecd");
  809. var deptnm = getUserInfo("dutplcenm");
  810. var cdgbn;
  811. zbcfGetCodeList(new Array("R0008","R0017","Z0007"), new Array("/root/init/R0008list","/root/init/R0017list","/root/init/Z0007list"));
  812. //===================================================================================================================
  813. // 2011.08.29 cyw 특정 전표구분 안보이게..
  814. var Rcnt = getNodesetCount("/root/init/R0008list/R0008");
  815. for( var a = 1 ; a <= Rcnt ; a++ ){
  816. if( model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "6" // 물류전표(입고)
  817. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "7" // 물류전표(출고)
  818. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "8" // 감가상각전표
  819. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "9" // 전표반제
  820. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "A" // 결산대체전표1(예산적용)
  821. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "P" // 품의전표
  822. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "B" // 결산대체전표2(예산미적용)
  823. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "J" // 품의대금지급전표
  824. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "K" // 가수금
  825. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "H" // 일반전표(예산)
  826. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "G" // 구매지급전표
  827. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "D" // 고정자산상각전표
  828. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "E" // 일반전표(대금지급)
  829. || model.getValue("/root/init/R0008list/R0008[" + a + "]/cdid") == "F" // 재고자산
  830. ){
  831. model.removeNodeset("/root/init/R0008list/R0008[" + a + "]");
  832. a = 0;
  833. }
  834. }
  835. //===================================================================================================================
  836. model.removenode("/root/main/unsl");
  837. model.refresh();
  838. //=========기초정보(상수값) Loding===================================================
  839. model.setValue("/root/send/data4/instcd", instcd);
  840. model.setValue("/root/send/data4/mngtcd", "%");
  841. model.refresh();
  842. submit("TRRAZ00001");
  843. for (i=1; i<=instance1.selectNodes("root/init/code/code/codelist").length; i++)
  844. {
  845. cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
  846. if (cdgbn == "acntdept")
  847. {
  848. acntdept = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  849. }
  850. else if (cdgbn == "bugtdept")
  851. {
  852. bugtdept = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  853. }
  854. else if (cdgbn == "cashcd")
  855. {
  856. cashcd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  857. cashcdnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  858. }
  859. else if (cdgbn == "expsacnt")
  860. {
  861. expsacnt = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  862. expsacntnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  863. sExpsacnt_Entrregno = model.getValue("/root/init/code/code/codelist[" + i + "]/entrregno");
  864. sExpsacnt_Custnm = model.getValue("/root/init/code/code/codelist[" + i + "]/custnm");
  865. sExpsacnt_Aactcd = model.getValue("/root/init/code/code/codelist[" + i + "]/aactcd");
  866. sExpsacnt_Aactno = model.getValue("/root/init/code/code/codelist[" + i + "]/aactno");
  867. model.setValue("/root/hidden/expsacnt",expsacnt);
  868. }
  869. else if (cdgbn == "incmtax")
  870. {
  871. incmtax = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  872. incmtaxnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  873. }
  874. else if (cdgbn == "resdntax")
  875. {
  876. resdntax = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  877. resdntaxnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  878. }
  879. else if (cdgbn == "cashacntcd")
  880. {
  881. arrCashAcntCd[arrCashAcntCd.length] = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  882. }
  883. /*else if (cdgbn == "serveacnt")
  884. {
  885. servcd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  886. servnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  887. }*/
  888. else if (cdgbn == "seizureacnt")
  889. {
  890. seizurecd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  891. seizurenm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  892. }
  893. }
  894. for(var i = 0 ; i < arrCashAcntCd.length ; i++)
  895. {
  896. if(arrCashAcntCd[i] != cashcd)
  897. {
  898. arrTransAcntCd[arrTransAcntCd.length] = arrCashAcntCd[i];
  899. }
  900. }
  901. if(arrTransAcntCd.length != arrCashAcntCd.length-1)
  902. {
  903. messageBox("관리코드 계정 setting 이 잘못되었습니다. 운영자에게 문의하세요", "I000");
  904. window.close();
  905. }
  906. // alert("cashcd : " + cashcd );
  907. // alert("expsacnt : " + expsacnt );
  908. // alert("expsacntnm : " + expsacntnm );
  909. // alert("acntdept : " + acntdept );
  910. // alert("incmtax : " + incmtax );
  911. // alert("incmtaxnm : " + incmtaxnm );
  912. // alert("resdntax : " + resdntax );
  913. // alert("resdntaxnm : " + resdntaxnm );
  914. // alert("isacntdept : " + isacntdept );
  915. // alert("sExpsacnt_Entrregno: " + sExpsacnt_Entrregno);
  916. // alert("sExpsacnt_Custnm : " + sExpsacnt_Custnm );
  917. // alert("sExpsacnt_Aactcd : " + sExpsacnt_Aactcd );
  918. // alert("sExpsacnt_Aactno : " + sExpsacnt_Aactno );
  919. //=============================================================
  920. model.setValue("/root/main/unsl_one/costcntrdeptcd", deptcd);
  921. model.setValue("/root/main/unsl_one/costcntrdeptnm", deptnm);
  922. model.setValue(ipt_costbelongdeptcd.attribute("ref"), deptcd);
  923. model.setValue(ipt_costbelongdeptnm.attribute("ref"), deptnm);
  924. model.setValue("/root/hidden/condition/slipdeptcd", deptcd);
  925. model.setValue("/root/hidden/condition/slipdeptnm", deptnm);
  926. var pinstcd = model.getValue("/root/target/slipinfo/instcd");
  927. var pslipdt = model.getValue("/root/target/slipinfo/slipdt");
  928. var pslipno = model.getValue("/root/target/slipinfo/slipno");
  929. if(instance1.selectNodes("/root/target/slipinfo").length != 0)
  930. {
  931. model.setValue("/root/main/unsl_one/instcd",pinstcd);
  932. model.setValue("/root/hidden/condition/unsldd",pslipdt);
  933. model.setValue("/root/hidden/condition/unslno",pslipno);
  934. model.refresh();
  935. fQueryClick();
  936. //grd_unsl.rowStatus(1) = 2;
  937. model.refresh();
  938. }
  939. else
  940. {
  941. model.setValue("/root/hidden/condition/unsldd", sToday);
  942. model.setValue("/root/hidden/condition/defrayreqdd", sToday);
  943. model.setValue("/root/hidden/condition/ymdaction", sToday);
  944. model.setValue("/root/hidden/condition/ymdpum", sToday);
  945. model.setValue("/root/main/unsl_one/profflag", "6");
  946. model.setValue("/root/main/unsl_one/etcprofcnt", "1");
  947. model.setValue("/root/main/unsl_one/custflag", "1");
  948. model.setValue("/root/main/unsl_one/cdbojo2", "*");
  949. cmb_custflag.dispatch("xforms-value-changed");
  950. model.setValue("/root/hidden/condition/genrfrom", sToday);
  951. model.setValue("/root/hidden/condition/genrto", sToday);
  952. if (instcd.length > 0)
  953. {
  954. model.setValue("/root/main/unsl_one/instcd", instcd);
  955. }
  956. else
  957. {
  958. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  959. }
  960. model.setValue("/root/main/unsl_one/unslwrit",getUserId());
  961. model.setValue("/root/main/unsl_one/usernm",getUserName());
  962. model.setValue("/root/send/data1/instcd", instcd);
  963. model.setValue("/root/send/data1/slipdd", sToday);
  964. model.setValue("/root/send/data1/slipflag", "U");
  965. model.refresh();
  966. submit("TRRAD00102");
  967. model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
  968. model.setValue("/root/main/unsl_one/unslseqno", "00001");
  969. model.setValue("/root/hidden/maxslipseqno", "00000");
  970. ipt_approval21.disabled = true;
  971. ipt_approval22.disabled = true;
  972. ipt_approval23.disabled = true;
  973. ipt_approval24.disabled = true;
  974. ipt_approval25.disabled = true;
  975. ipt_approval26.disabled = true;
  976. btn_jichul.visible = false;
  977. btn_accntuncl.visible = false;
  978. fuserInfoSet();
  979. model.refresh();
  980. }
  981. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition5') == "Y")
  982. {
  983. ipt_costbelongdeptcd.disabled = false;
  984. ipt_costbelongdeptnm.disabled = false;
  985. btn_costbelongdeptcd.visible = true;
  986. ipt_costbelongdeptcd.attribute("width") = "82";
  987. }
  988. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition7') == "Y")
  989. {
  990. misfComboComCdList("R0360", rdo_slipkind, "N");
  991. rdo_slipkind.attribute("cellspacing") = 10;
  992. btn_transslip.visible = true;
  993. }
  994. else
  995. {
  996. misfComboComCdList("R0359", rdo_slipkind, "N");
  997. rdo_slipkind.attribute("cellspacing") = 20;
  998. btn_transslip.visible = false;
  999. }
  1000. if(getUserInfo("dutplcecd") == acntdept)
  1001. {
  1002. //ipt_projectid.disabled = false;
  1003. //ipt_projectnm.disabled = false;
  1004. //btn_projectid.disabled = false;
  1005. btn_proj.visible = true;
  1006. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition1') == "Y")
  1007. {
  1008. ipt_slipdeptcd.disabled = false;
  1009. ipt_slipdeptnm.disabled = false;
  1010. btn_slipdeptcd.visible = true;
  1011. ipt_slipdeptcd.attribute("width") = "80";
  1012. }
  1013. }
  1014. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition2') == "Y")
  1015. {
  1016. opt_number01.visible = true;
  1017. opt_number02.visible = true;
  1018. opt_number03.visible = true;
  1019. opt_number04.visible = true;
  1020. opt_number05.visible = true;
  1021. opt_number06.visible = true;
  1022. opt_number07.visible = true;
  1023. opt_number08.visible = true;
  1024. opt_number09.visible = true;
  1025. opt_number10.visible = true;
  1026. opt_number11.visible = true;
  1027. // opt_number12.visible = true;
  1028. // opt_number13.visible = true;
  1029. // opt_number14.visible = true;
  1030. // opt_number15.visible = true;
  1031. shp_number01.visible = true;
  1032. shp_number02.visible = true;
  1033. shp_number03.visible = true;
  1034. shp_number04.visible = true;
  1035. shp_number05.visible = true;
  1036. shp_number06.visible = true;
  1037. shp_number07.visible = true;
  1038. shp_number08.visible = true;
  1039. shp_number09.visible = true;
  1040. shp_number10.visible = true;
  1041. shp_number11.visible = true;
  1042. // shp_number12.visible = true;
  1043. // shp_number13.visible = true;
  1044. // shp_number14.visible = true;
  1045. // shp_number15.visible = true;
  1046. }
  1047. if(getUserInfo("dutplceinstcd") == "017")
  1048. {
  1049. rdo_drcrcmt.visible = true;
  1050. cap_drcrcmt.visible = true;
  1051. }
  1052. if(getUserInfo("dutplceinstcd") == "103")
  1053. {
  1054. cap_acountingflag.visible = true;
  1055. rdo_acountingflag.visible = true;
  1056. }
  1057. fSlipStatus();
  1058. setDefrayreqdd();
  1059. //=======================
  1060. // 기관별 결재라인 예외처리
  1061. //=======================
  1062. if(expansion == "N")
  1063. {
  1064. ipt_approval16.disabled = true;
  1065. ipt_approval26.disabled = true;
  1066. cmb_arbitrary6.disabled = true;
  1067. }
  1068. //=======================
  1069. model.setFocus("ipt_slipcmt"); //model.setFocus("ipt_acntnm");
  1070. }
  1071. //========================================================================================
  1072. //MAX 전표번호 조회
  1073. //========================================================================================
  1074. function fMaxSlipNo() {
  1075. var sToday = getCurrentDate().toString();
  1076. model.setValue("/root/send/data1/instcd", model.getValue("/root/main/unsl_one/instcd"));
  1077. model.setValue("/root/send/data1/slipdd", model.getValue("/root/hidden/condition/unsldd"));
  1078. model.setValue("/root/send/data1/slipflag", "U");
  1079. model.refresh();
  1080. submit("TRRAD00102");
  1081. if (model.getValue("/root/hidden/condition/unsldd") == "") {
  1082. model.setValue("/root/hidden/condition/unsldd", sToday);
  1083. }
  1084. model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
  1085. model.setValue("/root/main/unsl_one/unslseqno", "00001");
  1086. model.setValue("/root/hidden/maxslipseqno", "00000");
  1087. model.refresh();
  1088. model.setFocus("ipt_slipcmt"); //model.setFocus("ipt_acntnm");
  1089. }
  1090. //========================================================================================
  1091. //각종 코드 Help Open
  1092. //========================================================================================
  1093. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  1094. {
  1095. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  1096. model.refresh();
  1097. }
  1098. //========================================================================================
  1099. //코드 Validation Check
  1100. //========================================================================================
  1101. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  1102. {
  1103. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  1104. {
  1105. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  1106. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  1107. model.refresh();
  1108. if (pNextIndex != "") {
  1109. model.setFocus(pNextIndex);
  1110. }
  1111. }
  1112. }
  1113. //========================================================================================
  1114. //계정 코드 정보 조회
  1115. //========================================================================================
  1116. function fAcntInfoSelect() {
  1117. var acntcd = model.getValue("/root/main/unsl_one/acntcd");
  1118. var acntnm = model.getValue("/root/main/unsl_one/acntnm");
  1119. if (acntcd != "" && acntnm != "" && acntcd.getTrim() != "" && acntnm.getTrim() != "") {
  1120. model.setValue("/root/send/data2/instcd", model.getValue("/root/main/unsl_one/instcd"));
  1121. model.setValue("/root/send/data2/acntcd", acntcd);
  1122. model.setValue("/root/send/data2/drcrflag", model.getValue("/root/main/unsl_one/drcrflag"));
  1123. model.refresh();
  1124. submit("TRRAD00103");
  1125. }
  1126. //기재사항clear
  1127. fSetNoteClear();
  1128. //기재사항 setting
  1129. fSetNote();
  1130. }
  1131. //========================================================================================
  1132. //계정 코드 정보 조회1
  1133. //========================================================================================
  1134. function fAcntInfoSelect1() {
  1135. // var acntcd = model.getValue("/root/hidden/unsl_one/acntcd");
  1136. // var acntnm = model.getValue("/root/hidden/unsl_one/acntnm");
  1137. //
  1138. // alert(acntcd);
  1139. //
  1140. // if (acntcd != "" && acntnm != "" && acntcd.getTrim() != "" && acntnm.getTrim() != "") {
  1141. // model.setValue("/root/send/data2/instcd", model.getValue("/root/hidden/unsl_one/instcd"));
  1142. // model.setValue("/root/send/data2/acntcd", acntcd);
  1143. // model.setValue("/root/send/data2/drcrflag", model.getValue("/root/hidden/unsl_one/drcrflag"));
  1144. // model.refresh();
  1145. //
  1146. // submit("TRRAD00103");
  1147. // }
  1148. // //기재사항clear
  1149. // fSetNoteClear1();ipt_bugtmngtdeptnm
  1150. if (model.getValue("/root/hidden/acntcdinfo/bugtuseyn") == "Y")
  1151. {
  1152. if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "2" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1153. {
  1154. model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
  1155. fBugtCntrYN(false);
  1156. }
  1157. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "2" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
  1158. {
  1159. model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
  1160. fBugtCntrYN(true);
  1161. }
  1162. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "1" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1163. {
  1164. model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
  1165. fBugtCntrYN(true);
  1166. }
  1167. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "1" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
  1168. {
  1169. model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
  1170. fBugtCntrYN(false);
  1171. }
  1172. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1173. {
  1174. model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
  1175. fBugtCntrYN(false);
  1176. }
  1177. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
  1178. {
  1179. model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
  1180. fBugtCntrYN(false);
  1181. }
  1182. // if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") != "3" && model.getValue("/root/main/unsl_one/drcrflag") == model.getValue("/root/hidden/acntcdinfo/balflag"))
  1183. // {
  1184. //
  1185. // model.setValue("/root/main/unsl_one/bugtearncostflag", model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd"));
  1186. //
  1187. // }
  1188. // else if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == model.getValue("/root/hidden/acntcdinfo/balflag"))
  1189. // {
  1190. //
  1191. // model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
  1192. //
  1193. // }
  1194. // else if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") != model.getValue("/root/hidden/acntcdinfo/balflag"))
  1195. // {
  1196. //
  1197. // model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
  1198. //
  1199. // }
  1200. else
  1201. {
  1202. fBugtCntrYN(true);
  1203. return;
  1204. }
  1205. model.setValue("/root/main/unsl_one/bugtautoaprvyn", model.getValue("/root/hidden/acntcdinfo/bugtautoaprvyn"));
  1206. model.setValue("/root/main/unsl_one/bugtaprvyn", "N");
  1207. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  1208. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  1209. // model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));
  1210. // model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/slipdeptnm"));
  1211. //fBugtCntrYN(false);
  1212. model.refresh();
  1213. }
  1214. else
  1215. {
  1216. fBugtCntrYN(true);
  1217. }
  1218. }
  1219. function fBugtCntrYN(YN)
  1220. {
  1221. //btn_bugtmngtdeptcd.disabled = YN;
  1222. //ipt_bugtmngtdeptcd.disabled = YN;
  1223. //ipt_bugtmngtdeptnm.disabled = YN;
  1224. if(YN = "Y")
  1225. {
  1226. model.setValue(ipt_bugtmngtdeptcd.attribute("ref"), "");
  1227. model.setValue(ipt_bugtmngtdeptnm.attribute("ref"), "");
  1228. }
  1229. }
  1230. //========================================================================================
  1231. //기재사항 setting
  1232. //========================================================================================
  1233. function fSetNote() {
  1234. //기재사항setting
  1235. for (i=1; i<7; i++) {
  1236. var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
  1237. var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
  1238. var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
  1239. //alert(option);
  1240. model.setValue("/root/main/unsl_one/notefactnm"+i, title);
  1241. switch (kind) {
  1242. case "1": //코드
  1243. model.toggle("case_notecd"+i);
  1244. break;
  1245. case "2": //내역
  1246. model.toggle("case_notenm"+i);
  1247. //format지정
  1248. var cControl = document.controls("ipt_notenm"+i);
  1249. cControl.attribute("format") = model.getValue("/root/hidden/acntcdinfo/frmt"+i);
  1250. cControl.attribute("showmask") = "true";
  1251. break;
  1252. case "3": //콤보
  1253. model.toggle("case_notecombo"+i);
  1254. break;
  1255. default :
  1256. model.toggle("case_noteblank"+i);
  1257. break;
  1258. }
  1259. }
  1260. model.refresh();
  1261. }
  1262. //========================================================================================
  1263. //기재사항 clear
  1264. //========================================================================================
  1265. function fSetNoteClear() {
  1266. model.getValue("/root/hidden/acntcdinfo/notecd1") == "";
  1267. model.getValue("/root/hidden/acntcdinfo/notecd2") == "";
  1268. model.getValue("/root/hidden/acntcdinfo/notecd3") == "";
  1269. model.getValue("/root/hidden/acntcdinfo/notecd4") == "";
  1270. model.getValue("/root/hidden/acntcdinfo/notecd5") == "";
  1271. model.getValue("/root/hidden/acntcdinfo/notecd6") == "";
  1272. //항목 초기화
  1273. for (i=1; i<7; i++)
  1274. {
  1275. model.setValue("/root/main/unsl_one/notefactnm"+i,"");
  1276. model.setValue("/root/main/unsl_one/notefactcd"+i,"");
  1277. model.setValue("/root/main/unsl_one/notefactspec"+i,"");
  1278. model.toggle("case_noteblank"+i);
  1279. }
  1280. model.refresh();
  1281. var pre_custflag = model.getValue(cmb_custflag.attribute("ref"));
  1282. var custflag = model.getValue("/root/hidden/acntcdinfo/custflag");
  1283. //상대처 setting
  1284. if(pre_custflag != custflag || custflag == "")
  1285. {
  1286. var vFundcd = model.getValue("/root/hidden/acntcdinfo/fundscd");
  1287. var vCustcd = "";
  1288. var vCustnm = "";
  1289. var vTogglenm = "";
  1290. if(custflag == "9")
  1291. {
  1292. vCustcd = "-";
  1293. vTogglenm = "명관리";
  1294. }
  1295. else if(custflag == "")
  1296. {
  1297. custflag = "9";
  1298. vCustcd = "-";
  1299. vTogglenm = "명관리";
  1300. }
  1301. else
  1302. {
  1303. vCustcd = "";
  1304. vTogglenm = "코드관리";
  1305. }
  1306. vCustnm = "";
  1307. model.toggle(vTogglenm);
  1308. model.setValue("/root/main/unsl_one/custflag", custflag);
  1309. model.setValue("/root/main/unsl_one/custnm", vCustnm);
  1310. model.setValue("/root/main/unsl_one/custcd", vCustcd);
  1311. model.setValue("/root/main/unsl_one/fundscd", vFundcd);
  1312. }
  1313. model.refresh();
  1314. // cmb_custflag.dispatch("xforms-value-changed");
  1315. }
  1316. //========================================================================================
  1317. //기재사항 clear1
  1318. //========================================================================================
  1319. function fSetNoteClear1()
  1320. {
  1321. for (i=1; i<7; i++)
  1322. {
  1323. model.setValue("/root/hidden/unsl_one/notefactcd" + i, "");
  1324. model.setValue("/root/hidden/unsl_one/notefactspec" + i, "");
  1325. model.setValue("/root/hidden/unsl_one/notefactnm" + i, model.getValue("/root/hidden/acntcdinfo/notecdnm" + i));
  1326. }
  1327. model.refresh();
  1328. }
  1329. //========================================================================================
  1330. //조회 click
  1331. //========================================================================================
  1332. function fQueryClick()
  1333. {
  1334. var instcd = model.getValue("/root/main/unsl_one/instcd");
  1335. var unsldd = model.getValue("/root/hidden/condition/unsldd");
  1336. var unslno = model.getValue("/root/hidden/condition/unslno");
  1337. var slipdeptcd = model.getValue("/root/main/unsl_one/slipdeptcd");
  1338. var slipkind = model.getValue("/root/hidden/condition/slipkind");
  1339. var costcntrdeptcd = model.getValue("/root/main/unsl_one/costcntrdeptcd");
  1340. if (instcd.getTrim() != "" && unsldd.getTrim() != "" && unslno.getTrim() != "")
  1341. {
  1342. grp_apln.visible = false;
  1343. model.setValue("/root/send/data3/instcd", instcd);
  1344. model.setValue("/root/send/data3/unsldd", unsldd);
  1345. model.setValue("/root/send/data3/unslno", unslno);
  1346. model.setValue("/root/send/data3/slipdeptcd", slipdeptcd);
  1347. model.setValue("/root/send/data3/costcntrdeptcd", costcntrdeptcd);
  1348. if (getUserInfo("dutplcecd") == acntdept || getUserInfo("dutplcecd") == bugtdept)
  1349. {
  1350. model.setValue("/root/send/data3/slipdeptcd", "%");
  1351. }
  1352. else
  1353. {
  1354. model.setValue("/root/send/data3/slipdeptcd", slipdeptcd);
  1355. }
  1356. model.refresh();
  1357. submit("TRRAD00101");
  1358. fuserInfoSet();
  1359. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
  1360. var iRow = grd_unsl.findRow("N",1,grd_unsl.colRef("sanctyn"));
  1361. if (iRow > 0 ) {
  1362. btn_prtcancel.disabled = true;
  1363. } else {
  1364. if (getUserInfo("dutplcecd") == acntdept) {
  1365. btn_prtcancel.disabled = false;
  1366. }
  1367. }
  1368. if (model.getValue("/root/main/unsl[1]/instcd") != "") // 전표 데이터 있음
  1369. {
  1370. //alert("1");
  1371. for (i=1; i < grd_unsl.rows; i++)
  1372. {
  1373. if (model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") != "")
  1374. {
  1375. grd_unsl.rowstyle(i, "data", "color") = "#808080";
  1376. }
  1377. }
  1378. model.setValue("/root/main/unsl_one/slipdeptcd", model.getValue("/root/main/unsl[1]/slipdeptcd"));
  1379. model.setValue("/root/main/unsl_one/slipdeptnm", model.getValue("/root/main/unsl[1]/slipdeptnm"));
  1380. model.setValue("/root/main/unsl_one/costcntrdeptcd", model.getValue("/root/main/unsl[1]/costcntrdeptcd"));
  1381. model.setValue("/root/main/unsl_one/costcntrdeptnm", model.getValue("/root/main/unsl[1]/costcntrdeptnm"));
  1382. model.setValue("/root/hidden/condition/slipdeptcd", model.getValue("/root/main/unsl[1]/slipdeptcd"));
  1383. model.setValue("/root/hidden/condition/slipdeptnm", model.getValue("/root/main/unsl[1]/slipdeptnm"));
  1384. model.setValue("/root/hidden/maxslipseqno",model.getValue("/root/main/unsl["+ (grd_unsl.rows - 1) +"]/unslseqno"));
  1385. btn_copy.disabled = false;
  1386. btn_dayshift.disabled = false;
  1387. btn_availablebugt.disabled = false;
  1388. // cmb_slipflag.disabled = true;
  1389. fRowClearClick();
  1390. }
  1391. else // 전표 데이터 없음
  1392. {
  1393. //alert("0");
  1394. model.setValue("/root/hidden/maxslipseqno", "00000");
  1395. model.setValue("/root/hidden/condition/slipkind", slipkind);
  1396. model.setValue("/root/hidden/condition/slipflag", "1");
  1397. //model.setValue("/root/hidden/condition/defrayreqdd", "");
  1398. model.setValue("/root/hidden/condition/projectid", "");
  1399. model.setValue("/root/hidden/condition/projectnm", "");
  1400. model.setValue("/root/hidden/condition/slipcmt", "");
  1401. model.setValue("/root/hidden/condition/slipdeptcd", getUserInfo("dutplcecd"));
  1402. model.setValue("/root/hidden/condition/slipdeptnm", getUserInfo("dutplcenm"));
  1403. model.refresh();
  1404. fRowClearClick();
  1405. btn_copy.disabled = true;
  1406. btn_dayshift.disabled = true;
  1407. btn_availablebugt.disabled = true;
  1408. // cmb_slipflag.disabled = false;
  1409. ipt_defrayreqdd.disabled = false;
  1410. return;
  1411. }
  1412. var rowCnt = grd_unsl.rows - 1;
  1413. model.setValue("/root/hidden/maxslipseqno",model.getValue("/root/main/unsl["+ rowCnt +"]/unslseqno"));
  1414. model.setValue("/root/hidden/condition/slipkind", model.getValue("/root/main/unsl[" + rowCnt + "]/slipkind"));
  1415. model.setValue("/root/hidden/condition/slipflag", model.getValue("/root/main/unsl[" + rowCnt + "]/slipflag"));
  1416. model.setValue("/root/hidden/condition/acountingflag", model.getValue("/root/main/unsl[" + rowCnt + "]/acountingflag"));
  1417. model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl[" + rowCnt + "]/projectid"));
  1418. model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl[" + rowCnt + "]/projectnm"));
  1419. model.setValue("/root/hidden/condition/slipcmt", model.getValue("/root/main/unsl[" + rowCnt + "]/slipcmt"));
  1420. model.setValue("/root/hidden/condition/defrayreqdd", model.getValue("/root/main/unsl[" + rowCnt + "]/defrayreqdd"));
  1421. model.refresh();
  1422. if (model.getValue("/root/hidden/condition/slipkind") != "1")
  1423. {
  1424. ipt_defrayreqdd.disabled = false;
  1425. }
  1426. else
  1427. {
  1428. ipt_defrayreqdd.disabled = true;
  1429. }
  1430. fdrcrflagSet();
  1431. }
  1432. fSumExpantAmt();
  1433. model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl[" + 1 + "]/acntcd"));
  1434. //model.setValue("/root/main/unsl_one/cdbojo1", "");
  1435. submit("TRRAD01701");
  1436. }
  1437. //========================================================================================
  1438. //행입력 click
  1439. //========================================================================================
  1440. function fGridRowAddClick()
  1441. {
  1442. //not null check
  1443. if(fNotNullCheck() == false)
  1444. {
  1445. return;
  1446. }
  1447. //node copy
  1448. var seqno = model.getValue("/root/main/unsl_one/unslseqno");
  1449. var unslseqno = model.getValue("/root/main/unsl[unslseqno='"+ seqno +"']/unslseqno");
  1450. if (model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1451. {
  1452. model.setValue("/root/main/unsl_one/dramt", model.getValue("/root/main/unsl_one/amt"));
  1453. model.setValue("/root/main/unsl_one/cramt", 0);
  1454. }
  1455. else
  1456. {
  1457. model.setValue("/root/main/unsl_one/cramt", model.getValue("/root/main/unsl_one/amt"));
  1458. model.setValue("/root/main/unsl_one/dramt", 0);
  1459. }
  1460. //=======================================================
  1461. // 새로저장되는 전표는 그리드에 전표번호를 입력하지 않는다. 모든 row 가 전표번호가 없다면 새로은 전표번호가 만들어진다.
  1462. //=======================================================
  1463. var checkExistSlip = false;
  1464. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  1465. {
  1466. if(!(grd_unsl.rowStatus(i) == 1 || grd_unsl.rowStatus(i) == 3))
  1467. {
  1468. checkExistSlip = true;
  1469. }
  1470. }
  1471. if (checkExistSlip)
  1472. {
  1473. model.setValue("/root/main/unsl_one/unslno", model.getValue("/root/hidden/condition/unslno"));
  1474. }
  1475. if (unslseqno == "")
  1476. {
  1477. grd_unsl.addRow(false);
  1478. }
  1479. var cur_row = grd_unsl.row;
  1480. model.copyNode("/root/main/unsl["+cur_row+"]","/root/main/unsl_one");
  1481. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1482. if (parseInt(maxslipseqno,10) < parseInt(seqno,10)) {
  1483. model.setValue("/root/hidden/maxslipseqno", seqno);
  1484. }
  1485. //전표유형에 따라 상대계정 자동 setting
  1486. //fCustAcntAutoSet();
  1487. //합계 재계산
  1488. model.recalculate();
  1489. fSumExpantAmt();
  1490. fRowClearClick(); //행정리
  1491. }
  1492. //========================================================================================
  1493. //행수정 click
  1494. //========================================================================================
  1495. function fGridRowSetClick() {
  1496. var cur_row = grd_unsl.row;
  1497. var bfstr = getNodeListCSV(instance1.selectNodes("/root/main/unsl[" + cur_row + "]"));
  1498. var afstr = getNodeListCSV(instance1.selectNodes("/root/main/unsl_one"));
  1499. if (bfstr == afstr && (model.getValue(rdo_slipkind.attribute("ref")) == "2" || model.getValue(rdo_slipkind.attribute("ref")) == "3")) {
  1500. messageBox("변경된 데이터가","I004");
  1501. fRowClearClick(); //행정리
  1502. return;
  1503. }
  1504. //not null check
  1505. if(fNotNullCheck() == false) {
  1506. return;
  1507. }
  1508. //node copy
  1509. var seqno = model.getValue("/root/main/unsl_one/unslseqno");
  1510. var unslseqno = model.getValue("/root/main/unsl[unslseqno='"+ seqno +"']/unslseqno");
  1511. if (model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1512. {
  1513. model.setValue("/root/main/unsl_one/dramt", model.getValue("/root/main/unsl_one/amt"));
  1514. model.setValue("/root/main/unsl_one/cramt", 0);
  1515. }
  1516. else
  1517. {
  1518. model.setValue("/root/main/unsl_one/cramt", model.getValue("/root/main/unsl_one/amt"));
  1519. model.setValue("/root/main/unsl_one/dramt", 0);
  1520. }
  1521. model.copyNode("/root/main/unsl[" + cur_row + "]","/root/main/unsl_one");
  1522. grd_unsl.addStatus(cur_row, "update");
  1523. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1524. if (parseInt(maxslipseqno, 10) < parseInt(seqno, 10))
  1525. {
  1526. model.setValue("/root/hidden/maxslipseqno", seqno);
  1527. }
  1528. var autjournflag = model.getValue("/root/main/unsl["+cur_row+"]/autjournflag");
  1529. // 전표유형에 따라 상대계정 자동 setting
  1530. // 자동분개 전표는 상대계정이 반대로 들어올 수 있고 N:1 로 설정될 수 있으므로 상대 연번의 전표를 수정할 수 없다.
  1531. if (autjournflag != "Y" && model.getValue("/root/main/unsl["+cur_row+"]/rlaacntseqno") == "")
  1532. {
  1533. //fCustAcntAutoSet();
  1534. }
  1535. //합계 재계산
  1536. model.recalculate();
  1537. fSumExpantAmt();
  1538. fRowClearClick(); //행정리
  1539. }
  1540. // ========================================================================================
  1541. // 전표 유형에 따라 상대계정 자동 setting
  1542. // 입, 출금 전표 일때만 setting하고 상대 계정은
  1543. // 출금전표는 기업자유예금, 입금전표는 현금(?) --기초정보로 수정될 수 있도록
  1544. //========================================================================================
  1545. function fCustAcntAutoSet()
  1546. {
  1547. var slipkind = model.getValue("/root/hidden/condition/slipkind");
  1548. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  1549. var amt = parseInt(model.getValue("/root/main/unsl_one/amt"),10);
  1550. var rest_amt = 0;
  1551. var drcrcolnm, drcracnt, drcrflag;
  1552. var row=0;
  1553. if (slipkind == "2")
  1554. { //입금
  1555. drcrcolnm = "cramt";
  1556. drcracnt = "dramt";
  1557. drcrflag = "D";
  1558. }
  1559. else if (slipkind == "3")
  1560. { //출금
  1561. drcrcolnm = "dramt";
  1562. drcracnt = "cramt";
  1563. drcrflag = "C";
  1564. }
  1565. else // 대체전표는 상대변 자동 생성하지 않음
  1566. {
  1567. return;
  1568. }
  1569. if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax"),10) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
  1570. {
  1571. amt = amt - parseInt(model.getValue("/root/hidden/orchreturn/incmtax"),10) - parseInt(model.getValue("/root/hidden/orchreturn/resdntax"),10);
  1572. }
  1573. // else if(seizurecd != "" && cmb_custflag.value == "1" && model.getValue("/root/hidden/seizureyn") == 'Y') // 압류 거래처 예외
  1574. // {
  1575. // rest_amt = amt % 2;
  1576. // amt = parseInt(amt / 2);
  1577. // rest_amt = amt + rest_amt;
  1578. // } -- 임시로 막음 (계산식 정립 필요 20090216)
  1579. row = grd_unsl.findRow(rlaacntseqno, 1, grd_unsl.colRef("rlaacntseqno"));
  1580. if (row > 0)
  1581. {
  1582. model.setValue("/root/main/unsl[" + row + "]/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
  1583. model.setValue("/root/main/unsl[" + row + "]/" + drcracnt, amt);
  1584. model.setValue("/root/main/unsl[" + row + "]/amt", amt);
  1585. grd_unsl.addStatus(row, "update");
  1586. model.copyNode("/root/hidden/unsl_one", "/root/main/unsl[" + row + "]");
  1587. }
  1588. else
  1589. {
  1590. model.copyNode("/root/hidden/unsl_one","/root/main/unsl_one");
  1591. fIncreSeqno("/root/hidden/unsl_one/unslseqno");
  1592. model.setValue("/root/hidden/unsl_one/drcrflag", drcrflag);
  1593. model.setValue("/root/hidden/unsl_one/bugtcd", "");
  1594. model.setValue("/root/hidden/unsl_one/profflag", "6");
  1595. model.setValue("/root/hidden/unsl_one/profdata", "");
  1596. model.setValue("/root/hidden/unsl_one/" + drcrcolnm, 0);
  1597. model.setValue("/root/hidden/unsl_one/" + drcracnt, amt);
  1598. model.setValue("/root/hidden/unsl_one/amt", amt);
  1599. //model.setValue("/root/hidden/unsl_one/fundscd", model.getValue("/root/main/unsl_one/fundscd"));
  1600. model.setValue("/root/main/unsl["+grd_unsl.row+"]/fundscd", "");
  1601. model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
  1602. model.setValue("/root/hidden/unsl_one/notefactnm2", "");
  1603. model.setValue("/root/hidden/unsl_one/notefactcd2", "");
  1604. model.setValue("/root/hidden/unsl_one/notefactspec2", "");
  1605. model.setValue("/root/hidden/unsl_one/notefactnm3", "");
  1606. model.setValue("/root/hidden/unsl_one/notefactcd3", "");
  1607. model.setValue("/root/hidden/unsl_one/notefactspec3", "");
  1608. model.setValue("/root/hidden/unsl_one/notefactnm4", "");
  1609. model.setValue("/root/hidden/unsl_one/notefactcd4", "");
  1610. model.setValue("/root/hidden/unsl_one/notefactspec4", "");
  1611. model.setValue("/root/hidden/unsl_one/notefactnm5", "");
  1612. model.setValue("/root/hidden/unsl_one/notefactcd5", "");
  1613. model.setValue("/root/hidden/unsl_one/notefactspec5", "");
  1614. model.setValue("/root/hidden/unsl_one/notefactnm6", "");
  1615. model.setValue("/root/hidden/unsl_one/notefactcd6", "");
  1616. model.setValue("/root/hidden/unsl_one/notefactspec6", "");
  1617. model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
  1618. model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
  1619. model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
  1620. model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
  1621. model.setValue("/root/hidden/unsl_one/bugtamt", "");
  1622. model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
  1623. model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
  1624. model.setValue("/root/hidden/unsl_one/seqno", "");
  1625. model.setValue("/root/hidden/unsl_one/servseqno", "");
  1626. if(!(getUserInfo("dutplceinstcd") == '103' || getUserInfo("dutplceinstcd") == '001') && rdo_slipkind.value == "2") // 병원은 입금일 경우 상대변에 현금 Setting
  1627. {
  1628. model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
  1629. model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
  1630. model.setValue("/root/hidden/unsl_one/custflag", "9");
  1631. model.setValue("/root/hidden/unsl_one/custcd", "");
  1632. model.setValue("/root/hidden/unsl_one/custnm", "");
  1633. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  1634. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  1635. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  1636. }
  1637. else
  1638. {
  1639. /* var vAactcd = sExpsacnt_Aactcd;
  1640. var vAactno = sExpsacnt_Aactno;
  1641. if(model.getValue("/root/hidden/condition/slipkind") == "3")
  1642. {
  1643. var bExist = false;
  1644. for(var i=1; i<grd_unsl.rows; i++)
  1645. {
  1646. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  1647. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  1648. if(sDrCrFlag == "C")
  1649. {
  1650. for(var j=0; j<arrTransAcntCd.length; j++)
  1651. {
  1652. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  1653. }
  1654. }
  1655. if(bExist)
  1656. {
  1657. if(grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")) != sExpsacnt_Aactcd)
  1658. {
  1659. vAactcd = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1"));
  1660. vAactno = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactspec1"));
  1661. messageBox("하나의 전표에는 하나의 출금계좌만 설정할수 있습니다.\n출금계좌를 [" + vAactcd + "]" + vAactno + "(으)로 설정합니다." ,"I000");
  1662. break;
  1663. }
  1664. else
  1665. {
  1666. bExist = false;
  1667. }
  1668. }
  1669. }
  1670. }
  1671. model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
  1672. model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
  1673. model.setValue("/root/hidden/unsl_one/custflag", "1");
  1674. model.setValue("/root/hidden/unsl_one/custcd", sExpsacnt_Entrregno);
  1675. model.setValue("/root/hidden/unsl_one/custnm", sExpsacnt_Custnm);
  1676. model.setValue("/root/hidden/unsl_one/notefactnm1", "계좌번호");
  1677. model.setValue("/root/hidden/unsl_one/notefactcd1", vAactcd);
  1678. model.setValue("/root/hidden/unsl_one/notefactspec1", vAactno);*/
  1679. model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
  1680. model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
  1681. model.setValue("/root/hidden/unsl_one/custflag", "9");
  1682. model.setValue("/root/hidden/unsl_one/custcd", "");
  1683. model.setValue("/root/hidden/unsl_one/custnm", "");
  1684. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  1685. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  1686. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  1687. }
  1688. grd_unsl.addRow(false);
  1689. var cur_row = grd_unsl.row;
  1690. model.copyNode("/root/main/unsl[" + cur_row + "]", "/root/hidden/unsl_one");
  1691. grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
  1692. var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
  1693. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1694. if (parseInt(maxslipseqno,10) < parseInt(seqno, 10))
  1695. {
  1696. model.setValue("/root/hidden/maxslipseqno", seqno);
  1697. }
  1698. }
  1699. var profflag = model.getValue("/root/main/unsl_one/profflag");
  1700. var j = 0;
  1701. if (profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
  1702. {
  1703. for (i=1; i < grd_unsl.rows; i++)
  1704. {
  1705. if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == incmtax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
  1706. {
  1707. j = i;
  1708. }
  1709. }
  1710. if (j > 0)
  1711. {
  1712. if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax")) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
  1713. {
  1714. model.setValue("/root/main/unsl["+j+"]/" + drcracnt, model.getValue("/root/hidden/orchreturn/incmtax"));
  1715. model.setValue("/root/main/unsl["+j+"]/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
  1716. grd_unsl.addStatus(j, "update");
  1717. }
  1718. else
  1719. {
  1720. grd_unsl.deleteRow(j, false);
  1721. }
  1722. }
  1723. else
  1724. {
  1725. if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax")) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
  1726. {
  1727. fIncreSeqno("/root/hidden/unsl_one/unslseqno");
  1728. model.setValue("/root/hidden/unsl_one/" + drcracnt, model.getValue("/root/hidden/orchreturn/incmtax"));
  1729. model.setValue("/root/hidden/unsl_one/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
  1730. model.setValue("/root/hidden/unsl_one/fundscd", "");
  1731. model.setValue("/root/hidden/unsl_one/acntcd", incmtax);
  1732. model.setValue("/root/hidden/unsl_one/acntnm", incmtaxnm);
  1733. model.setValue("/root/hidden/unsl_one/custflag", model.getValue("/root/main/unsl_one/custflag"));
  1734. model.setValue("/root/hidden/unsl_one/custcd", model.getValue("/root/main/unsl_one/custcd"));
  1735. model.setValue("/root/hidden/unsl_one/custnm", model.getValue("/root/main/unsl_one/custnm"));
  1736. model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
  1737. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  1738. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  1739. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  1740. model.setValue("/root/hidden/unsl_one/notefactnm2", "");
  1741. model.setValue("/root/hidden/unsl_one/notefactcd2", "");
  1742. model.setValue("/root/hidden/unsl_one/notefactspec2", "");
  1743. model.setValue("/root/hidden/unsl_one/notefactnm3", "");
  1744. model.setValue("/root/hidden/unsl_one/notefactcd3", "");
  1745. model.setValue("/root/hidden/unsl_one/notefactspec3", "");
  1746. model.setValue("/root/hidden/unsl_one/notefactnm4", "");
  1747. model.setValue("/root/hidden/unsl_one/notefactcd4", "");
  1748. model.setValue("/root/hidden/unsl_one/notefactspec4", "");
  1749. model.setValue("/root/hidden/unsl_one/notefactnm5", "");
  1750. model.setValue("/root/hidden/unsl_one/notefactcd5", "");
  1751. model.setValue("/root/hidden/unsl_one/notefactspec5", "");
  1752. model.setValue("/root/hidden/unsl_one/notefactnm6", "");
  1753. model.setValue("/root/hidden/unsl_one/notefactcd6", "");
  1754. model.setValue("/root/hidden/unsl_one/notefactspec6", "");
  1755. model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
  1756. model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
  1757. model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
  1758. model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
  1759. model.setValue("/root/hidden/unsl_one/bugtamt", "");
  1760. model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
  1761. model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
  1762. model.setValue("/root/hidden/unsl_one/seqno", "");
  1763. model.setValue("/root/hidden/unsl_one/servseqno", "");
  1764. grd_unsl.addRow(false);
  1765. var cur_row = grd_unsl.row;
  1766. model.copyNode("/root/main/unsl[" + cur_row + "]","/root/hidden/unsl_one");
  1767. grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
  1768. var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
  1769. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1770. if (parseInt(maxslipseqno,10) < parseInt(seqno, 10))
  1771. {
  1772. model.setValue("/root/hidden/maxslipseqno", seqno);
  1773. }
  1774. }
  1775. }
  1776. //-----------------------------------------------------------------------------------------------------------
  1777. j=0;
  1778. for (i=1; i < grd_unsl.rows; i++)
  1779. {
  1780. if (model.getValue("/root/main/unsl["+i+"]/acntcd") == resdntax && model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") == rlaacntseqno)
  1781. {
  1782. j = i;
  1783. }
  1784. }
  1785. if (j > 0)
  1786. {
  1787. if (parseInt(model.getValue("/root/hidden/orchreturn/resdntax")) != 0 && model.getValue("/root/hidden/orchreturn/resdntax") != "")
  1788. {
  1789. model.setValue("/root/main/unsl["+j+"]/" + drcracnt, model.getValue("/root/hidden/orchreturn/resdntax"));
  1790. model.setValue("/root/main/unsl["+j+"]/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
  1791. grd_unsl.addStatus(j, "update");
  1792. }
  1793. else
  1794. {
  1795. grd_unsl.deleteRow(j, false);
  1796. }
  1797. }
  1798. else
  1799. {
  1800. if (parseInt(model.getValue("/root/hidden/orchreturn/resdntax")) != 0 && model.getValue("/root/hidden/orchreturn/resdntax") != "")
  1801. {
  1802. fIncreSeqno("/root/hidden/unsl_one/unslseqno");
  1803. model.setValue("/root/hidden/unsl_one/" + drcracnt, model.getValue("/root/hidden/orchreturn/resdntax"));
  1804. model.setValue("/root/hidden/unsl_one/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
  1805. model.setValue("/root/hidden/unsl_one/fundscd", "");
  1806. model.setValue("/root/hidden/unsl_one/acntcd", resdntax);
  1807. model.setValue("/root/hidden/unsl_one/acntnm", resdntaxnm);
  1808. model.setValue("/root/hidden/unsl_one/custflag", model.getValue("/root/main/unsl_one/custflag"));
  1809. model.setValue("/root/hidden/unsl_one/custcd", model.getValue("/root/main/unsl_one/custcd"));
  1810. model.setValue("/root/hidden/unsl_one/custnm", model.getValue("/root/main/unsl_one/custnm"));
  1811. model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
  1812. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  1813. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  1814. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  1815. model.setValue("/root/hidden/unsl_one/notefactnm2", "");
  1816. model.setValue("/root/hidden/unsl_one/notefactcd2", "");
  1817. model.setValue("/root/hidden/unsl_one/notefactspec2", "");
  1818. model.setValue("/root/hidden/unsl_one/notefactnm3", "");
  1819. model.setValue("/root/hidden/unsl_one/notefactcd3", "");
  1820. model.setValue("/root/hidden/unsl_one/notefactspec3", "");
  1821. model.setValue("/root/hidden/unsl_one/notefactnm4", "");
  1822. model.setValue("/root/hidden/unsl_one/notefactcd4", "");
  1823. model.setValue("/root/hidden/unsl_one/notefactspec4", "");
  1824. model.setValue("/root/hidden/unsl_one/notefactnm5", "");
  1825. model.setValue("/root/hidden/unsl_one/notefactcd5", "");
  1826. model.setValue("/root/hidden/unsl_one/notefactspec5", "");
  1827. model.setValue("/root/hidden/unsl_one/notefactnm6", "");
  1828. model.setValue("/root/hidden/unsl_one/notefactcd6", "");
  1829. model.setValue("/root/hidden/unsl_one/notefactspec6", "");
  1830. model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
  1831. model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
  1832. model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
  1833. model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
  1834. model.setValue("/root/hidden/unsl_one/bugtamt", "");
  1835. model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
  1836. model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
  1837. model.setValue("/root/hidden/unsl_one/seqno", "");
  1838. grd_unsl.addRow(false);
  1839. var cur_row = grd_unsl.row;
  1840. model.copyNode("/root/main/unsl["+cur_row+"]","/root/hidden/unsl_one");
  1841. grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
  1842. var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
  1843. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1844. if (parseInt(maxslipseqno,10) < parseInt(seqno, 10)) {
  1845. model.setValue("/root/hidden/maxslipseqno", seqno);
  1846. }
  1847. }
  1848. }
  1849. }
  1850. model.resetInstanceNode("/root/hidden/unsl_one");
  1851. model.resetInstanceNode("/root/hidden/orchreturn");
  1852. }
  1853. //========================================================================================
  1854. //not null check
  1855. //========================================================================================
  1856. function fNotNullCheck() {
  1857. var unsldd = model.getValue("/root/hidden/condition/unsldd");
  1858. if(model.getValue(cmb_slipflag.attribute("ref")).length== 0)
  1859. {
  1860. messageBox("전표구분은" ,"I003");
  1861. model.setFocus("cmb_slipflag");
  1862. return false;
  1863. }
  1864. if (unsldd == "") {
  1865. messageBox("전표일자는" ,"I003");
  1866. model.setFocus("ipt_unsldd");
  1867. return false;
  1868. } else {
  1869. model.setValue("/root/main/unsl_one/unsldd", unsldd);
  1870. model.setValue("/root/main/unsl_one/slipkind", model.getValue("/root/hidden/condition/slipkind"));
  1871. model.setValue("/root/main/unsl_one/slipflag", model.getValue("/root/hidden/condition/slipflag"));
  1872. model.setValue("/root/main/unsl_one/acountingflag", model.getValue("/root/hidden/condition/acountingflag"));
  1873. model.setValue("/root/main/unsl_one/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  1874. model.setValue("/root/main/unsl_one/slipdeptnm", model.getValue("/root/hidden/condition/slipdeptnm"));
  1875. /*if(getUserInfo("dutplceinstcd") != "103")
  1876. {
  1877. model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/hidden/condition/projectid"));
  1878. model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/hidden/condition/projectnm"));
  1879. }
  1880. */
  1881. model.setValue("/root/main/unsl_one/slipcmt", model.getValue("/root/hidden/condition/slipcmt"));
  1882. setDefrayreqdd();
  1883. }
  1884. /*
  1885. if(model.getValue(ipt_slipcmt.attribute("ref")).length== 0)
  1886. {
  1887. messageBox("전표적요는" ,"I003");
  1888. model.setFocus("ipt_slipcmt");
  1889. return false;
  1890. }
  1891. */
  1892. if(model.getValue(ipt_defrayreqdd.attribute("ref")).length== 0)
  1893. {
  1894. if(model.getValue("/root/hidden/condition/slipkind") == "3")
  1895. {
  1896. messageBox("거래발생일은" ,"I003");
  1897. model.setFocus("ipt_defrayreqdd");
  1898. return false;
  1899. }
  1900. else if(model.getValue("/root/hidden/condition/slipkind") == "2")
  1901. {
  1902. model.setValue(ipt_defrayreqdd.attribute("ref"), model.getValue(ipt_unsldd.attribute("ref")));
  1903. ipt_defrayreqdd.refresh();
  1904. }
  1905. }
  1906. if(model.getValue(ipt_costcntrdeptcd.attribute("ref")).length== 0 )
  1907. {
  1908. messageBox("사용부서는" ,"I003");
  1909. model.setFocus("ipt_costcntrdeptnm");
  1910. return false;
  1911. }
  1912. /*
  1913. if(model.getValue(ipt_acntcd.attribute("ref")).length== 0 )
  1914. {
  1915. messageBox("계정코드는" ,"I003");
  1916. model.setFocus("ipt_acntnm");
  1917. return false;
  1918. }
  1919. if(model.getValue(ipt_custcd.attribute("ref")).length== 0 )
  1920. {
  1921. messageBox("상대처는" ,"I003");
  1922. model.setFocus("ipt_custcd");
  1923. return false;
  1924. }
  1925. */
  1926. /*
  1927. if(model.getValue("/root/main/unsl_one/profflag").length== 0 )
  1928. {
  1929. messageBox("증빙구분은" ,"I003");
  1930. model.setFocus("rdo_profflag1");
  1931. return false;
  1932. }
  1933. */
  1934. /*
  1935. if(model.getValue(ipt_amt.attribute("ref")).length== 0 || parseInt(model.getValue(ipt_amt.attribute("ref")),10) == 0)
  1936. {
  1937. messageBox("금액을 입력하세요." ,"I000");
  1938. model.setFocus("ipt_amt");
  1939. return false;
  1940. }
  1941. if(model.getValue(ipt_etcnotefact.attribute("ref")).length== 0 )
  1942. {
  1943. messageBox("적요는" ,"I003");
  1944. model.setFocus("ipt_etcnotefact");
  1945. return false;
  1946. }
  1947. */
  1948. }
  1949. //========================================================================================
  1950. // 입출금예정일 기본값 Setting [빈센트]
  1951. //========================================================================================
  1952. function setDefrayreqdd()
  1953. {
  1954. if(model.getValue("/root/hidden/condition/defrayreqdd") == "" && getUserInfo("dutplceinstcd") == "017") // 빈센트는 입출금 예정일을 입력하지 않았을 때 기본값으로 5일 후를 입출금예정일로 setting 한다. [ 최형진 20091030 ]
  1955. {
  1956. var vCurrentMM = parseInt(ipt_unsldd.value.substr(4, 2), 10);
  1957. var vCurrentDD = parseInt(ipt_unsldd.value.substr(6, 2), 10);
  1958. var vMaxDD = parseInt(fDayCountForMonth(ipt_unsldd.value.substr(0, 4), ipt_unsldd.value.substr(4, 2)), 10);
  1959. var vRemainDD = vMaxDD - vCurrentDD;
  1960. var vDefrayreqdd = vCurrentDD + 5;
  1961. var vNextMonthDD = 5 - vRemainDD;
  1962. if((vMaxDD - vDefrayreqdd) >= 0)
  1963. {
  1964. model.setValue(ipt_defrayreqdd.attribute("ref"), ipt_unsldd.value.substr(0, 6).toString() + vDefrayreqdd.toString().getLeftPad(2,"0"));
  1965. }
  1966. else
  1967. {
  1968. if(vCurrentMM == 12)
  1969. {
  1970. model.setValue(ipt_defrayreqdd.attribute("ref"), (parseInt(ipt_unsldd.value.substr(0, 4), 10) + 1).toString() + "01" + vNextMonthDD.toString().getLeftPad(2,"0"));
  1971. }
  1972. else
  1973. {
  1974. model.setValue(ipt_defrayreqdd.attribute("ref"), (parseInt(ipt_unsldd.value.substr(0, 6), 10) + 1).toString() + vNextMonthDD.toString().getLeftPad(2,"0"));
  1975. }
  1976. }
  1977. }
  1978. else
  1979. {
  1980. model.setValue("/root/main/unsl_one/defrayreqdd", model.getValue("/root/hidden/condition/defrayreqdd"));
  1981. }
  1982. model.refresh();
  1983. }
  1984. function fDayCountForMonth(year, month)
  1985. {
  1986. var normal = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
  1987. var leap = new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
  1988. if (isLeapYear(year)) {
  1989. return leap[month - 1];
  1990. } else {
  1991. return normal[month - 1];
  1992. }
  1993. }
  1994. //========================================================================================
  1995. //행삭제 click
  1996. //========================================================================================
  1997. function fGridRowDelClick() {
  1998. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  1999. grd_unsl.deleteRow(grd_unsl.row, true);
  2000. var i;
  2001. do {
  2002. i = grd_unsl.findRow(rlaacntseqno, 1, grd_unsl.colRef("rlaacntseqno"));
  2003. if (i > 0) {
  2004. grd_unsl.deleteRow(i, true);
  2005. }
  2006. } while (i > 0)
  2007. }
  2008. //========================================================================================
  2009. // 범위삭제시 행삭제 버튼이벤트 2011.08.10 cyw
  2010. //========================================================================================
  2011. function fMultiGridRowDelClick() {
  2012. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  2013. for( var a = 0 ; a < grd_unsl.selectedRows ; a++ ){
  2014. // grd_unsl.deleteRow(grd_unsl.selectedRow(a), false);
  2015. grd_unsl.rowStatus( grd_unsl.selectedRow(a) ) = 4;
  2016. }
  2017. var i;
  2018. do {
  2019. i = grd_unsl.findRow(rlaacntseqno, 1, grd_unsl.colRef("rlaacntseqno"));
  2020. if (i > 0) {
  2021. grd_unsl.deleteRow(i, true);
  2022. }
  2023. } while (i > 0)
  2024. }
  2025. //========================================================================================
  2026. //행정리 click
  2027. //========================================================================================
  2028. function fRowClearClick() {
  2029. var instcd = model.getValue("/root/main/unsl_one/instcd");
  2030. var deptcd = model.getValue("/root/main/unsl_one/costcntrdeptcd");
  2031. var deptnm = model.getValue("/root/main/unsl_one/costcntrdeptnm");
  2032. var slipdeptcd = model.getValue("/root/main/unsl_one/slipdeptcd");
  2033. var slipdeptnm = model.getValue("/root/main/unsl_one/slipdeptnm");
  2034. var slipkind = model.getValue("/root/hidden/condition/slipkind");
  2035. model.removenode("/root/main/unsl_one");
  2036. model.makeNode("/root/main/unsl_one");
  2037. model.copyNode("/root/main/unsl_one","/root/hidden/unsl_one");
  2038. if(instcd.length > 0) {
  2039. model.setValue(cmb_instcd.attribute("ref"), instcd);
  2040. } else {
  2041. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  2042. }
  2043. model.setValue("/root/main/unsl_one/costcntrdeptcd",deptcd);
  2044. model.setValue("/root/main/unsl_one/costcntrdeptnm",deptnm);
  2045. model.setValue("/root/main/unsl_one/costbelongdeptcd",deptcd);
  2046. model.setValue("/root/main/unsl_one/costbelongdeptnm",deptnm);
  2047. if (slipkind == "1" || slipkind == "4") {
  2048. model.setValue("/root/main/unsl_one/drcrflag","D");
  2049. } else if (slipkind == "2") {
  2050. model.setValue("/root/main/unsl_one/drcrflag","C");
  2051. } else if (slipkind == "3") {
  2052. model.setValue("/root/main/unsl_one/drcrflag","D");
  2053. }
  2054. model.setValue("/root/main/unsl_one/slipdeptcd",slipdeptcd);
  2055. model.setValue("/root/main/unsl_one/slipdeptnm",slipdeptnm);
  2056. model.setValue("/root/main/unsl_one/unslwrit",getUserId());
  2057. model.setValue("/root/main/unsl_one/usernm",getUserName());
  2058. fIncreSeqno("/root/main/unsl_one/unslseqno");
  2059. model.setValue("/root/main/unsl_one/profflag","");
  2060. model.resetInstanceNode("/root/hidden/acntcdinfo");
  2061. model.resetInstanceNode("/root/hidden/unsl_one"); // 20081021 최형진
  2062. model.resetInstanceNode("/root/hidden/orchreturn"); //
  2063. model.refresh();
  2064. fSetNoteClear();
  2065. //fCheckServAcnt();
  2066. btn_grdadd.disabled = false;
  2067. btn_grdset.disabled = true;
  2068. btn_grddel.disabled = false;
  2069. btn_grdcopy.disabled = true;
  2070. /*
  2071. ipt_acntcd.visible = true;
  2072. ipt_acntnm.visible = true;
  2073. btn_acntcd.visible = true;
  2074. cmb_acntcd.visible = false;
  2075. btn_grdclear.visible = false;
  2076. */
  2077. //model.setFocus("ipt_acntnm");
  2078. }
  2079. //========================================================================================
  2080. //행번 증가
  2081. //========================================================================================
  2082. function fIncreSeqno(pRef) {
  2083. var slipseqno = model.getValue("/root/hidden/maxslipseqno");
  2084. var seqno = parseInt(slipseqno, 10);
  2085. seqno++;
  2086. model.setValue(pRef, seqno.toString().getLeftPad(5,"0"));
  2087. }
  2088. //========================================================================================
  2089. //저장 click
  2090. //========================================================================================
  2091. function fSaveClick(rowDel)
  2092. {
  2093. var updtdata = getGridUpdateData(grd_unsl);
  2094. if (updtdata == "")
  2095. {
  2096. messageBox("변경된 내역이", "I004");
  2097. return;
  2098. }
  2099. //if(rdo_slipkind.value != "1" && !famtCheck()) // 차대 금액 확인 [20091029 - 지출대체전표도 이체계좌를 입력해야한다.]
  2100. if(!famtCheck()) // 차대 금액 확인 [20091029 - 지출대체전표도 이체계좌를 입력해야한다.]
  2101. {
  2102. return;
  2103. }
  2104. model.setValue("/root/send/unsl",grd_unsl.getUpdateData());
  2105. if (submit("TXRAD08101"))
  2106. {
  2107. grp_apln.visible = false;
  2108. btn_copy.disabled = false;
  2109. btn_dayshift.disabled = false;
  2110. btn_availablebugt.disabled = false;
  2111. model.setValue("/root/send/unsl","");
  2112. if (model.getValue("/root/hidden/condition/unslno") != model.getValue("/root/main/unsl[1]/unslno"))
  2113. {
  2114. model.setValue("/root/hidden/condition/unslno", model.getValue("/root/main/unsl[1]/unslno"));
  2115. model.refresh();
  2116. }
  2117. model.recalculate();
  2118. fSumExpantAmt();
  2119. var bExist = false;
  2120. for(var i=1; i<grd_unsl.rows; i++)
  2121. {
  2122. if(bExist) break;
  2123. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  2124. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  2125. if(sDrCrFlag == "C")
  2126. {
  2127. for(var j=0; j<arrTransAcntCd.length; j++)
  2128. {
  2129. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  2130. }
  2131. }
  2132. }
  2133. if(rowDel != 'Y')
  2134. {
  2135. //model.setValue("/root/temp2/tranflag", "Y");
  2136. submit("TXRAD00110");
  2137. messageBox("전표가 저장", "I002");
  2138. /* if (model.getValue("/root/hidden/condition/slipkind") == "3" || bExist) // 차변에 예금성 계정이 있어야 이체게좌를 등록한다.
  2139. {
  2140. if (messageBox("이체계좌를 등록하시겠습니까?", "Q000") == "6")
  2141. {
  2142. btn_setacnt.dispatch("DOMActivate");
  2143. }
  2144. }*/
  2145. }
  2146. }
  2147. else
  2148. {
  2149. submit("TRRAD00101");
  2150. }
  2151. model.refresh();
  2152. }
  2153. //========================================================================================
  2154. //삭제 click
  2155. //========================================================================================
  2156. function fDeleteClick()
  2157. {
  2158. if (messageBox("전표를", "Q001") == "6")
  2159. {
  2160. var rowCnt = grd_unsl.rows;
  2161. for (i=1; i<rowCnt; i++)
  2162. {
  2163. grd_unsl.deleteRow(1, false);
  2164. }
  2165. model.refresh();
  2166. model.setValue("/root/send/unsl",grd_unsl.getUpdateData());
  2167. if (submit("TXRAD08101"))
  2168. {
  2169. grd_unsl.clearStatus();
  2170. model.setValue("/root/send/unsl","");
  2171. fClearClick();
  2172. }
  2173. }
  2174. }
  2175. //========================================================================================
  2176. //초기화 click
  2177. //========================================================================================
  2178. function fClearClick()
  2179. {
  2180. var sToday = getCurrentDate().toString();
  2181. btn_grdadd.disabled = false;
  2182. btn_grdset.disabled = true;
  2183. btn_grddel.disabled = false;
  2184. btn_grdcopy.disabled = true;
  2185. btn_copy.disabled = true;
  2186. btn_dayshift.disabled = true;
  2187. btn_availablebugt.disabled = true;
  2188. btn_prtcancel.disabled = true;
  2189. /*
  2190. ipt_acntcd.visible = true;
  2191. ipt_acntnm.visible = true;
  2192. btn_acntcd.visible = true;
  2193. cmb_acntcd.visible = false;
  2194. btn_grdclear.visible = false;
  2195. */
  2196. cmb_slipflag.disabled = false;
  2197. model.setValue(cmb_slipflag.attribute("ref"), "1");
  2198. //ipt_slipcmt.attribute("editable") = true;
  2199. ipt_defrayreqdd.attribute("editable") = true;
  2200. ipt_defrayreqdd.disabled = false;
  2201. ipt_projectid.attribute("editable") = true;
  2202. ipt_projectnm.attribute("editable") = true;
  2203. model.removeNodeset("/root/main/unsl");
  2204. model.removenode("/root/main/unsl_one");
  2205. model.makeNode("/root/main/unsl_one");
  2206. model.copyNode("/root/main/unsl_one","/root/hidden/unsl_one");
  2207. model.removenode("/root/hidden/condition/projectid");
  2208. model.makeNode("/root/hidden/condition/projectid");
  2209. model.removenode("/root/hidden/condition/projectnm");
  2210. model.makeNode("/root/hidden/condition/projectnm");
  2211. if (model.getValue("/root/hidden/condition/unsldd") == "")
  2212. {
  2213. model.setValue("/root/hidden/condition/unsldd", sToday);
  2214. }
  2215. var instcd = getUserInfo("dutplceinstcd");
  2216. var deptcd = getUserInfo("dutplcecd");
  2217. var deptnm = getUserInfo("dutplcenm");
  2218. if (instcd.length > 0)
  2219. {
  2220. model.setValue("/root/main/unsl_one/instcd", instcd);
  2221. }
  2222. else
  2223. {
  2224. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  2225. }
  2226. model.setValue("/root/main/unsl_one/costcntrdeptcd", deptcd);
  2227. model.setValue("/root/main/unsl_one/costcntrdeptnm", deptnm);
  2228. model.setValue("/root/main/unsl_one/costbelongdeptcd", deptcd);
  2229. model.setValue("/root/main/unsl_one/costbelongdeptnm", deptnm);
  2230. model.setValue("/root/hidden/condition/slipdeptcd", deptcd);
  2231. model.setValue("/root/hidden/condition/slipdeptnm", deptnm);
  2232. model.setValue("/root/main/unsl_one/unslwrit", getUserId());
  2233. model.setValue("/root/main/unsl_one/usernm", getUserName());
  2234. model.setValue("/root/send/data1/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2235. model.setValue("/root/send/data1/slipdd", model.getValue("/root/hidden/condition/unsldd"));
  2236. model.setValue("/root/send/data1/slipflag", "U");
  2237. model.refresh();
  2238. submit("TRRAD00102");
  2239. model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
  2240. model.setValue("/root/main/unsl_one/unslseqno", "00001");
  2241. model.setValue("/root/hidden/maxslipseqno", "00000");
  2242. model.setValue("/root/hidden/condition/slipcmt", "");
  2243. //model.setValue("/root/hidden/condition/defrayreqdd", "");
  2244. // model.refresh();
  2245. fdrcrflagSet();
  2246. fSumExpantAmt();
  2247. fuserInfoSet();
  2248. model.refresh();
  2249. for (i=1; i<7; i++) {
  2250. model.toggle("case_noteblank"+i);
  2251. }
  2252. fSlipStatus();
  2253. if(rdo_slipkind.value == '4' && acntdept != getUserInfo("dutplcecd"))
  2254. {
  2255. messageBox("권한이 없습니다." ,"I000");
  2256. model.setValue(rdo_slipkind.attribute("ref"), "3");
  2257. rdo_slipkind.refresh();
  2258. }
  2259. model.setFocus("ipt_slipcmt");
  2260. }
  2261. //========================================================================================
  2262. //전표 입력 내역 행 click
  2263. //========================================================================================
  2264. function fGridRowClick()
  2265. {
  2266. var cur_row = grd_unsl.row;
  2267. if ( cur_row > 0 )
  2268. {
  2269. if (model.getValue("/root/main/unsl["+cur_row+"]/rlaacntseqno") == "")
  2270. {
  2271. btn_grdadd.disabled = true;
  2272. btn_grdset.disabled = false;
  2273. btn_grddel.disabled = false;
  2274. btn_grdcopy.disabled = false;
  2275. /*
  2276. ipt_acntcd.visible = true;
  2277. ipt_acntnm.visible = true;
  2278. btn_acntcd.visible = true;
  2279. cmb_acntcd.visible = false;
  2280. */
  2281. }
  2282. else
  2283. {
  2284. btn_grdadd.disabled = true;
  2285. btn_grdset.disabled = false;
  2286. btn_grddel.disabled = true;
  2287. btn_grdcopy.disabled = true;
  2288. if (model.getValue("/root/main/unsl["+cur_row+"]/acntcd") != incmtax && model.getValue("/root/main/unsl["+cur_row+"]/acntcd") != resdntax)
  2289. {
  2290. /*
  2291. ipt_acntcd.visible = false;
  2292. ipt_acntnm.visible = false;
  2293. btn_acntcd.visible = false;
  2294. cmb_acntcd.visible = true;
  2295. */
  2296. }
  2297. else
  2298. {
  2299. /*
  2300. ipt_acntcd.visible = true;
  2301. ipt_acntnm.visible = true;
  2302. btn_acntcd.visible = true;
  2303. cmb_acntcd.visible = false;
  2304. */
  2305. }
  2306. }
  2307. btn_grdclear.visible = true;
  2308. model.copyNode("/root/main/unsl_one","/root/main/unsl["+cur_row+"]");
  2309. var custflag = model.getValue("/root/main/unsl_one/custflag");
  2310. model.setValue("/root/send/data2/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2311. model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
  2312. model.setValue("/root/send/data2/drcrflag", model.getValue("/root/main/unsl_one/drcrflag"));
  2313. model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl_one/projectid"));
  2314. model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl_one/projectnm"));
  2315. model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/main/unsl_one/projectid"));
  2316. model.refresh();
  2317. submit("TRRAD00103");
  2318. //기재사항setting
  2319. fSetNote();
  2320. fAcntInfoSelect1();
  2321. //예수금 set
  2322. var profflag = model.getValue("/root/main/unsl_one/profflag");
  2323. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  2324. var j = 0;
  2325. if (profflag == "7" || profflag == "8" || profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
  2326. {
  2327. if (profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
  2328. {
  2329. for (i=1; i < grd_unsl.rows; i++)
  2330. {
  2331. if (model.getValue("/root/main/unsl["+i+"]/acntcd") == incmtax && model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") == rlaacntseqno)
  2332. {
  2333. model.setValue("/root/hidden/orchreturn/incmtax", model.getValue("/root/main/unsl["+i+"]/amt"));
  2334. j++;
  2335. }
  2336. }
  2337. for (i=1; i < grd_unsl.rows; i++)
  2338. {
  2339. if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == resdntax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno) {
  2340. model.setValue("/root/hidden/orchreturn/resdntax", model.getValue("/root/main/unsl[" + i + "]/amt"));
  2341. j++;
  2342. }
  2343. }
  2344. }
  2345. model.setValue("/root/hidden/orchreturn/seqno", model.getValue("/root/main/unsl_one/seqno"));
  2346. model.setValue("/root/hidden/orchreturn/amt", model.getValue("/root/main/unsl_one/amt"));
  2347. model.setValue("/root/hidden/orchreturn/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
  2348. }
  2349. //상대처setting
  2350. if (model.getValue("/root/main/unsl_one/custflag") != custflag)
  2351. {
  2352. model.setValue("/root/main/unsl_one/custflag", custflag);
  2353. if (custflag == "9" || custflag == "")
  2354. {
  2355. model.setFocus("ipt_custnm2");
  2356. model.toggle("명관리");
  2357. }
  2358. else
  2359. {
  2360. model.setFocus("ipt_custnm");
  2361. model.toggle("코드관리");
  2362. }
  2363. }
  2364. else
  2365. {
  2366. if (custflag == "9" || custflag == "")
  2367. {
  2368. model.setFocus("ipt_custnm2");
  2369. model.toggle("명관리");
  2370. }
  2371. else
  2372. {
  2373. model.setFocus("ipt_custnm");
  2374. model.toggle("코드관리");
  2375. }
  2376. }
  2377. model.refresh();
  2378. }
  2379. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag"));
  2380. }
  2381. //========================================================================================
  2382. //전표승인 check
  2383. //========================================================================================
  2384. function fSlipAprvChk(pBugtChk)
  2385. {
  2386. var rows = grd_unsl.rows - 1;
  2387. if (rows == 0 && pBugtChk != "N")
  2388. {
  2389. messageBox("작업할 내용이 없습니다." ,"I000");
  2390. return false;
  2391. }
  2392. var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
  2393. var sanctno = model.getValue("/root/main/unsl[1]/sanctno");
  2394. var slipflag = model.getValue(cmb_slipflag.attribute("ref"));
  2395. var autjournflag = model.getValue("/root/main/unsl[1]/autjournflag");
  2396. /*
  2397. if (sanctyn == "Y")
  2398. {
  2399. messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
  2400. return false;
  2401. }
  2402. */
  2403. /*
  2404. if (sanctno != "")
  2405. {
  2406. messageBox("승인된 전표이므로 작업을 불허합니다." ,"I000");
  2407. return false;
  2408. }
  2409. */
  2410. if (slipflag == "9")
  2411. {
  2412. messageBox("반제전표이므로 작업을 불허합니다." ,"I000");
  2413. return false;
  2414. }
  2415. if (autjournflag == "Y")
  2416. {
  2417. //messageBox("자동분개로 작성된 전표는 수정할 수 없습니다." ,"I000");
  2418. //return false;
  2419. //자동분개로 작성된 전표도 수정할 수 있도록 설정 20090115
  2420. }
  2421. return true;
  2422. }
  2423. //========================================================================================
  2424. //전표출력 click
  2425. //========================================================================================
  2426. function fSlipPrintClick(vPreview)
  2427. {
  2428. if(!famtCheck()) // 차대 금액 확인
  2429. {
  2430. return;
  2431. }
  2432. var ret;
  2433. var iRow;
  2434. var actTrans = false;
  2435. if (grd_unsl.rows == 1)
  2436. {
  2437. messageBox("출력할 내용이" ,"I004");
  2438. return false;
  2439. }
  2440. for(var i=1; i<grd_unsl.rows; i++)
  2441. {
  2442. if(grd_unsl.rowStatus(i) != 0)
  2443. {
  2444. messageBox("작성중이거나 수정중인 내역이 있어 출력", "E001");
  2445. return false;
  2446. }
  2447. }
  2448. grp_apln.visible = false;
  2449. model.removenode("/root/main/transacnt"); // 기존의 전표 데이터 삭제
  2450. model.removenode("/root/main/apln"); // 기존의 결재라인 데이터 삭제
  2451. model.removenode("/root/hidden/prntlist/dayworkerprntlist"); // 기존의 일용근로소득 데이터 삭제
  2452. model.removenode("/root/hidden/prntlist/priprofprntlist"); // 기존의 사업소득 데이터 삭제
  2453. model.removenode("/root/hidden/prntlist/etcprofprntlist"); // 기존의 기타소득 데이터 삭제
  2454. model.setValue("/root/send/data3/instcd", model.getValue("/root/main/unsl_one/instcd") );
  2455. model.setValue("/root/send/data3/unsldd", model.getValue("/root/hidden/condition/unsldd") );
  2456. model.setValue("/root/send/data3/unslno", model.getValue("/root/hidden/condition/unslno") );
  2457. model.setValue("/root/send/data3/costcntrdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd") );
  2458. model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));//getUserInfo("dutplcecd"));
  2459. model.setValue("/root/send/data3/unslddno", model.getValue("/root/hidden/condition/unsldd") + model.getValue("/root/hidden/condition/unslno") );
  2460. model.setValue("/root/send/data3/drcrcmt", model.getValue(rdo_drcrcmt.attribute("ref")));
  2461. // if (getUserInfo("dutplcecd") == acntdept)
  2462. // {
  2463. // model.setValue("/root/send/data3/slipdeptcd", "%");
  2464. // }
  2465. // else
  2466. // {
  2467. // model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));
  2468. // }
  2469. model.refresh();
  2470. if(getUserInfo("dutplceinstcd") == "017")
  2471. {
  2472. submit("TRRAD00113"); // 증빙요약내역
  2473. submit("TRRAD00114"); // 예산정보
  2474. submit("TRRAD00115"); // 지출결의서
  2475. }
  2476. submit("TRRAD00101"); // 전표조회
  2477. submit("TRRAD00108"); // 이체계좌내역
  2478. submit("TRRAD00109"); // 원전 징수 증빙 조회
  2479. model.setValue("/root/hidden/rptparm/expansion", expansion);
  2480. model.setValue("/root/hidden/rptparm/instcd", cmb_instcd.value);
  2481. model.setValue("/root/hidden/rptparm/instnm", cmb_instcd.label);
  2482. model.setValue("/root/hidden/rptparm/slipno", "(전표번호 : " + model.getValue("/root/hidden/condition/unsldd") + "-" + model.getValue("/root/hidden/condition/unslno") + ")");
  2483. model.setValue("/root/hidden/rptparm/bugtinfocnt", instance1.selectNodes("/root/main/bugtacptlist").length);
  2484. model.setValue("/root/hidden/rptparm/profinfocnt", instance1.selectNodes("/root/main/slipproflist").length);
  2485. model.setValue("/root/hidden/rptparm/transinfocnt", instance1.selectNodes("/root/main/transacnt").length);
  2486. model.setValue("/root/hidden/rptparm/dayworkerprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/dayworkerprntlist").length);
  2487. model.setValue("/root/hidden/rptparm/priprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/priprofprntlist").length);
  2488. model.setValue("/root/hidden/rptparm/etcprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/etcprofprntlist").length);
  2489. model.setValue("/root/hidden/rptparm/retrprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/retrprofprntlist").length);
  2490. model.setValue("/root/hidden/rptparm/servprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/servprofprntlist").length);
  2491. model.setValue("/root/hidden/rptparm/preview", vPreview);
  2492. iRow = grd_unsl.findRow("Y", 1, grd_unsl.colRef("sanctyn"));
  2493. if (iRow > 0) // 이미 전송된 전표
  2494. {
  2495. model.setValue("/root/hidden/rptparm/reprtyn", "Y");
  2496. fPrintSlip();
  2497. }
  2498. else // 미전송 전표
  2499. {
  2500. if(!fAcntKijeCheck()) // 기재사항입력여부 체크
  2501. {
  2502. return false;
  2503. }
  2504. var vInstcd = getUserInfo("dutplceinstcd");
  2505. var vUnsldd = model.getValue("/root/hidden/condition/unsldd");
  2506. var vUnslno = model.getValue("/root/hidden/condition/unslno");
  2507. // if(!radfSubstituteSlipAmtCheck(vInstcd, vUnsldd, vUnslno)) // 대체전표의 현금성등가물의 상대계정 금액 대칭 일치 여부 검사
  2508. // {
  2509. // return false;
  2510. // }
  2511. model.setValue("/root/send/data3/instcd",model.getValue("/root/main/unsl_one/instcd"));
  2512. model.setValue("/root/send/data3/unsldd",model.getValue("/root/hidden/condition/unsldd"));
  2513. model.setValue("/root/send/data3/unslno",model.getValue("/root/hidden/condition/unslno"));
  2514. model.makeValue("/root/send/data3/sanctyn","Y");
  2515. model.makeValue("/root/send/data3/refreshyn","Y");
  2516. model.refresh();
  2517. submit("TRRAD00107");
  2518. for(var i=1; i<=instance1.selectNodes("/root/hidden/chklist/chklist").length; i++)
  2519. {
  2520. var sGbn = model.getValue("/root/hidden/chklist/chklist[" + i + "]/gbn");
  2521. var sChk = model.getValue("/root/hidden/chklist/chklist[" + i + "]/chk");
  2522. if(sGbn == "aact")
  2523. {
  2524. var sExpsAcntSum = model.getValue("/root/hidden/expsacntsum");
  2525. var AactChkflag = true;
  2526. if(model.getValue("/root/hidden/condition/slipkind") == "3")
  2527. {
  2528. if(parseFloat(sExpsAcntSum) != parseFloat(sChk))
  2529. {
  2530. messageBox("전표상의 [ 예금 금액 합계 ] 와 [ 이체계좌 금액 합계 ] 가 달라 출력을", "E001");
  2531. return false;
  2532. }
  2533. }
  2534. else if(model.getValue("/root/hidden/condition/slipkind") == "1")
  2535. {
  2536. //alert(parseInt(sExpsAcntSum, 10));
  2537. if(parseFloat(sExpsAcntSum) != parseFloat(sChk) && parseInt(sChk, 10) != 0)
  2538. {
  2539. messageBox("전표상의 [ 예금 금액 합계 ] 와 [ 이체계좌 금액 합계 ] 가 달라 출력을", "E001");
  2540. return false;
  2541. }
  2542. if(parseFloat(sChk) == 0) AactChkflag = false;
  2543. }
  2544. if(getUserInfo("dutplceinstcd") != '103')
  2545. {
  2546. if(AactChkflag == true && !fAactException()) // 출금계좌 일치 여부 확인
  2547. {
  2548. return false;
  2549. }
  2550. }
  2551. }
  2552. else if(sGbn == "orch")
  2553. {
  2554. if(sChk != "")
  2555. {
  2556. var sChks = sChk.split('●');
  2557. var sMsg = "";
  2558. for(var i=0; i<sChks.length; i++)
  2559. {
  2560. if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
  2561. else sMsg = sMsg + sChks[i] + "\n\n";
  2562. }
  2563. messageBox(sMsg + "\n\n출력을", "E001");
  2564. return false;
  2565. }
  2566. }
  2567. else if(sGbn == "key")
  2568. {
  2569. if(sChk != "")
  2570. {
  2571. var sChks = sChk.split('●');
  2572. var sMsg = "";
  2573. for(var i=0; i<sChks.length; i++)
  2574. {
  2575. if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
  2576. else sMsg = sMsg + sChks[i] + "\n\n";
  2577. }
  2578. messageBox(sMsg + "\n\n출력을", "E001");
  2579. return false;
  2580. }
  2581. }
  2582. else if(sGbn == "serv")
  2583. {
  2584. if(sChk != "")
  2585. {
  2586. var sChks = sChk.split('●');
  2587. var sMsg = "";
  2588. for(var i=0; i<sChks.length; i++)
  2589. {
  2590. if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
  2591. else sMsg = sMsg + sChks[i] + "\n\n";
  2592. }
  2593. messageBox(sMsg + "\n\n출력을", "E001");
  2594. return false;
  2595. }
  2596. }
  2597. }
  2598. actTrans = true; // 전송되는 전표는 전송 후 다음 입력 상태로 돌아간다.
  2599. if(vPreview != "Y")
  2600. {
  2601. // ret = messageBox("전표 입력을 마감하고 재무팀으로 해당 내역을 전송합니다.\n전송후 출력이 가능하며 수정,삭제가 불가합니다.\n\n작업을","Q004");
  2602. ret = messageBox("출력 후에는 전표수정이\n불가합니다.\n출력하시겠습니까?","Q999");
  2603. if (ret == "6")
  2604. {
  2605. if(!submit("TXRAD00102"))
  2606. {
  2607. return false;
  2608. }
  2609. if (getUserInfo("dutplcecd") == acntdept)
  2610. {
  2611. btn_prtcancel.disabled = false;
  2612. }
  2613. }
  2614. else
  2615. {
  2616. return false;
  2617. }
  2618. }
  2619. fPrintSlip();
  2620. if(actTrans == true && vPreview != "Y")
  2621. {
  2622. btn_clear.dispatch("DOMActivate");
  2623. }
  2624. }
  2625. return true;
  2626. }
  2627. //========================================================================================
  2628. // 전표출력
  2629. //========================================================================================
  2630. function fPrintSlip()
  2631. {
  2632. var SlipFrom = "";
  2633. var SumSlipFrom = "RPRAD00101";
  2634. var chSlipFlag ;
  2635. var vanSwer;
  2636. // 입고, 출고, 반제 전표인 경우 계정별 Sum된 출력을 할 수 있도록 물어 봄
  2637. chSlipFlag = model.getValue("/root/hidden/condition/slipflag");
  2638. if(getUserInfo("dutplceinstcd") == "017")
  2639. {
  2640. if(model.getValue(rdo_slipkind.attribute("ref")) == "1" || model.getValue(rdo_slipkind.attribute("ref")) == "2")
  2641. {
  2642. SlipFrom = "RPRAD00103";
  2643. }
  2644. else
  2645. {
  2646. SlipFrom = "RPRAD00102";
  2647. }
  2648. }
  2649. else if(getUserInfo("dutplceinstcd") == "014")
  2650. {
  2651. if ( chSlipFlag == '2' || chSlipFlag == '3')
  2652. {
  2653. SlipFrom = "RPRAD00103";
  2654. }
  2655. else
  2656. {
  2657. SlipFrom = "RPRAD00100";
  2658. }
  2659. }
  2660. else
  2661. {
  2662. SlipFrom = "RPRAD00100";
  2663. }
  2664. if ( chSlipFlag == '6' || chSlipFlag == '7' || chSlipFlag == '9' )
  2665. {
  2666. vanSwer = messageBox("계정별 합계 형태의 출력을 하시겠습니까?","Q999");
  2667. if (vanSwer == "6")
  2668. {
  2669. exeReportPreview(SumSlipFrom, "XMLSTR", "/root/hidden/rptparm");
  2670. }
  2671. else
  2672. {
  2673. exeReportPreview(SlipFrom, "XMLSTR", "/root/hidden/rptparm");
  2674. }
  2675. }
  2676. else
  2677. {
  2678. exeReportPreview(SlipFrom, "XMLSTR", "/root/hidden/rptparm");
  2679. }
  2680. }
  2681. //========================================================================================
  2682. //전표출력취소 click - 재무팀 전송 취소 기능
  2683. //========================================================================================
  2684. function fSlipPrintCancelClick() {
  2685. var row = grd_unsl.rows;
  2686. if (row == 1) {
  2687. messageBox("취소할 전표를 선택하세요.","I000");
  2688. return;
  2689. }
  2690. iRow = grd_unsl.findRow("N",1,grd_unsl.colRef("sanctyn"));
  2691. if (iRow > 0 ) {
  2692. btn_prtcancel.disabled = true;
  2693. return;
  2694. }
  2695. ret = messageBox(" 전표출력을\n\n취소하시겠습니까?\n","Q999");
  2696. if (ret == "6") {
  2697. model.setValue("/root/send/data3/instcd",model.getValue("/root/main/unsl_one/instcd"));
  2698. model.setValue("/root/send/data3/unsldd",model.getValue("/root/hidden/condition/unsldd"));
  2699. model.setValue("/root/send/data3/unslno",model.getValue("/root/hidden/condition/unslno"));
  2700. model.makeValue("/root/send/data3/sanctyn","N");
  2701. model.makeValue("/root/send/data3/refreshyn","Y");
  2702. model.refresh();
  2703. if (submit("TXRAD00102")) {
  2704. btn_prtcancel.disabled = true;
  2705. }
  2706. } else {
  2707. return;
  2708. }
  2709. }
  2710. //========================================================================================
  2711. //예산편성내역 click
  2712. //========================================================================================
  2713. function fBugtClick()
  2714. {
  2715. var sInstCd = model.getValue("/root/main/unsl_one/instcd");
  2716. var sDeptcd = ipt_costcntrdeptcd.value;
  2717. var sUnsldd = "";
  2718. if(cmb_slipflag.value == "A")
  2719. {
  2720. sUnsldd = parseFloat(ipt_unsldd.value) - 10000;
  2721. }
  2722. else
  2723. {
  2724. sUnsldd = ipt_unsldd.value;
  2725. }
  2726. var sAcntCd = ipt_acntcd.value;
  2727. var sDrCrFlag = rdo_drcrflag.value;
  2728. var instcd = getUserInfo("dutplceinstcd");
  2729. var emplno = getUserInfo("userid");
  2730. var vAcntdept = acntdept;
  2731. var vBugtdept = bugtdept;
  2732. var vSlipdept = model.getValue("/root/main/unsl_one/slipdeptcd");
  2733. var vFullSearchFlag = 'N';
  2734. if(vSlipdept == vAcntdept || vSlipdept == vBugtdept || vSlipdept == sDeptcd || radfCheckBugtAuth(instcd, emplno, sDeptcd, 'SLIPSEARCHYN') == "Y") vFullSearchFlag = 'Y';
  2735. var sParams = sInstCd + "," + sDeptcd + "," + sUnsldd + "," + sAcntCd + "," + sDrCrFlag + "," + vFullSearchFlag
  2736. model.makeNode("/root/main/unsl_one/bugtflagnm");
  2737. model.makeNode("/root/main/unsl_one/bugtflag");
  2738. model.makeNode("/root/main/unsl_one/acntcd");
  2739. model.makeNode("/root/main/unsl_one/acntnm");
  2740. model.makeNode("/root/main/unsl_one/bugtcd");
  2741. model.makeNode("/root/main/unsl_one/bugtnm");
  2742. model.makeNode("/root/main/unsl_one/projectid");
  2743. model.makeNode("/root/main/unsl_one/projectnm");
  2744. model.makeNode("/root/main/unsl_one/orgbugtamtsum");
  2745. model.makeNode("/root/main/unsl_one/revbugtamtsum");
  2746. model.makeNode("/root/main/unsl_one/bugtexecamtsum");
  2747. model.makeNode("/root/main/unsl_one/bugtamt");
  2748. fOpenPopupHelp("16", ipt_costcntrdeptcd, "bugtflag,bugtflagnm,acntcd,acntnm,bugtcd,bugtnm,projectid,projectnm,orgbugtamtsum,revbugtamtsum,bugtexecamtsum,bugtamt", "", sParams, "instcd,deptcd,unsldd,acntcd,drcrflag,fullsearchflag");
  2749. fAcntInfoSelect();
  2750. if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "")
  2751. {
  2752. fAcntInfoSelect1();
  2753. }
  2754. model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl_one/projectid"));
  2755. model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl_one/projectnm"));
  2756. }
  2757. //========================================================================================
  2758. //이체계좌등록 click
  2759. //========================================================================================
  2760. function fSetAcntClick()
  2761. {
  2762. if (grd_unsl.rows == 1)
  2763. {
  2764. messageBox("전표 입력 후 작업하세요." ,"I000");
  2765. return;
  2766. }
  2767. if(!famtCheck()) // 차대 금액 확인
  2768. {
  2769. return;
  2770. }
  2771. var sYn = "N";
  2772. if(getUserInfo("dutplcecd") == acntdept)
  2773. {
  2774. sYn = "Y";
  2775. }
  2776. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2777. model.makeValue("/root/source/slipinfo/instnm", cmb_instcd.label);
  2778. model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  2779. model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  2780. model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/hidden/condition/slipcmt"));
  2781. model.makeValue("/root/source/slipinfo/expsacntsum", model.getValue("/root/hidden/expsacntsum"));
  2782. model.makeValue("/root/source/slipinfo/sanctyn", model.getValue("/root/main/unsl[1]/sanctyn"));
  2783. model.makeValue("/root/source/slipinfo/acntdeptyn", sYn);
  2784. model.makeValue("/root/source/slipinfo/slipkind", model.getValue("/root/hidden/condition/slipkind"));
  2785. model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
  2786. model.makeValue("/root/source/receiveref2", "/root/hidden/retexpacntsum");
  2787. modal("SPRAD00108","","","","","/root/source", "/root/target", "sysmenu:hidden" );
  2788. model.refresh();
  2789. }
  2790. //========================================================================================
  2791. //증빙입력여부check
  2792. //========================================================================================
  2793. function fProfExistsChk()
  2794. {
  2795. // if(grd_unsl.row > grd_unsl.fixedRows && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == 'Y')
  2796. // {
  2797. // messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
  2798. // return false;
  2799. // }
  2800. var seqno = model.getValue("/root/main/unsl_one/seqno");
  2801. var profflag = model.getValue("/root/main/unsl["+grd_unsl.row+"]/profflag");
  2802. var profflag1 = model.getValue("/root/main/unsl_one/profflag");
  2803. var prev_prof = model.getValue("/root/hidden/prev_prof");
  2804. /*
  2805. if (model.getValue("/root/hidden/condition/slipkind") == "2" && (profflag1 != "4" && profflag1 != "5" && profflag1 != "6"))
  2806. {
  2807. model.setValue("/root/main/unsl_one/profflag", profflag);
  2808. model.refresh();
  2809. messageBox("입금전표 증빙은 세금계산서, 계산서, 기타 유형으로만 등록이 가능합니다.","I000");
  2810. return false;
  2811. }
  2812. */
  2813. if (seqno != "")
  2814. {
  2815. var ret = "";
  2816. //if(btn_grdset.disabled == false && profflag != model.getValue("/root/main/unsl_one/profflag"))
  2817. if(btn_grdset.disabled == false && profflag != profflag1)
  2818. {
  2819. var profflagnm = model.getValue("/root/init/profflaglist/profflag[cd='"+ profflag +"']/nm");
  2820. ret = messageBox("해당 증빙[" + profflagnm + "]에 입력된 자료가 존재합니다.\n증빙을 변경하시겠습니까?","Q999");
  2821. if(ret == "6")
  2822. {
  2823. return true;
  2824. }
  2825. else
  2826. {
  2827. model.setValue("/root/main/unsl_one/profflag", profflag);
  2828. model.refresh();
  2829. return false;
  2830. }
  2831. }
  2832. else if(prev_prof != model.getValue("/root/main/unsl_one/profflag"))
  2833. {
  2834. var prev_profnm = model.getValue("/root/init/profflaglist/profflag[cd='"+ prev_prof +"']/nm");
  2835. ret = messageBox("해당 증빙[" + prev_profnm + "]에 입력된 자료가 존재합니다.\n증빙을 변경하시겠습니까?","Q999");
  2836. if(ret == "6")
  2837. {
  2838. return true;
  2839. }
  2840. else
  2841. {
  2842. model.setValue("/root/main/unsl_one/profflag", prev_prof);
  2843. model.refresh();
  2844. return false;
  2845. }
  2846. }
  2847. }
  2848. return true;
  2849. }
  2850. //========================================================================================
  2851. //증빙구분-원천징수 외 click
  2852. //========================================================================================
  2853. function fProfClick(pProfflag)
  2854. {
  2855. fetcprofcntcheck();
  2856. if(model.getValue("/root/hidden/slipstatus") == "미 출 력"){
  2857. if((rdo_profflag1.value == '1' || rdo_profflag2.value == '2' || rdo_profflag3.value == '3') && radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition6') == "Y")
  2858. {
  2859. if(!((model.getValue(cmb_custflag.attribute("ref")) == "1" && model.getValue(ipt_custcd.attribute("ref")) != "") || model.getValue(cmb_custflag.attribute("ref")) == "9"))
  2860. {
  2861. messageBox("상대처구분에 거래처나 기타를 선택해야 합니다.", "I000");
  2862. return false;
  2863. }
  2864. }
  2865. else
  2866. {
  2867. if(!(model.getValue(cmb_custflag.attribute("ref")) == "1" && model.getValue(ipt_custcd.attribute("ref")) != ""))
  2868. {
  2869. messageBox("상대처구분에 거래처를 입력해야 합니다.", "I000");
  2870. return false;
  2871. }
  2872. }
  2873. if(!fCashAcntProfException()) return false; //현금성 등가물 증빙 예외
  2874. if (!fProfExistsChk())
  2875. {
  2876. return;
  2877. }
  2878. if(model.getValue("/root/main/unsl_one/profflag") == "1") // 선택된 귀속부서가 사용자의 근무부서이면 부서 법인카드를 볼 수 있도록 파라미터를 보낸다.
  2879. {
  2880. model.makeValue("/root/source/slipinfo/cardno", model.getValue("/root/hidden/instcardseqnoinfo/instcardseqno"));
  2881. var vDeptCD = getUserInfo("dutplcecd");
  2882. if(vDeptCD == model.getValue(ipt_costcntrdeptcd.attribute("ref")))
  2883. {
  2884. model.makeValue("/root/source/slipinfo/carddeptcd", vDeptCD);
  2885. }
  2886. else
  2887. {
  2888. model.makeValue("/root/source/slipinfo/carddeptcd", "");
  2889. }
  2890. }
  2891. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
  2892. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2893. model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/seqno"));
  2894. model.makeValue("/root/source/slipinfo/custcd", model.getValue("/root/main/unsl_one/custcd"));
  2895. model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  2896. model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  2897. model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
  2898. model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
  2899. model.makeValue("/root/source/slipinfo/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
  2900. model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
  2901. model.makeValue("/root/source/slipinfo/slipkind", model.getValue("/root/hidden/condition/slipkind"));
  2902. if(cmb_custflag.value == "4" && ipt_custcd.value != "")
  2903. {
  2904. //alert("4 : " + ipt_custcd.value);
  2905. model.makeValue("/root/source/slipinfo/emplno", "");
  2906. model.setValue("/root/source/slipinfo/emplno", ipt_custcd.value);
  2907. }
  2908. var acntdeptflag;
  2909. if(acntdept == getUserInfo("dutplcecd"))
  2910. {
  2911. acntdeptflag = "Y";
  2912. }
  2913. else
  2914. {
  2915. acntdeptflag = "N";
  2916. }
  2917. model.makeValue("/root/source/slipinfo/acntdept", acntdeptflag);
  2918. if (pProfflag == "SPRAT00101")
  2919. {
  2920. //세금계산서 관련 증빙
  2921. model.makeValue("/root/source/slipinfo/taxbillkind", model.getValue("/root/main/unsl_one/profflag"));
  2922. model.makeValue("/root/source/slipinfo/taxbillflag", "1");
  2923. // model.makeValue("/root/source/slipinfo/reptkind", "3"); //수정필요
  2924. model.makeValue("/root/source/slipinfo/flagcd", "1");
  2925. var sMonth = model.getValue("/root/hidden/condition/unsldd").substr(4, 2);
  2926. //var sReptKind = "3";
  2927. if(sMonth == "01" || sMonth == "02" || sMonth == "03")
  2928. {
  2929. sReptKind = "1";
  2930. }
  2931. else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
  2932. {
  2933. sReptKind = "2";
  2934. }
  2935. else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
  2936. {
  2937. sReptKind = "3";
  2938. }
  2939. else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
  2940. {
  2941. sReptKind = "4";
  2942. }
  2943. model.makeValue("/root/source/slipinfo/reptkind", sReptKind); //수정필요
  2944. }
  2945. else
  2946. {
  2947. model.makeValue("/root/source/slipinfo/profflag", model.getValue("/root/main/unsl_one/profflag"));
  2948. }
  2949. model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
  2950. model.makeValue("/root/source/receivecardinforef", "/root/hidden/instcardseqnoinfo"); //저장한 카드번호를 임시 저장한다.
  2951. model.refresh();
  2952. modal(pProfflag,"","","","","/root/source", "/root/target" );
  2953. model.refresh();
  2954. if ((model.getValue("/root/source/slipinfo/seqno") != model.getValue("/root/main/unsl_one/seqno")
  2955. || model.getValue("/root/source/slipinfo/amt") != model.getValue("/root/main/unsl_one/amt")) && btn_grdset.disabled == false)
  2956. {
  2957. var cur_row = grd_unsl.row;
  2958. btn_grdset.dispatch("DOMActivate");
  2959. grd_unsl.row = cur_row;
  2960. fGridRowClick();
  2961. }
  2962. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); //저장한 증빙외의 증빙 선택 제한
  2963. //fCheckServAcnt();
  2964. }else{
  2965. messageBox("미출력상태가 아닌 전표는 수정", "E001");
  2966. return;
  2967. }
  2968. }
  2969. //========================================================================================
  2970. //증빙구분-원천징수 click
  2971. //========================================================================================
  2972. function fProfOrChClick(pProfflag)
  2973. {
  2974. fetcprofcntcheck();
  2975. var vProfflag = model.getValue("/root/main/unsl_one/profflag");
  2976. if(getUserInfo("dutplceinstcd") != '103')
  2977. {
  2978. if(vProfflag == "7" || vProfflag == "8")
  2979. {
  2980. if(!(model.getValue(cmb_custflag.attribute("ref")) == "4" && model.getValue(ipt_custcd.attribute("ref")) != ""))
  2981. {
  2982. messageBox("상대처구분에 교직원을 입력해야 합니다.", "I000");
  2983. return false;
  2984. }
  2985. }
  2986. else if(vProfflag == "9")
  2987. {
  2988. if(!((model.getValue(cmb_custflag.attribute("ref")) == "4" || model.getValue(cmb_custflag.attribute("ref")) == "5") && model.getValue(ipt_custcd.attribute("ref")) != ""))
  2989. {
  2990. messageBox("상대처구분에 교직원이나 소득자를 입력해야 합니다.", "I000");
  2991. return false;
  2992. }
  2993. }
  2994. else if(vProfflag == "A" || vProfflag == "B" || vProfflag == "C")
  2995. {
  2996. if(!(model.getValue(cmb_custflag.attribute("ref")) == "5" && model.getValue(ipt_custcd.attribute("ref")) != ""))
  2997. {
  2998. messageBox("상대처구분에 소득자를 입력해야 합니다.", "I000");
  2999. return false;
  3000. }
  3001. }
  3002. }
  3003. if (!fProfExistsChk())
  3004. {
  3005. return false;
  3006. }
  3007. if(!fCashAcntProfException()) return false; // 현금성 등가물 증빙 예외
  3008. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
  3009. var chgchk = 0;
  3010. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  3011. model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/seqno"));
  3012. model.makeValue("/root/source/slipinfo/custcd", model.getValue("/root/main/unsl_one/custcd"));
  3013. model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  3014. model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  3015. model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
  3016. model.makeValue("/root/source/slipinfo/profflag", model.getValue("/root/main/unsl_one/profflag"));
  3017. model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
  3018. model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/main/unsl_one/etcnotefact"));
  3019. model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
  3020. model.makeValue("/root/source/receiveref", "/root/hidden/orchreturn");
  3021. // alert(cmb_custflag.value);
  3022. if(cmb_custflag.value == "4" && ipt_custcd.value != "")
  3023. {
  3024. //alert("4 : " + ipt_custcd.value);
  3025. model.makeValue("/root/source/slipinfo/emplno", "");
  3026. model.makeValue("/root/source/slipinfo/rrgstno", "");
  3027. model.setValue("/root/source/slipinfo/emplno", ipt_custcd.value);
  3028. }
  3029. else if(cmb_custflag.value == "5" && ipt_custcd.value != "")
  3030. {
  3031. //alert("5 : " + ipt_custcd.value);
  3032. model.makeValue("/root/source/slipinfo/rrgstno", "");
  3033. model.makeValue("/root/source/slipinfo/emplno", "");
  3034. model.setValue("/root/source/slipinfo/rrgstno", ipt_custcd.value);
  3035. }
  3036. else
  3037. {
  3038. model.makeValue("/root/source/slipinfo/emplno", "");
  3039. model.setValue("/root/source/slipinfo/emplno", "");
  3040. model.makeValue("/root/source/slipinfo/rrgstno", "");
  3041. model.setValue("/root/source/slipinfo/rrgstno", "");
  3042. }
  3043. model.refresh();
  3044. modal(pProfflag,"","","","","/root/source", "/root/target", "resize:false" );
  3045. if (model.getValue("/root/main/unsl_one/seqno") != model.getValue("/root/hidden/orchreturn/seqno"))
  3046. {
  3047. model.setValue("/root/main/unsl_one/seqno", model.getValue("/root/hidden/orchreturn/seqno"));
  3048. chgchk++;
  3049. }
  3050. if (model.getValue("/root/main/unsl_one/etcnotefact") != model.getValue("/root/hidden/orchreturn/etcnotefact") && model.getValue("/root/hidden/orchreturn/etcnotefact") != "")
  3051. {
  3052. model.setValue("/root/main/unsl_one/etcnotefact", model.getValue("/root/hidden/orchreturn/etcnotefact"));
  3053. }
  3054. //model.refresh();
  3055. if (model.getValue("/root/main/unsl_one/amt") != model.getValue("/root/hidden/orchreturn/amt") && model.getValue("/root/hidden/orchreturn/amt") != "")
  3056. {
  3057. model.setValue("/root/main/unsl_one/amt", model.getValue("/root/hidden/orchreturn/amt"));
  3058. chgchk++;
  3059. }
  3060. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  3061. for (i=1; i < grd_unsl.rows; i++)
  3062. {
  3063. if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == incmtax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
  3064. {
  3065. if (model.getValue("/root/main/unsl[" + i + "]/amt") != model.getValue("/root/hidden/orchreturn/incmtax") && model.getValue("/root/hidden/orchreturn/incmtax") != "")
  3066. {
  3067. model.setValue("/root/main/unsl[" + i + "]/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
  3068. chgchk++;
  3069. break;
  3070. }
  3071. }
  3072. }
  3073. for (i=1; i < grd_unsl.rows; i++)
  3074. {
  3075. if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == resdntax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
  3076. {
  3077. if (model.getValue("/root/main/unsl[" + i + "]/amt") != model.getValue("/root/hidden/orchreturn/resdntax") && model.getValue("/root/hidden/orchreturn/resdntax") != "")
  3078. {
  3079. model.setValue("/root/main/unsl[" + i + "]/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
  3080. chgchk++;
  3081. break;
  3082. }
  3083. }
  3084. }
  3085. model.refresh();
  3086. if (chgchk > 0 && btn_grdset.disabled == false)
  3087. {
  3088. model.refresh();
  3089. var cur_row = grd_unsl.row;
  3090. btn_grdset.dispatch("DOMActivate");
  3091. grd_unsl.row = cur_row;
  3092. fGridRowClick();
  3093. }
  3094. //fCheckServAcnt();
  3095. }
  3096. function fSumExpantAmt()
  3097. {
  3098. var iSum = 0;
  3099. var iExpAmt = 0;
  3100. var sAcntCd = "";
  3101. for(var i=1; i<=instance1.selectNodes("/root/main/unsl").length; i++) // 이체계좌에 포함시킬 계정 목록 - 기본적인 계정 외에 추가 적인 계정 hard coding
  3102. {
  3103. sAcntCd = model.getValue("/root/main/unsl[" + i + "]/acntcd");
  3104. iExpAmt = 0;
  3105. // alert("sAcntCd : " + sAcntCd);
  3106. for(var j = 0; j < arrTransAcntCd.length ; j++)
  3107. {
  3108. // alert(arrTransAcntCd[j]);
  3109. if(arrTransAcntCd[j] == sAcntCd)
  3110. {
  3111. // alert(arrTransAcntCd[j]);
  3112. var sExpAmt = (model.getValue("/root/main/unsl[" + i + "]/cramt") == "") ? 0 : model.getValue("/root/main/unsl[" + i + "]/cramt");
  3113. iExpAmt = parseInt(sExpAmt, 10);
  3114. break;
  3115. }
  3116. }
  3117. // if(sAcntCd == "1232001" || sAcntCd == "1233001" || sAcntCd == "1234001" || sAcntCd == "1239001")
  3118. // {
  3119. // var sExpAmt = (model.getValue("/root/main/unsl[" + i + "]/cramt") == "") ? 0 : model.getValue("/root/main/unsl[" + i + "]/cramt");
  3120. // iExpAmt = parseInt(sExpAmt, 10);
  3121. // }
  3122. iSum += iExpAmt;
  3123. }
  3124. //alert(iSum)
  3125. //var iExpsacntSum = parseInt((model.getValue("/root/hidden/allexpsacntsum") == "") ? 0 : model.getValue("/root/hidden/allexpsacntsum"), 10);
  3126. //<caption id="caption59" ref="/root/hidden/allexpsacntsum" visibility="hidden" format="(-)#,###" style="left:685px; top:735px; width:110px; height:23px; text-align:right; vertical-align:middle; background-color:#fcd2c1; "/>
  3127. //<bind id="bind_caption57" ref="/root/hidden/allexpsacntsum" calculate="sum(/root/main/unsl[acntcd=/root/hidden/expsacnt]/cramt)"/>
  3128. model.setValue("/root/hidden/expsacntsum", iSum);
  3129. model.refresh();
  3130. }
  3131. //========================================================================================
  3132. //예산 귀속부서 help
  3133. //========================================================================================
  3134. function fOpenPopupDeptHelp(pControl, pInstance)
  3135. {
  3136. misfOpenPopUpList("02", pControl, "", pInstance);
  3137. model.refresh();
  3138. }
  3139. //========================================================================================
  3140. //계정과목 삭제 - 부서 변경 시
  3141. //========================================================================================
  3142. function fRemoveAcntValue()
  3143. {
  3144. //model.setValue("/root/main/unsl_one/acntcd", "");
  3145. //model.setValue("/root/main/unsl_one/acntnm", "");
  3146. model.setValue("/root/hidden/condition/projectid", "");
  3147. model.setValue("/root/hidden/condition/projectnm", "");
  3148. model.removenode("/root/main/unsl_one/projectid");
  3149. model.makeNode("/root/main/unsl_one/projectid");
  3150. model.setValue(ipt_costbelongdeptcd.attribute("ref"), model.getValue(ipt_costcntrdeptcd.attribute("ref")));
  3151. model.setValue(ipt_costbelongdeptnm.attribute("ref"), model.getValue(ipt_costcntrdeptnm.attribute("ref")));
  3152. model.refresh();
  3153. }
  3154. //========================================================================================
  3155. //프로젝트 ID 변경 시 unsl_one 에 적용
  3156. //========================================================================================
  3157. function fSetProjectValue()
  3158. {
  3159. model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/hidden/condition/projectid"));
  3160. model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/hidden/condition/projectnm"));
  3161. }
  3162. function fAcntSelect()
  3163. {
  3164. if(!fdayreptAcntcdException())return;
  3165. fAcntInfoSelect();
  3166. if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "")
  3167. {
  3168. if(model.getValue("/root/hidden/acntcdinfo/bugtuseyn") == "Y" && (model.getValue(cmb_slipflag.attribute("ref")) != "A" && model.getValue(cmb_slipflag.attribute("ref")) != "B"))
  3169. // --수정 20080924 수익 예산도 계정 통제를 한다. -- || model.getValue("/root/hidden/acntcdinfo/acntflag") == "4")
  3170. // 수익은 예산 사용 계정이 아니어도 기표 가능하다.
  3171. {
  3172. model.setValue("/root/send/data5/instcd", model.getValue("/root/main/unsl_one/instcd"));
  3173. model.setValue("/root/send/data5/deptcd", ipt_costcntrdeptcd.value);
  3174. model.setValue("/root/send/data5/unsldd", ipt_unsldd.value);
  3175. model.setValue("/root/send/data5/refcond", "code");
  3176. model.setValue("/root/send/data5/retrnm", model.getValue("/root/main/unsl_one/acntcd"));
  3177. model.setValue("/root/send/data5/drcrflag", rdo_drcrflag.value);
  3178. submit("TRRAD90107");
  3179. if(instance1.selectNodes("/root/main/list/bugtorgnzlist").length > 0)
  3180. {
  3181. model.setValue("/root/main/unsl_one/acntcd", model.getValue("/root/main/list/bugtorgnzlist/acntcd"));
  3182. model.setValue("/root/main/unsl_one/acntnm", model.getValue("/root/main/list/bugtorgnzlist/acntnm"));
  3183. model.setValue("/root/main/unsl_one/bugtcd", model.getValue("/root/main/list/bugtorgnzlist/bugtcd"));
  3184. model.setValue("/root/main/unsl_one/bugtamt", model.getValue("/root/main/list/bugtorgnzlist/bugtamt"));
  3185. model.makeValue("/root/main/unsl_one/bugtflag", model.getValue("/root/main/list/bugtorgnzlist/bugtflag"));
  3186. // 그리드에서 선택하면 [/root/main/unsl_one]에 값이 setting 되는데 일부는 커럼이 없어 인스턴스를 만들지 못함
  3187. /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
  3188. {
  3189. fProjectIDSetCombo();
  3190. }*/
  3191. }
  3192. // 모든 기관은 자산의 대변기재 외에는 예산 편성 계정이면 예산계정통제 / 금액통제가 있다.
  3193. // else if(getUserInfo("dutplceinstcd") != "103" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "4") // (X)성의교정은 수익계정도 예산편성이 있어야 함 (예산설정 시 프로젝트 id 가 필수적임)
  3194. // {
  3195. // model.setValue("/root/main/unsl_one/bugtcd", "01");
  3196. // model.setValue("/root/main/unsl_one/bugtamt", "0");
  3197. // }
  3198. else if(model.getValue("/root/main/unsl_one/drcrflag") == "C" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "1") // 자산이 지출일때 대변 기재는 예산과 무관하다.
  3199. {
  3200. model.setValue("/root/main/unsl_one/bugtcd", "01");
  3201. model.setValue("/root/main/unsl_one/bugtamt", "0");
  3202. }
  3203. else if(model.getValue("/root/hidden/condition/unsldd") <= "20090228" && (model.getValue("/root/main/unsl_one/instcd") == "012" || model.getValue("/root/main/unsl_one/instcd") == "001")) // 의료원, 강남 2008년 이전 예산 무관 (20090302)
  3204. {
  3205. model.setValue("/root/main/unsl_one/bugtcd", "01");
  3206. model.setValue("/root/main/unsl_one/bugtamt", "0");
  3207. }
  3208. else
  3209. {
  3210. /*
  3211. messageBox("예산 편성 내역이", "I004");
  3212. model.setValue("/root/main/unsl_one/acntcd", "");
  3213. model.setValue("/root/main/unsl_one/acntnm", "");
  3214. model.setValue("/root/main/unsl_one/bugtcd", "");
  3215. model.setValue("/root/main/unsl_one/bugtamt", "");
  3216. */
  3217. /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
  3218. {
  3219. model.removenode("/root/main/unsl_one/projectid");
  3220. model.makeNode("/root/main/unsl_one/projectid");
  3221. // model.setValue("/root/main/unsl_one/projectid", "");
  3222. // model.setValue("/root/main/unsl_one/projectnm", "");
  3223. // model.setValue("/root/hidden/condition/projectid", "");
  3224. // model.setValue("/root/hidden/condition/projectnm", "");
  3225. }
  3226. */
  3227. //model.refresh();
  3228. //return;
  3229. }
  3230. }
  3231. else
  3232. {
  3233. model.setValue("/root/main/unsl_one/projectid", "");
  3234. model.setValue("/root/main/unsl_one/projectnm", "");
  3235. model.setValue("/root/hidden/condition/projectid", "");
  3236. model.setValue("/root/hidden/condition/projectnm", "");
  3237. model.setValue(ipt_bugtamt.attribute("ref"), "");
  3238. ipt_bugtamt.refresh();
  3239. }
  3240. model.refresh();
  3241. fAcntInfoSelect1();
  3242. if (switch8.selectedIndex == 0)
  3243. {
  3244. model.setFocus("ipt_custnm");
  3245. }
  3246. else
  3247. {
  3248. model.setFocus("ipt_custnm2");
  3249. }
  3250. }
  3251. else
  3252. {
  3253. fAcntClear();
  3254. }
  3255. // 대체 전표에서 예금을 선택하면
  3256. for(var i = 0 ; i < arrCashAcntCd.length ; i++)
  3257. {
  3258. if(arrCashAcntCd[i] == ipt_acntcd.value)
  3259. {
  3260. if((rdo_slipkind.value == "1" || rdo_slipkind.value == "4") && rdo_drcrflag.value == "C" && (model.getValue("/root/main/unsl_one/amt") == "" || parseInt(model.getValue("/root/main/unsl_one/amt")) == 0))
  3261. {
  3262. model.setValue("/root/main/unsl_one/amt", parseInt(caption13.value) - parseInt(caption14.value));
  3263. }
  3264. rdo_profflag6.select(0); // 현금성 등가물은 무조건 증빙구분이 기타임
  3265. }
  3266. }
  3267. cmb_custflag.refresh();
  3268. model.refresh();
  3269. }
  3270. function fAcntClear()
  3271. {
  3272. model.resetInstanceNode("/root/hidden/acntcdinfo");
  3273. /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
  3274. {
  3275. model.setValue("/root/main/unsl_one/projectid", "");
  3276. model.setValue("/root/main/unsl_one/projectnm", "");
  3277. model.setValue("/root/hidden/condition/projectid", "");
  3278. model.setValue("/root/hidden/condition/projectnm", "");
  3279. }
  3280. */
  3281. model.setValue("/root/main/unsl_one/bugtamt", 0);
  3282. model.refresh();
  3283. fAcntInfoSelect();
  3284. model.setFocus("ipt_acntnm");
  3285. }
  3286. //========================================================================================
  3287. //성의 교정 자금과목 Setting
  3288. //========================================================================================
  3289. function ffundcdReSetting()
  3290. {
  3291. model.setValue("root/init/fundscdlist/fundscd[2]/nm", "교육용수입");
  3292. model.setValue("root/init/fundscdlist/fundscd[3]/nm", "교육외수입");
  3293. model.setValue("root/init/fundscdlist/fundscd[7]/nm", "교육외지출");
  3294. }
  3295. //========================================================================================
  3296. //전표의 차대변 금액 검사
  3297. //========================================================================================
  3298. function famtCheck()
  3299. {
  3300. //var dramt = parseInt(caption13.value);
  3301. //var cramt = parseInt(caption14.value);
  3302. var dramt = 0;
  3303. var cramt = 0;
  3304. for (var i = 1; i < grd_unsl.rows; i ++){
  3305. dramt = parseFloat(dramt) + parseFloat(model.getValue("/root/main/unsl[" + i + "]/dramt"));
  3306. cramt = parseFloat(cramt) + parseFloat(model.getValue("/root/main/unsl[" + i + "]/cramt"));
  3307. }
  3308. if (dramt != cramt)
  3309. {
  3310. messageBox("차대변 금액이","E004");
  3311. return false;
  3312. }
  3313. return true;
  3314. }
  3315. //========================================================================================
  3316. //현금 계정은 대체전표로 작성할 수 없다.
  3317. //========================================================================================
  3318. function fdayreptAcntcdException()
  3319. {
  3320. if(ipt_acntcd.value == cashcd && (rdo_slipkind.value == "1" || rdo_slipkind.value == "4"))
  3321. {
  3322. messageBox("현금은 대체전표로 발의 할 수" ,"E001");
  3323. model.setValue("/root/main/unsl_one/acntcd", "");
  3324. model.setValue("/root/main/unsl_one/acntnm", "");
  3325. ipt_acntcd.refresh();
  3326. ipt_acntnm.refresh();
  3327. return false;
  3328. }
  3329. else
  3330. {
  3331. return true;
  3332. }
  3333. }
  3334. //========================================================================================
  3335. // 필수 기재사항 예외처리
  3336. //========================================================================================
  3337. function fcheckAcntOption()
  3338. {
  3339. for (i=1; i<7; i++)
  3340. {
  3341. var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
  3342. var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
  3343. var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
  3344. if(option == "Y")
  3345. {
  3346. if((kind == "1" || kind == "3") && model.getValue("/root/main/unsl_one/notefactcd" + i) == "")
  3347. {
  3348. messageBox(title + "은(는)","I003");
  3349. return false;
  3350. }
  3351. else if(kind == "2" && model.getValue("/root/main/unsl_one/notefactspec" + i) == "")
  3352. {
  3353. messageBox(title + "은(는)","I003");
  3354. return false;
  3355. }
  3356. }
  3357. }
  3358. return true;
  3359. }
  3360. //========================================================================================
  3361. // 필수 기재사항 예외처리
  3362. //========================================================================================
  3363. function fdrcrflagSet()
  3364. {
  3365. var slipkind = model.getValue("/root/hidden/condition/slipkind");
  3366. if (slipkind == "1" || slipkind == "4") {
  3367. model.setValue("/root/main/unsl_one/drcrflag","D");
  3368. //rdo_drcrflag.disabled = false;
  3369. // ipt_defrayreqdd.disabled = true;
  3370. ipt_defrayreqdd.disabled = false;// 대체는 예정일 막았었지만 요청에 의한 해제
  3371. } else if (slipkind == "2") {
  3372. model.setValue("/root/main/unsl_one/drcrflag","C");
  3373. //rdo_drcrflag.disabled = true;
  3374. ipt_defrayreqdd.disabled = false;
  3375. } else if (slipkind == "3") {
  3376. model.setValue("/root/main/unsl_one/drcrflag","D");
  3377. //rdo_drcrflag.disabled = true;
  3378. ipt_defrayreqdd.disabled = false;
  3379. }
  3380. }
  3381. //========================================================================================
  3382. // 계좌 중복 예외처리 (이체계좌 등록 시)
  3383. //========================================================================================
  3384. function transAcntException()
  3385. {
  3386. var vCount = 0;
  3387. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3388. {
  3389. if(model.getValue(grd_unsl.nodeset + "[" + i + "]/drcrflag") == "C")
  3390. {
  3391. sAcntCd = model.getValue(grd_unsl.nodeset + "[" + i + "]/acntcd");
  3392. // alert(model.getValue(grd_unsl.nodeset + "[" + i + "]/acntcd"));
  3393. for(var j=0; j<arrTransAcntCd.length; j++)
  3394. {
  3395. if(arrTransAcntCd[j] == sAcntCd)
  3396. {
  3397. vCount = 0;
  3398. for(var m = grd_unsl.fixedRows ; m < grd_unsl.rows ; m++)
  3399. {
  3400. if(sAcntCd == model.getValue(grd_unsl.nodeset + "[" + m + "]/acntcd"))
  3401. {
  3402. vCount++;
  3403. }
  3404. }
  3405. if(vCount > 1)return false;
  3406. }
  3407. }
  3408. }
  3409. }
  3410. return true;
  3411. }
  3412. //========================================================================================
  3413. // 저장 시 증빙 입력 여부 체크
  3414. //========================================================================================
  3415. function fprofChk()
  3416. {
  3417. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3418. {
  3419. if(!(grd_unsl.valueMatrix(i, grd_unsl.colRef("profflag")) == "6" || grd_unsl.valueMatrix(i, grd_unsl.colRef("profflag") == "9" )) && grd_unsl.valueMatrix(i, grd_unsl.colRef("seqno")) == "")
  3420. {
  3421. model.setValue("/root/main/unsl[" + i +"]/profflag", "6");
  3422. //messageBox(grd_unsl.valueMatrix(i, grd_unsl.colRef("unslseqno")) + "번 전표의 증빙이 저장되지 않았습니다.","I000");
  3423. //return false;
  3424. }
  3425. }
  3426. return true;
  3427. }
  3428. //========================================================================================
  3429. // 발의자 정보 Setting
  3430. //========================================================================================
  3431. function fuserInfoSet()
  3432. {
  3433. if(grd_unsl.rows > 1)
  3434. {
  3435. model.setValue("/root/hidden/userinfo/unslwrit", grd_unsl.valueMatrix(1, grd_unsl.colRef("unslwrit")));
  3436. model.setValue("/root/hidden/userinfo/usernm", grd_unsl.valueMatrix(1, grd_unsl.colRef("usernm")));
  3437. }
  3438. else
  3439. {
  3440. model.setValue("/root/hidden/userinfo/unslwrit", model.getValue("/root/main/unsl_one/unslwrit"));
  3441. model.setValue("/root/hidden/userinfo/usernm", model.getValue("/root/main/unsl_one/usernm"));
  3442. }
  3443. }
  3444. //========================================================================================
  3445. // 접대비 입력 여부 체크
  3446. //========================================================================================
  3447. /*
  3448. function fCheckServAcnt()
  3449. {
  3450. if(servcd == ipt_acntcd.value && parseInt(ipt_amt.value) >= 500000 || model.getValue("/root/main/unsl_one/servseq") != "")
  3451. {
  3452. btn_serv.visible = true;
  3453. }
  3454. else
  3455. {
  3456. btn_serv.visible = false;
  3457. }
  3458. }
  3459. */
  3460. //========================================================================================
  3461. // 전표 이동 / 복사
  3462. //========================================================================================
  3463. function fCopyShftSlip(workflag)
  3464. {
  3465. if(workflag == "shift" && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == "Y")
  3466. {
  3467. messageBox("전송된 전표는 날짜를 변경할 수 없습니다.","I000");
  3468. return;
  3469. }
  3470. if (grd_unsl.rows > 1)
  3471. {
  3472. var updtdata = getGridUpdateData(grd_unsl);
  3473. if (updtdata != "")
  3474. {
  3475. messageBox("변경된 데이터 저장 후 작업하세요.","I000");
  3476. return;
  3477. }
  3478. }
  3479. else
  3480. {
  3481. return; //빈 데이터
  3482. }
  3483. var instcd = model.getValue("/root/main/unsl_one/instcd");
  3484. var oldunsldd = ipt_unsldd.value;
  3485. var oldunslno = model.getValue("/root/hidden/condition/unslno");
  3486. model.makeValue("/root/source/copyshiftslipinfo/instcd", instcd);
  3487. model.makeValue("/root/source/copyshiftslipinfo/oldunsldd", oldunsldd);
  3488. model.makeValue("/root/source/copyshiftslipinfo/oldunslno", oldunslno);
  3489. model.makeValue("/root/source/copyshiftslipinfo/jobflag", workflag);
  3490. model.makeValue("/root/source/receiveref", "/root/hidden/copyshiftslip");
  3491. model.refresh();
  3492. modal("SPRAD00160","","","","","/root/source", "/root/target" );
  3493. model.refresh();
  3494. var newunsldd = model.getValue("/root/hidden/copyshiftslip/newunsldd");
  3495. var newunslno = model.getValue("/root/hidden/copyshiftslip/newunslno");
  3496. if(newunslno == "0000") return; //취소
  3497. if(newunslno == "")
  3498. {
  3499. messageBox("작업중 문제가 있습니다. 운영자에게 문의하세요.","I000");
  3500. return;
  3501. }
  3502. if(workflag == "copy")
  3503. {
  3504. ret = messageBox("전표가 " + newunsldd.substr(0, 4) + "년 " + newunsldd.substr(4, 2) + "월 " + newunsldd.substr(6, 2) + "일 " + newunslno + "번 전표로 복사되었습니다.\n복사된 전표를 조회하시겠습니까?","Q999");
  3505. }
  3506. else if(workflag == "shift")
  3507. {
  3508. messageBox("전표가 " + newunsldd.substr(0, 4) + "년 " + newunsldd.substr(4, 2) + "월 " + newunsldd.substr(6, 2) + "일 " + newunslno + "번 전표로 날짜가 변경되었습니다.","I000");
  3509. ret = "6";
  3510. }
  3511. if (ret == "6")
  3512. {
  3513. model.setValue("/root/hidden/condition/unsldd", newunsldd);
  3514. model.setValue("/root/hidden/condition/unslno", newunslno);
  3515. btn_search.dispatch("DOMActivate");
  3516. }
  3517. }
  3518. //========================================================================================
  3519. // 출금계좌 일치 예외처리 - 계좌 선택 시 경고만 출력
  3520. //========================================================================================
  3521. function fAactCheck()
  3522. {
  3523. var crrAcntCd = model.getValue("/root/main/unsl_one/acntcd");
  3524. var crrDrCrFlag = model.getValue("/root/main/unsl_one/drcrflag");
  3525. var bTransAcntCdYN = false;
  3526. if(crrDrCrFlag == "C")
  3527. {
  3528. for(var j=0; j<arrTransAcntCd.length; j++)
  3529. {
  3530. if(arrTransAcntCd[j] == crrAcntCd) bTransAcntCdYN = true;
  3531. }
  3532. }
  3533. var bExist = false;
  3534. if(bTransAcntCdYN == true)
  3535. {
  3536. for(var i=1; i<grd_unsl.rows; i++)
  3537. {
  3538. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  3539. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  3540. if(sDrCrFlag == "C")
  3541. {
  3542. for(var j=0; j<arrTransAcntCd.length; j++)
  3543. {
  3544. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  3545. }
  3546. }
  3547. if(bExist)
  3548. {
  3549. if(grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")) != model.getValue("/root/main/unsl_one/notefactcd1") && grd_unsl.row != i)
  3550. {
  3551. messageBox("하나의 전표에는 하나의 출금계좌만 설정할수 있습니다.\n연번[" + grd_unsl.valueMatrix(i, grd_unsl.colRef("unslseqno")) + "]와 지출계좌가 다릅니다." ,"I000");
  3552. // model.setValue("/root/main/unsl_one/notefactcd1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")));
  3553. // model.setValue("/root/main/unsl_one/notefactspec1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactspec1")));
  3554. // ipt_notecd1.refresh();
  3555. // ipt_notecdnm1.refresh();
  3556. return false;
  3557. }
  3558. else
  3559. {
  3560. bExist = false;
  3561. }
  3562. }
  3563. }
  3564. }
  3565. return true;
  3566. }
  3567. //========================================================================================
  3568. // 출금계좌 일치 예외처리
  3569. //========================================================================================
  3570. function fAactException()
  3571. {
  3572. var vFirstAactacntflag = false;
  3573. var vFirstAactcd = "";
  3574. var bExist = false;
  3575. for(i = grd_unsl.fixedRows ; i <= grd_unsl.rows ; i++)
  3576. {
  3577. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  3578. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  3579. var sAactcd = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1"))
  3580. if(sDrCrFlag == "C")
  3581. {
  3582. for(var j=0; j<arrTransAcntCd.length; j++)
  3583. {
  3584. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  3585. }
  3586. }
  3587. if(bExist == true)
  3588. {
  3589. if(vFirstAactacntflag == false)
  3590. {
  3591. vFirstAactcd = sAactcd;
  3592. vFirstAactacntflag = true;
  3593. }
  3594. else if(vFirstAactcd != sAactcd)
  3595. {
  3596. messageBox("대변의 출금계좌는 두개 이상 존재할 수 없습니다.\n출금계좌를 하나로 일치시킨 후 출력하시기 바랍니다." ,"I000");
  3597. return false;
  3598. }
  3599. bExist = false;
  3600. }
  3601. }
  3602. return true;
  3603. }
  3604. //========================================================================================
  3605. // 현금성 등가물 증빙 예외
  3606. //========================================================================================
  3607. function fCashAcntProfException()
  3608. {
  3609. for(var i = 0 ; i < arrCashAcntCd.length ; i++)
  3610. {
  3611. if(arrCashAcntCd[i] == ipt_acntcd.value && model.getValue("/root/main/unsl_one/profflag") == "6")
  3612. {
  3613. messageBox("현금성등가물의 증빙은 항상 기타입니다." ,"I000");
  3614. return false;
  3615. }
  3616. }
  3617. return true;
  3618. }
  3619. //========================================================================================
  3620. // 기재사항 예외 처리
  3621. //========================================================================================
  3622. function fAcntKijeCheck()
  3623. {
  3624. model.removeNodeset("/root/hidden/kijeomitlist");
  3625. model.setValue("/root/send/data6/instcd", getUserInfo("dutplceinstcd"));
  3626. model.setValue("/root/send/data6/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  3627. model.setValue("/root/send/data6/unslno", model.getValue("/root/hidden/condition/unslno"));
  3628. submit("TRRAD00152")
  3629. var vExistsflag = false;
  3630. for(var i = 1 ; i <= model.instance1.selectNodes("/root/hidden/kijeomitlist").length ; i++)
  3631. {
  3632. messageBox("[" + model.getValue("/root/hidden/kijeomitlist[" + i + "]/unslseqno") + "] 번 기재사항이 정확히 입력되지 않았습니다.", "I000");
  3633. vExistsflag = true;
  3634. }
  3635. if(vExistsflag == true)
  3636. {
  3637. return false;
  3638. }
  3639. else
  3640. {
  3641. return true;
  3642. }
  3643. }
  3644. //========================================================================================
  3645. // 프로젝트ID 세팅
  3646. //========================================================================================
  3647. function fProjectIDSetCombo()
  3648. {
  3649. var SelectedIndex = 0;
  3650. var StartIndex = 1;
  3651. for(var i = 1 ; i <= instance1.selectNodes("/root/main/list/bugtorgnzlist").length ; i++)
  3652. {
  3653. if(model.getValue("/root/main/list/bugtorgnzlist/bugtearncostflag") == "3")
  3654. {
  3655. if(model.getValue("/root/main/unsl_one/drcrflag") == "D" && model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/bugtflag") == "2") // 수입 및 지출 계정은 차변에 지출 예산이 있어야 기재 가능하다.
  3656. {
  3657. SelectedIndex = i;
  3658. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
  3659. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
  3660. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
  3661. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
  3662. StartIndex++;
  3663. }
  3664. else if(model.getValue("/root/main/unsl_one/drcrflag") == "C" && model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/bugtflag") == "1") // 수입 및 지출 계정은 대변에 수익 예산이 있어야 기재 가능하다.
  3665. {
  3666. SelectedIndex = i;
  3667. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
  3668. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
  3669. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
  3670. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
  3671. StartIndex++ ;
  3672. }
  3673. }
  3674. else // 수익 및 비용 예산 계정 외에는 오직 한쪽(수익 이든 비용 이든)으로만 예산이 주어지고 (안주어지면 계정통제) 수익 비용 계정은 반대계정 설정시 프로젝트를 맞추어주어야 한다. 수정 20080924 최형진
  3675. {
  3676. SelectedIndex = i;
  3677. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
  3678. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
  3679. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
  3680. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
  3681. StartIndex++;
  3682. }
  3683. }
  3684. if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "1" && SelectedIndex == 0)
  3685. {
  3686. //messageBox("예산이 없습니다.", "I000");
  3687. // model.setValue("/root/main/unsl_one/acntcd", "");
  3688. // model.setValue("/root/main/unsl_one/acntnm", "");
  3689. //
  3690. // fAcntClear();
  3691. // return;
  3692. //alert(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd"));
  3693. //alert(model.getValue("/root/hidden/acntcdinfo/acntflag"));
  3694. //if(model.getValue("/root/hidden/acntcdinfo/") == "C")
  3695. //alert(SelectedIndex)
  3696. //alert(model.getValue("/root/main/list/bugtorgnzlist[" + SelectedIndex + "]/bugtflag"))
  3697. // ipt_projectid.refresh();
  3698. // ipt_projectnm.refresh();
  3699. }
  3700. // model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/main/list/bugtorgnzlist/projectid"));
  3701. // model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/main/list/bugtorgnzlist/projectnm"));
  3702. // model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/list/bugtorgnzlist/projectid"));
  3703. // model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/list/bugtorgnzlist/projectnm"));
  3704. }
  3705. //========================================================================================
  3706. // 전표 상태 표시
  3707. //========================================================================================
  3708. function fSlipStatus()
  3709. {
  3710. var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
  3711. var sanctno = model.getValue("/root/main/unsl[1]/sanctno");
  3712. if(sanctno != "")
  3713. {
  3714. ipt_slipstatus.value = "승 인";
  3715. ipt_slipstatus.attribute("color") = "#0000ff";
  3716. }
  3717. else if(sanctyn == "Y")
  3718. {
  3719. ipt_slipstatus.value = "미 승 인";
  3720. ipt_slipstatus.attribute("color") = "#008000";
  3721. }
  3722. else
  3723. {
  3724. ipt_slipstatus.value = "미 출 력";
  3725. ipt_slipstatus.attribute("color") = "#ff0000";
  3726. }
  3727. ipt_slipstatus.refresh();
  3728. if(model.getValue(cmb_slipflag.attribute("ref")) == "9")
  3729. {
  3730. cmb_slipflag.disabled = true;
  3731. }
  3732. else
  3733. {
  3734. cmb_slipflag.disabled = false;
  3735. }
  3736. }
  3737. //========================================================================================
  3738. // 기표부서 변경 예외 처리 기능
  3739. //========================================================================================
  3740. function fUpdateSlipDeptCD()
  3741. {
  3742. if(grd_unsl.rows > grd_unsl.fixedRows)
  3743. {
  3744. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  3745. for(var i = 1 ; i <= vLength ; i++)
  3746. {
  3747. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  3748. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipdeptnm", model.getValue("/root/hidden/condition/slipdeptnm"));
  3749. }
  3750. grd_unsl.refresh();
  3751. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3752. {
  3753. grd_unsl.addStatus(i, "update");
  3754. }
  3755. }
  3756. }
  3757. function fetcprofcntcheck()
  3758. {
  3759. if(rdo_profflag6.value == "6")
  3760. {
  3761. ipt_profflag6.visible = true;
  3762. cap_etcprofcnt.visible = true;
  3763. }
  3764. else
  3765. {
  3766. ipt_profflag6.visible = false;
  3767. cap_etcprofcnt.visible = false;
  3768. }
  3769. }
  3770. ]]>
  3771. </script>
  3772. </xhtml:head>
  3773. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  3774. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  3775. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">전표발의등록</caption>
  3776. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  3777. </group>
  3778. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:764px; ">
  3779. <select1 id="cmb_acntcd" ref="/root/main/unsl_one/acntcd" class="combo_essential" navindex="-1" visibility="hidden" appearance="minimal" showvalue="true" style="left:515px; top:156px; width:288px; height:19px; ">
  3780. <choices>
  3781. <itemset nodeset="/root/init/code/code/codelist[cdgbn=&quot;cashacntcd&quot;]">
  3782. <label ref="cdnm"/>
  3783. <value ref="cdid"/>
  3784. </itemset>
  3785. </choices>
  3786. <script type="javascript" ev:event="xforms-value-changed">
  3787. <![CDATA[
  3788. var cur_row = grd_unsl.row;
  3789. if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "") {
  3790. fAcntInfoSelect();
  3791. model.setValue("/root/main/unsl_one/acntnm", cmb_acntcd.label);
  3792. model.setValue("/root/main/unsl_one/fundscd", model.getValue("/root/main/unsl["+ cur_row +"]/fundscd"));
  3793. model.refresh();
  3794. } else {
  3795. model.resetInstanceNode("/root/hidden/acntcdinfo");
  3796. model.refresh();
  3797. fAcntInfoSelect();
  3798. }
  3799. if (switch8.selectedIndex == 0)
  3800. {
  3801. model.setFocus("ipt_custnm");
  3802. } else
  3803. {
  3804. model.setFocus("ipt_custnm2");
  3805. }
  3806. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
  3807. model.setValue("/root/main/unsl_one/cdbojo1", "");
  3808. model.setValue("/root/main/unsl_one/cdbojo2", "*");
  3809. submit("TRRAD01701");
  3810. ]]>
  3811. </script>
  3812. </select1>
  3813. <input id="ipt_acntcd" ref="/root/main/unsl_one/acntcd" class="input_essential" navindex="-1" visibility="hidden" style="left:515px; top:156px; width:80px; height:19px; ">
  3814. <script type="javascript" ev:event="onkeypress">
  3815. <![CDATA[
  3816. if (event.keyCode == "13")
  3817. {
  3818. model.setFocus("ipt_custnm");
  3819. }
  3820. ]]>
  3821. </script>
  3822. <script type="javascript" ev:event="xforms-value-changed">
  3823. <![CDATA[
  3824. model.removeNodeset("/root/hidden/projectidlist"); // 예외적으로 처리해야하기 때문에 함수 안에 넣을 수 없다.
  3825. fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  3826. fAcntSelect();
  3827. model.setValue("/root/main/unsl_one/cdbojo1", "");
  3828. model.setValue("/root/main/unsl_one/cdbojo2", "*");
  3829. model.setValue("/root/main/unsl_one/profflag", "6");
  3830. model.setValue("/root/main/unsl_one/seqno", "1");
  3831. submit("TRRAD01701");
  3832. //fCheckServAcnt();
  3833. ipt_amt.dispatch("xforms-value-changed");
  3834. ]]>
  3835. </script>
  3836. </input>
  3837. <group id="grp_sea" style="left:0px; top:0px; width:1195px; height:140px; vertical-align:top; ">
  3838. <select1 id="rdo_acountingflag" ref="/root/hidden/condition/acountingflag" disabled="false" navindex="-1" visibility="hidden" appearance="full" cellspacing="75" cols="2" overflow="visible" style="left:860px; top:61px; width:276px; height:17px; border-style:none; ">
  3839. <choices>
  3840. <item>
  3841. <label>등록금회계</label>
  3842. <value>1</value>
  3843. </item>
  3844. <item>
  3845. <label>기금회계</label>
  3846. <value>2</value>
  3847. </item>
  3848. </choices>
  3849. <script type="javascript" ev:event="xforms-value-changed">
  3850. <![CDATA[
  3851. if(grd_unsl.rows > grd_unsl.fixedRows)
  3852. {
  3853. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  3854. for(var i = 1 ; i <= vLength ; i++)
  3855. {
  3856. model.setValue(grd_unsl.nodeset + "[" + i + "]/acountingflag", model.getValue("/root/hidden/condition/acountingflag"));
  3857. }
  3858. grd_unsl.refresh();
  3859. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3860. {
  3861. grd_unsl.addStatus(i, "update");
  3862. }
  3863. }
  3864. ]]>
  3865. </script>
  3866. </select1>
  3867. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:138px; background-color:#fffbf2; border-color:#ffd799; "/>
  3868. <caption id="caption7" class="search_name" style="left:11px; top:10px; width:101px; height:17px; font-family:돋움; ">전표유형 :</caption>
  3869. <line id="line5" class="line_4" style="x1:1097px; y1:9px; x2:1097px; y2:78px; border-color:#ffe4bb; border-left-style:solid; "/>
  3870. <caption id="caption19" class="search_name" style="left:415px; top:10px; width:101px; height:17px; ">작성일자 :</caption>
  3871. <caption id="caption22" class="search_name" style="left:745px; top:10px; width:101px; height:17px; ">전표구분 :</caption>
  3872. <caption id="caption16" class="search_name" style="left:11px; top:34px; width:99px; height:17px; font-family:돋움; ">전표적요 :</caption>
  3873. <select1 id="rdo_slipkind" ref="/root/hidden/condition/slipkind" class="radio_search" appearance="full" cellspacing="10" cols="5" overflow="visible" style="left:114px; top:10px; width:296px; height:20px; vertical-align:middle; border-style:none; ">
  3874. <choices>
  3875. <itemset>
  3876. <label/>
  3877. <value/>
  3878. </itemset>
  3879. </choices>
  3880. <script type="javascript" ev:event="xforms-value-changed">
  3881. <![CDATA[
  3882. fClearClick();
  3883. ]]>
  3884. </script>
  3885. </select1>
  3886. <input id="ipt_unsldd" ref="/root/hidden/condition/unsldd" class="input_s_essential" navindex="1" inputtype="date" style="left:506px; top:9px; width:120px; height:19px; ">
  3887. <script type="javascript" ev:event="xforms-value-changed">
  3888. <![CDATA[
  3889. fClearClick();
  3890. ]]>
  3891. </script>
  3892. </input>
  3893. <input id="ipt_unslno" ref="/root/hidden/condition/unslno" class="input_s_essential" maxlength="4" style="left:643px; top:9px; width:48px; height:19px; ">
  3894. <script type="javascript" ev:event="xforms-value-changed">
  3895. <![CDATA[
  3896. var vUnslno = model.getValue("/root/hidden/condition/unslno");
  3897. if (!vUnslno.isNumber())
  3898. {
  3899. messageBox("번호(숫자)를 " ,"C001");
  3900. return;
  3901. }
  3902. setInputNodeCurText();
  3903. var vUnslno = model.getValue("/root/hidden/condition/unslno").getLeftPad(4,"0");
  3904. model.setValue("/root/hidden/condition/unslno",vUnslno);
  3905. model.refresh();
  3906. btn_search.dispatch("DOMActivate");
  3907. ]]>
  3908. </script>
  3909. <script type="javascript" ev:event="onkeypress">
  3910. <![CDATA[
  3911. if (event.keyCode == "13") {
  3912. ipt_unslno.dispatch("xforms-value-changed");
  3913. }
  3914. ]]>
  3915. </script>
  3916. </input>
  3917. <select1 id="cmb_slipflag" ref="/root/hidden/condition/slipflag" class="combo_default" appearance="minimal" style="left:860px; top:9px; width:187px; height:19px; ">
  3918. <choices>
  3919. <itemset nodeset="/root/init/R0008list/R0008">
  3920. <label ref="cdnm"/>
  3921. <value ref="cdid"/>
  3922. </itemset>
  3923. </choices>
  3924. <script type="javascript" ev:event="xforms-value-changed">
  3925. <![CDATA[
  3926. if(model.getValue(cmb_slipflag.attribute("ref")) == "A")
  3927. {
  3928. messageBox("전년도 예산을 사용합니다.\n전년도 예산을 확인 후 작업하세요.", "I000");
  3929. }
  3930. else if(model.getValue(cmb_slipflag.attribute("ref")) == "B")
  3931. {
  3932. if(getUserInfo("dutplcecd") != acntdept)
  3933. {
  3934. messageBox("재무팀 권한으로만 결산전표를 생성할 수 있습니다.", "I000");
  3935. model.setValue(cmb_slipflag.attribute("ref"), "1");
  3936. cmb_slipflag.refresh();
  3937. return false;
  3938. }
  3939. else
  3940. {
  3941. messageBox("예산과 연동되지 않습니다.", "I000");
  3942. }
  3943. }
  3944. else if(model.getValue(cmb_slipflag.attribute("ref")) == "9")
  3945. {
  3946. messageBox("반제전표는 반제 자동분개에서 작성하세요", "I000");
  3947. model.setValue(cmb_slipflag.attribute("ref"), "1");
  3948. cmb_slipflag.refresh();
  3949. return false;
  3950. }
  3951. if(grd_unsl.rows > grd_unsl.fixedRows)
  3952. {
  3953. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  3954. for(var i = 1 ; i <= vLength ; i++)
  3955. {
  3956. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipflag", model.getValue("/root/hidden/condition/slipflag"));
  3957. }
  3958. grd_unsl.refresh();
  3959. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3960. {
  3961. grd_unsl.addStatus(i, "update");
  3962. }
  3963. }
  3964. if(model.getValue(cmb_slipflag.attribute("ref")) == "2" || model.getValue(cmb_slipflag.attribute("ref")) == "3" || model.getValue(cmb_slipflag.attribute("ref")) == "4" || model.getValue(cmb_slipflag.attribute("ref")) == "T"){
  3965. caption72.visible = true;
  3966. input4.visible = true;
  3967. input5.visible = true;
  3968. caption73.visible = true;
  3969. button5.visible = true;
  3970. }else{
  3971. caption72.visible = false;
  3972. input4.visible = false;
  3973. input5.visible = false;
  3974. caption73.visible = false;
  3975. button5.visible = false;
  3976. }
  3977. // 2011.09.22 CYW 일반전표일 경우 지출결의서 출력버튼 사용가능.
  3978. if(model.getValue(cmb_slipflag.attribute("ref")) == "1"){
  3979. btn_jichul.visible = true;
  3980. }else{
  3981. btn_jichul.visible = false;
  3982. }
  3983. // 2011.09.22 CYW 결산정리전표일 경우 결산정리전표 출력버튼 사용가능.
  3984. if(model.getValue(cmb_slipflag.attribute("ref")) == "Z"){
  3985. btn_accntuncl.visible = true;
  3986. }else{
  3987. btn_accntuncl.visible = false;
  3988. }
  3989. ]]>
  3990. </script>
  3991. </select1>
  3992. <input id="ipt_projectid" ref="/root/hidden/condition/projectid" class="input_search" visibility="hidden" style="left:114px; top:59px; width:81px; height:19px; ">
  3993. <script type="javascript" ev:event="xforms-value-changed">
  3994. <![CDATA[
  3995. fValidationCheck("23", "projectid,projectnm", "", "", "", "", "code");
  3996. fSetProjectValue();
  3997. ]]>
  3998. </script>
  3999. </input>
  4000. <input id="ipt_projectnm" ref="/root/hidden/condition/projectnm" class="input_search" visibility="hidden" style="left:225px; top:59px; width:177px; height:19px; ">
  4001. <script type="javascript" ev:event="xforms-value-changed">
  4002. <![CDATA[
  4003. fValidationCheck("23", "projectid,projectnm", "", "", "", "", "name");
  4004. fSetProjectValue();
  4005. ]]>
  4006. </script>
  4007. </input>
  4008. <button id="btn_projectid" class="icon_search" navindex="-1" visibility="hidden" style="left:202px; top:59px; width:16px; height:16px; ">
  4009. <caption/>
  4010. <script type="javascript" ev:event="DOMActivate">
  4011. <![CDATA[
  4012. misfOpenPopUpList("23", ipt_projectid, "", "projectid,projectnm");
  4013. fSetProjectValue();
  4014. model.refresh();
  4015. ]]>
  4016. </script>
  4017. </button>
  4018. <button id="btn_search" class="btn1_letter2" style="left:1119px; top:9px; width:56px; height:22px; text-align:left; ">
  4019. <caption>조회</caption>
  4020. <script type="javascript" ev:event="DOMActivate">
  4021. <![CDATA[
  4022. openLoadingBar("전표");
  4023. fQueryClick();
  4024. //fCheckServAcnt();
  4025. // fSumExpantAmt();
  4026. fSlipStatus();
  4027. closeLoadingBar();
  4028. ]]>
  4029. </script>
  4030. </button>
  4031. <button id="btn_pre" class="icon_pre" navindex="-1" style="left:629px; top:11px; width:13px; height:15px; ">
  4032. <caption/>
  4033. <script type="javascript" ev:event="DOMActivate">
  4034. <![CDATA[
  4035. var vUnslno = model.getValue("/root/hidden/condition/unslno");
  4036. var vNum = parseInt(vUnslno, 10);
  4037. if (vNum != 1) {
  4038. vNum--;
  4039. } else {
  4040. return;
  4041. }
  4042. model.setValue("/root/hidden/condition/unslno", vNum.toString().getLeftPad(4,"0"));
  4043. model.refresh();
  4044. btn_search.dispatch("DOMActivate");
  4045. ]]>
  4046. </script>
  4047. </button>
  4048. <button id="btn_next" class="icon_next" navindex="-1" style="left:692px; top:11px; width:13px; height:15px; ">
  4049. <caption/>
  4050. <script type="javascript" ev:event="DOMActivate">
  4051. <![CDATA[
  4052. var vUnslno = model.getValue("/root/hidden/condition/unslno");
  4053. var vNum = parseInt(vUnslno, 10);
  4054. vNum++;
  4055. model.setValue("/root/hidden/condition/unslno", vNum.toString().getLeftPad(4,"0"));
  4056. model.refresh();
  4057. btn_search.dispatch("DOMActivate");
  4058. ]]>
  4059. </script>
  4060. </button>
  4061. <output id="output1" ref="/root/hidden/condition/instcd" visibility="hidden" style="left:1160px; top:10px; width:30px; height:19px; "/>
  4062. <input id="ipt_defrayreqdd" ref="/root/hidden/condition/defrayreqdd" class="input_s_essential" navindex="5" inputtype="date" style="left:545px; top:61px; width:108px; height:19px; ">
  4063. <script type="javascript" ev:event="xforms-value-changed">
  4064. <![CDATA[
  4065. if(grd_unsl.rows > grd_unsl.fixedRows)
  4066. {
  4067. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  4068. for(var i = 1 ; i <= vLength ; i++)
  4069. {
  4070. model.setValue(grd_unsl.nodeset + "[" + i + "]/defrayreqdd", model.getValue("/root/hidden/condition/defrayreqdd"));
  4071. }
  4072. grd_unsl.refresh();
  4073. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  4074. {
  4075. grd_unsl.addStatus(i, "update");
  4076. }
  4077. }
  4078. ]]>
  4079. </script>
  4080. </input>
  4081. <caption id="cpt_defrayreqdd" class="search_name" style="left:455px; top:60px; width:92px; height:17px; ">기표일자 :</caption>
  4082. <caption id="caption47" class="search_name" visibility="hidden" style="left:11px; top:58px; width:99px; height:17px; font-family:돋움; ">Project ID :</caption>
  4083. <input id="ipt_slipcmt" ref="/root/hidden/condition/slipcmt" class="input_s_essential" navindex="2" imemode="hangul" style="left:114px; top:35px; width:596px; height:19px; ">
  4084. <script type="javascript" ev:event="xforms-value-changed">
  4085. <![CDATA[
  4086. //<bind id="bind1" ref="/root/hidden/condition/slipcmt" readonly="(/root/hidden/drsum) + (/root/hidden/crsum) != 0"/> 전표적요 수정할 수 있도록 수정 최형진 20081002
  4087. if(grd_unsl.rows > grd_unsl.fixedRows)
  4088. {
  4089. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  4090. for(var i = 1 ; i <= vLength ; i++)
  4091. {
  4092. var slipcmt = model.getValue("/root/hidden/condition/slipcmt");
  4093. if (slipcmt == ""){
  4094. slipcmt = " ";
  4095. }
  4096. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipcmt", slipcmt);
  4097. }
  4098. grd_unsl.refresh();
  4099. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  4100. {
  4101. grd_unsl.addStatus(i, "update");
  4102. }
  4103. }
  4104. else
  4105. {
  4106. model.setValue("/root/main/unsl_one/etcnotefact", model.getValue("/root/hidden/condition/slipcmt"));
  4107. ipt_etcnotefact.refresh();
  4108. }
  4109. ]]>
  4110. </script>
  4111. </input>
  4112. <button id="btn_proj" class="btn1_letter2" visibility="hidden" style="left:410px; top:58px; width:56px; height:22px; text-align:left; ">
  4113. <caption>관리</caption>
  4114. <script type="javascript" ev:event="DOMActivate">
  4115. <![CDATA[
  4116. modal("SMRAC00800");
  4117. ]]>
  4118. </script>
  4119. </button>
  4120. <shape id="shp_number12" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:970px; top:35px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  4121. <shape id="shp_number01" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:6px; top:34px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  4122. <shape id="shp_number13" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:1005px; top:35px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  4123. <shape id="shp_number02" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:6px; top:58px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  4124. <shape id="shp_number14" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:1040px; top:35px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  4125. <shape id="shp_number15" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:1075px; top:35px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  4126. <shape id="shp_number08" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:740px; top:35px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  4127. <output id="opt_number01" visibility="hidden" style="left:6px; top:34px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">1</output>
  4128. <output id="opt_number14" visibility="hidden" style="left:1040px; top:35px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">14</output>
  4129. <output id="opt_number15" visibility="hidden" style="left:1075px; top:35px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">15</output>
  4130. <output id="opt_number08" visibility="hidden" style="left:740px; top:35px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">8</output>
  4131. <output id="opt_number12" visibility="hidden" style="left:970px; top:35px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">12</output>
  4132. <output id="opt_number02" visibility="hidden" style="left:6px; top:58px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">2</output>
  4133. <output id="opt_number13" visibility="hidden" style="left:1005px; top:35px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">13</output>
  4134. <button id="btn_transslip" class="btn4_letter6" visibility="hidden" style="left:340px; top:50px; width:104px; height:22px; ">
  4135. <caption>지출대체전표</caption>
  4136. <script type="javascript" ev:event="DOMActivate">
  4137. <![CDATA[
  4138. if (!fSlipAprvChk()) {
  4139. return;
  4140. }
  4141. if (model.getValue(rdo_slipkind.attribute("ref")) != "3")
  4142. {
  4143. messageBox("출금전표만 지출대체전표로 전환할 수 있습니다.","I000");
  4144. return;
  4145. }
  4146. var updtdata = getGridUpdateData(grd_unsl);
  4147. if (updtdata != "")
  4148. {
  4149. messageBox("변경된 데이터 저장 후 작업하세요.","I000");
  4150. return;
  4151. }
  4152. var vRowCount = 0;
  4153. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  4154. {
  4155. if(grd_unsl.rowStatus(i) == 0)
  4156. {
  4157. vRowCount = 1;
  4158. continue;
  4159. }
  4160. }
  4161. model.setValue("/root/hidden/condition/instcd", model.getValue(cmb_instcd.attribute("ref")));
  4162. if(vRowCount == 0) return;
  4163. submit("TXRAD00109");
  4164. fQueryClick();
  4165. ]]>
  4166. </script>
  4167. </button>
  4168. <button id="button2" class="btn4_letter4" disabled="false" visibility="hidden" style="left:630px; top:58px; width:80px; height:22px; ">
  4169. <caption>DTI 홈</caption>
  4170. <script type="javascript" ev:event="DOMActivate">
  4171. <![CDATA[
  4172. radfGetDTIPassword();
  4173. ]]>
  4174. </script>
  4175. </button>
  4176. <select1 id="rdo_drcrcmt" ref="/root/hidden/condition/drcrcmt" disabled="false" navindex="-1" visibility="hidden" appearance="full" cellspacing="75" cols="2" overflow="visible" style="left:850px; top:35px; width:276px; height:17px; border-style:none; ">
  4177. <choices>
  4178. <item>
  4179. <label>차변</label>
  4180. <value>D</value>
  4181. </item>
  4182. <item>
  4183. <label>대변</label>
  4184. <value>C</value>
  4185. </item>
  4186. </choices>
  4187. </select1>
  4188. <caption id="cap_drcrcmt" class="search_name" visibility="hidden" style="left:745px; top:65px; width:112px; height:17px; ">적요차대구분 :</caption>
  4189. <caption id="cap_acountingflag" class="search_name" visibility="hidden" style="left:745px; top:65px; width:112px; height:17px; ">회계 구분 :</caption>
  4190. <input id="input1" ref="/root/hidden/condition/ymdaction" class="input_s_essential" navindex="4" inputtype="date" style="left:340px; top:61px; width:108px; height:19px; ">
  4191. <script type="javascript" ev:event="xforms-value-changed">
  4192. <![CDATA[
  4193. if(grd_unsl.rows > grd_unsl.fixedRows)
  4194. {
  4195. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  4196. for(var i = 1 ; i <= vLength ; i++)
  4197. {
  4198. model.setValue(grd_unsl.nodeset + "[" + i + "]/ymdaction", model.getValue("/root/hidden/condition/ymdaction"));
  4199. }
  4200. grd_unsl.refresh();
  4201. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  4202. {
  4203. grd_unsl.addStatus(i, "update");
  4204. }
  4205. }
  4206. ]]>
  4207. </script>
  4208. </input>
  4209. <caption id="caption67" class="search_name" style="left:245px; top:60px; width:92px; height:17px; ">행위일자 :</caption>
  4210. <caption id="caption69" class="search_name" style="left:11px; top:61px; width:99px; height:17px; ">예산합의일 :</caption>
  4211. <input id="input2" ref="/root/hidden/condition/ymdpum" class="input_s_essential" navindex="3" inputtype="date" style="left:114px; top:59px; width:108px; height:19px; ">
  4212. <script type="javascript" ev:event="xforms-value-changed">
  4213. <![CDATA[
  4214. if(grd_unsl.rows > grd_unsl.fixedRows)
  4215. {
  4216. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  4217. for(var i = 1 ; i <= vLength ; i++)
  4218. {
  4219. model.setValue(grd_unsl.nodeset + "[" + i + "]/ymdpum", model.getValue("/root/hidden/condition/ymdpum"));
  4220. }
  4221. grd_unsl.refresh();
  4222. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  4223. {
  4224. grd_unsl.addStatus(i, "update");
  4225. }
  4226. }
  4227. ]]>
  4228. </script>
  4229. </input>
  4230. <select1 id="cmb_instcd" ref="/root/main/unsl_one/instcd" class="combo_essential" disabled="true" navindex="-1" appearance="minimal" style="left:114px; top:84px; width:283px; height:19px; ">
  4231. <choices>
  4232. <itemset nodeset="/root/init/Z0007list/Z0007">
  4233. <label ref="cdnm"/>
  4234. <value ref="cdid"/>
  4235. </itemset>
  4236. </choices>
  4237. </select1>
  4238. <input id="ipt_costcntrdeptnm" ref="/root/main/unsl_one/costcntrdeptnm" class="input_essential" style="left:661px; top:84px; width:170px; height:19px; ">
  4239. <script type="javascript" ev:event="xforms-value-changed">
  4240. <![CDATA[
  4241. if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
  4242. {
  4243. racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
  4244. }
  4245. else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
  4246. {
  4247. model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
  4248. fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
  4249. }
  4250. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
  4251. || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
  4252. {
  4253. messageBox("권한이 없습니다.", "I000");
  4254. model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  4255. ipt_costcntrdeptcd.refresh();
  4256. ipt_costcntrdeptcd.dispatch("xforms-value-changed");
  4257. return false;
  4258. }
  4259. if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
  4260. {
  4261. model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4262. model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4263. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4264. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4265. model.refresh();
  4266. }
  4267. fRemoveAcntValue();
  4268. ]]>
  4269. </script>
  4270. <script type="javascript" ev:event="onkeypress">
  4271. <![CDATA[
  4272. if(event.keyCode == 13)
  4273. {
  4274. model.setFocus("ipt_acntnm");
  4275. }
  4276. ]]>
  4277. </script>
  4278. </input>
  4279. <input id="ipt_costcntrdeptcd" ref="/root/main/unsl_one/costcntrdeptcd" class="input_essential" navindex="-1" maxlength="11" style="left:555px; top:84px; width:80px; height:19px; ">
  4280. <script type="javascript" ev:event="xforms-value-changed">
  4281. <![CDATA[
  4282. if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
  4283. {
  4284. racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
  4285. }
  4286. else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
  4287. {
  4288. model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
  4289. fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
  4290. }
  4291. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
  4292. || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
  4293. {
  4294. messageBox("권한이 없습니다.", "I000");
  4295. model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  4296. ipt_costcntrdeptcd.refresh();
  4297. ipt_costcntrdeptcd.dispatch("xforms-value-changed");
  4298. return false;
  4299. }
  4300. model.setFocus("ipt_costcntrdeptnm");
  4301. if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
  4302. {
  4303. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4304. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4305. model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4306. model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4307. model.setValue("/root/hidden/instcardseqnoinfo/instcardseqno", ""); // 사용중인 법인카드 번호 삭제
  4308. model.refresh();
  4309. }
  4310. fRemoveAcntValue();
  4311. model.refresh();
  4312. ]]>
  4313. </script>
  4314. <script type="javascript" ev:event="onkeypress">
  4315. <![CDATA[
  4316. if(event.keyCode == 13)
  4317. {
  4318. model.setFocus("ipt_acntnm");
  4319. }
  4320. ]]>
  4321. </script>
  4322. </input>
  4323. <button id="btn_costcntrdeptcd" class="icon_search" navindex="-1" style="left:639px; top:86px; width:16px; height:16px; ">
  4324. <caption/>
  4325. <script type="javascript" ev:event="DOMActivate">
  4326. <![CDATA[
  4327. if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
  4328. {
  4329. fOpenPopupDeptHelp(ipt_costcntrdeptcd, "costcntrdeptcd,costcntrdeptnm"); //전체부서
  4330. }
  4331. else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
  4332. {
  4333. model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
  4334. fOpenPopupHelp("47", ipt_costcntrdeptcd, "costcntrdeptcd,costcntrdeptnm", "", "ipt_acntyy", "acntyy"); //예산편성부서
  4335. }
  4336. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
  4337. || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
  4338. {
  4339. messageBox("권한이 없습니다.", "I000");
  4340. model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  4341. ipt_costcntrdeptcd.refresh();
  4342. ipt_costcntrdeptcd.dispatch("xforms-value-changed");
  4343. return false;
  4344. }
  4345. model.refresh();
  4346. if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
  4347. {
  4348. model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4349. model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4350. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4351. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4352. model.refresh();
  4353. }
  4354. fRemoveAcntValue();
  4355. ]]>
  4356. </script>
  4357. </button>
  4358. <select1 id="cmb_deptflag" ref="/root/hidden/deptflag" class="combo_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:414px; top:83px; width:97px; height:19px; ">
  4359. <choices>
  4360. <item>
  4361. <label>청구부서</label>
  4362. <value>1</value>
  4363. </item>
  4364. <item>
  4365. <label>예산부서</label>
  4366. <value>2</value>
  4367. </item>
  4368. </choices>
  4369. </select1>
  4370. <caption id="caption18" class="search_name" style="left:11px; top:84px; width:99px; height:17px; font-family:돋움; ">기관구분 :</caption>
  4371. <input id="ipt_unslwrit" ref="/root/hidden/userinfo/unslwrit" class="input_essential" disabled="true" navindex="-1" style="left:556px; top:110px; width:102px; height:19px; "/>
  4372. <input id="ipt_slipdeptnm" ref="/root/hidden/condition/slipdeptnm" class="input_essential" disabled="true" visibility="visible" style="left:240px; top:110px; width:155px; height:19px; ">
  4373. <script type="javascript" ev:event="xforms-value-changed">
  4374. <![CDATA[
  4375. racfDeptValidCheck("slipdeptcd,slipdeptnm"); // 전체부서
  4376. fUpdateSlipDeptCD();
  4377. ]]>
  4378. </script>
  4379. </input>
  4380. <input id="ipt_slipdeptcd" ref="/root/hidden/condition/slipdeptcd" class="input_essential" disabled="true" navindex="-1" visibility="visible" maxlength="11" style="left:114px; top:110px; width:102px; height:19px; ">
  4381. <script type="javascript" ev:event="xforms-value-changed">
  4382. <![CDATA[
  4383. racfDeptValidCheck("slipdeptcd,slipdeptnm"); // 전체부서
  4384. fUpdateSlipDeptCD();
  4385. model.setFocus("ipt_slipdeptnm");
  4386. ]]>
  4387. </script>
  4388. </input>
  4389. <button id="btn_slipdeptcd" class="icon_search" disabled="false" navindex="-1" visibility="hidden" style="left:219px; top:111px; width:16px; height:16px; ">
  4390. <caption/>
  4391. <script type="javascript" ev:event="DOMActivate">
  4392. <![CDATA[
  4393. fOpenPopupDeptHelp(ipt_slipdeptcd, "slipdeptcd,slipdeptnm"); //전체부서
  4394. fUpdateSlipDeptCD();
  4395. ]]>
  4396. </script>
  4397. </button>
  4398. <input id="ipt_unslwritnm" ref="/root/hidden/userinfo/usernm" class="input_essential" disabled="true" navindex="-1" style="left:661px; top:110px; width:170px; height:19px; "/>
  4399. <caption id="caption64" class="search_name" style="left:11px; top:111px; width:99px; height:17px; font-family:돋움; ">작성부서 :</caption>
  4400. <caption id="caption23" class="search_name" style="left:455px; top:111px; width:101px; height:17px; font-family:돋움; ">작성자 :</caption>
  4401. <caption id="caption71" class="search_name" style="left:455px; top:86px; width:101px; height:17px; ">청구부서 :</caption>
  4402. <caption id="caption72" class="search_name" visibility="hidden" style="left:845px; top:86px; width:91px; height:17px; ">발의일자 :</caption>
  4403. <input id="input4" ref="/root/hidden/condition/genrfrom" class="input_s_essential" navindex="1" visibility="hidden" inputtype="date" style="left:935px; top:84px; width:110px; height:19px; text-align:center; ">
  4404. <script type="javascript" ev:event="xforms-value-changed">
  4405. <![CDATA[
  4406. //fClearClick();
  4407. ]]>
  4408. </script>
  4409. </input>
  4410. <input id="input5" ref="/root/hidden/condition/genrto" class="input_s_essential" navindex="1" visibility="hidden" inputtype="date" style="left:1065px; top:84px; width:110px; height:19px; text-align:center; ">
  4411. <script type="javascript" ev:event="xforms-value-changed">
  4412. <![CDATA[
  4413. //fClearClick();
  4414. ]]>
  4415. </script>
  4416. </input>
  4417. <caption id="caption73" visibility="hidden" style="left:1045px; top:85px; width:20px; height:20px; text-align:center; ">~</caption>
  4418. </group>
  4419. <line id="line13" class="line_2" visibility="hidden" style="x1:0px; y1:152px; x2:1195px; y2:152px; "/>
  4420. <caption id="caption2" class="cell_1" visibility="hidden" style="left:0px; top:154px; width:110px; height:23px; ">차대구분</caption>
  4421. <caption id="caption3" class="cell_1" visibility="hidden" style="left:403px; top:129px; width:110px; height:23px; ">귀속부서</caption>
  4422. <caption id="caption8" class="cell_1" visibility="hidden" style="left:403px; top:234px; width:110px; height:23px; ">적요</caption>
  4423. <caption id="caption1" class="tit_2" style="left:5px; top:150px; width:131px; height:13px; ">전표정보</caption>
  4424. <caption id="caption24" class="cell_1" visibility="hidden" style="left:403px; top:154px; width:110px; height:23px; ">계정과목</caption>
  4425. <caption id="caption26" class="cell_1" visibility="hidden" style="left:0px; top:184px; width:110px; height:23px; ">상대처구분</caption>
  4426. <caption id="cpt_bugtamt" class="cell_1" visibility="hidden" style="left:915px; top:155px; width:104px; height:23px; ">예산가용액</caption>
  4427. <caption id="caption10" class="cell_1" style="left:834px; top:735px; width:120px; height:23px; text-align:center; vertical-align:middle; ">금액합계</caption>
  4428. <caption id="caption13" bind="bind_caption13" format="(-)#,###" style="left:955px; top:735px; width:110px; height:23px; text-align:right; vertical-align:middle; padding-right:2; background-color:#fcd2c1; "/>
  4429. <caption id="caption14" bind="bind_caption14" format="(-)#,###" style="left:1066px; top:735px; width:110px; height:23px; text-align:right; vertical-align:middle; padding-right:2; background-color:#ffe79d; "/>
  4430. <caption id="caption12" class="cell_1" style="left:403px; top:475px; width:110px; height:23px; ">승인정보</caption>
  4431. <input id="ipt_slipaprvinfo" ref="/root/main/unsl_one/sanctno" class="input_default" disabled="true" navindex="-1" style="left:515px; top:477px; width:175px; height:19px; font-weight:bold; text-align:center; "/>
  4432. <caption id="caption15" class="cell_1" visibility="hidden" style="left:695px; top:475px; width:110px; height:23px; ">승인일자</caption>
  4433. <input id="ipt_slipaprvdd" class="input_default" visibility="hidden" inputtype="date" style="left:807px; top:297px; width:115px; height:19px; "/>
  4434. <line id="line9" class="line_3" style="x1:0px; y1:369px; x2:1195px; y2:369px; "/>
  4435. <line id="line10" class="line_2" visibility="hidden" style="x1:0px; y1:282px; x2:1195px; y2:282px; "/>
  4436. <select1 id="rdo_drcrflag" ref="/root/main/unsl_one/drcrflag" navindex="-1" visibility="hidden" appearance="full" cellspacing="75" cols="2" overflow="visible" style="left:112px; top:157px; width:276px; height:17px; border-style:none; ">
  4437. <choices>
  4438. <item>
  4439. <label>차변</label>
  4440. <value>D</value>
  4441. </item>
  4442. <item>
  4443. <label>대변</label>
  4444. <value>C</value>
  4445. </item>
  4446. </choices>
  4447. <script type="javascript" ev:event="xforms-value-changed">
  4448. <![CDATA[
  4449. var drcrflag = model.getValue("/root/main/unsl_one/drcrflag");
  4450. //fRowClearClick();
  4451. model.setValue("/root/main/unsl_one/drcrflag", drcrflag);
  4452. fAcntSelect(); //-> 대체전표 작성시 차변 대변 전환 시 정보 유지되도록 수정 최형진 20081001
  4453. model.refresh();
  4454. ]]>
  4455. </script>
  4456. </select1>
  4457. <input id="ipt_acntnm" ref="/root/main/unsl_one/acntnm" class="input_essential" navindex="6" visibility="hidden" imemode="hangul" style="left:619px; top:156px; width:184px; height:19px; ">
  4458. <script type="javascript" ev:event="onkeypress">
  4459. <![CDATA[
  4460. if (event.keyCode == "13")
  4461. {
  4462. if (switch8.selectedIndex == 0)
  4463. {
  4464. model.setFocus("ipt_custnm");
  4465. }
  4466. else
  4467. {
  4468. model.setFocus("ipt_custnm2");
  4469. }
  4470. }
  4471. ]]>
  4472. </script>
  4473. <script type="javascript" ev:event="xforms-value-changed">
  4474. <![CDATA[
  4475. model.removeNodeset("/root/hidden/projectidlist");
  4476. fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  4477. fAcntSelect();
  4478. //fCheckServAcnt();
  4479. ipt_amt.dispatch("xforms-value-changed");
  4480. ]]>
  4481. </script>
  4482. </input>
  4483. <button id="btn_acntcd" class="icon_search" navindex="-1" visibility="hidden" style="left:599px; top:158px; width:16px; height:16px; ">
  4484. <caption/>
  4485. <script type="javascript" ev:event="DOMActivate">
  4486. <![CDATA[
  4487. model.removeNodeset("/root/hidden/projectidlist");
  4488. fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  4489. fAcntSelect();
  4490. //fCheckServAcnt();
  4491. model.setValue("/root/main/unsl_one/cdbojo1", "");
  4492. model.setValue("/root/main/unsl_one/cdbojo2", "*");
  4493. model.setValue("/root/main/unsl_one/profflag", "6");
  4494. model.setValue("/root/main/unsl_one/seqno", "1");
  4495. submit("TRRAD01701");
  4496. ipt_amt.dispatch("xforms-value-changed");
  4497. ]]>
  4498. </script>
  4499. </button>
  4500. <input id="ipt_amt" ref="/root/main/unsl_one/amt" class="input_essential" visibility="hidden" imemode="alpha" format="(-)#,###" style="left:112px; top:236px; width:288px; height:19px; text-align:right; ">
  4501. <script type="javascript" ev:event="onkeypress">
  4502. <![CDATA[
  4503. if (event.keyCode == "13")
  4504. {
  4505. model.setFocus("ipt_etcnotefact");
  4506. }
  4507. ]]>
  4508. </script>
  4509. <script type="javascript" ev:event="xforms-value-changed">
  4510. <![CDATA[
  4511. // if(!(model.getValue("/root/hidden/condition/unsldd") <= "20090228" && (model.getValue("/root/main/unsl_one/instcd") == "012" || model.getValue("/root/main/unsl_one/instcd") == "001"))) // (20090302)
  4512. // {
  4513. var sABugtUseYn = model.getValue("/root/hidden/acntcdinfo/bugtuseyn");
  4514. var sABugtCntrYn = model.getValue("/root/hidden/acntcdinfo/bugtcntryn");
  4515. if(sABugtCntrYn == "Y" && sABugtUseYn == "Y" && ipt_bugtamt.visible == true && (model.getValue(cmb_slipflag.attribute("ref")) != "A" && model.getValue(cmb_slipflag.attribute("ref")) != "B"))
  4516. {
  4517. var iAppAmt = parseInt(model.getValue("/root/main/unsl_one/amt"), 10);
  4518. var iBugtAmt = parseInt(model.getValue("/root/main/unsl_one/bugtamt"), 10);
  4519. var iBugtFlag = model.getValue("/root/main/unsl_one/bugtflag");
  4520. var iDrCrFlag = model.getValue("/root/main/unsl_one/drcrflag");
  4521. var iAcntFlag = model.getValue("/root/hidden/acntcdinfo/acntflag");
  4522. var iBalflag = model.getValue("/root/hidden/acntcdinfo/balflag");
  4523. // alert("iAppAmt : " + iAppAmt + "\niBugtAmt : " + iBugtAmt + "\niBugtFlag : " + iBugtFlag + "\niDrCrFlag : " + iDrCrFlag + "\niAcntFlag : " + iAcntFlag + "\niBalflag : " + iBalflag);
  4524. if(iAcntFlag == '5' && iBugtFlag == '2' && iDrCrFlag == 'C')
  4525. {
  4526. iBugtFlag = '1';
  4527. iAppAmt = iAppAmt * (-1);
  4528. }
  4529. else if(iAcntFlag == '4' && iBugtFlag == '1' && iDrCrFlag == 'D')
  4530. {
  4531. iBugtFlag = '2';
  4532. iAppAmt = iAppAmt * (-1);
  4533. }
  4534. else if(iBalflag == iDrCrFlag)
  4535. {
  4536. // continue;
  4537. }
  4538. // alert("iAppAmt : " + iAppAmt +"\niBugtAmt : " + iBugtAmt);
  4539. if(iAppAmt > iBugtAmt)
  4540. {
  4541. messageBox("예산가용액을 초과", "E001");
  4542. model.setValue("/root/main/unsl_one/amt", 0);
  4543. model.refresh();
  4544. model.setFocus("ipt_amt");
  4545. return;
  4546. }
  4547. }
  4548. //fCheckServAcnt();
  4549. // }
  4550. ]]>
  4551. </script>
  4552. </input>
  4553. <select1 id="cmb_custflag" ref="/root/main/unsl_one/custflag" class="combo_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:112px; top:186px; width:130px; height:19px; ">
  4554. <choices>
  4555. <itemset nodeset="/root/init/custflaglist/custflag">
  4556. <label ref="nm"/>
  4557. <value ref="cd"/>
  4558. </itemset>
  4559. </choices>
  4560. <script type="javascript" ev:event="xforms-value-changed">
  4561. <![CDATA[
  4562. var custflag = model.getValue("/root/main/unsl_one/custflag");
  4563. model.setValue("/root/main/unsl_one/custnm","");
  4564. if (custflag == "9" || custflag == "") {
  4565. model.setValue("/root/main/unsl_one/custcd","-");
  4566. model.setFocus("ipt_custnm2");
  4567. model.toggle("명관리");
  4568. } else {
  4569. model.setValue("/root/main/unsl_one/custcd","");
  4570. model.setFocus("ipt_custnm");
  4571. model.toggle("코드관리");
  4572. }
  4573. model.refresh();
  4574. ]]>
  4575. </script>
  4576. </select1>
  4577. <input id="ipt_etcnotefact" ref="/root/main/unsl_one/etcnotefact" class="input_essential" visibility="hidden" imemode="hangul" style="left:515px; top:236px; width:680px; height:19px; "/>
  4578. <select1 id="cmb_bugtcd" ref="/root/main/unsl_one/bugtcd" class="combo_essential" visibility="hidden" appearance="minimal" style="left:900px; top:285px; width:27px; height:19px; ">
  4579. <choices>
  4580. <item>
  4581. <label>-</label>
  4582. <value>01</value>
  4583. </item>
  4584. </choices>
  4585. </select1>
  4586. <input id="ipt_bugtamt" ref="/root/main/unsl_one/bugtamt" class="input_essential" disabled="true" visibility="hidden" format="(-)#,###" style="left:1023px; top:157px; width:170px; height:19px; text-align:right; "/>
  4587. <button id="btn_grdclear" class="btn2_letter3" visibility="hidden" style="left:110px; top:225px; width:53px; height:19px; ">
  4588. <caption>행정리</caption>
  4589. <script type="javascript" ev:event="DOMActivate">
  4590. <![CDATA[
  4591. fRowClearClick();
  4592. ]]>
  4593. </script>
  4594. </button>
  4595. <button id="btn_slipaprv" class="btn5_letter4" visibility="hidden" style="left:925px; top:297px; width:64px; height:19px; ">
  4596. <caption>전표승인</caption>
  4597. <script type="javascript" ev:event="DOMActivate">
  4598. <![CDATA[
  4599. fSlipAprvClick();
  4600. ]]>
  4601. </script>
  4602. </button>
  4603. <button id="btn_send" class="btn4_letter6" visibility="hidden" style="left:1002px; top:98px; width:104px; height:22px; ">
  4604. <caption>전송 및 출력</caption>
  4605. <script type="javascript" ev:event="DOMActivate">
  4606. <![CDATA[
  4607. if(fSlipPrintClick("N"))
  4608. {
  4609. fSlipStatus();
  4610. fQueryClick();
  4611. }
  4612. ]]>
  4613. </script>
  4614. </button>
  4615. <button id="btn_prt" class="btn4_letter4" visibility="hidden" style="left:919px; top:98px; width:80px; height:22px; ">
  4616. <caption>미리보기</caption>
  4617. <script type="javascript" ev:event="DOMActivate">
  4618. <![CDATA[
  4619. if (grd_unsl.rows == 1)
  4620. {
  4621. messageBox("출력할 내용이" ,"I004");
  4622. return false;
  4623. }
  4624. iRow = grd_unsl.findRow("N", 1, grd_unsl.colRef("sanctyn"));
  4625. if(iRow >0)
  4626. {
  4627. fSlipPrintClick("Y");
  4628. }
  4629. else
  4630. {
  4631. messageBox("이미 전송된 전표입니다.", "I000");
  4632. }
  4633. ]]>
  4634. </script>
  4635. </button>
  4636. <button id="btn_bugtorgnzspec" class="btn2_letter6" visibility="hidden" style="left:805px; top:155px; width:86px; height:19px; ">
  4637. <caption>예산편성내역</caption>
  4638. <script type="javascript" ev:event="DOMActivate">
  4639. <![CDATA[
  4640. // if (!fSlipAprvChk("N")) {
  4641. // return;
  4642. // }
  4643. if(getUserInfo("dutplcecd") == acntdept || getUserInfo("dutplcecd") == bugtdept || radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'BUGTSEARCHYN'))
  4644. {
  4645. fBugtClick();
  4646. ipt_amt.dispatch("xforms-value-changed");
  4647. }
  4648. else
  4649. {
  4650. messageBox("권한이 없어 조회 할 수", "I004");
  4651. }
  4652. ]]>
  4653. </script>
  4654. </button>
  4655. <button id="btn_setacnt" class="btn4_letter6" visibility="hidden" style="left:945px; top:110px; width:104px; height:22px; ">
  4656. <caption>이체계좌등록</caption>
  4657. <script type="javascript" ev:event="DOMActivate">
  4658. <![CDATA[
  4659. if (grd_unsl.rows > 0)
  4660. {
  4661. if (rdo_slipkind.value == "2")
  4662. {
  4663. messageBox("입금전표는 이체계좌를 등록하지 않습니다.","I000");
  4664. return;
  4665. }
  4666. var updtdata = getGridUpdateData(grd_unsl);
  4667. if (updtdata != "")
  4668. {
  4669. messageBox("변경된 데이터 저장 후 작업하세요.","I000");
  4670. return;
  4671. }
  4672. // if(!transAcntException())
  4673. // {
  4674. // messageBox("대변에 서로다른 계좌가 존재하므로 이체계좌를 등록할 수 없습니다..","I000");
  4675. // return;
  4676. // }
  4677. fSetAcntClick();
  4678. }
  4679. ]]>
  4680. </script>
  4681. </button>
  4682. <switch id="switch1" class="sw_no_border" visibility="hidden" style="left:0px; top:284px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4683. <case id="case_notenm1" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4684. <caption id="caption34" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4685. <output id="opt_notenm1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4686. <input id="ipt_notenm1" ref="/root/main/unsl_one/notefactspec1" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4687. </case>
  4688. <case id="case_notecd1" sgetUserInfoelected="true" style="background-color:transparent; ">
  4689. <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4690. <output id="opt_notecd1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4691. <input id="ipt_notecd1" ref="/root/main/unsl_one/notefactcd1" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4692. <script type="javascript" ev:event="xforms-value-changed">
  4693. <![CDATA[
  4694. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4695. fAactCheck();
  4696. ]]>
  4697. </script>
  4698. <script type="javascript" ev:event="onkeypress">
  4699. <![CDATA[
  4700. if (event.keyCode == "13") {
  4701. model.setFocus("btn_grdadd");
  4702. }
  4703. ]]>
  4704. </script>
  4705. </input>
  4706. <input id="ipt_notecdnm1" ref="/root/main/unsl_one/notefactspec1" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4707. <script type="javascript" ev:event="xforms-value-changed">
  4708. <![CDATA[
  4709. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4710. fAactCheck();
  4711. ]]>
  4712. </script>
  4713. <script type="javascript" ev:event="onkeypress">
  4714. <![CDATA[
  4715. if (event.keyCode == "13") {
  4716. model.setFocus("btn_grdadd");
  4717. }
  4718. ]]>
  4719. </script>
  4720. </input>
  4721. <button id="btn_notecd1" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4722. <caption/>
  4723. <script type="javascript" ev:event="DOMActivate">
  4724. <![CDATA[
  4725. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd1"), ipt_notecd1, "notefactcd1,notefactspec1", "", "ipt_acntcd", "acntcd");
  4726. fAactCheck();
  4727. ]]>
  4728. </script>
  4729. </button>
  4730. </case>
  4731. <case id="case_notecombo1" style="background-color:transparent; border-color:transparent; ">
  4732. <caption id="caption40" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4733. <output id="opt_notecombo1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4734. <select1 id="cmb_notecombo1" ref="/root/main/unsl_one/notefactcd1" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4735. <choices>
  4736. <itemset nodeset="/root/hidden/acntcdcombo/notecombo1">
  4737. <label ref="cdnm"/>
  4738. <value ref="cdid"/>
  4739. </itemset>
  4740. </choices>
  4741. </select1>
  4742. </case>
  4743. <case id="case_noteblank1" selected="true">
  4744. <caption id="caption39" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4745. <shape id="shp_number07" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:85px; top:2px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  4746. <output id="opt_number07" visibility="hidden" style="left:85px; top:2px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">7</output>
  4747. </case>
  4748. </switch>
  4749. <switch id="switch2" class="sw_no_border" visibility="hidden" style="left:403px; top:464px; width:402px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4750. <case id="case_notenm2" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4751. <caption id="caption9" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4752. <output id="opt_notenm2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4753. <input id="ipt_notenm2" ref="/root/main/unsl_one/notefactspec2" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4754. </case>
  4755. <case id="case_notecd2" selected="true" style="left:0px; top:0px; width:402px; height:25px; background-color:transparent; ">
  4756. <caption id="caption20" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4757. <output id="opt_notecd2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4758. <input id="ipt_notecd2" ref="/root/main/unsl_one/notefactcd2" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4759. <script type="javascript" ev:event="xforms-value-changed">
  4760. <![CDATA[
  4761. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4762. ]]>
  4763. </script>
  4764. </input>
  4765. <input id="ipt_notecdnm2" ref="/root/main/unsl_one/notefactspec2" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4766. <script type="javascript" ev:event="xforms-value-changed">
  4767. <![CDATA[
  4768. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4769. ]]>
  4770. </script>
  4771. </input>
  4772. <button id="btn_notecd2" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4773. <caption/>
  4774. <script type="javascript" ev:event="DOMActivate">
  4775. <![CDATA[
  4776. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd2"), ipt_notecd1, "notefactcd2,notefactspec2", "", "ipt_acntcd", "acntcd");
  4777. ]]>
  4778. </script>
  4779. </button>
  4780. </case>
  4781. <case id="case_notecombo2" style="background-color:transparent; border-color:transparent; ">
  4782. <caption id="caption21" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4783. <output id="opt_notecombo2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4784. <select1 id="cmb_notecombo2" ref="/root/main/unsl_one/notefactcd2" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4785. <choices>
  4786. <itemset nodeset="/root/hidden/acntcdcombo/notecombo2">
  4787. <label ref="cdnm"/>
  4788. <value ref="cdid"/>
  4789. </itemset>
  4790. </choices>
  4791. </select1>
  4792. </case>
  4793. <case id="case_noteblank2">
  4794. <caption id="caption29" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4795. </case>
  4796. </switch>
  4797. <switch id="switch3" class="sw_no_border" visibility="hidden" style="left:0px; top:309px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4798. <case id="case_notenm3" selected="true" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4799. <caption id="caption31" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4800. <output id="opt_notenm3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4801. <input id="ipt_notenm3" ref="/root/main/unsl_one/notefactspec3" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4802. </case>
  4803. <case id="case_notecd3" style="background-color:transparent; ">
  4804. <caption id="caption32" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4805. <output id="opt_notecd3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4806. <input id="ipt_notecd3" ref="/root/main/unsl_one/notefactcd3" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4807. <script type="javascript" ev:event="xforms-value-changed">
  4808. <![CDATA[
  4809. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4810. ]]>
  4811. </script>
  4812. </input>
  4813. <input id="ipt_notecdnm3" ref="/root/main/unsl_one/notefactspec3" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4814. <script type="javascript" ev:event="xforms-value-changed">
  4815. <![CDATA[
  4816. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4817. ]]>
  4818. </script>
  4819. </input>
  4820. <button id="btn_notecd3" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4821. <caption/>
  4822. <script type="javascript" ev:event="DOMActivate">
  4823. <![CDATA[
  4824. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd3"), ipt_notecd1, "notefactcd3,notefactspec3", "", "ipt_acntcd", "acntcd");
  4825. ]]>
  4826. </script>
  4827. </button>
  4828. </case>
  4829. <case id="case_notecombo3" style="background-color:transparent; border-color:transparent; ">
  4830. <caption id="caption35" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4831. <output id="opt_notecombo3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4832. <select1 id="cmb_notecombo3" ref="/root/main/unsl_one/notefactcd3" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4833. <choices>
  4834. <itemset nodeset="/root/hidden/acntcdcombo/notecombo3">
  4835. <label ref="cdnm"/>
  4836. <value ref="cdid"/>
  4837. </itemset>
  4838. </choices>
  4839. </select1>
  4840. </case>
  4841. <case id="case_noteblank3">
  4842. <caption id="caption36" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4843. </case>
  4844. </switch>
  4845. <switch id="switch4" class="sw_no_border" visibility="hidden" style="left:403px; top:489px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4846. <case id="case_notenm4" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4847. <caption id="caption37" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4848. <output id="opt_notenm4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4849. <input id="ipt_notenm4" ref="/root/main/unsl_one/notefactspec4" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4850. </case>
  4851. <case id="case_notecd4" selected="true" style="left:0px; top:0px; width:403px; height:25px; background-color:transparent; ">
  4852. <caption id="caption38" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4853. <output id="opt_notecd4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4854. <input id="ipt_notecd4" ref="/root/main/unsl_one/notefactcd4" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4855. <script type="javascript" ev:event="xforms-value-changed">
  4856. <![CDATA[
  4857. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4858. ]]>
  4859. </script>
  4860. </input>
  4861. <input id="ipt_notecdnm4" ref="/root/main/unsl_one/notefactspec4" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4862. <script type="javascript" ev:event="xforms-value-changed">
  4863. <![CDATA[
  4864. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4865. ]]>
  4866. </script>
  4867. </input>
  4868. <button id="btn_notecd4" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4869. <caption/>
  4870. <script type="javascript" ev:event="DOMActivate">
  4871. <![CDATA[
  4872. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd4"), ipt_notecd1, "notefactcd4,notefactspec4", "", "ipt_acntcd", "acntcd");
  4873. ]]>
  4874. </script>
  4875. </button>
  4876. </case>
  4877. <case id="case_notecombo4" style="background-color:transparent; border-color:transparent; ">
  4878. <caption id="caption41" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4879. <output id="opt_notecombo4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4880. <select1 id="cmb_notecombo4" ref="/root/main/unsl_one/notefactcd4" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4881. <choices>
  4882. <itemset nodeset="/root/hidden/acntcdcombo/notecombo4">
  4883. <label ref="cdnm"/>
  4884. <value ref="cdid"/>
  4885. </itemset>
  4886. </choices>
  4887. </select1>
  4888. </case>
  4889. <case id="case_noteblank4" style="left:0px; top:0px; width:403px; height:25px; ">
  4890. <caption id="caption42" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4891. </case>
  4892. </switch>
  4893. <switch id="switch5" class="sw_no_border" visibility="hidden" style="left:0px; top:389px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4894. <case id="case_notenm5" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4895. <caption id="caption43" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4896. <output id="opt_notenm5" ref="/root/main/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4897. <input id="ipt_notenm5" ref="/root/main/unsl_one/notefactspec5" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4898. </case>
  4899. <case id="case_notecd5" selected="true" style="background-color:transparent; ">
  4900. <caption id="caption44" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4901. <output id="opt_notecd5" ref="/root/main/unsl_one/notefactnm5" visibility="hidden" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4902. <input id="ipt_notecd5" ref="/root/main/unsl_one/notefactcd5" class="input_essential" navindex="-1" visibility="hidden" style="left:112px; top:2px; width:80px; height:19px; ">
  4903. <script type="javascript" ev:event="xforms-value-changed">
  4904. <![CDATA[
  4905. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4906. ]]>
  4907. </script>
  4908. </input>
  4909. <input id="ipt_notecdnm5" ref="/root/main/unsl_one/notefactspec5" class="input_essential" visibility="hidden" style="left:216px; top:2px; width:184px; height:19px; ">
  4910. <script type="javascript" ev:event="xforms-value-changed">
  4911. <![CDATA[
  4912. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4913. ]]>
  4914. </script>
  4915. </input>
  4916. <button id="btn_notecd5" class="icon_search" navindex="-1" visibility="hidden" style="left:196px; top:4px; width:16px; height:16px; ">
  4917. <caption/>
  4918. <script type="javascript" ev:event="DOMActivate">
  4919. <![CDATA[
  4920. //fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwn5"), ipt_notecd1, "notefactcd5,notefactspec5", "", "ipt_acntcd", "acntcd");
  4921. rpbfOpenPopUpList("SPRPZ00800", ipt_notecd5, "cardcd,cardno", "", "N");
  4922. model.setValue("/root/main/unsl_one/notefactcd5", model.getValue("/root/temp/cardcd"));
  4923. model.setValue("/root/main/unsl_one/notefactspec5", model.getValue("/root/temp/cardno"));
  4924. model.refresh();
  4925. ]]>
  4926. </script>
  4927. </button>
  4928. </case>
  4929. <case id="case_notecombo5" style="background-color:transparent; border-color:transparent; ">
  4930. <caption id="caption45" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4931. <output id="opt_notecombo5" ref="/root/main/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4932. <select1 id="cmb_notecombo5" ref="/root/main/unsl_one/notefactcd5" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4933. <choices>
  4934. <itemset nodeset="/root/hidden/acntcdcombo/notecombo5">
  4935. <label ref="cdnm"/>
  4936. <value ref="cdid"/>
  4937. </itemset>
  4938. </choices>
  4939. </select1>
  4940. </case>
  4941. <case id="case_noteblank5">
  4942. <caption id="caption46" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4943. </case>
  4944. </switch>
  4945. <switch id="switch6" class="sw_no_border" visibility="hidden" style="left:403px; top:514px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4946. <case id="case_notenm6" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4947. <caption id="caption48" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4948. <output id="opt_notenm6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4949. <input id="ipt_notenm6" ref="/root/main/unsl_one/notefactspec6" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4950. </case>
  4951. <case id="case_notecd6" selected="true" style="background-color:transparent; ">
  4952. <caption id="caption50" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4953. <output id="opt_notecd6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4954. <input id="ipt_notecd6" ref="/root/main/unsl_one/notefactcd6" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4955. <script type="javascript" ev:event="xforms-value-changed">
  4956. <![CDATA[
  4957. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4958. ]]>
  4959. </script>
  4960. </input>
  4961. <input id="ipt_notecdnm6" ref="/root/main/unsl_one/notefactspec6" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4962. <script type="javascript" ev:event="xforms-value-changed">
  4963. <![CDATA[
  4964. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4965. ]]>
  4966. </script>
  4967. </input>
  4968. <button id="btn_notecd6" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4969. <caption/>
  4970. <script type="javascript" ev:event="DOMActivate">
  4971. <![CDATA[
  4972. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd6"), ipt_notecd1, "notefactcd6,notefactspec6", "", "ipt_acntcd", "acntcd");
  4973. ]]>
  4974. </script>
  4975. </button>
  4976. </case>
  4977. <case id="case_notecombo6" style="background-color:transparent; border-color:transparent; ">
  4978. <caption id="caption52" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4979. <output id="opt_notecombo6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4980. <select1 id="cmb_notecombo6" ref="/root/main/unsl_one/notefactcd6" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4981. <choices>
  4982. <itemset nodeset="/root/hidden/acntcdcombo/notecombo6">
  4983. <label ref="cdnm"/>
  4984. <value ref="cdid"/>
  4985. </itemset>
  4986. </choices>
  4987. </select1>
  4988. </case>
  4989. <case id="case_noteblank6">
  4990. <caption id="caption54" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4991. </case>
  4992. </switch>
  4993. <line id="line2" class="line_2" visibility="hidden" style="x1:0px; y1:177px; x2:1195px; y2:177px; "/>
  4994. <line id="line6" class="line_2" style="x1:0px; y1:183px; x2:1195px; y2:183px; "/>
  4995. <caption id="caption17" class="cell_1" visibility="hidden" style="left:0px; top:295px; width:110px; height:23px; ">연번호</caption>
  4996. <line id="line8" class="line_3" visibility="hidden" style="x1:0px; y1:282px; x2:1195px; y2:282px; "/>
  4997. <line id="line11" class="line_2" visibility="hidden" style="x1:0px; y1:307px; x2:1195px; y2:307px; "/>
  4998. <output id="opt_unslseqno" ref="/root/main/unsl_one/unslseqno" class="output_fix" visibility="hidden" style="left:112px; top:297px; width:100px; height:19px; font-weight:bold; color:#ff6600; text-align:center; "/>
  4999. <line id="line7" class="line_2" visibility="hidden" style="x1:0px; y1:332px; x2:1195px; y2:332px; "/>
  5000. <switch id="switch8" class="sw_no_border" visibility="hidden" style="left:248px; top:184px; width:662px; height:25px; ">
  5001. <case id="코드관리" selected="true">
  5002. <input id="ipt_custnm" ref="/root/main/unsl_one/custnm" class="input_essential" imemode="hangul" style="left:141px; top:3px; width:519px; height:19px; ">
  5003. <script type="javascript" ev:event="xforms-value-changed">
  5004. <![CDATA[
  5005. var custflag = model.getValue("/root/main/unsl_one/custflag");
  5006. switch (custflag) {
  5007. case "1": //거래처
  5008. fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
  5009. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  5010. break;
  5011. // case "2": //은행
  5012. // fValidationCheck("03", "custcd,custnm", "R0001", "");
  5013. // break;
  5014. case "3": //부서
  5015. fValidationCheck("02", "custcd,custnm", "", "");
  5016. break;
  5017. case "4": //교직원
  5018. // fValidationCheck("01-2", "custcd,custnm", "", "");
  5019. model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
  5020. ipt_emplnm.dispatch("xforms-value-changed");
  5021. break;
  5022. case "5": //개인
  5023. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
  5024. break;
  5025. default :
  5026. return;
  5027. }
  5028. ]]>
  5029. </script>
  5030. <script type="javascript" ev:event="onkeypress">
  5031. <![CDATA[
  5032. if (event.keyCode == "13") {
  5033. model.setFocus("ipt_amt");
  5034. }
  5035. ]]>
  5036. </script>
  5037. </input>
  5038. <input id="ipt_custcd" ref="/root/main/unsl_one/custcd" class="input_essential" navindex="-1" style="left:0px; top:2px; width:116px; height:19px; ">
  5039. <script type="javascript" ev:event="xforms-value-changed">
  5040. <![CDATA[
  5041. var custflag = model.getValue("/root/main/unsl_one/custflag");
  5042. switch (custflag) {
  5043. case "1": //거래처
  5044. fValidationCheck("14", "custcd,custnm", "", "ipt_amt", "", "", "code");
  5045. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  5046. break;
  5047. // case "2": //은행
  5048. // fValidationCheck("03", "custcd,custnm", "R0001", "ipt_amt");
  5049. // break;
  5050. case "3": //부서
  5051. fValidationCheck("02", "custcd,custnm", "", "ipt_amt");
  5052. break;
  5053. case "4": //교직원
  5054. // fValidationCheck("01-1", "custcd,custnm", "", "ipt_amt");
  5055. model.setValue("/root/hidden/tempnode/emplno", model.getValue("/root/main/unsl_one/custcd"));
  5056. ipt_emplno.dispatch("xforms-value-changed");
  5057. break;
  5058. case "5": //개인
  5059. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "code");
  5060. break;
  5061. default :
  5062. return;
  5063. }
  5064. ]]>
  5065. </script>
  5066. <script type="javascript" ev:event="onkeypress">
  5067. <![CDATA[
  5068. if (event.keyCode == "13") {
  5069. model.setFocus("ipt_amt");
  5070. }
  5071. ]]>
  5072. </script>
  5073. </input>
  5074. <button id="btn_custcd" class="icon_search" navindex="-1" style="left:121px; top:5px; width:16px; height:16px; ">
  5075. <caption/>
  5076. <script type="javascript" ev:event="DOMActivate">
  5077. <![CDATA[
  5078. var custflag = model.getValue("/root/main/unsl_one/custflag");
  5079. switch (custflag) {
  5080. case "1": //거래처
  5081. fOpenPopupHelp("14", ipt_custcd, "custcd,custnm", "", "");
  5082. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  5083. break;
  5084. // case "2": //은행
  5085. // fOpenPopupHelp("03", ipt_custcd, "custcd,custnm", "R0001", "");
  5086. // break;
  5087. case "3": //부서
  5088. fOpenPopupHelp("02", ipt_custcd, "custcd,custnm", "", "");
  5089. break;
  5090. case "4": //교직원
  5091. // fOpenPopupHelp("01", ipt_custcd, "custcd,custnm", "", "");
  5092. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
  5093. model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
  5094. model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
  5095. model.refresh();
  5096. break;
  5097. case "5": //개인
  5098. fOpenPopupHelp("31", ipt_custcd, "custcd,custnm", "", "");
  5099. break;
  5100. default :
  5101. return;
  5102. }
  5103. ]]>
  5104. </script>
  5105. </button>
  5106. </case>
  5107. <case id="명관리">
  5108. <input id="ipt_custnm2" ref="/root/main/unsl_one/custnm" class="input_essential" imemode="hangul" style="left:0px; top:2px; width:660px; height:19px; ">
  5109. <script type="javascript" ev:event="onkeypress">
  5110. <![CDATA[
  5111. if (event.keyCode == "13") {
  5112. model.setFocus("rdo_profflag1");
  5113. }
  5114. ]]>
  5115. </script>
  5116. </input>
  5117. <input id="ipt_custcd2" ref="/root/main/unsl_one/custcd" class="input_essential" visibility="hidden" style="left:520px; top:2px; width:25px; height:19px; "/>
  5118. </case>
  5119. </switch>
  5120. <select1 id="cmb_drfundscd" ref="/root/main/unsl_one/fundscd" class="combo_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:20px; top:230px; width:170px; height:19px; ">
  5121. <script type="javascript" ev:event="xforms-value-changed">
  5122. <![CDATA[
  5123. model.setFocus("cmb_custflag");
  5124. ]]>
  5125. </script>
  5126. <choices>
  5127. <itemset nodeset="/root/init/fundscdlist/fundscd">
  5128. <label ref="nm"/>
  5129. <value ref="cd"/>
  5130. </itemset>
  5131. </choices>
  5132. </select1>
  5133. <caption id="caption25" class="cell_1" visibility="hidden" style="left:0px; top:234px; width:110px; height:23px; ">금 액</caption>
  5134. <line id="line3" class="line_2" visibility="hidden" style="x1:0px; y1:257px; x2:1195px; y2:257px; "/>
  5135. <line id="line4" class="line_2" visibility="hidden" style="x1:0px; y1:207px; x2:1195px; y2:207px; "/>
  5136. <input id="ipt_slipyn" ref="/root/hidden/slipyn" navindex="-1" visibility="hidden" style="left:1090px; top:10px; width:35px; height:19px; "/>
  5137. <button id="btn_grdset" class="btn2_letter3" disabled="true" visibility="hidden" style="left:20px; top:235px; width:53px; height:19px; ">
  5138. <caption>행수정</caption>
  5139. <script type="javascript" ev:event="DOMActivate">
  5140. <![CDATA[
  5141. if (!fSlipAprvChk("N")) {
  5142. return;
  5143. }
  5144. //if(!fdayreptAcntcdException())return;
  5145. /*
  5146. if(!fcheckAcntOption())
  5147. {
  5148. return;
  5149. }
  5150. */
  5151. fGridRowSetClick();
  5152. ]]>
  5153. </script>
  5154. </button>
  5155. <caption id="caption56" class="cell_1" visibility="hidden" style="left:20px; top:225px; width:104px; height:23px; ">자금과목</caption>
  5156. <caption id="caption57" ref="/root/hidden/expsacntsum" visibility="hidden" format="(-)#,###" style="left:690px; top:735px; width:110px; height:23px; text-align:right; vertical-align:middle; padding-right:2; background-color:#fcd2c1; "/>
  5157. <caption id="caption33" class="cell_1" visibility="hidden" style="left:0px; top:209px; width:110px; height:48px; ">증빙구분</caption>
  5158. <select1 id="rdo_profflag1" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:215px; width:75px; height:20px; border-style:none; ">
  5159. <choices>
  5160. <item>
  5161. <label>법인카드</label>
  5162. <value>1</value>
  5163. </item>
  5164. </choices>
  5165. <script type="javascript" ev:event="onclick">
  5166. <![CDATA[
  5167. fProfClick("SPRAD00101");
  5168. ]]>
  5169. </script>
  5170. </select1>
  5171. <select1 id="rdo_profflag2" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:215px; width:116px; height:20px; border-style:none; ">
  5172. <choices>
  5173. <item>
  5174. <label>개인신용카드</label>
  5175. <value>2</value>
  5176. </item>
  5177. </choices>
  5178. <script type="javascript" ev:event="onclick">
  5179. <![CDATA[
  5180. fProfClick("SPRAD00102");
  5181. ]]>
  5182. </script>
  5183. </select1>
  5184. <select1 id="rdo_profflag3" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:215px; width:88px; height:20px; border-style:none; ">
  5185. <choices>
  5186. <item>
  5187. <label>현금영수증</label>
  5188. <value>3</value>
  5189. </item>
  5190. </choices>
  5191. <script type="javascript" ev:event="onclick">
  5192. <![CDATA[
  5193. fProfClick("SPRAD00103");
  5194. ]]>
  5195. </script>
  5196. </select1>
  5197. <select1 id="rdo_profflag4" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:215px; width:101px; height:20px; border-style:none; ">
  5198. <choices>
  5199. <item>
  5200. <label>세금계산서</label>
  5201. <value>4</value>
  5202. </item>
  5203. </choices>
  5204. <script type="javascript" ev:event="onclick">
  5205. <![CDATA[
  5206. fProfClick("SPRAT00101");
  5207. ]]>
  5208. </script>
  5209. </select1>
  5210. <select1 id="rdo_profflag5" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:215px; width:75px; height:20px; border-style:none; ">
  5211. <choices>
  5212. <item>
  5213. <label>계산서</label>
  5214. <value>5</value>
  5215. </item>
  5216. </choices>
  5217. <script type="javascript" ev:event="onclick">
  5218. <![CDATA[
  5219. fProfClick("SPRAT00101");
  5220. ]]>
  5221. </script>
  5222. </select1>
  5223. <select1 id="rdo_profflag6" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:215px; width:65px; height:20px; border-style:none; ">
  5224. <choices>
  5225. <item>
  5226. <label>기타</label>
  5227. <value>6</value>
  5228. </item>
  5229. </choices>
  5230. <script type="javascript" ev:event="onclick">
  5231. <![CDATA[
  5232. if (!fProfExistsChk())
  5233. {
  5234. return;
  5235. }
  5236. fetcprofcntcheck();
  5237. ]]>
  5238. </script>
  5239. </select1>
  5240. <input id="ipt_profflag6" ref="/root/main/unsl_one/etcprofcnt" class="input_essential" navindex="-1" visibility="hidden" maxlength="11" style="left:0px; top:215px; width:37px; height:19px; text-align:right; vertical-align:middle; padding-right:3; "/>
  5241. <select1 id="rdo_profflag7" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:235px; width:75px; height:20px; color:#3366ff; border-style:none; ">
  5242. <choices>
  5243. <item>
  5244. <label>근로소득</label>
  5245. <value>7</value>
  5246. </item>
  5247. </choices>
  5248. <script type="javascript" ev:event="onclick">
  5249. <![CDATA[
  5250. if(getUserInfo("dutplceinstcd") == "103")
  5251. {
  5252. fProfOrChClick("SPRAD00104");
  5253. }
  5254. else
  5255. {
  5256. fProfOrChClick("SPRAD00134");
  5257. }
  5258. ]]>
  5259. </script>
  5260. </select1>
  5261. <select1 id="rdo_profflag8" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:235px; width:116px; height:20px; color:#3366ff; border-style:none; ">
  5262. <choices>
  5263. <item>
  5264. <label>비과세 근로소득</label>
  5265. <value>8</value>
  5266. </item>
  5267. </choices>
  5268. <script type="javascript" ev:event="onclick">
  5269. <![CDATA[
  5270. fetcprofcntcheck();
  5271. if(getUserInfo("dutplceinstcd") == "103")
  5272. {
  5273. fProfOrChClick("SPRAD00104");
  5274. }
  5275. else
  5276. {
  5277. fProfOrChClick("SPRAD00134");
  5278. }
  5279. ]]>
  5280. </script>
  5281. </select1>
  5282. <select1 id="rdo_profflag9" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:235px; width:88px; height:20px; color:#3366ff; border-style:none; ">
  5283. <choices>
  5284. <item>
  5285. <label>퇴직소득</label>
  5286. <value>9</value>
  5287. </item>
  5288. </choices>
  5289. <script type="javascript" ev:event="onclick">
  5290. <![CDATA[
  5291. //return;
  5292. fProfOrChClick("SPRAD00140");
  5293. ]]>
  5294. </script>
  5295. </select1>
  5296. <select1 id="rdo_profflaga" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:235px; width:101px; height:20px; color:#3366ff; border-style:none; ">
  5297. <choices>
  5298. <item>
  5299. <label>일용근로소득</label>
  5300. <value>A</value>
  5301. </item>
  5302. </choices>
  5303. <script type="javascript" ev:event="onclick">
  5304. <![CDATA[
  5305. if(getUserInfo("dutplceinstcd") == "103")
  5306. {
  5307. fProfOrChClick("SPRAD00111");
  5308. }
  5309. else
  5310. {
  5311. fProfOrChClick("SPRAD00131");
  5312. }
  5313. ]]>
  5314. </script>
  5315. </select1>
  5316. <select1 id="rdo_profflagb" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:235px; width:75px; height:20px; color:#3366ff; border-style:none; ">
  5317. <choices>
  5318. <item>
  5319. <label>사업소득</label>
  5320. <value>B</value>
  5321. </item>
  5322. </choices>
  5323. <script type="javascript" ev:event="onclick">
  5324. <![CDATA[
  5325. if(getUserInfo("dutplceinstcd") == "103")
  5326. {
  5327. fProfOrChClick("SPRAD00106");
  5328. }
  5329. else
  5330. {
  5331. fProfOrChClick("SPRAD00136");
  5332. }
  5333. ]]>
  5334. </script>
  5335. </select1>
  5336. <select1 id="rdo_profflagc" ref="/root/main/unsl_one/profflag" navindex="-1" visibility="hidden" appearance="full" overflow="visible" style="left:0px; top:235px; width:65px; height:20px; border-style:none; ">
  5337. <choices>
  5338. <item>
  5339. <label>기타소득</label>
  5340. <value>C</value>
  5341. </item>
  5342. </choices>
  5343. <script type="javascript" ev:event="onclick">
  5344. <![CDATA[
  5345. if(getUserInfo("dutplceinstcd") == "103")
  5346. {
  5347. fProfOrChClick("SPRAD00105");
  5348. }
  5349. else
  5350. {
  5351. fProfOrChClick("SPRAD00135");
  5352. }
  5353. ]]>
  5354. </script>
  5355. </select1>
  5356. <button id="btn_copy" class="btn4_letter2" disabled="true" visibility="hidden" style="left:293px; top:98px; width:56px; height:22px; ">
  5357. <caption>복사</caption>
  5358. <script type="javascript" ev:event="DOMActivate">
  5359. <![CDATA[
  5360. if(model.getValue("/root/hidden/condition/slipflag") == "9")
  5361. {
  5362. messageBox("[전표 반제 전표]는 복사할 수 없습니다. \n전표 반제 프로그램에서 작업하세요", "I000");
  5363. return false;
  5364. }
  5365. fCopyShftSlip("copy")
  5366. ]]>
  5367. </script>
  5368. </button>
  5369. <button id="btn_grdcopy" class="btn2_letter3" disabled="true" visibility="hidden" style="left:25px; top:220px; width:53px; height:19px; ">
  5370. <caption>행복사</caption>
  5371. <script type="javascript" ev:event="DOMActivate">
  5372. <![CDATA[
  5373. fIncreSeqno("/root/main/unsl_one/unslseqno");
  5374. model.setValue("/root/main/unsl_one/profflag", "");
  5375. model.setValue("/root/main/unsl_one/seqno", "");
  5376. model.setValue("/root/main/unsl_one/rlaacntseqno", "");
  5377. model.setValue("/root/main/unsl_one/fundscd", model.getValue("/root/hidden/acntcdinfo/fundscd"));
  5378. model.refresh();
  5379. btn_grdadd.disabled = false;
  5380. btn_grdset.disabled = true;
  5381. btn_grddel.disabled = false;
  5382. btn_grdcopy.disabled = true;
  5383. btn_grdclear.visible = false;
  5384. model.setFocus("ipt_custnm");
  5385. ]]>
  5386. </script>
  5387. </button>
  5388. <caption id="caption58" visibility="hidden" style="left:60px; top:225px; width:11px; height:20px; font-weight:bold; ">]</caption>
  5389. <button id="btn_prtcancel" class="btn4_letter4" disabled="true" visibility="hidden" style="left:1112px; top:98px; width:80px; height:22px; ">
  5390. <caption>출력취소</caption>
  5391. <script type="javascript" ev:event="DOMActivate">
  5392. <![CDATA[
  5393. if (model.getValue("/root/main/unsl[1]/sanctno") != "")
  5394. {
  5395. messageBox("승인된 전표이므로 작업을 불허합니다." ,"I000");
  5396. return;
  5397. }
  5398. if (model.getValue("/root/main/unsl[1]/bugtaprvyn") == "Y" && model.getValue("/root/main/unsl[1]/bugtautoaprvyn") == "N")
  5399. {
  5400. messageBox("기획팀 예산 승인된 전표이므로 작업을 불허합니다." ,"I000");
  5401. return;
  5402. }
  5403. if (model.getValue("/root/main/unsl_one/acntcd") != "")
  5404. {
  5405. fRowClearClick();
  5406. }
  5407. fSlipPrintCancelClick();
  5408. fSlipStatus();
  5409. fQueryClick();
  5410. ]]>
  5411. </script>
  5412. </button>
  5413. <caption id="caption30" visibility="hidden" style="left:117px; top:233px; width:11px; height:20px; font-weight:bold; ">[</caption>
  5414. <caption id="caption11" class="hand" visibility="hidden" style="left:0px; top:233px; width:82px; height:20px; color:#3366ff; vertical-align:middle; ">원천징수</caption>
  5415. <button id="btn_setapln" class="btn4_letter5" visibility="hidden" style="left:781px; top:98px; width:92px; height:22px; ">
  5416. <caption>결재선지정</caption>
  5417. <script type="javascript" ev:event="DOMActivate">
  5418. <![CDATA[
  5419. var updtdata = getGridUpdateData(grd_unsl);
  5420. if (updtdata != "")
  5421. {
  5422. messageBox("변경된 데이터 저장 후 작업하세요.","I000");
  5423. return;
  5424. }
  5425. if(grp_apln.visible)
  5426. {
  5427. grp_apln.visible = false;
  5428. }
  5429. else
  5430. {
  5431. //if(grd_unsl.rows == 1) return;
  5432. model.removenode("/root/main/apln");
  5433. model.setValue("/root/send/data3/instcd", model.getValue("/root/main/unsl_one/instcd"));
  5434. model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  5435. submit("TRRAD00151");
  5436. if(model.getValue("/root/main/apln/iudflag") == "")model.setValue("/root/main/apln/iudflag", "I");
  5437. // cmb_arbitrary1.select(1);
  5438. // cmb_arbitrary1.refresh();
  5439. grp_apln.visible = true;
  5440. model.setFocus("grp_apln");
  5441. }
  5442. ]]>
  5443. </script>
  5444. </button>
  5445. <input id="ipt_emplno" ref="/root/hidden/tempnode/emplno" visibility="hidden" style="left:505px; top:740px; width:20px; height:19px; ">
  5446. <script type="javascript" ev:event="xforms-value-changed">
  5447. <![CDATA[
  5448. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  5449. model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
  5450. model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
  5451. model.refresh();
  5452. ]]>
  5453. </script>
  5454. </input>
  5455. <input id="ipt_emplnm" ref="/root/hidden/tempnode/emplnm" visibility="hidden" style="left:525px; top:740px; width:20px; height:19px; ">
  5456. <script type="javascript" ev:event="xforms-value-changed">
  5457. <![CDATA[
  5458. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  5459. model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
  5460. model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
  5461. model.refresh();
  5462. ]]>
  5463. </script>
  5464. </input>
  5465. <input id="ipt_acntyy" ref="/root/hidden/acntyy" navindex="-1" visibility="hidden" style="left:1125px; top:10px; width:35px; height:19px; "/>
  5466. <button id="button1" visibility="hidden" style="left:1045px; top:60px; width:55px; height:20px; ">
  5467. <caption>button1</caption>
  5468. <script type="javascript" ev:event="DOMActivate">
  5469. <![CDATA[
  5470. //radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"));
  5471. //model.setValue("/root/main/unsl_one/amt", -900000000);
  5472. //model.refresh();
  5473. //alert(model.getValue("/root/main/unsl_one/amt"));
  5474. alert(getUserId());
  5475. ]]>
  5476. </script>
  5477. </button>
  5478. <select id="checkbox1" ref="/root/hidden/acntcdinfo/option1" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:675px; width:100px; height:20px; border-style:none; ">
  5479. <choices>
  5480. <item>
  5481. <label>option1</label>
  5482. <value>Y</value>
  5483. </item>
  5484. </choices>
  5485. </select>
  5486. <select id="checkbox2" ref="/root/hidden/acntcdinfo/option2" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:690px; width:100px; height:20px; border-style:none; ">
  5487. <choices>
  5488. <item>
  5489. <label>option2</label>
  5490. <value>Y</value>
  5491. </item>
  5492. </choices>
  5493. </select>
  5494. <select id="checkbox3" ref="/root/hidden/acntcdinfo/option3" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:705px; width:100px; height:20px; border-style:none; ">
  5495. <choices>
  5496. <item>
  5497. <label>option3</label>
  5498. <value>Y</value>
  5499. </item>
  5500. </choices>
  5501. </select>
  5502. <select id="checkbox4" ref="/root/hidden/acntcdinfo/option4" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:675px; width:100px; height:20px; border-style:none; ">
  5503. <choices>
  5504. <item>
  5505. <label>option3</label>
  5506. <value>Y</value>
  5507. </item>
  5508. </choices>
  5509. </select>
  5510. <select id="checkbox5" ref="/root/hidden/acntcdinfo/option5" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:690px; width:100px; height:20px; border-style:none; ">
  5511. <choices>
  5512. <item>
  5513. <label>option5</label>
  5514. <value>Y</value>
  5515. </item>
  5516. </choices>
  5517. </select>
  5518. <select id="checkbox6" ref="/root/hidden/acntcdinfo/option6" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:705px; width:100px; height:20px; border-style:none; ">
  5519. <choices>
  5520. <item>
  5521. <label>option6</label>
  5522. <value>Y</value>
  5523. </item>
  5524. </choices>
  5525. </select>
  5526. <caption id="caption59" class="cell_1" visibility="hidden" style="left:570px; top:735px; width:120px; height:23px; text-align:center; vertical-align:middle; ">이체금액합계</caption>
  5527. <button id="btn_serv" class="btn2_letter6" visibility="hidden" style="left:810px; top:285px; width:86px; height:19px; ">
  5528. <caption>접대비명세서</caption>
  5529. <script type="javascript" ev:event="DOMActivate">
  5530. <![CDATA[
  5531. //fServClick();
  5532. if(grd_unsl.row > grd_unsl.fixedRows && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == 'Y')
  5533. {
  5534. messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
  5535. return false;
  5536. }
  5537. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  5538. model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/servseqno"));
  5539. model.makeValue("/root/source/slipinfo/entrregno", model.getValue("/root/main/unsl_one/custcd"));
  5540. model.makeValue("/root/source/slipinfo/deptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  5541. model.makeValue("/root/source/slipinfo/emplno", getUserId());
  5542. model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  5543. model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  5544. model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
  5545. model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
  5546. model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
  5547. model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/main/unsl_one/etcnotefact"));
  5548. model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
  5549. model.refresh();
  5550. modal("SPRAD00112","","","","","/root/source", "/root/target" );
  5551. model.refresh();
  5552. if (model.getValue("/root/source/slipinfo/seqno") != model.getValue("/root/main/unsl_one/servseqno") && btn_grdset.disabled == false)
  5553. {
  5554. var cur_row = grd_unsl.row;
  5555. btn_grdset.dispatch("DOMActivate");
  5556. grd_unsl.row = cur_row;
  5557. fGridRowClick();
  5558. }
  5559. ]]>
  5560. </script>
  5561. </button>
  5562. <button id="btn_availablebugt" class="btn4_letter5" disabled="true" visibility="hidden" style="left:112px; top:98px; width:128px; height:22px; ">
  5563. <caption>예산가용액</caption>
  5564. <script type="javascript" ev:event="DOMActivate">
  5565. <![CDATA[
  5566. if (grd_unsl.rows == 1)
  5567. {
  5568. return false;
  5569. }
  5570. var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
  5571. if (sanctyn == "Y")
  5572. {
  5573. return false;
  5574. }
  5575. model.makeValue("/root/source/availablebugtinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  5576. model.makeValue("/root/source/availablebugtinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  5577. model.makeValue("/root/source/availablebugtinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  5578. model.refresh();
  5579. modal("SPRAD00125","","","","","/root/source", "/root/target");
  5580. ]]>
  5581. </script>
  5582. </button>
  5583. <select1 id="cmb_aplnflag" ref="/root/send/data3/aplnflag" class="combo_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:875px; top:100px; width:38px; height:19px; text-align:right; ">
  5584. <choices>
  5585. <item>
  5586. <label>1</label>
  5587. <value>1</value>
  5588. </item>
  5589. <item>
  5590. <label>2</label>
  5591. <value>2</value>
  5592. </item>
  5593. </choices>
  5594. </select1>
  5595. <caption id="caption61" class="cell_1" visibility="hidden" style="left:215px; top:295px; width:74px; height:23px; text-align:center; ">전표상태</caption>
  5596. <input id="ipt_slipstatus" ref="/root/hidden/slipstatus" class="input_default" navindex="-1" visibility="hidden" editable="false" style="left:291px; top:297px; width:110px; height:19px; font-weight:bold; text-align:center; "/>
  5597. <button id="btn_9" class="btn2_letter4" visibility="hidden" style="left:1131px; top:297px; width:64px; height:19px; text-align:left; ">
  5598. <caption>엑셀출력</caption>
  5599. <script type="javascript" ev:event="DOMActivate">
  5600. <![CDATA[
  5601. radfSaveExcel(grd_unsl);
  5602. ]]>
  5603. </script>
  5604. </button>
  5605. <caption id="cap_etcprofcnt" visibility="hidden" style="left:0px; top:215px; width:43px; height:20px; ">[매수]</caption>
  5606. <caption id="cap_costbelongdeptcd" class="cell_1" visibility="hidden" style="left:403px; top:259px; width:110px; height:23px; ">실사용부서</caption>
  5607. <input id="ipt_costbelongdeptnm" ref="/root/main/unsl_one/costbelongdeptnm" class="input_essential" disabled="true" visibility="hidden" style="left:621px; top:261px; width:170px; height:19px; ">
  5608. <script type="javascript" ev:event="xforms-value-changed">
  5609. <![CDATA[
  5610. racfDeptValidCheck("costbelongdeptcd,costbelongdeptnm"); // 전체부서
  5611. model.refresh();
  5612. ]]>
  5613. </script>
  5614. <script type="javascript" ev:event="onkeypress">
  5615. <![CDATA[
  5616. if(event.keyCode == 13)
  5617. {
  5618. model.setFocus("ipt_acntnm");
  5619. }
  5620. ]]>
  5621. </script>
  5622. </input>
  5623. <button id="btn_costbelongdeptcd" class="icon_search" disabled="false" navindex="-1" visibility="hidden" style="left:1002px; top:312px; width:16px; height:16px; ">
  5624. <caption/>
  5625. <script type="javascript" ev:event="DOMActivate">
  5626. <![CDATA[
  5627. fOpenPopupDeptHelp(ipt_costbelongdeptcd, "costbelongdeptcd,costbelongdeptnm"); //전체부서
  5628. model.refresh();
  5629. ]]>
  5630. </script>
  5631. </button>
  5632. <input id="ipt_costbelongdeptcd" ref="/root/main/unsl_one/costbelongdeptcd" class="input_essential" disabled="true" navindex="-1" visibility="hidden" maxlength="11" style="left:515px; top:261px; width:102px; height:19px; ">
  5633. <script type="javascript" ev:event="xforms-value-changed">
  5634. <![CDATA[
  5635. racfDeptValidCheck("costbelongdeptcd,costbelongdeptnm"); // 전체부서
  5636. model.refresh();
  5637. ]]>
  5638. </script>
  5639. <script type="javascript" ev:event="onkeypress">
  5640. <![CDATA[
  5641. if(event.keyCode == 13)
  5642. {
  5643. model.setFocus("ipt_acntnm");
  5644. }
  5645. ]]>
  5646. </script>
  5647. </input>
  5648. <button id="btn_bugtmngtdeptcd" class="icon_search" disabled="true" navindex="-1" visibility="hidden" style="left:1002px; top:132px; width:16px; height:16px; ">
  5649. <caption/>
  5650. <script type="javascript" ev:event="DOMActivate">
  5651. <![CDATA[
  5652. ]]>
  5653. </script>
  5654. </button>
  5655. <input id="ipt_bugtmngtdeptnm" ref="/root/main/unsl_one/bugtmngtdeptnm" class="input_essential" disabled="true" visibility="hidden" style="left:1023px; top:132px; width:170px; height:19px; ">
  5656. <script type="javascript" ev:event="xforms-value-changed">
  5657. <![CDATA[
  5658. ]]>
  5659. </script>
  5660. <script type="javascript" ev:event="onkeypress">
  5661. <![CDATA[
  5662. if(event.keyCode == 13)
  5663. {
  5664. model.setFocus("ipt_acntnm");
  5665. }
  5666. ]]>
  5667. </script>
  5668. </input>
  5669. <caption id="cpt_bugtmngtdeptnm" class="cell_1" visibility="hidden" style="left:805px; top:130px; width:110px; height:23px; ">예산관리부서</caption>
  5670. <input id="ipt_bugtmngtdeptcd" ref="/root/main/unsl_one/bugtmngtdeptcd" class="input_essential" disabled="true" navindex="-1" visibility="hidden" maxlength="11" style="left:830px; top:130px; width:103px; height:19px; ">
  5671. <script type="javascript" ev:event="xforms-value-changed">
  5672. <![CDATA[
  5673. ]]>
  5674. </script>
  5675. <script type="javascript" ev:event="onkeypress">
  5676. <![CDATA[
  5677. if(event.keyCode == 13)
  5678. {
  5679. model.setFocus("ipt_acntnm");
  5680. }
  5681. ]]>
  5682. </script>
  5683. </input>
  5684. <shape id="shp_number03" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:488px; top:155px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  5685. <shape id="shp_number04" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:85px; top:186px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  5686. <shape id="shp_number05" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:85px; top:224px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  5687. <shape id="shp_number09" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:990px; top:351px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  5688. <output id="opt_number09" visibility="hidden" style="left:990px; top:351px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">9</output>
  5689. <shape id="shp_number10" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:516px; top:99px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  5690. <output id="opt_number10" visibility="hidden" style="left:935px; top:75px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">10</output>
  5691. <shape id="shp_number11" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:1083px; top:98px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  5692. <output id="opt_number11" visibility="hidden" style="left:1083px; top:98px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">11</output>
  5693. <output id="opt_number04" visibility="hidden" style="left:85px; top:186px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">4</output>
  5694. <output id="opt_number05" visibility="hidden" style="left:85px; top:224px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">5</output>
  5695. <output id="opt_number03" visibility="hidden" style="left:488px; top:156px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">3</output>
  5696. <shape id="shp_number06" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:85px; top:261px; width:25px; height:20px; font-family:바탕체; font-size:8pt; color:#ff0000; text-align:center; vertical-align:middle; background-color:#00ff00; "/>
  5697. <output id="opt_number06" visibility="hidden" style="left:85px; top:261px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">6</output>
  5698. <group id="grp_apln" visibility="hidden" style="left:185px; top:390px; width:575px; height:160px; background-color:#6bb5fe; ">
  5699. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:4px; width:565px; height:151px; "/>
  5700. <button id="btn_saveapln" class="btn4_letter2" style="left:448px; top:129px; width:56px; height:22px; ">
  5701. <caption>저장</caption>
  5702. <script type="javascript" ev:event="DOMActivate">
  5703. <![CDATA[
  5704. var dlgRslt = messageBox("결재선을", "Q002");
  5705. if(dlgRslt == 6)
  5706. { //<group id="grp_apln" visibility="hidden" style="left:769px; top:125px; width:425px; height:135px; background-color:#6bb5fe; ">
  5707. model.setValue("/root/main/apln/instcd", model.getValue("/root/main/unsl_one/instcd"));
  5708. model.setValue("/root/main/apln/deptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  5709. model.setValue("/root/main/apln/aplnflag", model.getValue("/root/send/data3/aplnflag"));
  5710. if(model.getValue("/root/main/apln/deptcd")=="4030100000"){
  5711. model.setValue("/root/main/apln/iudflag" , "U");
  5712. }
  5713. if(misfSave("TXRAD00151"))
  5714. {
  5715. grp_apln.visible = false;
  5716. // if(grd_unsl.rows > 1)
  5717. // {
  5718. // if(grd_unsl.rowStatus(1) != 1 && grd_unsl.rowStatus(1) != 3)
  5719. // {
  5720. fQueryClick();
  5721. // }
  5722. // }
  5723. }
  5724. }
  5725. ]]>
  5726. </script>
  5727. </button>
  5728. <caption id="caption62" class="cell_1" style="left:9px; top:54px; width:45px; height:21px; ">발 의</caption>
  5729. <caption id="caption51" class="cell_1" style="left:275px; top:30px; width:70px; height:23px; text-align:center; ">결재선 4</caption>
  5730. <caption id="caption63" class="cell_1" style="left:9px; top:77px; width:45px; height:20px; ">재 무</caption>
  5731. <line id="line12" class="line_2" style="x1:8px; y1:98px; x2:419px; y2:98px; "/>
  5732. <caption id="caption53" class="cell_1" style="left:348px; top:30px; width:70px; height:23px; text-align:center; ">결재선 5</caption>
  5733. <caption id="caption55" class="tit_2" style="left:13px; top:10px; width:131px; height:13px; ">결재선지정</caption>
  5734. <line id="line15" class="line_1" style="x1:8px; y1:25px; x2:564px; y2:25px; "/>
  5735. <line id="line16" class="line_2" style="x1:8px; y1:76px; x2:419px; y2:76px; "/>
  5736. <caption id="caption49" class="cell_1" style="left:202px; top:30px; width:70px; height:23px; text-align:center; ">결재선 3</caption>
  5737. <caption id="caption27" class="cell_1" style="left:56px; top:30px; width:70px; height:23px; text-align:center; ">결재선 1</caption>
  5738. <caption id="caption28" class="cell_1" style="left:129px; top:30px; width:70px; height:23px; text-align:center; ">결재선 2</caption>
  5739. <button id="btn_closeapln" class="btn4_letter2" style="left:508px; top:129px; width:56px; height:22px; ">
  5740. <caption>닫기</caption>
  5741. <script type="javascript" ev:event="DOMActivate">
  5742. <![CDATA[
  5743. grp_apln.visible = false;
  5744. ]]>
  5745. </script>
  5746. </button>
  5747. <input id="ipt_approval11" ref="/root/main/apln/approval11" class="input_search" style="left:56px; top:56px; width:70px; height:19px; "/>
  5748. <input id="ipt_approval12" ref="/root/main/apln/approval12" class="input_search" style="left:129px; top:56px; width:70px; height:19px; "/>
  5749. <input id="ipt_approval13" ref="/root/main/apln/approval13" class="input_search" style="left:202px; top:56px; width:70px; height:19px; "/>
  5750. <input id="ipt_approval14" ref="/root/main/apln/approval14" class="input_search" style="left:275px; top:56px; width:70px; height:19px; "/>
  5751. <input id="ipt_approval15" ref="/root/main/apln/approval15" class="input_search" style="left:348px; top:56px; width:70px; height:19px; "/>
  5752. <input id="ipt_approval21" ref="/root/main/apln/approval21" class="input_search" style="left:56px; top:78px; width:70px; height:19px; "/>
  5753. <input id="ipt_approval22" ref="/root/main/apln/approval22" class="input_search" style="left:129px; top:78px; width:70px; height:19px; "/>
  5754. <input id="ipt_approval23" ref="/root/main/apln/approval23" class="input_search" style="left:202px; top:78px; width:70px; height:19px; "/>
  5755. <input id="ipt_approval24" ref="/root/main/apln/approval24" class="input_search" style="left:275px; top:78px; width:70px; height:19px; "/>
  5756. <input id="ipt_approval25" ref="/root/main/apln/approval25" class="input_search" style="left:348px; top:78px; width:70px; height:19px; "/>
  5757. <caption id="caption60" class="cell_1" style="left:421px; top:30px; width:70px; height:23px; text-align:center; ">결재선 6</caption>
  5758. <input id="ipt_approval26" ref="/root/main/apln/approval26" class="input_search" style="left:421px; top:78px; width:70px; height:19px; "/>
  5759. <input id="ipt_approval16" ref="/root/main/apln/approval16" class="input_search" style="left:421px; top:56px; width:70px; height:19px; "/>
  5760. <caption id="caption65" class="cell_1" style="left:9px; top:100px; width:45px; height:20px; ">전 결</caption>
  5761. <caption id="caption66" class="cell_1" style="left:494px; top:30px; width:70px; height:23px; text-align:center; ">참 조</caption>
  5762. <input id="ipt_approval27" ref="/root/main/apln/approval27" class="input_search" disabled="true" style="left:494px; top:78px; width:70px; height:19px; "/>
  5763. <input id="ipt_approval17" ref="/root/main/apln/approval17" class="input_search" style="left:494px; top:56px; width:70px; height:19px; "/>
  5764. <select1 id="cmb_arbitrary1" ref="/root/main/apln/arbitrary1" class="combo_essential" disabled="false" navindex="-1" appearance="minimal" style="left:57px; top:102px; width:70px; height:19px; ">
  5765. <choices>
  5766. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5767. <label ref="nm"/>
  5768. <value ref="cd"/>
  5769. </itemset>
  5770. </choices>
  5771. </select1>
  5772. <select1 id="cmb_arbitrary2" ref="/root/main/apln/arbitrary2" class="combo_essential" disabled="false" navindex="-1" appearance="minimal" style="left:129px; top:102px; width:70px; height:19px; ">
  5773. <choices>
  5774. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5775. <label ref="nm"/>
  5776. <value ref="cd"/>
  5777. </itemset>
  5778. </choices>
  5779. </select1>
  5780. <select1 id="cmb_arbitrary3" ref="/root/main/apln/arbitrary3" class="combo_essential" disabled="false" navindex="-1" appearance="minimal" style="left:202px; top:102px; width:70px; height:19px; ">
  5781. <choices>
  5782. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5783. <label ref="nm"/>
  5784. <value ref="cd"/>
  5785. </itemset>
  5786. </choices>
  5787. </select1>
  5788. <select1 id="cmb_arbitrary4" ref="/root/main/apln/arbitrary4" class="combo_essential" disabled="false" navindex="-1" appearance="minimal" style="left:275px; top:102px; width:70px; height:19px; ">
  5789. <choices>
  5790. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5791. <label ref="nm"/>
  5792. <value ref="cd"/>
  5793. </itemset>
  5794. </choices>
  5795. </select1>
  5796. <select1 id="cmb_arbitrary5" ref="/root/main/apln/arbitrary5" class="combo_essential" disabled="false" navindex="-1" appearance="minimal" style="left:348px; top:102px; width:70px; height:19px; ">
  5797. <choices>
  5798. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5799. <label ref="nm"/>
  5800. <value ref="cd"/>
  5801. </itemset>
  5802. </choices>
  5803. </select1>
  5804. <select1 id="cmb_arbitrary6" ref="/root/main/apln/arbitrary6" class="combo_essential" disabled="false" navindex="-1" appearance="minimal" showvalue="false" style="left:421px; top:102px; width:70px; height:19px; ">
  5805. <choices>
  5806. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5807. <label ref="nm"/>
  5808. <value ref="cd"/>
  5809. </itemset>
  5810. </choices>
  5811. </select1>
  5812. </group>
  5813. <button id="button3" class="btn4_letter4" visibility="hidden" style="left:374px; top:98px; width:104px; height:22px; ">
  5814. <caption>그룹웨어</caption>
  5815. <script type="javascript" ev:event="DOMActivate">
  5816. <![CDATA[
  5817. open("SPRAS00100","","","","","", "", "" );
  5818. model.setValue("/root/temp2/slipcmt" , model.getValue("/root/hidden/condition/slipcmt"));
  5819. model.setValue("/root/temp2/amt" , model.getValue("/root/main/unsl_one/amt"));
  5820. model.refresh();
  5821. ]]>
  5822. </script>
  5823. </button>
  5824. <caption id="caption68" class="cell_1" visibility="hidden" style="left:925px; top:154px; width:70px; height:23px; ">보조과목</caption>
  5825. <select1 id="combo1" ref="/root/main/unsl_one/cdbojo1" navindex="7" visibility="hidden" appearance="minimal" style="left:999px; top:156px; width:190px; height:19px; ">
  5826. <choices>
  5827. <itemset nodeset="/root/init/combo4/acntcmb">
  5828. <label ref="bojonm"/>
  5829. <value ref="bojocd"/>
  5830. </itemset>
  5831. </choices>
  5832. </select1>
  5833. <button id="btn_delete" class="btn4_letter2" visibility="visible" style="left:1064px; top:705px; width:56px; height:22px; ">
  5834. <caption>삭제</caption>
  5835. <script type="javascript" ev:event="DOMActivate">
  5836. <![CDATA[
  5837. if (!fSlipAprvChk()) {
  5838. return;
  5839. }
  5840. fDeleteClick();
  5841. ]]>
  5842. </script>
  5843. </button>
  5844. <button id="btn_dayshift" class="btn4_letter4" disabled="true" visibility="hidden" style="left:915px; top:98px; width:80px; height:22px; ">
  5845. <caption>날짜변경</caption>
  5846. <script type="javascript" ev:event="DOMActivate">
  5847. <![CDATA[
  5848. if(model.getValue("/root/hidden/condition/slipflag") == "9")
  5849. {
  5850. messageBox("[전표 반제 전표]는 날짜를 변경할 수 없습니다. \n전표 반제 프로그램에서 작업하세요", "I000");
  5851. return false;
  5852. }
  5853. fCopyShftSlip("shift");
  5854. ]]>
  5855. </script>
  5856. </button>
  5857. <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:1005px; top:705px; width:56px; height:22px; ">
  5858. <caption>저장</caption>
  5859. <script type="javascript" ev:event="DOMActivate">
  5860. <![CDATA[
  5861. if (!fSlipAprvChk("N"))
  5862. {
  5863. return;
  5864. }
  5865. if (!fprofChk())
  5866. {
  5867. return;
  5868. }
  5869. fSaveClick();
  5870. ]]>
  5871. </script>
  5872. </button>
  5873. <button id="btn_clear" class="btn4_letter3" visibility="visible" style="left:1124px; top:705px; width:68px; height:22px; ">
  5874. <caption>초기화</caption>
  5875. <script type="javascript" ev:event="DOMActivate">
  5876. <![CDATA[
  5877. if (messageBox("전표를 초기화 하시겠습니까?", "Q999") == "6")
  5878. {
  5879. fClearClick();
  5880. caption72.visible = false;
  5881. input4.visible = false;
  5882. input5.visible = false;
  5883. caption73.visible = false;
  5884. button5.visible = false;
  5885. }
  5886. ]]>
  5887. </script>
  5888. </button>
  5889. <caption id="caption70" class="cell_1" visibility="hidden" style="left:925px; top:184px; width:70px; height:23px; ">관리항목</caption>
  5890. <input id="input3" ref="/root/main/unsl_one/cdbojo2" navindex="8" visibility="hidden" style="left:999px; top:185px; width:190px; height:19px; "/>
  5891. <datagrid id="grd_unsl" nodeset="/root/main/unsl" caption="기관코드^미결전표일자^미결전표번호^연번^차/대^프로젝트ID^프로젝트명^전표구분^전표유형^회계구분^계정코드^계정명^계정구분^관리항목^보조과목^보조과목코드^예산코드^거래처구분^상대처^상대처명^청구부서^청구부서^원가귀속부서^원가귀속부서^예산관리부서^예산관리부서명^기표부서^기표부서명^자금과목^증빙구분^증빙수량^기재사항명1^기재사항코드1^관리항목1^기재사항명2^기재사항코드2^관리항목2^기재사항명3^기재사항코드3^관리항목3^기재사항명4^기재사항코드4^관리항목4^기재사항명5^기재사항코드5^관리항목5^기재사항명6^기재사항코드6^관리항목6^적요^자동분개구분^증빙자료^일련번호^출금요청일자^예산승인여부^예산자동승인여부^예산수익비용구분^미결전표작성자^작성자명^결재여부^금액^차변^대변^예산금액^상대계정일련번호^상위계정^전표적요^부서결재란1^부서결재란2^부서결재란3^부서결재란4^부서결재란5^재무결재란1^재무결재란2^재무결재란3^재무결재란4^재무결재란5^caption1^caption2^caption4" colsep="^" colwidth="0, 100, 100, 38, 57, 69, 100, 100, 100, 100, 76, 115, 100, 90, 130, 100, 100, 100, 64, 91, 100, 90, 100, 100, 100, 100, 100, 100, 70, 95, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 244, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 80, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:170px; width:1195px; height:533px; ">
  5892. <col ref="instcd" visibility="hidden"/>
  5893. <col ref="unsldd" visibility="hidden"/>
  5894. <col ref="unslno" visibility="hidden"/>
  5895. <col ref="unslseqno"/>
  5896. <col ref="drcrflag" type="combo">
  5897. <choices>
  5898. <item>
  5899. <label>차변</label>
  5900. <value>D</value>
  5901. </item>
  5902. <item>
  5903. <label>대변</label>
  5904. <value>C</value>
  5905. </item>
  5906. </choices>
  5907. </col>
  5908. <col ref="projectid" visibility="hidden"/>
  5909. <col ref="projectnm" visibility="hidden"/>
  5910. <col ref="slipflag" visibility="hidden"/>
  5911. <col ref="slipkind" visibility="hidden"/>
  5912. <col ref="acountingflag" visibility="hidden"/>
  5913. <col ref="acntcd" type="inputbutton"/>
  5914. <col ref="acntnm"/>
  5915. <col ref="acntflag" visibility="hidden"/>
  5916. <col ref="cdbojo2" type="inputbutton"/>
  5917. <col editmode="inputsearch" ref="cdbojo1" type="combo">
  5918. <choices>
  5919. <itemset nodeset="/root/init/combo4/acntcmb">
  5920. <label ref="bojonm"/>
  5921. <value ref="bojocd"/>
  5922. </itemset>
  5923. </choices>
  5924. </col>
  5925. <col ref="suppitemcd" visibility="hidden"/>
  5926. <col ref="bugtcd" visibility="hidden"/>
  5927. <col ref="custflag" visibility="hidden"/>
  5928. <col ref="custcd" type="inputbutton"/>
  5929. <col ref="custnm"/>
  5930. <col ref="costcntrdeptcd" visibility="hidden"/>
  5931. <col ref="costcntrdeptnm" visibility="hidden"/>
  5932. <col ref="costbelongdeptcd" visibility="hidden"/>
  5933. <col ref="costbelongdeptnm" visibility="hidden"/>
  5934. <col ref="bugtmngtdeptcd" visibility="hidden"/>
  5935. <col ref="bugtmngtdeptnm" visibility="hidden"/>
  5936. <col ref="slipdeptcd" visibility="hidden"/>
  5937. <col ref="slipdeptnm" visibility="hidden"/>
  5938. <col disabled="true" editmode="search" ref="fundscd" type="combo" visibility="hidden">
  5939. <choices>
  5940. <itemset nodeset="/root/init/fundscdlist/fundscd">
  5941. <label ref="nm"/>
  5942. <value ref="cd"/>
  5943. </itemset>
  5944. </choices>
  5945. </col>
  5946. <col disabled="true" editmode="search" ref="profflag" type="combo" visibility="hidden">
  5947. <choices>
  5948. <itemset nodeset="/root/init/profflaglist/profflag">
  5949. <label ref="nm"/>
  5950. <value ref="cd"/>
  5951. </itemset>
  5952. </choices>
  5953. </col>
  5954. <col ref="etcprofcnt" visibility="hidden"/>
  5955. <col ref="notefactnm1" visibility="hidden"/>
  5956. <col ref="notefactcd1" visibility="hidden"/>
  5957. <col ref="notefactspec1" visibility="hidden"/>
  5958. <col ref="notefactnm2" visibility="hidden"/>
  5959. <col ref="notefactcd2" visibility="hidden"/>
  5960. <col ref="notefactspec2" visibility="hidden"/>
  5961. <col ref="notefactnm3" visibility="hidden"/>
  5962. <col ref="notefactcd3" visibility="hidden"/>
  5963. <col ref="notefactspec3" visibility="hidden"/>
  5964. <col ref="notefactnm4" visibility="hidden"/>
  5965. <col ref="notefactcd4" visibility="hidden"/>
  5966. <col ref="notefactspec4" visibility="hidden"/>
  5967. <col ref="notefactnm5" visibility="hidden"/>
  5968. <col ref="notefactcd5" visibility="hidden"/>
  5969. <col ref="notefactspec5" visibility="hidden"/>
  5970. <col ref="notefactnm6" visibility="hidden"/>
  5971. <col ref="notefactcd6" visibility="hidden"/>
  5972. <col ref="notefactspec6" visibility="hidden"/>
  5973. <col ref="etcnotefact" type="input"/>
  5974. <col ref="autjournflag" visibility="hidden"/>
  5975. <col ref="profdata" visibility="hidden"/>
  5976. <col ref="seqno" visibility="hidden"/>
  5977. <col ref="defrayreqdd" visibility="hidden"/>
  5978. <col ref="bugtaprvyn" visibility="hidden"/>
  5979. <col ref="bugtautoaprvyn" visibility="hidden"/>
  5980. <col ref="bugtearncostflag" visibility="hidden"/>
  5981. <col ref="unslwrit" visibility="hidden"/>
  5982. <col ref="usernm" visibility="hidden"/>
  5983. <col ref="sanctyn" visibility="hidden"/>
  5984. <col ref="amt" type="input" format="(-)#,###" style="text-align:right; "/>
  5985. <col ref="dramt" visibility="visible" format="(-)#,###" style="left:5839px; top:23px; width:80px; height:23px; text-align:right; "/>
  5986. <col ref="cramt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
  5987. <col ref="bugtamt" visibility="hidden"/>
  5988. <col ref="rlaacntseqno" visibility="hidden"/>
  5989. <col ref="supacntnm" visibility="hidden"/>
  5990. <col ref="slipcmt" visibility="hidden"/>
  5991. <col ref="approval11" visibility="hidden"/>
  5992. <col ref="approval12" visibility="hidden"/>
  5993. <col ref="approval13" visibility="hidden"/>
  5994. <col ref="approval14" visibility="hidden"/>
  5995. <col ref="approval15" visibility="hidden"/>
  5996. <col ref="approval21" visibility="hidden"/>
  5997. <col ref="approval22" visibility="hidden"/>
  5998. <col ref="approval23" visibility="hidden"/>
  5999. <col ref="approval24" visibility="hidden"/>
  6000. <col ref="approval25" visibility="hidden"/>
  6001. <col ref="servseqno" visibility="hidden"/>
  6002. <col ref="ymdaction" visibility="hidden"/>
  6003. <col ref="ymdpum" visibility="hidden"/>
  6004. <script type="javascript" ev:event="onclick">
  6005. <![CDATA[
  6006. /*
  6007. if(grd_unsl.isCell(event.target) && grd_unsl.row >= grd_unsl.fixedRows)
  6008. {
  6009. fGridRowClick();
  6010. model.setValue("/root/send/data5/instcd", model.getValue("/root/main/unsl_one/instcd"));
  6011. model.setValue("/root/send/data5/deptcd", ipt_costcntrdeptcd.value);
  6012. model.setValue("/root/send/data5/unsldd", ipt_unsldd.value);
  6013. model.setValue("/root/send/data5/refcond", "code");
  6014. model.setValue("/root/send/data5/retrnm", model.getValue("/root/main/unsl_one/acntcd"));
  6015. submit("TRRAD90107");
  6016. if(instance1.selectNodes("/root/main/list/bugtorgnzlist").length > 0)
  6017. {
  6018. model.setValue("/root/main/unsl_one/bugtamt", model.getValue("/root/main/list/bugtorgnzlist/bugtamt"));
  6019. }
  6020. else
  6021. {
  6022. model.setValue("/root/main/unsl_one/bugtamt", 0);
  6023. }
  6024. fetcprofcntcheck();
  6025. model.refresh();
  6026. }
  6027. else
  6028. {
  6029. var cur_row = grd_unsl.findRow(model.getValue("/root/main/unsl_one/unslseqno"),1,4);
  6030. grd_unsl.row = cur_row;
  6031. }
  6032. //fCheckServAcnt();
  6033. if(cmb_custflag.value == "1")
  6034. {
  6035. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  6036. }
  6037. model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
  6038. //model.setValue("/root/main/unsl_one/cdbojo1", "");
  6039. submit("TRRAD01701");
  6040. model.refresh();
  6041. */
  6042. ]]>
  6043. </script>
  6044. <script type="javascript" ev:event="onbuttonclick">
  6045. <![CDATA[
  6046. if (grd_unsl.colAttribute(grd_unsl.col,"ref") == "acntcd" ) {
  6047. model.removeNodeset("/root/hidden/projectidlist");
  6048. fOpenPopupHelp("05", grd_unsl, "acntcd,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  6049. fAcntSelect();
  6050. //fCheckServAcnt();
  6051. model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl[" + grd_unsl.row + "]/acntcd"));
  6052. model.setValue("/root/main/unsl_one/cdbojo1", "");
  6053. model.setValue("/root/main/unsl_one/cdbojo2", "*");
  6054. model.setValue("/root/main/unsl_one/profflag", "6");
  6055. model.setValue("/root/main/unsl_one/seqno", "1");
  6056. submit("TRRAD01701");
  6057. }
  6058. if (grd_unsl.colAttribute(grd_unsl.col,"ref") == "custcd" ) {
  6059. fOpenPopupHelp("14", grd_unsl, "custcd,custnm", "", "");
  6060. }
  6061. if (grd_unsl.colAttribute(grd_unsl.col,"ref") == "cdbojo2") {
  6062. //2011.04.07 박준범 - cdbojonm2 가 없어서 SMRPQ02000.xrw 에서 parameter 받을 때 오류발생
  6063. // - cobo2 만 parameter 넘겨받도록 SMRPQ02000.xrw 수정
  6064. // ( "/root/pop2data/xrwseq" 에 4를 넘겨주는 경우를 추가했음 )
  6065. //2011.05.18 박준범 - 그리드의 row를 넘겨야 해당 row로 값을 받아올 수 있으므로 pop2data에 no element를 추가해서 엄김
  6066. //model.setValue("/root/pop2data/xrwseq", "1");
  6067. model.setValue("/root/pop2data/xrwseq", "4");
  6068. model.setValue("/root/pop2data/no", grd_unsl.row);
  6069. //2011.05.31 박준범 - 전표조회 후, 관리항목 popup 통해 수정시 rowStatus가 "U" 로 변경되지 않는 문제 해결위해
  6070. // pop전 값과 popup 후 값을 비교하여 rowStatus 를 강제 setting함
  6071. var orgCdbojo2 = ""; //popup 열기전 cdbojo2의 값을 저장
  6072. orgCdbojo2 = grd_unsl.valueMatrix( grd_unsl.row, grd_unsl.colRef("cdbojo2") );
  6073. window.load("SMRPQ02000.xrw", "modal","", "", "/root/pop2data","/root/pop2data");
  6074. if ( grd_unsl.valueMatrix( grd_unsl.row, grd_unsl.colRef("cdbojo2") ) != orgCdbojo2 ) // 관리항목 값이 변경된 경우
  6075. {
  6076. grd_unsl.addStatus( grd_unsl.row, "update" );
  6077. //참고 : update status 는 Row가 raw 상태에만 적용되며, insert, delete 상태일 때는 적용이 안됨.
  6078. }
  6079. }
  6080. model.refresh();
  6081. ]]>
  6082. </script>
  6083. <script type="javascript" ev:event="xforms-value-changed">
  6084. <![CDATA[
  6085. var drcrflag = "";
  6086. var amt = 0;
  6087. if (grd_unsl.colAttribute(grd_unsl.col,"ref") == "amt" || grd_unsl.colAttribute(grd_unsl.col,"ref") == "drcrflag") {
  6088. drcrflag = model.getValue("/root/main/unsl[" + grd_unsl.row + "]/drcrflag");
  6089. amt = model.getValue("/root/main/unsl[" + grd_unsl.row + "]/amt");
  6090. if (drcrflag == "D"){
  6091. model.setValue("/root/main/unsl[" + grd_unsl.row + "]/dramt", amt);
  6092. model.setValue("/root/main/unsl[" + grd_unsl.row + "]/cramt", 0);
  6093. }else{
  6094. model.setValue("/root/main/unsl[" + grd_unsl.row + "]/cramt", amt);
  6095. model.setValue("/root/main/unsl[" + grd_unsl.row + "]/dramt", 0);
  6096. }
  6097. }
  6098. if(grd_unsl.col == grd_unsl.colRef("acntcd")){
  6099. model.setValue("/root/send/data7/acntcd", grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("acntcd")));
  6100. model.setValue("/root/send/data7/gubun", "acnt");
  6101. model.setValue("/root/send/data7/instcd", getUserInfo("dutplceinstcd"));
  6102. submit("TRRAD00116");
  6103. grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("acntnm")) = model.getValue("/root/griddatainfo/acntcdlist/acntnm");
  6104. }else if(grd_unsl.col == grd_unsl.colRef("custcd")){
  6105. model.setValue("/root/send/data7/custcode", grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("custcd")));
  6106. model.setValue("/root/send/data7/gubun", "cust");
  6107. model.setValue("/root/send/data7/instcd", getUserInfo("dutplceinstcd"));
  6108. submit("TRRAD00116");
  6109. grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("custnm")) = model.getValue("/root/griddatainfo/custlist/custnm");
  6110. }
  6111. model.refresh();
  6112. ]]>
  6113. </script>
  6114. </datagrid>
  6115. <line id="line14" class="line_1" style="x1:0px; y1:166px; x2:1195px; y2:166px; "/>
  6116. <button id="btn_grddel" class="btn2_letter3" style="left:1137px; top:143px; width:53px; height:19px; ">
  6117. <caption>행삭제</caption>
  6118. <script type="javascript" ev:event="DOMActivate">
  6119. <![CDATA[
  6120. // 2011.08.10 cyw 드레그기능으로 일정 범위 선택후 삭제기능 추가. 주대경선생님 요청.
  6121. if( grd_unsl.selectedRows > 1){
  6122. fMultiGridRowDelClick();
  6123. }else{
  6124. if(grd_unsl.row >= grd_unsl.fixedRows){
  6125. if (messageBox(grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("unslseqno")) + "번 전표를", "Q001") == "6")
  6126. {
  6127. if (!fSlipAprvChk("N"))
  6128. {
  6129. return;
  6130. }
  6131. fGridRowDelClick();
  6132. fRowClearClick();
  6133. //fSaveClick("Y");
  6134. }
  6135. }
  6136. }
  6137. model.refresh();
  6138. ]]>
  6139. </script>
  6140. </button>
  6141. <button id="btn_grdadd" accesskey="f2" class="btn2_letter3" style="left:1077px; top:143px; width:53px; height:19px; ">
  6142. <caption>행추가</caption>
  6143. <script type="javascript" ev:event="DOMActivate">
  6144. <![CDATA[
  6145. if (!fSlipAprvChk("N")) {
  6146. return;
  6147. }
  6148. /*
  6149. model.setValue("/root/main/unsl_one/profflag", "6");
  6150. if(model.getValue("/root/main/unsl_one/profflag") != 6 && model.getValue("/root/main/unsl_one/seqno") == "")
  6151. {
  6152. messageBox("증빙이 입력되지 않았습니다.","I000");
  6153. return false;
  6154. }
  6155. */
  6156. //if(!fdayreptAcntcdException())return;
  6157. /*
  6158. if(!fcheckAcntOption())
  6159. {
  6160. return;
  6161. }
  6162. */
  6163. fGridRowAddClick();
  6164. //model.setValue("/root/main/unsl_one/etcnotefact", ipt_slipcmt.value);
  6165. misfGridIUDs(grd_unsl, "A");
  6166. var slipcmt = model.getValue("/root/hidden/condition/slipcmt");
  6167. if (slipcmt == ""){
  6168. slipcmt = " ";
  6169. }
  6170. model.setValue("/root/main/unsl[" + grd_unsl.row + "]/etcnotefact", model.getValue("/root/hidden/condition/slipcmt"));
  6171. model.setValue("/root/main/unsl[" + grd_unsl.row + "]/custflag", "9");
  6172. model.setValue("/root/main/unsl[" + grd_unsl.row + "]/slipcmt", slipcmt);
  6173. model.refresh();
  6174. model.setFocus("grd_unsl");
  6175. var irow = grd_unsl.row;
  6176. grd_unsl.row = irow;
  6177. grd_unsl.col = 3;
  6178. grd_unsl.refresh();
  6179. //model.setFocus(grd_unsl.attribute("max"));
  6180. //grd_unsl.buttom(row);
  6181. //ipt_etcnotefact.refresh();
  6182. ]]>
  6183. </script>
  6184. </button>
  6185. <button id="button4" class="btn4_letter2" style="left:1120px; top:33px; width:56px; height:22px; ">
  6186. <caption>출력</caption>
  6187. <script type="javascript" ev:event="DOMActivate">
  6188. <![CDATA[
  6189. if(slipflag != "") {
  6190. var slipflag = cmb_slipflag.value;
  6191. //if(slipflag == 'N'){
  6192. model.setValue("/root/send/paydedu/sanctslipdd", model.getValue("/root/hidden/condition/unsldd"));
  6193. model.setValue("/root/send/paydedu/sanctslipno", model.getValue("/root/hidden/condition/unslno"));
  6194. //}
  6195. //2011.04.22 박준범 - 전표구분이 T(수익전표전체)인 경우는 표지가 있는 별도 전표양식을 출력
  6196. if(slipflag == "T") {
  6197. submit("TRRAD03802");
  6198. exeReportPreview("RPRAD03802", "XMLSTR");
  6199. //exeReportPreview("RPRAD03802", "XMLSTR" , "" , "" , "false" , "", "", "", "", "true","","","","","","","","false");
  6200. }else{
  6201. submit("TRRAD03801");
  6202. exeReportPreview("RPRAD03801", "XMLSTR");
  6203. }
  6204. }
  6205. ]]>
  6206. </script>
  6207. </button>
  6208. <button id="button5" class="btn4_letter4" visibility="hidden" style="left:865px; top:105px; width:80px; height:22px; ">
  6209. <caption>자동분개</caption>
  6210. <script type="javascript" ev:event="DOMActivate">
  6211. <![CDATA[
  6212. if (model.getValue("/root/hidden/condition/genrfrom") == "" || model.getValue("/root/hidden/condition/genrto") == ""){
  6213. messageBox("발의일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
  6214. return;
  6215. }
  6216. model.removenode("/root/main/genrinfo/genrlist");
  6217. var irow = grd_unsl.rows;
  6218. irow = parseInt(irow) - 1;
  6219. if (submit("TRRAD00117")){
  6220. for (var i = 1; i < datagrid1.rows; i++){
  6221. fGridRowAddClick();
  6222. misfGridIUDs(grd_unsl, "A");
  6223. var slipcmt = model.getValue("/root/hidden/condition/slipcmt");
  6224. if (slipcmt == ""){
  6225. slipcmt = " ";
  6226. }
  6227. irow = parseInt(irow) + 1;
  6228. model.setValue("/root/main/unsl[" + irow + "]/etcnotefact", model.getValue("/root/main/genrinfo/genrlist[" + i + "]/slipcmt"));
  6229. model.setValue("/root/main/unsl[" + irow + "]/custflag", "9");
  6230. model.setValue("/root/main/unsl[" + irow + "]/slipcmt", slipcmt);
  6231. model.setValue("/root/main/unsl[" + irow + "]/drcrflag", model.getValue("/root/main/genrinfo/genrlist[" + i + "]/drcrflag"));
  6232. model.setValue("/root/main/unsl[" + irow + "]/acntcd", model.getValue("/root/main/genrinfo/genrlist[" + i + "]/acntcd"));
  6233. model.setValue("/root/main/unsl[" + irow + "]/acntnm", model.getValue("/root/main/genrinfo/genrlist[" + i + "]/acntnm"));
  6234. model.setValue("/root/main/unsl[" + irow + "]/amt", model.getValue("/root/main/genrinfo/genrlist[" + i + "]/amt"));
  6235. var drcrflag = model.getValue("/root/main/genrinfo/genrlist[" + i + "]/drcrflag");
  6236. var amt = model.getValue("/root/main/genrinfo/genrlist[" + i + "]/amt");
  6237. if (drcrflag == "D"){
  6238. model.setValue("/root/main/unsl[" + irow + "]/dramt", amt);
  6239. model.setValue("/root/main/unsl[" + irow + "]/cramt", 0);
  6240. }else{
  6241. model.setValue("/root/main/unsl[" + irow + "]/cramt", amt);
  6242. model.setValue("/root/main/unsl[" + irow + "]/dramt", 0);
  6243. }
  6244. }
  6245. fGridRowAddClick();
  6246. misfGridIUDs(grd_unsl, "A");
  6247. var irow = parseInt(irow) + 1;
  6248. model.setValue("/root/main/unsl[" + irow + "]/dramt", 0);
  6249. model.setValue("/root/main/unsl[" + irow + "]/cramt", 0);
  6250. grd_unsl.deleteRow(irow);
  6251. model.refresh();
  6252. }
  6253. ]]>
  6254. </script>
  6255. </button>
  6256. <datagrid id="datagrid1" nodeset="/root/main/genrinfo/genrlist" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:240px; top:260px; width:635px; height:235px; ">
  6257. <col ref="drcrflag"/>
  6258. <col ref="acntcd"/>
  6259. <col ref="acntnm"/>
  6260. <col ref="slipcmt"/>
  6261. <col ref="amt"/>
  6262. </datagrid>
  6263. <button id="btn_jichul" class="btn4_letter7" visibility="hidden" style="left:1061px; top:57px; width:116px; height:22px; ">
  6264. <caption>지출결의서출력</caption>
  6265. <script type="javascript" ev:event="DOMActivate">
  6266. <![CDATA[
  6267. // 2011.09.23 cyw 추가
  6268. model.setValue("/root/send/paydedu/sanctslipdd", model.getValue("/root/hidden/condition/unsldd"));
  6269. model.setValue("/root/send/paydedu/sanctslipno", model.getValue("/root/hidden/condition/unslno"));
  6270. submit("TRRAD03702");
  6271. exeReportPreview("RPRAD03701", "XMLSTR"); // , "" , "" , "false" , "", "", "", "", "true","","","","","","","","false");
  6272. ]]>
  6273. </script>
  6274. </button>
  6275. <button id="btn_accntuncl" class="btn4_letter8" visibility="hidden" style="left:1049px; top:57px; width:128px; height:22px; ">
  6276. <caption>결산정리전표출력</caption>
  6277. <script type="javascript" ev:event="DOMActivate">
  6278. <![CDATA[
  6279. // 2011.09.23 cyw 추가
  6280. model.setValue("/root/send/paydedu/yyyy", model.getValue("/root/hidden/condition/unsldd"));
  6281. model.setValue("/root/send/paydedu/sanctslipdd", model.getValue("/root/hidden/condition/unsldd"));
  6282. model.setValue("/root/send/paydedu/sanctslipno", model.getValue("/root/hidden/condition/unslno"));
  6283. submit("TRRAH01101");
  6284. exeReportPreview("SMRAH00801", "XMLSTR");
  6285. ]]>
  6286. </script>
  6287. </button>
  6288. </group>
  6289. </xhtml:body>
  6290. </xhtml:html>