123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>전표입력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <unsl/>
- <unsl_one>
- <instcd/>
- <unsldd/>
- <unslno/>
- <unslseqno/>
- <projectid/>
- <projectnm/>
- <slipflag/>
- <slipkind/>
- <acountingflag/>
- <drcrflag>D</drcrflag>
- <acntcd/>
- <acntnm/>
- <suppitemcd/>
- <bugtcd>01</bugtcd>
- <bugtnm/>
- <custflag/>
- <custcd/>
- <custnm/>
- <costcntrdeptcd/>
- <costcntrdeptnm/>
- <bugtmngtdeptcd/>
- <bugtmngtdeptnm/>
- <costbelongdeptcd/>
- <costbelongdeptnm/>
- <slipdeptcd/>
- <slipdeptnm/>
- <fundscd/>
- <profflag/>
- <notefactnm1/>
- <notefactcd1/>
- <notefactspec1/>
- <notefactnm2/>
- <notefactcd2/>
- <notefactspec2/>
- <notefactnm3/>
- <notefactcd3/>
- <notefactspec3/>
- <notefactnm4/>
- <notefactcd4/>
- <notefactspec4/>
- <notefactnm5/>
- <notefactcd5/>
- <notefactspec5/>
- <notefactnm6/>
- <notefactcd6/>
- <notefactspec6/>
- <etcnotefact/>
- <autjournflag/>
- <profdata/>
- <seqno/>
- <defrayreqdd/>
- <bugtaprvyn/>
- <bugtautoaprvyn/>
- <bugtearncostflag/>
- <unslwrit/>
- <usernm/>
- <sanctyn/>
- <dramt/>
- <cramt/>
- <amt/>
- <bugtamt>0</bugtamt>
- <sanctno/>
- <rlaacntseqno/>
- <supacntnm/>
- <slipcmt/>
- <approval11/>
- <approval12/>
- <approval13/>
- <approval14/>
- <approval15/>
- <approval16/>
- <approval17/>
- <approval21/>
- <approval22/>
- <approval23/>
- <approval24/>
- <approval25/>
- <approval26/>
- <approval27/>
- <orgbugtamtsum/>
- <revbugtamtsum/>
- <bugtexecamtsum/>
- <bugtflag/>
- <bugtflagnm/>
- <servseqno/>
- <etcprofcnt/>
- <ymdaction/>
- <cdbojo1/>
- <ymdpum/>
- </unsl_one>
- <transacnt/>
- <slipproflist/>
- <bugtacptlist/>
- <apln>
- <approval11/>
- <approval12/>
- <approval13/>
- <approval14/>
- <approval15/>
- <approval16/>
- <approval17/>
- <approval21/>
- <approval22/>
- <approval23/>
- <approval24/>
- <approval25/>
- <approval26/>
- <approval27/>
- <iudflag/>
- <instcd/>
- <deptcd/>
- <aplnflag/>
- <arbitrary1/>
- <arbitrary2/>
- <arbitrary3/>
- <arbitrary4/>
- <arbitrary5/>
- <arbitrary6/>
- </apln>
- <list/>
- <slipsearch>
- <unsldd/>
- <unslno/>
- </slipsearch>
- <vincostunsl/>
- </main>
- <send>
- <data1>
- <instcd/>
- <slipdd/>
- <slipflag/>
- </data1>
- <data2>
- <instcd/>
- <acntcd/>
- <drcrflag/>
- </data2>
- <data3>
- <instcd/>
- <unsldd/>
- <unslno/>
- <slipdeptcd/>
- <unslddno/>
- <aplnflag>1</aplnflag>
- <costcntrdeptcd/>
- <drcrcmt/>
- </data3>
- <unsl/>
- <data4>
- <mngtcd/>
- <instcd/>
- </data4>
- <data5>
- <instcd/>
- <unsldd/>
- <deptcd/>
- <refcond/>
- <retrnm/>
- <sqlkind/>
- <drcrflag/>
- </data5>
- <data6>
- <instcd/>
- <unsldd/>
- <unslno/>
- </data6>
- <transacntlist>
- <transacnt/>
- </transacntlist>
- <paydedu>
- <acntcd/>
- </paydedu>
- </send>
- <hidden>
- <acntcdinfo>
- <instcd/>
- <acntcd/>
- <acntnm/>
- <acntflag/>
- <slipyn/>
- <expsprofyn/>
- <balflag/>
- <custflag/>
- <notecd1/>
- <notecdnm1/>
- <mngtkind1/>
- <inptkind1/>
- <frmt1/>
- <popwnd1/>
- <notecd2/>
- <notecdnm2/>
- <mngtkind2/>
- <inptkind2/>
- <frmt2/>
- <popwnd2/>
- <notecd3/>
- <notecdnm3/>
- <mngtkind3/>
- <inptkind3/>
- <frmt3/>
- <popwnd3/>
- <notecd4/>
- <notecdnm4/>
- <mngtkind4/>
- <inptkind4/>
- <frmt4/>
- <popwnd4/>
- <notecd5/>
- <notecdnm5/>
- <mngtkind5/>
- <inptkind5/>
- <frmt5/>
- <popwnd5/>
- <notecd6/>
- <notecdnm6/>
- <mngtkind6/>
- <inptkind6/>
- <frmt6/>
- <popwnd6/>
- <bugtcostacntcd/>
- <bugtuseyn/>
- <bugtcntryn/>
- <bugtautoaprvyn/>
- <fundscd/>
- <suppitemcd/>
- <option1/>
- <option2/>
- <option3/>
- <option4/>
- <option5/>
- <option6/>
- </acntcdinfo>
- <acntcdcombo>
- <notecombo1>
- <cdnm/>
- <cdid/>
- </notecombo1>
- <notecombo2>
- <cdnm/>
- <cdid/>
- </notecombo2>
- <notecombo3>
- <cdnm/>
- <cdid/>
- </notecombo3>
- <notecombo4>
- <cdnm/>
- <cdid/>
- </notecombo4>
- <notecombo5>
- <cdnm/>
- <cdid/>
- </notecombo5>
- <notecombo6>
- <cdnm/>
- <cdid/>
- </notecombo6>
- </acntcdcombo>
- <condition>
- <slipkind>3</slipkind>
- <unsldd/>
- <unslno/>
- <slipflag>1</slipflag>
- <projectid/>
- <projectnm/>
- <instcd/>
- <slipcmt/>
- <defrayreqdd/>
- <slipdeptcd/>
- <slipdeptnm/>
- <costbelongdeptcd/>
- <costbelongdeptnm/>
- <drcrcmt>D</drcrcmt>
- <acountingflag>1</acountingflag>
- <ymdaction/>
- <ymdpum/>
- </condition>
- <maxslipno>
- <unslno/>
- </maxslipno>
- <maxslipseqno>00000</maxslipseqno>
- <drsum/>
- <crsum/>
- <unsl_one>
- <instcd/>
- <unsldd/>
- <unslno/>
- <unslseqno/>
- <projectid/>
- <projectnm/>
- <slipflag/>
- <slipkind/>
- <acountingflag/>
- <drcrflag/>
- <acntcd/>
- <acntnm/>
- <suppitemcd/>
- <bugtcd/>
- <bugtnm/>
- <custflag/>
- <custcd/>
- <custnm/>
- <costcntrdeptcd/>
- <costcntrdeptnm/>
- <bugtmngtdeptcd/>
- <bugtmngtdeptnm/>
- <costbelongdeptcd/>
- <costbelongdeptnm/>
- <slipdeptcd/>
- <slipdeptnm/>
- <fundscd/>
- <profflag/>
- <notefactnm1/>
- <notefactcd1/>
- <notefactspec1/>
- <notefactnm2/>
- <notefactcd2/>
- <notefactspec2/>
- <notefactnm3/>
- <notefactcd3/>
- <notefactspec3/>
- <notefactnm4/>
- <notefactcd4/>
- <notefactspec4/>
- <notefactnm5/>
- <notefactcd5/>
- <notefactspec5/>
- <notefactnm6/>
- <notefactcd6/>
- <notefactspec6/>
- <etcnotefact/>
- <autjournflag/>
- <profdata/>
- <seqno/>
- <defrayreqdd/>
- <bugtaprvyn/>
- <bugtautoaprvyn/>
- <bugtearncostflag/>
- <unslwrit/>
- <usernm/>
- <sanctyn/>
- <dramt/>
- <cramt/>
- <amt/>
- <bugtamt/>
- <sanctno/>
- <rlaacntseqno/>
- <supacntnm/>
- <slipcmt/>
- <approval11/>
- <approval12/>
- <approval13/>
- <approval14/>
- <approval15/>
- <approval16/>
- <approval17/>
- <approval21/>
- <approval22/>
- <approval23/>
- <approval24/>
- <approval25/>
- <approval26/>
- <approval27/>
- <orgbugtamtsum/>
- <revbugtamtsum/>
- <bugtexecamtsum/>
- <bugtflag/>
- <bugtflagnm/>
- <servseqno/>
- <etcprofcnt/>
- </unsl_one>
- <slipyn>Y</slipyn>
- <allexpsacntsum/>
- <expsacntsum/>
- <expsacnt/>
- <rptparm>
- <instcd/>
- <instnm/>
- <slipno/>
- <reprtyn/>
- <bugtinfocnt/>
- <profinfocnt/>
- <transinfocnt/>
- <dayworkerprntlistcnt/>
- <priprofprntlistcnt/>
- <etcprofprntlistcnt/>
- <retrprofprntlistcnt/>
- <servprofprntlistcnt/>
- <expansion/>
- <preview/>
- </rptparm>
- <orchreturn>
- <seqno/>
- <amt/>
- <etcnotefact/>
- <incmtax/>
- <resdntax/>
- </orchreturn>
- <prntlist>
- <dayworkerprntlist/>
- <priprofprntlist/>
- <etcprofprntlist/>
- </prntlist>
- <retexpacntsum/>
- <chklist/>
- <tempnode>
- <emplno/>
- <emplnm/>
- </tempnode>
- <acntyy/>
- <prev_prof/>
- <delaact>
- <transacnt>
- <instcd/>
- <unsldd/>
- <unslno/>
- <jobflag/>
- </transacnt>
- </delaact>
- <projectidlist/>
- <userinfo>
- <unslwrit/>
- <usernm/>
- </userinfo>
- <copyshiftslip>
- <newunsldd/>
- <newunslno/>
- </copyshiftslip>
- <seizureyn>N</seizureyn>
- <kijeomitlist/>
- <instcardseqnoinfo>
- <instcardseqno/>
- </instcardseqnoinfo>
- <deptflag>1</deptflag>
- <slipstatus/>
- </hidden>
- <init>
- <R0008list>
- <R0008>
- <cdnm/>
- <cdid/>
- </R0008>
- </R0008list>
- <R0017list>
- <R0017>
- <cdnm/>
- <cdid/>
- </R0017>
- </R0017list>
- <Z0007list>
- <Z0007>
- <cdnm/>
- <cdid/>
- </Z0007>
- </Z0007list>
- <profflaglist>
- <profflag>
- <nm>법인카드</nm>
- <cd>1</cd>
- </profflag>
- <profflag>
- <nm>개인신용카드</nm>
- <cd>2</cd>
- </profflag>
- <profflag>
- <nm>현금영수증</nm>
- <cd>3</cd>
- </profflag>
- <profflag>
- <nm>세금계산서</nm>
- <cd>4</cd>
- </profflag>
- <profflag>
- <nm>계산서</nm>
- <cd>5</cd>
- </profflag>
- <profflag>
- <nm>기타</nm>
- <cd>6</cd>
- </profflag>
- <profflag>
- <nm>근로소득</nm>
- <cd>7</cd>
- </profflag>
- <profflag>
- <nm>비과세근로소득</nm>
- <cd>8</cd>
- </profflag>
- <profflag>
- <nm>퇴직소득</nm>
- <cd>9</cd>
- </profflag>
- <profflag>
- <nm>일용근로소득</nm>
- <cd>A</cd>
- </profflag>
- <profflag>
- <nm>사업소득</nm>
- <cd>B</cd>
- </profflag>
- <profflag>
- <nm>기타소득</nm>
- <cd>C</cd>
- </profflag>
- </profflaglist>
- <custflaglist>
- <custflag>
- <nm>거래처</nm>
- <cd>1</cd>
- </custflag>
- <custflag>
- <nm>부서</nm>
- <cd>3</cd>
- </custflag>
- <custflag>
- <nm>직원</nm>
- <cd>4</cd>
- </custflag>
- <custflag>
- <nm>개인</nm>
- <cd>5</cd>
- </custflag>
- <custflag>
- <nm>기타</nm>
- <cd>9</cd>
- </custflag>
- </custflaglist>
- <fundscdlist>
- <fundscd>
- <nm/>
- <cd/>
- </fundscd>
- <fundscd>
- <nm>의료수입</nm>
- <cd>1100</cd>
- </fundscd>
- <fundscd>
- <nm>의료외수입</nm>
- <cd>1900</cd>
- </fundscd>
- <fundscd>
- <nm>인건비</nm>
- <cd>2100</cd>
- </fundscd>
- <fundscd>
- <nm>재료비</nm>
- <cd>2200</cd>
- </fundscd>
- <fundscd>
- <nm>관리운영비</nm>
- <cd>2300</cd>
- </fundscd>
- <fundscd>
- <nm>의료외지출</nm>
- <cd>2900</cd>
- </fundscd>
- <fundscd>
- <nm>자산매각</nm>
- <cd>3100</cd>
- </fundscd>
- <fundscd>
- <nm>자산취득</nm>
- <cd>4100</cd>
- </fundscd>
- <fundscd>
- <nm>기본금증가</nm>
- <cd>5100</cd>
- </fundscd>
- <fundscd>
- <nm>기본금감소</nm>
- <cd>6100</cd>
- </fundscd>
- <fundscd>
- <nm>예금인출</nm>
- <cd>7100</cd>
- </fundscd>
- <fundscd>
- <nm>금융수입</nm>
- <cd>7200</cd>
- </fundscd>
- <fundscd>
- <nm>차입실행</nm>
- <cd>7300</cd>
- </fundscd>
- <fundscd>
- <nm>대여금회수</nm>
- <cd>7400</cd>
- </fundscd>
- <fundscd>
- <nm>예금불입</nm>
- <cd>8100</cd>
- </fundscd>
- <fundscd>
- <nm>금융비용</nm>
- <cd>8200</cd>
- </fundscd>
- <fundscd>
- <nm>차입상환</nm>
- <cd>8300</cd>
- </fundscd>
- <fundscd>
- <nm>자금대여</nm>
- <cd>8400</cd>
- </fundscd>
- <fundscd>
- <nm>자금이체</nm>
- <cd>9000</cd>
- </fundscd>
- </fundscdlist>
- <code>
- <codelist/>
- </code>
- <arbitrarylist>
- <arbitrary>
- <nm>결재선</nm>
- <cd>1</cd>
- </arbitrary>
- <arbitrary>
- <nm>전결</nm>
- <cd>2</cd>
- </arbitrary>
- <arbitrary>
- <nm>후결</nm>
- <cd>3</cd>
- </arbitrary>
- <arbitrary>
- <nm>대결</nm>
- <cd>4</cd>
- </arbitrary>
- </arbitrarylist>
- <combo4>
- <acntcmb>
- <bojocd/>
- <bojonm/>
- </acntcmb>
- </combo4>
- </init>
- <temp>
- <cardcd/>
- <cardno/>
- </temp>
- <temp2>
- <purgrpno/>
- <usedd/>
- <unslwrit/>
- <slipcmt/>
- <amt/>
- <cmt/>
- <tranflag/>
- </temp2>
- <target>
- </target>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" resultref="/root/init/code/codelist"/>
- <submission id="TRRAD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/init/combo4"/>
- <submission id="TRRAD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/unsl"/>
- <submission id="TRRAD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/maxslipno"/>
- <submission id="TRRAD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/acntcdinfo"/>
- <submission id="TRRAD00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/chklist"/>
- <submission id="TRRAD00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/transacnt"/>
- <submission id="TRRAD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/prntlist"/>
- <submission id="TXRAD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsl" resultref="/root/main/unsl"/>
- <submission id="TXRAD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/unsl"/>
- <bind id="bind_caption13" ref="/root/hidden/drsum" calculate="sum(/root/main/unsl/dramt)"/>
- <bind id="bind_caption14" ref="/root/hidden/crsum" calculate="sum(/root/main/unsl/cramt)"/>
- <submission id="TRRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/apln"/>
- <submission id="TXRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/apln" resultref="/root/temp"/>
- <submission id="TRRAD90107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/main/list"/>
- <submission id="TRRAD00152" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/kijeomitlist"/>
- <submission id="TRRAD00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/slipproflist"/>
- <submission id="TRRAD00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/bugtacptlist"/>
- <submission id="TXRAD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/condition" resultref="/root/temp"/>
- <submission id="TRRAD00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/vincostunsl"/>
- <submission id="TXRAD00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp2" resultref="/root/temp2"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var cashcd = ""; //현금 계정코드 default 값 "11101001"
- var cashcdnm = ""; //현금 계정명 default 값 "현금"
- var expsacnt = ""; //입출금 기본계정 default 값 - 기업자유예금 "11101004"
- var expsacntnm = ""; //입출금 기본계정 default 값 "기업자유예금"
- var acntdept = ""; //재무팀 부서코드 default 값 "4030100000"
- var bugtdept = ""; //기획팀 부서코드 default 값 "4060100000"
- var incmtax = ""; //소득세 예수금 계정
- var incmtaxnm = ""; //소득세 예수금 계정명
- var resdntax = ""; //주민세 예수금 계정
- var resdntaxnm = ""; //주민세 예수금 계정명
- var isacntdept = false;
- //var servcd = "";
- //var servnm = "";
- var seizurecd = "";
- var seizurenm = "";
- var sExpsacnt_Entrregno = ""; //입출금 기본계좌의 거래처코드
- var sExpsacnt_Custnm = ""; //입출금 기본계좌의 거래처명
- var sExpsacnt_Aactcd = ""; //입출금 기본계좌의 계좌코드
- var sExpsacnt_Aactno = ""; //입출금 기본계좌의 계좌번호
- var arrCashAcntCd = new Array();
- var arrTransAcntCd = new Array();
-
- var expansion = radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition3');
- //========================================================================================
- //화면 권한 체크
- //========================================================================================
- function fCheckAuth()
- {
- // btn_search.disabled = !checkAuth("R") ;
- // btn_save.disabled = !checkAuth("X") ;
- // btn_delete.disabled = !checkAuth("X") ;
- }
-
- //========================================================================================
- //행 추가 부분 값
- //========================================================================================
-
- function misfGridIUDs (pGrid_Name, pIAD_Flag) {
- if (pGrid_Name.elementName != "xforms:datagrid") {
- return;
- }
-
- model.setfocus(pGrid_Name.attribute("id"));
-
- if (pIAD_Flag == "A" || pIAD_Flag == "I") {
- pGrid_Name.dispatch("onrowchanged");
- misfGridDefaultSet(pGrid_Name);
-
- pGrid_Name.col = 1;
- }
- }
- //========================================================================================
- //초기화
- //========================================================================================
- function fInitialize()
- {
- var sToday = getCurrentDate().toString();
- var instcd = getUserInfo("dutplceinstcd");
- var deptcd = getUserInfo("dutplcecd");
- var deptnm = getUserInfo("dutplcenm");
- var cdgbn;
-
- zbcfGetCodeList(new Array("R0008","R0017","Z0007"), new Array("/root/init/R0008list","/root/init/R0017list","/root/init/Z0007list"));
- model.removenode("/root/main/unsl");
- model.refresh();
- //=========기초정보(상수값) Loding===================================================
- model.setValue("/root/send/data4/instcd", instcd);
- model.setValue("/root/send/data4/mngtcd", "%");
- model.refresh();
- submit("TRRAZ00001");
-
- for (i=1; i<=instance1.selectNodes("root/init/code/code/codelist").length; i++)
- {
- cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
- if (cdgbn == "acntdept")
- {
- acntdept = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- }
- else if (cdgbn == "bugtdept")
- {
- bugtdept = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- }
- else if (cdgbn == "cashcd")
- {
- cashcd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- cashcdnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
- }
- else if (cdgbn == "expsacnt")
- {
- expsacnt = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- expsacntnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
- sExpsacnt_Entrregno = model.getValue("/root/init/code/code/codelist[" + i + "]/entrregno");
- sExpsacnt_Custnm = model.getValue("/root/init/code/code/codelist[" + i + "]/custnm");
- sExpsacnt_Aactcd = model.getValue("/root/init/code/code/codelist[" + i + "]/aactcd");
- sExpsacnt_Aactno = model.getValue("/root/init/code/code/codelist[" + i + "]/aactno");
- model.setValue("/root/hidden/expsacnt",expsacnt);
- }
- else if (cdgbn == "incmtax")
- {
- incmtax = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- incmtaxnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
- }
- else if (cdgbn == "resdntax")
- {
- resdntax = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- resdntaxnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
- }
- else if (cdgbn == "cashacntcd")
- {
- arrCashAcntCd[arrCashAcntCd.length] = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- }
- /*else if (cdgbn == "serveacnt")
- {
- servcd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- servnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
- }*/
- else if (cdgbn == "seizureacnt")
- {
- seizurecd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
- seizurenm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
- }
- }
- for(var i = 0 ; i < arrCashAcntCd.length ; i++)
- {
- if(arrCashAcntCd[i] != cashcd)
- {
- arrTransAcntCd[arrTransAcntCd.length] = arrCashAcntCd[i];
- }
- }
- if(arrTransAcntCd.length != arrCashAcntCd.length-1)
- {
- messageBox("관리코드 계정 setting 이 잘못되었습니다. 운영자에게 문의하세요", "I000");
- window.close();
- }
-
- // alert("cashcd : " + cashcd );
- // alert("expsacnt : " + expsacnt );
- // alert("expsacntnm : " + expsacntnm );
- // alert("acntdept : " + acntdept );
- // alert("incmtax : " + incmtax );
- // alert("incmtaxnm : " + incmtaxnm );
- // alert("resdntax : " + resdntax );
- // alert("resdntaxnm : " + resdntaxnm );
- // alert("isacntdept : " + isacntdept );
- // alert("sExpsacnt_Entrregno: " + sExpsacnt_Entrregno);
- // alert("sExpsacnt_Custnm : " + sExpsacnt_Custnm );
- // alert("sExpsacnt_Aactcd : " + sExpsacnt_Aactcd );
- // alert("sExpsacnt_Aactno : " + sExpsacnt_Aactno );
- //=============================================================
- model.setValue("/root/main/unsl_one/costcntrdeptcd", deptcd);
- model.setValue("/root/main/unsl_one/costcntrdeptnm", deptnm);
- model.setValue(ipt_costbelongdeptcd.attribute("ref"), deptcd);
- model.setValue(ipt_costbelongdeptnm.attribute("ref"), deptnm);
- model.setValue("/root/hidden/condition/slipdeptcd", deptcd);
- model.setValue("/root/hidden/condition/slipdeptnm", deptnm);
-
- var pinstcd = model.getValue("/root/target/slipinfo/instcd");
- var pslipdt = model.getValue("/root/target/slipinfo/slipdt");
- var pslipno = model.getValue("/root/target/slipinfo/slipno");
-
- if(instance1.selectNodes("/root/target/slipinfo").length != 0)
- {
- model.setValue("/root/main/unsl_one/instcd",pinstcd);
- model.setValue("/root/hidden/condition/unsldd",pslipdt);
- model.setValue("/root/hidden/condition/unslno",pslipno);
- model.refresh();
-
- fQueryClick();
- }
- else
- {
- model.setValue("/root/hidden/condition/unsldd", sToday);
-
- if (instcd.length > 0)
- {
- model.setValue("/root/main/unsl_one/instcd", instcd);
- }
- else
- {
- if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
- }
-
- model.setValue("/root/main/unsl_one/unslwrit",getUserId());
- model.setValue("/root/main/unsl_one/usernm",getUserName());
-
- model.setValue("/root/send/data1/instcd", instcd);
- model.setValue("/root/send/data1/slipdd", sToday);
- model.setValue("/root/send/data1/slipflag", "U");
- model.refresh();
-
- submit("TRRAD00102");
-
- model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
- model.setValue("/root/main/unsl_one/unslseqno", "00001");
- model.setValue("/root/hidden/maxslipseqno", "00000");
-
- ipt_approval21.disabled = true;
- ipt_approval22.disabled = true;
- ipt_approval23.disabled = true;
- ipt_approval24.disabled = true;
- ipt_approval25.disabled = true;
- ipt_approval26.disabled = true;
-
- fuserInfoSet();
-
- model.refresh();
-
-
- }
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition5') == "Y")
- {
- ipt_costbelongdeptcd.disabled = false;
- ipt_costbelongdeptnm.disabled = false;
- btn_costbelongdeptcd.visible = true;
- ipt_costbelongdeptcd.attribute("width") = "82";
- }
-
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition7') == "Y")
- {
- misfComboComCdList("R0360", rdo_slipkind, "N");
- rdo_slipkind.attribute("cellspacing") = 10;
- btn_transslip.visible = true;
- }
- else
- {
- misfComboComCdList("R0359", rdo_slipkind, "N");
- rdo_slipkind.attribute("cellspacing") = 20;
- btn_transslip.visible = false;
- }
-
- if(getUserInfo("dutplcecd") == acntdept)
- {
- //ipt_projectid.disabled = false;
- //ipt_projectnm.disabled = false;
- //btn_projectid.disabled = false;
-
- btn_proj.visible = true;
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition1') == "Y")
- {
- ipt_slipdeptcd.disabled = false;
- ipt_slipdeptnm.disabled = false;
- btn_slipdeptcd.visible = true;
- ipt_slipdeptcd.attribute("width") = "80";
- }
-
-
- }
-
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition2') == "Y")
- {
- opt_number01.visible = true;
- opt_number02.visible = true;
- opt_number03.visible = true;
- opt_number04.visible = true;
- opt_number05.visible = true;
- opt_number06.visible = true;
- opt_number07.visible = true;
- opt_number08.visible = true;
- opt_number09.visible = true;
- opt_number10.visible = true;
- opt_number11.visible = true;
- // opt_number12.visible = true;
- // opt_number13.visible = true;
- // opt_number14.visible = true;
- // opt_number15.visible = true;
- shp_number01.visible = true;
- shp_number02.visible = true;
- shp_number03.visible = true;
- shp_number04.visible = true;
- shp_number05.visible = true;
- shp_number06.visible = true;
- shp_number07.visible = true;
- shp_number08.visible = true;
- shp_number09.visible = true;
- shp_number10.visible = true;
- shp_number11.visible = true;
- // shp_number12.visible = true;
- // shp_number13.visible = true;
- // shp_number14.visible = true;
- // shp_number15.visible = true;
- }
-
- if(getUserInfo("dutplceinstcd") == "017")
- {
- rdo_drcrcmt.visible = true;
- cap_drcrcmt.visible = true;
- }
- if(getUserInfo("dutplceinstcd") == "103")
- {
- cap_acountingflag.visible = true;
- rdo_acountingflag.visible = true;
- }
-
- fSlipStatus();
- setDefrayreqdd();
- //=======================
- // 기관별 결재라인 예외처리
- //=======================
- if(expansion == "N")
- {
- ipt_approval16.disabled = true;
- ipt_approval26.disabled = true;
- cmb_arbitrary6.disabled = true;
- }
-
-
-
- //=======================
-
- model.setFocus("ipt_slipcmt"); //model.setFocus("ipt_acntnm");
- }
-
- //========================================================================================
- //MAX 전표번호 조회
- //========================================================================================
- function fMaxSlipNo() {
- var sToday = getCurrentDate().toString();
-
- model.setValue("/root/send/data1/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data1/slipdd", model.getValue("/root/hidden/condition/unsldd"));
- model.setValue("/root/send/data1/slipflag", "U");
- model.refresh();
-
- submit("TRRAD00102");
-
- if (model.getValue("/root/hidden/condition/unsldd") == "") {
- model.setValue("/root/hidden/condition/unsldd", sToday);
- }
- model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
- model.setValue("/root/main/unsl_one/unslseqno", "00001");
- model.setValue("/root/hidden/maxslipseqno", "00000");
- model.refresh();
- model.setFocus("ipt_slipcmt"); //model.setFocus("ipt_acntnm");
- }
-
- //========================================================================================
- //각종 코드 Help Open
- //========================================================================================
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
-
- //========================================================================================
- //코드 Validation Check
- //========================================================================================
- function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
- {
- if(event.keyCode == 13 || event.name == "xforms-value-changed")
- {
- document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
- misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
- model.refresh();
-
- if (pNextIndex != "") {
- model.setFocus(pNextIndex);
- }
- }
- }
-
- //========================================================================================
- //계정 코드 정보 조회
- //========================================================================================
- function fAcntInfoSelect() {
- var acntcd = model.getValue("/root/main/unsl_one/acntcd");
- var acntnm = model.getValue("/root/main/unsl_one/acntnm");
-
- if (acntcd != "" && acntnm != "" && acntcd.getTrim() != "" && acntnm.getTrim() != "") {
- model.setValue("/root/send/data2/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data2/acntcd", acntcd);
- model.setValue("/root/send/data2/drcrflag", model.getValue("/root/main/unsl_one/drcrflag"));
- model.refresh();
-
- submit("TRRAD00103");
- }
- //기재사항clear
- fSetNoteClear();
- //기재사항 setting
- fSetNote();
- }
-
- //========================================================================================
- //계정 코드 정보 조회1
- //========================================================================================
- function fAcntInfoSelect1() {
- // var acntcd = model.getValue("/root/hidden/unsl_one/acntcd");
- // var acntnm = model.getValue("/root/hidden/unsl_one/acntnm");
- //
- // alert(acntcd);
- //
- // if (acntcd != "" && acntnm != "" && acntcd.getTrim() != "" && acntnm.getTrim() != "") {
- // model.setValue("/root/send/data2/instcd", model.getValue("/root/hidden/unsl_one/instcd"));
- // model.setValue("/root/send/data2/acntcd", acntcd);
- // model.setValue("/root/send/data2/drcrflag", model.getValue("/root/hidden/unsl_one/drcrflag"));
- // model.refresh();
- //
- // submit("TRRAD00103");
- // }
- // //기재사항clear
- // fSetNoteClear1();ipt_bugtmngtdeptnm
- if (model.getValue("/root/hidden/acntcdinfo/bugtuseyn") == "Y")
- {
- if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "2" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
- {
- model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
- fBugtCntrYN(false);
- }
- else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "2" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
- {
- model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
- fBugtCntrYN(true);
- }
- else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "1" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
- {
- model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
- fBugtCntrYN(true);
- }
- else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "1" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
- {
- model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
- fBugtCntrYN(false);
- }
- else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == "D")
- {
- model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
- fBugtCntrYN(false);
- }
- else if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == "C")
- {
- model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
- fBugtCntrYN(false);
- }
- // if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") != "3" && model.getValue("/root/main/unsl_one/drcrflag") == model.getValue("/root/hidden/acntcdinfo/balflag"))
- // {
- //
- // model.setValue("/root/main/unsl_one/bugtearncostflag", model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd"));
- //
- // }
- // else if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") == model.getValue("/root/hidden/acntcdinfo/balflag"))
- // {
- //
- // model.setValue("/root/main/unsl_one/bugtearncostflag", "1");
- //
- // }
- // else if (model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/main/unsl_one/drcrflag") != model.getValue("/root/hidden/acntcdinfo/balflag"))
- // {
- //
- // model.setValue("/root/main/unsl_one/bugtearncostflag", "2");
- //
- // }
- else
- {
- fBugtCntrYN(true);
- return;
- }
- model.setValue("/root/main/unsl_one/bugtautoaprvyn", model.getValue("/root/hidden/acntcdinfo/bugtautoaprvyn"));
- model.setValue("/root/main/unsl_one/bugtaprvyn", "N");
- model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- // model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));
- // model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/slipdeptnm"));
- //fBugtCntrYN(false);
-
-
- model.refresh();
- }
- else
- {
- fBugtCntrYN(true);
- }
-
- }
-
- function fBugtCntrYN(YN)
- {
- //btn_bugtmngtdeptcd.disabled = YN;
- //ipt_bugtmngtdeptcd.disabled = YN;
- //ipt_bugtmngtdeptnm.disabled = YN;
- if(YN = "Y")
- {
- model.setValue(ipt_bugtmngtdeptcd.attribute("ref"), "");
- model.setValue(ipt_bugtmngtdeptnm.attribute("ref"), "");
- }
- }
-
-
- //========================================================================================
- //기재사항 setting
- //========================================================================================
- function fSetNote() {
- //기재사항setting
- for (i=1; i<7; i++) {
- var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
- var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
-
- var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
-
- //alert(option);
-
- model.setValue("/root/main/unsl_one/notefactnm"+i, title);
- switch (kind) {
- case "1": //코드
- model.toggle("case_notecd"+i);
- break;
- case "2": //내역
- model.toggle("case_notenm"+i);
- //format지정
- var cControl = document.controls("ipt_notenm"+i);
- cControl.attribute("format") = model.getValue("/root/hidden/acntcdinfo/frmt"+i);
- cControl.attribute("showmask") = "true";
- break;
- case "3": //콤보
- model.toggle("case_notecombo"+i);
- break;
- default :
- model.toggle("case_noteblank"+i);
- break;
- }
- }
- model.refresh();
- }
- //========================================================================================
- //기재사항 clear
- //========================================================================================
- function fSetNoteClear() {
-
- model.getValue("/root/hidden/acntcdinfo/notecd1") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd2") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd3") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd4") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd5") == "";
- model.getValue("/root/hidden/acntcdinfo/notecd6") == "";
-
- //항목 초기화
- for (i=1; i<7; i++)
- {
- model.setValue("/root/main/unsl_one/notefactnm"+i,"");
- model.setValue("/root/main/unsl_one/notefactcd"+i,"");
- model.setValue("/root/main/unsl_one/notefactspec"+i,"");
- model.toggle("case_noteblank"+i);
- }
- model.refresh();
-
- var pre_custflag = model.getValue(cmb_custflag.attribute("ref"));
- var custflag = model.getValue("/root/hidden/acntcdinfo/custflag");
-
- //상대처 setting
- if(pre_custflag != custflag || custflag == "")
- {
-
- var vFundcd = model.getValue("/root/hidden/acntcdinfo/fundscd");
- var vCustcd = "";
- var vCustnm = "";
- var vTogglenm = "";
-
- if(custflag == "9")
- {
- vCustcd = "-";
- vTogglenm = "명관리";
- }
- else if(custflag == "")
- {
- custflag = "9";
- vCustcd = "-";
- vTogglenm = "명관리";
-
- }
- else
- {
- vCustcd = "";
- vTogglenm = "코드관리";
- }
- vCustnm = "";
- model.toggle(vTogglenm);
- model.setValue("/root/main/unsl_one/custflag", custflag);
- model.setValue("/root/main/unsl_one/custnm", vCustnm);
- model.setValue("/root/main/unsl_one/custcd", vCustcd);
- model.setValue("/root/main/unsl_one/fundscd", vFundcd);
- }
-
- model.refresh();
- // cmb_custflag.dispatch("xforms-value-changed");
- }
-
- //========================================================================================
- //기재사항 clear1
- //========================================================================================
- function fSetNoteClear1()
- {
- for (i=1; i<7; i++)
- {
- model.setValue("/root/hidden/unsl_one/notefactcd" + i, "");
- model.setValue("/root/hidden/unsl_one/notefactspec" + i, "");
- model.setValue("/root/hidden/unsl_one/notefactnm" + i, model.getValue("/root/hidden/acntcdinfo/notecdnm" + i));
- }
- model.refresh();
- }
- //========================================================================================
- //조회 click
- //========================================================================================
- function fQueryClick()
- {
- var instcd = model.getValue("/root/main/unsl_one/instcd");
- var unsldd = model.getValue("/root/hidden/condition/unsldd");
- var unslno = model.getValue("/root/hidden/condition/unslno");
- var slipdeptcd = model.getValue("/root/main/unsl_one/slipdeptcd");
- var slipkind = model.getValue("/root/hidden/condition/slipkind");
- var costcntrdeptcd = model.getValue("/root/main/unsl_one/costcntrdeptcd");
- if (instcd.getTrim() != "" && unsldd.getTrim() != "" && unslno.getTrim() != "")
- {
- grp_apln.visible = false;
- model.setValue("/root/send/data3/instcd", instcd);
- model.setValue("/root/send/data3/unsldd", unsldd);
- model.setValue("/root/send/data3/unslno", unslno);
- model.setValue("/root/send/data3/slipdeptcd", slipdeptcd);
- model.setValue("/root/send/data3/costcntrdeptcd", costcntrdeptcd);
-
- if (getUserInfo("dutplcecd") == acntdept || getUserInfo("dutplcecd") == bugtdept)
- {
- model.setValue("/root/send/data3/slipdeptcd", "%");
- }
- else
- {
- model.setValue("/root/send/data3/slipdeptcd", slipdeptcd);
- }
-
- model.refresh();
- submit("TRRAD00101");
-
- fuserInfoSet();
- model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
-
- var iRow = grd_unsl.findRow("N",1,grd_unsl.colRef("sanctyn"));
- if (iRow > 0 ) {
- btn_prtcancel.disabled = true;
- } else {
- if (getUserInfo("dutplcecd") == acntdept) {
- btn_prtcancel.disabled = false;
- }
- }
-
- if (model.getValue("/root/main/unsl[1]/instcd") != "") // 전표 데이터 있음
- {
- //alert("1");
-
- for (i=1; i < grd_unsl.rows; i++)
- {
- if (model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") != "")
- {
- grd_unsl.rowstyle(i, "data", "color") = "#808080";
- }
- }
- model.setValue("/root/main/unsl_one/slipdeptcd", model.getValue("/root/main/unsl[1]/slipdeptcd"));
- model.setValue("/root/main/unsl_one/slipdeptnm", model.getValue("/root/main/unsl[1]/slipdeptnm"));
- model.setValue("/root/main/unsl_one/costcntrdeptcd", model.getValue("/root/main/unsl[1]/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/costcntrdeptnm", model.getValue("/root/main/unsl[1]/costcntrdeptnm"));
- model.setValue("/root/hidden/condition/slipdeptcd", model.getValue("/root/main/unsl[1]/slipdeptcd"));
- model.setValue("/root/hidden/condition/slipdeptnm", model.getValue("/root/main/unsl[1]/slipdeptnm"));
-
- model.setValue("/root/hidden/maxslipseqno",model.getValue("/root/main/unsl["+ (grd_unsl.rows - 1) +"]/unslseqno"));
-
- btn_copy.disabled = false;
- btn_dayshift.disabled = false;
- btn_availablebugt.disabled = false;
- // cmb_slipflag.disabled = true;
- fRowClearClick();
- }
- else // 전표 데이터 없음
- {
- //alert("0");
-
- model.setValue("/root/hidden/maxslipseqno", "00000");
-
- model.setValue("/root/hidden/condition/slipkind", slipkind);
- model.setValue("/root/hidden/condition/slipflag", "1");
- model.setValue("/root/hidden/condition/defrayreqdd", "");
- model.setValue("/root/hidden/condition/projectid", "");
- model.setValue("/root/hidden/condition/projectnm", "");
- model.setValue("/root/hidden/condition/slipcmt", "");
- model.setValue("/root/hidden/condition/slipdeptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/hidden/condition/slipdeptnm", getUserInfo("dutplcenm"));
- model.refresh();
- fRowClearClick();
- btn_copy.disabled = true;
- btn_dayshift.disabled = true;
- btn_availablebugt.disabled = true;
- // cmb_slipflag.disabled = false;
- ipt_defrayreqdd.disabled = false;
- return;
- }
- var rowCnt = grd_unsl.rows - 1;
- model.setValue("/root/hidden/maxslipseqno",model.getValue("/root/main/unsl["+ rowCnt +"]/unslseqno"));
- model.setValue("/root/hidden/condition/slipkind", model.getValue("/root/main/unsl[" + rowCnt + "]/slipkind"));
- model.setValue("/root/hidden/condition/slipflag", model.getValue("/root/main/unsl[" + rowCnt + "]/slipflag"));
- model.setValue("/root/hidden/condition/acountingflag", model.getValue("/root/main/unsl[" + rowCnt + "]/acountingflag"));
- model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl[" + rowCnt + "]/projectid"));
- model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl[" + rowCnt + "]/projectnm"));
- model.setValue("/root/hidden/condition/slipcmt", model.getValue("/root/main/unsl[" + rowCnt + "]/slipcmt"));
- model.setValue("/root/hidden/condition/defrayreqdd", model.getValue("/root/main/unsl[" + rowCnt + "]/defrayreqdd"));
-
- model.refresh();
-
- if (model.getValue("/root/hidden/condition/slipkind") != "1")
- {
- ipt_defrayreqdd.disabled = false;
- }
- else
- {
- ipt_defrayreqdd.disabled = true;
- }
-
- fdrcrflagSet();
- }
- fSumExpantAmt();
-
- model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl[" + 1 + "]/acntcd"));
- //model.setValue("/root/main/unsl_one/cdbojo1", "");
- submit("TRRAD01701");
-
- }
-
- //========================================================================================
- //행입력 click
- //========================================================================================
- function fGridRowAddClick()
- {
- //not null check
- if(fNotNullCheck() == false)
- {
- return;
- }
- //node copy
- var seqno = model.getValue("/root/main/unsl_one/unslseqno");
- var unslseqno = model.getValue("/root/main/unsl[unslseqno='"+ seqno +"']/unslseqno");
-
- if (model.getValue("/root/main/unsl_one/drcrflag") == "D")
- {
- model.setValue("/root/main/unsl_one/dramt", model.getValue("/root/main/unsl_one/amt"));
- model.setValue("/root/main/unsl_one/cramt", 0);
- }
- else
- {
- model.setValue("/root/main/unsl_one/cramt", model.getValue("/root/main/unsl_one/amt"));
- model.setValue("/root/main/unsl_one/dramt", 0);
- }
-
- //=======================================================
- // 새로저장되는 전표는 그리드에 전표번호를 입력하지 않는다. 모든 row 가 전표번호가 없다면 새로은 전표번호가 만들어진다.
- //=======================================================
- var checkExistSlip = false;
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- if(!(grd_unsl.rowStatus(i) == 1 || grd_unsl.rowStatus(i) == 3))
- {
- checkExistSlip = true;
- }
- }
- if (checkExistSlip)
- {
- model.setValue("/root/main/unsl_one/unslno", model.getValue("/root/hidden/condition/unslno"));
- }
- if (unslseqno == "")
- {
- grd_unsl.addRow(false);
- }
-
- var cur_row = grd_unsl.row;
-
- model.copyNode("/root/main/unsl["+cur_row+"]","/root/main/unsl_one");
-
- var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
- if (parseInt(maxslipseqno,10) < parseInt(seqno,10)) {
- model.setValue("/root/hidden/maxslipseqno", seqno);
- }
-
- //전표유형에 따라 상대계정 자동 setting
- fCustAcntAutoSet();
- //합계 재계산
- model.recalculate();
- fSumExpantAmt();
- fRowClearClick(); //행정리
- }
-
- //========================================================================================
- //행수정 click
- //========================================================================================
- function fGridRowSetClick() {
- var cur_row = grd_unsl.row;
- var bfstr = getNodeListCSV(instance1.selectNodes("/root/main/unsl[" + cur_row + "]"));
- var afstr = getNodeListCSV(instance1.selectNodes("/root/main/unsl_one"));
-
- if (bfstr == afstr && (model.getValue(rdo_slipkind.attribute("ref")) == "2" || model.getValue(rdo_slipkind.attribute("ref")) == "3")) {
- messageBox("변경된 데이터가","I004");
- fRowClearClick(); //행정리
- return;
- }
- //not null check
- if(fNotNullCheck() == false) {
- return;
- }
- //node copy
- var seqno = model.getValue("/root/main/unsl_one/unslseqno");
- var unslseqno = model.getValue("/root/main/unsl[unslseqno='"+ seqno +"']/unslseqno");
- if (model.getValue("/root/main/unsl_one/drcrflag") == "D")
- {
- model.setValue("/root/main/unsl_one/dramt", model.getValue("/root/main/unsl_one/amt"));
- model.setValue("/root/main/unsl_one/cramt", 0);
- }
- else
- {
- model.setValue("/root/main/unsl_one/cramt", model.getValue("/root/main/unsl_one/amt"));
- model.setValue("/root/main/unsl_one/dramt", 0);
- }
-
- model.copyNode("/root/main/unsl[" + cur_row + "]","/root/main/unsl_one");
- grd_unsl.addStatus(cur_row, "update");
-
- var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
- if (parseInt(maxslipseqno, 10) < parseInt(seqno, 10))
- {
- model.setValue("/root/hidden/maxslipseqno", seqno);
- }
-
- var autjournflag = model.getValue("/root/main/unsl["+cur_row+"]/autjournflag");
-
- // 전표유형에 따라 상대계정 자동 setting
- // 자동분개 전표는 상대계정이 반대로 들어올 수 있고 N:1 로 설정될 수 있으므로 상대 연번의 전표를 수정할 수 없다.
- if (autjournflag != "Y" && model.getValue("/root/main/unsl["+cur_row+"]/rlaacntseqno") == "")
- {
- fCustAcntAutoSet();
- }
-
- //합계 재계산
- model.recalculate();
- fSumExpantAmt();
- fRowClearClick(); //행정리
- }
-
- // ========================================================================================
- // 전표 유형에 따라 상대계정 자동 setting
- // 입, 출금 전표 일때만 setting하고 상대 계정은
- // 출금전표는 기업자유예금, 입금전표는 현금(?) --기초정보로 수정될 수 있도록
- //========================================================================================
- function fCustAcntAutoSet()
- {
- var slipkind = model.getValue("/root/hidden/condition/slipkind");
- var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
- var amt = parseInt(model.getValue("/root/main/unsl_one/amt"),10);
- var rest_amt = 0;
- var drcrcolnm, drcracnt, drcrflag;
- var row=0;
-
- if (slipkind == "2")
- { //입금
- drcrcolnm = "cramt";
- drcracnt = "dramt";
- drcrflag = "D";
- }
- else if (slipkind == "3")
- { //출금
- drcrcolnm = "dramt";
- drcracnt = "cramt";
- drcrflag = "C";
- }
- else // 대체전표는 상대변 자동 생성하지 않음
- {
- return;
- }
-
- if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax"),10) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
- {
- amt = amt - parseInt(model.getValue("/root/hidden/orchreturn/incmtax"),10) - parseInt(model.getValue("/root/hidden/orchreturn/resdntax"),10);
- }
- // else if(seizurecd != "" && cmb_custflag.value == "1" && model.getValue("/root/hidden/seizureyn") == 'Y') // 압류 거래처 예외
- // {
- // rest_amt = amt % 2;
- // amt = parseInt(amt / 2);
- // rest_amt = amt + rest_amt;
- // } -- 임시로 막음 (계산식 정립 필요 20090216)
- row = grd_unsl.findRow(rlaacntseqno, 1, grd_unsl.colRef("rlaacntseqno"));
- if (row > 0)
- {
- model.setValue("/root/main/unsl[" + row + "]/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
- model.setValue("/root/main/unsl[" + row + "]/" + drcracnt, amt);
- model.setValue("/root/main/unsl[" + row + "]/amt", amt);
- grd_unsl.addStatus(row, "update");
- model.copyNode("/root/hidden/unsl_one", "/root/main/unsl[" + row + "]");
- }
- else
- {
- model.copyNode("/root/hidden/unsl_one","/root/main/unsl_one");
- fIncreSeqno("/root/hidden/unsl_one/unslseqno");
- model.setValue("/root/hidden/unsl_one/drcrflag", drcrflag);
- model.setValue("/root/hidden/unsl_one/bugtcd", "");
- model.setValue("/root/hidden/unsl_one/profflag", "6");
- model.setValue("/root/hidden/unsl_one/profdata", "");
- model.setValue("/root/hidden/unsl_one/" + drcrcolnm, 0);
- model.setValue("/root/hidden/unsl_one/" + drcracnt, amt);
- model.setValue("/root/hidden/unsl_one/amt", amt);
- //model.setValue("/root/hidden/unsl_one/fundscd", model.getValue("/root/main/unsl_one/fundscd"));
- model.setValue("/root/main/unsl["+grd_unsl.row+"]/fundscd", "");
- model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
- model.setValue("/root/hidden/unsl_one/notefactnm2", "");
- model.setValue("/root/hidden/unsl_one/notefactcd2", "");
- model.setValue("/root/hidden/unsl_one/notefactspec2", "");
- model.setValue("/root/hidden/unsl_one/notefactnm3", "");
- model.setValue("/root/hidden/unsl_one/notefactcd3", "");
- model.setValue("/root/hidden/unsl_one/notefactspec3", "");
- model.setValue("/root/hidden/unsl_one/notefactnm4", "");
- model.setValue("/root/hidden/unsl_one/notefactcd4", "");
- model.setValue("/root/hidden/unsl_one/notefactspec4", "");
- model.setValue("/root/hidden/unsl_one/notefactnm5", "");
- model.setValue("/root/hidden/unsl_one/notefactcd5", "");
- model.setValue("/root/hidden/unsl_one/notefactspec5", "");
- model.setValue("/root/hidden/unsl_one/notefactnm6", "");
- model.setValue("/root/hidden/unsl_one/notefactcd6", "");
- model.setValue("/root/hidden/unsl_one/notefactspec6", "");
- model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
- model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
- model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
- model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
- model.setValue("/root/hidden/unsl_one/bugtamt", "");
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
- model.setValue("/root/hidden/unsl_one/seqno", "");
- model.setValue("/root/hidden/unsl_one/servseqno", "");
-
- if(!(getUserInfo("dutplceinstcd") == '103' || getUserInfo("dutplceinstcd") == '001') && rdo_slipkind.value == "2") // 병원은 입금일 경우 상대변에 현금 Setting
- {
- model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
- model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
- model.setValue("/root/hidden/unsl_one/custflag", "9");
- model.setValue("/root/hidden/unsl_one/custcd", "");
- model.setValue("/root/hidden/unsl_one/custnm", "");
- model.setValue("/root/hidden/unsl_one/notefactnm1", "");
- model.setValue("/root/hidden/unsl_one/notefactcd1", "");
- model.setValue("/root/hidden/unsl_one/notefactspec1", "");
- }
- else
- {
- /* var vAactcd = sExpsacnt_Aactcd;
- var vAactno = sExpsacnt_Aactno;
-
- if(model.getValue("/root/hidden/condition/slipkind") == "3")
- {
- var bExist = false;
-
- for(var i=1; i<grd_unsl.rows; i++)
- {
- var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
- var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
-
- if(sDrCrFlag == "C")
- {
- for(var j=0; j<arrTransAcntCd.length; j++)
- {
- if(arrTransAcntCd[j] == sAcntCd) bExist = true;
- }
- }
-
- if(bExist)
- {
- if(grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")) != sExpsacnt_Aactcd)
- {
- vAactcd = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1"));
- vAactno = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactspec1"));
- messageBox("하나의 전표에는 하나의 출금계좌만 설정할수 있습니다.\n출금계좌를 [" + vAactcd + "]" + vAactno + "(으)로 설정합니다." ,"I000");
- break;
- }
- else
- {
- bExist = false;
- }
- }
- }
- }
-
-
- model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
- model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
- model.setValue("/root/hidden/unsl_one/custflag", "1");
- model.setValue("/root/hidden/unsl_one/custcd", sExpsacnt_Entrregno);
- model.setValue("/root/hidden/unsl_one/custnm", sExpsacnt_Custnm);
- model.setValue("/root/hidden/unsl_one/notefactnm1", "계좌번호");
- model.setValue("/root/hidden/unsl_one/notefactcd1", vAactcd);
- model.setValue("/root/hidden/unsl_one/notefactspec1", vAactno);*/
- model.setValue("/root/hidden/unsl_one/acntcd", cashcd);
- model.setValue("/root/hidden/unsl_one/acntnm", cashcdnm);
- model.setValue("/root/hidden/unsl_one/custflag", "9");
- model.setValue("/root/hidden/unsl_one/custcd", "");
- model.setValue("/root/hidden/unsl_one/custnm", "");
- model.setValue("/root/hidden/unsl_one/notefactnm1", "");
- model.setValue("/root/hidden/unsl_one/notefactcd1", "");
- model.setValue("/root/hidden/unsl_one/notefactspec1", "");
- }
- grd_unsl.addRow(false);
-
- var cur_row = grd_unsl.row;
- model.copyNode("/root/main/unsl[" + cur_row + "]", "/root/hidden/unsl_one");
-
- grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
-
- var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
- var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
- if (parseInt(maxslipseqno,10) < parseInt(seqno, 10))
- {
- model.setValue("/root/hidden/maxslipseqno", seqno);
- }
- }
-
- var profflag = model.getValue("/root/main/unsl_one/profflag");
- var j = 0;
- if (profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
- {
- for (i=1; i < grd_unsl.rows; i++)
- {
- if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == incmtax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
- {
- j = i;
- }
- }
- if (j > 0)
- {
- if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax")) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
- {
- model.setValue("/root/main/unsl["+j+"]/" + drcracnt, model.getValue("/root/hidden/orchreturn/incmtax"));
- model.setValue("/root/main/unsl["+j+"]/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
- grd_unsl.addStatus(j, "update");
- }
- else
- {
- grd_unsl.deleteRow(j, false);
- }
- }
- else
- {
- if (parseInt(model.getValue("/root/hidden/orchreturn/incmtax")) != 0 && model.getValue("/root/hidden/orchreturn/incmtax") != "")
- {
- fIncreSeqno("/root/hidden/unsl_one/unslseqno");
- model.setValue("/root/hidden/unsl_one/" + drcracnt, model.getValue("/root/hidden/orchreturn/incmtax"));
- model.setValue("/root/hidden/unsl_one/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
- model.setValue("/root/hidden/unsl_one/fundscd", "");
- model.setValue("/root/hidden/unsl_one/acntcd", incmtax);
- model.setValue("/root/hidden/unsl_one/acntnm", incmtaxnm);
- model.setValue("/root/hidden/unsl_one/custflag", model.getValue("/root/main/unsl_one/custflag"));
- model.setValue("/root/hidden/unsl_one/custcd", model.getValue("/root/main/unsl_one/custcd"));
- model.setValue("/root/hidden/unsl_one/custnm", model.getValue("/root/main/unsl_one/custnm"));
- model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
- model.setValue("/root/hidden/unsl_one/notefactnm1", "");
- model.setValue("/root/hidden/unsl_one/notefactcd1", "");
- model.setValue("/root/hidden/unsl_one/notefactspec1", "");
- model.setValue("/root/hidden/unsl_one/notefactnm2", "");
- model.setValue("/root/hidden/unsl_one/notefactcd2", "");
- model.setValue("/root/hidden/unsl_one/notefactspec2", "");
- model.setValue("/root/hidden/unsl_one/notefactnm3", "");
- model.setValue("/root/hidden/unsl_one/notefactcd3", "");
- model.setValue("/root/hidden/unsl_one/notefactspec3", "");
- model.setValue("/root/hidden/unsl_one/notefactnm4", "");
- model.setValue("/root/hidden/unsl_one/notefactcd4", "");
- model.setValue("/root/hidden/unsl_one/notefactspec4", "");
- model.setValue("/root/hidden/unsl_one/notefactnm5", "");
- model.setValue("/root/hidden/unsl_one/notefactcd5", "");
- model.setValue("/root/hidden/unsl_one/notefactspec5", "");
- model.setValue("/root/hidden/unsl_one/notefactnm6", "");
- model.setValue("/root/hidden/unsl_one/notefactcd6", "");
- model.setValue("/root/hidden/unsl_one/notefactspec6", "");
- model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
- model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
- model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
- model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
- model.setValue("/root/hidden/unsl_one/bugtamt", "");
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
- model.setValue("/root/hidden/unsl_one/seqno", "");
- model.setValue("/root/hidden/unsl_one/servseqno", "");
-
- grd_unsl.addRow(false);
-
- var cur_row = grd_unsl.row;
- model.copyNode("/root/main/unsl[" + cur_row + "]","/root/hidden/unsl_one");
-
-
- grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
-
- var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
- var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
- if (parseInt(maxslipseqno,10) < parseInt(seqno, 10))
- {
- model.setValue("/root/hidden/maxslipseqno", seqno);
- }
- }
- }
- //-----------------------------------------------------------------------------------------------------------
- j=0;
- for (i=1; i < grd_unsl.rows; i++)
- {
- if (model.getValue("/root/main/unsl["+i+"]/acntcd") == resdntax && model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") == rlaacntseqno)
- {
- j = i;
- }
- }
- if (j > 0)
- {
- if (parseInt(model.getValue("/root/hidden/orchreturn/resdntax")) != 0 && model.getValue("/root/hidden/orchreturn/resdntax") != "")
- {
- model.setValue("/root/main/unsl["+j+"]/" + drcracnt, model.getValue("/root/hidden/orchreturn/resdntax"));
- model.setValue("/root/main/unsl["+j+"]/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
- grd_unsl.addStatus(j, "update");
- }
- else
- {
- grd_unsl.deleteRow(j, false);
- }
- }
- else
- {
- if (parseInt(model.getValue("/root/hidden/orchreturn/resdntax")) != 0 && model.getValue("/root/hidden/orchreturn/resdntax") != "")
- {
- fIncreSeqno("/root/hidden/unsl_one/unslseqno");
- model.setValue("/root/hidden/unsl_one/" + drcracnt, model.getValue("/root/hidden/orchreturn/resdntax"));
- model.setValue("/root/hidden/unsl_one/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
- model.setValue("/root/hidden/unsl_one/fundscd", "");
- model.setValue("/root/hidden/unsl_one/acntcd", resdntax);
- model.setValue("/root/hidden/unsl_one/acntnm", resdntaxnm);
- model.setValue("/root/hidden/unsl_one/custflag", model.getValue("/root/main/unsl_one/custflag"));
- model.setValue("/root/hidden/unsl_one/custcd", model.getValue("/root/main/unsl_one/custcd"));
- model.setValue("/root/hidden/unsl_one/custnm", model.getValue("/root/main/unsl_one/custnm"));
- model.setValue("/root/hidden/unsl_one/defrayreqdd", model.getValue("/root/main/unsl_one/defrayreqdd"));
- model.setValue("/root/hidden/unsl_one/notefactnm1", "");
- model.setValue("/root/hidden/unsl_one/notefactcd1", "");
- model.setValue("/root/hidden/unsl_one/notefactspec1", "");
- model.setValue("/root/hidden/unsl_one/notefactnm2", "");
- model.setValue("/root/hidden/unsl_one/notefactcd2", "");
- model.setValue("/root/hidden/unsl_one/notefactspec2", "");
- model.setValue("/root/hidden/unsl_one/notefactnm3", "");
- model.setValue("/root/hidden/unsl_one/notefactcd3", "");
- model.setValue("/root/hidden/unsl_one/notefactspec3", "");
- model.setValue("/root/hidden/unsl_one/notefactnm4", "");
- model.setValue("/root/hidden/unsl_one/notefactcd4", "");
- model.setValue("/root/hidden/unsl_one/notefactspec4", "");
- model.setValue("/root/hidden/unsl_one/notefactnm5", "");
- model.setValue("/root/hidden/unsl_one/notefactcd5", "");
- model.setValue("/root/hidden/unsl_one/notefactspec5", "");
- model.setValue("/root/hidden/unsl_one/notefactnm6", "");
- model.setValue("/root/hidden/unsl_one/notefactcd6", "");
- model.setValue("/root/hidden/unsl_one/notefactspec6", "");
- model.setValue("/root/hidden/unsl_one/rlaacntseqno", rlaacntseqno);
- model.setValue("/root/hidden/unsl_one/bugtaprvyn", "");
- model.setValue("/root/hidden/unsl_one/bugtautoaprvyn", "");
- model.setValue("/root/hidden/unsl_one/bugtearncostflag", "");
- model.setValue("/root/hidden/unsl_one/bugtamt", "");
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/bugtmngtdeptcd"));
- model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/bugtmngtdeptnm"));
- model.setValue("/root/hidden/unsl_one/seqno", "");
-
- grd_unsl.addRow(false);
-
- var cur_row = grd_unsl.row;
- model.copyNode("/root/main/unsl["+cur_row+"]","/root/hidden/unsl_one");
- grd_unsl.rowstyle(cur_row, "data", "color") = "#808080";
-
- var seqno = model.getValue("/root/hidden/unsl_one/unslseqno");
- var maxslipseqno = model.getValue("/root/hidden/maxslipseqno");
- if (parseInt(maxslipseqno,10) < parseInt(seqno, 10)) {
- model.setValue("/root/hidden/maxslipseqno", seqno);
- }
- }
- }
- }
- model.resetInstanceNode("/root/hidden/unsl_one");
- model.resetInstanceNode("/root/hidden/orchreturn");
- }
-
- //========================================================================================
- //not null check
- //========================================================================================
- function fNotNullCheck() {
- var unsldd = model.getValue("/root/hidden/condition/unsldd");
-
- if(model.getValue(cmb_slipflag.attribute("ref")).length== 0)
- {
- messageBox("전표구분은" ,"I003");
- model.setFocus("cmb_slipflag");
- return false;
- }
-
- if (unsldd == "") {
- messageBox("전표일자는" ,"I003");
- model.setFocus("ipt_unsldd");
- return false;
- } else {
- model.setValue("/root/main/unsl_one/unsldd", unsldd);
- model.setValue("/root/main/unsl_one/slipkind", model.getValue("/root/hidden/condition/slipkind"));
- model.setValue("/root/main/unsl_one/slipflag", model.getValue("/root/hidden/condition/slipflag"));
- model.setValue("/root/main/unsl_one/acountingflag", model.getValue("/root/hidden/condition/acountingflag"));
- model.setValue("/root/main/unsl_one/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
- model.setValue("/root/main/unsl_one/slipdeptnm", model.getValue("/root/hidden/condition/slipdeptnm"));
-
- /*if(getUserInfo("dutplceinstcd") != "103")
- {
- model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/hidden/condition/projectid"));
- model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/hidden/condition/projectnm"));
- }
- */
- model.setValue("/root/main/unsl_one/slipcmt", model.getValue("/root/hidden/condition/slipcmt"));
-
- setDefrayreqdd();
-
- }
-
- if(model.getValue(ipt_slipcmt.attribute("ref")).length== 0)
- {
- messageBox("전표적요는" ,"I003");
- model.setFocus("ipt_slipcmt");
- return false;
- }
-
- if(model.getValue(ipt_defrayreqdd.attribute("ref")).length== 0)
- {
- if(model.getValue("/root/hidden/condition/slipkind") == "3")
- {
- messageBox("거래발생일은" ,"I003");
- model.setFocus("ipt_defrayreqdd");
- return false;
- }
- else if(model.getValue("/root/hidden/condition/slipkind") == "2")
- {
- model.setValue(ipt_defrayreqdd.attribute("ref"), model.getValue(ipt_unsldd.attribute("ref")));
- ipt_defrayreqdd.refresh();
- }
- }
-
- if(model.getValue(ipt_costcntrdeptcd.attribute("ref")).length== 0 )
- {
- messageBox("사용부서는" ,"I003");
- model.setFocus("ipt_costcntrdeptnm");
- return false;
- }
- if(model.getValue(ipt_acntcd.attribute("ref")).length== 0 )
- {
- messageBox("계정코드는" ,"I003");
- model.setFocus("ipt_acntnm");
- return false;
- }
- if(model.getValue(ipt_custcd.attribute("ref")).length== 0 )
- {
- messageBox("상대처는" ,"I003");
- model.setFocus("ipt_custcd");
- return false;
- }
- if(model.getValue("/root/main/unsl_one/profflag").length== 0 )
- {
- messageBox("증빙구분은" ,"I003");
- model.setFocus("rdo_profflag1");
- return false;
- }
- if(model.getValue(ipt_amt.attribute("ref")).length== 0 || parseInt(model.getValue(ipt_amt.attribute("ref")),10) == 0)
- {
- messageBox("금액을 입력하세요." ,"I000");
- model.setFocus("ipt_amt");
- return false;
- }
- if(model.getValue(ipt_etcnotefact.attribute("ref")).length== 0 )
- {
- messageBox("적요는" ,"I003");
- model.setFocus("ipt_etcnotefact");
- return false;
- }
- }
-
- //========================================================================================
- // 입출금예정일 기본값 Setting [빈센트]
- //========================================================================================
-
- function setDefrayreqdd()
- {
-
- if(model.getValue("/root/hidden/condition/defrayreqdd") == "" && getUserInfo("dutplceinstcd") == "017") // 빈센트는 입출금 예정일을 입력하지 않았을 때 기본값으로 5일 후를 입출금예정일로 setting 한다. [ 최형진 20091030 ]
- {
- var vCurrentMM = parseInt(ipt_unsldd.value.substr(4, 2), 10);
- var vCurrentDD = parseInt(ipt_unsldd.value.substr(6, 2), 10);
- var vMaxDD = parseInt(fDayCountForMonth(ipt_unsldd.value.substr(0, 4), ipt_unsldd.value.substr(4, 2)), 10);
- var vRemainDD = vMaxDD - vCurrentDD;
- var vDefrayreqdd = vCurrentDD + 5;
- var vNextMonthDD = 5 - vRemainDD;
-
- if((vMaxDD - vDefrayreqdd) >= 0)
- {
- model.setValue(ipt_defrayreqdd.attribute("ref"), ipt_unsldd.value.substr(0, 6).toString() + vDefrayreqdd.toString().getLeftPad(2,"0"));
- }
- else
- {
- if(vCurrentMM == 12)
- {
- model.setValue(ipt_defrayreqdd.attribute("ref"), (parseInt(ipt_unsldd.value.substr(0, 4), 10) + 1).toString() + "01" + vNextMonthDD.toString().getLeftPad(2,"0"));
- }
- else
- {
- model.setValue(ipt_defrayreqdd.attribute("ref"), (parseInt(ipt_unsldd.value.substr(0, 6), 10) + 1).toString() + vNextMonthDD.toString().getLeftPad(2,"0"));
- }
- }
- }
- else
- {
- model.setValue("/root/main/unsl_one/defrayreqdd", model.getValue("/root/hidden/condition/defrayreqdd"));
- }
- model.refresh();
- }
-
- function fDayCountForMonth(year, month)
- {
- var normal = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
- var leap = new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
-
- if (isLeapYear(year)) {
- return leap[month - 1];
- } else {
- return normal[month - 1];
- }
- }
-
- //========================================================================================
- //행삭제 click
- //========================================================================================
- function fGridRowDelClick() {
- var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
- grd_unsl.deleteRow(grd_unsl.row, true);
- var i;
-
- do {
- i = grd_unsl.findRow(rlaacntseqno, 1, grd_unsl.colRef("rlaacntseqno"));
- if (i > 0) {
- grd_unsl.deleteRow(i, true);
- }
- } while (i > 0)
- }
-
- //========================================================================================
- //행정리 click
- //========================================================================================
- function fRowClearClick() {
- var instcd = model.getValue("/root/main/unsl_one/instcd");
- var deptcd = model.getValue("/root/main/unsl_one/costcntrdeptcd");
- var deptnm = model.getValue("/root/main/unsl_one/costcntrdeptnm");
- var slipdeptcd = model.getValue("/root/main/unsl_one/slipdeptcd");
- var slipdeptnm = model.getValue("/root/main/unsl_one/slipdeptnm");
- var slipkind = model.getValue("/root/hidden/condition/slipkind");
-
- model.removenode("/root/main/unsl_one");
- model.makeNode("/root/main/unsl_one");
- model.copyNode("/root/main/unsl_one","/root/hidden/unsl_one");
-
- if(instcd.length > 0) {
- model.setValue(cmb_instcd.attribute("ref"), instcd);
- } else {
- if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
- }
- model.setValue("/root/main/unsl_one/costcntrdeptcd",deptcd);
- model.setValue("/root/main/unsl_one/costcntrdeptnm",deptnm);
- model.setValue("/root/main/unsl_one/costbelongdeptcd",deptcd);
- model.setValue("/root/main/unsl_one/costbelongdeptnm",deptnm);
-
- if (slipkind == "1" || slipkind == "4") {
- model.setValue("/root/main/unsl_one/drcrflag","D");
- } else if (slipkind == "2") {
- model.setValue("/root/main/unsl_one/drcrflag","C");
- } else if (slipkind == "3") {
- model.setValue("/root/main/unsl_one/drcrflag","D");
- }
-
- model.setValue("/root/main/unsl_one/slipdeptcd",slipdeptcd);
- model.setValue("/root/main/unsl_one/slipdeptnm",slipdeptnm);
- model.setValue("/root/main/unsl_one/unslwrit",getUserId());
- model.setValue("/root/main/unsl_one/usernm",getUserName());
-
- fIncreSeqno("/root/main/unsl_one/unslseqno");
-
- model.setValue("/root/main/unsl_one/profflag","");
-
- model.resetInstanceNode("/root/hidden/acntcdinfo");
-
- model.resetInstanceNode("/root/hidden/unsl_one"); // 20081021 최형진
- model.resetInstanceNode("/root/hidden/orchreturn"); //
-
- model.refresh();
- fSetNoteClear();
- //fCheckServAcnt();
-
- btn_grdadd.disabled = false;
- btn_grdset.disabled = true;
- btn_grddel.disabled = true;
- btn_grdcopy.disabled = true;
- ipt_acntcd.visible = true;
- ipt_acntnm.visible = true;
- btn_acntcd.visible = true;
- cmb_acntcd.visible = false;
- btn_grdclear.visible = false;
- model.setFocus("ipt_acntnm");
- }
-
- //========================================================================================
- //행번 증가
- //========================================================================================
- function fIncreSeqno(pRef) {
- var slipseqno = model.getValue("/root/hidden/maxslipseqno");
- var seqno = parseInt(slipseqno, 10);
-
- seqno++;
- model.setValue(pRef, seqno.toString().getLeftPad(5,"0"));
- }
- //========================================================================================
- //저장 click
- //========================================================================================
- function fSaveClick(rowDel)
- {
- var updtdata = getGridUpdateData(grd_unsl);
- if (updtdata == "")
- {
- messageBox("변경된 내역이", "I004");
- return;
- }
-
- if(rdo_slipkind.value != "1" && !famtCheck()) // 차대 금액 확인 [20091029 - 지출대체전표도 이체계좌를 입력해야한다.]
- {
- return;
- }
- model.setValue("/root/send/unsl",grd_unsl.getUpdateData());
- if (submit("TXRAD00101"))
- {
- grp_apln.visible = false;
- btn_copy.disabled = false;
- btn_dayshift.disabled = false;
- btn_availablebugt.disabled = false;
- model.setValue("/root/send/unsl","");
- if (model.getValue("/root/hidden/condition/unslno") != model.getValue("/root/main/unsl[1]/unslno"))
- {
- model.setValue("/root/hidden/condition/unslno", model.getValue("/root/main/unsl[1]/unslno"));
- model.refresh();
- }
- model.recalculate();
- fSumExpantAmt();
- var bExist = false;
- for(var i=1; i<grd_unsl.rows; i++)
- {
- if(bExist) break;
-
- var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
- var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
-
- if(sDrCrFlag == "C")
- {
- for(var j=0; j<arrTransAcntCd.length; j++)
- {
- if(arrTransAcntCd[j] == sAcntCd) bExist = true;
- }
- }
- }
-
- if(rowDel != 'Y')
- {
- //model.setValue("/root/temp2/tranflag", "Y");
- submit("TXRAD00110");
-
- messageBox("전표가 저장", "I002");
-
- /* if (model.getValue("/root/hidden/condition/slipkind") == "3" || bExist) // 차변에 예금성 계정이 있어야 이체게좌를 등록한다.
- {
- if (messageBox("이체계좌를 등록하시겠습니까?", "Q000") == "6")
- {
- btn_setacnt.dispatch("DOMActivate");
- }
- }*/
-
- }
- }
- else
- {
- submit("TRRAD00101");
- }
- model.refresh();
- }
-
- //========================================================================================
- //삭제 click
- //========================================================================================
- function fDeleteClick()
- {
- if (messageBox("전표를", "Q001") == "6")
- {
- var rowCnt = grd_unsl.rows;
- for (i=1; i<rowCnt; i++)
- {
- grd_unsl.deleteRow(1, false);
- }
- model.refresh();
- model.setValue("/root/send/unsl",grd_unsl.getUpdateData());
- if (submit("TXRAD00101"))
- {
- grd_unsl.clearStatus();
- model.setValue("/root/send/unsl","");
- fClearClick();
- }
- }
- }
- //========================================================================================
- //초기화 click
- //========================================================================================
- function fClearClick()
- {
- var sToday = getCurrentDate().toString();
-
- btn_grdadd.disabled = false;
- btn_grdset.disabled = true;
- btn_grddel.disabled = true;
- btn_grdcopy.disabled = true;
- btn_copy.disabled = true;
- btn_dayshift.disabled = true;
- btn_availablebugt.disabled = true;
- btn_prtcancel.disabled = true;
- ipt_acntcd.visible = true;
- ipt_acntnm.visible = true;
- btn_acntcd.visible = true;
- cmb_acntcd.visible = false;
- btn_grdclear.visible = false;
- cmb_slipflag.disabled = false;
- model.setValue(cmb_slipflag.attribute("ref"), "1");
- //ipt_slipcmt.attribute("editable") = true;
- ipt_defrayreqdd.attribute("editable") = true;
- ipt_defrayreqdd.disabled = false;
- ipt_projectid.attribute("editable") = true;
- ipt_projectnm.attribute("editable") = true;
- model.removeNodeset("/root/main/unsl");
- model.removenode("/root/main/unsl_one");
- model.makeNode("/root/main/unsl_one");
- model.copyNode("/root/main/unsl_one","/root/hidden/unsl_one");
- model.removenode("/root/hidden/condition/projectid");
- model.makeNode("/root/hidden/condition/projectid");
- model.removenode("/root/hidden/condition/projectnm");
- model.makeNode("/root/hidden/condition/projectnm");
- if (model.getValue("/root/hidden/condition/unsldd") == "")
- {
- model.setValue("/root/hidden/condition/unsldd", sToday);
- }
- var instcd = getUserInfo("dutplceinstcd");
- var deptcd = getUserInfo("dutplcecd");
- var deptnm = getUserInfo("dutplcenm");
- if (instcd.length > 0)
- {
- model.setValue("/root/main/unsl_one/instcd", instcd);
- }
- else
- {
- if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
- }
- model.setValue("/root/main/unsl_one/costcntrdeptcd", deptcd);
- model.setValue("/root/main/unsl_one/costcntrdeptnm", deptnm);
- model.setValue("/root/main/unsl_one/costbelongdeptcd", deptcd);
- model.setValue("/root/main/unsl_one/costbelongdeptnm", deptnm);
- model.setValue("/root/hidden/condition/slipdeptcd", deptcd);
- model.setValue("/root/hidden/condition/slipdeptnm", deptnm);
- model.setValue("/root/main/unsl_one/unslwrit", getUserId());
- model.setValue("/root/main/unsl_one/usernm", getUserName());
- model.setValue("/root/send/data1/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data1/slipdd", model.getValue("/root/hidden/condition/unsldd"));
- model.setValue("/root/send/data1/slipflag", "U");
- model.refresh();
- submit("TRRAD00102");
- model.setValue("/root/hidden/condition/unslno", model.getValue("/root/hidden/maxslipno/unslno"));
- model.setValue("/root/main/unsl_one/unslseqno", "00001");
- model.setValue("/root/hidden/maxslipseqno", "00000");
- model.setValue("/root/hidden/condition/slipcmt", "");
- model.setValue("/root/hidden/condition/defrayreqdd", "");
- // model.refresh();
- fdrcrflagSet();
- fSumExpantAmt();
- fuserInfoSet();
- model.refresh();
- for (i=1; i<7; i++) {
- model.toggle("case_noteblank"+i);
- }
- fSlipStatus();
-
- if(rdo_slipkind.value == '4' && acntdept != getUserInfo("dutplcecd"))
- {
- messageBox("권한이 없습니다." ,"I000");
- model.setValue(rdo_slipkind.attribute("ref"), "3");
- rdo_slipkind.refresh();
- }
-
- model.setFocus("ipt_slipcmt");
- }
- //========================================================================================
- //전표 입력 내역 행 click
- //========================================================================================
- function fGridRowClick()
- {
- var cur_row = grd_unsl.row;
-
- if ( cur_row > 0 )
- {
- if (model.getValue("/root/main/unsl["+cur_row+"]/rlaacntseqno") == "")
- {
- btn_grdadd.disabled = true;
- btn_grdset.disabled = false;
- btn_grddel.disabled = false;
- btn_grdcopy.disabled = false;
- ipt_acntcd.visible = true;
- ipt_acntnm.visible = true;
- btn_acntcd.visible = true;
- cmb_acntcd.visible = false;
- }
- else
- {
- btn_grdadd.disabled = true;
- btn_grdset.disabled = false;
- btn_grddel.disabled = true;
- btn_grdcopy.disabled = true;
- if (model.getValue("/root/main/unsl["+cur_row+"]/acntcd") != incmtax && model.getValue("/root/main/unsl["+cur_row+"]/acntcd") != resdntax)
- {
- ipt_acntcd.visible = false;
- ipt_acntnm.visible = false;
- btn_acntcd.visible = false;
- cmb_acntcd.visible = true;
- }
- else
- {
- ipt_acntcd.visible = true;
- ipt_acntnm.visible = true;
- btn_acntcd.visible = true;
- cmb_acntcd.visible = false;
- }
- }
- btn_grdclear.visible = true;
- model.copyNode("/root/main/unsl_one","/root/main/unsl["+cur_row+"]");
- var custflag = model.getValue("/root/main/unsl_one/custflag");
- model.setValue("/root/send/data2/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
- model.setValue("/root/send/data2/drcrflag", model.getValue("/root/main/unsl_one/drcrflag"));
- model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl_one/projectid"));
- model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl_one/projectnm"));
- model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/main/unsl_one/projectid"));
- model.refresh();
- submit("TRRAD00103");
- //기재사항setting
- fSetNote();
- fAcntInfoSelect1();
- //예수금 set
- var profflag = model.getValue("/root/main/unsl_one/profflag");
- var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
- var j = 0;
- if (profflag == "7" || profflag == "8" || profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
- {
- if (profflag == "9" || profflag == "A" || profflag == "B" || profflag == "C")
- {
- for (i=1; i < grd_unsl.rows; i++)
- {
- if (model.getValue("/root/main/unsl["+i+"]/acntcd") == incmtax && model.getValue("/root/main/unsl["+i+"]/rlaacntseqno") == rlaacntseqno)
- {
- model.setValue("/root/hidden/orchreturn/incmtax", model.getValue("/root/main/unsl["+i+"]/amt"));
- j++;
- }
- }
- for (i=1; i < grd_unsl.rows; i++)
- {
- if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == resdntax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno) {
- model.setValue("/root/hidden/orchreturn/resdntax", model.getValue("/root/main/unsl[" + i + "]/amt"));
- j++;
- }
- }
- }
- model.setValue("/root/hidden/orchreturn/seqno", model.getValue("/root/main/unsl_one/seqno"));
- model.setValue("/root/hidden/orchreturn/amt", model.getValue("/root/main/unsl_one/amt"));
- model.setValue("/root/hidden/orchreturn/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
- }
- //상대처setting
- if (model.getValue("/root/main/unsl_one/custflag") != custflag)
- {
- model.setValue("/root/main/unsl_one/custflag", custflag);
-
- if (custflag == "9" || custflag == "")
- {
- model.setFocus("ipt_custnm2");
- model.toggle("명관리");
- }
- else
- {
- model.setFocus("ipt_custnm");
- model.toggle("코드관리");
- }
- }
- else
- {
- if (custflag == "9" || custflag == "")
- {
- model.setFocus("ipt_custnm2");
- model.toggle("명관리");
- }
- else
- {
- model.setFocus("ipt_custnm");
- model.toggle("코드관리");
- }
- }
- model.refresh();
- }
- model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag"));
- }
- //========================================================================================
- //전표승인 check
- //========================================================================================
- function fSlipAprvChk(pBugtChk)
- {
- var rows = grd_unsl.rows - 1;
- if (rows == 0 && pBugtChk != "N")
- {
- messageBox("작업할 내용이 없습니다." ,"I000");
- return false;
- }
- var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
- var sanctno = model.getValue("/root/main/unsl[1]/sanctno");
- var slipflag = model.getValue(cmb_slipflag.attribute("ref"));
- var autjournflag = model.getValue("/root/main/unsl[1]/autjournflag");
- if (sanctyn == "Y")
- {
- messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
- return false;
- }
- if (sanctno != "")
- {
- messageBox("승인된 전표이므로 작업을 불허합니다." ,"I000");
- return false;
- }
- if (slipflag == "9")
- {
- messageBox("반제전표이므로 작업을 불허합니다." ,"I000");
- return false;
- }
- if (autjournflag == "Y")
- {
- //messageBox("자동분개로 작성된 전표는 수정할 수 없습니다." ,"I000");
- //return false;
- //자동분개로 작성된 전표도 수정할 수 있도록 설정 20090115
- }
- return true;
- }
- //========================================================================================
- //전표출력 click
- //========================================================================================
- function fSlipPrintClick(vPreview)
- {
- if(!famtCheck()) // 차대 금액 확인
- {
- return;
- }
-
- var ret;
- var iRow;
- var actTrans = false;
- if (grd_unsl.rows == 1)
- {
- messageBox("출력할 내용이" ,"I004");
- return false;
- }
- for(var i=1; i<grd_unsl.rows; i++)
- {
- if(grd_unsl.rowStatus(i) != 0)
- {
- messageBox("작성중이거나 수정중인 내역이 있어 출력", "E001");
- return false;
- }
- }
- grp_apln.visible = false;
- model.removenode("/root/main/transacnt"); // 기존의 전표 데이터 삭제
- model.removenode("/root/main/apln"); // 기존의 결재라인 데이터 삭제
- model.removenode("/root/hidden/prntlist/dayworkerprntlist"); // 기존의 일용근로소득 데이터 삭제
- model.removenode("/root/hidden/prntlist/priprofprntlist"); // 기존의 사업소득 데이터 삭제
- model.removenode("/root/hidden/prntlist/etcprofprntlist"); // 기존의 기타소득 데이터 삭제
- model.setValue("/root/send/data3/instcd", model.getValue("/root/main/unsl_one/instcd") );
- model.setValue("/root/send/data3/unsldd", model.getValue("/root/hidden/condition/unsldd") );
- model.setValue("/root/send/data3/unslno", model.getValue("/root/hidden/condition/unslno") );
- model.setValue("/root/send/data3/costcntrdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd") );
- model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));//getUserInfo("dutplcecd"));
- model.setValue("/root/send/data3/unslddno", model.getValue("/root/hidden/condition/unsldd") + model.getValue("/root/hidden/condition/unslno") );
- model.setValue("/root/send/data3/drcrcmt", model.getValue(rdo_drcrcmt.attribute("ref")));
- // if (getUserInfo("dutplcecd") == acntdept)
- // {
- // model.setValue("/root/send/data3/slipdeptcd", "%");
- // }
- // else
- // {
- // model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/main/unsl_one/slipdeptcd"));
- // }
- model.refresh();
- if(getUserInfo("dutplceinstcd") == "017")
- {
- submit("TRRAD00113"); // 증빙요약내역
- submit("TRRAD00114"); // 예산정보
- submit("TRRAD00115"); // 지출결의서
- }
- submit("TRRAD00101"); // 전표조회
- submit("TRRAD00108"); // 이체계좌내역
- submit("TRRAD00109"); // 원전 징수 증빙 조회
-
- model.setValue("/root/hidden/rptparm/expansion", expansion);
-
- model.setValue("/root/hidden/rptparm/instcd", cmb_instcd.value);
- model.setValue("/root/hidden/rptparm/instnm", cmb_instcd.label);
- model.setValue("/root/hidden/rptparm/slipno", "(전표번호 : " + model.getValue("/root/hidden/condition/unsldd") + "-" + model.getValue("/root/hidden/condition/unslno") + ")");
-
- model.setValue("/root/hidden/rptparm/bugtinfocnt", instance1.selectNodes("/root/main/bugtacptlist").length);
- model.setValue("/root/hidden/rptparm/profinfocnt", instance1.selectNodes("/root/main/slipproflist").length);
- model.setValue("/root/hidden/rptparm/transinfocnt", instance1.selectNodes("/root/main/transacnt").length);
- model.setValue("/root/hidden/rptparm/dayworkerprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/dayworkerprntlist").length);
- model.setValue("/root/hidden/rptparm/priprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/priprofprntlist").length);
- model.setValue("/root/hidden/rptparm/etcprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/etcprofprntlist").length);
- model.setValue("/root/hidden/rptparm/retrprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/retrprofprntlist").length);
- model.setValue("/root/hidden/rptparm/servprofprntlistcnt", instance1.selectNodes("/root/hidden/prntlist/servprofprntlist").length);
- model.setValue("/root/hidden/rptparm/preview", vPreview);
-
- iRow = grd_unsl.findRow("Y", 1, grd_unsl.colRef("sanctyn"));
- if (iRow > 0) // 이미 전송된 전표
- {
- model.setValue("/root/hidden/rptparm/reprtyn", "Y");
-
- fPrintSlip();
-
- }
- else // 미전송 전표
- {
- if(!fAcntKijeCheck()) // 기재사항입력여부 체크
- {
- return false;
- }
- var vInstcd = getUserInfo("dutplceinstcd");
- var vUnsldd = model.getValue("/root/hidden/condition/unsldd");
- var vUnslno = model.getValue("/root/hidden/condition/unslno");
- // if(!radfSubstituteSlipAmtCheck(vInstcd, vUnsldd, vUnslno)) // 대체전표의 현금성등가물의 상대계정 금액 대칭 일치 여부 검사
- // {
- // return false;
- // }
- model.setValue("/root/send/data3/instcd",model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data3/unsldd",model.getValue("/root/hidden/condition/unsldd"));
- model.setValue("/root/send/data3/unslno",model.getValue("/root/hidden/condition/unslno"));
- model.makeValue("/root/send/data3/sanctyn","Y");
- model.makeValue("/root/send/data3/refreshyn","Y");
- model.refresh();
- submit("TRRAD00107");
- for(var i=1; i<=instance1.selectNodes("/root/hidden/chklist/chklist").length; i++)
- {
- var sGbn = model.getValue("/root/hidden/chklist/chklist[" + i + "]/gbn");
- var sChk = model.getValue("/root/hidden/chklist/chklist[" + i + "]/chk");
- if(sGbn == "aact")
- {
- var sExpsAcntSum = model.getValue("/root/hidden/expsacntsum");
- var AactChkflag = true;
-
- if(model.getValue("/root/hidden/condition/slipkind") == "3")
- {
- if(parseFloat(sExpsAcntSum) != parseFloat(sChk))
- {
- messageBox("전표상의 [ 예금 금액 합계 ] 와 [ 이체계좌 금액 합계 ] 가 달라 출력을", "E001");
- return false;
- }
- }
- else if(model.getValue("/root/hidden/condition/slipkind") == "1")
- {
- //alert(parseInt(sExpsAcntSum, 10));
- if(parseFloat(sExpsAcntSum) != parseFloat(sChk) && parseInt(sChk, 10) != 0)
- {
- messageBox("전표상의 [ 예금 금액 합계 ] 와 [ 이체계좌 금액 합계 ] 가 달라 출력을", "E001");
- return false;
- }
-
- if(parseFloat(sChk) == 0) AactChkflag = false;
- }
-
-
- if(getUserInfo("dutplceinstcd") != '103')
- {
- if(AactChkflag == true && !fAactException()) // 출금계좌 일치 여부 확인
- {
- return false;
- }
- }
-
- }
- else if(sGbn == "orch")
- {
- if(sChk != "")
- {
- var sChks = sChk.split('●');
- var sMsg = "";
- for(var i=0; i<sChks.length; i++)
- {
- if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
- else sMsg = sMsg + sChks[i] + "\n\n";
- }
- messageBox(sMsg + "\n\n출력을", "E001");
- return false;
- }
- }
- else if(sGbn == "key")
- {
- if(sChk != "")
- {
- var sChks = sChk.split('●');
- var sMsg = "";
- for(var i=0; i<sChks.length; i++)
- {
- if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
- else sMsg = sMsg + sChks[i] + "\n\n";
- }
- messageBox(sMsg + "\n\n출력을", "E001");
- return false;
- }
- }
- else if(sGbn == "serv")
- {
- if(sChk != "")
- {
- var sChks = sChk.split('●');
- var sMsg = "";
- for(var i=0; i<sChks.length; i++)
- {
- if((i + 1) == sChks.length) sMsg = sMsg + sChks[i];
- else sMsg = sMsg + sChks[i] + "\n\n";
- }
- messageBox(sMsg + "\n\n출력을", "E001");
- return false;
- }
- }
-
- }
-
- actTrans = true; // 전송되는 전표는 전송 후 다음 입력 상태로 돌아간다.
-
- if(vPreview != "Y")
- {
- // ret = messageBox("전표 입력을 마감하고 재무팀으로 해당 내역을 전송합니다.\n전송후 출력이 가능하며 수정,삭제가 불가합니다.\n\n작업을","Q004");
- ret = messageBox("출력 후에는 전표수정이\n불가합니다.\n출력하시겠습니까?","Q999");
- if (ret == "6")
- {
- if(!submit("TXRAD00102"))
- {
- return false;
- }
- if (getUserInfo("dutplcecd") == acntdept)
- {
- btn_prtcancel.disabled = false;
- }
- }
- else
- {
- return false;
- }
- }
- fPrintSlip();
-
- if(actTrans == true && vPreview != "Y")
- {
- btn_clear.dispatch("DOMActivate");
-
- }
-
- }
-
- return true;
- }
-
- //========================================================================================
- // 전표출력
- //========================================================================================
- function fPrintSlip()
- {
- var SlipFrom = "";
- var SumSlipFrom = "RPRAD00101";
-
- var chSlipFlag ;
- var vanSwer;
-
- // 입고, 출고, 반제 전표인 경우 계정별 Sum된 출력을 할 수 있도록 물어 봄
- chSlipFlag = model.getValue("/root/hidden/condition/slipflag");
-
- if(getUserInfo("dutplceinstcd") == "017")
- {
- if(model.getValue(rdo_slipkind.attribute("ref")) == "1" || model.getValue(rdo_slipkind.attribute("ref")) == "2")
- {
- SlipFrom = "RPRAD00103";
- }
- else
- {
- SlipFrom = "RPRAD00102";
- }
- }
- else if(getUserInfo("dutplceinstcd") == "014")
- {
- if ( chSlipFlag == '2' || chSlipFlag == '3')
- {
- SlipFrom = "RPRAD00103";
- }
- else
- {
- SlipFrom = "RPRAD00100";
- }
- }
- else
- {
- SlipFrom = "RPRAD00100";
- }
-
-
- if ( chSlipFlag == '6' || chSlipFlag == '7' || chSlipFlag == '9' )
- {
- vanSwer = messageBox("계정별 합계 형태의 출력을 하시겠습니까?","Q999");
- if (vanSwer == "6")
- {
- exeReportPreview(SumSlipFrom, "XMLSTR", "/root/hidden/rptparm");
- }
- else
- {
- exeReportPreview(SlipFrom, "XMLSTR", "/root/hidden/rptparm");
- }
- }
- else
- {
- exeReportPreview(SlipFrom, "XMLSTR", "/root/hidden/rptparm");
- }
-
- }
- //========================================================================================
- //전표출력취소 click - 재무팀 전송 취소 기능
- //========================================================================================
- function fSlipPrintCancelClick() {
- var row = grd_unsl.rows;
- if (row == 1) {
- messageBox("취소할 전표를 선택하세요.","I000");
- return;
- }
- iRow = grd_unsl.findRow("N",1,grd_unsl.colRef("sanctyn"));
- if (iRow > 0 ) {
- btn_prtcancel.disabled = true;
- return;
- }
- ret = messageBox(" 전표출력을\n\n취소하시겠습니까?\n","Q999");
- if (ret == "6") {
- model.setValue("/root/send/data3/instcd",model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data3/unsldd",model.getValue("/root/hidden/condition/unsldd"));
- model.setValue("/root/send/data3/unslno",model.getValue("/root/hidden/condition/unslno"));
- model.makeValue("/root/send/data3/sanctyn","N");
- model.makeValue("/root/send/data3/refreshyn","Y");
- model.refresh();
-
- if (submit("TXRAD00102")) {
- btn_prtcancel.disabled = true;
- }
- } else {
- return;
- }
- }
- //========================================================================================
- //예산편성내역 click
- //========================================================================================
- function fBugtClick()
- {
- var sInstCd = model.getValue("/root/main/unsl_one/instcd");
- var sDeptcd = ipt_costcntrdeptcd.value;
- var sUnsldd = "";
- if(cmb_slipflag.value == "A")
- {
- sUnsldd = parseFloat(ipt_unsldd.value) - 10000;
- }
- else
- {
- sUnsldd = ipt_unsldd.value;
- }
- var sAcntCd = ipt_acntcd.value;
- var sDrCrFlag = rdo_drcrflag.value;
- var instcd = getUserInfo("dutplceinstcd");
- var emplno = getUserInfo("userid");
- var vAcntdept = acntdept;
- var vBugtdept = bugtdept;
- var vSlipdept = model.getValue("/root/main/unsl_one/slipdeptcd");
- var vFullSearchFlag = 'N';
-
-
- if(vSlipdept == vAcntdept || vSlipdept == vBugtdept || vSlipdept == sDeptcd || radfCheckBugtAuth(instcd, emplno, sDeptcd, 'SLIPSEARCHYN') == "Y") vFullSearchFlag = 'Y';
- var sParams = sInstCd + "," + sDeptcd + "," + sUnsldd + "," + sAcntCd + "," + sDrCrFlag + "," + vFullSearchFlag
- model.makeNode("/root/main/unsl_one/bugtflagnm");
- model.makeNode("/root/main/unsl_one/bugtflag");
- model.makeNode("/root/main/unsl_one/acntcd");
- model.makeNode("/root/main/unsl_one/acntnm");
- model.makeNode("/root/main/unsl_one/bugtcd");
- model.makeNode("/root/main/unsl_one/bugtnm");
- model.makeNode("/root/main/unsl_one/projectid");
- model.makeNode("/root/main/unsl_one/projectnm");
- model.makeNode("/root/main/unsl_one/orgbugtamtsum");
- model.makeNode("/root/main/unsl_one/revbugtamtsum");
- model.makeNode("/root/main/unsl_one/bugtexecamtsum");
- model.makeNode("/root/main/unsl_one/bugtamt");
- fOpenPopupHelp("16", ipt_costcntrdeptcd, "bugtflag,bugtflagnm,acntcd,acntnm,bugtcd,bugtnm,projectid,projectnm,orgbugtamtsum,revbugtamtsum,bugtexecamtsum,bugtamt", "", sParams, "instcd,deptcd,unsldd,acntcd,drcrflag,fullsearchflag");
-
- fAcntInfoSelect();
- if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "")
- {
- fAcntInfoSelect1();
- }
- model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/unsl_one/projectid"));
- model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/unsl_one/projectnm"));
- }
- //========================================================================================
- //이체계좌등록 click
- //========================================================================================
- function fSetAcntClick()
- {
- if (grd_unsl.rows == 1)
- {
- messageBox("전표 입력 후 작업하세요." ,"I000");
- return;
- }
- if(!famtCheck()) // 차대 금액 확인
- {
- return;
- }
- var sYn = "N";
- if(getUserInfo("dutplcecd") == acntdept)
- {
- sYn = "Y";
- }
- model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.makeValue("/root/source/slipinfo/instnm", cmb_instcd.label);
- model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
- model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
- model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/hidden/condition/slipcmt"));
- model.makeValue("/root/source/slipinfo/expsacntsum", model.getValue("/root/hidden/expsacntsum"));
- model.makeValue("/root/source/slipinfo/sanctyn", model.getValue("/root/main/unsl[1]/sanctyn"));
- model.makeValue("/root/source/slipinfo/acntdeptyn", sYn);
- model.makeValue("/root/source/slipinfo/slipkind", model.getValue("/root/hidden/condition/slipkind"));
- model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
- model.makeValue("/root/source/receiveref2", "/root/hidden/retexpacntsum");
- modal("SPRAD00108","","","","","/root/source", "/root/target", "sysmenu:hidden" );
- model.refresh();
- }
- //========================================================================================
- //증빙입력여부check
- //========================================================================================
- function fProfExistsChk()
- {
- // if(grd_unsl.row > grd_unsl.fixedRows && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == 'Y')
- // {
- // messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
- // return false;
- // }
- var seqno = model.getValue("/root/main/unsl_one/seqno");
- var profflag = model.getValue("/root/main/unsl["+grd_unsl.row+"]/profflag");
- var profflag1 = model.getValue("/root/main/unsl_one/profflag");
- var prev_prof = model.getValue("/root/hidden/prev_prof");
- if (model.getValue("/root/hidden/condition/slipkind") == "2" && (profflag1 != "4" && profflag1 != "5" && profflag1 != "6"))
- {
- model.setValue("/root/main/unsl_one/profflag", profflag);
- model.refresh();
- messageBox("입금전표 증빙은 세금계산서, 계산서, 기타 유형으로만 등록이 가능합니다.","I000");
- return false;
- }
- if (seqno != "")
- {
- var ret = "";
- //if(btn_grdset.disabled == false && profflag != model.getValue("/root/main/unsl_one/profflag"))
- if(btn_grdset.disabled == false && profflag != profflag1)
- {
- var profflagnm = model.getValue("/root/init/profflaglist/profflag[cd='"+ profflag +"']/nm");
- ret = messageBox("해당 증빙[" + profflagnm + "]에 입력된 자료가 존재합니다.\n증빙을 변경하시겠습니까?","Q999");
- if(ret == "6")
- {
- return true;
- }
- else
- {
- model.setValue("/root/main/unsl_one/profflag", profflag);
- model.refresh();
- return false;
- }
- }
- else if(prev_prof != model.getValue("/root/main/unsl_one/profflag"))
- {
- var prev_profnm = model.getValue("/root/init/profflaglist/profflag[cd='"+ prev_prof +"']/nm");
- ret = messageBox("해당 증빙[" + prev_profnm + "]에 입력된 자료가 존재합니다.\n증빙을 변경하시겠습니까?","Q999");
- if(ret == "6")
- {
- return true;
- }
- else
- {
- model.setValue("/root/main/unsl_one/profflag", prev_prof);
- model.refresh();
- return false;
- }
- }
-
- }
- return true;
- }
- //========================================================================================
- //증빙구분-원천징수 외 click
- //========================================================================================
- function fProfClick(pProfflag)
- {
- fetcprofcntcheck();
-
- if(model.getValue("/root/hidden/slipstatus") == "미 출 력"){
-
- if((rdo_profflag1.value == '1' || rdo_profflag2.value == '2' || rdo_profflag3.value == '3') && radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition6') == "Y")
- {
- if(!((model.getValue(cmb_custflag.attribute("ref")) == "1" && model.getValue(ipt_custcd.attribute("ref")) != "") || model.getValue(cmb_custflag.attribute("ref")) == "9"))
- {
- messageBox("상대처구분에 거래처나 기타를 선택해야 합니다.", "I000");
- return false;
- }
- }
- else
- {
- if(!(model.getValue(cmb_custflag.attribute("ref")) == "1" && model.getValue(ipt_custcd.attribute("ref")) != ""))
- {
- messageBox("상대처구분에 거래처를 입력해야 합니다.", "I000");
- return false;
- }
- }
-
- if(!fCashAcntProfException()) return false; //현금성 등가물 증빙 예외
-
- if (!fProfExistsChk())
- {
- return;
- }
-
- if(model.getValue("/root/main/unsl_one/profflag") == "1") // 선택된 귀속부서가 사용자의 근무부서이면 부서 법인카드를 볼 수 있도록 파라미터를 보낸다.
- {
- model.makeValue("/root/source/slipinfo/cardno", model.getValue("/root/hidden/instcardseqnoinfo/instcardseqno"));
-
- var vDeptCD = getUserInfo("dutplcecd");
-
- if(vDeptCD == model.getValue(ipt_costcntrdeptcd.attribute("ref")))
- {
- model.makeValue("/root/source/slipinfo/carddeptcd", vDeptCD);
- }
- else
- {
- model.makeValue("/root/source/slipinfo/carddeptcd", "");
- }
- }
-
- model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
-
- model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/seqno"));
- model.makeValue("/root/source/slipinfo/custcd", model.getValue("/root/main/unsl_one/custcd"));
- model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
- model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
- model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
- model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
- model.makeValue("/root/source/slipinfo/etcnotefact", model.getValue("/root/main/unsl_one/etcnotefact"));
- model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
- model.makeValue("/root/source/slipinfo/slipkind", model.getValue("/root/hidden/condition/slipkind"));
-
- if(cmb_custflag.value == "4" && ipt_custcd.value != "")
- {
- //alert("4 : " + ipt_custcd.value);
- model.makeValue("/root/source/slipinfo/emplno", "");
- model.setValue("/root/source/slipinfo/emplno", ipt_custcd.value);
- }
-
- var acntdeptflag;
-
- if(acntdept == getUserInfo("dutplcecd"))
- {
- acntdeptflag = "Y";
- }
- else
- {
- acntdeptflag = "N";
- }
-
- model.makeValue("/root/source/slipinfo/acntdept", acntdeptflag);
-
- if (pProfflag == "SPRAT00101")
- {
- //세금계산서 관련 증빙
- model.makeValue("/root/source/slipinfo/taxbillkind", model.getValue("/root/main/unsl_one/profflag"));
- model.makeValue("/root/source/slipinfo/taxbillflag", "1");
- // model.makeValue("/root/source/slipinfo/reptkind", "3"); //수정필요
- model.makeValue("/root/source/slipinfo/flagcd", "1");
-
- var sMonth = model.getValue("/root/hidden/condition/unsldd").substr(4, 2);
-
- //var sReptKind = "3";
-
- if(sMonth == "01" || sMonth == "02" || sMonth == "03")
- {
- sReptKind = "1";
- }
- else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
- {
- sReptKind = "2";
- }
- else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
- {
- sReptKind = "3";
- }
- else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
- {
- sReptKind = "4";
- }
-
- model.makeValue("/root/source/slipinfo/reptkind", sReptKind); //수정필요
- }
- else
- {
- model.makeValue("/root/source/slipinfo/profflag", model.getValue("/root/main/unsl_one/profflag"));
- }
-
- model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
- model.makeValue("/root/source/receivecardinforef", "/root/hidden/instcardseqnoinfo"); //저장한 카드번호를 임시 저장한다.
- model.refresh();
-
- modal(pProfflag,"","","","","/root/source", "/root/target" );
- model.refresh();
-
- if ((model.getValue("/root/source/slipinfo/seqno") != model.getValue("/root/main/unsl_one/seqno")
- || model.getValue("/root/source/slipinfo/amt") != model.getValue("/root/main/unsl_one/amt")) && btn_grdset.disabled == false)
- {
- var cur_row = grd_unsl.row;
- btn_grdset.dispatch("DOMActivate");
- grd_unsl.row = cur_row;
- fGridRowClick();
- }
-
- model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); //저장한 증빙외의 증빙 선택 제한
- //fCheckServAcnt();
- }else{
- messageBox("미출력상태가 아닌 전표는 수정", "E001");
- return;
- }
- }
- //========================================================================================
- //증빙구분-원천징수 click
- //========================================================================================
- function fProfOrChClick(pProfflag)
- {
- fetcprofcntcheck();
-
- var vProfflag = model.getValue("/root/main/unsl_one/profflag");
- if(getUserInfo("dutplceinstcd") != '103')
- {
- if(vProfflag == "7" || vProfflag == "8")
- {
- if(!(model.getValue(cmb_custflag.attribute("ref")) == "4" && model.getValue(ipt_custcd.attribute("ref")) != ""))
- {
- messageBox("상대처구분에 교직원을 입력해야 합니다.", "I000");
- return false;
- }
- }
- else if(vProfflag == "9")
- {
- if(!((model.getValue(cmb_custflag.attribute("ref")) == "4" || model.getValue(cmb_custflag.attribute("ref")) == "5") && model.getValue(ipt_custcd.attribute("ref")) != ""))
- {
- messageBox("상대처구분에 교직원이나 소득자를 입력해야 합니다.", "I000");
- return false;
- }
- }
- else if(vProfflag == "A" || vProfflag == "B" || vProfflag == "C")
- {
- if(!(model.getValue(cmb_custflag.attribute("ref")) == "5" && model.getValue(ipt_custcd.attribute("ref")) != ""))
- {
- messageBox("상대처구분에 소득자를 입력해야 합니다.", "I000");
- return false;
- }
- }
- }
-
- if (!fProfExistsChk())
- {
- return false;
- }
-
- if(!fCashAcntProfException()) return false; // 현금성 등가물 증빙 예외
-
- model.setValue("/root/hidden/prev_prof", model.getValue("/root/main/unsl_one/profflag")); // 저장한 증빙외의 증빙 선택 제한
- var chgchk = 0;
- model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/seqno"));
- model.makeValue("/root/source/slipinfo/custcd", model.getValue("/root/main/unsl_one/custcd"));
- model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
- model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
- model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
- model.makeValue("/root/source/slipinfo/profflag", model.getValue("/root/main/unsl_one/profflag"));
- model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
- model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/main/unsl_one/etcnotefact"));
- model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
- model.makeValue("/root/source/receiveref", "/root/hidden/orchreturn");
- // alert(cmb_custflag.value);
- if(cmb_custflag.value == "4" && ipt_custcd.value != "")
- {
- //alert("4 : " + ipt_custcd.value);
- model.makeValue("/root/source/slipinfo/emplno", "");
- model.makeValue("/root/source/slipinfo/rrgstno", "");
- model.setValue("/root/source/slipinfo/emplno", ipt_custcd.value);
- }
- else if(cmb_custflag.value == "5" && ipt_custcd.value != "")
- {
- //alert("5 : " + ipt_custcd.value);
- model.makeValue("/root/source/slipinfo/rrgstno", "");
- model.makeValue("/root/source/slipinfo/emplno", "");
- model.setValue("/root/source/slipinfo/rrgstno", ipt_custcd.value);
- }
- else
- {
- model.makeValue("/root/source/slipinfo/emplno", "");
- model.setValue("/root/source/slipinfo/emplno", "");
- model.makeValue("/root/source/slipinfo/rrgstno", "");
- model.setValue("/root/source/slipinfo/rrgstno", "");
- }
- model.refresh();
- modal(pProfflag,"","","","","/root/source", "/root/target", "resize:false" );
- if (model.getValue("/root/main/unsl_one/seqno") != model.getValue("/root/hidden/orchreturn/seqno"))
- {
- model.setValue("/root/main/unsl_one/seqno", model.getValue("/root/hidden/orchreturn/seqno"));
- chgchk++;
- }
- if (model.getValue("/root/main/unsl_one/etcnotefact") != model.getValue("/root/hidden/orchreturn/etcnotefact") && model.getValue("/root/hidden/orchreturn/etcnotefact") != "")
- {
- model.setValue("/root/main/unsl_one/etcnotefact", model.getValue("/root/hidden/orchreturn/etcnotefact"));
- }
- //model.refresh();
- if (model.getValue("/root/main/unsl_one/amt") != model.getValue("/root/hidden/orchreturn/amt") && model.getValue("/root/hidden/orchreturn/amt") != "")
- {
- model.setValue("/root/main/unsl_one/amt", model.getValue("/root/hidden/orchreturn/amt"));
- chgchk++;
- }
- var rlaacntseqno = model.getValue("/root/main/unsl_one/unslseqno");
- for (i=1; i < grd_unsl.rows; i++)
- {
- if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == incmtax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
- {
- if (model.getValue("/root/main/unsl[" + i + "]/amt") != model.getValue("/root/hidden/orchreturn/incmtax") && model.getValue("/root/hidden/orchreturn/incmtax") != "")
- {
- model.setValue("/root/main/unsl[" + i + "]/amt", model.getValue("/root/hidden/orchreturn/incmtax"));
- chgchk++;
- break;
- }
- }
- }
- for (i=1; i < grd_unsl.rows; i++)
- {
- if (model.getValue("/root/main/unsl[" + i + "]/acntcd") == resdntax && model.getValue("/root/main/unsl[" + i + "]/rlaacntseqno") == rlaacntseqno)
- {
- if (model.getValue("/root/main/unsl[" + i + "]/amt") != model.getValue("/root/hidden/orchreturn/resdntax") && model.getValue("/root/hidden/orchreturn/resdntax") != "")
- {
- model.setValue("/root/main/unsl[" + i + "]/amt", model.getValue("/root/hidden/orchreturn/resdntax"));
- chgchk++;
- break;
- }
- }
- }
- model.refresh();
- if (chgchk > 0 && btn_grdset.disabled == false)
- {
- model.refresh();
- var cur_row = grd_unsl.row;
-
- btn_grdset.dispatch("DOMActivate");
- grd_unsl.row = cur_row;
- fGridRowClick();
- }
- //fCheckServAcnt();
- }
- function fSumExpantAmt()
- {
- var iSum = 0;
- var iExpAmt = 0;
- var sAcntCd = "";
- for(var i=1; i<=instance1.selectNodes("/root/main/unsl").length; i++) // 이체계좌에 포함시킬 계정 목록 - 기본적인 계정 외에 추가 적인 계정 hard coding
- {
- sAcntCd = model.getValue("/root/main/unsl[" + i + "]/acntcd");
- iExpAmt = 0;
- // alert("sAcntCd : " + sAcntCd);
- for(var j = 0; j < arrTransAcntCd.length ; j++)
- {
- // alert(arrTransAcntCd[j]);
-
- if(arrTransAcntCd[j] == sAcntCd)
- {
- // alert(arrTransAcntCd[j]);
- var sExpAmt = (model.getValue("/root/main/unsl[" + i + "]/cramt") == "") ? 0 : model.getValue("/root/main/unsl[" + i + "]/cramt");
- iExpAmt = parseInt(sExpAmt, 10);
- break;
- }
- }
- // if(sAcntCd == "1232001" || sAcntCd == "1233001" || sAcntCd == "1234001" || sAcntCd == "1239001")
- // {
- // var sExpAmt = (model.getValue("/root/main/unsl[" + i + "]/cramt") == "") ? 0 : model.getValue("/root/main/unsl[" + i + "]/cramt");
- // iExpAmt = parseInt(sExpAmt, 10);
- // }
- iSum += iExpAmt;
- }
- //alert(iSum)
- //var iExpsacntSum = parseInt((model.getValue("/root/hidden/allexpsacntsum") == "") ? 0 : model.getValue("/root/hidden/allexpsacntsum"), 10);
- //<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; "/>
- //<bind id="bind_caption57" ref="/root/hidden/allexpsacntsum" calculate="sum(/root/main/unsl[acntcd=/root/hidden/expsacnt]/cramt)"/>
- model.setValue("/root/hidden/expsacntsum", iSum);
- model.refresh();
- }
- //========================================================================================
- //예산 귀속부서 help
- //========================================================================================
- function fOpenPopupDeptHelp(pControl, pInstance)
- {
- misfOpenPopUpList("02", pControl, "", pInstance);
- model.refresh();
- }
- //========================================================================================
- //계정과목 삭제 - 부서 변경 시
- //========================================================================================
- function fRemoveAcntValue()
- {
- //model.setValue("/root/main/unsl_one/acntcd", "");
- //model.setValue("/root/main/unsl_one/acntnm", "");
- model.setValue("/root/hidden/condition/projectid", "");
- model.setValue("/root/hidden/condition/projectnm", "");
- model.removenode("/root/main/unsl_one/projectid");
- model.makeNode("/root/main/unsl_one/projectid");
- model.setValue(ipt_costbelongdeptcd.attribute("ref"), model.getValue(ipt_costcntrdeptcd.attribute("ref")));
- model.setValue(ipt_costbelongdeptnm.attribute("ref"), model.getValue(ipt_costcntrdeptnm.attribute("ref")));
- model.refresh();
- }
- //========================================================================================
- //프로젝트 ID 변경 시 unsl_one 에 적용
- //========================================================================================
- function fSetProjectValue()
- {
- model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/hidden/condition/projectid"));
- model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/hidden/condition/projectnm"));
- }
- function fAcntSelect()
- {
- if(!fdayreptAcntcdException())return;
- fAcntInfoSelect();
- if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "")
- {
- if(model.getValue("/root/hidden/acntcdinfo/bugtuseyn") == "Y" && (model.getValue(cmb_slipflag.attribute("ref")) != "A" && model.getValue(cmb_slipflag.attribute("ref")) != "B"))
- // --수정 20080924 수익 예산도 계정 통제를 한다. -- || model.getValue("/root/hidden/acntcdinfo/acntflag") == "4")
- // 수익은 예산 사용 계정이 아니어도 기표 가능하다.
- {
- model.setValue("/root/send/data5/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data5/deptcd", ipt_costcntrdeptcd.value);
- model.setValue("/root/send/data5/unsldd", ipt_unsldd.value);
- model.setValue("/root/send/data5/refcond", "code");
- model.setValue("/root/send/data5/retrnm", model.getValue("/root/main/unsl_one/acntcd"));
- model.setValue("/root/send/data5/drcrflag", rdo_drcrflag.value);
- submit("TRRAD90107");
- if(instance1.selectNodes("/root/main/list/bugtorgnzlist").length > 0)
- {
- model.setValue("/root/main/unsl_one/acntcd", model.getValue("/root/main/list/bugtorgnzlist/acntcd"));
- model.setValue("/root/main/unsl_one/acntnm", model.getValue("/root/main/list/bugtorgnzlist/acntnm"));
- model.setValue("/root/main/unsl_one/bugtcd", model.getValue("/root/main/list/bugtorgnzlist/bugtcd"));
- model.setValue("/root/main/unsl_one/bugtamt", model.getValue("/root/main/list/bugtorgnzlist/bugtamt"));
- model.makeValue("/root/main/unsl_one/bugtflag", model.getValue("/root/main/list/bugtorgnzlist/bugtflag"));
- // 그리드에서 선택하면 [/root/main/unsl_one]에 값이 setting 되는데 일부는 커럼이 없어 인스턴스를 만들지 못함
-
- /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
- {
- fProjectIDSetCombo();
- }*/
- }
- // 모든 기관은 자산의 대변기재 외에는 예산 편성 계정이면 예산계정통제 / 금액통제가 있다.
- // else if(getUserInfo("dutplceinstcd") != "103" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "4") // (X)성의교정은 수익계정도 예산편성이 있어야 함 (예산설정 시 프로젝트 id 가 필수적임)
- // {
- // model.setValue("/root/main/unsl_one/bugtcd", "01");
- // model.setValue("/root/main/unsl_one/bugtamt", "0");
- // }
- else if(model.getValue("/root/main/unsl_one/drcrflag") == "C" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "1") // 자산이 지출일때 대변 기재는 예산과 무관하다.
- {
- model.setValue("/root/main/unsl_one/bugtcd", "01");
- model.setValue("/root/main/unsl_one/bugtamt", "0");
- }
- 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)
- {
- model.setValue("/root/main/unsl_one/bugtcd", "01");
- model.setValue("/root/main/unsl_one/bugtamt", "0");
- }
- else
- {
- messageBox("예산 편성 내역이", "I004");
-
- model.setValue("/root/main/unsl_one/acntcd", "");
- model.setValue("/root/main/unsl_one/acntnm", "");
- model.setValue("/root/main/unsl_one/bugtcd", "");
- model.setValue("/root/main/unsl_one/bugtamt", "");
- /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
- {
- model.removenode("/root/main/unsl_one/projectid");
- model.makeNode("/root/main/unsl_one/projectid");
-
- // model.setValue("/root/main/unsl_one/projectid", "");
- // model.setValue("/root/main/unsl_one/projectnm", "");
- // model.setValue("/root/hidden/condition/projectid", "");
- // model.setValue("/root/hidden/condition/projectnm", "");
- }
- */
- model.refresh();
- return;
- }
- }
- else
- {
- model.setValue("/root/main/unsl_one/projectid", "");
- model.setValue("/root/main/unsl_one/projectnm", "");
- model.setValue("/root/hidden/condition/projectid", "");
- model.setValue("/root/hidden/condition/projectnm", "");
- model.setValue(ipt_bugtamt.attribute("ref"), "");
- ipt_bugtamt.refresh();
- }
- model.refresh();
- fAcntInfoSelect1();
- if (switch8.selectedIndex == 0)
- {
- model.setFocus("ipt_custnm");
- }
- else
- {
- model.setFocus("ipt_custnm2");
- }
- }
- else
- {
- fAcntClear();
- }
-
- // 대체 전표에서 예금을 선택하면
- for(var i = 0 ; i < arrCashAcntCd.length ; i++)
- {
- if(arrCashAcntCd[i] == ipt_acntcd.value)
- {
- 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))
- {
- model.setValue("/root/main/unsl_one/amt", parseInt(caption13.value) - parseInt(caption14.value));
- }
- rdo_profflag6.select(0); // 현금성 등가물은 무조건 증빙구분이 기타임
- }
- }
- cmb_custflag.refresh();
- model.refresh();
- }
- function fAcntClear()
- {
- model.resetInstanceNode("/root/hidden/acntcdinfo");
- /* if(model.getValue("/root/main/unsl_one/instcd") == "103")
- {
- model.setValue("/root/main/unsl_one/projectid", "");
- model.setValue("/root/main/unsl_one/projectnm", "");
- model.setValue("/root/hidden/condition/projectid", "");
- model.setValue("/root/hidden/condition/projectnm", "");
- }
- */
- model.setValue("/root/main/unsl_one/bugtamt", 0);
- model.refresh();
- fAcntInfoSelect();
- model.setFocus("ipt_acntnm");
- }
-
- //========================================================================================
- //성의 교정 자금과목 Setting
- //========================================================================================
- function ffundcdReSetting()
- {
- model.setValue("root/init/fundscdlist/fundscd[2]/nm", "교육용수입");
- model.setValue("root/init/fundscdlist/fundscd[3]/nm", "교육외수입");
- model.setValue("root/init/fundscdlist/fundscd[7]/nm", "교육외지출");
- }
-
- //========================================================================================
- //전표의 차대변 금액 검사
- //========================================================================================
- function famtCheck()
- {
- var dramt = parseInt(caption13.value);
- var cramt = parseInt(caption14.value);
-
- if (dramt != cramt)
- {
- messageBox("차대변 금액이","E004");
- return false;
- }
- return true;
- }
-
- //========================================================================================
- //현금 계정은 대체전표로 작성할 수 없다.
- //========================================================================================
- function fdayreptAcntcdException()
- {
- if(ipt_acntcd.value == cashcd && (rdo_slipkind.value == "1" || rdo_slipkind.value == "4"))
- {
- messageBox("현금은 대체전표로 발의 할 수" ,"E001");
- model.setValue("/root/main/unsl_one/acntcd", "");
- model.setValue("/root/main/unsl_one/acntnm", "");
- ipt_acntcd.refresh();
- ipt_acntnm.refresh();
- return false;
- }
- else
- {
- return true;
- }
- }
- //========================================================================================
- // 필수 기재사항 예외처리
- //========================================================================================
- function fcheckAcntOption()
- {
- for (i=1; i<7; i++)
- {
- var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
- var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
- var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
- if(option == "Y")
- {
- if((kind == "1" || kind == "3") && model.getValue("/root/main/unsl_one/notefactcd" + i) == "")
- {
- messageBox(title + "은(는)","I003");
- return false;
- }
- else if(kind == "2" && model.getValue("/root/main/unsl_one/notefactspec" + i) == "")
- {
- messageBox(title + "은(는)","I003");
- return false;
- }
- }
- }
- return true;
- }
- //========================================================================================
- // 필수 기재사항 예외처리
- //========================================================================================
- function fdrcrflagSet()
- {
- var slipkind = model.getValue("/root/hidden/condition/slipkind");
- if (slipkind == "1" || slipkind == "4") {
- model.setValue("/root/main/unsl_one/drcrflag","D");
- rdo_drcrflag.disabled = false;
- // ipt_defrayreqdd.disabled = true;
- ipt_defrayreqdd.disabled = false;// 대체는 예정일 막았었지만 요청에 의한 해제
- } else if (slipkind == "2") {
- model.setValue("/root/main/unsl_one/drcrflag","C");
- rdo_drcrflag.disabled = true;
- ipt_defrayreqdd.disabled = false;
- } else if (slipkind == "3") {
- model.setValue("/root/main/unsl_one/drcrflag","D");
- rdo_drcrflag.disabled = true;
- ipt_defrayreqdd.disabled = false;
- }
- }
- //========================================================================================
- // 계좌 중복 예외처리 (이체계좌 등록 시)
- //========================================================================================
- function transAcntException()
- {
- var vCount = 0;
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- if(model.getValue(grd_unsl.nodeset + "[" + i + "]/drcrflag") == "C")
- {
- sAcntCd = model.getValue(grd_unsl.nodeset + "[" + i + "]/acntcd");
- // alert(model.getValue(grd_unsl.nodeset + "[" + i + "]/acntcd"));
- for(var j=0; j<arrTransAcntCd.length; j++)
- {
- if(arrTransAcntCd[j] == sAcntCd)
- {
- vCount = 0;
- for(var m = grd_unsl.fixedRows ; m < grd_unsl.rows ; m++)
- {
- if(sAcntCd == model.getValue(grd_unsl.nodeset + "[" + m + "]/acntcd"))
- {
- vCount++;
- }
- }
- if(vCount > 1)return false;
- }
- }
- }
- }
- return true;
- }
- //========================================================================================
- // 저장 시 증빙 입력 여부 체크
- //========================================================================================
- function fprofChk()
- {
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- 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")) == "")
- {
- messageBox(grd_unsl.valueMatrix(i, grd_unsl.colRef("unslseqno")) + "번 전표의 증빙이 저장되지 않았습니다.","I000");
- return false;
- }
- }
- return true;
- }
- //========================================================================================
- // 발의자 정보 Setting
- //========================================================================================
- function fuserInfoSet()
- {
- if(grd_unsl.rows > 1)
- {
- model.setValue("/root/hidden/userinfo/unslwrit", grd_unsl.valueMatrix(1, grd_unsl.colRef("unslwrit")));
- model.setValue("/root/hidden/userinfo/usernm", grd_unsl.valueMatrix(1, grd_unsl.colRef("usernm")));
- }
- else
- {
- model.setValue("/root/hidden/userinfo/unslwrit", model.getValue("/root/main/unsl_one/unslwrit"));
- model.setValue("/root/hidden/userinfo/usernm", model.getValue("/root/main/unsl_one/usernm"));
- }
- }
- //========================================================================================
- // 접대비 입력 여부 체크
- //========================================================================================
- /*
- function fCheckServAcnt()
- {
- if(servcd == ipt_acntcd.value && parseInt(ipt_amt.value) >= 500000 || model.getValue("/root/main/unsl_one/servseq") != "")
- {
- btn_serv.visible = true;
- }
- else
- {
- btn_serv.visible = false;
- }
- }
- */
- //========================================================================================
- // 전표 이동 / 복사
- //========================================================================================
- function fCopyShftSlip(workflag)
- {
- if(workflag == "shift" && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == "Y")
- {
- messageBox("전송된 전표는 날짜를 변경할 수 없습니다.","I000");
- return;
- }
- if (grd_unsl.rows > 1)
- {
- var updtdata = getGridUpdateData(grd_unsl);
- if (updtdata != "")
- {
- messageBox("변경된 데이터 저장 후 작업하세요.","I000");
- return;
- }
- }
- else
- {
- return; //빈 데이터
- }
- var instcd = model.getValue("/root/main/unsl_one/instcd");
- var oldunsldd = ipt_unsldd.value;
- var oldunslno = model.getValue("/root/hidden/condition/unslno");
- model.makeValue("/root/source/copyshiftslipinfo/instcd", instcd);
- model.makeValue("/root/source/copyshiftslipinfo/oldunsldd", oldunsldd);
- model.makeValue("/root/source/copyshiftslipinfo/oldunslno", oldunslno);
- model.makeValue("/root/source/copyshiftslipinfo/jobflag", workflag);
- model.makeValue("/root/source/receiveref", "/root/hidden/copyshiftslip");
- model.refresh();
- modal("SPRAD00160","","","","","/root/source", "/root/target" );
- model.refresh();
- var newunsldd = model.getValue("/root/hidden/copyshiftslip/newunsldd");
- var newunslno = model.getValue("/root/hidden/copyshiftslip/newunslno");
- if(newunslno == "0000") return; //취소
- if(newunslno == "")
- {
- messageBox("작업중 문제가 있습니다. 운영자에게 문의하세요.","I000");
- return;
- }
- if(workflag == "copy")
- {
- ret = messageBox("전표가 " + newunsldd.substr(0, 4) + "년 " + newunsldd.substr(4, 2) + "월 " + newunsldd.substr(6, 2) + "일 " + newunslno + "번 전표로 복사되었습니다.\n복사된 전표를 조회하시겠습니까?","Q999");
- }
- else if(workflag == "shift")
- {
- messageBox("전표가 " + newunsldd.substr(0, 4) + "년 " + newunsldd.substr(4, 2) + "월 " + newunsldd.substr(6, 2) + "일 " + newunslno + "번 전표로 날짜가 변경되었습니다.","I000");
- ret = "6";
- }
- if (ret == "6")
- {
- model.setValue("/root/hidden/condition/unsldd", newunsldd);
- model.setValue("/root/hidden/condition/unslno", newunslno);
-
- btn_search.dispatch("DOMActivate");
- }
- }
- //========================================================================================
- // 출금계좌 일치 예외처리 - 계좌 선택 시 경고만 출력
- //========================================================================================
- function fAactCheck()
- {
- var crrAcntCd = model.getValue("/root/main/unsl_one/acntcd");
- var crrDrCrFlag = model.getValue("/root/main/unsl_one/drcrflag");
- var bTransAcntCdYN = false;
- if(crrDrCrFlag == "C")
- {
- for(var j=0; j<arrTransAcntCd.length; j++)
- {
- if(arrTransAcntCd[j] == crrAcntCd) bTransAcntCdYN = true;
- }
- }
- var bExist = false;
- if(bTransAcntCdYN == true)
- {
- for(var i=1; i<grd_unsl.rows; i++)
- {
- var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
- var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
- if(sDrCrFlag == "C")
- {
- for(var j=0; j<arrTransAcntCd.length; j++)
- {
- if(arrTransAcntCd[j] == sAcntCd) bExist = true;
- }
- }
- if(bExist)
- {
- if(grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")) != model.getValue("/root/main/unsl_one/notefactcd1") && grd_unsl.row != i)
- {
- messageBox("하나의 전표에는 하나의 출금계좌만 설정할수 있습니다.\n연번[" + grd_unsl.valueMatrix(i, grd_unsl.colRef("unslseqno")) + "]와 지출계좌가 다릅니다." ,"I000");
- // model.setValue("/root/main/unsl_one/notefactcd1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")));
- // model.setValue("/root/main/unsl_one/notefactspec1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactspec1")));
- // ipt_notecd1.refresh();
- // ipt_notecdnm1.refresh();
- return false;
- }
- else
- {
- bExist = false;
- }
- }
- }
- }
- return true;
- }
- //========================================================================================
- // 출금계좌 일치 예외처리
- //========================================================================================
- function fAactException()
- {
- var vFirstAactacntflag = false;
- var vFirstAactcd = "";
- var bExist = false;
-
- for(i = grd_unsl.fixedRows ; i <= grd_unsl.rows ; i++)
- {
- var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
- var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
- var sAactcd = grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1"))
- if(sDrCrFlag == "C")
- {
- for(var j=0; j<arrTransAcntCd.length; j++)
- {
- if(arrTransAcntCd[j] == sAcntCd) bExist = true;
- }
- }
- if(bExist == true)
- {
- if(vFirstAactacntflag == false)
- {
- vFirstAactcd = sAactcd;
- vFirstAactacntflag = true;
- }
- else if(vFirstAactcd != sAactcd)
- {
- messageBox("대변의 출금계좌는 두개 이상 존재할 수 없습니다.\n출금계좌를 하나로 일치시킨 후 출력하시기 바랍니다." ,"I000");
- return false;
- }
- bExist = false;
- }
- }
- return true;
- }
- //========================================================================================
- // 현금성 등가물 증빙 예외
- //========================================================================================
- function fCashAcntProfException()
- {
- for(var i = 0 ; i < arrCashAcntCd.length ; i++)
- {
- if(arrCashAcntCd[i] == ipt_acntcd.value && model.getValue("/root/main/unsl_one/profflag") == "6")
- {
- messageBox("현금성등가물의 증빙은 항상 기타입니다." ,"I000");
- return false;
- }
- }
- return true;
- }
- //========================================================================================
- // 기재사항 예외 처리
- //========================================================================================
- function fAcntKijeCheck()
- {
- model.removeNodeset("/root/hidden/kijeomitlist");
- model.setValue("/root/send/data6/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/data6/unsldd", model.getValue("/root/hidden/condition/unsldd"));
- model.setValue("/root/send/data6/unslno", model.getValue("/root/hidden/condition/unslno"));
- submit("TRRAD00152")
- var vExistsflag = false;
- for(var i = 1 ; i <= model.instance1.selectNodes("/root/hidden/kijeomitlist").length ; i++)
- {
- messageBox("[" + model.getValue("/root/hidden/kijeomitlist[" + i + "]/unslseqno") + "] 번 기재사항이 정확히 입력되지 않았습니다.", "I000");
- vExistsflag = true;
- }
- if(vExistsflag == true)
- {
- return false;
- }
- else
- {
- return true;
- }
- }
-
- //========================================================================================
- // 프로젝트ID 세팅
- //========================================================================================
- function fProjectIDSetCombo()
- {
- var SelectedIndex = 0;
- var StartIndex = 1;
- for(var i = 1 ; i <= instance1.selectNodes("/root/main/list/bugtorgnzlist").length ; i++)
- {
- if(model.getValue("/root/main/list/bugtorgnzlist/bugtearncostflag") == "3")
- {
- if(model.getValue("/root/main/unsl_one/drcrflag") == "D" && model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/bugtflag") == "2") // 수입 및 지출 계정은 차변에 지출 예산이 있어야 기재 가능하다.
- {
- SelectedIndex = i;
- model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
- model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
- model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
- model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
- StartIndex++;
- }
- else if(model.getValue("/root/main/unsl_one/drcrflag") == "C" && model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/bugtflag") == "1") // 수입 및 지출 계정은 대변에 수익 예산이 있어야 기재 가능하다.
- {
- SelectedIndex = i;
- model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
- model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
- model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
- model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
- StartIndex++ ;
- }
-
- }
- else // 수익 및 비용 예산 계정 외에는 오직 한쪽(수익 이든 비용 이든)으로만 예산이 주어지고 (안주어지면 계정통제) 수익 비용 계정은 반대계정 설정시 프로젝트를 맞추어주어야 한다. 수정 20080924 최형진
- {
- SelectedIndex = i;
- model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/cd");
- model.makeNode("/root/hidden/projectidlist[" + StartIndex + "]/nm");
- model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/cd", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectid"));
- model.setValue("/root/hidden/projectidlist[" + StartIndex + "]/nm", model.getValue("/root/main/list/bugtorgnzlist[" + i + "]/projectnm"));
- StartIndex++;
- }
- }
-
- if(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd") == "3" && model.getValue("/root/hidden/acntcdinfo/acntflag") == "1" && SelectedIndex == 0)
- {
- //messageBox("예산이 없습니다.", "I000");
-
- // model.setValue("/root/main/unsl_one/acntcd", "");
- // model.setValue("/root/main/unsl_one/acntnm", "");
- //
- // fAcntClear();
- // return;
-
- //alert(model.getValue("/root/hidden/acntcdinfo/bugtcostacntcd"));
- //alert(model.getValue("/root/hidden/acntcdinfo/acntflag"));
-
-
- //if(model.getValue("/root/hidden/acntcdinfo/") == "C")
- //alert(SelectedIndex)
- //alert(model.getValue("/root/main/list/bugtorgnzlist[" + SelectedIndex + "]/bugtflag"))
- // ipt_projectid.refresh();
- // ipt_projectnm.refresh();
- }
- // model.setValue("/root/main/unsl_one/projectid", model.getValue("/root/main/list/bugtorgnzlist/projectid"));
- // model.setValue("/root/main/unsl_one/projectnm", model.getValue("/root/main/list/bugtorgnzlist/projectnm"));
- // model.setValue("/root/hidden/condition/projectid", model.getValue("/root/main/list/bugtorgnzlist/projectid"));
- // model.setValue("/root/hidden/condition/projectnm", model.getValue("/root/main/list/bugtorgnzlist/projectnm"));
- }
-
- //========================================================================================
- // 전표 상태 표시
- //========================================================================================
- function fSlipStatus()
- {
- var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
- var sanctno = model.getValue("/root/main/unsl[1]/sanctno");
- if(sanctno != "")
- {
- ipt_slipstatus.value = "승 인";
- ipt_slipstatus.attribute("color") = "#0000ff";
- }
- else if(sanctyn == "Y")
- {
- ipt_slipstatus.value = "미 승 인";
- ipt_slipstatus.attribute("color") = "#008000";
- }
- else
- {
- ipt_slipstatus.value = "미 출 력";
- ipt_slipstatus.attribute("color") = "#ff0000";
- }
- ipt_slipstatus.refresh();
-
- if(model.getValue(cmb_slipflag.attribute("ref")) == "9")
- {
- cmb_slipflag.disabled = true;
- }
- else
- {
- cmb_slipflag.disabled = false;
- }
- }
-
- //========================================================================================
- // 기표부서 변경 예외 처리 기능
- //========================================================================================
- function fUpdateSlipDeptCD()
- {
- if(grd_unsl.rows > grd_unsl.fixedRows)
- {
- var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
- for(var i = 1 ; i <= vLength ; i++)
- {
- model.setValue(grd_unsl.nodeset + "[" + i + "]/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
- model.setValue(grd_unsl.nodeset + "[" + i + "]/slipdeptnm", model.getValue("/root/hidden/condition/slipdeptnm"));
- }
- grd_unsl.refresh();
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- grd_unsl.addStatus(i, "update");
- }
- }
- }
-
- function fetcprofcntcheck()
- {
- if(rdo_profflag6.value == "6")
- {
- ipt_profflag6.visible = true;
- cap_etcprofcnt.visible = true;
- }
- else
- {
- ipt_profflag6.visible = false;
- cap_etcprofcnt.visible = false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">전표발의등록</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:764px; ">
- <input id="ipt_acntcd" ref="/root/main/unsl_one/acntcd" class="input_essential" navindex="-1" style="left:515px; top:156px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setFocus("ipt_custnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/hidden/projectidlist"); // 예외적으로 처리해야하기 때문에 함수 안에 넣을 수 없다.
-
- fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
-
- fAcntSelect();
- //fCheckServAcnt();
- ipt_amt.dispatch("xforms-value-changed");
- ]]>
- </script>
- </input>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/code/code/codelist[cdgbn="cashacntcd"]">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cur_row = grd_unsl.row;
- if (model.getValue("/root/main/unsl_one/acntcd") != "" && model.getValue("/root/main/unsl_one/acntnm") != "") {
- fAcntInfoSelect();
- model.setValue("/root/main/unsl_one/acntnm", cmb_acntcd.label);
- model.setValue("/root/main/unsl_one/fundscd", model.getValue("/root/main/unsl["+ cur_row +"]/fundscd"));
- model.refresh();
- } else {
- model.resetInstanceNode("/root/hidden/acntcdinfo");
- model.refresh();
- fAcntInfoSelect();
- }
- if (switch8.selectedIndex == 0)
- {
- model.setFocus("ipt_custnm");
- } else
- {
- model.setFocus("ipt_custnm2");
- }
- model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
- model.setValue("/root/main/unsl_one/cdbojo1", "");
- submit("TRRAD01701");
- ]]>
- </script>
- </select1>
- <group id="grp_sea" style="left:0px; top:0px; width:1195px; height:90px; vertical-align:top; ">
- <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; "/>
- <caption id="caption7" class="search_name" style="left:11px; top:10px; width:101px; height:17px; font-family:돋움; ">전표유형 :</caption>
- <line id="line5" class="line_4" style="x1:1097px; y1:9px; x2:1097px; y2:78px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption19" class="search_name" style="left:415px; top:10px; width:101px; height:17px; ">작성일자 :</caption>
- <caption id="caption22" class="search_name" style="left:745px; top:10px; width:101px; height:17px; ">전표구분 :</caption>
- <caption id="caption16" class="search_name" style="left:11px; top:34px; width:99px; height:17px; font-family:돋움; ">전표적요 :</caption>
- <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; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fClearClick();
- ]]>
- </script>
- </select1>
- <input id="ipt_unsldd" ref="/root/hidden/condition/unsldd" class="input_s_essential" inputtype="date" style="left:506px; top:9px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fClearClick();
- ]]>
- </script>
- </input>
- <input id="ipt_unslno" ref="/root/hidden/condition/unslno" class="input_s_essential" maxlength="4" style="left:643px; top:9px; width:48px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var vUnslno = model.getValue("/root/hidden/condition/unslno");
- if (!vUnslno.isNumber())
- {
- messageBox("번호(숫자)를 " ,"C001");
- return;
- }
- setInputNodeCurText();
- var vUnslno = model.getValue("/root/hidden/condition/unslno").getLeftPad(4,"0");
- model.setValue("/root/hidden/condition/unslno",vUnslno);
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- ipt_unslno.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_slipflag" ref="/root/hidden/condition/slipflag" class="combo_default" appearance="minimal" style="left:860px; top:9px; width:187px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0008list/R0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(cmb_slipflag.attribute("ref")) == "A")
- {
- messageBox("전년도 예산을 사용합니다.\n전년도 예산을 확인 후 작업하세요.", "I000");
- }
- else if(model.getValue(cmb_slipflag.attribute("ref")) == "B")
- {
- if(getUserInfo("dutplcecd") != acntdept)
- {
- messageBox("재무팀 권한으로만 결산전표를 생성할 수 있습니다.", "I000");
- model.setValue(cmb_slipflag.attribute("ref"), "1");
- cmb_slipflag.refresh();
- return false;
- }
- else
- {
- messageBox("예산과 연동되지 않습니다.", "I000");
- }
- }
- else if(model.getValue(cmb_slipflag.attribute("ref")) == "9")
- {
- messageBox("반제전표는 반제 자동분개에서 작성하세요", "I000");
- model.setValue(cmb_slipflag.attribute("ref"), "1");
- cmb_slipflag.refresh();
- return false;
- }
- if(grd_unsl.rows > grd_unsl.fixedRows)
- {
- var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
-
- for(var i = 1 ; i <= vLength ; i++)
- {
- model.setValue(grd_unsl.nodeset + "[" + i + "]/slipflag", model.getValue("/root/hidden/condition/slipflag"));
- }
- grd_unsl.refresh();
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- grd_unsl.addStatus(i, "update");
- }
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_projectid" ref="/root/hidden/condition/projectid" class="input_search" visibility="visible" style="left:114px; top:59px; width:81px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("23", "projectid,projectnm", "", "", "", "", "code");
- fSetProjectValue();
- ]]>
- </script>
- </input>
- <input id="ipt_projectnm" ref="/root/hidden/condition/projectnm" class="input_search" visibility="visible" style="left:225px; top:59px; width:177px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("23", "projectid,projectnm", "", "", "", "", "name");
- fSetProjectValue();
- ]]>
- </script>
- </input>
- <button id="btn_projectid" class="icon_search" navindex="-1" visibility="visible" style="left:202px; top:59px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("23", ipt_projectid, "", "projectid,projectnm");
- fSetProjectValue();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:1119px; top:34px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("전표");
- fQueryClick();
- //fCheckServAcnt();
- // fSumExpantAmt();
- fSlipStatus();
- closeLoadingBar();
- ]]>
- </script>
- </button>
- <button id="btn_pre" class="icon_pre" navindex="-1" style="left:629px; top:11px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vUnslno = model.getValue("/root/hidden/condition/unslno");
- var vNum = parseInt(vUnslno, 10);
- if (vNum != 1) {
- vNum--;
- } else {
- return;
- }
- model.setValue("/root/hidden/condition/unslno", vNum.toString().getLeftPad(4,"0"));
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_next" class="icon_next" navindex="-1" style="left:692px; top:11px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vUnslno = model.getValue("/root/hidden/condition/unslno");
- var vNum = parseInt(vUnslno, 10);
- vNum++;
- model.setValue("/root/hidden/condition/unslno", vNum.toString().getLeftPad(4,"0"));
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/hidden/condition/instcd" visibility="hidden" style="left:1160px; top:10px; width:30px; height:19px; "/>
- <input id="ipt_defrayreqdd" ref="/root/hidden/condition/defrayreqdd" class="input_s_essential" inputtype="date" style="left:860px; top:36px; width:108px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_unsl.rows > grd_unsl.fixedRows)
- {
- var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
-
- for(var i = 1 ; i <= vLength ; i++)
- {
- model.setValue(grd_unsl.nodeset + "[" + i + "]/defrayreqdd", model.getValue("/root/hidden/condition/defrayreqdd"));
- }
- grd_unsl.refresh();
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- grd_unsl.addStatus(i, "update");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="cpt_defrayreqdd" class="search_name" style="left:745px; top:35px; width:112px; height:17px; ">기표일자 :</caption>
- <caption id="caption47" class="search_name" style="left:11px; top:58px; width:99px; height:17px; font-family:돋움; ">Project ID :</caption>
- <input id="ipt_slipcmt" ref="/root/hidden/condition/slipcmt" class="input_s_essential" imemode="hangul" style="left:114px; top:35px; width:596px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //<bind id="bind1" ref="/root/hidden/condition/slipcmt" readonly="(/root/hidden/drsum) + (/root/hidden/crsum) != 0"/> 전표적요 수정할 수 있도록 수정 최형진 20081002
-
- if(grd_unsl.rows > grd_unsl.fixedRows)
- {
- var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
-
- for(var i = 1 ; i <= vLength ; i++)
- {
- model.setValue(grd_unsl.nodeset + "[" + i + "]/slipcmt", model.getValue("/root/hidden/condition/slipcmt"));
- }
- grd_unsl.refresh();
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- grd_unsl.addStatus(i, "update");
- }
- }
- else
- {
- model.setValue("/root/main/unsl_one/etcnotefact", model.getValue("/root/hidden/condition/slipcmt"));
- ipt_etcnotefact.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <button id="btn_proj" class="btn1_letter2" visibility="hidden" style="left:410px; top:58px; width:56px; height:22px; text-align:left; ">
- <caption>관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMRAC00800");
- ]]>
- </script>
- </button>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <button id="btn_transslip" class="btn4_letter6" visibility="hidden" style="left:506px; top:58px; width:104px; height:22px; ">
- <caption>지출대체전표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (!fSlipAprvChk()) {
- return;
- }
-
- if (model.getValue(rdo_slipkind.attribute("ref")) != "3")
- {
- messageBox("출금전표만 지출대체전표로 전환할 수 있습니다.","I000");
- return;
- }
-
- var updtdata = getGridUpdateData(grd_unsl);
- if (updtdata != "")
- {
- messageBox("변경된 데이터 저장 후 작업하세요.","I000");
- return;
- }
-
- var vRowCount = 0;
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- if(grd_unsl.rowStatus(i) == 0)
- {
- vRowCount = 1;
- continue;
- }
- }
- model.setValue("/root/hidden/condition/instcd", model.getValue(cmb_instcd.attribute("ref")));
- if(vRowCount == 0) return;
-
- submit("TXRAD00109");
-
- fQueryClick();
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter4" disabled="false" visibility="hidden" style="left:630px; top:58px; width:80px; height:22px; ">
- <caption>DTI 홈</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- radfGetDTIPassword();
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <item>
- <label>차변</label>
- <value>D</value>
- </item>
- <item>
- <label>대변</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_drcrcmt" class="search_name" visibility="hidden" style="left:745px; top:65px; width:112px; height:17px; ">적요차대구분 :</caption>
- <caption id="cap_acountingflag" class="search_name" visibility="hidden" style="left:745px; top:65px; width:112px; height:17px; ">회계 구분 :</caption>
- <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; ">
- <choices>
- <item>
- <label>등록금회계</label>
- <value>1</value>
- </item>
- <item>
- <label>기금회계</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_unsl.rows > grd_unsl.fixedRows)
- {
- var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
-
- for(var i = 1 ; i <= vLength ; i++)
- {
- model.setValue(grd_unsl.nodeset + "[" + i + "]/acountingflag", model.getValue("/root/hidden/condition/acountingflag"));
- }
- grd_unsl.refresh();
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- grd_unsl.addStatus(i, "update");
- }
- }
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/hidden/condition/ymdaction" class="input_s_essential" inputtype="date" style="left:860px; top:61px; width:108px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_unsl.rows > grd_unsl.fixedRows)
- {
- var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
-
- for(var i = 1 ; i <= vLength ; i++)
- {
- model.setValue(grd_unsl.nodeset + "[" + i + "]/ymdaction", model.getValue("/root/hidden/condition/ymdaction"));
- }
- grd_unsl.refresh();
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- grd_unsl.addStatus(i, "update");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption67" class="search_name" style="left:745px; top:60px; width:112px; height:17px; ">행위일자 :</caption>
- <caption id="caption69" class="search_name" style="left:505px; top:61px; width:112px; height:17px; ">예산합의일 :</caption>
- <input id="input2" ref="/root/hidden/condition/ymdpum" class="input_s_essential" inputtype="date" style="left:620px; top:62px; width:108px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_unsl.rows > grd_unsl.fixedRows)
- {
- var vLength = model.instance1.selectNodes(grd_unsl.nodeset).length;
-
- for(var i = 1 ; i <= vLength ; i++)
- {
- model.setValue(grd_unsl.nodeset + "[" + i + "]/ymdpum", model.getValue("/root/hidden/condition/ymdpum"));
- }
- grd_unsl.refresh();
-
- for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
- {
- grd_unsl.addStatus(i, "update");
- }
- }
- ]]>
- </script>
- </input>
- </group>
- <line id="line13" class="line_2" style="x1:0px; y1:152px; x2:1195px; y2:152px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:154px; width:110px; height:23px; ">차대구분</caption>
- <caption id="caption3" class="cell_1" style="left:403px; top:129px; width:110px; height:23px; ">귀속부서</caption>
- <caption id="caption8" class="cell_1" style="left:403px; top:259px; width:110px; height:23px; ">적요</caption>
- <caption id="caption18" class="cell_1" style="left:0px; top:129px; width:110px; height:23px; font-family:돋움체; ">기관구분</caption>
- <caption id="caption1" class="tit_2" style="left:5px; top:104px; width:131px; height:14px; ">전표정보</caption>
- <caption id="caption23" class="cell_1" style="left:806px; top:234px; width:110px; height:23px; ">발의자</caption>
- <caption id="caption24" class="cell_1" style="left:403px; top:154px; width:110px; height:23px; ">계정과목</caption>
- <caption id="caption26" class="cell_1" style="left:0px; top:184px; width:110px; height:23px; ">상대처구분</caption>
- <caption id="cpt_bugtamt" class="cell_1" visibility="visible" style="left:915px; top:155px; width:104px; height:23px; ">예산가용액</caption>
- <caption id="caption10" class="cell_1" style="left:834px; top:735px; width:120px; height:23px; text-align:center; vertical-align:middle; ">금액합계</caption>
- <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; "/>
- <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; "/>
- <caption id="caption12" class="cell_1" style="left:403px; top:370px; width:110px; height:23px; ">승인정보</caption>
- <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; "/>
- <caption id="caption15" class="cell_1" visibility="hidden" style="left:695px; top:370px; width:110px; height:23px; ">승인일자</caption>
- <input id="ipt_slipaprvdd" class="input_default" visibility="hidden" inputtype="date" style="left:807px; top:372px; width:115px; height:19px; "/>
- <line id="line9" class="line_3" style="x1:0px; y1:369px; x2:1195px; y2:369px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:282px; x2:1195px; y2:282px; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/Z0007list/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
- {
- racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
- }
- else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
- {
- model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
- fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
- }
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
- || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
- {
- messageBox("권한이 없습니다.", "I000");
- model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- ipt_costcntrdeptcd.refresh();
- ipt_costcntrdeptcd.dispatch("xforms-value-changed");
- return false;
- }
- model.setFocus("ipt_costcntrdeptnm");
- if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
- {
- model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.setValue("/root/hidden/instcardseqnoinfo/instcardseqno", ""); // 사용중인 법인카드 번호 삭제
- model.refresh();
- }
- fRemoveAcntValue();
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_costcntrdeptnm" ref="/root/main/unsl_one/costcntrdeptnm" class="input_essential" style="left:619px; top:131px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
- {
- racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
- }
- else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
- {
- model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
- fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
- }
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
- || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
- {
- messageBox("권한이 없습니다.", "I000");
- model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- ipt_costcntrdeptcd.refresh();
- ipt_costcntrdeptcd.dispatch("xforms-value-changed");
- return false;
- }
- if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
- {
- model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.refresh();
- }
- fRemoveAcntValue();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <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; "/>
- <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; "/>
- <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; ">
- <choices>
- <item>
- <label>차변</label>
- <value>D</value>
- </item>
- <item>
- <label>대변</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var drcrflag = model.getValue("/root/main/unsl_one/drcrflag");
- //fRowClearClick();
- model.setValue("/root/main/unsl_one/drcrflag", drcrflag);
- fAcntSelect(); //-> 대체전표 작성시 차변 대변 전환 시 정보 유지되도록 수정 최형진 20081001
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_acntnm" ref="/root/main/unsl_one/acntnm" class="input_essential" imemode="hangul" style="left:619px; top:156px; width:184px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- if (switch8.selectedIndex == 0)
- {
- model.setFocus("ipt_custnm");
- }
- else
- {
- model.setFocus("ipt_custnm2");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/hidden/projectidlist");
- fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
- fAcntSelect();
- //fCheckServAcnt();
- ipt_amt.dispatch("xforms-value-changed");
- ]]>
- </script>
- </input>
- <button id="btn_costcntrdeptcd" class="icon_search" navindex="-1" style="left:599px; top:133px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue(cmb_deptflag.attribute("ref")) == "1")
- {
- fOpenPopupDeptHelp(ipt_costcntrdeptcd, "costcntrdeptcd,costcntrdeptnm"); //전체부서
- }
- else if(model.getValue(cmb_deptflag.attribute("ref")) == "2")
- {
- model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
- fOpenPopupHelp("47", ipt_costcntrdeptcd, "costcntrdeptcd,costcntrdeptnm", "", "ipt_acntyy", "acntyy"); //예산편성부서
- }
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
- || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept))
- {
- messageBox("권한이 없습니다.", "I000");
- model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- ipt_costcntrdeptcd.refresh();
- ipt_costcntrdeptcd.dispatch("xforms-value-changed");
- return false;
- }
-
- model.refresh();
- if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != "")
- {
- model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.refresh();
- }
- fRemoveAcntValue();
-
- ]]>
- </script>
- </button>
- <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:599px; top:158px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/hidden/projectidlist");
- fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
- fAcntSelect();
- //fCheckServAcnt();
- model.setValue("/root/main/unsl_one/cdbojo1", "");
- model.setValue("/root/main/unsl_one/cdbojo1", "/root/main/unsl_one/acntcd");
- submit("TRRAD01701");
- ipt_amt.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <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; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setFocus("ipt_etcnotefact");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 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)
- // {
- var sABugtUseYn = model.getValue("/root/hidden/acntcdinfo/bugtuseyn");
- var sABugtCntrYn = model.getValue("/root/hidden/acntcdinfo/bugtcntryn");
-
-
- if(sABugtCntrYn == "Y" && sABugtUseYn == "Y" && ipt_bugtamt.visible == true && (model.getValue(cmb_slipflag.attribute("ref")) != "A" && model.getValue(cmb_slipflag.attribute("ref")) != "B"))
- {
- var iAppAmt = parseInt(model.getValue("/root/main/unsl_one/amt"), 10);
- var iBugtAmt = parseInt(model.getValue("/root/main/unsl_one/bugtamt"), 10);
- var iBugtFlag = model.getValue("/root/main/unsl_one/bugtflag");
- var iDrCrFlag = model.getValue("/root/main/unsl_one/drcrflag");
-
- var iAcntFlag = model.getValue("/root/hidden/acntcdinfo/acntflag");
- var iBalflag = model.getValue("/root/hidden/acntcdinfo/balflag");
-
- // alert("iAppAmt : " + iAppAmt + "\niBugtAmt : " + iBugtAmt + "\niBugtFlag : " + iBugtFlag + "\niDrCrFlag : " + iDrCrFlag + "\niAcntFlag : " + iAcntFlag + "\niBalflag : " + iBalflag);
-
- if(iAcntFlag == '5' && iBugtFlag == '2' && iDrCrFlag == 'C')
- {
- iBugtFlag = '1';
- iAppAmt = iAppAmt * (-1);
- }
- else if(iAcntFlag == '4' && iBugtFlag == '1' && iDrCrFlag == 'D')
- {
- iBugtFlag = '2';
- iAppAmt = iAppAmt * (-1);
- }
- else if(iBalflag == iDrCrFlag)
- {
- // continue;
- }
- // alert("iAppAmt : " + iAppAmt +"\niBugtAmt : " + iBugtAmt);
- if(iAppAmt > iBugtAmt)
- {
- messageBox("예산가용액을 초과", "E001");
- model.setValue("/root/main/unsl_one/amt", 0);
-
- model.refresh();
- model.setFocus("ipt_amt");
- return;
- }
- }
- //fCheckServAcnt();
- // }
- ]]>
- </script>
- </input>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/custflaglist/custflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var custflag = model.getValue("/root/main/unsl_one/custflag");
- model.setValue("/root/main/unsl_one/custnm","");
- if (custflag == "9" || custflag == "") {
- model.setValue("/root/main/unsl_one/custcd","-");
- model.setFocus("ipt_custnm2");
- model.toggle("명관리");
- } else {
- model.setValue("/root/main/unsl_one/custcd","");
- model.setFocus("ipt_custnm");
- model.toggle("코드관리");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_etcnotefact" ref="/root/main/unsl_one/etcnotefact" class="input_essential" imemode="hangul" style="left:515px; top:261px; width:680px; height:19px; "/>
- <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; ">
- <choices>
- <item>
- <label>-</label>
- <value>01</value>
- </item>
- </choices>
- </select1>
- <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; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:977px; top:335px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (!fSlipAprvChk("N")) {
- return;
- }
- if(model.getValue("/root/main/unsl_one/profflag") != 6 && model.getValue("/root/main/unsl_one/seqno") == "")
- {
- messageBox("증빙이 입력되지 않았습니다.","I000");
- return false;
- }
- //if(!fdayreptAcntcdException())return;
- if(!fcheckAcntOption())
- {
- return;
- }
- fGridRowAddClick();
- model.setValue("/root/main/unsl_one/etcnotefact", ipt_slipcmt.value);
-
- misfGridIUDs(grd_unsl, "A");
- //model.setFocus(grd_unsl.attribute("max"));
- //grd_unsl.buttom(row);
-
- ipt_etcnotefact.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" disabled="true" style="left:1087px; top:335px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_unsl.row >= grd_unsl.fixedRows)
- {
- if (messageBox(grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("unslseqno")) + "번 전표를", "Q001") == "6")
- {
- if (!fSlipAprvChk("N"))
- {
- return;
- }
- fGridRowDelClick();
- fRowClearClick();
- fSaveClick("Y");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_grdclear" class="btn2_letter3" visibility="hidden" style="left:922px; top:335px; width:53px; height:19px; ">
- <caption>행정리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRowClearClick();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:480px; top:98px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (!fSlipAprvChk("N"))
- {
- return;
- }
- if (!fprofChk())
- {
- return;
- }
- fSaveClick();
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" visibility="visible" style="left:649px; top:98px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (!fSlipAprvChk()) {
- return;
- }
- fDeleteClick();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" visibility="visible" style="left:709px; top:98px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (messageBox("전표를 초기화 하시겠습니까?", "Q999") == "6")
- {
- fClearClick();
- }
- ]]>
- </script>
- </button>
- <button id="btn_slipaprv" class="btn5_letter4" visibility="hidden" style="left:925px; top:372px; width:64px; height:19px; ">
- <caption>전표승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSlipAprvClick();
- ]]>
- </script>
- </button>
- <button id="btn_send" class="btn4_letter6" visibility="visible" style="left:1002px; top:98px; width:104px; height:22px; ">
- <caption>전송 및 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fSlipPrintClick("N"))
- {
- fSlipStatus();
- fQueryClick();
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn4_letter4" visibility="visible" style="left:919px; top:98px; width:80px; height:22px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (grd_unsl.rows == 1)
- {
- messageBox("출력할 내용이" ,"I004");
- return false;
- }
-
- iRow = grd_unsl.findRow("N", 1, grd_unsl.colRef("sanctyn"));
- if(iRow >0)
- {
- fSlipPrintClick("Y");
- }
- else
- {
- messageBox("이미 전송된 전표입니다.", "I000");
- }
-
-
- ]]>
- </script>
- </button>
- <button id="btn_bugtorgnzspec" class="btn2_letter6" style="left:805px; top:155px; width:86px; height:19px; ">
- <caption>예산편성내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if (!fSlipAprvChk("N")) {
- // return;
- // }
-
- if(getUserInfo("dutplcecd") == acntdept || getUserInfo("dutplcecd") == bugtdept || radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'BUGTSEARCHYN'))
- {
- fBugtClick();
- ipt_amt.dispatch("xforms-value-changed");
- }
- else
- {
- messageBox("권한이 없어 조회 할 수", "I004");
- }
- ]]>
- </script>
- </button>
- <button id="btn_setacnt" class="btn4_letter6" visibility="visible" style="left:541px; top:98px; width:104px; height:22px; ">
- <caption>이체계좌등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_unsl.rows > 0)
- {
- if (rdo_slipkind.value == "2")
- {
- messageBox("입금전표는 이체계좌를 등록하지 않습니다.","I000");
- return;
- }
-
- var updtdata = getGridUpdateData(grd_unsl);
- if (updtdata != "")
- {
- messageBox("변경된 데이터 저장 후 작업하세요.","I000");
- return;
- }
-
- // if(!transAcntException())
- // {
- // messageBox("대변에 서로다른 계좌가 존재하므로 이체계좌를 등록할 수 없습니다..","I000");
- // return;
- // }
- fSetAcntClick();
- }
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="unsldd" visibility="hidden"/>
- <col ref="unslno" visibility="hidden"/>
- <col ref="unslseqno"/>
- <col ref="projectid"/>
- <col ref="projectnm" visibility="hidden"/>
- <col ref="slipflag" visibility="hidden"/>
- <col ref="slipkind" visibility="hidden"/>
- <col ref="acountingflag" visibility="hidden"/>
- <col ref="drcrflag" visibility="hidden"/>
- <col ref="acntcd"/>
- <col ref="acntnm"/>
- <col ref="acntflag" visibility="hidden"/>
- <col ref="suppitemcd" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="custflag" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="custnm"/>
- <col ref="costcntrdeptcd" visibility="hidden"/>
- <col ref="costcntrdeptnm"/>
- <col ref="costbelongdeptcd" visibility="hidden"/>
- <col ref="costbelongdeptnm" visibility="hidden"/>
- <col ref="bugtmngtdeptcd" visibility="hidden"/>
- <col ref="bugtmngtdeptnm" visibility="hidden"/>
- <col ref="slipdeptcd" visibility="hidden"/>
- <col ref="slipdeptnm" visibility="hidden"/>
- <col disabled="true" editmode="search" ref="fundscd" type="combo">
- <choices>
- <itemset nodeset="/root/init/fundscdlist/fundscd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" editmode="search" ref="profflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/profflaglist/profflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="etcprofcnt" visibility="hidden"/>
- <col ref="notefactnm1" visibility="hidden"/>
- <col ref="notefactcd1" visibility="hidden"/>
- <col ref="notefactspec1" visibility="hidden"/>
- <col ref="notefactnm2" visibility="hidden"/>
- <col ref="notefactcd2" visibility="hidden"/>
- <col ref="notefactspec2" visibility="hidden"/>
- <col ref="notefactnm3" visibility="hidden"/>
- <col ref="notefactcd3" visibility="hidden"/>
- <col ref="notefactspec3" visibility="hidden"/>
- <col ref="notefactnm4" visibility="hidden"/>
- <col ref="notefactcd4" visibility="hidden"/>
- <col ref="notefactspec4" visibility="hidden"/>
- <col ref="notefactnm5" visibility="hidden"/>
- <col ref="notefactcd5" visibility="hidden"/>
- <col ref="notefactspec5" visibility="hidden"/>
- <col ref="notefactnm6" visibility="hidden"/>
- <col ref="notefactcd6" visibility="hidden"/>
- <col ref="notefactspec6" visibility="hidden"/>
- <col ref="etcnotefact"/>
- <col ref="autjournflag" visibility="hidden"/>
- <col ref="profdata" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="defrayreqdd" visibility="hidden"/>
- <col ref="bugtaprvyn" visibility="hidden"/>
- <col ref="bugtautoaprvyn" visibility="hidden"/>
- <col ref="bugtearncostflag" visibility="hidden"/>
- <col ref="unslwrit" visibility="hidden"/>
- <col ref="usernm" visibility="hidden"/>
- <col ref="sanctyn" visibility="hidden"/>
- <col ref="dramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="cramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="amt" visibility="hidden"/>
- <col ref="bugtamt" visibility="hidden"/>
- <col ref="rlaacntseqno" visibility="hidden"/>
- <col ref="supacntnm" visibility="hidden"/>
- <col ref="slipcmt" visibility="hidden"/>
- <col ref="approval11" visibility="hidden"/>
- <col ref="approval12" visibility="hidden"/>
- <col ref="approval13" visibility="hidden"/>
- <col ref="approval14" visibility="hidden"/>
- <col ref="approval15" visibility="hidden"/>
- <col ref="approval21" visibility="hidden"/>
- <col ref="approval22" visibility="hidden"/>
- <col ref="approval23" visibility="hidden"/>
- <col ref="approval24" visibility="hidden"/>
- <col ref="approval25" visibility="hidden"/>
- <col ref="servseqno" visibility="hidden"/>
- <col ref="ymdaction" visibility="hidden"/>
- <col ref="cdbojo1" visibility="hidden"/>
- <col ref="ymdpum" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_unsl.isCell(event.target) && grd_unsl.row >= grd_unsl.fixedRows)
- {
- fGridRowClick();
- model.setValue("/root/send/data5/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data5/deptcd", ipt_costcntrdeptcd.value);
- model.setValue("/root/send/data5/unsldd", ipt_unsldd.value);
- model.setValue("/root/send/data5/refcond", "code");
- model.setValue("/root/send/data5/retrnm", model.getValue("/root/main/unsl_one/acntcd"));
- submit("TRRAD90107");
- if(instance1.selectNodes("/root/main/list/bugtorgnzlist").length > 0)
- {
-
- model.setValue("/root/main/unsl_one/bugtamt", model.getValue("/root/main/list/bugtorgnzlist/bugtamt"));
- }
- else
- {
- model.setValue("/root/main/unsl_one/bugtamt", 0);
- }
- fetcprofcntcheck();
- model.refresh();
- }
- else
- {
- var cur_row = grd_unsl.findRow(model.getValue("/root/main/unsl_one/unslseqno"),1,4);
- grd_unsl.row = cur_row;
- }
- //fCheckServAcnt();
-
- if(cmb_custflag.value == "1")
- {
- model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
- }
- model.setValue("/root/send/data2/acntcd", model.getValue("/root/main/unsl_one/acntcd"));
- model.setValue("/root/main/unsl_one/cdbojo1", "");
- submit("TRRAD01701");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <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; ">
- <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; ">
- <caption id="caption34" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm1" ref="/root/main/unsl_one/notefactspec1" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd1" sgetUserInfoelected="true" style="background-color:transparent; ">
- <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd1" ref="/root/main/unsl_one/notefactcd1" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
- fAactCheck();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_grdadd");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm1" ref="/root/main/unsl_one/notefactspec1" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
- fAactCheck();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_grdadd");
- }
- ]]>
- </script>
- </input>
- <button id="btn_notecd1" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd1"), ipt_notecd1, "notefactcd1,notefactspec1", "", "ipt_acntcd", "acntcd");
- fAactCheck();
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo1" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption40" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo1" ref="/root/main/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo1" ref="/root/main/unsl_one/notefactcd1" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo1">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank1" selected="true">
- <caption id="caption39" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <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; "/>
- <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>
- </case>
- </switch>
- <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; ">
- <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; ">
- <caption id="caption9" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm2" ref="/root/main/unsl_one/notefactspec2" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd2" selected="true" style="background-color:transparent; ">
- <caption id="caption20" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd2" ref="/root/main/unsl_one/notefactcd2" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm2" ref="/root/main/unsl_one/notefactspec2" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd2" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd2"), ipt_notecd1, "notefactcd2,notefactspec2", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo2" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption21" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo2" ref="/root/main/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo2" ref="/root/main/unsl_one/notefactcd2" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo2">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank2">
- <caption id="caption29" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <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; ">
- <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; ">
- <caption id="caption31" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm3" ref="/root/main/unsl_one/notefactspec3" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd3" style="background-color:transparent; ">
- <caption id="caption32" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd3" ref="/root/main/unsl_one/notefactcd3" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm3" ref="/root/main/unsl_one/notefactspec3" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd3" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd3"), ipt_notecd1, "notefactcd3,notefactspec3", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo3" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption35" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo3" ref="/root/main/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo3" ref="/root/main/unsl_one/notefactcd3" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo3">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank3">
- <caption id="caption36" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <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; ">
- <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; ">
- <caption id="caption37" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm4" ref="/root/main/unsl_one/notefactspec4" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd4" selected="true" style="background-color:transparent; ">
- <caption id="caption38" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd4" ref="/root/main/unsl_one/notefactcd4" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm4" ref="/root/main/unsl_one/notefactspec4" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd4" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd4"), ipt_notecd1, "notefactcd4,notefactspec4", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo4" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption41" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo4" ref="/root/main/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo4" ref="/root/main/unsl_one/notefactcd4" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo4">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank4" style="left:0px; top:0px; width:403px; height:25px; ">
- <caption id="caption42" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <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; ">
- <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; ">
- <caption id="caption43" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm5" ref="/root/main/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm5" ref="/root/main/unsl_one/notefactspec5" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd5" selected="true" style="background-color:transparent; ">
- <caption id="caption44" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd5" ref="/root/main/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd5" ref="/root/main/unsl_one/notefactcd5" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm5" ref="/root/main/unsl_one/notefactspec5" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd5" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwn5"), ipt_notecd1, "notefactcd5,notefactspec5", "", "ipt_acntcd", "acntcd");
- rpbfOpenPopUpList("SPRPZ00800", ipt_notecd5, "cardcd,cardno", "", "N");
- model.setValue("/root/main/unsl_one/notefactcd5", model.getValue("/root/temp/cardcd"));
- model.setValue("/root/main/unsl_one/notefactspec5", model.getValue("/root/temp/cardno"));
- model.refresh();
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo5" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption45" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo5" ref="/root/main/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo5" ref="/root/main/unsl_one/notefactcd5" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo5">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank5">
- <caption id="caption46" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <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; ">
- <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; ">
- <caption id="caption48" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
- <output id="opt_notenm6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notenm6" ref="/root/main/unsl_one/notefactspec6" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
- </case>
- <case id="case_notecd6" selected="true" style="background-color:transparent; ">
- <caption id="caption50" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecd6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <input id="ipt_notecd6" ref="/root/main/unsl_one/notefactcd6" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm6" ref="/root/main/unsl_one/notefactspec6" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </input>
- <button id="btn_notecd6" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd6"), ipt_notecd1, "notefactcd6,notefactspec6", "", "ipt_acntcd", "acntcd");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_notecombo6" style="background-color:transparent; border-color:transparent; ">
- <caption id="caption52" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- <output id="opt_notecombo6" ref="/root/main/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
- <select1 id="cmb_notecombo6" ref="/root/main/unsl_one/notefactcd6" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/acntcdcombo/notecombo6">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_noteblank6">
- <caption id="caption54" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
- </case>
- </switch>
- <line id="line2" class="line_2" style="x1:0px; y1:177px; x2:1195px; y2:177px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:183px; x2:1195px; y2:183px; "/>
- <caption id="caption17" class="cell_1" style="left:0px; top:370px; width:110px; height:23px; ">연번호</caption>
- <line id="line14" class="line_1" style="x1:0px; y1:393px; x2:1195px; y2:393px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:357px; x2:1195px; y2:357px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:307px; x2:1195px; y2:307px; "/>
- <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; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:332px; x2:1195px; y2:332px; "/>
- <switch id="switch8" class="sw_no_border" style="left:248px; top:184px; width:662px; height:25px; ">
- <case id="코드관리">
- <input id="ipt_custnm" ref="/root/main/unsl_one/custnm" class="input_essential" imemode="hangul" style="left:141px; top:3px; width:519px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var custflag = model.getValue("/root/main/unsl_one/custflag");
-
- switch (custflag) {
- case "1": //거래처
- fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
- model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
- break;
- // case "2": //은행
- // fValidationCheck("03", "custcd,custnm", "R0001", "");
- // break;
- case "3": //부서
- fValidationCheck("02", "custcd,custnm", "", "");
- break;
- case "4": //교직원
- // fValidationCheck("01-2", "custcd,custnm", "", "");
- model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
- ipt_emplnm.dispatch("xforms-value-changed");
- break;
- case "5": //개인
- fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
- break;
- default :
- return;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("ipt_amt");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_custcd" ref="/root/main/unsl_one/custcd" class="input_essential" navindex="-1" style="left:0px; top:2px; width:116px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var custflag = model.getValue("/root/main/unsl_one/custflag");
-
- switch (custflag) {
- case "1": //거래처
- fValidationCheck("14", "custcd,custnm", "", "ipt_amt", "", "", "code");
- model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
- break;
- // case "2": //은행
- // fValidationCheck("03", "custcd,custnm", "R0001", "ipt_amt");
- // break;
- case "3": //부서
- fValidationCheck("02", "custcd,custnm", "", "ipt_amt");
- break;
- case "4": //교직원
- // fValidationCheck("01-1", "custcd,custnm", "", "ipt_amt");
- model.setValue("/root/hidden/tempnode/emplno", model.getValue("/root/main/unsl_one/custcd"));
- ipt_emplno.dispatch("xforms-value-changed");
- break;
- case "5": //개인
- fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "code");
- break;
- default :
- return;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("ipt_amt");
- }
- ]]>
- </script>
- </input>
- <button id="btn_custcd" class="icon_search" navindex="-1" style="left:121px; top:5px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var custflag = model.getValue("/root/main/unsl_one/custflag");
-
- switch (custflag) {
- case "1": //거래처
- fOpenPopupHelp("14", ipt_custcd, "custcd,custnm", "", "");
- model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
- break;
- // case "2": //은행
- // fOpenPopupHelp("03", ipt_custcd, "custcd,custnm", "R0001", "");
- // break;
- case "3": //부서
- fOpenPopupHelp("02", ipt_custcd, "custcd,custnm", "", "");
- break;
- case "4": //교직원
- // fOpenPopupHelp("01", ipt_custcd, "custcd,custnm", "", "");
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
- model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
- model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
- model.refresh();
- break;
- case "5": //개인
- fOpenPopupHelp("31", ipt_custcd, "custcd,custnm", "", "");
- break;
- default :
- return;
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="명관리" selected="true">
- <input id="ipt_custnm2" ref="/root/main/unsl_one/custnm" class="input_essential" imemode="hangul" style="left:0px; top:2px; width:660px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("rdo_profflag1");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_custcd2" ref="/root/main/unsl_one/custcd" class="input_essential" visibility="hidden" style="left:520px; top:2px; width:25px; height:19px; "/>
- </case>
- </switch>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_custflag");
- ]]>
- </script>
- <choices>
- <itemset nodeset="/root/init/fundscdlist/fundscd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption25" class="cell_1" style="left:0px; top:259px; width:110px; height:23px; ">금 액</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:257px; x2:1195px; y2:257px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:207px; x2:1195px; y2:207px; "/>
- <input id="ipt_slipyn" ref="/root/hidden/slipyn" navindex="-1" visibility="hidden" style="left:1090px; top:10px; width:35px; height:19px; "/>
- <button id="btn_grdset" class="btn2_letter3" disabled="true" style="left:1032px; top:335px; width:53px; height:19px; ">
- <caption>행수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (!fSlipAprvChk("N")) {
- return;
- }
- //if(!fdayreptAcntcdException())return;
- if(!fcheckAcntOption())
- {
- return;
- }
- fGridRowSetClick();
- ]]>
- </script>
- </button>
- <caption id="caption56" class="cell_1" style="left:916px; top:184px; width:104px; height:23px; ">자금과목</caption>
- <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; "/>
- <caption id="caption33" class="cell_1" style="left:0px; top:209px; width:110px; height:48px; ">증빙구분</caption>
- <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; ">
- <choices>
- <item>
- <label>법인카드</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fProfClick("SPRAD00101");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>개인신용카드</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fProfClick("SPRAD00102");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>현금영수증</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fProfClick("SPRAD00103");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>세금계산서</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fProfClick("SPRAT00101");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>계산서</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fProfClick("SPRAT00101");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>기타</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!fProfExistsChk())
- {
- return;
- }
- fetcprofcntcheck();
- ]]>
- </script>
- </select1>
- <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; "/>
- <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; ">
- <choices>
- <item>
- <label>근로소득</label>
- <value>7</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(getUserInfo("dutplceinstcd") == "103")
- {
- fProfOrChClick("SPRAD00104");
- }
- else
- {
- fProfOrChClick("SPRAD00134");
- }
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>비과세 근로소득</label>
- <value>8</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fetcprofcntcheck();
- if(getUserInfo("dutplceinstcd") == "103")
- {
- fProfOrChClick("SPRAD00104");
- }
- else
- {
- fProfOrChClick("SPRAD00134");
- }
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>퇴직소득</label>
- <value>9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //return;
- fProfOrChClick("SPRAD00140");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>일용근로소득</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(getUserInfo("dutplceinstcd") == "103")
- {
- fProfOrChClick("SPRAD00111");
- }
- else
- {
- fProfOrChClick("SPRAD00131");
- }
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>사업소득</label>
- <value>B</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(getUserInfo("dutplceinstcd") == "103")
- {
- fProfOrChClick("SPRAD00106");
- }
- else
- {
- fProfOrChClick("SPRAD00136");
- }
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>기타소득</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(getUserInfo("dutplceinstcd") == "103")
- {
- fProfOrChClick("SPRAD00105");
- }
- else
- {
- fProfOrChClick("SPRAD00135");
- }
- ]]>
- </script>
- </select1>
- <button id="btn_copy" class="btn4_letter2" disabled="true" style="left:293px; top:98px; width:56px; height:22px; ">
- <caption>복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/hidden/condition/slipflag") == "9")
- {
- messageBox("[전표 반제 전표]는 복사할 수 없습니다. \n전표 반제 프로그램에서 작업하세요", "I000");
- return false;
- }
- fCopyShftSlip("copy")
- ]]>
- </script>
- </button>
- <button id="btn_grdcopy" class="btn2_letter3" disabled="true" style="left:1142px; top:335px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fIncreSeqno("/root/main/unsl_one/unslseqno");
- model.setValue("/root/main/unsl_one/profflag", "");
- model.setValue("/root/main/unsl_one/seqno", "");
- model.setValue("/root/main/unsl_one/rlaacntseqno", "");
- model.setValue("/root/main/unsl_one/fundscd", model.getValue("/root/hidden/acntcdinfo/fundscd"));
- model.refresh();
- btn_grdadd.disabled = false;
- btn_grdset.disabled = true;
- btn_grddel.disabled = true;
- btn_grdcopy.disabled = true;
- btn_grdclear.visible = false;
- model.setFocus("ipt_custnm");
- ]]>
- </script>
- </button>
- <caption id="caption58" style="left:714px; top:233px; width:11px; height:20px; font-weight:bold; ">]</caption>
- <button id="btn_prtcancel" class="btn4_letter4" disabled="true" visibility="visible" style="left:1112px; top:98px; width:80px; height:22px; ">
- <caption>출력취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/unsl[1]/sanctno") != "")
- {
- messageBox("승인된 전표이므로 작업을 불허합니다." ,"I000");
- return;
- }
- if (model.getValue("/root/main/unsl[1]/bugtaprvyn") == "Y" && model.getValue("/root/main/unsl[1]/bugtautoaprvyn") == "N")
- {
- messageBox("기획팀 예산 승인된 전표이므로 작업을 불허합니다." ,"I000");
- return;
- }
- if (model.getValue("/root/main/unsl_one/acntcd") != "")
- {
- fRowClearClick();
- }
- fSlipPrintCancelClick();
- fSlipStatus();
- fQueryClick();
- ]]>
- </script>
- </button>
- <caption id="caption30" style="left:117px; top:233px; width:11px; height:20px; font-weight:bold; ">[</caption>
- <caption id="caption11" class="hand" style="left:723px; top:233px; width:82px; height:20px; color:#3366ff; vertical-align:middle; ">원천징수</caption>
- <button id="btn_setapln" class="btn4_letter5" visibility="visible" style="left:781px; top:98px; width:92px; height:22px; ">
- <caption>결재선지정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_unsl);
- if (updtdata != "")
- {
- messageBox("변경된 데이터 저장 후 작업하세요.","I000");
- return;
- }
- if(grp_apln.visible)
- {
- grp_apln.visible = false;
- }
- else
- {
- //if(grd_unsl.rows == 1) return;
-
- model.removenode("/root/main/apln");
- model.setValue("/root/send/data3/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/send/data3/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
- submit("TRRAD00151");
-
- if(model.getValue("/root/main/apln/iudflag") == "")model.setValue("/root/main/apln/iudflag", "I");
- // cmb_arbitrary1.select(1);
- // cmb_arbitrary1.refresh();
- grp_apln.visible = true;
- model.setFocus("grp_apln");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/hidden/tempnode/emplno" visibility="hidden" style="left:505px; top:740px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
- model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm" ref="/root/hidden/tempnode/emplnm" visibility="hidden" style="left:525px; top:740px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- model.setValue("/root/main/unsl_one/custcd", model.getValue("/root/hidden/tempnode/emplno"));
- model.setValue("/root/main/unsl_one/custnm", model.getValue("/root/hidden/tempnode/emplnm"));
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_acntyy" ref="/root/hidden/acntyy" navindex="-1" visibility="hidden" style="left:1125px; top:10px; width:35px; height:19px; "/>
- <button id="button1" visibility="hidden" style="left:1120px; top:65px; width:55px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"));
- //model.setValue("/root/main/unsl_one/amt", -900000000);
- //model.refresh();
- //alert(model.getValue("/root/main/unsl_one/amt"));
- alert(getUserId());
- ]]>
- </script>
- </button>
- <button id="btn_dayshift" class="btn4_letter4" disabled="true" style="left:209px; top:98px; width:80px; height:22px; ">
- <caption>날짜변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/condition/slipflag") == "9")
- {
- messageBox("[전표 반제 전표]는 날짜를 변경할 수 없습니다. \n전표 반제 프로그램에서 작업하세요", "I000");
- return false;
- }
-
- fCopyShftSlip("shift");
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <item>
- <label>option1</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>option2</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>option3</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>option3</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>option5</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>option6</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption59" class="cell_1" style="left:570px; top:735px; width:120px; height:23px; text-align:center; vertical-align:middle; ">이체금액합계</caption>
- <button id="btn_serv" class="btn2_letter6" visibility="hidden" style="left:810px; top:285px; width:86px; height:19px; ">
- <caption>접대비명세서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fServClick();
- if(grd_unsl.row > grd_unsl.fixedRows && grd_unsl.valueMatrix(1, grd_unsl.colRef("sanctyn")) == 'Y')
- {
- messageBox("재무팀 전송 전표이므로 작업이 불가합니다." ,"I000");
- return false;
- }
- model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.makeValue("/root/source/slipinfo/seqno", model.getValue("/root/main/unsl_one/servseqno"));
- model.makeValue("/root/source/slipinfo/entrregno", model.getValue("/root/main/unsl_one/custcd"));
- model.makeValue("/root/source/slipinfo/deptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.makeValue("/root/source/slipinfo/emplno", getUserId());
- model.makeValue("/root/source/slipinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
- model.makeValue("/root/source/slipinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
- model.makeValue("/root/source/slipinfo/unslseqno", model.getValue("/root/main/unsl_one/unslseqno"));
- model.makeValue("/root/source/slipinfo/readonly", model.getValue("/root/main/unsl[1]/sanctyn"));
- model.makeValue("/root/source/slipinfo/amt", model.getValue("/root/main/unsl_one/amt"));
- model.makeValue("/root/source/slipinfo/cmt", model.getValue("/root/main/unsl_one/etcnotefact"));
- model.makeValue("/root/source/receiveref", "/root/main/unsl_one");
- model.refresh();
- modal("SPRAD00112","","","","","/root/source", "/root/target" );
- model.refresh();
- if (model.getValue("/root/source/slipinfo/seqno") != model.getValue("/root/main/unsl_one/servseqno") && btn_grdset.disabled == false)
- {
- var cur_row = grd_unsl.row;
- btn_grdset.dispatch("DOMActivate");
- grd_unsl.row = cur_row;
- fGridRowClick();
- }
- ]]>
- </script>
- </button>
- <button id="btn_availablebugt" class="btn4_letter5" disabled="true" style="left:112px; top:98px; width:128px; height:22px; ">
- <caption>예산가용액</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_unsl.rows == 1)
- {
- return false;
- }
- var sanctyn = model.getValue("/root/main/unsl[1]/sanctyn");
- if (sanctyn == "Y")
- {
- return false;
- }
- model.makeValue("/root/source/availablebugtinfo/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.makeValue("/root/source/availablebugtinfo/unsldd", model.getValue("/root/hidden/condition/unsldd"));
- model.makeValue("/root/source/availablebugtinfo/unslno", model.getValue("/root/hidden/condition/unslno"));
- model.refresh();
- modal("SPRAD00125","","","","","/root/source", "/root/target");
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_deptflag" ref="/root/hidden/deptflag" class="combo_essential" navindex="-1" appearance="minimal" style="left:404px; top:131px; width:107px; height:19px; ">
- <choices>
- <item>
- <label>귀속부서</label>
- <value>1</value>
- </item>
- <item>
- <label>예산부서</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption61" class="cell_1" style="left:215px; top:370px; width:74px; height:23px; text-align:center; ">전표상태</caption>
- <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; "/>
- <button id="btn_9" class="btn2_letter4" style="left:1131px; top:372px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- radfSaveExcel(grd_unsl);
- ]]>
- </script>
- </button>
- <caption id="caption64" class="cell_1" style="left:806px; top:209px; width:110px; height:23px; ">기표부서</caption>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- racfDeptValidCheck("slipdeptcd,slipdeptnm"); // 전체부서
- fUpdateSlipDeptCD();
-
- ]]>
- </script>
- </input>
- <button id="btn_slipdeptcd" class="icon_search" disabled="false" navindex="-1" visibility="hidden" style="left:1003px; top:212px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupDeptHelp(ipt_slipdeptcd, "slipdeptcd,slipdeptnm"); //전체부서
- fUpdateSlipDeptCD();
- ]]>
- </script>
- </button>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- racfDeptValidCheck("slipdeptcd,slipdeptnm"); // 전체부서
-
- fUpdateSlipDeptCD();
-
- model.setFocus("ipt_slipdeptnm");
- ]]>
- </script>
- </input>
- <caption id="cap_etcprofcnt" visibility="hidden" style="left:757px; top:215px; width:43px; height:20px; ">[매수]</caption>
- <caption id="cap_costbelongdeptcd" class="cell_1" style="left:805px; top:310px; width:110px; height:23px; ">실사용부서</caption>
- <input id="ipt_costbelongdeptnm" ref="/root/main/unsl_one/costbelongdeptnm" class="input_essential" disabled="true" style="left:1022px; top:312px; width:170px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- racfDeptValidCheck("costbelongdeptcd,costbelongdeptnm"); // 전체부서
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <button id="btn_costbelongdeptcd" class="icon_search" disabled="false" navindex="-1" visibility="hidden" style="left:1002px; top:312px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupDeptHelp(ipt_costbelongdeptcd, "costbelongdeptcd,costbelongdeptnm"); //전체부서
- model.refresh();
- ]]>
- </script>
- </button>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- racfDeptValidCheck("costbelongdeptcd,costbelongdeptnm"); // 전체부서
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <button id="btn_bugtmngtdeptcd" class="icon_search" disabled="true" navindex="-1" style="left:1002px; top:132px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <input id="ipt_bugtmngtdeptnm" ref="/root/main/unsl_one/bugtmngtdeptnm" class="input_essential" disabled="true" style="left:1023px; top:132px; width:170px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <caption id="cpt_bugtmngtdeptnm" class="cell_1" style="left:805px; top:130px; width:110px; height:23px; ">예산관리부서</caption>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <line id="line1" class="line_1" style="x1:0px; y1:125px; x2:1195px; y2:125px; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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; "/>
- <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>
- <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; "/>
- <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>
- <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; "/>
- <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>
- <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>
- <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>
- <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>
- <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; "/>
- <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>
- <group id="grp_apln" visibility="hidden" style="left:620px; top:125px; width:575px; height:160px; background-color:#6bb5fe; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:4px; width:565px; height:151px; "/>
- <button id="btn_saveapln" class="btn4_letter2" style="left:448px; top:129px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dlgRslt = messageBox("결재선을", "Q002");
- if(dlgRslt == 6)
- { //<group id="grp_apln" visibility="hidden" style="left:769px; top:125px; width:425px; height:135px; background-color:#6bb5fe; ">
- model.setValue("/root/main/apln/instcd", model.getValue("/root/main/unsl_one/instcd"));
- model.setValue("/root/main/apln/deptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
- model.setValue("/root/main/apln/aplnflag", model.getValue("/root/send/data3/aplnflag"));
-
- if(model.getValue("/root/main/apln/deptcd")=="4030100000"){
- model.setValue("/root/main/apln/iudflag" , "U");
- }
-
- if(misfSave("TXRAD00151"))
- {
- grp_apln.visible = false;
- // if(grd_unsl.rows > 1)
- // {
- // if(grd_unsl.rowStatus(1) != 1 && grd_unsl.rowStatus(1) != 3)
- // {
- fQueryClick();
- // }
- // }
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption62" class="cell_1" style="left:9px; top:54px; width:45px; height:21px; ">발 의</caption>
- <caption id="caption51" class="cell_1" style="left:275px; top:30px; width:70px; height:23px; text-align:center; ">결재선 4</caption>
- <caption id="caption63" class="cell_1" style="left:9px; top:77px; width:45px; height:20px; ">재 무</caption>
- <line id="line12" class="line_2" style="x1:8px; y1:98px; x2:419px; y2:98px; "/>
- <caption id="caption53" class="cell_1" style="left:348px; top:30px; width:70px; height:23px; text-align:center; ">결재선 5</caption>
- <caption id="caption55" class="tit_2" style="left:13px; top:10px; width:131px; height:13px; ">결재선지정</caption>
- <line id="line15" class="line_1" style="x1:8px; y1:25px; x2:564px; y2:25px; "/>
- <line id="line16" class="line_2" style="x1:8px; y1:76px; x2:419px; y2:76px; "/>
- <caption id="caption49" class="cell_1" style="left:202px; top:30px; width:70px; height:23px; text-align:center; ">결재선 3</caption>
- <caption id="caption27" class="cell_1" style="left:56px; top:30px; width:70px; height:23px; text-align:center; ">결재선 1</caption>
- <caption id="caption28" class="cell_1" style="left:129px; top:30px; width:70px; height:23px; text-align:center; ">결재선 2</caption>
- <button id="btn_closeapln" class="btn4_letter2" style="left:508px; top:129px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_apln.visible = false;
- ]]>
- </script>
- </button>
- <input id="ipt_approval11" ref="/root/main/apln/approval11" class="input_search" style="left:56px; top:56px; width:70px; height:19px; "/>
- <input id="ipt_approval12" ref="/root/main/apln/approval12" class="input_search" style="left:129px; top:56px; width:70px; height:19px; "/>
- <input id="ipt_approval13" ref="/root/main/apln/approval13" class="input_search" style="left:202px; top:56px; width:70px; height:19px; "/>
- <input id="ipt_approval14" ref="/root/main/apln/approval14" class="input_search" style="left:275px; top:56px; width:70px; height:19px; "/>
- <input id="ipt_approval15" ref="/root/main/apln/approval15" class="input_search" style="left:348px; top:56px; width:70px; height:19px; "/>
- <input id="ipt_approval21" ref="/root/main/apln/approval21" class="input_search" style="left:56px; top:78px; width:70px; height:19px; "/>
- <input id="ipt_approval22" ref="/root/main/apln/approval22" class="input_search" style="left:129px; top:78px; width:70px; height:19px; "/>
- <input id="ipt_approval23" ref="/root/main/apln/approval23" class="input_search" style="left:202px; top:78px; width:70px; height:19px; "/>
- <input id="ipt_approval24" ref="/root/main/apln/approval24" class="input_search" style="left:275px; top:78px; width:70px; height:19px; "/>
- <input id="ipt_approval25" ref="/root/main/apln/approval25" class="input_search" style="left:348px; top:78px; width:70px; height:19px; "/>
- <caption id="caption60" class="cell_1" style="left:421px; top:30px; width:70px; height:23px; text-align:center; ">결재선 6</caption>
- <input id="ipt_approval26" ref="/root/main/apln/approval26" class="input_search" style="left:421px; top:78px; width:70px; height:19px; "/>
- <input id="ipt_approval16" ref="/root/main/apln/approval16" class="input_search" style="left:421px; top:56px; width:70px; height:19px; "/>
- <caption id="caption65" class="cell_1" style="left:9px; top:100px; width:45px; height:20px; ">전 결</caption>
- <caption id="caption66" class="cell_1" style="left:494px; top:30px; width:70px; height:23px; text-align:center; ">참 조</caption>
- <input id="ipt_approval27" ref="/root/main/apln/approval27" class="input_search" disabled="true" style="left:494px; top:78px; width:70px; height:19px; "/>
- <input id="ipt_approval17" ref="/root/main/apln/approval17" class="input_search" style="left:494px; top:56px; width:70px; height:19px; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/arbitrarylist/arbitrary">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/arbitrarylist/arbitrary">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/arbitrarylist/arbitrary">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/arbitrarylist/arbitrary">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/arbitrarylist/arbitrary">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/arbitrarylist/arbitrary">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <button id="button3" class="btn4_letter4" visibility="hidden" style="left:374px; top:98px; width:104px; height:22px; ">
- <caption>그룹웨어</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- open("SPRAS00100","","","","","", "", "" );
- model.setValue("/root/temp2/slipcmt" , model.getValue("/root/hidden/condition/slipcmt"));
- model.setValue("/root/temp2/amt" , model.getValue("/root/main/unsl_one/amt"));
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption68" class="cell_1" style="left:934px; top:285px; width:65px; height:23px; ">보조과목</caption>
- <select1 id="combo1" ref="/root/main/unsl_one/cdbojo1" appearance="minimal" style="left:1000px; top:285px; width:190px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combo4/acntcmb">
- <label ref="bojonm"/>
- <value ref="bojocd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|