1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <list>
- <orch>
- <instcd/>
- <seqno/>
- <chrgflag/>
- <unsldd/>
- <unslno/>
- <undeciseqno/>
- <paydd/>
- <status/>
- </orch>
- <orchlist>
- <instcd/>
- <seqno/>
- <detlseqno/>
- <chrgflag/>
- <fromdd/>
- <todd/>
- <emplno/>
- <emplnm/>
- <rrgstno/>
- <name/>
- <servedmonths/>
- <servedyears/>
- <retireamt/>
- <earlyretramt/>
- <deductamt/>
- <yearsdeductamt/>
- <sumretrdeductamt/>
- <taxstandard/>
- <avetaxstandard/>
- <avecalctax/>
- <calctax/>
- <taxdeduct/>
- <determtax/>
- <paymenttax/>
- <incmtax/>
- <resdntax/>
- <paytax/>
- <cmt/>
- <zipcd/>
- <addr/>
- <paytotamt/>
- <belongyearfrom/>
- <belongyearto/>
- <retrflag>6</retrflag>
- </orchlist>
- <cadlinfo>
- <entrregno/>
- <custnm/>
- <prsdnm/>
- <rrgstno/>
- <supaddr/>
- <infaddr/>
- </cadlinfo>
- <cadllist>
- <cadl/>
- </cadllist>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <seqno/>
- <chrgflag/>
- <detlseqno/>
- </retrparams>
- <list>
- <orchlist/>
- <orch/>
- </list>
- <data1>
- <instcd/>
- <rrgstno/>
- <name/>
- <retrflag/>
- </data1>
- <data2>
- <emplno/>
- </data2>
- <cadl>
- <cadl/>
- <fromdd/>
- </cadl>
- <condition>
- <status/>
- </condition>
- </send>
- <hidden>
- <flag>
- <orchreturn>
- <amt/>
- <etcnotefact/>
- <incmtax/>
- <resdntax/>
- </orchreturn>
- </flag>
- <calclist>
- <A/>
- <B/>
- <C/>
- <D/>
- <E/>
- <F/>
- <G/>
- <H/>
- <I/>
- <J/>
- <K/>
- <L/>
- <M/>
- <N/>
- <O/>
- <P/>
- <Q/>
- <R/>
- <S/>
- <T/>
- <U/>
- <V/>
- </calclist>
- <condition>
- <custflag>N</custflag>
- <calcyearvariable>
- <variableA1/>
- <variableA2/>
- <variableB1/>
- <variableB2/>
- <variableC1/>
- <variableC2/>
- <variableD1/>
- <variableD2/>
- </calcyearvariable>
- <calcyear>2010</calcyear>
- <taxdeductflag>N</taxdeductflag>
- </condition>
- <selectretiree>Y</selectretiree>
- <emplinfo>
- <emplinfolist>
- <fromdd/>
- <todd/>
- </emplinfolist>
- </emplinfo>
- </hidden>
- <init>
- <R0278list>
- <R0278>
- <cdnm/>
- <cdid/>
- </R0278>
- </R0278list>
- <R0279list>
- <R0279>
- <cdnm/>
- <cdid/>
- </R0279>
- </R0279list>
- <belongyear/>
- </init>
- <temp>
- <seqno>
- <seqno/>
- </seqno>
- </temp>
- <target/>
- </root>
- </instance>
- <bind id="bind_totamt" ref="/root/hidden/totamt" calculate="(/root/main/orch_one/paytotamt) - (/root/main/orch_one/incmtax) -(/root/main/orch_one/resdntax)"/>
- <bind id="bind_amt" ref="/root/hidden/orchreturn/amt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
- <bind id="bind_incmtax" ref="/root/hidden/orchreturn/incmtax" calculate="sum(/root/hidden/calclist/T)"/>
- <bind id="bind_resdntax" ref="/root/hidden/orchreturn/resdntax" calculate="sum(/root/hidden/calclist/U)"/>
- <submission id="TRRAC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cadl" resultref="/root/main/list/cadlinfo"/>
- <submission id="TRRAD00141" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TXRAD00141" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list" resultref="/root/temp"/>
- <submission id="TRRAD00142" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/emplinfo"/>
- </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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var instcd = model.getValue("/root/target/slipinfo/instcd");
- var unsldd = model.getValue("/root/target/slipinfo/unsldd");
- var unslno = model.getValue("/root/target/slipinfo/unslno");
- var unslseqno = model.getValue("/root/target/slipinfo/unslseqno");
- var seqno = model.getValue("/root/target/slipinfo/seqno");
- var profflag = model.getValue("/root/target/slipinfo/profflag");
- var emplno = model.getValue("/root/target/slipinfo/emplno");
- var rrgstno = model.getValue("/root/target/slipinfo/rrgstno");
- var amt = model.getValue("/root/target/slipinfo/amt");
- var cmt = model.getValue("/root/target/slipinfo/cmt");
-
- if(instcd == "") instcd = getUserInfo("dutplceinstcd");
- if(profflag == "") profflag = "9";
-
- function fInitialize()
- {
- var sToday = getCurrentDate().toString();
- model.setValue("/root/main/list/orchlist/fromdd", sToday);
- model.setValue("/root/main/list/orchlist/todd", sToday);
- model.setValue("/root/send/cadl/fromdd", model.getValue("/root/main/list/orchlist/todd"));
- radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/send/cadl/fromdd"), "", "", "", "", "/root/send/cadl/cadl");
-
- //model.setValue(cmb_custflag.attribute("ref"), "1");
-
-
-
- submit("TRRAC00202");
-
-
-
- if (model.getValue("/root/target/slipinfo/seqno") != "")
- {
- model.setValue("/root/send/retrparams/instcd", instcd);
- model.setValue("/root/send/retrparams/seqno", seqno);
- model.setValue("/root/send/retrparams/chrgflag", profflag);
- model.setValue("/root/send/retrparams/detlseqno", "0001");
- ipt_paydd.disabled = true;
- model.refresh();
-
- fSearch();
- model.refresh();
-
-
- }
- else
- {
- finsertStat();
- if(emplno != "")
- {
- model.setValue("/root/main/list/orchlist/emplno", emplno);
- ipt_emplno.refresh();
- ipt_emplno.dispatch("xforms-value-changed");
- }
- else if(rrgstno != "")
- {
- model.setValue("/root/main/list/orchlist/rrgstno", rrgstno);
- ipt_rrgstno.refresh();
- ipt_rrgstno.dispatch("xforms-value-changed");
- }
- else if(amt != "")
- {
- model.setValue("/root/main/list/orchlist/retireamt", amt);
- ipt_payamt.refresh();
- }
- model.makeValue("/root/main/list/orchlist/cmt", cmt);
- ipt_emplno.refresh();
- ipt_emplno.dispatch("xforms-value-changed");
- }
-
- model.refresh();
-
- if (model.getValue("/root/target/slipinfo/readonly") == "Y")
- {
- btn_save.disabled = true;
- btn_delete.disabled = true;
- }
-
- if(model.getValue("/root/main/list/orch/unslno") == "")
- {
- model.setValue("/root/main/list/orch/paydd", model.getValue("/root/main/list/orch/unsldd"));
- }
- // alert(model.getValue("/root/main/list/orchlist/rrgstno"));
- // alert(model.getValue("/root/main/list/orchlist/emplno"));
-
-
-
-
- if(model.getValue(ipt_emplno.attribute("ref")) != "")
- {
- cmb_custflag.value = "1";
- }
- else if(model.getValue(ipt_rrgstno.attribute("ref")) != "")
- {
- cmb_custflag.value = "2";
- }
- else
- {
- cmb_custflag.value = "1";
- } // 신규
- cmb_custflag.refresh();
- cmb_custflag.dispatch("xforms-value-changed");
-
- cmb_calcyear.refresh();
- cmb_calcyear.dispatch("xforms-value-changed");
-
- //fpayCalc();
-
- //model.getValue("/root/main/list/orch/status");
-
- if(model.getValue("/root/main/list/orch/unslno") == "")
- {
- ipt_paydd.visible = true;
- cap_paydd.value = "지급일";
- }
-
- model.setFocus("ipt_name");
- }
-
- function finsertStat()
- {
- model.removeNodeset("/root/main/list/orch");
- //model.removeNodeset("/root/main/list/orchlist");
-
- model.makeValue("/root/main/list/orch/instcd", instcd);
- model.makeValue("/root/main/list/orch/seqno", "");
- model.makeValue("/root/main/list/orch/paydd", "");
- model.makeValue("/root/main/list/orch/unsldd", unsldd);
- model.makeValue("/root/main/list/orch/unslno", unslno);
- model.makeValue("/root/main/list/orch/undeciseqno", unslseqno);
- model.makeValue("/root/main/list/orch/chrgflag", profflag);
- model.makeValue("/root/main/list/orch/status", "i");
-
- model.makeValue("/root/main/list/orchlist/instcd", instcd);
- model.makeValue("/root/main/list/orchlist/chrgflag" , profflag);
- model.makeValue("/root/main/list/orchlist/detlseqno" ,"0001");
- model.makeValue("/root/main/list/orchlist/seqno" ,"");
- model.makeValue("/root/main/list/orchlist/emplno" ,"");
- model.makeValue("/root/main/list/orchlist/rrgstno" ,"");
- model.makeValue("/root/main/list/orchlist/name" ,"");
- model.makeValue("/root/main/list/orchlist/fromdd" ,"");
- model.makeValue("/root/main/list/orchlist/todd" ,"");
- model.makeValue("/root/main/list/orchlist/servedmonths" ,"");
- model.makeValue("/root/main/list/orchlist/servedyears" ,"");
- model.makeValue("/root/main/list/orchlist/retireamt" ,"");
- model.makeValue("/root/main/list/orchlist/deductamt" ,"");
- model.makeValue("/root/main/list/orchlist/yearsdeductamt" ,"");
- model.makeValue("/root/main/list/orchlist/sumretrdeductamt" ,"");
- model.makeValue("/root/main/list/orchlist/taxstandard" ,"");
- model.makeValue("/root/main/list/orchlist/avetaxstandard" ,"");
- model.makeValue("/root/main/list/orchlist/avecalctax" ,"");
- model.makeValue("/root/main/list/orchlist/calctax" ,"");
- model.makeValue("/root/main/list/orchlist/taxdeduct" ,"");
- model.makeValue("/root/main/list/orchlist/determtax" ,"");
- model.makeValue("/root/main/list/orchlist/paymenttax" ,"");
- model.makeValue("/root/main/list/orchlist/incmtax" ,"");
- model.makeValue("/root/main/list/orchlist/resdntax" ,"");
- model.makeValue("/root/main/list/orchlist/paytax" ,"");
- model.makeValue("/root/main/list/orchlist/cmt" ,"");
- model.makeValue("/root/main/list/orchlist/rregno" ,"");
- model.makeValue("/root/main/list/orchlist/zipcd" ,"");
- model.makeValue("/root/main/list/orchlist/addr" ,"");
- model.makeValue("/root/main/list/orchlist/paytotamt" ,"");
-
-
- var sToday = getCurrentDate().toString();
- //model.setValue("/root/main/list/orchlist/fromdd", sToday);
- //model.setValue("/root/main/list/orchlist/todd", sToday);
- model.setValue("/root/send/cadl/fromdd", model.getValue("/root/main/list/orchlist/todd"));
-
- }
-
- //============================================================
- // 퇴직 소득 조회
- //============================================================
- function fSearch()
- {
- submit("TRRAD00141");
-
- if(instance1.selectNodes("/root/main/list/orchlist").length == 0)
- {
- finsertStat();
- }
- else
- {
- model.setValue("/root/main/list/orch/status", "u");
- model.makeValue(ipt_A.attribute("ref") ,"");
- model.makeValue(ipt_B.attribute("ref") ,"");
- model.makeValue(ipt_C.attribute("ref") ,"");
- model.makeValue(ipt_D.attribute("ref") ,"");
- model.makeValue(ipt_E.attribute("ref") ,"");
- model.makeValue(ipt_F.attribute("ref") ,"");
- model.makeValue(ipt_G.attribute("ref") ,"");
- model.makeValue(ipt_H.attribute("ref") ,"");
- model.makeValue(ipt_I.attribute("ref") ,"");
- model.makeValue(ipt_J.attribute("ref") ,"");
- model.makeValue(ipt_K.attribute("ref") ,"");
- model.makeValue(ipt_L.attribute("ref") ,"");
- model.makeValue(ipt_M.attribute("ref") ,"");
- model.makeValue(ipt_N.attribute("ref") ,"");
- model.makeValue(ipt_O.attribute("ref") ,"");
- model.makeValue(ipt_P.attribute("ref") ,"");
- model.makeValue(ipt_Q.attribute("ref") ,"");
- model.makeValue(ipt_R.attribute("ref") ,"");
- model.makeValue(ipt_S.attribute("ref") ,"");
- model.makeValue(ipt_T.attribute("ref") ,"");
- model.makeValue(ipt_U.attribute("ref") ,"");
- model.makeValue(ipt_V.attribute("ref") ,"");
- if(model.getValue(ipt_payamt.attribute("ref")) == "")
- {
- model.setValue(ipt_payamt.attribute("ref"), '0');
- ipt_payamt.refresh();
- }
- if(model.getValue(ipt_earlyretramt.attribute("ref")) == "")
- {
- model.setValue(ipt_earlyretramt.attribute("ref"), '0');
- ipt_earlyretramt.refresh();
- }
- model.setValue("/root/hidden/calclist/A", parseFloat(ipt_payamt.value) + parseFloat(ipt_earlyretramt.value));
- model.setValue(ipt_B.attribute("ref"), model.getValue("/root/main/list/orchlist/deductamt") );
- model.setValue(ipt_G.attribute("ref"), model.getValue("/root/main/list/orchlist/yearsdeductamt") );
- model.setValue(ipt_H.attribute("ref"), model.getValue("/root/main/list/orchlist/sumretrdeductamt") );
- model.setValue(ipt_I.attribute("ref"), model.getValue("/root/main/list/orchlist/taxstandard") );
- model.setValue(ipt_J.attribute("ref"), model.getValue("/root/main/list/orchlist/avetaxstandard") );
- model.setValue(ipt_O.attribute("ref"), model.getValue("/root/main/list/orchlist/avecalctax") );
- model.setValue(ipt_P.attribute("ref"), model.getValue("/root/main/list/orchlist/calctax") );
- model.setValue(ipt_Q.attribute("ref"), model.getValue("/root/main/list/orchlist/taxdeduct") );
- model.setValue(ipt_R.attribute("ref"), model.getValue("/root/main/list/orchlist/determtax") );
- model.setValue(ipt_S.attribute("ref"), model.getValue("/root/main/list/orchlist/paymenttax") );
- model.setValue(ipt_T.attribute("ref"), model.getValue("/root/main/list/orchlist/incmtax") );
- model.setValue(ipt_U.attribute("ref"), model.getValue("/root/main/list/orchlist/resdntax") );
- model.setValue(ipt_V.attribute("ref"), model.getValue("/root/main/list/orchlist/paytax") );
- model.setValue("/root/hidden/calclist/T", parseInt(model.getValue("/root/hidden/calclist/T") * 0.1) * 10);
- model.setValue("/root/hidden/calclist/U", parseInt(model.getValue("/root/hidden/calclist/U") * 0.1) * 10);
- ipt_B.refresh();
- ipt_G.refresh();
- ipt_H.refresh();
- ipt_I.refresh();
- ipt_J.refresh();
- ipt_O.refresh();
- ipt_P.refresh();
- ipt_Q.refresh();
- ipt_R.refresh();
- ipt_S.refresh();
- ipt_T.refresh();
- ipt_U.refresh();
- ipt_V.refresh();
- }
- model.refresh();
- }
-
-
- //============================================================
- // 퇴직 소득 저장
- //============================================================
- function fSave()
- {
-
- model.copyNode("/root/send/list/orch", "/root/main/list/orch");
- model.copyNode("/root/send/list/orchlist", "/root/main/list/orchlist");
-
- var ret = "";
-
- if(model.getValue("/root/main/list/orch/status") == "d")
- {
- ret = messageBox("삭제하시겠습니까?","Q999");
- }
- else
- {
- if(!fNotNullCheck())
- {
- return false;
- }
-
- ret = messageBox("저장하시겠습니까?","Q999");
- }
-
- if (ret == "6")
- {
- vCustFlag = model.getValue(cmb_custflag.attribute("ref"));
- if(vCustFlag == "1")
- {
- model.setValue("/root/main/list/orchlist/rrgstno", "");
- }
- else if(vCustFlag == "2")
- {
- model.setValue("/root/main/list/orchlist/emplno", "-");
- }
-
- submit("TXRAD00141")
- if (model.getValue("/root/temp/seqno/seqno") != "")
- {
- messageBox("저장이 " ,"I002");
- model.setValue("/root/send/retrparams/instcd", model.getValue("/root/main/list/orch/instcd"));
- model.setValue("/root/send/retrparams/seqno", model.getValue("/root/temp/seqno/seqno"));
- model.setValue("/root/send/retrparams/chrgflag", model.getValue("/root/main/list/orch/chrgflag"));
- model.setValue("/root/send/retrparams/detlseqno", "0001");
- model.refresh();
- fSearch();
- model.setValue("/root/main/list/orch/status", "u");
-
- }
- else
- {
- messageBox("삭제가" ,"I002");
- finsertStat();
- model.refresh();
- }
-
- }
- model.setFocus("ipt_name");
- }
-
- function fDelete()
- {
- if(model.getValue("/root/main/list/orch/status") == "u");
- {
- if (messageBox("해당 증빙을","Q001") == "6")
- {
- model.setValue("/root/main/list/orch/status", "d");
- fSave();
- model.setValue("/root/main/list/orch/status", "i");
- ipt_paydd.disabled = false;
- model.setValue("/root/hidden/calclist/A", "");
- model.setValue("/root/hidden/calclist/B", "");
- model.setValue("/root/hidden/calclist/C", "");
- model.setValue("/root/hidden/calclist/D", "");
- model.setValue("/root/hidden/calclist/E", "");
- model.setValue("/root/hidden/calclist/F", "");
- model.setValue("/root/hidden/calclist/G", "");
- model.setValue("/root/hidden/calclist/H", "");
- model.setValue("/root/hidden/calclist/I", "");
- model.setValue("/root/hidden/calclist/J", "");
- model.setValue("/root/hidden/calclist/K", "");
- model.setValue("/root/hidden/calclist/L", "");
- model.setValue("/root/hidden/calclist/M", "");
- model.setValue("/root/hidden/calclist/N", "");
- model.setValue("/root/hidden/calclist/O", "");
- model.setValue("/root/hidden/calclist/P", "");
- model.setValue("/root/hidden/calclist/Q", "");
- model.setValue("/root/hidden/calclist/R", "");
- model.setValue("/root/hidden/calclist/S", "");
- model.setValue("/root/hidden/calclist/T", "");
- model.setValue("/root/hidden/calclist/U", "");
- model.setValue("/root/hidden/calclist/V", "");
- }
- }
- model.refresh();
- }
-
- //============================================================
- // 과세 내역 계산
- //============================================================
- function fpayCalc()
- {
- if(!(ipt_years.value == "" || ipt_years.value == 0) && ipt_payamt.value != "")
- {
- model.setValue("/root/hidden/calclist/A", parseFloat(ipt_payamt.value) + parseFloat(ipt_earlyretramt.value));
- ipt_A.refresh();
- model.setValue("/root/hidden/calclist/B", parseInt((parseFloat(ipt_A.value) * 0.45)));
- ipt_B.refresh();
-
-
-
- if(ipt_years.value <= 5)
- {
- model.setValue("/root/hidden/calclist/C", 300000 * ipt_years.value);
- model.setValue("/root/hidden/calclist/D", 0);
- model.setValue("/root/hidden/calclist/E", 0);
- model.setValue("/root/hidden/calclist/F", 0);
- model.setValue("/root/hidden/calclist/G", 300000 * ipt_years.value);
- }
- else if(ipt_years.value > 5 && ipt_years.value <= 10)
- {
- model.setValue("/root/hidden/calclist/C", 0);
- model.setValue("/root/hidden/calclist/D", 500000 * (ipt_years.value - 5) + 1500000);
- model.setValue("/root/hidden/calclist/E", 0);
- model.setValue("/root/hidden/calclist/F", 0);
- model.setValue("/root/hidden/calclist/G", 500000 * (ipt_years.value - 5) + 1500000);
- }
- else if(ipt_years.value > 10 && ipt_years.value <= 20)
- {
- model.setValue("/root/hidden/calclist/C", 0);
- model.setValue("/root/hidden/calclist/D", 0);
- model.setValue("/root/hidden/calclist/E", 800000 * (ipt_years.value - 10) + 4000000);
- model.setValue("/root/hidden/calclist/F", 0);
- model.setValue("/root/hidden/calclist/G", 800000 * (ipt_years.value - 10) + 4000000);
- }
- else if(ipt_years.value > 20)
- {
- model.setValue("/root/hidden/calclist/C", 0);
- model.setValue("/root/hidden/calclist/D", 0);
- model.setValue("/root/hidden/calclist/E", 0);
- model.setValue("/root/hidden/calclist/F", 1200000 * (ipt_years.value - 20) + 12000000);
- model.setValue("/root/hidden/calclist/G", 1200000 * (ipt_years.value - 20) + 12000000);
- }
- else
- {
- messageBox("잘못된 값입니다.","I000"); return false;
- }
- ipt_C.refresh();
- ipt_D.refresh();
- ipt_E.refresh();
- ipt_F.refresh();
- ipt_G.refresh();
-
- model.setValue("/root/hidden/calclist/H", parseFloat(ipt_B.value) + parseFloat(ipt_G.value));
- ipt_H.refresh();
- model.setValue("/root/hidden/calclist/I", parseFloat(ipt_A.value) - parseFloat(ipt_H.value));
- ipt_I.refresh();
- if(parseFloat(ipt_I.value) < 0)
- {
- model.setValue(ipt_I.attribute("ref"), 0);
- ipt_I.refresh();
- }
- model.setValue("/root/hidden/calclist/J", parseInt(parseFloat(ipt_I.value)/parseFloat(ipt_years.value)));
- ipt_J.refresh();
-
- var variableA1 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableA1"));
- var variableA2 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableA2"));
- var variableB1 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableB1"));
- var variableB2 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableB2"));
- var variableC1 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableC1"));
- var variableC2 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableC2"));
- var variableD1 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableD1"));
- var variableD2 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableD2"));
-
- var variableE = "";
- if(model.getValue(cmb_taxdeductflag.attribute("ref")) == "Y")
- {
- variableE = "0.3";
- }
- else if(model.getValue(cmb_taxdeductflag.attribute("ref")) == "N")
- {
- variableE = "0.0";
- }
-
- if(ipt_J.value <= 12000000)
- {
- model.setValue("/root/hidden/calclist/K", parseInt(parseFloat(ipt_J.value)*variableA1));
- model.setValue("/root/hidden/calclist/L", 0);
- model.setValue("/root/hidden/calclist/M", 0);
- model.setValue("/root/hidden/calclist/N", 0);
- model.setValue("/root/hidden/calclist/O", parseInt(parseFloat(ipt_J.value)*variableA1) + variableA2); //2009년 1월 1일 변경 (0.08)
- }
- else if(ipt_J.value > 12000000 && ipt_J.value <= 46000000)
- {
- model.setValue("/root/hidden/calclist/K", 0);
- model.setValue("/root/hidden/calclist/L", parseInt(parseFloat(ipt_J.value)*variableB1));
- model.setValue("/root/hidden/calclist/M", 0);
- model.setValue("/root/hidden/calclist/N", 0);
- model.setValue("/root/hidden/calclist/O", parseInt(parseFloat(ipt_J.value)*variableB1) + variableB2); //2009년 1월 1일 변경 (0.17 / 1080000)
- }
- else if(ipt_J.value > 46000000 && ipt_J.value <= 88000000)
- {
- model.setValue("/root/hidden/calclist/K", 0);
- model.setValue("/root/hidden/calclist/L", 0);
- model.setValue("/root/hidden/calclist/M", parseInt(parseFloat(ipt_J.value)*variableC1));
- model.setValue("/root/hidden/calclist/N", 0);
- model.setValue("/root/hidden/calclist/O", parseInt(parseFloat(ipt_J.value)*variableC1) + variableC2); //2009년 1월 1일 변경 (0.26 / 5220000)
- }
- else if(ipt_J.value > 88000000)
- {
- model.setValue("/root/hidden/calclist/K", 0);
- model.setValue("/root/hidden/calclist/L", 0);
- model.setValue("/root/hidden/calclist/M", 0);
- model.setValue("/root/hidden/calclist/N", parseInt(parseFloat(ipt_J.value)*variableD1));
- model.setValue("/root/hidden/calclist/O", parseInt(parseFloat(ipt_J.value)*variableD1) + variableD2); //2009년 1월 1일 변경 (0.35 / 13140000)
- }
- else
- {
- messageBox("잘못된 값입니다.","I000"); return false;
- }
- ipt_K.refresh();
- ipt_L.refresh();
- ipt_M.refresh();
- ipt_N.refresh();
- ipt_O.refresh();
-
- model.setValue("/root/hidden/calclist/P", parseInt(parseFloat(ipt_O.value) * parseFloat(ipt_years.value)));
- ipt_P.refresh();
- model.setValue("/root/hidden/calclist/Q", parseInt(parseFloat(ipt_P.value) * variableE));
- ipt_Q.refresh();
- model.setValue("/root/hidden/calclist/R", parseInt(parseFloat(ipt_P.value) - parseFloat(ipt_Q.value)));
- ipt_R.refresh();
- model.setValue("/root/hidden/calclist/S", 0);
- ipt_S.refresh();
- model.setValue("/root/hidden/calclist/T", parseInt(parseFloat(ipt_R.value) - parseFloat(ipt_S.value)));
- ipt_T.refresh();
- model.setValue("/root/hidden/calclist/U", parseInt(parseInt(ipt_T.value) * 0.1));
- ipt_U.refresh();
- model.setValue("/root/hidden/calclist/V", (parseInt(parseFloat(ipt_T.value) * 0.1) + parseInt(parseFloat(ipt_U.value) * 0.1)) * 10);
- ipt_V.refresh();
- model.setValue("/root/main/list/orchlist/paytotamt", parseInt((parseFloat(ipt_A.value) - parseFloat(ipt_V.value)) * 0.1) * 10);
- ipt_paytotamt.refresh();
-
- model.setValue("/root/main/list/orchlist/deductamt", ipt_B.value );
- model.setValue("/root/main/list/orchlist/yearsdeductamt", ipt_G.value );
- model.setValue("/root/main/list/orchlist/sumretrdeductamt", ipt_H.value );
- model.setValue("/root/main/list/orchlist/taxstandard", ipt_I.value );
- model.setValue("/root/main/list/orchlist/avetaxstandard", ipt_J.value );
- model.setValue("/root/main/list/orchlist/avecalctax", ipt_O.value );
- model.setValue("/root/main/list/orchlist/calctax", ipt_P.value );
- model.setValue("/root/main/list/orchlist/taxdeduct", ipt_Q.value );
- model.setValue("/root/main/list/orchlist/determtax", ipt_R.value );
- model.setValue("/root/main/list/orchlist/paymenttax", ipt_S.value );
- model.setValue("/root/main/list/orchlist/incmtax", ipt_T.value );
- model.setValue("/root/main/list/orchlist/resdntax", ipt_U.value );
- model.setValue("/root/main/list/orchlist/paytax", ipt_V.value );
-
- model.setValue("/root/hidden/calclist/T", parseInt(model.getValue("/root/hidden/calclist/T") * 0.1) * 10);
- ipt_T.refresh();
- model.setValue("/root/hidden/calclist/U", parseInt(model.getValue("/root/hidden/calclist/U") * 0.1) * 10);
- ipt_U.refresh();
- }
- }
-
- //========================================================================================
- //not null check
- //========================================================================================
- function fNotNullCheck() {
- if(model.getValue("/root/hidden/calclist/V").length== 0)
- {
- messageBox("납부세액은" ,"I003");
- model.setFocus("ipt_payamt");
- return false;
- }
-
- if(model.getValue(cmb_custflag.attribute("ref")) == "1" && model.getValue("/root/main/list/orchlist/emplno").length== 0 )
- {
- messageBox("사번은" ,"I003");
- model.setFocus("ipt_emplno");
- return false;
- }
-
- if(model.getValue(cmb_custflag.attribute("ref")) == "2" && model.getValue("/root/main/list/orchlist/rrgstno").length== 0 )
- {
- messageBox("주민등록번호은" ,"I003");
- model.setFocus("ipt_emplno");
- return false;
- }
-
- if(model.getValue("/root/main/list/orchlist/cmt").length== 0 )
- {
- messageBox("비고는" ,"I003");
- model.setFocus("ipt_cmt");
- return false;
- }
- return true;
- }
-
- //========================================================================================
- //not null check
- //========================================================================================
- function fCalMonth()
- {
- var vBelongyearfrom = model.getValue(ipt_todd.attribute("ref")).substr(0,4) + "0101";
- var vBelongyearto = model.getValue(ipt_todd.attribute("ref"));
-
- model.setValue(ipt_belongyearfrom.attribute("ref"), vBelongyearfrom);
- model.setValue(ipt_belongyearto.attribute("ref"), vBelongyearto);
-
- var fromdd = model.getValue("/root/main/list/orchlist/fromdd");
-
- var fryy = parseFloat(fromdd.substr(0,4));
- var frmm = parseFloat(fromdd.substr(4,2));
- var frdd = parseFloat(fromdd.substr(6,2));
-
- var todd = model.getValue("/root/main/list/orchlist/todd");
-
- var toyy = parseFloat(todd.substr(0,4));
- var tomm = parseFloat(todd.substr(4,2)) + 1;
- var todd = parseFloat(todd.substr(6,2));
-
-
- if(frdd > todd)
- {
- tomm --;
- }
-
- if(frmm > tomm)
- {
- toyy --;
- tomm = tomm + 12;
- }
-
- ipt_months.value = (toyy - fryy) * 12 + (tomm - frmm);
-
- ipt_months.refresh();
-
- ipt_months.dispatch("xforms-value-changed");
- }
-
-
-
- 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 fGetFromToDD()
- {
- if(cmb_custflag.value == '1')
- {
- model.setValue("/root/send/data2/emplno", model.getValue(ipt_emplno.attribute("ref")));
-
- submit("TRRAD00142");
-
- if(model.getValue("/root/hidden/emplinfo/emplinfolist/fromdd") != "")
- {
- model.setValue(ipt_fromdd.attribute("ref"), model.getValue("/root/hidden/emplinfo/emplinfolist/fromdd"));
- model.setValue(ipt_todd.attribute("ref"), model.getValue("/root/hidden/emplinfo/emplinfolist/todd"));
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- model.setValue("/root/hidden/emplinfo/emplinfolist/fromdd", "");
- model.setValue("/root/hidden/emplinfo/emplinfolist/todd", "");
-
- ipt_fromdd.dispatch("xforms-value-changed");
- }
- }
- }
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1031" pageheight="684" guideline="2,555;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:1007px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">퇴직 소득 관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:12px; width:1011px; height:633px; ">
- <line id="line7" class="line_2" style="x1:0px; y1:109px; x2:677px; y2:109px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:85px; x2:677px; y2:85px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:36px; x2:1011px; y2:36px; "/>
- <line id="line9" class="line_3" style="x1:0px; y1:580px; x2:1011px; y2:580px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:132px; x2:677px; y2:132px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:9px; x2:1011px; y2:9px; "/>
- <caption id="cap_zip" class="cell_1" style="left:0px; top:206px; width:100px; height:23px; vertical-align:middle; ">우편번호</caption>
- <caption id="cap_addr" class="cell_1" style="left:0px; top:230px; width:100px; height:23px; vertical-align:middle; ">주소</caption>
- <line id="line10" class="line_2" style="x1:0px; y1:61px; x2:677px; y2:61px; "/>
- <input id="ipt_supaddr" ref="/root/main/list/orchlist/addr" class="input_default" disabled="true" style="left:3px; top:254px; width:330px; height:19px; "/>
- <caption id="cap_title" class="cell_1" style="left:0px; top:276px; width:333px; height:23px; font-size:10pt; font-weight:bold; text-align:center; vertical-align:middle; ">징수의무자</caption>
- <button id="btn_userhelp" class="icon_search" navindex="-1" visibility="hidden" style="left:195px; top:91px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //misfOpenPopUpList("49", ipt_payamt, "", "emplno,emplnm");
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
- fGetFromToDD();
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/main/list/orchlist/emplnm" class="input_essential" visibility="hidden" style="left:215px; top:89px; width:118px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_payamt");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- //fValidationCheck("49", "emplno,emplnm", "", "ipt_payamt", "cmb_selectretiree", "selectretiree", "name");
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- fGetFromToDD();
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_emplno" ref="/root/main/list/orchlist/emplno" class="input_essential" visibility="hidden" style="left:105px; top:89px; width:87px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_payamt");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fValidationCheck("49", "emplno,emplnm", "", "ipt_payamt", "cmb_selectretiree", "selectretiree", "code");
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- fGetFromToDD();
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_months" class="cell_1" style="left:0px; top:110px; width:100px; height:23px; vertical-align:middle; ">근속월수</caption>
- <input id="ipt_months" ref="/root/main/list/orchlist/servedmonths" class="input_essential" disabled="true" format="999" style="left:103px; top:111px; width:62px; height:19px; text-align:right; vertical-align:middle; padding-right:10; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/list/orchlist/servedyears", Math.ceil(parseFloat(ipt_months.value)/12));
- ipt_years.refresh();
- // alert(parseFloat(ipt_months.value)/12)
- // alert(Math.ceil(parseFloat(ipt_months.value)/12))
- fpayCalc();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_payamt");
- }
- ]]>
- </script>
- </input>
- <caption id="cap_years" class="cell_1" style="left:167px; top:110px; width:100px; height:23px; vertical-align:middle; ">근속년수</caption>
- <input id="ipt_years" ref="/root/main/list/orchlist/servedyears" class="input_default" disabled="true" editable="false" style="left:270px; top:111px; width:63px; height:19px; "/>
- <caption id="cap_earlyretramt" class="cell_1" style="left:0px; top:158px; width:100px; height:23px; vertical-align:middle; ">명예퇴직일시금</caption>
- <caption id="cap_rrgstno" class="cell_1" style="left:0px; top:182px; width:100px; height:23px; vertical-align:middle; ">주민등록번호</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:156px; x2:677px; y2:156px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:180px; x2:677px; y2:180px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:204px; x2:677px; y2:204px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:228px; x2:677px; y2:228px; "/>
- <line id="line13" class="line_2" style="x1:10px; y1:253px; x2:677px; y2:253px; "/>
- <caption id="ipt_entrregno" ref="/root/main/list/cadlinfo/entrregno" class="cell_3" format="9 9 9 - 9 9 - 9 9 9 9 9" appearance="caption" style="left:103px; top:302px; width:230px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="cap_entrregno" class="cell_1" style="left:0px; top:301px; width:100px; height:23px; vertical-align:middle; ">사업자등록번호</caption>
- <caption id="ipt_custnm" ref="/root/main/list/cadlinfo/custnm" class="cell_3" appearance="caption" style="left:103px; top:327px; width:230px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="cap_custnm" class="cell_1" style="left:0px; top:326px; width:100px; height:23px; vertical-align:middle; ">법인명</caption>
- <caption id="cap_prsdnm" class="cell_1" style="left:0px; top:350px; width:100px; height:23px; vertical-align:middle; ">대표자</caption>
- <caption id="ipt_prsdnm" ref="/root/main/list/cadlinfo/prsdnm" class="cell_3" appearance="caption" style="left:103px; top:351px; width:230px; height:19px; text-align:center; vertical-align:middle; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:278px; x2:677px; y2:278px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:303px; x2:677px; y2:303px; text-align:center; vertical-align:middle; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:328px; x2:677px; y2:328px; "/>
- <caption id="ipt_prrgstno" ref="/root/main/list/cadlinfo/rrgstno" class="cell_3" appearance="caption" style="left:103px; top:376px; width:230px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="cap_prrgstno" class="cell_1" style="left:0px; top:375px; width:100px; height:23px; vertical-align:middle; ">주민등록번호</caption>
- <caption id="cap_paddr" class="cell_1" style="left:0px; top:400px; width:100px; height:23px; vertical-align:middle; ">소재지</caption>
- <caption id="ipt_psupaddr" ref="/root/main/list/cadlinfo/supaddr" class="cell_3" appearance="caption" style="left:5px; top:430px; width:330px; height:19px; text-align:left; vertical-align:middle; padding-left:5; "/>
- <caption id="cap_title_1" class="cell_1" style="left:344px; top:14px; width:328px; height:23px; font-size:10pt; font-weight:bold; text-align:center; vertical-align:middle; ">과 세 내 역</caption>
- <caption id="caption1" class="cell_1" style="left:682px; top:14px; width:328px; height:23px; font-size:10pt; font-weight:bold; text-align:center; vertical-align:middle; ">산 출 산 식</caption>
- <input id="ipt_A" ref="/root/hidden/calclist/A" class="input_default" editable="false" format="(-)#,###.9" style="left:522px; top:39px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <caption id="caption2" class="cell_1" style="left:344px; top:38px; width:176px; height:23px; text-align:center; vertical-align:middle; ">퇴 직 급 여 액</caption>
- <caption id="caption4" class="cell_1" style="left:405px; top:63px; width:115px; height:23px; text-align:center; vertical-align:middle; ">소득공제(A)</caption>
- <caption id="caption11" class="cell_1" style="left:405px; top:181px; width:115px; height:23px; font-size:8pt; text-align:center; vertical-align:middle; ">근속년수별공제계(B)</caption>
- <caption id="caption12" class="cell_1" style="left:405px; top:206px; width:115px; height:23px; text-align:center; vertical-align:middle; ">계(A+B)</caption>
- <caption id="caption13" class="cell_1" style="left:344px; top:231px; width:176px; height:23px; text-align:center; vertical-align:middle; ">과 세 표 준</caption>
- <caption id="caption14" class="cell_1" style="left:344px; top:256px; width:176px; height:23px; text-align:center; vertical-align:middle; ">연평균 과세표준</caption>
- <caption id="caption16" class="cell_1" style="left:405px; top:280px; width:115px; height:23px; text-align:center; vertical-align:middle; ">1천2백만원이하</caption>
- <caption id="caption17" class="cell_1" style="left:405px; top:305px; width:115px; height:23px; text-align:center; vertical-align:middle; ">4천6백만원이하</caption>
- <caption id="caption18" class="cell_1" style="left:405px; top:330px; width:115px; height:23px; text-align:center; vertical-align:middle; ">8천8백만원이하</caption>
- <caption id="caption19" class="cell_1" style="left:405px; top:355px; width:115px; height:23px; text-align:center; vertical-align:middle; ">8천8백만원초과</caption>
- <caption id="caption20" class="cell_1" style="left:405px; top:380px; width:115px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
- <caption id="caption21" class="cell_1" style="left:345px; top:405px; width:176px; height:23px; text-align:center; vertical-align:middle; ">산 출 세 액</caption>
- <caption id="caption22" class="cell_1" style="left:345px; top:430px; width:80px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">세 액 공 제</caption>
- <caption id="caption23" class="cell_1" style="left:345px; top:455px; width:176px; height:23px; text-align:center; vertical-align:middle; ">결 정 세 액</caption>
- <caption id="caption24" class="cell_1" style="left:345px; top:480px; width:176px; height:23px; text-align:center; vertical-align:middle; ">기 납 부 세 액</caption>
- <caption id="caption25" class="cell_1" style="left:345px; top:505px; width:176px; height:23px; text-align:center; vertical-align:middle; ">소 득 세</caption>
- <caption id="caption26" class="cell_1" style="left:345px; top:530px; width:176px; height:23px; text-align:center; vertical-align:middle; ">주 민 세</caption>
- <caption id="caption27" class="cell_1" style="left:345px; top:555px; width:176px; height:23px; text-align:center; vertical-align:middle; ">납 부 세 액</caption>
- <line id="line19" class="line_3" style="x1:677px; y1:61px; x2:1011px; y2:61px; "/>
- <line id="line25" class="line_3" style="x1:677px; y1:205px; x2:1011px; y2:205px; "/>
- <line id="line26" class="line_3" style="x1:677px; y1:229px; x2:1011px; y2:229px; "/>
- <line id="line27" class="line_3" style="x1:677px; y1:253px; x2:1011px; y2:253px; "/>
- <line id="line33" class="line_3" style="x1:677px; y1:403px; x2:1011px; y2:403px; "/>
- <line id="line34" class="line_3" style="x1:677px; y1:428px; x2:1011px; y2:428px; "/>
- <line id="line35" class="line_3" style="x1:677px; y1:453px; x2:1011px; y2:453px; "/>
- <line id="line36" class="line_3" style="x1:677px; y1:478px; x2:1011px; y2:478px; "/>
- <line id="line37" class="line_3" style="x1:677px; y1:503px; x2:1011px; y2:503px; "/>
- <line id="line38" class="line_3" style="x1:677px; y1:528px; x2:1011px; y2:528px; "/>
- <line id="line39" class="line_3" style="x1:677px; y1:553px; x2:1011px; y2:553px; "/>
- <line id="line41" class="line_2" style="x1:0px; y1:353px; x2:677px; y2:353px; "/>
- <line id="line42" class="line_2" style="x1:0px; y1:378px; x2:677px; y2:378px; "/>
- <line id="line43" class="line_2" style="x1:5px; y1:400px; x2:682px; y2:400px; "/>
- <line id="line44" class="line_2" style="x1:0px; y1:428px; x2:677px; y2:428px; "/>
- <line id="line45" class="line_2" style="x1:0px; y1:453px; x2:677px; y2:453px; "/>
- <line id="line46" class="line_2" style="x1:0px; y1:478px; x2:677px; y2:478px; "/>
- <line id="line47" class="line_2" style="x1:0px; y1:503px; x2:677px; y2:503px; "/>
- <line id="line48" class="line_2" style="x1:0px; y1:528px; x2:677px; y2:528px; "/>
- <line id="line49" class="line_2" style="x1:0px; y1:553px; x2:677px; y2:553px; "/>
- <caption id="cap_1" class="cell_3" style="left:676px; top:38px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">퇴직급여(수당)액 과세소득</caption>
- <caption id="caption28" class="cell_3" style="left:676px; top:63px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">2006귀속분부터 퇴직급여액의 45%</caption>
- <caption id="caption45" class="cell_3" style="left:676px; top:181px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">(근속년수별 초과 재직연수 * F열) + E열</caption>
- <caption id="caption46" class="cell_3" style="left:677px; top:206px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">소득공제(A) + 근속연수공제(B)</caption>
- <caption id="caption47" class="cell_3" style="left:676px; top:231px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">과세소득액 - 퇴직소득공제액</caption>
- <caption id="caption48" class="cell_3" style="left:676px; top:255px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">과세 표준 / 세법상 근속연수</caption>
- <line id="line29" class="line_3" style="x1:770px; y1:82px; x2:770px; y2:178px; "/>
- <caption id="caption49" class="cell_3" style="left:680px; top:132px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-left:10; padding-right:10; ">10년 ~ 20년</caption>
- <line id="line30" class="line_3" style="x1:677px; y1:82px; x2:1011px; y2:82px; "/>
- <caption id="caption53" class="cell_3" style="left:680px; top:156px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-left:10; padding-right:10; ">20년 초과</caption>
- <caption id="caption55" class="cell_3" style="left:680px; top:132px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-left:10; padding-right:10; ">10년 ~ 20년</caption>
- <line id="line31" class="line_3" style="x1:677px; y1:106px; x2:1011px; y2:106px; "/>
- <caption id="caption56" class="cell_3" style="left:680px; top:108px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-left:15; padding-right:10; ">5년 ~ 10년</caption>
- <caption id="caption57" class="cell_3" style="left:680px; top:156px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-left:10; padding-right:10; ">20년 초과</caption>
- <caption id="caption58" class="cell_3" style="left:774px; top:82px; width:90px; height:23px; vertical-align:middle; padding-left:10; "/>
- <line id="line32" class="line_3" style="x1:677px; y1:130px; x2:1011px; y2:130px; "/>
- <caption id="caption59" class="cell_3" format="(-)#,###" style="left:774px; top:156px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">12000000</caption>
- <caption id="caption60" class="cell_3" format="(-)#,###" style="left:868px; top:82px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">300000</caption>
- <line id="line51" class="line_3" style="x1:677px; y1:154px; x2:1011px; y2:154px; "/>
- <caption id="caption61" class="cell_3" format="(-)#,###" style="left:965px; top:83px; width:43px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">0</caption>
- <caption id="caption62" class="cell_3" style="left:680px; top:82px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-left:15; padding-right:10; ">5년 이하</caption>
- <caption id="caption63" class="cell_3" format="(-)#,###" style="left:868px; top:156px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">1200000</caption>
- <line id="line52" class="line_3" style="x1:677px; y1:178px; x2:1011px; y2:178px; "/>
- <caption id="caption64" class="cell_3" format="(-)#,###" style="left:965px; top:156px; width:43px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">20</caption>
- <caption id="caption65" class="cell_3" format="(-)#,###" style="left:774px; top:108px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">1500000</caption>
- <caption id="caption66" class="cell_3" format="(-)#,###" style="left:868px; top:108px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">500000</caption>
- <caption id="caption67" class="cell_3" format="(-)#,###" style="left:965px; top:108px; width:43px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">5</caption>
- <line id="line53" class="line_3" style="x1:965px; y1:82px; x2:965px; y2:178px; "/>
- <caption id="caption68" class="cell_3" style="left:680px; top:108px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-left:15; padding-right:10; ">5년 ~ 10년</caption>
- <caption id="caption69" class="cell_3" format="(-)#,###" style="left:774px; top:132px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">4000000</caption>
- <caption id="caption70" class="cell_3" format="(-)#,###" style="left:868px; top:132px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">800000</caption>
- <caption id="caption71" class="cell_3" format="(-)#,###" style="left:965px; top:132px; width:43px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">10</caption>
- <caption id="caption72" class="cell_3" style="left:680px; top:82px; width:90px; height:23px; text-align:right; vertical-align:middle; padding-left:15; padding-right:10; ">5년 이하</caption>
- <line id="line54" class="line_3" style="x1:864px; y1:82px; x2:864px; y2:178px; "/>
- <line id="line40" class="line_3" style="x1:795px; y1:279px; x2:795px; y2:375px; "/>
- <line id="line20" class="line_3" style="x1:677px; y1:279px; x2:1011px; y2:279px; "/>
- <line id="line21" class="line_3" style="x1:677px; y1:303px; x2:1011px; y2:303px; "/>
- <caption id="caption40" class="cell_3" style="left:680px; top:329px; width:115px; height:23px; text-align:center; vertical-align:middle; padding-left:10; padding-right:10; ">8천8백만원이하</caption>
- <line id="line22" class="line_3" style="x1:677px; y1:328px; x2:1011px; y2:328px; "/>
- <caption id="cap_variableA1" class="cell_3" style="left:795px; top:279px; width:69px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">6%</caption>
- <caption id="caption41" class="cell_3" style="left:680px; top:353px; width:115px; height:23px; text-align:center; vertical-align:middle; padding-left:10; padding-right:10; ">8천8백만원초과</caption>
- <line id="line23" class="line_3" style="x1:677px; y1:353px; x2:1011px; y2:353px; "/>
- <caption id="cap_variableA2" class="cell_3" format="(-)#,###" style="left:868px; top:279px; width:142px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">0</caption>
- <caption id="cap_variableD1" class="cell_3" style="left:795px; top:353px; width:69px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">35%</caption>
- <line id="line24" class="line_3" style="x1:677px; y1:375px; x2:1011px; y2:375px; "/>
- <caption id="cap_variableD2" class="cell_3" format="(-)#,###" style="left:868px; top:353px; width:142px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">14140000</caption>
- <caption id="cap_variableB1" class="cell_3" style="left:795px; top:305px; width:69px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">16%</caption>
- <caption id="cap_variableB2" class="cell_3" format="(-)#,###" style="left:868px; top:305px; width:142px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">1200000</caption>
- <caption id="caption36" class="cell_3" style="left:680px; top:305px; width:115px; height:23px; text-align:center; vertical-align:middle; padding-left:15; padding-right:10; ">4천6백만원이하</caption>
- <caption id="cap_variableC1" class="cell_3" style="left:795px; top:329px; width:69px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">25%</caption>
- <caption id="cap_variableC2" class="cell_3" format="(-)#,###" style="left:868px; top:329px; width:142px; height:23px; text-align:right; vertical-align:middle; padding-right:10; ">5340000</caption>
- <caption id="caption29" class="cell_3" style="left:680px; top:279px; width:115px; height:23px; text-align:center; vertical-align:middle; padding-left:15; padding-right:10; ">1천2백만원이하</caption>
- <line id="line50" class="line_3" style="x1:864px; y1:279px; x2:864px; y2:375px; "/>
- <caption id="caption32" class="cell_3" style="left:676px; top:380px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">연평균과세표준액 기준 세율 적용 + 누진세</caption>
- <caption id="caption35" class="cell_3" style="left:676px; top:405px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">연평균산출세액 * 세법상 근속년수(소수점절사)</caption>
- <caption id="caption39" class="cell_3" style="left:676px; top:430px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">세액(외국납부)공제</caption>
- <caption id="caption44" class="cell_3" style="left:676px; top:455px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">산출세액-세액공제</caption>
- <caption id="caption50" class="cell_3" style="left:676px; top:505px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">결정세액 - 기납부세액(원단위 절사)</caption>
- <caption id="caption51" class="cell_3" style="left:676px; top:530px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">소득세액 * 10%</caption>
- <caption id="caption52" class="cell_3" style="left:676px; top:555px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">소득세 + 주민세</caption>
- <line id="line17" class="line_1" style="x1:336px; y1:10px; x2:336px; y2:580px; "/>
- <line id="line18" class="line_1" style="x1:675px; y1:10px; x2:675px; y2:580px; "/>
- <caption id="caption3" class="cell_1" style="left:344px; top:63px; width:59px; height:167px; text-align:center; vertical-align:middle; ">
- <![CDATA[퇴
- 직
- 소
- 득
- 공
- 제]]>
- </caption>
- <caption id="caption5" class="cell_1" style="left:405px; top:87px; width:115px; height:93px; text-align:center; vertical-align:middle; ">근속년수별공제</caption>
- <caption id="caption15" class="cell_1" style="left:344px; top:280px; width:59px; height:123px; text-align:center; vertical-align:middle; ">
- <![CDATA[연평균
- 산출 세액]]>
- </caption>
- <input id="ipt_B" ref="/root/hidden/calclist/B" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:64px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_C" ref="/root/hidden/calclist/C" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:88px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_D" ref="/root/hidden/calclist/D" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:112px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_E" ref="/root/hidden/calclist/E" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:136px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_F" ref="/root/hidden/calclist/F" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:160px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_G" ref="/root/hidden/calclist/G" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:185px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_H" ref="/root/hidden/calclist/H" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:207px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_I" ref="/root/hidden/calclist/I" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:232px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_J" ref="/root/hidden/calclist/J" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:256px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_K" ref="/root/hidden/calclist/K" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:281px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_L" ref="/root/hidden/calclist/L" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:306px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_M" ref="/root/hidden/calclist/M" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:331px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_N" ref="/root/hidden/calclist/N" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:356px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_O" ref="/root/hidden/calclist/O" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:381px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_P" ref="/root/hidden/calclist/P" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:406px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_Q" ref="/root/hidden/calclist/Q" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:431px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_R" ref="/root/hidden/calclist/R" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:456px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_S" ref="/root/hidden/calclist/S" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:481px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_T" ref="/root/hidden/calclist/T" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:505px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_U" ref="/root/hidden/calclist/U" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:531px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_V" ref="/root/hidden/calclist/V" class="input_default" editable="false" format="(-)#,###" style="left:522px; top:556px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <caption id="ipt_pinfaddr" ref="/root/main/list/cadlinfo/infaddr" class="cell_3" appearance="caption" style="left:5px; top:455px; width:330px; height:19px; text-align:left; vertical-align:middle; padding-left:5; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:39px; width:333px; height:23px; font-size:10pt; font-weight:bold; text-align:center; vertical-align:middle; ">소 득 자</caption>
- <input id="ipt_todd" ref="/root/main/list/orchlist/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:235px; top:65px; width:97px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCalMonth();
-
-
-
-
- ]]>
- </script>
- </input>
- <caption id="caption9" class="cell_1" style="left:4px; top:505px; width:176px; height:23px; text-align:center; vertical-align:middle; ">소 득 세 (절사전)</caption>
- <caption id="caption10" class="cell_1" style="left:4px; top:530px; width:176px; height:23px; text-align:center; vertical-align:middle; ">주 민 세 (절사전)</caption>
- <input id="input1" ref="/root/main/list/orchlist/incmtax" class="input_default" editable="false" format="(-)#,###" style="left:181px; top:506px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <input id="input3" ref="/root/main/list/orchlist/resdntax" class="input_default" editable="false" format="(-)#,###" style="left:181px; top:531px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <caption id="caption54" class="cell_1" style="left:345px; top:583px; width:176px; height:23px; text-align:center; vertical-align:middle; ">비 고</caption>
- <input id="ipt_cmt" ref="/root/main/list/orchlist/cmt" class="input_default" style="left:522px; top:585px; width:486px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/list/orchlist/fromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:103px; top:65px; width:97px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fCalMonth();
-
- ]]>
- </script>
- </input>
- <caption id="caption73" class="cell_1" style="left:0px; top:63px; width:100px; height:23px; vertical-align:middle; ">입사일/퇴사일</caption>
- <caption id="caption8" class="cell_1" style="left:4px; top:555px; width:176px; height:23px; text-align:center; vertical-align:middle; ">지 급 액</caption>
- <input id="ipt_paytotamt" ref="/root/main/list/orchlist/paytotamt" class="input_default" editable="false" format="(-)#,###" style="left:181px; top:556px; width:150px; height:19px; text-align:right; padding-right:10; "/>
- <caption id="caption74" style="left:212px; top:65px; width:20px; height:20px; ">~</caption>
- <caption id="cap_paydd" class="cell_1" style="left:0px; top:15px; width:100px; height:23px; vertical-align:middle; "/>
- <input id="ipt_paydd" ref="/root/main/list/orch/paydd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:103px; top:17px; width:97px; height:19px; "/>
- <input id="ipt_rrgstno1" ref="/root/main/list/orchlist/rrgstno" class="input_default" disabled="true" format="999999-9999999" style="left:103px; top:183px; width:230px; height:19px; text-align:center; vertical-align:middle; "/>
- <input id="ipt_earlyretramt" ref="/root/main/list/orchlist/earlyretramt" class="input_essential" format="#,###" style="left:103px; top:159px; width:173px; height:19px; text-align:right; vertical-align:middle; padding-right:10; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/hidden/calclist/A", ipt_payamt.value);
-
- if(model.getValue(ipt_payamt.attribute("ref")) == "")
- {
- model.setValue(ipt_payamt.attribute("ref"), '0');
- ipt_payamt.refresh();
- }
-
- fpayCalc();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setFocus("btn_save");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_zipcd" ref="/root/main/list/orchlist/zipcd" class="input_default" disabled="true" format="999-999" style="left:103px; top:207px; width:230px; height:19px; text-align:center; vertical-align:middle; "/>
- <button id="btn_grddel" class="btn2_letter3" disabled="false" navindex="-1" visibility="visible" style="left:279px; top:146px; width:53px; height:19px; ">
- <caption>재계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fpayCalc();
- ]]>
- </script>
- </button>
- <select1 id="cmb_custflag" ref="/root/hidden/condition/custflag" class="combo_essential" navindex="-1" appearance="minimal" style="left:0px; top:89px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>교직원</label>
- <value>1</value>
- </item>
- <item>
- <label>소득자</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // model.setValue("/root/main/list/orchlist/emplno", "");
- // model.setValue("/root/main/list/orchlist/rrgstno", "");
- // model.setValue("/root/main/list/orchlist/name", "");
- // ipt_name.refresh();
-
- var vCustFlag = model.getValue("/root/hidden/condition/custflag");
-
- if(vCustFlag == "1")
- {
- ipt_emplno.visible = true;
- ipt_emplnm.visible = true;
- btn_userhelp.visible = true;
- btn_icpnhelp.visible = false;
- ipt_rrgstno.visible = false;
- ipt_name.visible = false;
-
- }
- else if(vCustFlag == "2")
- {
- ipt_emplno.visible = false;
- ipt_emplnm.visible = false;
- btn_userhelp.visible = false;
- btn_icpnhelp.visible = true;
- ipt_rrgstno.visible = true;
- ipt_name.visible = true;
-
- }
-
-
-
-
- // ipt_emplno.refresh();
- // ipt_rrgstno.refresh();
- // ipt_emplnm.refresh();
-
- ]]>
- </script>
- </select1>
- <input id="ipt_rrgstno" ref="/root/main/list/orchlist/rrgstno" class="input_essential" navindex="3" visibility="hidden" style="left:105px; top:89px; width:87px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_payamt");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fValidationCheck("31", "rrgstno,name", "", "ipt_payamt", "", "", "code");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_icpnhelp" class="icon_search" navindex="-1" visibility="hidden" style="left:195px; top:90px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("31", ipt_payamt, "", "rrgstno,name");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_name" ref="/root/main/list/orchlist/name" class="input_essential" visibility="hidden" style="left:215px; top:89px; width:118px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_payamt");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- fValidationCheck("31", "rrgstno,name", "", "ipt_payamt", "", "","name");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_payamt" class="cell_1" style="left:0px; top:134px; width:100px; height:23px; vertical-align:middle; ">급여총계</caption>
- <input id="ipt_payamt" ref="/root/main/list/orchlist/retireamt" class="input_essential" navindex="4" format="#,###" style="left:103px; top:135px; width:173px; height:19px; text-align:right; vertical-align:middle; padding-right:10; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/hidden/calclist/A", ipt_payamt.value);
-
- if(model.getValue(ipt_earlyretramt.attribute("ref")) == "")
- {
- model.makeValue(ipt_earlyretramt.attribute("ref"), '0');
- ipt_earlyretramt.refresh();
- }
-
- fpayCalc();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setFocus("btn_save");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_calcyear" ref="/root/hidden/condition/calcyear" class="combo_essential" disabled="false" navindex="-1" appearance="minimal" style="left:230px; top:15px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>2010년</label>
- <value>2010</value>
- </item>
- <item>
- <label>2009년</label>
- <value>2009</value>
- </item>
- <item>
- <label>2008년</label>
- <value>2008</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var vCalcyear = model.getValue(cmb_calcyear.attribute("ref"));
-
- if(vCalcyear == "2010")
- {
- model.setValue("/root/hidden/condition/calcyearvariable/variableA1", "0.06");
- model.setValue("/root/hidden/condition/calcyearvariable/variableA2", "0");
- model.setValue("/root/hidden/condition/calcyearvariable/variableB1", "0.15");
- model.setValue("/root/hidden/condition/calcyearvariable/variableB2", "1080000");
- model.setValue("/root/hidden/condition/calcyearvariable/variableC1", "0.24");
- model.setValue("/root/hidden/condition/calcyearvariable/variableC2", "5220000");
- model.setValue("/root/hidden/condition/calcyearvariable/variableD1", "0.35");
- model.setValue("/root/hidden/condition/calcyearvariable/variableD2", "14900000");
-
- cap_variableA1.value = "6%";
- cap_variableA2.value = "0";
- cap_variableB1.value = "15%";
- cap_variableB2.value = "1080000";
- cap_variableC1.value = "24%";
- cap_variableC2.value = "5220000";
- cap_variableD1.value = "35%";
- cap_variableD2.value = "14900000";
- }
- else if(vCalcyear == "2009")
- {
- model.setValue("/root/hidden/condition/calcyearvariable/variableA1", "0.06");
- model.setValue("/root/hidden/condition/calcyearvariable/variableA2", "0");
- model.setValue("/root/hidden/condition/calcyearvariable/variableB1", "0.16");
- model.setValue("/root/hidden/condition/calcyearvariable/variableB2", "1200000");
- model.setValue("/root/hidden/condition/calcyearvariable/variableC1", "0.25");
- model.setValue("/root/hidden/condition/calcyearvariable/variableC2", "5340000");
- model.setValue("/root/hidden/condition/calcyearvariable/variableD1", "0.35");
- model.setValue("/root/hidden/condition/calcyearvariable/variableD2", "14140000");
-
- cap_variableA1.value = "6%";
- cap_variableA2.value = "0";
- cap_variableB1.value = "16%";
- cap_variableB2.value = "1200000";
- cap_variableC1.value = "25%";
- cap_variableC2.value = "5340000";
- cap_variableD1.value = "35%";
- cap_variableD2.value = "14140000";
- }
- else if(vCalcyear == "2008")
- {
- model.setValue("/root/hidden/condition/calcyearvariable/variableA1", "0.08");
- model.setValue("/root/hidden/condition/calcyearvariable/variableA2", "0");
- model.setValue("/root/hidden/condition/calcyearvariable/variableB1", "0.17");
- model.setValue("/root/hidden/condition/calcyearvariable/variableB2", "1080000");
- model.setValue("/root/hidden/condition/calcyearvariable/variableC1", "0.26");
- model.setValue("/root/hidden/condition/calcyearvariable/variableC2", "5220000");
- model.setValue("/root/hidden/condition/calcyearvariable/variableD1", "0.35");
- model.setValue("/root/hidden/condition/calcyearvariable/variableD2", "13140000");
-
- cap_variableA1.value = "8%";
- cap_variableA2.value = "0";
- cap_variableB1.value = "17%";
- cap_variableB2.value = "1080000";
- cap_variableC1.value = "26%";
- cap_variableC2.value = "5220000";
- cap_variableD1.value = "35%";
- cap_variableD2.value = "13140000";
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" navindex="5" style="left:953px; top:14px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_selectretiree" ref="/root/hidden/selectretiree" class="combo_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:205px; top:15px; width:20px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_belongyear" class="cell_1" style="left:345px; top:608px; width:176px; height:23px; text-align:center; vertical-align:middle; ">귀 속 년 도</caption>
- <caption id="caption31" style="left:632px; top:610px; width:20px; height:20px; ">~</caption>
- <input id="ipt_belongyearto" ref="/root/main/list/orchlist/belongyearto" class="input_s_essential" disabled="true" navindex="2" inputtype="date" style="left:655px; top:610px; width:97px; height:19px; "/>
- <input id="ipt_belongyearfrom" ref="/root/main/list/orchlist/belongyearfrom" class="input_s_essential" disabled="true" navindex="1" inputtype="date" style="left:523px; top:610px; width:97px; height:19px; "/>
- <select id="chk_belongyear" ref="/root/init/belongyear" overflow="visible" appearance="full" style="left:760px; top:610px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>수정</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(chk_belongyear.attribute("ref")) == "Y")
- {
- ipt_belongyearfrom.disabled = false;
- ipt_belongyearto.disabled = false;
- }
- else
- {
- ipt_belongyearfrom.disabled = true;
- ipt_belongyearto.disabled = true;
- }
- ]]>
- </script>
- </select>
- <select1 id="cmb_taxdeductflag" ref="/root/hidden/condition/taxdeductflag" class="combo_essential" navindex="-1" appearance="minimal" style="left:428px; top:432px; width:92px; height:19px; ">
- <choices>
- <item>
- <label>미적용[0%]</label>
- <value>N</value>
- </item>
- <item>
- <label>적용[30%]</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // model.setValue("/root/main/list/orchlist/emplno", "");
- // model.setValue("/root/main/list/orchlist/rrgstno", "");
- // model.setValue("/root/main/list/orchlist/name", "");
- // ipt_name.refresh();
-
- var vCustFlag = model.getValue("/root/hidden/condition/custflag");
-
- if(vCustFlag == "1")
- {
- ipt_emplno.visible = true;
- ipt_emplnm.visible = true;
- btn_userhelp.visible = true;
- btn_icpnhelp.visible = false;
- ipt_rrgstno.visible = false;
- ipt_name.visible = false;
-
- }
- else if(vCustFlag == "2")
- {
- ipt_emplno.visible = false;
- ipt_emplnm.visible = false;
- btn_userhelp.visible = false;
- btn_icpnhelp.visible = true;
- ipt_rrgstno.visible = true;
- ipt_name.visible = true;
-
- }
-
-
-
-
- // ipt_emplno.refresh();
- // ipt_rrgstno.refresh();
- // ipt_emplnm.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_retrflag" ref="/root/main/list/orchlist/retrflag" class="combo_essential" visibility="visible" appearance="minimal" style="left:108px; top:482px; width:223px; height:19px; text-align:right; padding-right:30; ">
- <choices>
- <item>
- <label>정년퇴직</label>
- <value>1</value>
- </item>
- <item>
- <label>정리해고</label>
- <value>2</value>
- </item>
- <item>
- <label>자발적퇴직</label>
- <value>3</value>
- </item>
- <item>
- <label>임원퇴직</label>
- <value>4</value>
- </item>
- <item>
- <label>중간정산</label>
- <value>5</value>
- </item>
- <item>
- <label>기타</label>
- <value>6</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_retrflag" class="cell_1" style="left:4px; top:480px; width:100px; height:23px; vertical-align:middle; ">퇴직구분</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:647px; width:1011px; height:27px; ">
- <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:1011px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:817px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // alert(model.getValue("/root/main/list/orch/unsldd"));
- // alert(model.getValue("/root/main/list/orch/chrgflag"));
- // alert(model.getValue("/root/main/list/orchlist/chrgflag"));
- if(model.getValue("/root/main/list/orch/unslno") == "")
- {
- if(model.getValue("/root/main/list/orch/paydd") == "")
- {
- messageBox("지급일은 필수입니다.", "I000");
- return false;
- }
-
- if(!isValidDateTime(model.getValue("/root/main/list/orch/paydd"), "YYYYMMDD"))
- {
- messageBox("지급일이 잘못되었습니다.", "I000");
- return false;
- }
- model.setValue("/root/main/list/orch/unsldd", model.getValue("/root/main/list/orch/paydd"));
- }
-
- if(!isValidDateTime(model.getValue("/root/main/list/orchlist/fromdd"), "YYYYMMDD"))
- {
- messageBox("입사일이 잘못되었습니다.", "I000");
- return false;
- }
- if(!isValidDateTime(model.getValue("/root/main/list/orchlist/todd"), "YYYYMMDD"))
- {
- messageBox("퇴사일이 잘못되었습니다.", "I000");
- return false;
- }
-
- fSave();
-
- var receiveref = model.getValue("/root/target/receiveref");
- if(receiveref != "")
- {
- if (checkOpener())
- {
- opener.model.makeValue(receiveref + "/seqno", model.getValue("/root/main/list/orch/seqno"));
- opener.model.makeValue(receiveref + "/amt", model.getValue("/root/main/list/orchlist/retireamt"));
- opener.model.makeValue(receiveref + "/etcnotefact", model.getValue("/root/main/list/orchlist/cmt"));
- opener.model.makeValue(receiveref + "/incmtax", model.getValue("/root/hidden/calclist/T"));
- opener.model.makeValue(receiveref + "/resdntax", model.getValue("/root/hidden/calclist/U"));
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
- }
-
- model.setFocus("btn_close");
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- fSave();
- model.setFocus("btn_close");
- }
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" navindex="-1" style="left:875px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelete();
-
- var receiveref = model.getValue("/root/target/receiveref");
- if(receiveref != "")
- {
- if (checkOpener())
- {
- opener.model.makeValue(receiveref + "/seqno", model.getValue("/root/main/list/orch/seqno"));
- opener.model.makeValue(receiveref + "/amt", model.getValue("/root/main/list/orchlist/retireamt"));
- opener.model.makeValue(receiveref + "/etcnotefact", model.getValue("/root/main/list/orchlist/cmt"));
- opener.model.makeValue(receiveref + "/incmtax", model.getValue("/root/hidden/calclist/T"));
- opener.model.makeValue(receiveref + "/resdntax", model.getValue("/root/hidden/calclist/U"));
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
- }
-
-
-
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" navindex="-1" style="left:933px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var receiveref = model.getValue("/root/target/receiveref");
- if(receiveref != "")
- {
- if (checkOpener())
- {
- opener.model.makeValue(receiveref + "/seqno", model.getValue("/root/main/list/orch/seqno"));
- opener.model.makeValue(receiveref + "/amt", model.getValue("/root/main/list/orchlist/retireamt"));
- opener.model.makeValue(receiveref + "/etcnotefact", model.getValue("/root/main/list/orchlist/cmt"));
- opener.model.makeValue(receiveref + "/incmtax", model.getValue("/root/hidden/calclist/T"));
- opener.model.makeValue(receiveref + "/resdntax", model.getValue("/root/hidden/calclist/U"));
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
- }
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|