SMRAD00100_전표입력관리.xrw 262 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546
  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. <ymdpum/>
  101. </unsl_one>
  102. <transacnt/>
  103. <slipproflist/>
  104. <bugtacptlist/>
  105. <apln>
  106. <approval11/>
  107. <approval12/>
  108. <approval13/>
  109. <approval14/>
  110. <approval15/>
  111. <approval16/>
  112. <approval17/>
  113. <approval21/>
  114. <approval22/>
  115. <approval23/>
  116. <approval24/>
  117. <approval25/>
  118. <approval26/>
  119. <approval27/>
  120. <iudflag/>
  121. <instcd/>
  122. <deptcd/>
  123. <aplnflag/>
  124. <arbitrary1/>
  125. <arbitrary2/>
  126. <arbitrary3/>
  127. <arbitrary4/>
  128. <arbitrary5/>
  129. <arbitrary6/>
  130. </apln>
  131. <list/>
  132. <slipsearch>
  133. <unsldd/>
  134. <unslno/>
  135. </slipsearch>
  136. <vincostunsl/>
  137. </main>
  138. <send>
  139. <data1>
  140. <instcd/>
  141. <slipdd/>
  142. <slipflag/>
  143. </data1>
  144. <data2>
  145. <instcd/>
  146. <acntcd/>
  147. <drcrflag/>
  148. </data2>
  149. <data3>
  150. <instcd/>
  151. <unsldd/>
  152. <unslno/>
  153. <slipdeptcd/>
  154. <unslddno/>
  155. <aplnflag>1</aplnflag>
  156. <costcntrdeptcd/>
  157. <drcrcmt/>
  158. </data3>
  159. <unsl/>
  160. <data4>
  161. <mngtcd/>
  162. <instcd/>
  163. </data4>
  164. <data5>
  165. <instcd/>
  166. <unsldd/>
  167. <deptcd/>
  168. <refcond/>
  169. <retrnm/>
  170. <sqlkind/>
  171. <drcrflag/>
  172. </data5>
  173. <data6>
  174. <instcd/>
  175. <unsldd/>
  176. <unslno/>
  177. </data6>
  178. <transacntlist>
  179. <transacnt/>
  180. </transacntlist>
  181. <paydedu>
  182. <acntcd/>
  183. </paydedu>
  184. </send>
  185. <hidden>
  186. <acntcdinfo>
  187. <instcd/>
  188. <acntcd/>
  189. <acntnm/>
  190. <acntflag/>
  191. <slipyn/>
  192. <expsprofyn/>
  193. <balflag/>
  194. <custflag/>
  195. <notecd1/>
  196. <notecdnm1/>
  197. <mngtkind1/>
  198. <inptkind1/>
  199. <frmt1/>
  200. <popwnd1/>
  201. <notecd2/>
  202. <notecdnm2/>
  203. <mngtkind2/>
  204. <inptkind2/>
  205. <frmt2/>
  206. <popwnd2/>
  207. <notecd3/>
  208. <notecdnm3/>
  209. <mngtkind3/>
  210. <inptkind3/>
  211. <frmt3/>
  212. <popwnd3/>
  213. <notecd4/>
  214. <notecdnm4/>
  215. <mngtkind4/>
  216. <inptkind4/>
  217. <frmt4/>
  218. <popwnd4/>
  219. <notecd5/>
  220. <notecdnm5/>
  221. <mngtkind5/>
  222. <inptkind5/>
  223. <frmt5/>
  224. <popwnd5/>
  225. <notecd6/>
  226. <notecdnm6/>
  227. <mngtkind6/>
  228. <inptkind6/>
  229. <frmt6/>
  230. <popwnd6/>
  231. <bugtcostacntcd/>
  232. <bugtuseyn/>
  233. <bugtcntryn/>
  234. <bugtautoaprvyn/>
  235. <fundscd/>
  236. <suppitemcd/>
  237. <option1/>
  238. <option2/>
  239. <option3/>
  240. <option4/>
  241. <option5/>
  242. <option6/>
  243. </acntcdinfo>
  244. <acntcdcombo>
  245. <notecombo1>
  246. <cdnm/>
  247. <cdid/>
  248. </notecombo1>
  249. <notecombo2>
  250. <cdnm/>
  251. <cdid/>
  252. </notecombo2>
  253. <notecombo3>
  254. <cdnm/>
  255. <cdid/>
  256. </notecombo3>
  257. <notecombo4>
  258. <cdnm/>
  259. <cdid/>
  260. </notecombo4>
  261. <notecombo5>
  262. <cdnm/>
  263. <cdid/>
  264. </notecombo5>
  265. <notecombo6>
  266. <cdnm/>
  267. <cdid/>
  268. </notecombo6>
  269. </acntcdcombo>
  270. <condition>
  271. <slipkind>3</slipkind>
  272. <unsldd/>
  273. <unslno/>
  274. <slipflag>1</slipflag>
  275. <projectid/>
  276. <projectnm/>
  277. <instcd/>
  278. <slipcmt/>
  279. <defrayreqdd/>
  280. <slipdeptcd/>
  281. <slipdeptnm/>
  282. <costbelongdeptcd/>
  283. <costbelongdeptnm/>
  284. <drcrcmt>D</drcrcmt>
  285. <acountingflag>1</acountingflag>
  286. <ymdaction/>
  287. <ymdpum/>
  288. </condition>
  289. <maxslipno>
  290. <unslno/>
  291. </maxslipno>
  292. <maxslipseqno>00000</maxslipseqno>
  293. <drsum/>
  294. <crsum/>
  295. <unsl_one>
  296. <instcd/>
  297. <unsldd/>
  298. <unslno/>
  299. <unslseqno/>
  300. <projectid/>
  301. <projectnm/>
  302. <slipflag/>
  303. <slipkind/>
  304. <acountingflag/>
  305. <drcrflag/>
  306. <acntcd/>
  307. <acntnm/>
  308. <suppitemcd/>
  309. <bugtcd/>
  310. <bugtnm/>
  311. <custflag/>
  312. <custcd/>
  313. <custnm/>
  314. <costcntrdeptcd/>
  315. <costcntrdeptnm/>
  316. <bugtmngtdeptcd/>
  317. <bugtmngtdeptnm/>
  318. <costbelongdeptcd/>
  319. <costbelongdeptnm/>
  320. <slipdeptcd/>
  321. <slipdeptnm/>
  322. <fundscd/>
  323. <profflag/>
  324. <notefactnm1/>
  325. <notefactcd1/>
  326. <notefactspec1/>
  327. <notefactnm2/>
  328. <notefactcd2/>
  329. <notefactspec2/>
  330. <notefactnm3/>
  331. <notefactcd3/>
  332. <notefactspec3/>
  333. <notefactnm4/>
  334. <notefactcd4/>
  335. <notefactspec4/>
  336. <notefactnm5/>
  337. <notefactcd5/>
  338. <notefactspec5/>
  339. <notefactnm6/>
  340. <notefactcd6/>
  341. <notefactspec6/>
  342. <etcnotefact/>
  343. <autjournflag/>
  344. <profdata/>
  345. <seqno/>
  346. <defrayreqdd/>
  347. <bugtaprvyn/>
  348. <bugtautoaprvyn/>
  349. <bugtearncostflag/>
  350. <unslwrit/>
  351. <usernm/>
  352. <sanctyn/>
  353. <dramt/>
  354. <cramt/>
  355. <amt/>
  356. <bugtamt/>
  357. <sanctno/>
  358. <rlaacntseqno/>
  359. <supacntnm/>
  360. <slipcmt/>
  361. <approval11/>
  362. <approval12/>
  363. <approval13/>
  364. <approval14/>
  365. <approval15/>
  366. <approval16/>
  367. <approval17/>
  368. <approval21/>
  369. <approval22/>
  370. <approval23/>
  371. <approval24/>
  372. <approval25/>
  373. <approval26/>
  374. <approval27/>
  375. <orgbugtamtsum/>
  376. <revbugtamtsum/>
  377. <bugtexecamtsum/>
  378. <bugtflag/>
  379. <bugtflagnm/>
  380. <servseqno/>
  381. <etcprofcnt/>
  382. </unsl_one>
  383. <slipyn>Y</slipyn>
  384. <allexpsacntsum/>
  385. <expsacntsum/>
  386. <expsacnt/>
  387. <rptparm>
  388. <instcd/>
  389. <instnm/>
  390. <slipno/>
  391. <reprtyn/>
  392. <bugtinfocnt/>
  393. <profinfocnt/>
  394. <transinfocnt/>
  395. <dayworkerprntlistcnt/>
  396. <priprofprntlistcnt/>
  397. <etcprofprntlistcnt/>
  398. <retrprofprntlistcnt/>
  399. <servprofprntlistcnt/>
  400. <expansion/>
  401. <preview/>
  402. </rptparm>
  403. <orchreturn>
  404. <seqno/>
  405. <amt/>
  406. <etcnotefact/>
  407. <incmtax/>
  408. <resdntax/>
  409. </orchreturn>
  410. <prntlist>
  411. <dayworkerprntlist/>
  412. <priprofprntlist/>
  413. <etcprofprntlist/>
  414. </prntlist>
  415. <retexpacntsum/>
  416. <chklist/>
  417. <tempnode>
  418. <emplno/>
  419. <emplnm/>
  420. </tempnode>
  421. <acntyy/>
  422. <prev_prof/>
  423. <delaact>
  424. <transacnt>
  425. <instcd/>
  426. <unsldd/>
  427. <unslno/>
  428. <jobflag/>
  429. </transacnt>
  430. </delaact>
  431. <projectidlist/>
  432. <userinfo>
  433. <unslwrit/>
  434. <usernm/>
  435. </userinfo>
  436. <copyshiftslip>
  437. <newunsldd/>
  438. <newunslno/>
  439. </copyshiftslip>
  440. <seizureyn>N</seizureyn>
  441. <kijeomitlist/>
  442. <instcardseqnoinfo>
  443. <instcardseqno/>
  444. </instcardseqnoinfo>
  445. <deptflag>1</deptflag>
  446. <slipstatus/>
  447. </hidden>
  448. <init>
  449. <R0008list>
  450. <R0008>
  451. <cdnm/>
  452. <cdid/>
  453. </R0008>
  454. </R0008list>
  455. <R0017list>
  456. <R0017>
  457. <cdnm/>
  458. <cdid/>
  459. </R0017>
  460. </R0017list>
  461. <Z0007list>
  462. <Z0007>
  463. <cdnm/>
  464. <cdid/>
  465. </Z0007>
  466. </Z0007list>
  467. <profflaglist>
  468. <profflag>
  469. <nm>법인카드</nm>
  470. <cd>1</cd>
  471. </profflag>
  472. <profflag>
  473. <nm>개인신용카드</nm>
  474. <cd>2</cd>
  475. </profflag>
  476. <profflag>
  477. <nm>현금영수증</nm>
  478. <cd>3</cd>
  479. </profflag>
  480. <profflag>
  481. <nm>세금계산서</nm>
  482. <cd>4</cd>
  483. </profflag>
  484. <profflag>
  485. <nm>계산서</nm>
  486. <cd>5</cd>
  487. </profflag>
  488. <profflag>
  489. <nm>기타</nm>
  490. <cd>6</cd>
  491. </profflag>
  492. <profflag>
  493. <nm>근로소득</nm>
  494. <cd>7</cd>
  495. </profflag>
  496. <profflag>
  497. <nm>비과세근로소득</nm>
  498. <cd>8</cd>
  499. </profflag>
  500. <profflag>
  501. <nm>퇴직소득</nm>
  502. <cd>9</cd>
  503. </profflag>
  504. <profflag>
  505. <nm>일용근로소득</nm>
  506. <cd>A</cd>
  507. </profflag>
  508. <profflag>
  509. <nm>사업소득</nm>
  510. <cd>B</cd>
  511. </profflag>
  512. <profflag>
  513. <nm>기타소득</nm>
  514. <cd>C</cd>
  515. </profflag>
  516. </profflaglist>
  517. <custflaglist>
  518. <custflag>
  519. <nm>거래처</nm>
  520. <cd>1</cd>
  521. </custflag>
  522. <custflag>
  523. <nm>부서</nm>
  524. <cd>3</cd>
  525. </custflag>
  526. <custflag>
  527. <nm>직원</nm>
  528. <cd>4</cd>
  529. </custflag>
  530. <custflag>
  531. <nm>개인</nm>
  532. <cd>5</cd>
  533. </custflag>
  534. <custflag>
  535. <nm>기타</nm>
  536. <cd>9</cd>
  537. </custflag>
  538. </custflaglist>
  539. <fundscdlist>
  540. <fundscd>
  541. <nm/>
  542. <cd/>
  543. </fundscd>
  544. <fundscd>
  545. <nm>의료수입</nm>
  546. <cd>1100</cd>
  547. </fundscd>
  548. <fundscd>
  549. <nm>의료외수입</nm>
  550. <cd>1900</cd>
  551. </fundscd>
  552. <fundscd>
  553. <nm>인건비</nm>
  554. <cd>2100</cd>
  555. </fundscd>
  556. <fundscd>
  557. <nm>재료비</nm>
  558. <cd>2200</cd>
  559. </fundscd>
  560. <fundscd>
  561. <nm>관리운영비</nm>
  562. <cd>2300</cd>
  563. </fundscd>
  564. <fundscd>
  565. <nm>의료외지출</nm>
  566. <cd>2900</cd>
  567. </fundscd>
  568. <fundscd>
  569. <nm>자산매각</nm>
  570. <cd>3100</cd>
  571. </fundscd>
  572. <fundscd>
  573. <nm>자산취득</nm>
  574. <cd>4100</cd>
  575. </fundscd>
  576. <fundscd>
  577. <nm>기본금증가</nm>
  578. <cd>5100</cd>
  579. </fundscd>
  580. <fundscd>
  581. <nm>기본금감소</nm>
  582. <cd>6100</cd>
  583. </fundscd>
  584. <fundscd>
  585. <nm>예금인출</nm>
  586. <cd>7100</cd>
  587. </fundscd>
  588. <fundscd>
  589. <nm>금융수입</nm>
  590. <cd>7200</cd>
  591. </fundscd>
  592. <fundscd>
  593. <nm>차입실행</nm>
  594. <cd>7300</cd>
  595. </fundscd>
  596. <fundscd>
  597. <nm>대여금회수</nm>
  598. <cd>7400</cd>
  599. </fundscd>
  600. <fundscd>
  601. <nm>예금불입</nm>
  602. <cd>8100</cd>
  603. </fundscd>
  604. <fundscd>
  605. <nm>금융비용</nm>
  606. <cd>8200</cd>
  607. </fundscd>
  608. <fundscd>
  609. <nm>차입상환</nm>
  610. <cd>8300</cd>
  611. </fundscd>
  612. <fundscd>
  613. <nm>자금대여</nm>
  614. <cd>8400</cd>
  615. </fundscd>
  616. <fundscd>
  617. <nm>자금이체</nm>
  618. <cd>9000</cd>
  619. </fundscd>
  620. </fundscdlist>
  621. <code>
  622. <codelist/>
  623. </code>
  624. <arbitrarylist>
  625. <arbitrary>
  626. <nm>결재선</nm>
  627. <cd>1</cd>
  628. </arbitrary>
  629. <arbitrary>
  630. <nm>전결</nm>
  631. <cd>2</cd>
  632. </arbitrary>
  633. <arbitrary>
  634. <nm>후결</nm>
  635. <cd>3</cd>
  636. </arbitrary>
  637. <arbitrary>
  638. <nm>대결</nm>
  639. <cd>4</cd>
  640. </arbitrary>
  641. </arbitrarylist>
  642. <combo4>
  643. <acntcmb>
  644. <bojocd/>
  645. <bojonm/>
  646. </acntcmb>
  647. </combo4>
  648. </init>
  649. <temp>
  650. <cardcd/>
  651. <cardno/>
  652. </temp>
  653. <temp2>
  654. <purgrpno/>
  655. <usedd/>
  656. <unslwrit/>
  657. <slipcmt/>
  658. <amt/>
  659. <cmt/>
  660. <tranflag/>
  661. </temp2>
  662. <target>
  663. </target>
  664. </root>
  665. </instance>
  666. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  667. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" resultref="/root/init/code/codelist"/>
  668. <submission id="TRRAD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/init/combo4"/>
  669. <submission id="TRRAD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/unsl"/>
  670. <submission id="TRRAD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/maxslipno"/>
  671. <submission id="TRRAD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/acntcdinfo"/>
  672. <submission id="TRRAD00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/chklist"/>
  673. <submission id="TRRAD00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/transacnt"/>
  674. <submission id="TRRAD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/prntlist"/>
  675. <submission id="TXRAD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsl" resultref="/root/main/unsl"/>
  676. <submission id="TXRAD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/unsl"/>
  677. <bind id="bind_caption13" ref="/root/hidden/drsum" calculate="sum(/root/main/unsl/dramt)"/>
  678. <bind id="bind_caption14" ref="/root/hidden/crsum" calculate="sum(/root/main/unsl/cramt)"/>
  679. <submission id="TRRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/apln"/>
  680. <submission id="TXRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/apln" resultref="/root/temp"/>
  681. <submission id="TRRAD90107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/main/list"/>
  682. <submission id="TRRAD00152" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/kijeomitlist"/>
  683. <submission id="TRRAD00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/slipproflist"/>
  684. <submission id="TRRAD00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/bugtacptlist"/>
  685. <submission id="TXRAD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/condition" resultref="/root/temp"/>
  686. <submission id="TRRAD00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/vincostunsl"/>
  687. <submission id="TXRAD00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp2" resultref="/root/temp2"/>
  688. </model>
  689. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  690. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  691. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  692. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  693. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  694. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  695. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  696. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  697. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  698. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  699. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  700. <script type="javascript" ev:event="xforms-ready">
  701. <![CDATA[
  702. fCheckAuth();
  703. fInitialize();
  704. ]]>
  705. </script>
  706. <script type="javascript">
  707. <![CDATA[
  708. var cashcd = ""; //현금 계정코드 default 값 "11101001"
  709. var cashcdnm = ""; //현금 계정명 default 값 "현금"
  710. var expsacnt = ""; //입출금 기본계정 default 값 - 기업자유예금 "11101004"
  711. var expsacntnm = ""; //입출금 기본계정 default 값 "기업자유예금"
  712. var acntdept = ""; //재무팀 부서코드 default 값 "4030100000"
  713. var bugtdept = ""; //기획팀 부서코드 default 값 "4060100000"
  714. var incmtax = ""; //소득세 예수금 계정
  715. var incmtaxnm = ""; //소득세 예수금 계정명
  716. var resdntax = ""; //주민세 예수금 계정
  717. var resdntaxnm = ""; //주민세 예수금 계정명
  718. var isacntdept = false;
  719. //var servcd = "";
  720. //var servnm = "";
  721. var seizurecd = "";
  722. var seizurenm = "";
  723. var sExpsacnt_Entrregno = ""; //입출금 기본계좌의 거래처코드
  724. var sExpsacnt_Custnm = ""; //입출금 기본계좌의 거래처명
  725. var sExpsacnt_Aactcd = ""; //입출금 기본계좌의 계좌코드
  726. var sExpsacnt_Aactno = ""; //입출금 기본계좌의 계좌번호
  727. var arrCashAcntCd = new Array();
  728. var arrTransAcntCd = new Array();
  729. var expansion = radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition3');
  730. //========================================================================================
  731. //화면 권한 체크
  732. //========================================================================================
  733. function fCheckAuth()
  734. {
  735. // btn_search.disabled = !checkAuth("R") ;
  736. // btn_save.disabled = !checkAuth("X") ;
  737. // btn_delete.disabled = !checkAuth("X") ;
  738. }
  739. //========================================================================================
  740. //행 추가 부분 값
  741. //========================================================================================
  742. function misfGridIUDs (pGrid_Name, pIAD_Flag) {
  743. if (pGrid_Name.elementName != "xforms:datagrid") {
  744. return;
  745. }
  746. model.setfocus(pGrid_Name.attribute("id"));
  747. if (pIAD_Flag == "A" || pIAD_Flag == "I") {
  748. pGrid_Name.dispatch("onrowchanged");
  749. misfGridDefaultSet(pGrid_Name);
  750. pGrid_Name.col = 1;
  751. }
  752. }
  753. //========================================================================================
  754. //초기화
  755. //========================================================================================
  756. function fInitialize()
  757. {
  758. var sToday = getCurrentDate().toString();
  759. var instcd = getUserInfo("dutplceinstcd");
  760. var deptcd = getUserInfo("dutplcecd");
  761. var deptnm = getUserInfo("dutplcenm");
  762. var cdgbn;
  763. zbcfGetCodeList(new Array("R0008","R0017","Z0007"), new Array("/root/init/R0008list","/root/init/R0017list","/root/init/Z0007list"));
  764. model.removenode("/root/main/unsl");
  765. model.refresh();
  766. //=========기초정보(상수값) Loding===================================================
  767. model.setValue("/root/send/data4/instcd", instcd);
  768. model.setValue("/root/send/data4/mngtcd", "%");
  769. model.refresh();
  770. submit("TRRAZ00001");
  771. for (i=1; i<=instance1.selectNodes("root/init/code/code/codelist").length; i++)
  772. {
  773. cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
  774. if (cdgbn == "acntdept")
  775. {
  776. acntdept = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  777. }
  778. else if (cdgbn == "bugtdept")
  779. {
  780. bugtdept = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  781. }
  782. else if (cdgbn == "cashcd")
  783. {
  784. cashcd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  785. cashcdnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  786. }
  787. else if (cdgbn == "expsacnt")
  788. {
  789. expsacnt = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  790. expsacntnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  791. sExpsacnt_Entrregno = model.getValue("/root/init/code/code/codelist[" + i + "]/entrregno");
  792. sExpsacnt_Custnm = model.getValue("/root/init/code/code/codelist[" + i + "]/custnm");
  793. sExpsacnt_Aactcd = model.getValue("/root/init/code/code/codelist[" + i + "]/aactcd");
  794. sExpsacnt_Aactno = model.getValue("/root/init/code/code/codelist[" + i + "]/aactno");
  795. model.setValue("/root/hidden/expsacnt",expsacnt);
  796. }
  797. else if (cdgbn == "incmtax")
  798. {
  799. incmtax = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  800. incmtaxnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  801. }
  802. else if (cdgbn == "resdntax")
  803. {
  804. resdntax = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  805. resdntaxnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  806. }
  807. else if (cdgbn == "cashacntcd")
  808. {
  809. arrCashAcntCd[arrCashAcntCd.length] = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  810. }
  811. /*else if (cdgbn == "serveacnt")
  812. {
  813. servcd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  814. servnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  815. }*/
  816. else if (cdgbn == "seizureacnt")
  817. {
  818. seizurecd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  819. seizurenm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  820. }
  821. }
  822. for(var i = 0 ; i < arrCashAcntCd.length ; i++)
  823. {
  824. if(arrCashAcntCd[i] != cashcd)
  825. {
  826. arrTransAcntCd[arrTransAcntCd.length] = arrCashAcntCd[i];
  827. }
  828. }
  829. if(arrTransAcntCd.length != arrCashAcntCd.length-1)
  830. {
  831. messageBox("관리코드 계정 setting 이 잘못되었습니다. 운영자에게 문의하세요", "I000");
  832. window.close();
  833. }
  834. // alert("cashcd : " + cashcd );
  835. // alert("expsacnt : " + expsacnt );
  836. // alert("expsacntnm : " + expsacntnm );
  837. // alert("acntdept : " + acntdept );
  838. // alert("incmtax : " + incmtax );
  839. // alert("incmtaxnm : " + incmtaxnm );
  840. // alert("resdntax : " + resdntax );
  841. // alert("resdntaxnm : " + resdntaxnm );
  842. // alert("isacntdept : " + isacntdept );
  843. // alert("sExpsacnt_Entrregno: " + sExpsacnt_Entrregno);
  844. // alert("sExpsacnt_Custnm : " + sExpsacnt_Custnm );
  845. // alert("sExpsacnt_Aactcd : " + sExpsacnt_Aactcd );
  846. // alert("sExpsacnt_Aactno : " + sExpsacnt_Aactno );
  847. //=============================================================
  848. model.setValue("/root/main/unsl_one/costcntrdeptcd", deptcd);
  849. model.setValue("/root/main/unsl_one/costcntrdeptnm", deptnm);
  850. model.setValue(ipt_costbelongdeptcd.attribute("ref"), deptcd);
  851. model.setValue(ipt_costbelongdeptnm.attribute("ref"), deptnm);
  852. model.setValue("/root/hidden/condition/slipdeptcd", deptcd);
  853. model.setValue("/root/hidden/condition/slipdeptnm", deptnm);
  854. var pinstcd = model.getValue("/root/target/slipinfo/instcd");
  855. var pslipdt = model.getValue("/root/target/slipinfo/slipdt");
  856. var pslipno = model.getValue("/root/target/slipinfo/slipno");
  857. if(instance1.selectNodes("/root/target/slipinfo").length != 0)
  858. {
  859. model.setValue("/root/main/unsl_one/instcd",pinstcd);
  860. model.setValue("/root/hidden/condition/unsldd",pslipdt);
  861. model.setValue("/root/hidden/condition/unslno",pslipno);
  862. model.refresh();
  863. fQueryClick();
  864. }
  865. else
  866. {
  867. model.setValue("/root/hidden/condition/unsldd", sToday);
  868. if (instcd.length > 0)
  869. {
  870. model.setValue("/root/main/unsl_one/instcd", instcd);
  871. }
  872. else
  873. {
  874. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  875. }
  876. model.setValue("/root/main/unsl_one/unslwrit",getUserId());
  877. model.setValue("/root/main/unsl_one/usernm",getUserName());
  878. model.setValue("/root/send/data1/instcd", instcd);
  879. model.setValue("/root/send/data1/slipdd", sToday);
  880. model.setValue("/root/send/data1/slipflag", "U");
  881. model.refresh();
  882. submit("TRRAD00102");
  883. model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
  884. model.setValue("/root/main/unsl_one/unslseqno", "00001");
  885. model.setValue("/root/hidden/maxslipseqno", "00000");
  886. ipt_approval21.disabled = true;
  887. ipt_approval22.disabled = true;
  888. ipt_approval23.disabled = true;
  889. ipt_approval24.disabled = true;
  890. ipt_approval25.disabled = true;
  891. ipt_approval26.disabled = true;
  892. fuserInfoSet();
  893. model.refresh();
  894. }
  895. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition5') == "Y")
  896. {
  897. ipt_costbelongdeptcd.disabled = false;
  898. ipt_costbelongdeptnm.disabled = false;
  899. btn_costbelongdeptcd.visible = true;
  900. ipt_costbelongdeptcd.attribute("width") = "82";
  901. }
  902. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition7') == "Y")
  903. {
  904. misfComboComCdList("R0360", rdo_slipkind, "N");
  905. rdo_slipkind.attribute("cellspacing") = 10;
  906. btn_transslip.visible = true;
  907. }
  908. else
  909. {
  910. misfComboComCdList("R0359", rdo_slipkind, "N");
  911. rdo_slipkind.attribute("cellspacing") = 20;
  912. btn_transslip.visible = false;
  913. }
  914. if(getUserInfo("dutplcecd") == acntdept)
  915. {
  916. //ipt_projectid.disabled = false;
  917. //ipt_projectnm.disabled = false;
  918. //btn_projectid.disabled = false;
  919. btn_proj.visible = true;
  920. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition1') == "Y")
  921. {
  922. ipt_slipdeptcd.disabled = false;
  923. ipt_slipdeptnm.disabled = false;
  924. btn_slipdeptcd.visible = true;
  925. ipt_slipdeptcd.attribute("width") = "80";
  926. }
  927. }
  928. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition2') == "Y")
  929. {
  930. opt_number01.visible = true;
  931. opt_number02.visible = true;
  932. opt_number03.visible = true;
  933. opt_number04.visible = true;
  934. opt_number05.visible = true;
  935. opt_number06.visible = true;
  936. opt_number07.visible = true;
  937. opt_number08.visible = true;
  938. opt_number09.visible = true;
  939. opt_number10.visible = true;
  940. opt_number11.visible = true;
  941. // opt_number12.visible = true;
  942. // opt_number13.visible = true;
  943. // opt_number14.visible = true;
  944. // opt_number15.visible = true;
  945. shp_number01.visible = true;
  946. shp_number02.visible = true;
  947. shp_number03.visible = true;
  948. shp_number04.visible = true;
  949. shp_number05.visible = true;
  950. shp_number06.visible = true;
  951. shp_number07.visible = true;
  952. shp_number08.visible = true;
  953. shp_number09.visible = true;
  954. shp_number10.visible = true;
  955. shp_number11.visible = true;
  956. // shp_number12.visible = true;
  957. // shp_number13.visible = true;
  958. // shp_number14.visible = true;
  959. // shp_number15.visible = true;
  960. }
  961. if(getUserInfo("dutplceinstcd") == "017")
  962. {
  963. rdo_drcrcmt.visible = true;
  964. cap_drcrcmt.visible = true;
  965. }
  966. if(getUserInfo("dutplceinstcd") == "103")
  967. {
  968. cap_acountingflag.visible = true;
  969. rdo_acountingflag.visible = true;
  970. }
  971. fSlipStatus();
  972. setDefrayreqdd();
  973. //=======================
  974. // 기관별 결재라인 예외처리
  975. //=======================
  976. if(expansion == "N")
  977. {
  978. ipt_approval16.disabled = true;
  979. ipt_approval26.disabled = true;
  980. cmb_arbitrary6.disabled = true;
  981. }
  982. //=======================
  983. model.setFocus("ipt_slipcmt"); //model.setFocus("ipt_acntnm");
  984. }
  985. //========================================================================================
  986. //MAX 전표번호 조회
  987. //========================================================================================
  988. function fMaxSlipNo() {
  989. var sToday = getCurrentDate().toString();
  990. model.setValue("/root/send/data1/instcd", model.getValue("/root/main/unsl_one/instcd"));
  991. model.setValue("/root/send/data1/slipdd", model.getValue("/root/hidden/condition/unsldd"));
  992. model.setValue("/root/send/data1/slipflag", "U");
  993. model.refresh();
  994. submit("TRRAD00102");
  995. if (model.getValue("/root/hidden/condition/unsldd") == "") {
  996. model.setValue("/root/hidden/condition/unsldd", sToday);
  997. }
  998. model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
  999. model.setValue("/root/main/unsl_one/unslseqno", "00001");
  1000. model.setValue("/root/hidden/maxslipseqno", "00000");
  1001. model.refresh();
  1002. model.setFocus("ipt_slipcmt"); //model.setFocus("ipt_acntnm");
  1003. }
  1004. //========================================================================================
  1005. //각종 코드 Help Open
  1006. //========================================================================================
  1007. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  1008. {
  1009. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  1010. model.refresh();
  1011. }
  1012. //========================================================================================
  1013. //코드 Validation Check
  1014. //========================================================================================
  1015. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  1016. {
  1017. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  1018. {
  1019. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  1020. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  1021. model.refresh();
  1022. if (pNextIndex != "") {
  1023. model.setFocus(pNextIndex);
  1024. }
  1025. }
  1026. }
  1027. //========================================================================================
  1028. //계정 코드 정보 조회
  1029. //========================================================================================
  1030. function fAcntInfoSelect() {
  1031. var acntcd = model.getValue("/root/main/unsl_one/acntcd");
  1032. var acntnm = model.getValue("/root/main/unsl_one/acntnm");
  1033. if (acntcd != "" && acntnm != "" && acntcd.getTrim() != "" && acntnm.getTrim() != "") {
  1034. model.setValue("/root/send/data2/instcd", model.getValue("/root/main/unsl_one/instcd"));
  1035. model.setValue("/root/send/data2/acntcd", acntcd);
  1036. model.setValue("/root/send/data2/drcrflag", model.getValue("/root/main/unsl_one/drcrflag"));
  1037. model.refresh();
  1038. submit("TRRAD00103");
  1039. }
  1040. //기재사항clear
  1041. fSetNoteClear();
  1042. //기재사항 setting
  1043. fSetNote();
  1044. }
  1045. //========================================================================================
  1046. //계정 코드 정보 조회1
  1047. //========================================================================================
  1048. function fAcntInfoSelect1() {
  1049. // var acntcd = model.getValue("/root/hidden/unsl_one/acntcd");
  1050. // var acntnm = model.getValue("/root/hidden/unsl_one/acntnm");
  1051. //
  1052. // alert(acntcd);
  1053. //
  1054. // if (acntcd != "" && acntnm != "" && acntcd.getTrim() != "" && acntnm.getTrim() != "") {
  1055. // model.setValue("/root/send/data2/instcd", model.getValue("/root/hidden/unsl_one/instcd"));
  1056. // model.setValue("/root/send/data2/acntcd", acntcd);
  1057. // model.setValue("/root/send/data2/drcrflag", model.getValue("/root/hidden/unsl_one/drcrflag"));
  1058. // model.refresh();
  1059. //
  1060. // submit("TRRAD00103");
  1061. // }
  1062. // //기재사항clear
  1063. // fSetNoteClear1();ipt_bugtmngtdeptnm
  1064. if (model.getValue("/root/hidden/acntcdinfo/bugtuseyn") == "Y")
  1065. {
  1066. if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "2" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1067. {
  1068. model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
  1069. fBugtCntrYN(false);
  1070. }
  1071. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "2" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
  1072. {
  1073. model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
  1074. fBugtCntrYN(true);
  1075. }
  1076. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "1" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1077. {
  1078. model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
  1079. fBugtCntrYN(true);
  1080. }
  1081. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "1" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
  1082. {
  1083. model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
  1084. fBugtCntrYN(false);
  1085. }
  1086. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1087. {
  1088. model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
  1089. fBugtCntrYN(false);
  1090. }
  1091. else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
  1092. {
  1093. model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
  1094. fBugtCntrYN(false);
  1095. }
  1096. // if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") != "3" && model.getValue("/root/main/unsl_one/drcrflag") == model.getValue("/root/hidden/acntcdinfo/balflag"))
  1097. // {
  1098. //
  1099. // model.setValue("/root/main/unsl_one/bugtearncostflag", model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd"));
  1100. //
  1101. // }
  1102. // else if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == model.getValue("/root/hidden/acntcdinfo/balflag"))
  1103. // {
  1104. //
  1105. // model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
  1106. //
  1107. // }
  1108. // else if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") != model.getValue("/root/hidden/acntcdinfo/balflag"))
  1109. // {
  1110. //
  1111. // model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
  1112. //
  1113. // }
  1114. else
  1115. {
  1116. fBugtCntrYN(true);
  1117. return;
  1118. }
  1119. model.setValue("/root/main/unsl_one/bugtautoaprvyn", model.getValue("/root/hidden/acntcdinfo/bugtautoaprvyn"));
  1120. model.setValue("/root/main/unsl_one/bugtaprvyn", "N");
  1121. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  1122. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  1123. // model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));
  1124. // model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/slipdeptnm"));
  1125. //fBugtCntrYN(false);
  1126. model.refresh();
  1127. }
  1128. else
  1129. {
  1130. fBugtCntrYN(true);
  1131. }
  1132. }
  1133. function fBugtCntrYN(YN)
  1134. {
  1135. //btn_bugtmngtdeptcd.disabled = YN;
  1136. //ipt_bugtmngtdeptcd.disabled = YN;
  1137. //ipt_bugtmngtdeptnm.disabled = YN;
  1138. if(YN = "Y")
  1139. {
  1140. model.setValue(ipt_bugtmngtdeptcd.attribute("ref"), "");
  1141. model.setValue(ipt_bugtmngtdeptnm.attribute("ref"), "");
  1142. }
  1143. }
  1144. //========================================================================================
  1145. //기재사항 setting
  1146. //========================================================================================
  1147. function fSetNote() {
  1148. //기재사항setting
  1149. for (i=1; i<7; i++) {
  1150. var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
  1151. var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
  1152. var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
  1153. //alert(option);
  1154. model.setValue("/root/main/unsl_one/notefactnm"+i, title);
  1155. switch (kind) {
  1156. case "1": //코드
  1157. model.toggle("case_notecd"+i);
  1158. break;
  1159. case "2": //내역
  1160. model.toggle("case_notenm"+i);
  1161. //format지정
  1162. var cControl = document.controls("ipt_notenm"+i);
  1163. cControl.attribute("format") = model.getValue("/root/hidden/acntcdinfo/frmt"+i);
  1164. cControl.attribute("showmask") = "true";
  1165. break;
  1166. case "3": //콤보
  1167. model.toggle("case_notecombo"+i);
  1168. break;
  1169. default :
  1170. model.toggle("case_noteblank"+i);
  1171. break;
  1172. }
  1173. }
  1174. model.refresh();
  1175. }
  1176. //========================================================================================
  1177. //기재사항 clear
  1178. //========================================================================================
  1179. function fSetNoteClear() {
  1180. model.getValue("/root/hidden/acntcdinfo/notecd1") == "";
  1181. model.getValue("/root/hidden/acntcdinfo/notecd2") == "";
  1182. model.getValue("/root/hidden/acntcdinfo/notecd3") == "";
  1183. model.getValue("/root/hidden/acntcdinfo/notecd4") == "";
  1184. model.getValue("/root/hidden/acntcdinfo/notecd5") == "";
  1185. model.getValue("/root/hidden/acntcdinfo/notecd6") == "";
  1186. //항목 초기화
  1187. for (i=1; i<7; i++)
  1188. {
  1189. model.setValue("/root/main/unsl_one/notefactnm"+i,"");
  1190. model.setValue("/root/main/unsl_one/notefactcd"+i,"");
  1191. model.setValue("/root/main/unsl_one/notefactspec"+i,"");
  1192. model.toggle("case_noteblank"+i);
  1193. }
  1194. model.refresh();
  1195. var pre_custflag = model.getValue(cmb_custflag.attribute("ref"));
  1196. var custflag = model.getValue("/root/hidden/acntcdinfo/custflag");
  1197. //상대처 setting
  1198. if(pre_custflag != custflag || custflag == "")
  1199. {
  1200. var vFundcd = model.getValue("/root/hidden/acntcdinfo/fundscd");
  1201. var vCustcd = "";
  1202. var vCustnm = "";
  1203. var vTogglenm = "";
  1204. if(custflag == "9")
  1205. {
  1206. vCustcd = "-";
  1207. vTogglenm = "명관리";
  1208. }
  1209. else if(custflag == "")
  1210. {
  1211. custflag = "9";
  1212. vCustcd = "-";
  1213. vTogglenm = "명관리";
  1214. }
  1215. else
  1216. {
  1217. vCustcd = "";
  1218. vTogglenm = "코드관리";
  1219. }
  1220. vCustnm = "";
  1221. model.toggle(vTogglenm);
  1222. model.setValue("/root/main/unsl_one/custflag", custflag);
  1223. model.setValue("/root/main/unsl_one/custnm", vCustnm);
  1224. model.setValue("/root/main/unsl_one/custcd", vCustcd);
  1225. model.setValue("/root/main/unsl_one/fundscd", vFundcd);
  1226. }
  1227. model.refresh();
  1228. // cmb_custflag.dispatch("xforms-value-changed");
  1229. }
  1230. //========================================================================================
  1231. //기재사항 clear1
  1232. //========================================================================================
  1233. function fSetNoteClear1()
  1234. {
  1235. for (i=1; i<7; i++)
  1236. {
  1237. model.setValue("/root/hidden/unsl_one/notefactcd" + i, "");
  1238. model.setValue("/root/hidden/unsl_one/notefactspec" + i, "");
  1239. model.setValue("/root/hidden/unsl_one/notefactnm" + i, model.getValue("/root/hidden/acntcdinfo/notecdnm" + i));
  1240. }
  1241. model.refresh();
  1242. }
  1243. //========================================================================================
  1244. //조회 click
  1245. //========================================================================================
  1246. function fQueryClick()
  1247. {
  1248. var instcd = model.getValue("/root/main/unsl_one/instcd");
  1249. var unsldd = model.getValue("/root/hidden/condition/unsldd");
  1250. var unslno = model.getValue("/root/hidden/condition/unslno");
  1251. var slipdeptcd = model.getValue("/root/main/unsl_one/slipdeptcd");
  1252. var slipkind = model.getValue("/root/hidden/condition/slipkind");
  1253. var costcntrdeptcd = model.getValue("/root/main/unsl_one/costcntrdeptcd");
  1254. if (instcd.getTrim() != "" && unsldd.getTrim() != "" && unslno.getTrim() != "")
  1255. {
  1256. grp_apln.visible = false;
  1257. model.setValue("/root/send/data3/instcd", instcd);
  1258. model.setValue("/root/send/data3/unsldd", unsldd);
  1259. model.setValue("/root/send/data3/unslno", unslno);
  1260. model.setValue("/root/send/data3/slipdeptcd", slipdeptcd);
  1261. model.setValue("/root/send/data3/costcntrdeptcd", costcntrdeptcd);
  1262. if (getUserInfo("dutplcecd") == acntdept || getUserInfo("dutplcecd") == bugtdept)
  1263. {
  1264. model.setValue("/root/send/data3/slipdeptcd", "%");
  1265. }
  1266. else
  1267. {
  1268. model.setValue("/root/send/data3/slipdeptcd", slipdeptcd);
  1269. }
  1270. model.refresh();
  1271. submit("TRRAD00101");
  1272. fuserInfoSet();
  1273. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
  1274. var iRow = grd_unsl.findRow("N",1,grd_unsl.colRef("sanctyn"));
  1275. if (iRow > 0 ) {
  1276. btn_prtcancel.disabled = true;
  1277. } else {
  1278. if (getUserInfo("dutplcecd") == acntdept) {
  1279. btn_prtcancel.disabled = false;
  1280. }
  1281. }
  1282. if (model.getValue("/root/main/unsl[1]/instcd") != "") // 전표 데이터 있음
  1283. {
  1284. //alert("1");
  1285. for (i=1; i < grd_unsl.rows; i++)
  1286. {
  1287. if (model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") != "")
  1288. {
  1289. grd_unsl.rowstyle(i, "data", "color") = "#808080";
  1290. }
  1291. }
  1292. model.setValue("/root/main/unsl_one/slipdeptcd", model.getValue("/root/main/unsl[1]/slipdeptcd"));
  1293. model.setValue("/root/main/unsl_one/slipdeptnm", model.getValue("/root/main/unsl[1]/slipdeptnm"));
  1294. model.setValue("/root/main/unsl_one/costcntrdeptcd", model.getValue("/root/main/unsl[1]/costcntrdeptcd"));
  1295. model.setValue("/root/main/unsl_one/costcntrdeptnm", model.getValue("/root/main/unsl[1]/costcntrdeptnm"));
  1296. model.setValue("/root/hidden/condition/slipdeptcd", model.getValue("/root/main/unsl[1]/slipdeptcd"));
  1297. model.setValue("/root/hidden/condition/slipdeptnm", model.getValue("/root/main/unsl[1]/slipdeptnm"));
  1298. model.setValue("/root/hidden/maxslipseqno",model.getValue("/root/main/unsl["+ (grd_unsl.rows - 1) +"]/unslseqno"));
  1299. btn_copy.disabled = false;
  1300. btn_dayshift.disabled = false;
  1301. btn_availablebugt.disabled = false;
  1302. // cmb_slipflag.disabled = true;
  1303. fRowClearClick();
  1304. }
  1305. else // 전표 데이터 없음
  1306. {
  1307. //alert("0");
  1308. model.setValue("/root/hidden/maxslipseqno", "00000");
  1309. model.setValue("/root/hidden/condition/slipkind", slipkind);
  1310. model.setValue("/root/hidden/condition/slipflag", "1");
  1311. model.setValue("/root/hidden/condition/defrayreqdd", "");
  1312. model.setValue("/root/hidden/condition/projectid", "");
  1313. model.setValue("/root/hidden/condition/projectnm", "");
  1314. model.setValue("/root/hidden/condition/slipcmt", "");
  1315. model.setValue("/root/hidden/condition/slipdeptcd", getUserInfo("dutplcecd"));
  1316. model.setValue("/root/hidden/condition/slipdeptnm", getUserInfo("dutplcenm"));
  1317. model.refresh();
  1318. fRowClearClick();
  1319. btn_copy.disabled = true;
  1320. btn_dayshift.disabled = true;
  1321. btn_availablebugt.disabled = true;
  1322. // cmb_slipflag.disabled = false;
  1323. ipt_defrayreqdd.disabled = false;
  1324. return;
  1325. }
  1326. var rowCnt = grd_unsl.rows - 1;
  1327. model.setValue("/root/hidden/maxslipseqno",model.getValue("/root/main/unsl["+ rowCnt +"]/unslseqno"));
  1328. model.setValue("/root/hidden/condition/slipkind", model.getValue("/root/main/unsl[" + rowCnt + "]/slipkind"));
  1329. model.setValue("/root/hidden/condition/slipflag", model.getValue("/root/main/unsl[" + rowCnt + "]/slipflag"));
  1330. model.setValue("/root/hidden/condition/acountingflag", model.getValue("/root/main/unsl[" + rowCnt + "]/acountingflag"));
  1331. model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl[" + rowCnt + "]/projectid"));
  1332. model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl[" + rowCnt + "]/projectnm"));
  1333. model.setValue("/root/hidden/condition/slipcmt", model.getValue("/root/main/unsl[" + rowCnt + "]/slipcmt"));
  1334. model.setValue("/root/hidden/condition/defrayreqdd", model.getValue("/root/main/unsl[" + rowCnt + "]/defrayreqdd"));
  1335. model.refresh();
  1336. if (model.getValue("/root/hidden/condition/slipkind") != "1")
  1337. {
  1338. ipt_defrayreqdd.disabled = false;
  1339. }
  1340. else
  1341. {
  1342. ipt_defrayreqdd.disabled = true;
  1343. }
  1344. fdrcrflagSet();
  1345. }
  1346. fSumExpantAmt();
  1347. model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl[" + 1 + "]/acntcd"));
  1348. //model.setValue("/root/main/unsl_one/cdbojo1", "");
  1349. submit("TRRAD01701");
  1350. }
  1351. //========================================================================================
  1352. //행입력 click
  1353. //========================================================================================
  1354. function fGridRowAddClick()
  1355. {
  1356. //not null check
  1357. if(fNotNullCheck() == false)
  1358. {
  1359. return;
  1360. }
  1361. //node copy
  1362. var seqno = model.getValue("/root/main/unsl_one/unslseqno");
  1363. var unslseqno = model.getValue("/root/main/unsl[unslseqno='"+ seqno +"']/unslseqno");
  1364. if (model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1365. {
  1366. model.setValue("/root/main/unsl_one/dramt", model.getValue("/root/main/unsl_one/amt"));
  1367. model.setValue("/root/main/unsl_one/cramt", 0);
  1368. }
  1369. else
  1370. {
  1371. model.setValue("/root/main/unsl_one/cramt", model.getValue("/root/main/unsl_one/amt"));
  1372. model.setValue("/root/main/unsl_one/dramt", 0);
  1373. }
  1374. //=======================================================
  1375. // 새로저장되는 전표는 그리드에 전표번호를 입력하지 않는다. 모든 row 가 전표번호가 없다면 새로은 전표번호가 만들어진다.
  1376. //=======================================================
  1377. var checkExistSlip = false;
  1378. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  1379. {
  1380. if(!(grd_unsl.rowStatus(i) == 1 || grd_unsl.rowStatus(i) == 3))
  1381. {
  1382. checkExistSlip = true;
  1383. }
  1384. }
  1385. if (checkExistSlip)
  1386. {
  1387. model.setValue("/root/main/unsl_one/unslno", model.getValue("/root/hidden/condition/unslno"));
  1388. }
  1389. if (unslseqno == "")
  1390. {
  1391. grd_unsl.addRow(false);
  1392. }
  1393. var cur_row = grd_unsl.row;
  1394. model.copyNode("/root/main/unsl["+cur_row+"]","/root/main/unsl_one");
  1395. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1396. if (parseInt(maxslipseqno,10) < parseInt(seqno,10)) {
  1397. model.setValue("/root/hidden/maxslipseqno", seqno);
  1398. }
  1399. //전표유형에 따라 상대계정 자동 setting
  1400. fCustAcntAutoSet();
  1401. //합계 재계산
  1402. model.recalculate();
  1403. fSumExpantAmt();
  1404. fRowClearClick(); //행정리
  1405. }
  1406. //========================================================================================
  1407. //행수정 click
  1408. //========================================================================================
  1409. function fGridRowSetClick() {
  1410. var cur_row = grd_unsl.row;
  1411. var bfstr = getNodeListCSV(instance1.selectNodes("/root/main/unsl[" + cur_row + "]"));
  1412. var afstr = getNodeListCSV(instance1.selectNodes("/root/main/unsl_one"));
  1413. if (bfstr == afstr && (model.getValue(rdo_slipkind.attribute("ref")) == "2" || model.getValue(rdo_slipkind.attribute("ref")) == "3")) {
  1414. messageBox("변경된 데이터가","I004");
  1415. fRowClearClick(); //행정리
  1416. return;
  1417. }
  1418. //not null check
  1419. if(fNotNullCheck() == false) {
  1420. return;
  1421. }
  1422. //node copy
  1423. var seqno = model.getValue("/root/main/unsl_one/unslseqno");
  1424. var unslseqno = model.getValue("/root/main/unsl[unslseqno='"+ seqno +"']/unslseqno");
  1425. if (model.getValue("/root/main/unsl_one/drcrflag") == "D")
  1426. {
  1427. model.setValue("/root/main/unsl_one/dramt", model.getValue("/root/main/unsl_one/amt"));
  1428. model.setValue("/root/main/unsl_one/cramt", 0);
  1429. }
  1430. else
  1431. {
  1432. model.setValue("/root/main/unsl_one/cramt", model.getValue("/root/main/unsl_one/amt"));
  1433. model.setValue("/root/main/unsl_one/dramt", 0);
  1434. }
  1435. model.copyNode("/root/main/unsl[" + cur_row + "]","/root/main/unsl_one");
  1436. grd_unsl.addStatus(cur_row, "update");
  1437. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1438. if (parseInt(maxslipseqno, 10) < parseInt(seqno, 10))
  1439. {
  1440. model.setValue("/root/hidden/maxslipseqno", seqno);
  1441. }
  1442. var autjournflag = model.getValue("/root/main/unsl["+cur_row+"]/autjournflag");
  1443. // 전표유형에 따라 상대계정 자동 setting
  1444. // 자동분개 전표는 상대계정이 반대로 들어올 수 있고 N:1 로 설정될 수 있으므로 상대 연번의 전표를 수정할 수 없다.
  1445. if (autjournflag != "Y" && model.getValue("/root/main/unsl["+cur_row+"]/rlaacntseqno") == "")
  1446. {
  1447. fCustAcntAutoSet();
  1448. }
  1449. //합계 재계산
  1450. model.recalculate();
  1451. fSumExpantAmt();
  1452. fRowClearClick(); //행정리
  1453. }
  1454. // ========================================================================================
  1455. // 전표 유형에 따라 상대계정 자동 setting
  1456. // 입, 출금 전표 일때만 setting하고 상대 계정은
  1457. // 출금전표는 기업자유예금, 입금전표는 현금(?) --기초정보로 수정될 수 있도록
  1458. //========================================================================================
  1459. function fCustAcntAutoSet()
  1460. {
  1461. var slipkind = model.getValue("/root/hidden/condition/slipkind");
  1462. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  1463. var amt = parseInt(model.getValue("/root/main/unsl_one/amt"),10);
  1464. var rest_amt = 0;
  1465. var drcrcolnm, drcracnt, drcrflag;
  1466. var row=0;
  1467. if (slipkind == "2")
  1468. { //입금
  1469. drcrcolnm = "cramt";
  1470. drcracnt = "dramt";
  1471. drcrflag = "D";
  1472. }
  1473. else if (slipkind == "3")
  1474. { //출금
  1475. drcrcolnm = "dramt";
  1476. drcracnt = "cramt";
  1477. drcrflag = "C";
  1478. }
  1479. else // 대체전표는 상대변 자동 생성하지 않음
  1480. {
  1481. return;
  1482. }
  1483. if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax"),10) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
  1484. {
  1485. amt = amt - parseInt(model.getValue("/root/hidden/orchreturn/incmtax"),10) - parseInt(model.getValue("/root/hidden/orchreturn/resdntax"),10);
  1486. }
  1487. // else if(seizurecd != "" && cmb_custflag.value == "1" && model.getValue("/root/hidden/seizureyn") == 'Y') // 압류 거래처 예외
  1488. // {
  1489. // rest_amt = amt % 2;
  1490. // amt = parseInt(amt / 2);
  1491. // rest_amt = amt + rest_amt;
  1492. // } -- 임시로 막음 (계산식 정립 필요 20090216)
  1493. row = grd_unsl.findRow(rlaacntseqno, 1, grd_unsl.colRef("rlaacntseqno"));
  1494. if (row > 0)
  1495. {
  1496. model.setValue("/root/main/unsl[" + row + "]/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
  1497. model.setValue("/root/main/unsl[" + row + "]/" + drcracnt, amt);
  1498. model.setValue("/root/main/unsl[" + row + "]/amt", amt);
  1499. grd_unsl.addStatus(row, "update");
  1500. model.copyNode("/root/hidden/unsl_one", "/root/main/unsl[" + row + "]");
  1501. }
  1502. else
  1503. {
  1504. model.copyNode("/root/hidden/unsl_one","/root/main/unsl_one");
  1505. fIncreSeqno("/root/hidden/unsl_one/unslseqno");
  1506. model.setValue("/root/hidden/unsl_one/drcrflag", drcrflag);
  1507. model.setValue("/root/hidden/unsl_one/bugtcd", "");
  1508. model.setValue("/root/hidden/unsl_one/profflag", "6");
  1509. model.setValue("/root/hidden/unsl_one/profdata", "");
  1510. model.setValue("/root/hidden/unsl_one/" + drcrcolnm, 0);
  1511. model.setValue("/root/hidden/unsl_one/" + drcracnt, amt);
  1512. model.setValue("/root/hidden/unsl_one/amt", amt);
  1513. //model.setValue("/root/hidden/unsl_one/fundscd", model.getValue("/root/main/unsl_one/fundscd"));
  1514. model.setValue("/root/main/unsl["+grd_unsl.row+"]/fundscd", "");
  1515. model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
  1516. model.setValue("/root/hidden/unsl_one/notefactnm2", "");
  1517. model.setValue("/root/hidden/unsl_one/notefactcd2", "");
  1518. model.setValue("/root/hidden/unsl_one/notefactspec2", "");
  1519. model.setValue("/root/hidden/unsl_one/notefactnm3", "");
  1520. model.setValue("/root/hidden/unsl_one/notefactcd3", "");
  1521. model.setValue("/root/hidden/unsl_one/notefactspec3", "");
  1522. model.setValue("/root/hidden/unsl_one/notefactnm4", "");
  1523. model.setValue("/root/hidden/unsl_one/notefactcd4", "");
  1524. model.setValue("/root/hidden/unsl_one/notefactspec4", "");
  1525. model.setValue("/root/hidden/unsl_one/notefactnm5", "");
  1526. model.setValue("/root/hidden/unsl_one/notefactcd5", "");
  1527. model.setValue("/root/hidden/unsl_one/notefactspec5", "");
  1528. model.setValue("/root/hidden/unsl_one/notefactnm6", "");
  1529. model.setValue("/root/hidden/unsl_one/notefactcd6", "");
  1530. model.setValue("/root/hidden/unsl_one/notefactspec6", "");
  1531. model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
  1532. model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
  1533. model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
  1534. model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
  1535. model.setValue("/root/hidden/unsl_one/bugtamt", "");
  1536. model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
  1537. model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
  1538. model.setValue("/root/hidden/unsl_one/seqno", "");
  1539. model.setValue("/root/hidden/unsl_one/servseqno", "");
  1540. if(!(getUserInfo("dutplceinstcd") == '103' || getUserInfo("dutplceinstcd") == '001') && rdo_slipkind.value == "2") // 병원은 입금일 경우 상대변에 현금 Setting
  1541. {
  1542. model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
  1543. model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
  1544. model.setValue("/root/hidden/unsl_one/custflag", "9");
  1545. model.setValue("/root/hidden/unsl_one/custcd", "");
  1546. model.setValue("/root/hidden/unsl_one/custnm", "");
  1547. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  1548. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  1549. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  1550. }
  1551. else
  1552. {
  1553. /* var vAactcd = sExpsacnt_Aactcd;
  1554. var vAactno = sExpsacnt_Aactno;
  1555. if(model.getValue("/root/hidden/condition/slipkind") == "3")
  1556. {
  1557. var bExist = false;
  1558. for(var i=1; i<grd_unsl.rows; i++)
  1559. {
  1560. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  1561. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  1562. if(sDrCrFlag == "C")
  1563. {
  1564. for(var j=0; j<arrTransAcntCd.length; j++)
  1565. {
  1566. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  1567. }
  1568. }
  1569. if(bExist)
  1570. {
  1571. if(grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")) != sExpsacnt_Aactcd)
  1572. {
  1573. vAactcd = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1"));
  1574. vAactno = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactspec1"));
  1575. messageBox("하나의 전표에는 하나의 출금계좌만 설정할수 있습니다.\n출금계좌를 [" + vAactcd + "]" + vAactno + "(으)로 설정합니다." ,"I000");
  1576. break;
  1577. }
  1578. else
  1579. {
  1580. bExist = false;
  1581. }
  1582. }
  1583. }
  1584. }
  1585. model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
  1586. model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
  1587. model.setValue("/root/hidden/unsl_one/custflag", "1");
  1588. model.setValue("/root/hidden/unsl_one/custcd", sExpsacnt_Entrregno);
  1589. model.setValue("/root/hidden/unsl_one/custnm", sExpsacnt_Custnm);
  1590. model.setValue("/root/hidden/unsl_one/notefactnm1", "계좌번호");
  1591. model.setValue("/root/hidden/unsl_one/notefactcd1", vAactcd);
  1592. model.setValue("/root/hidden/unsl_one/notefactspec1", vAactno);*/
  1593. model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
  1594. model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
  1595. model.setValue("/root/hidden/unsl_one/custflag", "9");
  1596. model.setValue("/root/hidden/unsl_one/custcd", "");
  1597. model.setValue("/root/hidden/unsl_one/custnm", "");
  1598. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  1599. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  1600. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  1601. }
  1602. grd_unsl.addRow(false);
  1603. var cur_row = grd_unsl.row;
  1604. model.copyNode("/root/main/unsl[" + cur_row + "]", "/root/hidden/unsl_one");
  1605. grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
  1606. var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
  1607. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1608. if (parseInt(maxslipseqno,10) < parseInt(seqno, 10))
  1609. {
  1610. model.setValue("/root/hidden/maxslipseqno", seqno);
  1611. }
  1612. }
  1613. var profflag = model.getValue("/root/main/unsl_one/profflag");
  1614. var j = 0;
  1615. if (profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
  1616. {
  1617. for (i=1; i < grd_unsl.rows; i++)
  1618. {
  1619. if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == incmtax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
  1620. {
  1621. j = i;
  1622. }
  1623. }
  1624. if (j > 0)
  1625. {
  1626. if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax")) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
  1627. {
  1628. model.setValue("/root/main/unsl["+j+"]/" + drcracnt, model.getValue("/root/hidden/orchreturn/incmtax"));
  1629. model.setValue("/root/main/unsl["+j+"]/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
  1630. grd_unsl.addStatus(j, "update");
  1631. }
  1632. else
  1633. {
  1634. grd_unsl.deleteRow(j, false);
  1635. }
  1636. }
  1637. else
  1638. {
  1639. if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax")) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
  1640. {
  1641. fIncreSeqno("/root/hidden/unsl_one/unslseqno");
  1642. model.setValue("/root/hidden/unsl_one/" + drcracnt, model.getValue("/root/hidden/orchreturn/incmtax"));
  1643. model.setValue("/root/hidden/unsl_one/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
  1644. model.setValue("/root/hidden/unsl_one/fundscd", "");
  1645. model.setValue("/root/hidden/unsl_one/acntcd", incmtax);
  1646. model.setValue("/root/hidden/unsl_one/acntnm", incmtaxnm);
  1647. model.setValue("/root/hidden/unsl_one/custflag", model.getValue("/root/main/unsl_one/custflag"));
  1648. model.setValue("/root/hidden/unsl_one/custcd", model.getValue("/root/main/unsl_one/custcd"));
  1649. model.setValue("/root/hidden/unsl_one/custnm", model.getValue("/root/main/unsl_one/custnm"));
  1650. model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
  1651. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  1652. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  1653. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  1654. model.setValue("/root/hidden/unsl_one/notefactnm2", "");
  1655. model.setValue("/root/hidden/unsl_one/notefactcd2", "");
  1656. model.setValue("/root/hidden/unsl_one/notefactspec2", "");
  1657. model.setValue("/root/hidden/unsl_one/notefactnm3", "");
  1658. model.setValue("/root/hidden/unsl_one/notefactcd3", "");
  1659. model.setValue("/root/hidden/unsl_one/notefactspec3", "");
  1660. model.setValue("/root/hidden/unsl_one/notefactnm4", "");
  1661. model.setValue("/root/hidden/unsl_one/notefactcd4", "");
  1662. model.setValue("/root/hidden/unsl_one/notefactspec4", "");
  1663. model.setValue("/root/hidden/unsl_one/notefactnm5", "");
  1664. model.setValue("/root/hidden/unsl_one/notefactcd5", "");
  1665. model.setValue("/root/hidden/unsl_one/notefactspec5", "");
  1666. model.setValue("/root/hidden/unsl_one/notefactnm6", "");
  1667. model.setValue("/root/hidden/unsl_one/notefactcd6", "");
  1668. model.setValue("/root/hidden/unsl_one/notefactspec6", "");
  1669. model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
  1670. model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
  1671. model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
  1672. model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
  1673. model.setValue("/root/hidden/unsl_one/bugtamt", "");
  1674. model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
  1675. model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
  1676. model.setValue("/root/hidden/unsl_one/seqno", "");
  1677. model.setValue("/root/hidden/unsl_one/servseqno", "");
  1678. grd_unsl.addRow(false);
  1679. var cur_row = grd_unsl.row;
  1680. model.copyNode("/root/main/unsl[" + cur_row + "]","/root/hidden/unsl_one");
  1681. grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
  1682. var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
  1683. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1684. if (parseInt(maxslipseqno,10) < parseInt(seqno, 10))
  1685. {
  1686. model.setValue("/root/hidden/maxslipseqno", seqno);
  1687. }
  1688. }
  1689. }
  1690. //-----------------------------------------------------------------------------------------------------------
  1691. j=0;
  1692. for (i=1; i < grd_unsl.rows; i++)
  1693. {
  1694. if (model.getValue("/root/main/unsl["+i+"]/acntcd") == resdntax && model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") == rlaacntseqno)
  1695. {
  1696. j = i;
  1697. }
  1698. }
  1699. if (j > 0)
  1700. {
  1701. if (parseInt(model.getValue("/root/hidden/orchreturn/resdntax")) != 0 && model.getValue("/root/hidden/orchreturn/resdntax") != "")
  1702. {
  1703. model.setValue("/root/main/unsl["+j+"]/" + drcracnt, model.getValue("/root/hidden/orchreturn/resdntax"));
  1704. model.setValue("/root/main/unsl["+j+"]/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
  1705. grd_unsl.addStatus(j, "update");
  1706. }
  1707. else
  1708. {
  1709. grd_unsl.deleteRow(j, false);
  1710. }
  1711. }
  1712. else
  1713. {
  1714. if (parseInt(model.getValue("/root/hidden/orchreturn/resdntax")) != 0 && model.getValue("/root/hidden/orchreturn/resdntax") != "")
  1715. {
  1716. fIncreSeqno("/root/hidden/unsl_one/unslseqno");
  1717. model.setValue("/root/hidden/unsl_one/" + drcracnt, model.getValue("/root/hidden/orchreturn/resdntax"));
  1718. model.setValue("/root/hidden/unsl_one/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
  1719. model.setValue("/root/hidden/unsl_one/fundscd", "");
  1720. model.setValue("/root/hidden/unsl_one/acntcd", resdntax);
  1721. model.setValue("/root/hidden/unsl_one/acntnm", resdntaxnm);
  1722. model.setValue("/root/hidden/unsl_one/custflag", model.getValue("/root/main/unsl_one/custflag"));
  1723. model.setValue("/root/hidden/unsl_one/custcd", model.getValue("/root/main/unsl_one/custcd"));
  1724. model.setValue("/root/hidden/unsl_one/custnm", model.getValue("/root/main/unsl_one/custnm"));
  1725. model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
  1726. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  1727. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  1728. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  1729. model.setValue("/root/hidden/unsl_one/notefactnm2", "");
  1730. model.setValue("/root/hidden/unsl_one/notefactcd2", "");
  1731. model.setValue("/root/hidden/unsl_one/notefactspec2", "");
  1732. model.setValue("/root/hidden/unsl_one/notefactnm3", "");
  1733. model.setValue("/root/hidden/unsl_one/notefactcd3", "");
  1734. model.setValue("/root/hidden/unsl_one/notefactspec3", "");
  1735. model.setValue("/root/hidden/unsl_one/notefactnm4", "");
  1736. model.setValue("/root/hidden/unsl_one/notefactcd4", "");
  1737. model.setValue("/root/hidden/unsl_one/notefactspec4", "");
  1738. model.setValue("/root/hidden/unsl_one/notefactnm5", "");
  1739. model.setValue("/root/hidden/unsl_one/notefactcd5", "");
  1740. model.setValue("/root/hidden/unsl_one/notefactspec5", "");
  1741. model.setValue("/root/hidden/unsl_one/notefactnm6", "");
  1742. model.setValue("/root/hidden/unsl_one/notefactcd6", "");
  1743. model.setValue("/root/hidden/unsl_one/notefactspec6", "");
  1744. model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
  1745. model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
  1746. model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
  1747. model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
  1748. model.setValue("/root/hidden/unsl_one/bugtamt", "");
  1749. model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
  1750. model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
  1751. model.setValue("/root/hidden/unsl_one/seqno", "");
  1752. grd_unsl.addRow(false);
  1753. var cur_row = grd_unsl.row;
  1754. model.copyNode("/root/main/unsl["+cur_row+"]","/root/hidden/unsl_one");
  1755. grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
  1756. var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
  1757. var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
  1758. if (parseInt(maxslipseqno,10) < parseInt(seqno, 10)) {
  1759. model.setValue("/root/hidden/maxslipseqno", seqno);
  1760. }
  1761. }
  1762. }
  1763. }
  1764. model.resetInstanceNode("/root/hidden/unsl_one");
  1765. model.resetInstanceNode("/root/hidden/orchreturn");
  1766. }
  1767. //========================================================================================
  1768. //not null check
  1769. //========================================================================================
  1770. function fNotNullCheck() {
  1771. var unsldd = model.getValue("/root/hidden/condition/unsldd");
  1772. if(model.getValue(cmb_slipflag.attribute("ref")).length== 0)
  1773. {
  1774. messageBox("전표구분은" ,"I003");
  1775. model.setFocus("cmb_slipflag");
  1776. return false;
  1777. }
  1778. if (unsldd == "") {
  1779. messageBox("전표일자는" ,"I003");
  1780. model.setFocus("ipt_unsldd");
  1781. return false;
  1782. } else {
  1783. model.setValue("/root/main/unsl_one/unsldd", unsldd);
  1784. model.setValue("/root/main/unsl_one/slipkind", model.getValue("/root/hidden/condition/slipkind"));
  1785. model.setValue("/root/main/unsl_one/slipflag", model.getValue("/root/hidden/condition/slipflag"));
  1786. model.setValue("/root/main/unsl_one/acountingflag", model.getValue("/root/hidden/condition/acountingflag"));
  1787. model.setValue("/root/main/unsl_one/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  1788. model.setValue("/root/main/unsl_one/slipdeptnm", model.getValue("/root/hidden/condition/slipdeptnm"));
  1789. /*if(getUserInfo("dutplceinstcd") != "103")
  1790. {
  1791. model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/hidden/condition/projectid"));
  1792. model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/hidden/condition/projectnm"));
  1793. }
  1794. */
  1795. model.setValue("/root/main/unsl_one/slipcmt", model.getValue("/root/hidden/condition/slipcmt"));
  1796. setDefrayreqdd();
  1797. }
  1798. if(model.getValue(ipt_slipcmt.attribute("ref")).length== 0)
  1799. {
  1800. messageBox("전표적요는" ,"I003");
  1801. model.setFocus("ipt_slipcmt");
  1802. return false;
  1803. }
  1804. if(model.getValue(ipt_defrayreqdd.attribute("ref")).length== 0)
  1805. {
  1806. if(model.getValue("/root/hidden/condition/slipkind") == "3")
  1807. {
  1808. messageBox("거래발생일은" ,"I003");
  1809. model.setFocus("ipt_defrayreqdd");
  1810. return false;
  1811. }
  1812. else if(model.getValue("/root/hidden/condition/slipkind") == "2")
  1813. {
  1814. model.setValue(ipt_defrayreqdd.attribute("ref"), model.getValue(ipt_unsldd.attribute("ref")));
  1815. ipt_defrayreqdd.refresh();
  1816. }
  1817. }
  1818. if(model.getValue(ipt_costcntrdeptcd.attribute("ref")).length== 0 )
  1819. {
  1820. messageBox("사용부서는" ,"I003");
  1821. model.setFocus("ipt_costcntrdeptnm");
  1822. return false;
  1823. }
  1824. if(model.getValue(ipt_acntcd.attribute("ref")).length== 0 )
  1825. {
  1826. messageBox("계정코드는" ,"I003");
  1827. model.setFocus("ipt_acntnm");
  1828. return false;
  1829. }
  1830. if(model.getValue(ipt_custcd.attribute("ref")).length== 0 )
  1831. {
  1832. messageBox("상대처는" ,"I003");
  1833. model.setFocus("ipt_custcd");
  1834. return false;
  1835. }
  1836. if(model.getValue("/root/main/unsl_one/profflag").length== 0 )
  1837. {
  1838. messageBox("증빙구분은" ,"I003");
  1839. model.setFocus("rdo_profflag1");
  1840. return false;
  1841. }
  1842. if(model.getValue(ipt_amt.attribute("ref")).length== 0 || parseInt(model.getValue(ipt_amt.attribute("ref")),10) == 0)
  1843. {
  1844. messageBox("금액을 입력하세요." ,"I000");
  1845. model.setFocus("ipt_amt");
  1846. return false;
  1847. }
  1848. if(model.getValue(ipt_etcnotefact.attribute("ref")).length== 0 )
  1849. {
  1850. messageBox("적요는" ,"I003");
  1851. model.setFocus("ipt_etcnotefact");
  1852. return false;
  1853. }
  1854. }
  1855. //========================================================================================
  1856. // 입출금예정일 기본값 Setting [빈센트]
  1857. //========================================================================================
  1858. function setDefrayreqdd()
  1859. {
  1860. if(model.getValue("/root/hidden/condition/defrayreqdd") == "" && getUserInfo("dutplceinstcd") == "017") // 빈센트는 입출금 예정일을 입력하지 않았을 때 기본값으로 5일 후를 입출금예정일로 setting 한다. [ 최형진 20091030 ]
  1861. {
  1862. var vCurrentMM = parseInt(ipt_unsldd.value.substr(4, 2), 10);
  1863. var vCurrentDD = parseInt(ipt_unsldd.value.substr(6, 2), 10);
  1864. var vMaxDD = parseInt(fDayCountForMonth(ipt_unsldd.value.substr(0, 4), ipt_unsldd.value.substr(4, 2)), 10);
  1865. var vRemainDD = vMaxDD - vCurrentDD;
  1866. var vDefrayreqdd = vCurrentDD + 5;
  1867. var vNextMonthDD = 5 - vRemainDD;
  1868. if((vMaxDD - vDefrayreqdd) >= 0)
  1869. {
  1870. model.setValue(ipt_defrayreqdd.attribute("ref"), ipt_unsldd.value.substr(0, 6).toString() + vDefrayreqdd.toString().getLeftPad(2,"0"));
  1871. }
  1872. else
  1873. {
  1874. if(vCurrentMM == 12)
  1875. {
  1876. model.setValue(ipt_defrayreqdd.attribute("ref"), (parseInt(ipt_unsldd.value.substr(0, 4), 10) + 1).toString() + "01" + vNextMonthDD.toString().getLeftPad(2,"0"));
  1877. }
  1878. else
  1879. {
  1880. model.setValue(ipt_defrayreqdd.attribute("ref"), (parseInt(ipt_unsldd.value.substr(0, 6), 10) + 1).toString() + vNextMonthDD.toString().getLeftPad(2,"0"));
  1881. }
  1882. }
  1883. }
  1884. else
  1885. {
  1886. model.setValue("/root/main/unsl_one/defrayreqdd", model.getValue("/root/hidden/condition/defrayreqdd"));
  1887. }
  1888. model.refresh();
  1889. }
  1890. function fDayCountForMonth(year, month)
  1891. {
  1892. var normal = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
  1893. var leap = new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
  1894. if (isLeapYear(year)) {
  1895. return leap[month - 1];
  1896. } else {
  1897. return normal[month - 1];
  1898. }
  1899. }
  1900. //========================================================================================
  1901. //행삭제 click
  1902. //========================================================================================
  1903. function fGridRowDelClick() {
  1904. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  1905. grd_unsl.deleteRow(grd_unsl.row, true);
  1906. var i;
  1907. do {
  1908. i = grd_unsl.findRow(rlaacntseqno, 1, grd_unsl.colRef("rlaacntseqno"));
  1909. if (i > 0) {
  1910. grd_unsl.deleteRow(i, true);
  1911. }
  1912. } while (i > 0)
  1913. }
  1914. //========================================================================================
  1915. //행정리 click
  1916. //========================================================================================
  1917. function fRowClearClick() {
  1918. var instcd = model.getValue("/root/main/unsl_one/instcd");
  1919. var deptcd = model.getValue("/root/main/unsl_one/costcntrdeptcd");
  1920. var deptnm = model.getValue("/root/main/unsl_one/costcntrdeptnm");
  1921. var slipdeptcd = model.getValue("/root/main/unsl_one/slipdeptcd");
  1922. var slipdeptnm = model.getValue("/root/main/unsl_one/slipdeptnm");
  1923. var slipkind = model.getValue("/root/hidden/condition/slipkind");
  1924. model.removenode("/root/main/unsl_one");
  1925. model.makeNode("/root/main/unsl_one");
  1926. model.copyNode("/root/main/unsl_one","/root/hidden/unsl_one");
  1927. if(instcd.length > 0) {
  1928. model.setValue(cmb_instcd.attribute("ref"), instcd);
  1929. } else {
  1930. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  1931. }
  1932. model.setValue("/root/main/unsl_one/costcntrdeptcd",deptcd);
  1933. model.setValue("/root/main/unsl_one/costcntrdeptnm",deptnm);
  1934. model.setValue("/root/main/unsl_one/costbelongdeptcd",deptcd);
  1935. model.setValue("/root/main/unsl_one/costbelongdeptnm",deptnm);
  1936. if (slipkind == "1" || slipkind == "4") {
  1937. model.setValue("/root/main/unsl_one/drcrflag","D");
  1938. } else if (slipkind == "2") {
  1939. model.setValue("/root/main/unsl_one/drcrflag","C");
  1940. } else if (slipkind == "3") {
  1941. model.setValue("/root/main/unsl_one/drcrflag","D");
  1942. }
  1943. model.setValue("/root/main/unsl_one/slipdeptcd",slipdeptcd);
  1944. model.setValue("/root/main/unsl_one/slipdeptnm",slipdeptnm);
  1945. model.setValue("/root/main/unsl_one/unslwrit",getUserId());
  1946. model.setValue("/root/main/unsl_one/usernm",getUserName());
  1947. fIncreSeqno("/root/main/unsl_one/unslseqno");
  1948. model.setValue("/root/main/unsl_one/profflag","");
  1949. model.resetInstanceNode("/root/hidden/acntcdinfo");
  1950. model.resetInstanceNode("/root/hidden/unsl_one"); // 20081021 최형진
  1951. model.resetInstanceNode("/root/hidden/orchreturn"); //
  1952. model.refresh();
  1953. fSetNoteClear();
  1954. //fCheckServAcnt();
  1955. btn_grdadd.disabled = false;
  1956. btn_grdset.disabled = true;
  1957. btn_grddel.disabled = true;
  1958. btn_grdcopy.disabled = true;
  1959. ipt_acntcd.visible = true;
  1960. ipt_acntnm.visible = true;
  1961. btn_acntcd.visible = true;
  1962. cmb_acntcd.visible = false;
  1963. btn_grdclear.visible = false;
  1964. model.setFocus("ipt_acntnm");
  1965. }
  1966. //========================================================================================
  1967. //행번 증가
  1968. //========================================================================================
  1969. function fIncreSeqno(pRef) {
  1970. var slipseqno = model.getValue("/root/hidden/maxslipseqno");
  1971. var seqno = parseInt(slipseqno, 10);
  1972. seqno++;
  1973. model.setValue(pRef, seqno.toString().getLeftPad(5,"0"));
  1974. }
  1975. //========================================================================================
  1976. //저장 click
  1977. //========================================================================================
  1978. function fSaveClick(rowDel)
  1979. {
  1980. var updtdata = getGridUpdateData(grd_unsl);
  1981. if (updtdata == "")
  1982. {
  1983. messageBox("변경된 내역이", "I004");
  1984. return;
  1985. }
  1986. if(rdo_slipkind.value != "1" && !famtCheck()) // 차대 금액 확인 [20091029 - 지출대체전표도 이체계좌를 입력해야한다.]
  1987. {
  1988. return;
  1989. }
  1990. model.setValue("/root/send/unsl",grd_unsl.getUpdateData());
  1991. if (submit("TXRAD00101"))
  1992. {
  1993. grp_apln.visible = false;
  1994. btn_copy.disabled = false;
  1995. btn_dayshift.disabled = false;
  1996. btn_availablebugt.disabled = false;
  1997. model.setValue("/root/send/unsl","");
  1998. if (model.getValue("/root/hidden/condition/unslno") != model.getValue("/root/main/unsl[1]/unslno"))
  1999. {
  2000. model.setValue("/root/hidden/condition/unslno", model.getValue("/root/main/unsl[1]/unslno"));
  2001. model.refresh();
  2002. }
  2003. model.recalculate();
  2004. fSumExpantAmt();
  2005. var bExist = false;
  2006. for(var i=1; i<grd_unsl.rows; i++)
  2007. {
  2008. if(bExist) break;
  2009. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  2010. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  2011. if(sDrCrFlag == "C")
  2012. {
  2013. for(var j=0; j<arrTransAcntCd.length; j++)
  2014. {
  2015. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  2016. }
  2017. }
  2018. }
  2019. if(rowDel != 'Y')
  2020. {
  2021. //model.setValue("/root/temp2/tranflag", "Y");
  2022. submit("TXRAD00110");
  2023. messageBox("전표가 저장", "I002");
  2024. /* if (model.getValue("/root/hidden/condition/slipkind") == "3" || bExist) // 차변에 예금성 계정이 있어야 이체게좌를 등록한다.
  2025. {
  2026. if (messageBox("이체계좌를 등록하시겠습니까?", "Q000") == "6")
  2027. {
  2028. btn_setacnt.dispatch("DOMActivate");
  2029. }
  2030. }*/
  2031. }
  2032. }
  2033. else
  2034. {
  2035. submit("TRRAD00101");
  2036. }
  2037. model.refresh();
  2038. }
  2039. //========================================================================================
  2040. //삭제 click
  2041. //========================================================================================
  2042. function fDeleteClick()
  2043. {
  2044. if (messageBox("전표를", "Q001") == "6")
  2045. {
  2046. var rowCnt = grd_unsl.rows;
  2047. for (i=1; i<rowCnt; i++)
  2048. {
  2049. grd_unsl.deleteRow(1, false);
  2050. }
  2051. model.refresh();
  2052. model.setValue("/root/send/unsl",grd_unsl.getUpdateData());
  2053. if (submit("TXRAD00101"))
  2054. {
  2055. grd_unsl.clearStatus();
  2056. model.setValue("/root/send/unsl","");
  2057. fClearClick();
  2058. }
  2059. }
  2060. }
  2061. //========================================================================================
  2062. //초기화 click
  2063. //========================================================================================
  2064. function fClearClick()
  2065. {
  2066. var sToday = getCurrentDate().toString();
  2067. btn_grdadd.disabled = false;
  2068. btn_grdset.disabled = true;
  2069. btn_grddel.disabled = true;
  2070. btn_grdcopy.disabled = true;
  2071. btn_copy.disabled = true;
  2072. btn_dayshift.disabled = true;
  2073. btn_availablebugt.disabled = true;
  2074. btn_prtcancel.disabled = true;
  2075. ipt_acntcd.visible = true;
  2076. ipt_acntnm.visible = true;
  2077. btn_acntcd.visible = true;
  2078. cmb_acntcd.visible = false;
  2079. btn_grdclear.visible = false;
  2080. cmb_slipflag.disabled = false;
  2081. model.setValue(cmb_slipflag.attribute("ref"), "1");
  2082. //ipt_slipcmt.attribute("editable") = true;
  2083. ipt_defrayreqdd.attribute("editable") = true;
  2084. ipt_defrayreqdd.disabled = false;
  2085. ipt_projectid.attribute("editable") = true;
  2086. ipt_projectnm.attribute("editable") = true;
  2087. model.removeNodeset("/root/main/unsl");
  2088. model.removenode("/root/main/unsl_one");
  2089. model.makeNode("/root/main/unsl_one");
  2090. model.copyNode("/root/main/unsl_one","/root/hidden/unsl_one");
  2091. model.removenode("/root/hidden/condition/projectid");
  2092. model.makeNode("/root/hidden/condition/projectid");
  2093. model.removenode("/root/hidden/condition/projectnm");
  2094. model.makeNode("/root/hidden/condition/projectnm");
  2095. if (model.getValue("/root/hidden/condition/unsldd") == "")
  2096. {
  2097. model.setValue("/root/hidden/condition/unsldd", sToday);
  2098. }
  2099. var instcd = getUserInfo("dutplceinstcd");
  2100. var deptcd = getUserInfo("dutplcecd");
  2101. var deptnm = getUserInfo("dutplcenm");
  2102. if (instcd.length > 0)
  2103. {
  2104. model.setValue("/root/main/unsl_one/instcd", instcd);
  2105. }
  2106. else
  2107. {
  2108. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  2109. }
  2110. model.setValue("/root/main/unsl_one/costcntrdeptcd", deptcd);
  2111. model.setValue("/root/main/unsl_one/costcntrdeptnm", deptnm);
  2112. model.setValue("/root/main/unsl_one/costbelongdeptcd", deptcd);
  2113. model.setValue("/root/main/unsl_one/costbelongdeptnm", deptnm);
  2114. model.setValue("/root/hidden/condition/slipdeptcd", deptcd);
  2115. model.setValue("/root/hidden/condition/slipdeptnm", deptnm);
  2116. model.setValue("/root/main/unsl_one/unslwrit", getUserId());
  2117. model.setValue("/root/main/unsl_one/usernm", getUserName());
  2118. model.setValue("/root/send/data1/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2119. model.setValue("/root/send/data1/slipdd", model.getValue("/root/hidden/condition/unsldd"));
  2120. model.setValue("/root/send/data1/slipflag", "U");
  2121. model.refresh();
  2122. submit("TRRAD00102");
  2123. model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
  2124. model.setValue("/root/main/unsl_one/unslseqno", "00001");
  2125. model.setValue("/root/hidden/maxslipseqno", "00000");
  2126. model.setValue("/root/hidden/condition/slipcmt", "");
  2127. model.setValue("/root/hidden/condition/defrayreqdd", "");
  2128. // model.refresh();
  2129. fdrcrflagSet();
  2130. fSumExpantAmt();
  2131. fuserInfoSet();
  2132. model.refresh();
  2133. for (i=1; i<7; i++) {
  2134. model.toggle("case_noteblank"+i);
  2135. }
  2136. fSlipStatus();
  2137. if(rdo_slipkind.value == '4' && acntdept != getUserInfo("dutplcecd"))
  2138. {
  2139. messageBox("권한이 없습니다." ,"I000");
  2140. model.setValue(rdo_slipkind.attribute("ref"), "3");
  2141. rdo_slipkind.refresh();
  2142. }
  2143. model.setFocus("ipt_slipcmt");
  2144. }
  2145. //========================================================================================
  2146. //전표 입력 내역 행 click
  2147. //========================================================================================
  2148. function fGridRowClick()
  2149. {
  2150. var cur_row = grd_unsl.row;
  2151. if ( cur_row > 0 )
  2152. {
  2153. if (model.getValue("/root/main/unsl["+cur_row+"]/rlaacntseqno") == "")
  2154. {
  2155. btn_grdadd.disabled = true;
  2156. btn_grdset.disabled = false;
  2157. btn_grddel.disabled = false;
  2158. btn_grdcopy.disabled = false;
  2159. ipt_acntcd.visible = true;
  2160. ipt_acntnm.visible = true;
  2161. btn_acntcd.visible = true;
  2162. cmb_acntcd.visible = false;
  2163. }
  2164. else
  2165. {
  2166. btn_grdadd.disabled = true;
  2167. btn_grdset.disabled = false;
  2168. btn_grddel.disabled = true;
  2169. btn_grdcopy.disabled = true;
  2170. if (model.getValue("/root/main/unsl["+cur_row+"]/acntcd") != incmtax && model.getValue("/root/main/unsl["+cur_row+"]/acntcd") != resdntax)
  2171. {
  2172. ipt_acntcd.visible = false;
  2173. ipt_acntnm.visible = false;
  2174. btn_acntcd.visible = false;
  2175. cmb_acntcd.visible = true;
  2176. }
  2177. else
  2178. {
  2179. ipt_acntcd.visible = true;
  2180. ipt_acntnm.visible = true;
  2181. btn_acntcd.visible = true;
  2182. cmb_acntcd.visible = false;
  2183. }
  2184. }
  2185. btn_grdclear.visible = true;
  2186. model.copyNode("/root/main/unsl_one","/root/main/unsl["+cur_row+"]");
  2187. var custflag = model.getValue("/root/main/unsl_one/custflag");
  2188. model.setValue("/root/send/data2/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2189. model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
  2190. model.setValue("/root/send/data2/drcrflag", model.getValue("/root/main/unsl_one/drcrflag"));
  2191. model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl_one/projectid"));
  2192. model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl_one/projectnm"));
  2193. model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/main/unsl_one/projectid"));
  2194. model.refresh();
  2195. submit("TRRAD00103");
  2196. //기재사항setting
  2197. fSetNote();
  2198. fAcntInfoSelect1();
  2199. //예수금 set
  2200. var profflag = model.getValue("/root/main/unsl_one/profflag");
  2201. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  2202. var j = 0;
  2203. if (profflag == "7" || profflag == "8" || profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
  2204. {
  2205. if (profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
  2206. {
  2207. for (i=1; i < grd_unsl.rows; i++)
  2208. {
  2209. if (model.getValue("/root/main/unsl["+i+"]/acntcd") == incmtax && model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") == rlaacntseqno)
  2210. {
  2211. model.setValue("/root/hidden/orchreturn/incmtax", model.getValue("/root/main/unsl["+i+"]/amt"));
  2212. j++;
  2213. }
  2214. }
  2215. for (i=1; i < grd_unsl.rows; i++)
  2216. {
  2217. if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == resdntax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno) {
  2218. model.setValue("/root/hidden/orchreturn/resdntax", model.getValue("/root/main/unsl[" + i + "]/amt"));
  2219. j++;
  2220. }
  2221. }
  2222. }
  2223. model.setValue("/root/hidden/orchreturn/seqno", model.getValue("/root/main/unsl_one/seqno"));
  2224. model.setValue("/root/hidden/orchreturn/amt", model.getValue("/root/main/unsl_one/amt"));
  2225. model.setValue("/root/hidden/orchreturn/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
  2226. }
  2227. //상대처setting
  2228. if (model.getValue("/root/main/unsl_one/custflag") != custflag)
  2229. {
  2230. model.setValue("/root/main/unsl_one/custflag", custflag);
  2231. if (custflag == "9" || custflag == "")
  2232. {
  2233. model.setFocus("ipt_custnm2");
  2234. model.toggle("명관리");
  2235. }
  2236. else
  2237. {
  2238. model.setFocus("ipt_custnm");
  2239. model.toggle("코드관리");
  2240. }
  2241. }
  2242. else
  2243. {
  2244. if (custflag == "9" || custflag == "")
  2245. {
  2246. model.setFocus("ipt_custnm2");
  2247. model.toggle("명관리");
  2248. }
  2249. else
  2250. {
  2251. model.setFocus("ipt_custnm");
  2252. model.toggle("코드관리");
  2253. }
  2254. }
  2255. model.refresh();
  2256. }
  2257. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag"));
  2258. }
  2259. //========================================================================================
  2260. //전표승인 check
  2261. //========================================================================================
  2262. function fSlipAprvChk(pBugtChk)
  2263. {
  2264. var rows = grd_unsl.rows - 1;
  2265. if (rows == 0 && pBugtChk != "N")
  2266. {
  2267. messageBox("작업할 내용이 없습니다." ,"I000");
  2268. return false;
  2269. }
  2270. var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
  2271. var sanctno = model.getValue("/root/main/unsl[1]/sanctno");
  2272. var slipflag = model.getValue(cmb_slipflag.attribute("ref"));
  2273. var autjournflag = model.getValue("/root/main/unsl[1]/autjournflag");
  2274. if (sanctyn == "Y")
  2275. {
  2276. messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
  2277. return false;
  2278. }
  2279. if (sanctno != "")
  2280. {
  2281. messageBox("승인된 전표이므로 작업을 불허합니다." ,"I000");
  2282. return false;
  2283. }
  2284. if (slipflag == "9")
  2285. {
  2286. messageBox("반제전표이므로 작업을 불허합니다." ,"I000");
  2287. return false;
  2288. }
  2289. if (autjournflag == "Y")
  2290. {
  2291. //messageBox("자동분개로 작성된 전표는 수정할 수 없습니다." ,"I000");
  2292. //return false;
  2293. //자동분개로 작성된 전표도 수정할 수 있도록 설정 20090115
  2294. }
  2295. return true;
  2296. }
  2297. //========================================================================================
  2298. //전표출력 click
  2299. //========================================================================================
  2300. function fSlipPrintClick(vPreview)
  2301. {
  2302. if(!famtCheck()) // 차대 금액 확인
  2303. {
  2304. return;
  2305. }
  2306. var ret;
  2307. var iRow;
  2308. var actTrans = false;
  2309. if (grd_unsl.rows == 1)
  2310. {
  2311. messageBox("출력할 내용이" ,"I004");
  2312. return false;
  2313. }
  2314. for(var i=1; i<grd_unsl.rows; i++)
  2315. {
  2316. if(grd_unsl.rowStatus(i) != 0)
  2317. {
  2318. messageBox("작성중이거나 수정중인 내역이 있어 출력", "E001");
  2319. return false;
  2320. }
  2321. }
  2322. grp_apln.visible = false;
  2323. model.removenode("/root/main/transacnt"); // 기존의 전표 데이터 삭제
  2324. model.removenode("/root/main/apln"); // 기존의 결재라인 데이터 삭제
  2325. model.removenode("/root/hidden/prntlist/dayworkerprntlist"); // 기존의 일용근로소득 데이터 삭제
  2326. model.removenode("/root/hidden/prntlist/priprofprntlist"); // 기존의 사업소득 데이터 삭제
  2327. model.removenode("/root/hidden/prntlist/etcprofprntlist"); // 기존의 기타소득 데이터 삭제
  2328. model.setValue("/root/send/data3/instcd", model.getValue("/root/main/unsl_one/instcd") );
  2329. model.setValue("/root/send/data3/unsldd", model.getValue("/root/hidden/condition/unsldd") );
  2330. model.setValue("/root/send/data3/unslno", model.getValue("/root/hidden/condition/unslno") );
  2331. model.setValue("/root/send/data3/costcntrdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd") );
  2332. model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));//getUserInfo("dutplcecd"));
  2333. model.setValue("/root/send/data3/unslddno", model.getValue("/root/hidden/condition/unsldd") + model.getValue("/root/hidden/condition/unslno") );
  2334. model.setValue("/root/send/data3/drcrcmt", model.getValue(rdo_drcrcmt.attribute("ref")));
  2335. // if (getUserInfo("dutplcecd") == acntdept)
  2336. // {
  2337. // model.setValue("/root/send/data3/slipdeptcd", "%");
  2338. // }
  2339. // else
  2340. // {
  2341. // model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));
  2342. // }
  2343. model.refresh();
  2344. if(getUserInfo("dutplceinstcd") == "017")
  2345. {
  2346. submit("TRRAD00113"); // 증빙요약내역
  2347. submit("TRRAD00114"); // 예산정보
  2348. submit("TRRAD00115"); // 지출결의서
  2349. }
  2350. submit("TRRAD00101"); // 전표조회
  2351. submit("TRRAD00108"); // 이체계좌내역
  2352. submit("TRRAD00109"); // 원전 징수 증빙 조회
  2353. model.setValue("/root/hidden/rptparm/expansion", expansion);
  2354. model.setValue("/root/hidden/rptparm/instcd", cmb_instcd.value);
  2355. model.setValue("/root/hidden/rptparm/instnm", cmb_instcd.label);
  2356. model.setValue("/root/hidden/rptparm/slipno", "(전표번호 : " + model.getValue("/root/hidden/condition/unsldd") + "-" + model.getValue("/root/hidden/condition/unslno") + ")");
  2357. model.setValue("/root/hidden/rptparm/bugtinfocnt", instance1.selectNodes("/root/main/bugtacptlist").length);
  2358. model.setValue("/root/hidden/rptparm/profinfocnt", instance1.selectNodes("/root/main/slipproflist").length);
  2359. model.setValue("/root/hidden/rptparm/transinfocnt", instance1.selectNodes("/root/main/transacnt").length);
  2360. model.setValue("/root/hidden/rptparm/dayworkerprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/dayworkerprntlist").length);
  2361. model.setValue("/root/hidden/rptparm/priprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/priprofprntlist").length);
  2362. model.setValue("/root/hidden/rptparm/etcprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/etcprofprntlist").length);
  2363. model.setValue("/root/hidden/rptparm/retrprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/retrprofprntlist").length);
  2364. model.setValue("/root/hidden/rptparm/servprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/servprofprntlist").length);
  2365. model.setValue("/root/hidden/rptparm/preview", vPreview);
  2366. iRow = grd_unsl.findRow("Y", 1, grd_unsl.colRef("sanctyn"));
  2367. if (iRow > 0) // 이미 전송된 전표
  2368. {
  2369. model.setValue("/root/hidden/rptparm/reprtyn", "Y");
  2370. fPrintSlip();
  2371. }
  2372. else // 미전송 전표
  2373. {
  2374. if(!fAcntKijeCheck()) // 기재사항입력여부 체크
  2375. {
  2376. return false;
  2377. }
  2378. var vInstcd = getUserInfo("dutplceinstcd");
  2379. var vUnsldd = model.getValue("/root/hidden/condition/unsldd");
  2380. var vUnslno = model.getValue("/root/hidden/condition/unslno");
  2381. // if(!radfSubstituteSlipAmtCheck(vInstcd, vUnsldd, vUnslno)) // 대체전표의 현금성등가물의 상대계정 금액 대칭 일치 여부 검사
  2382. // {
  2383. // return false;
  2384. // }
  2385. model.setValue("/root/send/data3/instcd",model.getValue("/root/main/unsl_one/instcd"));
  2386. model.setValue("/root/send/data3/unsldd",model.getValue("/root/hidden/condition/unsldd"));
  2387. model.setValue("/root/send/data3/unslno",model.getValue("/root/hidden/condition/unslno"));
  2388. model.makeValue("/root/send/data3/sanctyn","Y");
  2389. model.makeValue("/root/send/data3/refreshyn","Y");
  2390. model.refresh();
  2391. submit("TRRAD00107");
  2392. for(var i=1; i<=instance1.selectNodes("/root/hidden/chklist/chklist").length; i++)
  2393. {
  2394. var sGbn = model.getValue("/root/hidden/chklist/chklist[" + i + "]/gbn");
  2395. var sChk = model.getValue("/root/hidden/chklist/chklist[" + i + "]/chk");
  2396. if(sGbn == "aact")
  2397. {
  2398. var sExpsAcntSum = model.getValue("/root/hidden/expsacntsum");
  2399. var AactChkflag = true;
  2400. if(model.getValue("/root/hidden/condition/slipkind") == "3")
  2401. {
  2402. if(parseFloat(sExpsAcntSum) != parseFloat(sChk))
  2403. {
  2404. messageBox("전표상의 [ 예금 금액 합계 ] 와 [ 이체계좌 금액 합계 ] 가 달라 출력을", "E001");
  2405. return false;
  2406. }
  2407. }
  2408. else if(model.getValue("/root/hidden/condition/slipkind") == "1")
  2409. {
  2410. //alert(parseInt(sExpsAcntSum, 10));
  2411. if(parseFloat(sExpsAcntSum) != parseFloat(sChk) && parseInt(sChk, 10) != 0)
  2412. {
  2413. messageBox("전표상의 [ 예금 금액 합계 ] 와 [ 이체계좌 금액 합계 ] 가 달라 출력을", "E001");
  2414. return false;
  2415. }
  2416. if(parseFloat(sChk) == 0) AactChkflag = false;
  2417. }
  2418. if(getUserInfo("dutplceinstcd") != '103')
  2419. {
  2420. if(AactChkflag == true && !fAactException()) // 출금계좌 일치 여부 확인
  2421. {
  2422. return false;
  2423. }
  2424. }
  2425. }
  2426. else if(sGbn == "orch")
  2427. {
  2428. if(sChk != "")
  2429. {
  2430. var sChks = sChk.split('●');
  2431. var sMsg = "";
  2432. for(var i=0; i<sChks.length; i++)
  2433. {
  2434. if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
  2435. else sMsg = sMsg + sChks[i] + "\n\n";
  2436. }
  2437. messageBox(sMsg + "\n\n출력을", "E001");
  2438. return false;
  2439. }
  2440. }
  2441. else if(sGbn == "key")
  2442. {
  2443. if(sChk != "")
  2444. {
  2445. var sChks = sChk.split('●');
  2446. var sMsg = "";
  2447. for(var i=0; i<sChks.length; i++)
  2448. {
  2449. if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
  2450. else sMsg = sMsg + sChks[i] + "\n\n";
  2451. }
  2452. messageBox(sMsg + "\n\n출력을", "E001");
  2453. return false;
  2454. }
  2455. }
  2456. else if(sGbn == "serv")
  2457. {
  2458. if(sChk != "")
  2459. {
  2460. var sChks = sChk.split('●');
  2461. var sMsg = "";
  2462. for(var i=0; i<sChks.length; i++)
  2463. {
  2464. if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
  2465. else sMsg = sMsg + sChks[i] + "\n\n";
  2466. }
  2467. messageBox(sMsg + "\n\n출력을", "E001");
  2468. return false;
  2469. }
  2470. }
  2471. }
  2472. actTrans = true; // 전송되는 전표는 전송 후 다음 입력 상태로 돌아간다.
  2473. if(vPreview != "Y")
  2474. {
  2475. // ret = messageBox("전표 입력을 마감하고 재무팀으로 해당 내역을 전송합니다.\n전송후 출력이 가능하며 수정,삭제가 불가합니다.\n\n작업을","Q004");
  2476. ret = messageBox("출력 후에는 전표수정이\n불가합니다.\n출력하시겠습니까?","Q999");
  2477. if (ret == "6")
  2478. {
  2479. if(!submit("TXRAD00102"))
  2480. {
  2481. return false;
  2482. }
  2483. if (getUserInfo("dutplcecd") == acntdept)
  2484. {
  2485. btn_prtcancel.disabled = false;
  2486. }
  2487. }
  2488. else
  2489. {
  2490. return false;
  2491. }
  2492. }
  2493. fPrintSlip();
  2494. if(actTrans == true && vPreview != "Y")
  2495. {
  2496. btn_clear.dispatch("DOMActivate");
  2497. }
  2498. }
  2499. return true;
  2500. }
  2501. //========================================================================================
  2502. // 전표출력
  2503. //========================================================================================
  2504. function fPrintSlip()
  2505. {
  2506. var SlipFrom = "";
  2507. var SumSlipFrom = "RPRAD00101";
  2508. var chSlipFlag ;
  2509. var vanSwer;
  2510. // 입고, 출고, 반제 전표인 경우 계정별 Sum된 출력을 할 수 있도록 물어 봄
  2511. chSlipFlag = model.getValue("/root/hidden/condition/slipflag");
  2512. if(getUserInfo("dutplceinstcd") == "017")
  2513. {
  2514. if(model.getValue(rdo_slipkind.attribute("ref")) == "1" || model.getValue(rdo_slipkind.attribute("ref")) == "2")
  2515. {
  2516. SlipFrom = "RPRAD00103";
  2517. }
  2518. else
  2519. {
  2520. SlipFrom = "RPRAD00102";
  2521. }
  2522. }
  2523. else if(getUserInfo("dutplceinstcd") == "014")
  2524. {
  2525. if ( chSlipFlag == '2' || chSlipFlag == '3')
  2526. {
  2527. SlipFrom = "RPRAD00103";
  2528. }
  2529. else
  2530. {
  2531. SlipFrom = "RPRAD00100";
  2532. }
  2533. }
  2534. else
  2535. {
  2536. SlipFrom = "RPRAD00100";
  2537. }
  2538. if ( chSlipFlag == '6' || chSlipFlag == '7' || chSlipFlag == '9' )
  2539. {
  2540. vanSwer = messageBox("계정별 합계 형태의 출력을 하시겠습니까?","Q999");
  2541. if (vanSwer == "6")
  2542. {
  2543. exeReportPreview(SumSlipFrom, "XMLSTR", "/root/hidden/rptparm");
  2544. }
  2545. else
  2546. {
  2547. exeReportPreview(SlipFrom, "XMLSTR", "/root/hidden/rptparm");
  2548. }
  2549. }
  2550. else
  2551. {
  2552. exeReportPreview(SlipFrom, "XMLSTR", "/root/hidden/rptparm");
  2553. }
  2554. }
  2555. //========================================================================================
  2556. //전표출력취소 click - 재무팀 전송 취소 기능
  2557. //========================================================================================
  2558. function fSlipPrintCancelClick() {
  2559. var row = grd_unsl.rows;
  2560. if (row == 1) {
  2561. messageBox("취소할 전표를 선택하세요.","I000");
  2562. return;
  2563. }
  2564. iRow = grd_unsl.findRow("N",1,grd_unsl.colRef("sanctyn"));
  2565. if (iRow > 0 ) {
  2566. btn_prtcancel.disabled = true;
  2567. return;
  2568. }
  2569. ret = messageBox(" 전표출력을\n\n취소하시겠습니까?\n","Q999");
  2570. if (ret == "6") {
  2571. model.setValue("/root/send/data3/instcd",model.getValue("/root/main/unsl_one/instcd"));
  2572. model.setValue("/root/send/data3/unsldd",model.getValue("/root/hidden/condition/unsldd"));
  2573. model.setValue("/root/send/data3/unslno",model.getValue("/root/hidden/condition/unslno"));
  2574. model.makeValue("/root/send/data3/sanctyn","N");
  2575. model.makeValue("/root/send/data3/refreshyn","Y");
  2576. model.refresh();
  2577. if (submit("TXRAD00102")) {
  2578. btn_prtcancel.disabled = true;
  2579. }
  2580. } else {
  2581. return;
  2582. }
  2583. }
  2584. //========================================================================================
  2585. //예산편성내역 click
  2586. //========================================================================================
  2587. function fBugtClick()
  2588. {
  2589. var sInstCd = model.getValue("/root/main/unsl_one/instcd");
  2590. var sDeptcd = ipt_costcntrdeptcd.value;
  2591. var sUnsldd = "";
  2592. if(cmb_slipflag.value == "A")
  2593. {
  2594. sUnsldd = parseFloat(ipt_unsldd.value) - 10000;
  2595. }
  2596. else
  2597. {
  2598. sUnsldd = ipt_unsldd.value;
  2599. }
  2600. var sAcntCd = ipt_acntcd.value;
  2601. var sDrCrFlag = rdo_drcrflag.value;
  2602. var instcd = getUserInfo("dutplceinstcd");
  2603. var emplno = getUserInfo("userid");
  2604. var vAcntdept = acntdept;
  2605. var vBugtdept = bugtdept;
  2606. var vSlipdept = model.getValue("/root/main/unsl_one/slipdeptcd");
  2607. var vFullSearchFlag = 'N';
  2608. if(vSlipdept == vAcntdept || vSlipdept == vBugtdept || vSlipdept == sDeptcd || radfCheckBugtAuth(instcd, emplno, sDeptcd, 'SLIPSEARCHYN') == "Y") vFullSearchFlag = 'Y';
  2609. var sParams = sInstCd + "," + sDeptcd + "," + sUnsldd + "," + sAcntCd + "," + sDrCrFlag + "," + vFullSearchFlag
  2610. model.makeNode("/root/main/unsl_one/bugtflagnm");
  2611. model.makeNode("/root/main/unsl_one/bugtflag");
  2612. model.makeNode("/root/main/unsl_one/acntcd");
  2613. model.makeNode("/root/main/unsl_one/acntnm");
  2614. model.makeNode("/root/main/unsl_one/bugtcd");
  2615. model.makeNode("/root/main/unsl_one/bugtnm");
  2616. model.makeNode("/root/main/unsl_one/projectid");
  2617. model.makeNode("/root/main/unsl_one/projectnm");
  2618. model.makeNode("/root/main/unsl_one/orgbugtamtsum");
  2619. model.makeNode("/root/main/unsl_one/revbugtamtsum");
  2620. model.makeNode("/root/main/unsl_one/bugtexecamtsum");
  2621. model.makeNode("/root/main/unsl_one/bugtamt");
  2622. fOpenPopupHelp("16", ipt_costcntrdeptcd, "bugtflag,bugtflagnm,acntcd,acntnm,bugtcd,bugtnm,projectid,projectnm,orgbugtamtsum,revbugtamtsum,bugtexecamtsum,bugtamt", "", sParams, "instcd,deptcd,unsldd,acntcd,drcrflag,fullsearchflag");
  2623. fAcntInfoSelect();
  2624. if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "")
  2625. {
  2626. fAcntInfoSelect1();
  2627. }
  2628. model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl_one/projectid"));
  2629. model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl_one/projectnm"));
  2630. }
  2631. //========================================================================================
  2632. //이체계좌등록 click
  2633. //========================================================================================
  2634. function fSetAcntClick()
  2635. {
  2636. if (grd_unsl.rows == 1)
  2637. {
  2638. messageBox("전표 입력 후 작업하세요." ,"I000");
  2639. return;
  2640. }
  2641. if(!famtCheck()) // 차대 금액 확인
  2642. {
  2643. return;
  2644. }
  2645. var sYn = "N";
  2646. if(getUserInfo("dutplcecd") == acntdept)
  2647. {
  2648. sYn = "Y";
  2649. }
  2650. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2651. model.makeValue("/root/source/slipinfo/instnm", cmb_instcd.label);
  2652. model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  2653. model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  2654. model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/hidden/condition/slipcmt"));
  2655. model.makeValue("/root/source/slipinfo/expsacntsum", model.getValue("/root/hidden/expsacntsum"));
  2656. model.makeValue("/root/source/slipinfo/sanctyn", model.getValue("/root/main/unsl[1]/sanctyn"));
  2657. model.makeValue("/root/source/slipinfo/acntdeptyn", sYn);
  2658. model.makeValue("/root/source/slipinfo/slipkind", model.getValue("/root/hidden/condition/slipkind"));
  2659. model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
  2660. model.makeValue("/root/source/receiveref2", "/root/hidden/retexpacntsum");
  2661. modal("SPRAD00108","","","","","/root/source", "/root/target", "sysmenu:hidden" );
  2662. model.refresh();
  2663. }
  2664. //========================================================================================
  2665. //증빙입력여부check
  2666. //========================================================================================
  2667. function fProfExistsChk()
  2668. {
  2669. // if(grd_unsl.row > grd_unsl.fixedRows && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == 'Y')
  2670. // {
  2671. // messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
  2672. // return false;
  2673. // }
  2674. var seqno = model.getValue("/root/main/unsl_one/seqno");
  2675. var profflag = model.getValue("/root/main/unsl["+grd_unsl.row+"]/profflag");
  2676. var profflag1 = model.getValue("/root/main/unsl_one/profflag");
  2677. var prev_prof = model.getValue("/root/hidden/prev_prof");
  2678. if (model.getValue("/root/hidden/condition/slipkind") == "2" && (profflag1 != "4" && profflag1 != "5" && profflag1 != "6"))
  2679. {
  2680. model.setValue("/root/main/unsl_one/profflag", profflag);
  2681. model.refresh();
  2682. messageBox("입금전표 증빙은 세금계산서, 계산서, 기타 유형으로만 등록이 가능합니다.","I000");
  2683. return false;
  2684. }
  2685. if (seqno != "")
  2686. {
  2687. var ret = "";
  2688. //if(btn_grdset.disabled == false && profflag != model.getValue("/root/main/unsl_one/profflag"))
  2689. if(btn_grdset.disabled == false && profflag != profflag1)
  2690. {
  2691. var profflagnm = model.getValue("/root/init/profflaglist/profflag[cd='"+ profflag +"']/nm");
  2692. ret = messageBox("해당 증빙[" + profflagnm + "]에 입력된 자료가 존재합니다.\n증빙을 변경하시겠습니까?","Q999");
  2693. if(ret == "6")
  2694. {
  2695. return true;
  2696. }
  2697. else
  2698. {
  2699. model.setValue("/root/main/unsl_one/profflag", profflag);
  2700. model.refresh();
  2701. return false;
  2702. }
  2703. }
  2704. else if(prev_prof != model.getValue("/root/main/unsl_one/profflag"))
  2705. {
  2706. var prev_profnm = model.getValue("/root/init/profflaglist/profflag[cd='"+ prev_prof +"']/nm");
  2707. ret = messageBox("해당 증빙[" + prev_profnm + "]에 입력된 자료가 존재합니다.\n증빙을 변경하시겠습니까?","Q999");
  2708. if(ret == "6")
  2709. {
  2710. return true;
  2711. }
  2712. else
  2713. {
  2714. model.setValue("/root/main/unsl_one/profflag", prev_prof);
  2715. model.refresh();
  2716. return false;
  2717. }
  2718. }
  2719. }
  2720. return true;
  2721. }
  2722. //========================================================================================
  2723. //증빙구분-원천징수 외 click
  2724. //========================================================================================
  2725. function fProfClick(pProfflag)
  2726. {
  2727. fetcprofcntcheck();
  2728. if(model.getValue("/root/hidden/slipstatus") == "미 출 력"){
  2729. if((rdo_profflag1.value == '1' || rdo_profflag2.value == '2' || rdo_profflag3.value == '3') && radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition6') == "Y")
  2730. {
  2731. if(!((model.getValue(cmb_custflag.attribute("ref")) == "1" && model.getValue(ipt_custcd.attribute("ref")) != "") || model.getValue(cmb_custflag.attribute("ref")) == "9"))
  2732. {
  2733. messageBox("상대처구분에 거래처나 기타를 선택해야 합니다.", "I000");
  2734. return false;
  2735. }
  2736. }
  2737. else
  2738. {
  2739. if(!(model.getValue(cmb_custflag.attribute("ref")) == "1" && model.getValue(ipt_custcd.attribute("ref")) != ""))
  2740. {
  2741. messageBox("상대처구분에 거래처를 입력해야 합니다.", "I000");
  2742. return false;
  2743. }
  2744. }
  2745. if(!fCashAcntProfException()) return false; //현금성 등가물 증빙 예외
  2746. if (!fProfExistsChk())
  2747. {
  2748. return;
  2749. }
  2750. if(model.getValue("/root/main/unsl_one/profflag") == "1") // 선택된 귀속부서가 사용자의 근무부서이면 부서 법인카드를 볼 수 있도록 파라미터를 보낸다.
  2751. {
  2752. model.makeValue("/root/source/slipinfo/cardno", model.getValue("/root/hidden/instcardseqnoinfo/instcardseqno"));
  2753. var vDeptCD = getUserInfo("dutplcecd");
  2754. if(vDeptCD == model.getValue(ipt_costcntrdeptcd.attribute("ref")))
  2755. {
  2756. model.makeValue("/root/source/slipinfo/carddeptcd", vDeptCD);
  2757. }
  2758. else
  2759. {
  2760. model.makeValue("/root/source/slipinfo/carddeptcd", "");
  2761. }
  2762. }
  2763. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
  2764. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2765. model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/seqno"));
  2766. model.makeValue("/root/source/slipinfo/custcd", model.getValue("/root/main/unsl_one/custcd"));
  2767. model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  2768. model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  2769. model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
  2770. model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
  2771. model.makeValue("/root/source/slipinfo/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
  2772. model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
  2773. model.makeValue("/root/source/slipinfo/slipkind", model.getValue("/root/hidden/condition/slipkind"));
  2774. if(cmb_custflag.value == "4" && ipt_custcd.value != "")
  2775. {
  2776. //alert("4 : " + ipt_custcd.value);
  2777. model.makeValue("/root/source/slipinfo/emplno", "");
  2778. model.setValue("/root/source/slipinfo/emplno", ipt_custcd.value);
  2779. }
  2780. var acntdeptflag;
  2781. if(acntdept == getUserInfo("dutplcecd"))
  2782. {
  2783. acntdeptflag = "Y";
  2784. }
  2785. else
  2786. {
  2787. acntdeptflag = "N";
  2788. }
  2789. model.makeValue("/root/source/slipinfo/acntdept", acntdeptflag);
  2790. if (pProfflag == "SPRAT00101")
  2791. {
  2792. //세금계산서 관련 증빙
  2793. model.makeValue("/root/source/slipinfo/taxbillkind", model.getValue("/root/main/unsl_one/profflag"));
  2794. model.makeValue("/root/source/slipinfo/taxbillflag", "1");
  2795. // model.makeValue("/root/source/slipinfo/reptkind", "3"); //수정필요
  2796. model.makeValue("/root/source/slipinfo/flagcd", "1");
  2797. var sMonth = model.getValue("/root/hidden/condition/unsldd").substr(4, 2);
  2798. //var sReptKind = "3";
  2799. if(sMonth == "01" || sMonth == "02" || sMonth == "03")
  2800. {
  2801. sReptKind = "1";
  2802. }
  2803. else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
  2804. {
  2805. sReptKind = "2";
  2806. }
  2807. else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
  2808. {
  2809. sReptKind = "3";
  2810. }
  2811. else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
  2812. {
  2813. sReptKind = "4";
  2814. }
  2815. model.makeValue("/root/source/slipinfo/reptkind", sReptKind); //수정필요
  2816. }
  2817. else
  2818. {
  2819. model.makeValue("/root/source/slipinfo/profflag", model.getValue("/root/main/unsl_one/profflag"));
  2820. }
  2821. model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
  2822. model.makeValue("/root/source/receivecardinforef", "/root/hidden/instcardseqnoinfo"); //저장한 카드번호를 임시 저장한다.
  2823. model.refresh();
  2824. modal(pProfflag,"","","","","/root/source", "/root/target" );
  2825. model.refresh();
  2826. if ((model.getValue("/root/source/slipinfo/seqno") != model.getValue("/root/main/unsl_one/seqno")
  2827. || model.getValue("/root/source/slipinfo/amt") != model.getValue("/root/main/unsl_one/amt")) && btn_grdset.disabled == false)
  2828. {
  2829. var cur_row = grd_unsl.row;
  2830. btn_grdset.dispatch("DOMActivate");
  2831. grd_unsl.row = cur_row;
  2832. fGridRowClick();
  2833. }
  2834. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); //저장한 증빙외의 증빙 선택 제한
  2835. //fCheckServAcnt();
  2836. }else{
  2837. messageBox("미출력상태가 아닌 전표는 수정", "E001");
  2838. return;
  2839. }
  2840. }
  2841. //========================================================================================
  2842. //증빙구분-원천징수 click
  2843. //========================================================================================
  2844. function fProfOrChClick(pProfflag)
  2845. {
  2846. fetcprofcntcheck();
  2847. var vProfflag = model.getValue("/root/main/unsl_one/profflag");
  2848. if(getUserInfo("dutplceinstcd") != '103')
  2849. {
  2850. if(vProfflag == "7" || vProfflag == "8")
  2851. {
  2852. if(!(model.getValue(cmb_custflag.attribute("ref")) == "4" && model.getValue(ipt_custcd.attribute("ref")) != ""))
  2853. {
  2854. messageBox("상대처구분에 교직원을 입력해야 합니다.", "I000");
  2855. return false;
  2856. }
  2857. }
  2858. else if(vProfflag == "9")
  2859. {
  2860. if(!((model.getValue(cmb_custflag.attribute("ref")) == "4" || model.getValue(cmb_custflag.attribute("ref")) == "5") && model.getValue(ipt_custcd.attribute("ref")) != ""))
  2861. {
  2862. messageBox("상대처구분에 교직원이나 소득자를 입력해야 합니다.", "I000");
  2863. return false;
  2864. }
  2865. }
  2866. else if(vProfflag == "A" || vProfflag == "B" || vProfflag == "C")
  2867. {
  2868. if(!(model.getValue(cmb_custflag.attribute("ref")) == "5" && model.getValue(ipt_custcd.attribute("ref")) != ""))
  2869. {
  2870. messageBox("상대처구분에 소득자를 입력해야 합니다.", "I000");
  2871. return false;
  2872. }
  2873. }
  2874. }
  2875. if (!fProfExistsChk())
  2876. {
  2877. return false;
  2878. }
  2879. if(!fCashAcntProfException()) return false; // 현금성 등가물 증빙 예외
  2880. model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
  2881. var chgchk = 0;
  2882. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  2883. model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/seqno"));
  2884. model.makeValue("/root/source/slipinfo/custcd", model.getValue("/root/main/unsl_one/custcd"));
  2885. model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  2886. model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  2887. model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
  2888. model.makeValue("/root/source/slipinfo/profflag", model.getValue("/root/main/unsl_one/profflag"));
  2889. model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
  2890. model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/main/unsl_one/etcnotefact"));
  2891. model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
  2892. model.makeValue("/root/source/receiveref", "/root/hidden/orchreturn");
  2893. // alert(cmb_custflag.value);
  2894. if(cmb_custflag.value == "4" && ipt_custcd.value != "")
  2895. {
  2896. //alert("4 : " + ipt_custcd.value);
  2897. model.makeValue("/root/source/slipinfo/emplno", "");
  2898. model.makeValue("/root/source/slipinfo/rrgstno", "");
  2899. model.setValue("/root/source/slipinfo/emplno", ipt_custcd.value);
  2900. }
  2901. else if(cmb_custflag.value == "5" && ipt_custcd.value != "")
  2902. {
  2903. //alert("5 : " + ipt_custcd.value);
  2904. model.makeValue("/root/source/slipinfo/rrgstno", "");
  2905. model.makeValue("/root/source/slipinfo/emplno", "");
  2906. model.setValue("/root/source/slipinfo/rrgstno", ipt_custcd.value);
  2907. }
  2908. else
  2909. {
  2910. model.makeValue("/root/source/slipinfo/emplno", "");
  2911. model.setValue("/root/source/slipinfo/emplno", "");
  2912. model.makeValue("/root/source/slipinfo/rrgstno", "");
  2913. model.setValue("/root/source/slipinfo/rrgstno", "");
  2914. }
  2915. model.refresh();
  2916. modal(pProfflag,"","","","","/root/source", "/root/target", "resize:false" );
  2917. if (model.getValue("/root/main/unsl_one/seqno") != model.getValue("/root/hidden/orchreturn/seqno"))
  2918. {
  2919. model.setValue("/root/main/unsl_one/seqno", model.getValue("/root/hidden/orchreturn/seqno"));
  2920. chgchk++;
  2921. }
  2922. if (model.getValue("/root/main/unsl_one/etcnotefact") != model.getValue("/root/hidden/orchreturn/etcnotefact") && model.getValue("/root/hidden/orchreturn/etcnotefact") != "")
  2923. {
  2924. model.setValue("/root/main/unsl_one/etcnotefact", model.getValue("/root/hidden/orchreturn/etcnotefact"));
  2925. }
  2926. //model.refresh();
  2927. if (model.getValue("/root/main/unsl_one/amt") != model.getValue("/root/hidden/orchreturn/amt") && model.getValue("/root/hidden/orchreturn/amt") != "")
  2928. {
  2929. model.setValue("/root/main/unsl_one/amt", model.getValue("/root/hidden/orchreturn/amt"));
  2930. chgchk++;
  2931. }
  2932. var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
  2933. for (i=1; i < grd_unsl.rows; i++)
  2934. {
  2935. if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == incmtax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
  2936. {
  2937. if (model.getValue("/root/main/unsl[" + i + "]/amt") != model.getValue("/root/hidden/orchreturn/incmtax") && model.getValue("/root/hidden/orchreturn/incmtax") != "")
  2938. {
  2939. model.setValue("/root/main/unsl[" + i + "]/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
  2940. chgchk++;
  2941. break;
  2942. }
  2943. }
  2944. }
  2945. for (i=1; i < grd_unsl.rows; i++)
  2946. {
  2947. if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == resdntax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
  2948. {
  2949. if (model.getValue("/root/main/unsl[" + i + "]/amt") != model.getValue("/root/hidden/orchreturn/resdntax") && model.getValue("/root/hidden/orchreturn/resdntax") != "")
  2950. {
  2951. model.setValue("/root/main/unsl[" + i + "]/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
  2952. chgchk++;
  2953. break;
  2954. }
  2955. }
  2956. }
  2957. model.refresh();
  2958. if (chgchk > 0 && btn_grdset.disabled == false)
  2959. {
  2960. model.refresh();
  2961. var cur_row = grd_unsl.row;
  2962. btn_grdset.dispatch("DOMActivate");
  2963. grd_unsl.row = cur_row;
  2964. fGridRowClick();
  2965. }
  2966. //fCheckServAcnt();
  2967. }
  2968. function fSumExpantAmt()
  2969. {
  2970. var iSum = 0;
  2971. var iExpAmt = 0;
  2972. var sAcntCd = "";
  2973. for(var i=1; i<=instance1.selectNodes("/root/main/unsl").length; i++) // 이체계좌에 포함시킬 계정 목록 - 기본적인 계정 외에 추가 적인 계정 hard coding
  2974. {
  2975. sAcntCd = model.getValue("/root/main/unsl[" + i + "]/acntcd");
  2976. iExpAmt = 0;
  2977. // alert("sAcntCd : " + sAcntCd);
  2978. for(var j = 0; j < arrTransAcntCd.length ; j++)
  2979. {
  2980. // alert(arrTransAcntCd[j]);
  2981. if(arrTransAcntCd[j] == sAcntCd)
  2982. {
  2983. // alert(arrTransAcntCd[j]);
  2984. var sExpAmt = (model.getValue("/root/main/unsl[" + i + "]/cramt") == "") ? 0 : model.getValue("/root/main/unsl[" + i + "]/cramt");
  2985. iExpAmt = parseInt(sExpAmt, 10);
  2986. break;
  2987. }
  2988. }
  2989. // if(sAcntCd == "1232001" || sAcntCd == "1233001" || sAcntCd == "1234001" || sAcntCd == "1239001")
  2990. // {
  2991. // var sExpAmt = (model.getValue("/root/main/unsl[" + i + "]/cramt") == "") ? 0 : model.getValue("/root/main/unsl[" + i + "]/cramt");
  2992. // iExpAmt = parseInt(sExpAmt, 10);
  2993. // }
  2994. iSum += iExpAmt;
  2995. }
  2996. //alert(iSum)
  2997. //var iExpsacntSum = parseInt((model.getValue("/root/hidden/allexpsacntsum") == "") ? 0 : model.getValue("/root/hidden/allexpsacntsum"), 10);
  2998. //<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; "/>
  2999. //<bind id="bind_caption57" ref="/root/hidden/allexpsacntsum" calculate="sum(/root/main/unsl[acntcd=/root/hidden/expsacnt]/cramt)"/>
  3000. model.setValue("/root/hidden/expsacntsum", iSum);
  3001. model.refresh();
  3002. }
  3003. //========================================================================================
  3004. //예산 귀속부서 help
  3005. //========================================================================================
  3006. function fOpenPopupDeptHelp(pControl, pInstance)
  3007. {
  3008. misfOpenPopUpList("02", pControl, "", pInstance);
  3009. model.refresh();
  3010. }
  3011. //========================================================================================
  3012. //계정과목 삭제 - 부서 변경 시
  3013. //========================================================================================
  3014. function fRemoveAcntValue()
  3015. {
  3016. //model.setValue("/root/main/unsl_one/acntcd", "");
  3017. //model.setValue("/root/main/unsl_one/acntnm", "");
  3018. model.setValue("/root/hidden/condition/projectid", "");
  3019. model.setValue("/root/hidden/condition/projectnm", "");
  3020. model.removenode("/root/main/unsl_one/projectid");
  3021. model.makeNode("/root/main/unsl_one/projectid");
  3022. model.setValue(ipt_costbelongdeptcd.attribute("ref"), model.getValue(ipt_costcntrdeptcd.attribute("ref")));
  3023. model.setValue(ipt_costbelongdeptnm.attribute("ref"), model.getValue(ipt_costcntrdeptnm.attribute("ref")));
  3024. model.refresh();
  3025. }
  3026. //========================================================================================
  3027. //프로젝트 ID 변경 시 unsl_one 에 적용
  3028. //========================================================================================
  3029. function fSetProjectValue()
  3030. {
  3031. model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/hidden/condition/projectid"));
  3032. model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/hidden/condition/projectnm"));
  3033. }
  3034. function fAcntSelect()
  3035. {
  3036. if(!fdayreptAcntcdException())return;
  3037. fAcntInfoSelect();
  3038. if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "")
  3039. {
  3040. if(model.getValue("/root/hidden/acntcdinfo/bugtuseyn") == "Y" && (model.getValue(cmb_slipflag.attribute("ref")) != "A" && model.getValue(cmb_slipflag.attribute("ref")) != "B"))
  3041. // --수정 20080924 수익 예산도 계정 통제를 한다. -- || model.getValue("/root/hidden/acntcdinfo/acntflag") == "4")
  3042. // 수익은 예산 사용 계정이 아니어도 기표 가능하다.
  3043. {
  3044. model.setValue("/root/send/data5/instcd", model.getValue("/root/main/unsl_one/instcd"));
  3045. model.setValue("/root/send/data5/deptcd", ipt_costcntrdeptcd.value);
  3046. model.setValue("/root/send/data5/unsldd", ipt_unsldd.value);
  3047. model.setValue("/root/send/data5/refcond", "code");
  3048. model.setValue("/root/send/data5/retrnm", model.getValue("/root/main/unsl_one/acntcd"));
  3049. model.setValue("/root/send/data5/drcrflag", rdo_drcrflag.value);
  3050. submit("TRRAD90107");
  3051. if(instance1.selectNodes("/root/main/list/bugtorgnzlist").length > 0)
  3052. {
  3053. model.setValue("/root/main/unsl_one/acntcd", model.getValue("/root/main/list/bugtorgnzlist/acntcd"));
  3054. model.setValue("/root/main/unsl_one/acntnm", model.getValue("/root/main/list/bugtorgnzlist/acntnm"));
  3055. model.setValue("/root/main/unsl_one/bugtcd", model.getValue("/root/main/list/bugtorgnzlist/bugtcd"));
  3056. model.setValue("/root/main/unsl_one/bugtamt", model.getValue("/root/main/list/bugtorgnzlist/bugtamt"));
  3057. model.makeValue("/root/main/unsl_one/bugtflag", model.getValue("/root/main/list/bugtorgnzlist/bugtflag"));
  3058. // 그리드에서 선택하면 [/root/main/unsl_one]에 값이 setting 되는데 일부는 커럼이 없어 인스턴스를 만들지 못함
  3059. /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
  3060. {
  3061. fProjectIDSetCombo();
  3062. }*/
  3063. }
  3064. // 모든 기관은 자산의 대변기재 외에는 예산 편성 계정이면 예산계정통제 / 금액통제가 있다.
  3065. // else if(getUserInfo("dutplceinstcd") != "103" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "4") // (X)성의교정은 수익계정도 예산편성이 있어야 함 (예산설정 시 프로젝트 id 가 필수적임)
  3066. // {
  3067. // model.setValue("/root/main/unsl_one/bugtcd", "01");
  3068. // model.setValue("/root/main/unsl_one/bugtamt", "0");
  3069. // }
  3070. else if(model.getValue("/root/main/unsl_one/drcrflag") == "C" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "1") // 자산이 지출일때 대변 기재는 예산과 무관하다.
  3071. {
  3072. model.setValue("/root/main/unsl_one/bugtcd", "01");
  3073. model.setValue("/root/main/unsl_one/bugtamt", "0");
  3074. }
  3075. 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)
  3076. {
  3077. model.setValue("/root/main/unsl_one/bugtcd", "01");
  3078. model.setValue("/root/main/unsl_one/bugtamt", "0");
  3079. }
  3080. else
  3081. {
  3082. messageBox("예산 편성 내역이", "I004");
  3083. model.setValue("/root/main/unsl_one/acntcd", "");
  3084. model.setValue("/root/main/unsl_one/acntnm", "");
  3085. model.setValue("/root/main/unsl_one/bugtcd", "");
  3086. model.setValue("/root/main/unsl_one/bugtamt", "");
  3087. /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
  3088. {
  3089. model.removenode("/root/main/unsl_one/projectid");
  3090. model.makeNode("/root/main/unsl_one/projectid");
  3091. // model.setValue("/root/main/unsl_one/projectid", "");
  3092. // model.setValue("/root/main/unsl_one/projectnm", "");
  3093. // model.setValue("/root/hidden/condition/projectid", "");
  3094. // model.setValue("/root/hidden/condition/projectnm", "");
  3095. }
  3096. */
  3097. model.refresh();
  3098. return;
  3099. }
  3100. }
  3101. else
  3102. {
  3103. model.setValue("/root/main/unsl_one/projectid", "");
  3104. model.setValue("/root/main/unsl_one/projectnm", "");
  3105. model.setValue("/root/hidden/condition/projectid", "");
  3106. model.setValue("/root/hidden/condition/projectnm", "");
  3107. model.setValue(ipt_bugtamt.attribute("ref"), "");
  3108. ipt_bugtamt.refresh();
  3109. }
  3110. model.refresh();
  3111. fAcntInfoSelect1();
  3112. if (switch8.selectedIndex == 0)
  3113. {
  3114. model.setFocus("ipt_custnm");
  3115. }
  3116. else
  3117. {
  3118. model.setFocus("ipt_custnm2");
  3119. }
  3120. }
  3121. else
  3122. {
  3123. fAcntClear();
  3124. }
  3125. // 대체 전표에서 예금을 선택하면
  3126. for(var i = 0 ; i < arrCashAcntCd.length ; i++)
  3127. {
  3128. if(arrCashAcntCd[i] == ipt_acntcd.value)
  3129. {
  3130. 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))
  3131. {
  3132. model.setValue("/root/main/unsl_one/amt", parseInt(caption13.value) - parseInt(caption14.value));
  3133. }
  3134. rdo_profflag6.select(0); // 현금성 등가물은 무조건 증빙구분이 기타임
  3135. }
  3136. }
  3137. cmb_custflag.refresh();
  3138. model.refresh();
  3139. }
  3140. function fAcntClear()
  3141. {
  3142. model.resetInstanceNode("/root/hidden/acntcdinfo");
  3143. /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
  3144. {
  3145. model.setValue("/root/main/unsl_one/projectid", "");
  3146. model.setValue("/root/main/unsl_one/projectnm", "");
  3147. model.setValue("/root/hidden/condition/projectid", "");
  3148. model.setValue("/root/hidden/condition/projectnm", "");
  3149. }
  3150. */
  3151. model.setValue("/root/main/unsl_one/bugtamt", 0);
  3152. model.refresh();
  3153. fAcntInfoSelect();
  3154. model.setFocus("ipt_acntnm");
  3155. }
  3156. //========================================================================================
  3157. //성의 교정 자금과목 Setting
  3158. //========================================================================================
  3159. function ffundcdReSetting()
  3160. {
  3161. model.setValue("root/init/fundscdlist/fundscd[2]/nm", "교육용수입");
  3162. model.setValue("root/init/fundscdlist/fundscd[3]/nm", "교육외수입");
  3163. model.setValue("root/init/fundscdlist/fundscd[7]/nm", "교육외지출");
  3164. }
  3165. //========================================================================================
  3166. //전표의 차대변 금액 검사
  3167. //========================================================================================
  3168. function famtCheck()
  3169. {
  3170. var dramt = parseInt(caption13.value);
  3171. var cramt = parseInt(caption14.value);
  3172. if (dramt != cramt)
  3173. {
  3174. messageBox("차대변 금액이","E004");
  3175. return false;
  3176. }
  3177. return true;
  3178. }
  3179. //========================================================================================
  3180. //현금 계정은 대체전표로 작성할 수 없다.
  3181. //========================================================================================
  3182. function fdayreptAcntcdException()
  3183. {
  3184. if(ipt_acntcd.value == cashcd && (rdo_slipkind.value == "1" || rdo_slipkind.value == "4"))
  3185. {
  3186. messageBox("현금은 대체전표로 발의 할 수" ,"E001");
  3187. model.setValue("/root/main/unsl_one/acntcd", "");
  3188. model.setValue("/root/main/unsl_one/acntnm", "");
  3189. ipt_acntcd.refresh();
  3190. ipt_acntnm.refresh();
  3191. return false;
  3192. }
  3193. else
  3194. {
  3195. return true;
  3196. }
  3197. }
  3198. //========================================================================================
  3199. // 필수 기재사항 예외처리
  3200. //========================================================================================
  3201. function fcheckAcntOption()
  3202. {
  3203. for (i=1; i<7; i++)
  3204. {
  3205. var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
  3206. var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
  3207. var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
  3208. if(option == "Y")
  3209. {
  3210. if((kind == "1" || kind == "3") && model.getValue("/root/main/unsl_one/notefactcd" + i) == "")
  3211. {
  3212. messageBox(title + "은(는)","I003");
  3213. return false;
  3214. }
  3215. else if(kind == "2" && model.getValue("/root/main/unsl_one/notefactspec" + i) == "")
  3216. {
  3217. messageBox(title + "은(는)","I003");
  3218. return false;
  3219. }
  3220. }
  3221. }
  3222. return true;
  3223. }
  3224. //========================================================================================
  3225. // 필수 기재사항 예외처리
  3226. //========================================================================================
  3227. function fdrcrflagSet()
  3228. {
  3229. var slipkind = model.getValue("/root/hidden/condition/slipkind");
  3230. if (slipkind == "1" || slipkind == "4") {
  3231. model.setValue("/root/main/unsl_one/drcrflag","D");
  3232. rdo_drcrflag.disabled = false;
  3233. // ipt_defrayreqdd.disabled = true;
  3234. ipt_defrayreqdd.disabled = false;// 대체는 예정일 막았었지만 요청에 의한 해제
  3235. } else if (slipkind == "2") {
  3236. model.setValue("/root/main/unsl_one/drcrflag","C");
  3237. rdo_drcrflag.disabled = true;
  3238. ipt_defrayreqdd.disabled = false;
  3239. } else if (slipkind == "3") {
  3240. model.setValue("/root/main/unsl_one/drcrflag","D");
  3241. rdo_drcrflag.disabled = true;
  3242. ipt_defrayreqdd.disabled = false;
  3243. }
  3244. }
  3245. //========================================================================================
  3246. // 계좌 중복 예외처리 (이체계좌 등록 시)
  3247. //========================================================================================
  3248. function transAcntException()
  3249. {
  3250. var vCount = 0;
  3251. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3252. {
  3253. if(model.getValue(grd_unsl.nodeset + "[" + i + "]/drcrflag") == "C")
  3254. {
  3255. sAcntCd = model.getValue(grd_unsl.nodeset + "[" + i + "]/acntcd");
  3256. // alert(model.getValue(grd_unsl.nodeset + "[" + i + "]/acntcd"));
  3257. for(var j=0; j<arrTransAcntCd.length; j++)
  3258. {
  3259. if(arrTransAcntCd[j] == sAcntCd)
  3260. {
  3261. vCount = 0;
  3262. for(var m = grd_unsl.fixedRows ; m < grd_unsl.rows ; m++)
  3263. {
  3264. if(sAcntCd == model.getValue(grd_unsl.nodeset + "[" + m + "]/acntcd"))
  3265. {
  3266. vCount++;
  3267. }
  3268. }
  3269. if(vCount > 1)return false;
  3270. }
  3271. }
  3272. }
  3273. }
  3274. return true;
  3275. }
  3276. //========================================================================================
  3277. // 저장 시 증빙 입력 여부 체크
  3278. //========================================================================================
  3279. function fprofChk()
  3280. {
  3281. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3282. {
  3283. 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")) == "")
  3284. {
  3285. messageBox(grd_unsl.valueMatrix(i, grd_unsl.colRef("unslseqno")) + "번 전표의 증빙이 저장되지 않았습니다.","I000");
  3286. return false;
  3287. }
  3288. }
  3289. return true;
  3290. }
  3291. //========================================================================================
  3292. // 발의자 정보 Setting
  3293. //========================================================================================
  3294. function fuserInfoSet()
  3295. {
  3296. if(grd_unsl.rows > 1)
  3297. {
  3298. model.setValue("/root/hidden/userinfo/unslwrit", grd_unsl.valueMatrix(1, grd_unsl.colRef("unslwrit")));
  3299. model.setValue("/root/hidden/userinfo/usernm", grd_unsl.valueMatrix(1, grd_unsl.colRef("usernm")));
  3300. }
  3301. else
  3302. {
  3303. model.setValue("/root/hidden/userinfo/unslwrit", model.getValue("/root/main/unsl_one/unslwrit"));
  3304. model.setValue("/root/hidden/userinfo/usernm", model.getValue("/root/main/unsl_one/usernm"));
  3305. }
  3306. }
  3307. //========================================================================================
  3308. // 접대비 입력 여부 체크
  3309. //========================================================================================
  3310. /*
  3311. function fCheckServAcnt()
  3312. {
  3313. if(servcd == ipt_acntcd.value && parseInt(ipt_amt.value) >= 500000 || model.getValue("/root/main/unsl_one/servseq") != "")
  3314. {
  3315. btn_serv.visible = true;
  3316. }
  3317. else
  3318. {
  3319. btn_serv.visible = false;
  3320. }
  3321. }
  3322. */
  3323. //========================================================================================
  3324. // 전표 이동 / 복사
  3325. //========================================================================================
  3326. function fCopyShftSlip(workflag)
  3327. {
  3328. if(workflag == "shift" && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == "Y")
  3329. {
  3330. messageBox("전송된 전표는 날짜를 변경할 수 없습니다.","I000");
  3331. return;
  3332. }
  3333. if (grd_unsl.rows > 1)
  3334. {
  3335. var updtdata = getGridUpdateData(grd_unsl);
  3336. if (updtdata != "")
  3337. {
  3338. messageBox("변경된 데이터 저장 후 작업하세요.","I000");
  3339. return;
  3340. }
  3341. }
  3342. else
  3343. {
  3344. return; //빈 데이터
  3345. }
  3346. var instcd = model.getValue("/root/main/unsl_one/instcd");
  3347. var oldunsldd = ipt_unsldd.value;
  3348. var oldunslno = model.getValue("/root/hidden/condition/unslno");
  3349. model.makeValue("/root/source/copyshiftslipinfo/instcd", instcd);
  3350. model.makeValue("/root/source/copyshiftslipinfo/oldunsldd", oldunsldd);
  3351. model.makeValue("/root/source/copyshiftslipinfo/oldunslno", oldunslno);
  3352. model.makeValue("/root/source/copyshiftslipinfo/jobflag", workflag);
  3353. model.makeValue("/root/source/receiveref", "/root/hidden/copyshiftslip");
  3354. model.refresh();
  3355. modal("SPRAD00160","","","","","/root/source", "/root/target" );
  3356. model.refresh();
  3357. var newunsldd = model.getValue("/root/hidden/copyshiftslip/newunsldd");
  3358. var newunslno = model.getValue("/root/hidden/copyshiftslip/newunslno");
  3359. if(newunslno == "0000") return; //취소
  3360. if(newunslno == "")
  3361. {
  3362. messageBox("작업중 문제가 있습니다. 운영자에게 문의하세요.","I000");
  3363. return;
  3364. }
  3365. if(workflag == "copy")
  3366. {
  3367. ret = messageBox("전표가 " + newunsldd.substr(0, 4) + "년 " + newunsldd.substr(4, 2) + "월 " + newunsldd.substr(6, 2) + "일 " + newunslno + "번 전표로 복사되었습니다.\n복사된 전표를 조회하시겠습니까?","Q999");
  3368. }
  3369. else if(workflag == "shift")
  3370. {
  3371. messageBox("전표가 " + newunsldd.substr(0, 4) + "년 " + newunsldd.substr(4, 2) + "월 " + newunsldd.substr(6, 2) + "일 " + newunslno + "번 전표로 날짜가 변경되었습니다.","I000");
  3372. ret = "6";
  3373. }
  3374. if (ret == "6")
  3375. {
  3376. model.setValue("/root/hidden/condition/unsldd", newunsldd);
  3377. model.setValue("/root/hidden/condition/unslno", newunslno);
  3378. btn_search.dispatch("DOMActivate");
  3379. }
  3380. }
  3381. //========================================================================================
  3382. // 출금계좌 일치 예외처리 - 계좌 선택 시 경고만 출력
  3383. //========================================================================================
  3384. function fAactCheck()
  3385. {
  3386. var crrAcntCd = model.getValue("/root/main/unsl_one/acntcd");
  3387. var crrDrCrFlag = model.getValue("/root/main/unsl_one/drcrflag");
  3388. var bTransAcntCdYN = false;
  3389. if(crrDrCrFlag == "C")
  3390. {
  3391. for(var j=0; j<arrTransAcntCd.length; j++)
  3392. {
  3393. if(arrTransAcntCd[j] == crrAcntCd) bTransAcntCdYN = true;
  3394. }
  3395. }
  3396. var bExist = false;
  3397. if(bTransAcntCdYN == true)
  3398. {
  3399. for(var i=1; i<grd_unsl.rows; i++)
  3400. {
  3401. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  3402. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  3403. if(sDrCrFlag == "C")
  3404. {
  3405. for(var j=0; j<arrTransAcntCd.length; j++)
  3406. {
  3407. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  3408. }
  3409. }
  3410. if(bExist)
  3411. {
  3412. if(grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")) != model.getValue("/root/main/unsl_one/notefactcd1") && grd_unsl.row != i)
  3413. {
  3414. messageBox("하나의 전표에는 하나의 출금계좌만 설정할수 있습니다.\n연번[" + grd_unsl.valueMatrix(i, grd_unsl.colRef("unslseqno")) + "]와 지출계좌가 다릅니다." ,"I000");
  3415. // model.setValue("/root/main/unsl_one/notefactcd1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")));
  3416. // model.setValue("/root/main/unsl_one/notefactspec1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactspec1")));
  3417. // ipt_notecd1.refresh();
  3418. // ipt_notecdnm1.refresh();
  3419. return false;
  3420. }
  3421. else
  3422. {
  3423. bExist = false;
  3424. }
  3425. }
  3426. }
  3427. }
  3428. return true;
  3429. }
  3430. //========================================================================================
  3431. // 출금계좌 일치 예외처리
  3432. //========================================================================================
  3433. function fAactException()
  3434. {
  3435. var vFirstAactacntflag = false;
  3436. var vFirstAactcd = "";
  3437. var bExist = false;
  3438. for(i = grd_unsl.fixedRows ; i <= grd_unsl.rows ; i++)
  3439. {
  3440. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  3441. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  3442. var sAactcd = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1"))
  3443. if(sDrCrFlag == "C")
  3444. {
  3445. for(var j=0; j<arrTransAcntCd.length; j++)
  3446. {
  3447. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  3448. }
  3449. }
  3450. if(bExist == true)
  3451. {
  3452. if(vFirstAactacntflag == false)
  3453. {
  3454. vFirstAactcd = sAactcd;
  3455. vFirstAactacntflag = true;
  3456. }
  3457. else if(vFirstAactcd != sAactcd)
  3458. {
  3459. messageBox("대변의 출금계좌는 두개 이상 존재할 수 없습니다.\n출금계좌를 하나로 일치시킨 후 출력하시기 바랍니다." ,"I000");
  3460. return false;
  3461. }
  3462. bExist = false;
  3463. }
  3464. }
  3465. return true;
  3466. }
  3467. //========================================================================================
  3468. // 현금성 등가물 증빙 예외
  3469. //========================================================================================
  3470. function fCashAcntProfException()
  3471. {
  3472. for(var i = 0 ; i < arrCashAcntCd.length ; i++)
  3473. {
  3474. if(arrCashAcntCd[i] == ipt_acntcd.value && model.getValue("/root/main/unsl_one/profflag") == "6")
  3475. {
  3476. messageBox("현금성등가물의 증빙은 항상 기타입니다." ,"I000");
  3477. return false;
  3478. }
  3479. }
  3480. return true;
  3481. }
  3482. //========================================================================================
  3483. // 기재사항 예외 처리
  3484. //========================================================================================
  3485. function fAcntKijeCheck()
  3486. {
  3487. model.removeNodeset("/root/hidden/kijeomitlist");
  3488. model.setValue("/root/send/data6/instcd", getUserInfo("dutplceinstcd"));
  3489. model.setValue("/root/send/data6/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  3490. model.setValue("/root/send/data6/unslno", model.getValue("/root/hidden/condition/unslno"));
  3491. submit("TRRAD00152")
  3492. var vExistsflag = false;
  3493. for(var i = 1 ; i <= model.instance1.selectNodes("/root/hidden/kijeomitlist").length ; i++)
  3494. {
  3495. messageBox("[" + model.getValue("/root/hidden/kijeomitlist[" + i + "]/unslseqno") + "] 번 기재사항이 정확히 입력되지 않았습니다.", "I000");
  3496. vExistsflag = true;
  3497. }
  3498. if(vExistsflag == true)
  3499. {
  3500. return false;
  3501. }
  3502. else
  3503. {
  3504. return true;
  3505. }
  3506. }
  3507. //========================================================================================
  3508. // 프로젝트ID 세팅
  3509. //========================================================================================
  3510. function fProjectIDSetCombo()
  3511. {
  3512. var SelectedIndex = 0;
  3513. var StartIndex = 1;
  3514. for(var i = 1 ; i <= instance1.selectNodes("/root/main/list/bugtorgnzlist").length ; i++)
  3515. {
  3516. if(model.getValue("/root/main/list/bugtorgnzlist/bugtearncostflag") == "3")
  3517. {
  3518. if(model.getValue("/root/main/unsl_one/drcrflag") == "D" && model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/bugtflag") == "2") // 수입 및 지출 계정은 차변에 지출 예산이 있어야 기재 가능하다.
  3519. {
  3520. SelectedIndex = i;
  3521. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
  3522. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
  3523. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
  3524. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
  3525. StartIndex++;
  3526. }
  3527. else if(model.getValue("/root/main/unsl_one/drcrflag") == "C" && model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/bugtflag") == "1") // 수입 및 지출 계정은 대변에 수익 예산이 있어야 기재 가능하다.
  3528. {
  3529. SelectedIndex = i;
  3530. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
  3531. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
  3532. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
  3533. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
  3534. StartIndex++ ;
  3535. }
  3536. }
  3537. else // 수익 및 비용 예산 계정 외에는 오직 한쪽(수익 이든 비용 이든)으로만 예산이 주어지고 (안주어지면 계정통제) 수익 비용 계정은 반대계정 설정시 프로젝트를 맞추어주어야 한다. 수정 20080924 최형진
  3538. {
  3539. SelectedIndex = i;
  3540. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
  3541. model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
  3542. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
  3543. model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
  3544. StartIndex++;
  3545. }
  3546. }
  3547. if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "1" && SelectedIndex == 0)
  3548. {
  3549. //messageBox("예산이 없습니다.", "I000");
  3550. // model.setValue("/root/main/unsl_one/acntcd", "");
  3551. // model.setValue("/root/main/unsl_one/acntnm", "");
  3552. //
  3553. // fAcntClear();
  3554. // return;
  3555. //alert(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd"));
  3556. //alert(model.getValue("/root/hidden/acntcdinfo/acntflag"));
  3557. //if(model.getValue("/root/hidden/acntcdinfo/") == "C")
  3558. //alert(SelectedIndex)
  3559. //alert(model.getValue("/root/main/list/bugtorgnzlist[" + SelectedIndex + "]/bugtflag"))
  3560. // ipt_projectid.refresh();
  3561. // ipt_projectnm.refresh();
  3562. }
  3563. // model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/main/list/bugtorgnzlist/projectid"));
  3564. // model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/main/list/bugtorgnzlist/projectnm"));
  3565. // model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/list/bugtorgnzlist/projectid"));
  3566. // model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/list/bugtorgnzlist/projectnm"));
  3567. }
  3568. //========================================================================================
  3569. // 전표 상태 표시
  3570. //========================================================================================
  3571. function fSlipStatus()
  3572. {
  3573. var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
  3574. var sanctno = model.getValue("/root/main/unsl[1]/sanctno");
  3575. if(sanctno != "")
  3576. {
  3577. ipt_slipstatus.value = "승 인";
  3578. ipt_slipstatus.attribute("color") = "#0000ff";
  3579. }
  3580. else if(sanctyn == "Y")
  3581. {
  3582. ipt_slipstatus.value = "미 승 인";
  3583. ipt_slipstatus.attribute("color") = "#008000";
  3584. }
  3585. else
  3586. {
  3587. ipt_slipstatus.value = "미 출 력";
  3588. ipt_slipstatus.attribute("color") = "#ff0000";
  3589. }
  3590. ipt_slipstatus.refresh();
  3591. if(model.getValue(cmb_slipflag.attribute("ref")) == "9")
  3592. {
  3593. cmb_slipflag.disabled = true;
  3594. }
  3595. else
  3596. {
  3597. cmb_slipflag.disabled = false;
  3598. }
  3599. }
  3600. //========================================================================================
  3601. // 기표부서 변경 예외 처리 기능
  3602. //========================================================================================
  3603. function fUpdateSlipDeptCD()
  3604. {
  3605. if(grd_unsl.rows > grd_unsl.fixedRows)
  3606. {
  3607. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  3608. for(var i = 1 ; i <= vLength ; i++)
  3609. {
  3610. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  3611. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipdeptnm", model.getValue("/root/hidden/condition/slipdeptnm"));
  3612. }
  3613. grd_unsl.refresh();
  3614. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3615. {
  3616. grd_unsl.addStatus(i, "update");
  3617. }
  3618. }
  3619. }
  3620. function fetcprofcntcheck()
  3621. {
  3622. if(rdo_profflag6.value == "6")
  3623. {
  3624. ipt_profflag6.visible = true;
  3625. cap_etcprofcnt.visible = true;
  3626. }
  3627. else
  3628. {
  3629. ipt_profflag6.visible = false;
  3630. cap_etcprofcnt.visible = false;
  3631. }
  3632. }
  3633. ]]>
  3634. </script>
  3635. </xhtml:head>
  3636. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  3637. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  3638. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">전표발의등록</caption>
  3639. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  3640. </group>
  3641. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:764px; ">
  3642. <input id="ipt_acntcd" ref="/root/main/unsl_one/acntcd" class="input_essential" navindex="-1" style="left:515px; top:156px; width:80px; height:19px; ">
  3643. <script type="javascript" ev:event="onkeypress">
  3644. <![CDATA[
  3645. if (event.keyCode == "13")
  3646. {
  3647. model.setFocus("ipt_custnm");
  3648. }
  3649. ]]>
  3650. </script>
  3651. <script type="javascript" ev:event="xforms-value-changed">
  3652. <![CDATA[
  3653. model.removeNodeset("/root/hidden/projectidlist"); // 예외적으로 처리해야하기 때문에 함수 안에 넣을 수 없다.
  3654. fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  3655. fAcntSelect();
  3656. //fCheckServAcnt();
  3657. ipt_amt.dispatch("xforms-value-changed");
  3658. ]]>
  3659. </script>
  3660. </input>
  3661. <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; ">
  3662. <choices>
  3663. <itemset nodeset="/root/init/code/code/codelist[cdgbn=&quot;cashacntcd&quot;]">
  3664. <label ref="cdnm"/>
  3665. <value ref="cdid"/>
  3666. </itemset>
  3667. </choices>
  3668. <script type="javascript" ev:event="xforms-value-changed">
  3669. <![CDATA[
  3670. var cur_row = grd_unsl.row;
  3671. if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "") {
  3672. fAcntInfoSelect();
  3673. model.setValue("/root/main/unsl_one/acntnm", cmb_acntcd.label);
  3674. model.setValue("/root/main/unsl_one/fundscd", model.getValue("/root/main/unsl["+ cur_row +"]/fundscd"));
  3675. model.refresh();
  3676. } else {
  3677. model.resetInstanceNode("/root/hidden/acntcdinfo");
  3678. model.refresh();
  3679. fAcntInfoSelect();
  3680. }
  3681. if (switch8.selectedIndex == 0)
  3682. {
  3683. model.setFocus("ipt_custnm");
  3684. } else
  3685. {
  3686. model.setFocus("ipt_custnm2");
  3687. }
  3688. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
  3689. model.setValue("/root/main/unsl_one/cdbojo1", "");
  3690. submit("TRRAD01701");
  3691. ]]>
  3692. </script>
  3693. </select1>
  3694. <group id="grp_sea" style="left:0px; top:0px; width:1195px; height:90px; vertical-align:top; ">
  3695. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:88px; background-color:#fffbf2; border-color:#ffd799; "/>
  3696. <caption id="caption7" class="search_name" style="left:11px; top:10px; width:101px; height:17px; font-family:돋움; ">전표유형 :</caption>
  3697. <line id="line5" class="line_4" style="x1:1097px; y1:9px; x2:1097px; y2:78px; border-color:#ffe4bb; border-left-style:solid; "/>
  3698. <caption id="caption19" class="search_name" style="left:415px; top:10px; width:101px; height:17px; ">작성일자 :</caption>
  3699. <caption id="caption22" class="search_name" style="left:745px; top:10px; width:101px; height:17px; ">전표구분 :</caption>
  3700. <caption id="caption16" class="search_name" style="left:11px; top:34px; width:99px; height:17px; font-family:돋움; ">전표적요 :</caption>
  3701. <select1 id="rdo_slipkind" ref="/root/hidden/condition/slipkind" class="radio_search" overflow="visible" appearance="full" cellspacing="10" cols="5" style="left:114px; top:10px; width:296px; height:20px; vertical-align:middle; border-style:none; ">
  3702. <choices>
  3703. <itemset>
  3704. <label/>
  3705. <value/>
  3706. </itemset>
  3707. </choices>
  3708. <script type="javascript" ev:event="xforms-value-changed">
  3709. <![CDATA[
  3710. fClearClick();
  3711. ]]>
  3712. </script>
  3713. </select1>
  3714. <input id="ipt_unsldd" ref="/root/hidden/condition/unsldd" class="input_s_essential" inputtype="date" style="left:506px; top:9px; width:120px; height:19px; ">
  3715. <script type="javascript" ev:event="xforms-value-changed">
  3716. <![CDATA[
  3717. fClearClick();
  3718. ]]>
  3719. </script>
  3720. </input>
  3721. <input id="ipt_unslno" ref="/root/hidden/condition/unslno" class="input_s_essential" maxlength="4" style="left:643px; top:9px; width:48px; height:19px; ">
  3722. <script type="javascript" ev:event="xforms-value-changed">
  3723. <![CDATA[
  3724. var vUnslno = model.getValue("/root/hidden/condition/unslno");
  3725. if (!vUnslno.isNumber())
  3726. {
  3727. messageBox("번호(숫자)를 " ,"C001");
  3728. return;
  3729. }
  3730. setInputNodeCurText();
  3731. var vUnslno = model.getValue("/root/hidden/condition/unslno").getLeftPad(4,"0");
  3732. model.setValue("/root/hidden/condition/unslno",vUnslno);
  3733. model.refresh();
  3734. btn_search.dispatch("DOMActivate");
  3735. ]]>
  3736. </script>
  3737. <script type="javascript" ev:event="onkeypress">
  3738. <![CDATA[
  3739. if (event.keyCode == "13") {
  3740. ipt_unslno.dispatch("xforms-value-changed");
  3741. }
  3742. ]]>
  3743. </script>
  3744. </input>
  3745. <select1 id="cmb_slipflag" ref="/root/hidden/condition/slipflag" class="combo_default" appearance="minimal" style="left:860px; top:9px; width:187px; height:19px; ">
  3746. <choices>
  3747. <itemset nodeset="/root/init/R0008list/R0008">
  3748. <label ref="cdnm"/>
  3749. <value ref="cdid"/>
  3750. </itemset>
  3751. </choices>
  3752. <script type="javascript" ev:event="xforms-value-changed">
  3753. <![CDATA[
  3754. if(model.getValue(cmb_slipflag.attribute("ref")) == "A")
  3755. {
  3756. messageBox("전년도 예산을 사용합니다.\n전년도 예산을 확인 후 작업하세요.", "I000");
  3757. }
  3758. else if(model.getValue(cmb_slipflag.attribute("ref")) == "B")
  3759. {
  3760. if(getUserInfo("dutplcecd") != acntdept)
  3761. {
  3762. messageBox("재무팀 권한으로만 결산전표를 생성할 수 있습니다.", "I000");
  3763. model.setValue(cmb_slipflag.attribute("ref"), "1");
  3764. cmb_slipflag.refresh();
  3765. return false;
  3766. }
  3767. else
  3768. {
  3769. messageBox("예산과 연동되지 않습니다.", "I000");
  3770. }
  3771. }
  3772. else if(model.getValue(cmb_slipflag.attribute("ref")) == "9")
  3773. {
  3774. messageBox("반제전표는 반제 자동분개에서 작성하세요", "I000");
  3775. model.setValue(cmb_slipflag.attribute("ref"), "1");
  3776. cmb_slipflag.refresh();
  3777. return false;
  3778. }
  3779. if(grd_unsl.rows > grd_unsl.fixedRows)
  3780. {
  3781. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  3782. for(var i = 1 ; i <= vLength ; i++)
  3783. {
  3784. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipflag", model.getValue("/root/hidden/condition/slipflag"));
  3785. }
  3786. grd_unsl.refresh();
  3787. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3788. {
  3789. grd_unsl.addStatus(i, "update");
  3790. }
  3791. }
  3792. ]]>
  3793. </script>
  3794. </select1>
  3795. <input id="ipt_projectid" ref="/root/hidden/condition/projectid" class="input_search" visibility="visible" style="left:114px; top:59px; width:81px; height:19px; ">
  3796. <script type="javascript" ev:event="xforms-value-changed">
  3797. <![CDATA[
  3798. fValidationCheck("23", "projectid,projectnm", "", "", "", "", "code");
  3799. fSetProjectValue();
  3800. ]]>
  3801. </script>
  3802. </input>
  3803. <input id="ipt_projectnm" ref="/root/hidden/condition/projectnm" class="input_search" visibility="visible" style="left:225px; top:59px; width:177px; height:19px; ">
  3804. <script type="javascript" ev:event="xforms-value-changed">
  3805. <![CDATA[
  3806. fValidationCheck("23", "projectid,projectnm", "", "", "", "", "name");
  3807. fSetProjectValue();
  3808. ]]>
  3809. </script>
  3810. </input>
  3811. <button id="btn_projectid" class="icon_search" navindex="-1" visibility="visible" style="left:202px; top:59px; width:16px; height:16px; ">
  3812. <caption/>
  3813. <script type="javascript" ev:event="DOMActivate">
  3814. <![CDATA[
  3815. misfOpenPopUpList("23", ipt_projectid, "", "projectid,projectnm");
  3816. fSetProjectValue();
  3817. model.refresh();
  3818. ]]>
  3819. </script>
  3820. </button>
  3821. <button id="btn_search" class="btn1_letter2" style="left:1119px; top:34px; width:56px; height:22px; text-align:left; ">
  3822. <caption>조회</caption>
  3823. <script type="javascript" ev:event="DOMActivate">
  3824. <![CDATA[
  3825. openLoadingBar("전표");
  3826. fQueryClick();
  3827. //fCheckServAcnt();
  3828. // fSumExpantAmt();
  3829. fSlipStatus();
  3830. closeLoadingBar();
  3831. ]]>
  3832. </script>
  3833. </button>
  3834. <button id="btn_pre" class="icon_pre" navindex="-1" style="left:629px; top:11px; width:13px; height:15px; ">
  3835. <caption/>
  3836. <script type="javascript" ev:event="DOMActivate">
  3837. <![CDATA[
  3838. var vUnslno = model.getValue("/root/hidden/condition/unslno");
  3839. var vNum = parseInt(vUnslno, 10);
  3840. if (vNum != 1) {
  3841. vNum--;
  3842. } else {
  3843. return;
  3844. }
  3845. model.setValue("/root/hidden/condition/unslno", vNum.toString().getLeftPad(4,"0"));
  3846. model.refresh();
  3847. btn_search.dispatch("DOMActivate");
  3848. ]]>
  3849. </script>
  3850. </button>
  3851. <button id="btn_next" class="icon_next" navindex="-1" style="left:692px; top:11px; width:13px; height:15px; ">
  3852. <caption/>
  3853. <script type="javascript" ev:event="DOMActivate">
  3854. <![CDATA[
  3855. var vUnslno = model.getValue("/root/hidden/condition/unslno");
  3856. var vNum = parseInt(vUnslno, 10);
  3857. vNum++;
  3858. model.setValue("/root/hidden/condition/unslno", vNum.toString().getLeftPad(4,"0"));
  3859. model.refresh();
  3860. btn_search.dispatch("DOMActivate");
  3861. ]]>
  3862. </script>
  3863. </button>
  3864. <output id="output1" ref="/root/hidden/condition/instcd" visibility="hidden" style="left:1160px; top:10px; width:30px; height:19px; "/>
  3865. <input id="ipt_defrayreqdd" ref="/root/hidden/condition/defrayreqdd" class="input_s_essential" inputtype="date" style="left:860px; top:36px; width:108px; height:19px; ">
  3866. <script type="javascript" ev:event="xforms-value-changed">
  3867. <![CDATA[
  3868. if(grd_unsl.rows > grd_unsl.fixedRows)
  3869. {
  3870. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  3871. for(var i = 1 ; i <= vLength ; i++)
  3872. {
  3873. model.setValue(grd_unsl.nodeset + "[" + i + "]/defrayreqdd", model.getValue("/root/hidden/condition/defrayreqdd"));
  3874. }
  3875. grd_unsl.refresh();
  3876. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3877. {
  3878. grd_unsl.addStatus(i, "update");
  3879. }
  3880. }
  3881. ]]>
  3882. </script>
  3883. </input>
  3884. <caption id="cpt_defrayreqdd" class="search_name" style="left:745px; top:35px; width:112px; height:17px; ">기표일자 :</caption>
  3885. <caption id="caption47" class="search_name" style="left:11px; top:58px; width:99px; height:17px; font-family:돋움; ">Project ID :</caption>
  3886. <input id="ipt_slipcmt" ref="/root/hidden/condition/slipcmt" class="input_s_essential" imemode="hangul" style="left:114px; top:35px; width:596px; height:19px; ">
  3887. <script type="javascript" ev:event="xforms-value-changed">
  3888. <![CDATA[
  3889. //<bind id="bind1" ref="/root/hidden/condition/slipcmt" readonly="(/root/hidden/drsum) + (/root/hidden/crsum) != 0"/> 전표적요 수정할 수 있도록 수정 최형진 20081002
  3890. if(grd_unsl.rows > grd_unsl.fixedRows)
  3891. {
  3892. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  3893. for(var i = 1 ; i <= vLength ; i++)
  3894. {
  3895. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipcmt", model.getValue("/root/hidden/condition/slipcmt"));
  3896. }
  3897. grd_unsl.refresh();
  3898. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3899. {
  3900. grd_unsl.addStatus(i, "update");
  3901. }
  3902. }
  3903. else
  3904. {
  3905. model.setValue("/root/main/unsl_one/etcnotefact", model.getValue("/root/hidden/condition/slipcmt"));
  3906. ipt_etcnotefact.refresh();
  3907. }
  3908. ]]>
  3909. </script>
  3910. <script type="javascript" ev:event="onkeypress">
  3911. <![CDATA[
  3912. if(event.keyCode == 13)
  3913. {
  3914. model.setFocus("ipt_acntnm");
  3915. }
  3916. ]]>
  3917. </script>
  3918. </input>
  3919. <button id="btn_proj" class="btn1_letter2" visibility="hidden" style="left:410px; top:58px; width:56px; height:22px; text-align:left; ">
  3920. <caption>관리</caption>
  3921. <script type="javascript" ev:event="DOMActivate">
  3922. <![CDATA[
  3923. modal("SMRAC00800");
  3924. ]]>
  3925. </script>
  3926. </button>
  3927. <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; "/>
  3928. <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; "/>
  3929. <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; "/>
  3930. <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; "/>
  3931. <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; "/>
  3932. <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; "/>
  3933. <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; "/>
  3934. <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>
  3935. <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>
  3936. <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>
  3937. <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>
  3938. <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>
  3939. <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>
  3940. <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>
  3941. <button id="btn_transslip" class="btn4_letter6" visibility="hidden" style="left:506px; top:58px; width:104px; height:22px; ">
  3942. <caption>지출대체전표</caption>
  3943. <script type="javascript" ev:event="DOMActivate">
  3944. <![CDATA[
  3945. if (!fSlipAprvChk()) {
  3946. return;
  3947. }
  3948. if (model.getValue(rdo_slipkind.attribute("ref")) != "3")
  3949. {
  3950. messageBox("출금전표만 지출대체전표로 전환할 수 있습니다.","I000");
  3951. return;
  3952. }
  3953. var updtdata = getGridUpdateData(grd_unsl);
  3954. if (updtdata != "")
  3955. {
  3956. messageBox("변경된 데이터 저장 후 작업하세요.","I000");
  3957. return;
  3958. }
  3959. var vRowCount = 0;
  3960. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  3961. {
  3962. if(grd_unsl.rowStatus(i) == 0)
  3963. {
  3964. vRowCount = 1;
  3965. continue;
  3966. }
  3967. }
  3968. model.setValue("/root/hidden/condition/instcd", model.getValue(cmb_instcd.attribute("ref")));
  3969. if(vRowCount == 0) return;
  3970. submit("TXRAD00109");
  3971. fQueryClick();
  3972. ]]>
  3973. </script>
  3974. </button>
  3975. <button id="button2" class="btn4_letter4" disabled="false" visibility="hidden" style="left:630px; top:58px; width:80px; height:22px; ">
  3976. <caption>DTI 홈</caption>
  3977. <script type="javascript" ev:event="DOMActivate">
  3978. <![CDATA[
  3979. radfGetDTIPassword();
  3980. ]]>
  3981. </script>
  3982. </button>
  3983. <select1 id="rdo_drcrcmt" ref="/root/hidden/condition/drcrcmt" disabled="false" navindex="-1" visibility="hidden" overflow="visible" appearance="full" cellspacing="75" cols="2" style="left:860px; top:65px; width:276px; height:17px; border-style:none; ">
  3984. <choices>
  3985. <item>
  3986. <label>차변</label>
  3987. <value>D</value>
  3988. </item>
  3989. <item>
  3990. <label>대변</label>
  3991. <value>C</value>
  3992. </item>
  3993. </choices>
  3994. </select1>
  3995. <caption id="cap_drcrcmt" class="search_name" visibility="hidden" style="left:745px; top:65px; width:112px; height:17px; ">적요차대구분 :</caption>
  3996. <caption id="cap_acountingflag" class="search_name" visibility="hidden" style="left:745px; top:65px; width:112px; height:17px; ">회계 구분 :</caption>
  3997. <select1 id="rdo_acountingflag" ref="/root/hidden/condition/acountingflag" disabled="false" navindex="-1" visibility="hidden" overflow="visible" appearance="full" cellspacing="75" cols="2" style="left:860px; top:65px; width:276px; height:17px; border-style:none; ">
  3998. <choices>
  3999. <item>
  4000. <label>등록금회계</label>
  4001. <value>1</value>
  4002. </item>
  4003. <item>
  4004. <label>기금회계</label>
  4005. <value>2</value>
  4006. </item>
  4007. </choices>
  4008. <script type="javascript" ev:event="xforms-value-changed">
  4009. <![CDATA[
  4010. if(grd_unsl.rows > grd_unsl.fixedRows)
  4011. {
  4012. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  4013. for(var i = 1 ; i <= vLength ; i++)
  4014. {
  4015. model.setValue(grd_unsl.nodeset + "[" + i + "]/acountingflag", model.getValue("/root/hidden/condition/acountingflag"));
  4016. }
  4017. grd_unsl.refresh();
  4018. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  4019. {
  4020. grd_unsl.addStatus(i, "update");
  4021. }
  4022. }
  4023. ]]>
  4024. </script>
  4025. </select1>
  4026. <input id="input1" ref="/root/hidden/condition/ymdaction" class="input_s_essential" inputtype="date" style="left:860px; top:61px; width:108px; height:19px; ">
  4027. <script type="javascript" ev:event="xforms-value-changed">
  4028. <![CDATA[
  4029. if(grd_unsl.rows > grd_unsl.fixedRows)
  4030. {
  4031. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  4032. for(var i = 1 ; i <= vLength ; i++)
  4033. {
  4034. model.setValue(grd_unsl.nodeset + "[" + i + "]/ymdaction", model.getValue("/root/hidden/condition/ymdaction"));
  4035. }
  4036. grd_unsl.refresh();
  4037. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  4038. {
  4039. grd_unsl.addStatus(i, "update");
  4040. }
  4041. }
  4042. ]]>
  4043. </script>
  4044. </input>
  4045. <caption id="caption67" class="search_name" style="left:745px; top:60px; width:112px; height:17px; ">행위일자 :</caption>
  4046. <caption id="caption69" class="search_name" style="left:505px; top:61px; width:112px; height:17px; ">예산합의일 :</caption>
  4047. <input id="input2" ref="/root/hidden/condition/ymdpum" class="input_s_essential" inputtype="date" style="left:620px; top:62px; width:108px; height:19px; ">
  4048. <script type="javascript" ev:event="xforms-value-changed">
  4049. <![CDATA[
  4050. if(grd_unsl.rows > grd_unsl.fixedRows)
  4051. {
  4052. var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
  4053. for(var i = 1 ; i <= vLength ; i++)
  4054. {
  4055. model.setValue(grd_unsl.nodeset + "[" + i + "]/ymdpum", model.getValue("/root/hidden/condition/ymdpum"));
  4056. }
  4057. grd_unsl.refresh();
  4058. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  4059. {
  4060. grd_unsl.addStatus(i, "update");
  4061. }
  4062. }
  4063. ]]>
  4064. </script>
  4065. </input>
  4066. </group>
  4067. <line id="line13" class="line_2" style="x1:0px; y1:152px; x2:1195px; y2:152px; "/>
  4068. <caption id="caption2" class="cell_1" style="left:0px; top:154px; width:110px; height:23px; ">차대구분</caption>
  4069. <caption id="caption3" class="cell_1" style="left:403px; top:129px; width:110px; height:23px; ">귀속부서</caption>
  4070. <caption id="caption8" class="cell_1" style="left:403px; top:259px; width:110px; height:23px; ">적요</caption>
  4071. <caption id="caption18" class="cell_1" style="left:0px; top:129px; width:110px; height:23px; font-family:돋움체; ">기관구분</caption>
  4072. <caption id="caption1" class="tit_2" style="left:5px; top:104px; width:131px; height:14px; ">전표정보</caption>
  4073. <caption id="caption23" class="cell_1" style="left:806px; top:234px; width:110px; height:23px; ">발의자</caption>
  4074. <caption id="caption24" class="cell_1" style="left:403px; top:154px; width:110px; height:23px; ">계정과목</caption>
  4075. <caption id="caption26" class="cell_1" style="left:0px; top:184px; width:110px; height:23px; ">상대처구분</caption>
  4076. <caption id="cpt_bugtamt" class="cell_1" visibility="visible" style="left:915px; top:155px; width:104px; height:23px; ">예산가용액</caption>
  4077. <caption id="caption10" class="cell_1" style="left:834px; top:735px; width:120px; height:23px; text-align:center; vertical-align:middle; ">금액합계</caption>
  4078. <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; "/>
  4079. <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; "/>
  4080. <caption id="caption12" class="cell_1" style="left:403px; top:370px; width:110px; height:23px; ">승인정보</caption>
  4081. <input id="ipt_slipaprvinfo" ref="/root/main/unsl_one/sanctno" class="input_default" disabled="true" navindex="-1" style="left:515px; top:372px; width:175px; height:19px; font-weight:bold; text-align:center; "/>
  4082. <caption id="caption15" class="cell_1" visibility="hidden" style="left:695px; top:370px; width:110px; height:23px; ">승인일자</caption>
  4083. <input id="ipt_slipaprvdd" class="input_default" visibility="hidden" inputtype="date" style="left:807px; top:372px; width:115px; height:19px; "/>
  4084. <line id="line9" class="line_3" style="x1:0px; y1:369px; x2:1195px; y2:369px; "/>
  4085. <line id="line10" class="line_2" style="x1:0px; y1:282px; x2:1195px; y2:282px; "/>
  4086. <select1 id="cmb_instcd" ref="/root/main/unsl_one/instcd" class="combo_essential" disabled="true" navindex="-1" appearance="minimal" style="left:112px; top:131px; width:288px; height:19px; ">
  4087. <choices>
  4088. <itemset nodeset="/root/init/Z0007list/Z0007">
  4089. <label ref="cdnm"/>
  4090. <value ref="cdid"/>
  4091. </itemset>
  4092. </choices>
  4093. </select1>
  4094. <input id="ipt_costcntrdeptcd" ref="/root/main/unsl_one/costcntrdeptcd" class="input_essential" navindex="-1" maxlength="11" style="left:515px; top:131px; width:80px; height:19px; ">
  4095. <script type="javascript" ev:event="xforms-value-changed">
  4096. <![CDATA[
  4097. if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
  4098. {
  4099. racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
  4100. }
  4101. else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
  4102. {
  4103. model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
  4104. fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
  4105. }
  4106. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
  4107. || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
  4108. {
  4109. messageBox("권한이 없습니다.", "I000");
  4110. model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  4111. ipt_costcntrdeptcd.refresh();
  4112. ipt_costcntrdeptcd.dispatch("xforms-value-changed");
  4113. return false;
  4114. }
  4115. model.setFocus("ipt_costcntrdeptnm");
  4116. if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
  4117. {
  4118. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4119. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4120. model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4121. model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4122. model.setValue("/root/hidden/instcardseqnoinfo/instcardseqno", ""); // 사용중인 법인카드 번호 삭제
  4123. model.refresh();
  4124. }
  4125. fRemoveAcntValue();
  4126. model.refresh();
  4127. ]]>
  4128. </script>
  4129. <script type="javascript" ev:event="onkeypress">
  4130. <![CDATA[
  4131. if(event.keyCode == 13)
  4132. {
  4133. model.setFocus("ipt_acntnm");
  4134. }
  4135. ]]>
  4136. </script>
  4137. </input>
  4138. <input id="ipt_costcntrdeptnm" ref="/root/main/unsl_one/costcntrdeptnm" class="input_essential" style="left:619px; top:131px; width:184px; height:19px; ">
  4139. <script type="javascript" ev:event="xforms-value-changed">
  4140. <![CDATA[
  4141. if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
  4142. {
  4143. racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
  4144. }
  4145. else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
  4146. {
  4147. model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
  4148. fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
  4149. }
  4150. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
  4151. || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
  4152. {
  4153. messageBox("권한이 없습니다.", "I000");
  4154. model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  4155. ipt_costcntrdeptcd.refresh();
  4156. ipt_costcntrdeptcd.dispatch("xforms-value-changed");
  4157. return false;
  4158. }
  4159. if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
  4160. {
  4161. model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4162. model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4163. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4164. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4165. model.refresh();
  4166. }
  4167. fRemoveAcntValue();
  4168. ]]>
  4169. </script>
  4170. <script type="javascript" ev:event="onkeypress">
  4171. <![CDATA[
  4172. if(event.keyCode == 13)
  4173. {
  4174. model.setFocus("ipt_acntnm");
  4175. }
  4176. ]]>
  4177. </script>
  4178. </input>
  4179. <input id="ipt_unslwrit" ref="/root/hidden/userinfo/unslwrit" class="input_essential" disabled="true" navindex="-1" style="left:918px; top:236px; width:102px; height:19px; "/>
  4180. <input id="ipt_unslwritnm" ref="/root/hidden/userinfo/usernm" class="input_essential" disabled="true" navindex="-1" style="left:1023px; top:236px; width:170px; height:19px; "/>
  4181. <select1 id="rdo_drcrflag" ref="/root/main/unsl_one/drcrflag" disabled="true" navindex="-1" overflow="visible" appearance="full" cellspacing="75" cols="2" style="left:112px; top:157px; width:276px; height:17px; border-style:none; ">
  4182. <choices>
  4183. <item>
  4184. <label>차변</label>
  4185. <value>D</value>
  4186. </item>
  4187. <item>
  4188. <label>대변</label>
  4189. <value>C</value>
  4190. </item>
  4191. </choices>
  4192. <script type="javascript" ev:event="xforms-value-changed">
  4193. <![CDATA[
  4194. var drcrflag = model.getValue("/root/main/unsl_one/drcrflag");
  4195. //fRowClearClick();
  4196. model.setValue("/root/main/unsl_one/drcrflag", drcrflag);
  4197. fAcntSelect(); //-> 대체전표 작성시 차변 대변 전환 시 정보 유지되도록 수정 최형진 20081001
  4198. model.refresh();
  4199. ]]>
  4200. </script>
  4201. </select1>
  4202. <input id="ipt_acntnm" ref="/root/main/unsl_one/acntnm" class="input_essential" imemode="hangul" style="left:619px; top:156px; width:184px; height:19px; ">
  4203. <script type="javascript" ev:event="onkeypress">
  4204. <![CDATA[
  4205. if (event.keyCode == "13")
  4206. {
  4207. if (switch8.selectedIndex == 0)
  4208. {
  4209. model.setFocus("ipt_custnm");
  4210. }
  4211. else
  4212. {
  4213. model.setFocus("ipt_custnm2");
  4214. }
  4215. }
  4216. ]]>
  4217. </script>
  4218. <script type="javascript" ev:event="xforms-value-changed">
  4219. <![CDATA[
  4220. model.removeNodeset("/root/hidden/projectidlist");
  4221. fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  4222. fAcntSelect();
  4223. //fCheckServAcnt();
  4224. ipt_amt.dispatch("xforms-value-changed");
  4225. ]]>
  4226. </script>
  4227. </input>
  4228. <button id="btn_costcntrdeptcd" class="icon_search" navindex="-1" style="left:599px; top:133px; width:16px; height:16px; ">
  4229. <caption/>
  4230. <script type="javascript" ev:event="DOMActivate">
  4231. <![CDATA[
  4232. if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
  4233. {
  4234. fOpenPopupDeptHelp(ipt_costcntrdeptcd, "costcntrdeptcd,costcntrdeptnm"); //전체부서
  4235. }
  4236. else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
  4237. {
  4238. model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
  4239. fOpenPopupHelp("47", ipt_costcntrdeptcd, "costcntrdeptcd,costcntrdeptnm", "", "ipt_acntyy", "acntyy"); //예산편성부서
  4240. }
  4241. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
  4242. || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
  4243. {
  4244. messageBox("권한이 없습니다.", "I000");
  4245. model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  4246. ipt_costcntrdeptcd.refresh();
  4247. ipt_costcntrdeptcd.dispatch("xforms-value-changed");
  4248. return false;
  4249. }
  4250. model.refresh();
  4251. if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
  4252. {
  4253. model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4254. model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4255. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  4256. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  4257. model.refresh();
  4258. }
  4259. fRemoveAcntValue();
  4260. ]]>
  4261. </script>
  4262. </button>
  4263. <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:599px; top:158px; width:16px; height:16px; ">
  4264. <caption/>
  4265. <script type="javascript" ev:event="DOMActivate">
  4266. <![CDATA[
  4267. model.removeNodeset("/root/hidden/projectidlist");
  4268. fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  4269. fAcntSelect();
  4270. //fCheckServAcnt();
  4271. model.setValue("/root/main/unsl_one/cdbojo1", "");
  4272. model.setValue("/root/main/unsl_one/cdbojo1", "/root/main/unsl_one/acntcd");
  4273. submit("TRRAD01701");
  4274. ipt_amt.dispatch("xforms-value-changed");
  4275. ]]>
  4276. </script>
  4277. </button>
  4278. <input id="ipt_amt" ref="/root/main/unsl_one/amt" class="input_essential" imemode="alpha" format="(-)#,###" style="left:112px; top:261px; width:288px; height:19px; text-align:right; ">
  4279. <script type="javascript" ev:event="onkeypress">
  4280. <![CDATA[
  4281. if (event.keyCode == "13")
  4282. {
  4283. model.setFocus("ipt_etcnotefact");
  4284. }
  4285. ]]>
  4286. </script>
  4287. <script type="javascript" ev:event="xforms-value-changed">
  4288. <![CDATA[
  4289. // 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)
  4290. // {
  4291. var sABugtUseYn = model.getValue("/root/hidden/acntcdinfo/bugtuseyn");
  4292. var sABugtCntrYn = model.getValue("/root/hidden/acntcdinfo/bugtcntryn");
  4293. if(sABugtCntrYn == "Y" && sABugtUseYn == "Y" && ipt_bugtamt.visible == true && (model.getValue(cmb_slipflag.attribute("ref")) != "A" && model.getValue(cmb_slipflag.attribute("ref")) != "B"))
  4294. {
  4295. var iAppAmt = parseInt(model.getValue("/root/main/unsl_one/amt"), 10);
  4296. var iBugtAmt = parseInt(model.getValue("/root/main/unsl_one/bugtamt"), 10);
  4297. var iBugtFlag = model.getValue("/root/main/unsl_one/bugtflag");
  4298. var iDrCrFlag = model.getValue("/root/main/unsl_one/drcrflag");
  4299. var iAcntFlag = model.getValue("/root/hidden/acntcdinfo/acntflag");
  4300. var iBalflag = model.getValue("/root/hidden/acntcdinfo/balflag");
  4301. // alert("iAppAmt : " + iAppAmt + "\niBugtAmt : " + iBugtAmt + "\niBugtFlag : " + iBugtFlag + "\niDrCrFlag : " + iDrCrFlag + "\niAcntFlag : " + iAcntFlag + "\niBalflag : " + iBalflag);
  4302. if(iAcntFlag == '5' && iBugtFlag == '2' && iDrCrFlag == 'C')
  4303. {
  4304. iBugtFlag = '1';
  4305. iAppAmt = iAppAmt * (-1);
  4306. }
  4307. else if(iAcntFlag == '4' && iBugtFlag == '1' && iDrCrFlag == 'D')
  4308. {
  4309. iBugtFlag = '2';
  4310. iAppAmt = iAppAmt * (-1);
  4311. }
  4312. else if(iBalflag == iDrCrFlag)
  4313. {
  4314. // continue;
  4315. }
  4316. // alert("iAppAmt : " + iAppAmt +"\niBugtAmt : " + iBugtAmt);
  4317. if(iAppAmt > iBugtAmt)
  4318. {
  4319. messageBox("예산가용액을 초과", "E001");
  4320. model.setValue("/root/main/unsl_one/amt", 0);
  4321. model.refresh();
  4322. model.setFocus("ipt_amt");
  4323. return;
  4324. }
  4325. }
  4326. //fCheckServAcnt();
  4327. // }
  4328. ]]>
  4329. </script>
  4330. </input>
  4331. <select1 id="cmb_custflag" ref="/root/main/unsl_one/custflag" class="combo_essential" navindex="-1" appearance="minimal" style="left:112px; top:186px; width:130px; height:19px; ">
  4332. <choices>
  4333. <itemset nodeset="/root/init/custflaglist/custflag">
  4334. <label ref="nm"/>
  4335. <value ref="cd"/>
  4336. </itemset>
  4337. </choices>
  4338. <script type="javascript" ev:event="xforms-value-changed">
  4339. <![CDATA[
  4340. var custflag = model.getValue("/root/main/unsl_one/custflag");
  4341. model.setValue("/root/main/unsl_one/custnm","");
  4342. if (custflag == "9" || custflag == "") {
  4343. model.setValue("/root/main/unsl_one/custcd","-");
  4344. model.setFocus("ipt_custnm2");
  4345. model.toggle("명관리");
  4346. } else {
  4347. model.setValue("/root/main/unsl_one/custcd","");
  4348. model.setFocus("ipt_custnm");
  4349. model.toggle("코드관리");
  4350. }
  4351. model.refresh();
  4352. ]]>
  4353. </script>
  4354. </select1>
  4355. <input id="ipt_etcnotefact" ref="/root/main/unsl_one/etcnotefact" class="input_essential" imemode="hangul" style="left:515px; top:261px; width:680px; height:19px; "/>
  4356. <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; ">
  4357. <choices>
  4358. <item>
  4359. <label>-</label>
  4360. <value>01</value>
  4361. </item>
  4362. </choices>
  4363. </select1>
  4364. <input id="ipt_bugtamt" ref="/root/main/unsl_one/bugtamt" class="input_essential" disabled="true" visibility="visible" format="(-)#,###" style="left:1023px; top:157px; width:170px; height:19px; text-align:right; "/>
  4365. <button id="btn_grdadd" class="btn2_letter3" style="left:977px; top:335px; width:53px; height:19px; ">
  4366. <caption>행추가</caption>
  4367. <script type="javascript" ev:event="DOMActivate">
  4368. <![CDATA[
  4369. if (!fSlipAprvChk("N")) {
  4370. return;
  4371. }
  4372. if(model.getValue("/root/main/unsl_one/profflag") != 6 && model.getValue("/root/main/unsl_one/seqno") == "")
  4373. {
  4374. messageBox("증빙이 입력되지 않았습니다.","I000");
  4375. return false;
  4376. }
  4377. //if(!fdayreptAcntcdException())return;
  4378. if(!fcheckAcntOption())
  4379. {
  4380. return;
  4381. }
  4382. fGridRowAddClick();
  4383. model.setValue("/root/main/unsl_one/etcnotefact", ipt_slipcmt.value);
  4384. misfGridIUDs(grd_unsl, "A");
  4385. //model.setFocus(grd_unsl.attribute("max"));
  4386. //grd_unsl.buttom(row);
  4387. ipt_etcnotefact.refresh();
  4388. ]]>
  4389. </script>
  4390. </button>
  4391. <button id="btn_grddel" class="btn2_letter3" disabled="true" style="left:1087px; top:335px; width:53px; height:19px; ">
  4392. <caption>행삭제</caption>
  4393. <script type="javascript" ev:event="DOMActivate">
  4394. <![CDATA[
  4395. if(grd_unsl.row >= grd_unsl.fixedRows)
  4396. {
  4397. if (messageBox(grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("unslseqno")) + "번 전표를", "Q001") == "6")
  4398. {
  4399. if (!fSlipAprvChk("N"))
  4400. {
  4401. return;
  4402. }
  4403. fGridRowDelClick();
  4404. fRowClearClick();
  4405. fSaveClick("Y");
  4406. }
  4407. }
  4408. ]]>
  4409. </script>
  4410. </button>
  4411. <button id="btn_grdclear" class="btn2_letter3" visibility="hidden" style="left:922px; top:335px; width:53px; height:19px; ">
  4412. <caption>행정리</caption>
  4413. <script type="javascript" ev:event="DOMActivate">
  4414. <![CDATA[
  4415. fRowClearClick();
  4416. ]]>
  4417. </script>
  4418. </button>
  4419. <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:480px; top:98px; width:56px; height:22px; ">
  4420. <caption>저장</caption>
  4421. <script type="javascript" ev:event="DOMActivate">
  4422. <![CDATA[
  4423. if (!fSlipAprvChk("N"))
  4424. {
  4425. return;
  4426. }
  4427. if (!fprofChk())
  4428. {
  4429. return;
  4430. }
  4431. fSaveClick();
  4432. ]]>
  4433. </script>
  4434. </button>
  4435. <button id="btn_delete" class="btn4_letter2" visibility="visible" style="left:649px; top:98px; width:56px; height:22px; ">
  4436. <caption>삭제</caption>
  4437. <script type="javascript" ev:event="DOMActivate">
  4438. <![CDATA[
  4439. if (!fSlipAprvChk()) {
  4440. return;
  4441. }
  4442. fDeleteClick();
  4443. ]]>
  4444. </script>
  4445. </button>
  4446. <button id="btn_clear" class="btn4_letter3" visibility="visible" style="left:709px; top:98px; width:68px; height:22px; ">
  4447. <caption>초기화</caption>
  4448. <script type="javascript" ev:event="DOMActivate">
  4449. <![CDATA[
  4450. if (messageBox("전표를 초기화 하시겠습니까?", "Q999") == "6")
  4451. {
  4452. fClearClick();
  4453. }
  4454. ]]>
  4455. </script>
  4456. </button>
  4457. <button id="btn_slipaprv" class="btn5_letter4" visibility="hidden" style="left:925px; top:372px; width:64px; height:19px; ">
  4458. <caption>전표승인</caption>
  4459. <script type="javascript" ev:event="DOMActivate">
  4460. <![CDATA[
  4461. fSlipAprvClick();
  4462. ]]>
  4463. </script>
  4464. </button>
  4465. <button id="btn_send" class="btn4_letter6" visibility="visible" style="left:1002px; top:98px; width:104px; height:22px; ">
  4466. <caption>전송 및 출력</caption>
  4467. <script type="javascript" ev:event="DOMActivate">
  4468. <![CDATA[
  4469. if(fSlipPrintClick("N"))
  4470. {
  4471. fSlipStatus();
  4472. fQueryClick();
  4473. }
  4474. ]]>
  4475. </script>
  4476. </button>
  4477. <button id="btn_prt" class="btn4_letter4" visibility="visible" style="left:919px; top:98px; width:80px; height:22px; ">
  4478. <caption>미리보기</caption>
  4479. <script type="javascript" ev:event="DOMActivate">
  4480. <![CDATA[
  4481. if (grd_unsl.rows == 1)
  4482. {
  4483. messageBox("출력할 내용이" ,"I004");
  4484. return false;
  4485. }
  4486. iRow = grd_unsl.findRow("N", 1, grd_unsl.colRef("sanctyn"));
  4487. if(iRow >0)
  4488. {
  4489. fSlipPrintClick("Y");
  4490. }
  4491. else
  4492. {
  4493. messageBox("이미 전송된 전표입니다.", "I000");
  4494. }
  4495. ]]>
  4496. </script>
  4497. </button>
  4498. <button id="btn_bugtorgnzspec" class="btn2_letter6" style="left:805px; top:155px; width:86px; height:19px; ">
  4499. <caption>예산편성내역</caption>
  4500. <script type="javascript" ev:event="DOMActivate">
  4501. <![CDATA[
  4502. // if (!fSlipAprvChk("N")) {
  4503. // return;
  4504. // }
  4505. if(getUserInfo("dutplcecd") == acntdept || getUserInfo("dutplcecd") == bugtdept || radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'BUGTSEARCHYN'))
  4506. {
  4507. fBugtClick();
  4508. ipt_amt.dispatch("xforms-value-changed");
  4509. }
  4510. else
  4511. {
  4512. messageBox("권한이 없어 조회 할 수", "I004");
  4513. }
  4514. ]]>
  4515. </script>
  4516. </button>
  4517. <button id="btn_setacnt" class="btn4_letter6" visibility="visible" style="left:541px; top:98px; width:104px; height:22px; ">
  4518. <caption>이체계좌등록</caption>
  4519. <script type="javascript" ev:event="DOMActivate">
  4520. <![CDATA[
  4521. if (grd_unsl.rows > 0)
  4522. {
  4523. if (rdo_slipkind.value == "2")
  4524. {
  4525. messageBox("입금전표는 이체계좌를 등록하지 않습니다.","I000");
  4526. return;
  4527. }
  4528. var updtdata = getGridUpdateData(grd_unsl);
  4529. if (updtdata != "")
  4530. {
  4531. messageBox("변경된 데이터 저장 후 작업하세요.","I000");
  4532. return;
  4533. }
  4534. // if(!transAcntException())
  4535. // {
  4536. // messageBox("대변에 서로다른 계좌가 존재하므로 이체계좌를 등록할 수 없습니다..","I000");
  4537. // return;
  4538. // }
  4539. fSetAcntClick();
  4540. }
  4541. ]]>
  4542. </script>
  4543. </button>
  4544. <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^caption3" colsep="^" colwidth="0, 100, 100, 48, 69, 100, 100, 100, 100, 100, 70, 160, 100, 100, 100, 100, 100, 100, 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, 254, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 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:400px; width:1195px; height:323px; ">
  4545. <col ref="instcd" visibility="hidden"/>
  4546. <col ref="unsldd" visibility="hidden"/>
  4547. <col ref="unslno" visibility="hidden"/>
  4548. <col ref="unslseqno"/>
  4549. <col ref="projectid"/>
  4550. <col ref="projectnm" visibility="hidden"/>
  4551. <col ref="slipflag" visibility="hidden"/>
  4552. <col ref="slipkind" visibility="hidden"/>
  4553. <col ref="acountingflag" visibility="hidden"/>
  4554. <col ref="drcrflag" visibility="hidden"/>
  4555. <col ref="acntcd"/>
  4556. <col ref="acntnm"/>
  4557. <col ref="acntflag" visibility="hidden"/>
  4558. <col ref="suppitemcd" visibility="hidden"/>
  4559. <col ref="bugtcd" visibility="hidden"/>
  4560. <col ref="custflag" visibility="hidden"/>
  4561. <col ref="custcd" visibility="hidden"/>
  4562. <col ref="custnm"/>
  4563. <col ref="costcntrdeptcd" visibility="hidden"/>
  4564. <col ref="costcntrdeptnm"/>
  4565. <col ref="costbelongdeptcd" visibility="hidden"/>
  4566. <col ref="costbelongdeptnm" visibility="hidden"/>
  4567. <col ref="bugtmngtdeptcd" visibility="hidden"/>
  4568. <col ref="bugtmngtdeptnm" visibility="hidden"/>
  4569. <col ref="slipdeptcd" visibility="hidden"/>
  4570. <col ref="slipdeptnm" visibility="hidden"/>
  4571. <col disabled="true" editmode="search" ref="fundscd" type="combo">
  4572. <choices>
  4573. <itemset nodeset="/root/init/fundscdlist/fundscd">
  4574. <label ref="nm"/>
  4575. <value ref="cd"/>
  4576. </itemset>
  4577. </choices>
  4578. </col>
  4579. <col disabled="true" editmode="search" ref="profflag" type="combo">
  4580. <choices>
  4581. <itemset nodeset="/root/init/profflaglist/profflag">
  4582. <label ref="nm"/>
  4583. <value ref="cd"/>
  4584. </itemset>
  4585. </choices>
  4586. </col>
  4587. <col ref="etcprofcnt" visibility="hidden"/>
  4588. <col ref="notefactnm1" visibility="hidden"/>
  4589. <col ref="notefactcd1" visibility="hidden"/>
  4590. <col ref="notefactspec1" visibility="hidden"/>
  4591. <col ref="notefactnm2" visibility="hidden"/>
  4592. <col ref="notefactcd2" visibility="hidden"/>
  4593. <col ref="notefactspec2" visibility="hidden"/>
  4594. <col ref="notefactnm3" visibility="hidden"/>
  4595. <col ref="notefactcd3" visibility="hidden"/>
  4596. <col ref="notefactspec3" visibility="hidden"/>
  4597. <col ref="notefactnm4" visibility="hidden"/>
  4598. <col ref="notefactcd4" visibility="hidden"/>
  4599. <col ref="notefactspec4" visibility="hidden"/>
  4600. <col ref="notefactnm5" visibility="hidden"/>
  4601. <col ref="notefactcd5" visibility="hidden"/>
  4602. <col ref="notefactspec5" visibility="hidden"/>
  4603. <col ref="notefactnm6" visibility="hidden"/>
  4604. <col ref="notefactcd6" visibility="hidden"/>
  4605. <col ref="notefactspec6" visibility="hidden"/>
  4606. <col ref="etcnotefact"/>
  4607. <col ref="autjournflag" visibility="hidden"/>
  4608. <col ref="profdata" visibility="hidden"/>
  4609. <col ref="seqno" visibility="hidden"/>
  4610. <col ref="defrayreqdd" visibility="hidden"/>
  4611. <col ref="bugtaprvyn" visibility="hidden"/>
  4612. <col ref="bugtautoaprvyn" visibility="hidden"/>
  4613. <col ref="bugtearncostflag" visibility="hidden"/>
  4614. <col ref="unslwrit" visibility="hidden"/>
  4615. <col ref="usernm" visibility="hidden"/>
  4616. <col ref="sanctyn" visibility="hidden"/>
  4617. <col ref="dramt" format="(-)#,###" style="text-align:right; "/>
  4618. <col ref="cramt" format="(-)#,###" style="text-align:right; "/>
  4619. <col ref="amt" visibility="hidden"/>
  4620. <col ref="bugtamt" visibility="hidden"/>
  4621. <col ref="rlaacntseqno" visibility="hidden"/>
  4622. <col ref="supacntnm" visibility="hidden"/>
  4623. <col ref="slipcmt" visibility="hidden"/>
  4624. <col ref="approval11" visibility="hidden"/>
  4625. <col ref="approval12" visibility="hidden"/>
  4626. <col ref="approval13" visibility="hidden"/>
  4627. <col ref="approval14" visibility="hidden"/>
  4628. <col ref="approval15" visibility="hidden"/>
  4629. <col ref="approval21" visibility="hidden"/>
  4630. <col ref="approval22" visibility="hidden"/>
  4631. <col ref="approval23" visibility="hidden"/>
  4632. <col ref="approval24" visibility="hidden"/>
  4633. <col ref="approval25" visibility="hidden"/>
  4634. <col ref="servseqno" visibility="hidden"/>
  4635. <col ref="ymdaction" visibility="hidden"/>
  4636. <col ref="cdbojo1" visibility="hidden"/>
  4637. <col ref="ymdpum" visibility="hidden"/>
  4638. <script type="javascript" ev:event="onclick">
  4639. <![CDATA[
  4640. if(grd_unsl.isCell(event.target) && grd_unsl.row >= grd_unsl.fixedRows)
  4641. {
  4642. fGridRowClick();
  4643. model.setValue("/root/send/data5/instcd", model.getValue("/root/main/unsl_one/instcd"));
  4644. model.setValue("/root/send/data5/deptcd", ipt_costcntrdeptcd.value);
  4645. model.setValue("/root/send/data5/unsldd", ipt_unsldd.value);
  4646. model.setValue("/root/send/data5/refcond", "code");
  4647. model.setValue("/root/send/data5/retrnm", model.getValue("/root/main/unsl_one/acntcd"));
  4648. submit("TRRAD90107");
  4649. if(instance1.selectNodes("/root/main/list/bugtorgnzlist").length > 0)
  4650. {
  4651. model.setValue("/root/main/unsl_one/bugtamt", model.getValue("/root/main/list/bugtorgnzlist/bugtamt"));
  4652. }
  4653. else
  4654. {
  4655. model.setValue("/root/main/unsl_one/bugtamt", 0);
  4656. }
  4657. fetcprofcntcheck();
  4658. model.refresh();
  4659. }
  4660. else
  4661. {
  4662. var cur_row = grd_unsl.findRow(model.getValue("/root/main/unsl_one/unslseqno"),1,4);
  4663. grd_unsl.row = cur_row;
  4664. }
  4665. //fCheckServAcnt();
  4666. if(cmb_custflag.value == "1")
  4667. {
  4668. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  4669. }
  4670. model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
  4671. model.setValue("/root/main/unsl_one/cdbojo1", "");
  4672. submit("TRRAD01701");
  4673. model.refresh();
  4674. ]]>
  4675. </script>
  4676. </datagrid>
  4677. <switch id="switch1" class="sw_no_border" 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; ">
  4678. <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; ">
  4679. <caption id="caption34" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4680. <output id="opt_notenm1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4681. <input id="ipt_notenm1" ref="/root/main/unsl_one/notefactspec1" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4682. </case>
  4683. <case id="case_notecd1" sgetUserInfoelected="true" style="background-color:transparent; ">
  4684. <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4685. <output id="opt_notecd1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4686. <input id="ipt_notecd1" ref="/root/main/unsl_one/notefactcd1" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4687. <script type="javascript" ev:event="xforms-value-changed">
  4688. <![CDATA[
  4689. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4690. fAactCheck();
  4691. ]]>
  4692. </script>
  4693. <script type="javascript" ev:event="onkeypress">
  4694. <![CDATA[
  4695. if (event.keyCode == "13") {
  4696. model.setFocus("btn_grdadd");
  4697. }
  4698. ]]>
  4699. </script>
  4700. </input>
  4701. <input id="ipt_notecdnm1" ref="/root/main/unsl_one/notefactspec1" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4702. <script type="javascript" ev:event="xforms-value-changed">
  4703. <![CDATA[
  4704. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4705. fAactCheck();
  4706. ]]>
  4707. </script>
  4708. <script type="javascript" ev:event="onkeypress">
  4709. <![CDATA[
  4710. if (event.keyCode == "13") {
  4711. model.setFocus("btn_grdadd");
  4712. }
  4713. ]]>
  4714. </script>
  4715. </input>
  4716. <button id="btn_notecd1" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4717. <caption/>
  4718. <script type="javascript" ev:event="DOMActivate">
  4719. <![CDATA[
  4720. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd1"), ipt_notecd1, "notefactcd1,notefactspec1", "", "ipt_acntcd", "acntcd");
  4721. fAactCheck();
  4722. ]]>
  4723. </script>
  4724. </button>
  4725. </case>
  4726. <case id="case_notecombo1" style="background-color:transparent; border-color:transparent; ">
  4727. <caption id="caption40" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4728. <output id="opt_notecombo1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4729. <select1 id="cmb_notecombo1" ref="/root/main/unsl_one/notefactcd1" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4730. <choices>
  4731. <itemset nodeset="/root/hidden/acntcdcombo/notecombo1">
  4732. <label ref="cdnm"/>
  4733. <value ref="cdid"/>
  4734. </itemset>
  4735. </choices>
  4736. </select1>
  4737. </case>
  4738. <case id="case_noteblank1" selected="true">
  4739. <caption id="caption39" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4740. <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; "/>
  4741. <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>
  4742. </case>
  4743. </switch>
  4744. <switch id="switch2" class="sw_no_border" style="left:403px; top:284px; width:402px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4745. <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; ">
  4746. <caption id="caption9" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4747. <output id="opt_notenm2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4748. <input id="ipt_notenm2" ref="/root/main/unsl_one/notefactspec2" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4749. </case>
  4750. <case id="case_notecd2" selected="true" style="background-color:transparent; ">
  4751. <caption id="caption20" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4752. <output id="opt_notecd2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4753. <input id="ipt_notecd2" ref="/root/main/unsl_one/notefactcd2" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4754. <script type="javascript" ev:event="xforms-value-changed">
  4755. <![CDATA[
  4756. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4757. ]]>
  4758. </script>
  4759. </input>
  4760. <input id="ipt_notecdnm2" ref="/root/main/unsl_one/notefactspec2" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4761. <script type="javascript" ev:event="xforms-value-changed">
  4762. <![CDATA[
  4763. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4764. ]]>
  4765. </script>
  4766. </input>
  4767. <button id="btn_notecd2" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4768. <caption/>
  4769. <script type="javascript" ev:event="DOMActivate">
  4770. <![CDATA[
  4771. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd2"), ipt_notecd1, "notefactcd2,notefactspec2", "", "ipt_acntcd", "acntcd");
  4772. ]]>
  4773. </script>
  4774. </button>
  4775. </case>
  4776. <case id="case_notecombo2" style="background-color:transparent; border-color:transparent; ">
  4777. <caption id="caption21" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4778. <output id="opt_notecombo2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4779. <select1 id="cmb_notecombo2" ref="/root/main/unsl_one/notefactcd2" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4780. <choices>
  4781. <itemset nodeset="/root/hidden/acntcdcombo/notecombo2">
  4782. <label ref="cdnm"/>
  4783. <value ref="cdid"/>
  4784. </itemset>
  4785. </choices>
  4786. </select1>
  4787. </case>
  4788. <case id="case_noteblank2">
  4789. <caption id="caption29" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4790. </case>
  4791. </switch>
  4792. <switch id="switch3" class="sw_no_border" 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; ">
  4793. <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; ">
  4794. <caption id="caption31" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4795. <output id="opt_notenm3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4796. <input id="ipt_notenm3" ref="/root/main/unsl_one/notefactspec3" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4797. </case>
  4798. <case id="case_notecd3" style="background-color:transparent; ">
  4799. <caption id="caption32" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4800. <output id="opt_notecd3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4801. <input id="ipt_notecd3" ref="/root/main/unsl_one/notefactcd3" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4802. <script type="javascript" ev:event="xforms-value-changed">
  4803. <![CDATA[
  4804. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4805. ]]>
  4806. </script>
  4807. </input>
  4808. <input id="ipt_notecdnm3" ref="/root/main/unsl_one/notefactspec3" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4809. <script type="javascript" ev:event="xforms-value-changed">
  4810. <![CDATA[
  4811. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4812. ]]>
  4813. </script>
  4814. </input>
  4815. <button id="btn_notecd3" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4816. <caption/>
  4817. <script type="javascript" ev:event="DOMActivate">
  4818. <![CDATA[
  4819. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd3"), ipt_notecd1, "notefactcd3,notefactspec3", "", "ipt_acntcd", "acntcd");
  4820. ]]>
  4821. </script>
  4822. </button>
  4823. </case>
  4824. <case id="case_notecombo3" style="background-color:transparent; border-color:transparent; ">
  4825. <caption id="caption35" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4826. <output id="opt_notecombo3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4827. <select1 id="cmb_notecombo3" ref="/root/main/unsl_one/notefactcd3" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4828. <choices>
  4829. <itemset nodeset="/root/hidden/acntcdcombo/notecombo3">
  4830. <label ref="cdnm"/>
  4831. <value ref="cdid"/>
  4832. </itemset>
  4833. </choices>
  4834. </select1>
  4835. </case>
  4836. <case id="case_noteblank3">
  4837. <caption id="caption36" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4838. </case>
  4839. </switch>
  4840. <switch id="switch4" class="sw_no_border" style="left:403px; 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; ">
  4841. <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; ">
  4842. <caption id="caption37" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4843. <output id="opt_notenm4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4844. <input id="ipt_notenm4" ref="/root/main/unsl_one/notefactspec4" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4845. </case>
  4846. <case id="case_notecd4" selected="true" style="background-color:transparent; ">
  4847. <caption id="caption38" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4848. <output id="opt_notecd4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4849. <input id="ipt_notecd4" ref="/root/main/unsl_one/notefactcd4" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4850. <script type="javascript" ev:event="xforms-value-changed">
  4851. <![CDATA[
  4852. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4853. ]]>
  4854. </script>
  4855. </input>
  4856. <input id="ipt_notecdnm4" ref="/root/main/unsl_one/notefactspec4" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4857. <script type="javascript" ev:event="xforms-value-changed">
  4858. <![CDATA[
  4859. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4860. ]]>
  4861. </script>
  4862. </input>
  4863. <button id="btn_notecd4" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4864. <caption/>
  4865. <script type="javascript" ev:event="DOMActivate">
  4866. <![CDATA[
  4867. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd4"), ipt_notecd1, "notefactcd4,notefactspec4", "", "ipt_acntcd", "acntcd");
  4868. ]]>
  4869. </script>
  4870. </button>
  4871. </case>
  4872. <case id="case_notecombo4" style="background-color:transparent; border-color:transparent; ">
  4873. <caption id="caption41" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4874. <output id="opt_notecombo4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4875. <select1 id="cmb_notecombo4" ref="/root/main/unsl_one/notefactcd4" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4876. <choices>
  4877. <itemset nodeset="/root/hidden/acntcdcombo/notecombo4">
  4878. <label ref="cdnm"/>
  4879. <value ref="cdid"/>
  4880. </itemset>
  4881. </choices>
  4882. </select1>
  4883. </case>
  4884. <case id="case_noteblank4" style="left:0px; top:0px; width:403px; height:25px; ">
  4885. <caption id="caption42" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4886. </case>
  4887. </switch>
  4888. <switch id="switch5" class="sw_no_border" style="left:0px; top:334px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4889. <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; ">
  4890. <caption id="caption43" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4891. <output id="opt_notenm5" ref="/root/main/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4892. <input id="ipt_notenm5" ref="/root/main/unsl_one/notefactspec5" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4893. </case>
  4894. <case id="case_notecd5" selected="true" style="background-color:transparent; ">
  4895. <caption id="caption44" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4896. <output id="opt_notecd5" ref="/root/main/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4897. <input id="ipt_notecd5" ref="/root/main/unsl_one/notefactcd5" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4898. <script type="javascript" ev:event="xforms-value-changed">
  4899. <![CDATA[
  4900. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4901. ]]>
  4902. </script>
  4903. </input>
  4904. <input id="ipt_notecdnm5" ref="/root/main/unsl_one/notefactspec5" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4905. <script type="javascript" ev:event="xforms-value-changed">
  4906. <![CDATA[
  4907. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4908. ]]>
  4909. </script>
  4910. </input>
  4911. <button id="btn_notecd5" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4912. <caption/>
  4913. <script type="javascript" ev:event="DOMActivate">
  4914. <![CDATA[
  4915. //fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwn5"), ipt_notecd1, "notefactcd5,notefactspec5", "", "ipt_acntcd", "acntcd");
  4916. rpbfOpenPopUpList("SPRPZ00800", ipt_notecd5, "cardcd,cardno", "", "N");
  4917. model.setValue("/root/main/unsl_one/notefactcd5", model.getValue("/root/temp/cardcd"));
  4918. model.setValue("/root/main/unsl_one/notefactspec5", model.getValue("/root/temp/cardno"));
  4919. model.refresh();
  4920. ]]>
  4921. </script>
  4922. </button>
  4923. </case>
  4924. <case id="case_notecombo5" style="background-color:transparent; border-color:transparent; ">
  4925. <caption id="caption45" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4926. <output id="opt_notecombo5" ref="/root/main/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4927. <select1 id="cmb_notecombo5" ref="/root/main/unsl_one/notefactcd5" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4928. <choices>
  4929. <itemset nodeset="/root/hidden/acntcdcombo/notecombo5">
  4930. <label ref="cdnm"/>
  4931. <value ref="cdid"/>
  4932. </itemset>
  4933. </choices>
  4934. </select1>
  4935. </case>
  4936. <case id="case_noteblank5">
  4937. <caption id="caption46" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4938. </case>
  4939. </switch>
  4940. <switch id="switch6" class="sw_no_border" style="left:403px; top:334px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  4941. <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; ">
  4942. <caption id="caption48" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  4943. <output id="opt_notenm6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4944. <input id="ipt_notenm6" ref="/root/main/unsl_one/notefactspec6" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  4945. </case>
  4946. <case id="case_notecd6" selected="true" style="background-color:transparent; ">
  4947. <caption id="caption50" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4948. <output id="opt_notecd6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4949. <input id="ipt_notecd6" ref="/root/main/unsl_one/notefactcd6" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  4950. <script type="javascript" ev:event="xforms-value-changed">
  4951. <![CDATA[
  4952. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4953. ]]>
  4954. </script>
  4955. </input>
  4956. <input id="ipt_notecdnm6" ref="/root/main/unsl_one/notefactspec6" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  4957. <script type="javascript" ev:event="xforms-value-changed">
  4958. <![CDATA[
  4959. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
  4960. ]]>
  4961. </script>
  4962. </input>
  4963. <button id="btn_notecd6" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  4964. <caption/>
  4965. <script type="javascript" ev:event="DOMActivate">
  4966. <![CDATA[
  4967. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd6"), ipt_notecd1, "notefactcd6,notefactspec6", "", "ipt_acntcd", "acntcd");
  4968. ]]>
  4969. </script>
  4970. </button>
  4971. </case>
  4972. <case id="case_notecombo6" style="background-color:transparent; border-color:transparent; ">
  4973. <caption id="caption52" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4974. <output id="opt_notecombo6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  4975. <select1 id="cmb_notecombo6" ref="/root/main/unsl_one/notefactcd6" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  4976. <choices>
  4977. <itemset nodeset="/root/hidden/acntcdcombo/notecombo6">
  4978. <label ref="cdnm"/>
  4979. <value ref="cdid"/>
  4980. </itemset>
  4981. </choices>
  4982. </select1>
  4983. </case>
  4984. <case id="case_noteblank6">
  4985. <caption id="caption54" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  4986. </case>
  4987. </switch>
  4988. <line id="line2" class="line_2" style="x1:0px; y1:177px; x2:1195px; y2:177px; "/>
  4989. <line id="line6" class="line_2" style="x1:0px; y1:183px; x2:1195px; y2:183px; "/>
  4990. <caption id="caption17" class="cell_1" style="left:0px; top:370px; width:110px; height:23px; ">연번호</caption>
  4991. <line id="line14" class="line_1" style="x1:0px; y1:393px; x2:1195px; y2:393px; "/>
  4992. <line id="line8" class="line_3" style="x1:0px; y1:357px; x2:1195px; y2:357px; "/>
  4993. <line id="line11" class="line_2" style="x1:0px; y1:307px; x2:1195px; y2:307px; "/>
  4994. <output id="opt_unslseqno" ref="/root/main/unsl_one/unslseqno" class="output_fix" style="left:112px; top:372px; width:100px; height:19px; font-weight:bold; color:#ff6600; text-align:center; "/>
  4995. <line id="line7" class="line_2" style="x1:0px; y1:332px; x2:1195px; y2:332px; "/>
  4996. <switch id="switch8" class="sw_no_border" style="left:248px; top:184px; width:662px; height:25px; ">
  4997. <case id="코드관리">
  4998. <input id="ipt_custnm" ref="/root/main/unsl_one/custnm" class="input_essential" imemode="hangul" style="left:141px; top:3px; width:519px; height:19px; ">
  4999. <script type="javascript" ev:event="xforms-value-changed">
  5000. <![CDATA[
  5001. var custflag = model.getValue("/root/main/unsl_one/custflag");
  5002. switch (custflag) {
  5003. case "1": //거래처
  5004. fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
  5005. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  5006. break;
  5007. // case "2": //은행
  5008. // fValidationCheck("03", "custcd,custnm", "R0001", "");
  5009. // break;
  5010. case "3": //부서
  5011. fValidationCheck("02", "custcd,custnm", "", "");
  5012. break;
  5013. case "4": //교직원
  5014. // fValidationCheck("01-2", "custcd,custnm", "", "");
  5015. model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
  5016. ipt_emplnm.dispatch("xforms-value-changed");
  5017. break;
  5018. case "5": //개인
  5019. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
  5020. break;
  5021. default :
  5022. return;
  5023. }
  5024. ]]>
  5025. </script>
  5026. <script type="javascript" ev:event="onkeypress">
  5027. <![CDATA[
  5028. if (event.keyCode == "13") {
  5029. model.setFocus("ipt_amt");
  5030. }
  5031. ]]>
  5032. </script>
  5033. </input>
  5034. <input id="ipt_custcd" ref="/root/main/unsl_one/custcd" class="input_essential" navindex="-1" style="left:0px; top:2px; width:116px; height:19px; ">
  5035. <script type="javascript" ev:event="xforms-value-changed">
  5036. <![CDATA[
  5037. var custflag = model.getValue("/root/main/unsl_one/custflag");
  5038. switch (custflag) {
  5039. case "1": //거래처
  5040. fValidationCheck("14", "custcd,custnm", "", "ipt_amt", "", "", "code");
  5041. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  5042. break;
  5043. // case "2": //은행
  5044. // fValidationCheck("03", "custcd,custnm", "R0001", "ipt_amt");
  5045. // break;
  5046. case "3": //부서
  5047. fValidationCheck("02", "custcd,custnm", "", "ipt_amt");
  5048. break;
  5049. case "4": //교직원
  5050. // fValidationCheck("01-1", "custcd,custnm", "", "ipt_amt");
  5051. model.setValue("/root/hidden/tempnode/emplno", model.getValue("/root/main/unsl_one/custcd"));
  5052. ipt_emplno.dispatch("xforms-value-changed");
  5053. break;
  5054. case "5": //개인
  5055. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "code");
  5056. break;
  5057. default :
  5058. return;
  5059. }
  5060. ]]>
  5061. </script>
  5062. <script type="javascript" ev:event="onkeypress">
  5063. <![CDATA[
  5064. if (event.keyCode == "13") {
  5065. model.setFocus("ipt_amt");
  5066. }
  5067. ]]>
  5068. </script>
  5069. </input>
  5070. <button id="btn_custcd" class="icon_search" navindex="-1" style="left:121px; top:5px; width:16px; height:16px; ">
  5071. <caption/>
  5072. <script type="javascript" ev:event="DOMActivate">
  5073. <![CDATA[
  5074. var custflag = model.getValue("/root/main/unsl_one/custflag");
  5075. switch (custflag) {
  5076. case "1": //거래처
  5077. fOpenPopupHelp("14", ipt_custcd, "custcd,custnm", "", "");
  5078. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  5079. break;
  5080. // case "2": //은행
  5081. // fOpenPopupHelp("03", ipt_custcd, "custcd,custnm", "R0001", "");
  5082. // break;
  5083. case "3": //부서
  5084. fOpenPopupHelp("02", ipt_custcd, "custcd,custnm", "", "");
  5085. break;
  5086. case "4": //교직원
  5087. // fOpenPopupHelp("01", ipt_custcd, "custcd,custnm", "", "");
  5088. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
  5089. model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
  5090. model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
  5091. model.refresh();
  5092. break;
  5093. case "5": //개인
  5094. fOpenPopupHelp("31", ipt_custcd, "custcd,custnm", "", "");
  5095. break;
  5096. default :
  5097. return;
  5098. }
  5099. ]]>
  5100. </script>
  5101. </button>
  5102. </case>
  5103. <case id="명관리" selected="true">
  5104. <input id="ipt_custnm2" ref="/root/main/unsl_one/custnm" class="input_essential" imemode="hangul" style="left:0px; top:2px; width:660px; height:19px; ">
  5105. <script type="javascript" ev:event="onkeypress">
  5106. <![CDATA[
  5107. if (event.keyCode == "13") {
  5108. model.setFocus("rdo_profflag1");
  5109. }
  5110. ]]>
  5111. </script>
  5112. </input>
  5113. <input id="ipt_custcd2" ref="/root/main/unsl_one/custcd" class="input_essential" visibility="hidden" style="left:520px; top:2px; width:25px; height:19px; "/>
  5114. </case>
  5115. </switch>
  5116. <select1 id="cmb_drfundscd" ref="/root/main/unsl_one/fundscd" class="combo_essential" navindex="-1" appearance="minimal" style="left:1023px; top:186px; width:170px; height:19px; ">
  5117. <script type="javascript" ev:event="xforms-value-changed">
  5118. <![CDATA[
  5119. model.setFocus("cmb_custflag");
  5120. ]]>
  5121. </script>
  5122. <choices>
  5123. <itemset nodeset="/root/init/fundscdlist/fundscd">
  5124. <label ref="nm"/>
  5125. <value ref="cd"/>
  5126. </itemset>
  5127. </choices>
  5128. </select1>
  5129. <caption id="caption25" class="cell_1" style="left:0px; top:259px; width:110px; height:23px; ">금 액</caption>
  5130. <line id="line3" class="line_2" style="x1:0px; y1:257px; x2:1195px; y2:257px; "/>
  5131. <line id="line4" class="line_2" style="x1:0px; y1:207px; x2:1195px; y2:207px; "/>
  5132. <input id="ipt_slipyn" ref="/root/hidden/slipyn" navindex="-1" visibility="hidden" style="left:1090px; top:10px; width:35px; height:19px; "/>
  5133. <button id="btn_grdset" class="btn2_letter3" disabled="true" style="left:1032px; top:335px; width:53px; height:19px; ">
  5134. <caption>행수정</caption>
  5135. <script type="javascript" ev:event="DOMActivate">
  5136. <![CDATA[
  5137. if (!fSlipAprvChk("N")) {
  5138. return;
  5139. }
  5140. //if(!fdayreptAcntcdException())return;
  5141. if(!fcheckAcntOption())
  5142. {
  5143. return;
  5144. }
  5145. fGridRowSetClick();
  5146. ]]>
  5147. </script>
  5148. </button>
  5149. <caption id="caption56" class="cell_1" style="left:916px; top:184px; width:104px; height:23px; ">자금과목</caption>
  5150. <caption id="caption57" ref="/root/hidden/expsacntsum" format="(-)#,###" style="left:690px; top:735px; width:110px; height:23px; text-align:right; vertical-align:middle; padding-right:2; background-color:#fcd2c1; "/>
  5151. <caption id="caption33" class="cell_1" style="left:0px; top:209px; width:110px; height:48px; ">증빙구분</caption>
  5152. <select1 id="rdo_profflag1" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:125px; top:215px; width:75px; height:20px; border-style:none; ">
  5153. <choices>
  5154. <item>
  5155. <label>법인카드</label>
  5156. <value>1</value>
  5157. </item>
  5158. </choices>
  5159. <script type="javascript" ev:event="onclick">
  5160. <![CDATA[
  5161. fProfClick("SPRAD00101");
  5162. ]]>
  5163. </script>
  5164. </select1>
  5165. <select1 id="rdo_profflag2" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:213px; top:215px; width:116px; height:20px; border-style:none; ">
  5166. <choices>
  5167. <item>
  5168. <label>개인신용카드</label>
  5169. <value>2</value>
  5170. </item>
  5171. </choices>
  5172. <script type="javascript" ev:event="onclick">
  5173. <![CDATA[
  5174. fProfClick("SPRAD00102");
  5175. ]]>
  5176. </script>
  5177. </select1>
  5178. <select1 id="rdo_profflag3" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:344px; top:215px; width:88px; height:20px; border-style:none; ">
  5179. <choices>
  5180. <item>
  5181. <label>현금영수증</label>
  5182. <value>3</value>
  5183. </item>
  5184. </choices>
  5185. <script type="javascript" ev:event="onclick">
  5186. <![CDATA[
  5187. fProfClick("SPRAD00103");
  5188. ]]>
  5189. </script>
  5190. </select1>
  5191. <select1 id="rdo_profflag4" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:447px; top:215px; width:101px; height:20px; border-style:none; ">
  5192. <choices>
  5193. <item>
  5194. <label>세금계산서</label>
  5195. <value>4</value>
  5196. </item>
  5197. </choices>
  5198. <script type="javascript" ev:event="onclick">
  5199. <![CDATA[
  5200. fProfClick("SPRAT00101");
  5201. ]]>
  5202. </script>
  5203. </select1>
  5204. <select1 id="rdo_profflag5" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:560px; top:215px; width:75px; height:20px; border-style:none; ">
  5205. <choices>
  5206. <item>
  5207. <label>계산서</label>
  5208. <value>5</value>
  5209. </item>
  5210. </choices>
  5211. <script type="javascript" ev:event="onclick">
  5212. <![CDATA[
  5213. fProfClick("SPRAT00101");
  5214. ]]>
  5215. </script>
  5216. </select1>
  5217. <select1 id="rdo_profflag6" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:649px; top:215px; width:65px; height:20px; border-style:none; ">
  5218. <choices>
  5219. <item>
  5220. <label>기타</label>
  5221. <value>6</value>
  5222. </item>
  5223. </choices>
  5224. <script type="javascript" ev:event="onclick">
  5225. <![CDATA[
  5226. if (!fProfExistsChk())
  5227. {
  5228. return;
  5229. }
  5230. fetcprofcntcheck();
  5231. ]]>
  5232. </script>
  5233. </select1>
  5234. <input id="ipt_profflag6" ref="/root/main/unsl_one/etcprofcnt" class="input_essential" navindex="-1" visibility="hidden" maxlength="11" style="left:718px; top:215px; width:37px; height:19px; text-align:right; vertical-align:middle; padding-right:3; "/>
  5235. <select1 id="rdo_profflag7" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:125px; top:235px; width:75px; height:20px; color:#3366ff; border-style:none; ">
  5236. <choices>
  5237. <item>
  5238. <label>근로소득</label>
  5239. <value>7</value>
  5240. </item>
  5241. </choices>
  5242. <script type="javascript" ev:event="onclick">
  5243. <![CDATA[
  5244. if(getUserInfo("dutplceinstcd") == "103")
  5245. {
  5246. fProfOrChClick("SPRAD00104");
  5247. }
  5248. else
  5249. {
  5250. fProfOrChClick("SPRAD00134");
  5251. }
  5252. ]]>
  5253. </script>
  5254. </select1>
  5255. <select1 id="rdo_profflag8" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:213px; top:235px; width:116px; height:20px; color:#3366ff; border-style:none; ">
  5256. <choices>
  5257. <item>
  5258. <label>비과세 근로소득</label>
  5259. <value>8</value>
  5260. </item>
  5261. </choices>
  5262. <script type="javascript" ev:event="onclick">
  5263. <![CDATA[
  5264. fetcprofcntcheck();
  5265. if(getUserInfo("dutplceinstcd") == "103")
  5266. {
  5267. fProfOrChClick("SPRAD00104");
  5268. }
  5269. else
  5270. {
  5271. fProfOrChClick("SPRAD00134");
  5272. }
  5273. ]]>
  5274. </script>
  5275. </select1>
  5276. <select1 id="rdo_profflag9" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:344px; top:235px; width:88px; height:20px; color:#3366ff; border-style:none; ">
  5277. <choices>
  5278. <item>
  5279. <label>퇴직소득</label>
  5280. <value>9</value>
  5281. </item>
  5282. </choices>
  5283. <script type="javascript" ev:event="onclick">
  5284. <![CDATA[
  5285. //return;
  5286. fProfOrChClick("SPRAD00140");
  5287. ]]>
  5288. </script>
  5289. </select1>
  5290. <select1 id="rdo_profflaga" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:447px; top:235px; width:101px; height:20px; color:#3366ff; border-style:none; ">
  5291. <choices>
  5292. <item>
  5293. <label>일용근로소득</label>
  5294. <value>A</value>
  5295. </item>
  5296. </choices>
  5297. <script type="javascript" ev:event="onclick">
  5298. <![CDATA[
  5299. if(getUserInfo("dutplceinstcd") == "103")
  5300. {
  5301. fProfOrChClick("SPRAD00111");
  5302. }
  5303. else
  5304. {
  5305. fProfOrChClick("SPRAD00131");
  5306. }
  5307. ]]>
  5308. </script>
  5309. </select1>
  5310. <select1 id="rdo_profflagb" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:560px; top:235px; width:75px; height:20px; color:#3366ff; border-style:none; ">
  5311. <choices>
  5312. <item>
  5313. <label>사업소득</label>
  5314. <value>B</value>
  5315. </item>
  5316. </choices>
  5317. <script type="javascript" ev:event="onclick">
  5318. <![CDATA[
  5319. if(getUserInfo("dutplceinstcd") == "103")
  5320. {
  5321. fProfOrChClick("SPRAD00106");
  5322. }
  5323. else
  5324. {
  5325. fProfOrChClick("SPRAD00136");
  5326. }
  5327. ]]>
  5328. </script>
  5329. </select1>
  5330. <select1 id="rdo_profflagc" ref="/root/main/unsl_one/profflag" navindex="-1" overflow="visible" appearance="full" style="left:649px; top:235px; width:65px; height:20px; border-style:none; ">
  5331. <choices>
  5332. <item>
  5333. <label>기타소득</label>
  5334. <value>C</value>
  5335. </item>
  5336. </choices>
  5337. <script type="javascript" ev:event="onclick">
  5338. <![CDATA[
  5339. if(getUserInfo("dutplceinstcd") == "103")
  5340. {
  5341. fProfOrChClick("SPRAD00105");
  5342. }
  5343. else
  5344. {
  5345. fProfOrChClick("SPRAD00135");
  5346. }
  5347. ]]>
  5348. </script>
  5349. </select1>
  5350. <button id="btn_copy" class="btn4_letter2" disabled="true" style="left:293px; top:98px; width:56px; height:22px; ">
  5351. <caption>복사</caption>
  5352. <script type="javascript" ev:event="DOMActivate">
  5353. <![CDATA[
  5354. if(model.getValue("/root/hidden/condition/slipflag") == "9")
  5355. {
  5356. messageBox("[전표 반제 전표]는 복사할 수 없습니다. \n전표 반제 프로그램에서 작업하세요", "I000");
  5357. return false;
  5358. }
  5359. fCopyShftSlip("copy")
  5360. ]]>
  5361. </script>
  5362. </button>
  5363. <button id="btn_grdcopy" class="btn2_letter3" disabled="true" style="left:1142px; top:335px; width:53px; height:19px; ">
  5364. <caption>행복사</caption>
  5365. <script type="javascript" ev:event="DOMActivate">
  5366. <![CDATA[
  5367. fIncreSeqno("/root/main/unsl_one/unslseqno");
  5368. model.setValue("/root/main/unsl_one/profflag", "");
  5369. model.setValue("/root/main/unsl_one/seqno", "");
  5370. model.setValue("/root/main/unsl_one/rlaacntseqno", "");
  5371. model.setValue("/root/main/unsl_one/fundscd", model.getValue("/root/hidden/acntcdinfo/fundscd"));
  5372. model.refresh();
  5373. btn_grdadd.disabled = false;
  5374. btn_grdset.disabled = true;
  5375. btn_grddel.disabled = true;
  5376. btn_grdcopy.disabled = true;
  5377. btn_grdclear.visible = false;
  5378. model.setFocus("ipt_custnm");
  5379. ]]>
  5380. </script>
  5381. </button>
  5382. <caption id="caption58" style="left:714px; top:233px; width:11px; height:20px; font-weight:bold; ">]</caption>
  5383. <button id="btn_prtcancel" class="btn4_letter4" disabled="true" visibility="visible" style="left:1112px; top:98px; width:80px; height:22px; ">
  5384. <caption>출력취소</caption>
  5385. <script type="javascript" ev:event="DOMActivate">
  5386. <![CDATA[
  5387. if (model.getValue("/root/main/unsl[1]/sanctno") != "")
  5388. {
  5389. messageBox("승인된 전표이므로 작업을 불허합니다." ,"I000");
  5390. return;
  5391. }
  5392. if (model.getValue("/root/main/unsl[1]/bugtaprvyn") == "Y" && model.getValue("/root/main/unsl[1]/bugtautoaprvyn") == "N")
  5393. {
  5394. messageBox("기획팀 예산 승인된 전표이므로 작업을 불허합니다." ,"I000");
  5395. return;
  5396. }
  5397. if (model.getValue("/root/main/unsl_one/acntcd") != "")
  5398. {
  5399. fRowClearClick();
  5400. }
  5401. fSlipPrintCancelClick();
  5402. fSlipStatus();
  5403. fQueryClick();
  5404. ]]>
  5405. </script>
  5406. </button>
  5407. <caption id="caption30" style="left:117px; top:233px; width:11px; height:20px; font-weight:bold; ">[</caption>
  5408. <caption id="caption11" class="hand" style="left:723px; top:233px; width:82px; height:20px; color:#3366ff; vertical-align:middle; ">원천징수</caption>
  5409. <button id="btn_setapln" class="btn4_letter5" visibility="visible" style="left:781px; top:98px; width:92px; height:22px; ">
  5410. <caption>결재선지정</caption>
  5411. <script type="javascript" ev:event="DOMActivate">
  5412. <![CDATA[
  5413. var updtdata = getGridUpdateData(grd_unsl);
  5414. if (updtdata != "")
  5415. {
  5416. messageBox("변경된 데이터 저장 후 작업하세요.","I000");
  5417. return;
  5418. }
  5419. if(grp_apln.visible)
  5420. {
  5421. grp_apln.visible = false;
  5422. }
  5423. else
  5424. {
  5425. //if(grd_unsl.rows == 1) return;
  5426. model.removenode("/root/main/apln");
  5427. model.setValue("/root/send/data3/instcd", model.getValue("/root/main/unsl_one/instcd"));
  5428. model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  5429. submit("TRRAD00151");
  5430. if(model.getValue("/root/main/apln/iudflag") == "")model.setValue("/root/main/apln/iudflag", "I");
  5431. // cmb_arbitrary1.select(1);
  5432. // cmb_arbitrary1.refresh();
  5433. grp_apln.visible = true;
  5434. model.setFocus("grp_apln");
  5435. }
  5436. ]]>
  5437. </script>
  5438. </button>
  5439. <input id="ipt_emplno" ref="/root/hidden/tempnode/emplno" visibility="hidden" style="left:505px; top:740px; width:20px; height:19px; ">
  5440. <script type="javascript" ev:event="xforms-value-changed">
  5441. <![CDATA[
  5442. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  5443. model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
  5444. model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
  5445. model.refresh();
  5446. ]]>
  5447. </script>
  5448. </input>
  5449. <input id="ipt_emplnm" ref="/root/hidden/tempnode/emplnm" visibility="hidden" style="left:525px; top:740px; width:20px; height:19px; ">
  5450. <script type="javascript" ev:event="xforms-value-changed">
  5451. <![CDATA[
  5452. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  5453. model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
  5454. model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
  5455. model.refresh();
  5456. ]]>
  5457. </script>
  5458. </input>
  5459. <input id="ipt_acntyy" ref="/root/hidden/acntyy" navindex="-1" visibility="hidden" style="left:1125px; top:10px; width:35px; height:19px; "/>
  5460. <button id="button1" visibility="hidden" style="left:1120px; top:65px; width:55px; height:20px; ">
  5461. <caption>button1</caption>
  5462. <script type="javascript" ev:event="DOMActivate">
  5463. <![CDATA[
  5464. //radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"));
  5465. //model.setValue("/root/main/unsl_one/amt", -900000000);
  5466. //model.refresh();
  5467. //alert(model.getValue("/root/main/unsl_one/amt"));
  5468. alert(getUserId());
  5469. ]]>
  5470. </script>
  5471. </button>
  5472. <button id="btn_dayshift" class="btn4_letter4" disabled="true" style="left:209px; top:98px; width:80px; height:22px; ">
  5473. <caption>날짜변경</caption>
  5474. <script type="javascript" ev:event="DOMActivate">
  5475. <![CDATA[
  5476. if(model.getValue("/root/hidden/condition/slipflag") == "9")
  5477. {
  5478. messageBox("[전표 반제 전표]는 날짜를 변경할 수 없습니다. \n전표 반제 프로그램에서 작업하세요", "I000");
  5479. return false;
  5480. }
  5481. fCopyShftSlip("shift");
  5482. ]]>
  5483. </script>
  5484. </button>
  5485. <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; ">
  5486. <choices>
  5487. <item>
  5488. <label>option1</label>
  5489. <value>Y</value>
  5490. </item>
  5491. </choices>
  5492. </select>
  5493. <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; ">
  5494. <choices>
  5495. <item>
  5496. <label>option2</label>
  5497. <value>Y</value>
  5498. </item>
  5499. </choices>
  5500. </select>
  5501. <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; ">
  5502. <choices>
  5503. <item>
  5504. <label>option3</label>
  5505. <value>Y</value>
  5506. </item>
  5507. </choices>
  5508. </select>
  5509. <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; ">
  5510. <choices>
  5511. <item>
  5512. <label>option3</label>
  5513. <value>Y</value>
  5514. </item>
  5515. </choices>
  5516. </select>
  5517. <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; ">
  5518. <choices>
  5519. <item>
  5520. <label>option5</label>
  5521. <value>Y</value>
  5522. </item>
  5523. </choices>
  5524. </select>
  5525. <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; ">
  5526. <choices>
  5527. <item>
  5528. <label>option6</label>
  5529. <value>Y</value>
  5530. </item>
  5531. </choices>
  5532. </select>
  5533. <caption id="caption59" class="cell_1" style="left:570px; top:735px; width:120px; height:23px; text-align:center; vertical-align:middle; ">이체금액합계</caption>
  5534. <button id="btn_serv" class="btn2_letter6" visibility="hidden" style="left:810px; top:285px; width:86px; height:19px; ">
  5535. <caption>접대비명세서</caption>
  5536. <script type="javascript" ev:event="DOMActivate">
  5537. <![CDATA[
  5538. //fServClick();
  5539. if(grd_unsl.row > grd_unsl.fixedRows && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == 'Y')
  5540. {
  5541. messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
  5542. return false;
  5543. }
  5544. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  5545. model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/servseqno"));
  5546. model.makeValue("/root/source/slipinfo/entrregno", model.getValue("/root/main/unsl_one/custcd"));
  5547. model.makeValue("/root/source/slipinfo/deptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  5548. model.makeValue("/root/source/slipinfo/emplno", getUserId());
  5549. model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  5550. model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  5551. model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
  5552. model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
  5553. model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
  5554. model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/main/unsl_one/etcnotefact"));
  5555. model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
  5556. model.refresh();
  5557. modal("SPRAD00112","","","","","/root/source", "/root/target" );
  5558. model.refresh();
  5559. if (model.getValue("/root/source/slipinfo/seqno") != model.getValue("/root/main/unsl_one/servseqno") && btn_grdset.disabled == false)
  5560. {
  5561. var cur_row = grd_unsl.row;
  5562. btn_grdset.dispatch("DOMActivate");
  5563. grd_unsl.row = cur_row;
  5564. fGridRowClick();
  5565. }
  5566. ]]>
  5567. </script>
  5568. </button>
  5569. <button id="btn_availablebugt" class="btn4_letter5" disabled="true" style="left:112px; top:98px; width:128px; height:22px; ">
  5570. <caption>예산가용액</caption>
  5571. <script type="javascript" ev:event="DOMActivate">
  5572. <![CDATA[
  5573. if (grd_unsl.rows == 1)
  5574. {
  5575. return false;
  5576. }
  5577. var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
  5578. if (sanctyn == "Y")
  5579. {
  5580. return false;
  5581. }
  5582. model.makeValue("/root/source/availablebugtinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
  5583. model.makeValue("/root/source/availablebugtinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
  5584. model.makeValue("/root/source/availablebugtinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
  5585. model.refresh();
  5586. modal("SPRAD00125","","","","","/root/source", "/root/target");
  5587. ]]>
  5588. </script>
  5589. </button>
  5590. <select1 id="cmb_deptflag" ref="/root/hidden/deptflag" class="combo_essential" navindex="-1" appearance="minimal" style="left:404px; top:131px; width:107px; height:19px; ">
  5591. <choices>
  5592. <item>
  5593. <label>귀속부서</label>
  5594. <value>1</value>
  5595. </item>
  5596. <item>
  5597. <label>예산부서</label>
  5598. <value>2</value>
  5599. </item>
  5600. </choices>
  5601. </select1>
  5602. <select1 id="cmb_aplnflag" ref="/root/send/data3/aplnflag" class="combo_essential" navindex="-1" appearance="minimal" style="left:875px; top:100px; width:38px; height:19px; text-align:right; ">
  5603. <choices>
  5604. <item>
  5605. <label>1</label>
  5606. <value>1</value>
  5607. </item>
  5608. <item>
  5609. <label>2</label>
  5610. <value>2</value>
  5611. </item>
  5612. </choices>
  5613. </select1>
  5614. <caption id="caption61" class="cell_1" style="left:215px; top:370px; width:74px; height:23px; text-align:center; ">전표상태</caption>
  5615. <input id="ipt_slipstatus" ref="/root/hidden/slipstatus" class="input_default" navindex="-1" editable="false" style="left:291px; top:372px; width:110px; height:19px; font-weight:bold; text-align:center; "/>
  5616. <button id="btn_9" class="btn2_letter4" style="left:1131px; top:372px; width:64px; height:19px; text-align:left; ">
  5617. <caption>엑셀출력</caption>
  5618. <script type="javascript" ev:event="DOMActivate">
  5619. <![CDATA[
  5620. radfSaveExcel(grd_unsl);
  5621. ]]>
  5622. </script>
  5623. </button>
  5624. <caption id="caption64" class="cell_1" style="left:806px; top:209px; width:110px; height:23px; ">기표부서</caption>
  5625. <input id="ipt_slipdeptnm" ref="/root/hidden/condition/slipdeptnm" class="input_essential" disabled="true" visibility="visible" style="left:1023px; top:212px; width:170px; height:19px; ">
  5626. <script type="javascript" ev:event="xforms-value-changed">
  5627. <![CDATA[
  5628. racfDeptValidCheck("slipdeptcd,slipdeptnm"); // 전체부서
  5629. fUpdateSlipDeptCD();
  5630. ]]>
  5631. </script>
  5632. </input>
  5633. <button id="btn_slipdeptcd" class="icon_search" disabled="false" navindex="-1" visibility="hidden" style="left:1003px; top:212px; width:16px; height:16px; ">
  5634. <caption/>
  5635. <script type="javascript" ev:event="DOMActivate">
  5636. <![CDATA[
  5637. fOpenPopupDeptHelp(ipt_slipdeptcd, "slipdeptcd,slipdeptnm"); //전체부서
  5638. fUpdateSlipDeptCD();
  5639. ]]>
  5640. </script>
  5641. </button>
  5642. <input id="ipt_slipdeptcd" ref="/root/hidden/condition/slipdeptcd" class="input_essential" disabled="true" navindex="-1" visibility="visible" maxlength="11" style="left:918px; top:212px; width:102px; height:19px; ">
  5643. <script type="javascript" ev:event="xforms-value-changed">
  5644. <![CDATA[
  5645. racfDeptValidCheck("slipdeptcd,slipdeptnm"); // 전체부서
  5646. fUpdateSlipDeptCD();
  5647. model.setFocus("ipt_slipdeptnm");
  5648. ]]>
  5649. </script>
  5650. </input>
  5651. <caption id="cap_etcprofcnt" visibility="hidden" style="left:757px; top:215px; width:43px; height:20px; ">[매수]</caption>
  5652. <caption id="cap_costbelongdeptcd" class="cell_1" style="left:805px; top:310px; width:110px; height:23px; ">실사용부서</caption>
  5653. <input id="ipt_costbelongdeptnm" ref="/root/main/unsl_one/costbelongdeptnm" class="input_essential" disabled="true" style="left:1022px; top:312px; width:170px; height:19px; ">
  5654. <script type="javascript" ev:event="xforms-value-changed">
  5655. <![CDATA[
  5656. racfDeptValidCheck("costbelongdeptcd,costbelongdeptnm"); // 전체부서
  5657. model.refresh();
  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. <button id="btn_costbelongdeptcd" class="icon_search" disabled="false" navindex="-1" visibility="hidden" style="left:1002px; top:312px; width:16px; height:16px; ">
  5670. <caption/>
  5671. <script type="javascript" ev:event="DOMActivate">
  5672. <![CDATA[
  5673. fOpenPopupDeptHelp(ipt_costbelongdeptcd, "costbelongdeptcd,costbelongdeptnm"); //전체부서
  5674. model.refresh();
  5675. ]]>
  5676. </script>
  5677. </button>
  5678. <input id="ipt_costbelongdeptcd" ref="/root/main/unsl_one/costbelongdeptcd" class="input_essential" disabled="true" navindex="-1" maxlength="11" style="left:917px; top:312px; width:102px; height:19px; ">
  5679. <script type="javascript" ev:event="xforms-value-changed">
  5680. <![CDATA[
  5681. racfDeptValidCheck("costbelongdeptcd,costbelongdeptnm"); // 전체부서
  5682. model.refresh();
  5683. ]]>
  5684. </script>
  5685. <script type="javascript" ev:event="onkeypress">
  5686. <![CDATA[
  5687. if(event.keyCode == 13)
  5688. {
  5689. model.setFocus("ipt_acntnm");
  5690. }
  5691. ]]>
  5692. </script>
  5693. </input>
  5694. <button id="btn_bugtmngtdeptcd" class="icon_search" disabled="true" navindex="-1" style="left:1002px; top:132px; width:16px; height:16px; ">
  5695. <caption/>
  5696. <script type="javascript" ev:event="DOMActivate">
  5697. <![CDATA[
  5698. ]]>
  5699. </script>
  5700. </button>
  5701. <input id="ipt_bugtmngtdeptnm" ref="/root/main/unsl_one/bugtmngtdeptnm" class="input_essential" disabled="true" style="left:1023px; top:132px; width:170px; height:19px; ">
  5702. <script type="javascript" ev:event="xforms-value-changed">
  5703. <![CDATA[
  5704. ]]>
  5705. </script>
  5706. <script type="javascript" ev:event="onkeypress">
  5707. <![CDATA[
  5708. if(event.keyCode == 13)
  5709. {
  5710. model.setFocus("ipt_acntnm");
  5711. }
  5712. ]]>
  5713. </script>
  5714. </input>
  5715. <caption id="cpt_bugtmngtdeptnm" class="cell_1" style="left:805px; top:130px; width:110px; height:23px; ">예산관리부서</caption>
  5716. <input id="ipt_bugtmngtdeptcd" ref="/root/main/unsl_one/bugtmngtdeptcd" class="input_essential" disabled="true" navindex="-1" maxlength="11" style="left:917px; top:132px; width:103px; height:19px; ">
  5717. <script type="javascript" ev:event="xforms-value-changed">
  5718. <![CDATA[
  5719. ]]>
  5720. </script>
  5721. <script type="javascript" ev:event="onkeypress">
  5722. <![CDATA[
  5723. if(event.keyCode == 13)
  5724. {
  5725. model.setFocus("ipt_acntnm");
  5726. }
  5727. ]]>
  5728. </script>
  5729. </input>
  5730. <line id="line1" class="line_1" style="x1:0px; y1:125px; x2:1195px; y2:125px; "/>
  5731. <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; "/>
  5732. <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; "/>
  5733. <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; "/>
  5734. <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; "/>
  5735. <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>
  5736. <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; "/>
  5737. <output id="opt_number10" visibility="hidden" style="left:516px; top:99px; width:25px; height:19px; font-family:바탕체; font-size:8pt; font-weight:bold; color:#ff0000; text-align:center; vertical-align:middle; ">10</output>
  5738. <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; "/>
  5739. <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>
  5740. <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>
  5741. <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>
  5742. <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>
  5743. <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; "/>
  5744. <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>
  5745. <group id="grp_apln" visibility="hidden" style="left:620px; top:125px; width:575px; height:160px; background-color:#6bb5fe; ">
  5746. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:4px; width:565px; height:151px; "/>
  5747. <button id="btn_saveapln" class="btn4_letter2" style="left:448px; top:129px; width:56px; height:22px; ">
  5748. <caption>저장</caption>
  5749. <script type="javascript" ev:event="DOMActivate">
  5750. <![CDATA[
  5751. var dlgRslt = messageBox("결재선을", "Q002");
  5752. if(dlgRslt == 6)
  5753. { //<group id="grp_apln" visibility="hidden" style="left:769px; top:125px; width:425px; height:135px; background-color:#6bb5fe; ">
  5754. model.setValue("/root/main/apln/instcd", model.getValue("/root/main/unsl_one/instcd"));
  5755. model.setValue("/root/main/apln/deptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  5756. model.setValue("/root/main/apln/aplnflag", model.getValue("/root/send/data3/aplnflag"));
  5757. if(model.getValue("/root/main/apln/deptcd")=="4030100000"){
  5758. model.setValue("/root/main/apln/iudflag" , "U");
  5759. }
  5760. if(misfSave("TXRAD00151"))
  5761. {
  5762. grp_apln.visible = false;
  5763. // if(grd_unsl.rows > 1)
  5764. // {
  5765. // if(grd_unsl.rowStatus(1) != 1 && grd_unsl.rowStatus(1) != 3)
  5766. // {
  5767. fQueryClick();
  5768. // }
  5769. // }
  5770. }
  5771. }
  5772. ]]>
  5773. </script>
  5774. </button>
  5775. <caption id="caption62" class="cell_1" style="left:9px; top:54px; width:45px; height:21px; ">발 의</caption>
  5776. <caption id="caption51" class="cell_1" style="left:275px; top:30px; width:70px; height:23px; text-align:center; ">결재선 4</caption>
  5777. <caption id="caption63" class="cell_1" style="left:9px; top:77px; width:45px; height:20px; ">재 무</caption>
  5778. <line id="line12" class="line_2" style="x1:8px; y1:98px; x2:419px; y2:98px; "/>
  5779. <caption id="caption53" class="cell_1" style="left:348px; top:30px; width:70px; height:23px; text-align:center; ">결재선 5</caption>
  5780. <caption id="caption55" class="tit_2" style="left:13px; top:10px; width:131px; height:13px; ">결재선지정</caption>
  5781. <line id="line15" class="line_1" style="x1:8px; y1:25px; x2:564px; y2:25px; "/>
  5782. <line id="line16" class="line_2" style="x1:8px; y1:76px; x2:419px; y2:76px; "/>
  5783. <caption id="caption49" class="cell_1" style="left:202px; top:30px; width:70px; height:23px; text-align:center; ">결재선 3</caption>
  5784. <caption id="caption27" class="cell_1" style="left:56px; top:30px; width:70px; height:23px; text-align:center; ">결재선 1</caption>
  5785. <caption id="caption28" class="cell_1" style="left:129px; top:30px; width:70px; height:23px; text-align:center; ">결재선 2</caption>
  5786. <button id="btn_closeapln" class="btn4_letter2" style="left:508px; top:129px; width:56px; height:22px; ">
  5787. <caption>닫기</caption>
  5788. <script type="javascript" ev:event="DOMActivate">
  5789. <![CDATA[
  5790. grp_apln.visible = false;
  5791. ]]>
  5792. </script>
  5793. </button>
  5794. <input id="ipt_approval11" ref="/root/main/apln/approval11" class="input_search" style="left:56px; top:56px; width:70px; height:19px; "/>
  5795. <input id="ipt_approval12" ref="/root/main/apln/approval12" class="input_search" style="left:129px; top:56px; width:70px; height:19px; "/>
  5796. <input id="ipt_approval13" ref="/root/main/apln/approval13" class="input_search" style="left:202px; top:56px; width:70px; height:19px; "/>
  5797. <input id="ipt_approval14" ref="/root/main/apln/approval14" class="input_search" style="left:275px; top:56px; width:70px; height:19px; "/>
  5798. <input id="ipt_approval15" ref="/root/main/apln/approval15" class="input_search" style="left:348px; top:56px; width:70px; height:19px; "/>
  5799. <input id="ipt_approval21" ref="/root/main/apln/approval21" class="input_search" style="left:56px; top:78px; width:70px; height:19px; "/>
  5800. <input id="ipt_approval22" ref="/root/main/apln/approval22" class="input_search" style="left:129px; top:78px; width:70px; height:19px; "/>
  5801. <input id="ipt_approval23" ref="/root/main/apln/approval23" class="input_search" style="left:202px; top:78px; width:70px; height:19px; "/>
  5802. <input id="ipt_approval24" ref="/root/main/apln/approval24" class="input_search" style="left:275px; top:78px; width:70px; height:19px; "/>
  5803. <input id="ipt_approval25" ref="/root/main/apln/approval25" class="input_search" style="left:348px; top:78px; width:70px; height:19px; "/>
  5804. <caption id="caption60" class="cell_1" style="left:421px; top:30px; width:70px; height:23px; text-align:center; ">결재선 6</caption>
  5805. <input id="ipt_approval26" ref="/root/main/apln/approval26" class="input_search" style="left:421px; top:78px; width:70px; height:19px; "/>
  5806. <input id="ipt_approval16" ref="/root/main/apln/approval16" class="input_search" style="left:421px; top:56px; width:70px; height:19px; "/>
  5807. <caption id="caption65" class="cell_1" style="left:9px; top:100px; width:45px; height:20px; ">전 결</caption>
  5808. <caption id="caption66" class="cell_1" style="left:494px; top:30px; width:70px; height:23px; text-align:center; ">참 조</caption>
  5809. <input id="ipt_approval27" ref="/root/main/apln/approval27" class="input_search" disabled="true" style="left:494px; top:78px; width:70px; height:19px; "/>
  5810. <input id="ipt_approval17" ref="/root/main/apln/approval17" class="input_search" style="left:494px; top:56px; width:70px; height:19px; "/>
  5811. <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; ">
  5812. <choices>
  5813. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5814. <label ref="nm"/>
  5815. <value ref="cd"/>
  5816. </itemset>
  5817. </choices>
  5818. </select1>
  5819. <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; ">
  5820. <choices>
  5821. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5822. <label ref="nm"/>
  5823. <value ref="cd"/>
  5824. </itemset>
  5825. </choices>
  5826. </select1>
  5827. <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; ">
  5828. <choices>
  5829. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5830. <label ref="nm"/>
  5831. <value ref="cd"/>
  5832. </itemset>
  5833. </choices>
  5834. </select1>
  5835. <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; ">
  5836. <choices>
  5837. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5838. <label ref="nm"/>
  5839. <value ref="cd"/>
  5840. </itemset>
  5841. </choices>
  5842. </select1>
  5843. <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; ">
  5844. <choices>
  5845. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5846. <label ref="nm"/>
  5847. <value ref="cd"/>
  5848. </itemset>
  5849. </choices>
  5850. </select1>
  5851. <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; ">
  5852. <choices>
  5853. <itemset nodeset="/root/init/arbitrarylist/arbitrary">
  5854. <label ref="nm"/>
  5855. <value ref="cd"/>
  5856. </itemset>
  5857. </choices>
  5858. </select1>
  5859. </group>
  5860. <button id="button3" class="btn4_letter4" visibility="hidden" style="left:374px; top:98px; width:104px; height:22px; ">
  5861. <caption>그룹웨어</caption>
  5862. <script type="javascript" ev:event="DOMActivate">
  5863. <![CDATA[
  5864. open("SPRAS00100","","","","","", "", "" );
  5865. model.setValue("/root/temp2/slipcmt" , model.getValue("/root/hidden/condition/slipcmt"));
  5866. model.setValue("/root/temp2/amt" , model.getValue("/root/main/unsl_one/amt"));
  5867. model.refresh();
  5868. ]]>
  5869. </script>
  5870. </button>
  5871. <caption id="caption68" class="cell_1" style="left:934px; top:285px; width:65px; height:23px; ">보조과목</caption>
  5872. <select1 id="combo1" ref="/root/main/unsl_one/cdbojo1" appearance="minimal" style="left:1000px; top:285px; width:190px; height:19px; ">
  5873. <choices>
  5874. <itemset nodeset="/root/init/combo4/acntcmb">
  5875. <label ref="bojonm"/>
  5876. <value ref="bojocd"/>
  5877. </itemset>
  5878. </choices>
  5879. </select1>
  5880. </group>
  5881. </xhtml:body>
  5882. </xhtml:html>