SPRAD00140_퇴직소득관리.xrw 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>퇴직소득관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <orch>
  12. <instcd/>
  13. <seqno/>
  14. <chrgflag/>
  15. <unsldd/>
  16. <unslno/>
  17. <undeciseqno/>
  18. <paydd/>
  19. <status/>
  20. </orch>
  21. <orchlist>
  22. <instcd/>
  23. <seqno/>
  24. <detlseqno/>
  25. <chrgflag/>
  26. <fromdd/>
  27. <todd/>
  28. <emplno/>
  29. <emplnm/>
  30. <rrgstno/>
  31. <name/>
  32. <servedmonths/>
  33. <servedyears/>
  34. <retireamt/>
  35. <earlyretramt/>
  36. <deductamt/>
  37. <yearsdeductamt/>
  38. <sumretrdeductamt/>
  39. <taxstandard/>
  40. <avetaxstandard/>
  41. <avecalctax/>
  42. <calctax/>
  43. <taxdeduct/>
  44. <determtax/>
  45. <paymenttax/>
  46. <incmtax/>
  47. <resdntax/>
  48. <paytax/>
  49. <cmt/>
  50. <zipcd/>
  51. <addr/>
  52. <paytotamt/>
  53. <belongyearfrom/>
  54. <belongyearto/>
  55. <retrflag>6</retrflag>
  56. </orchlist>
  57. <cadlinfo>
  58. <entrregno/>
  59. <custnm/>
  60. <prsdnm/>
  61. <rrgstno/>
  62. <supaddr/>
  63. <infaddr/>
  64. </cadlinfo>
  65. <cadllist>
  66. <cadl/>
  67. </cadllist>
  68. </list>
  69. </main>
  70. <send>
  71. <retrparams>
  72. <instcd/>
  73. <seqno/>
  74. <chrgflag/>
  75. <detlseqno/>
  76. </retrparams>
  77. <list>
  78. <orchlist/>
  79. <orch/>
  80. </list>
  81. <data1>
  82. <instcd/>
  83. <rrgstno/>
  84. <name/>
  85. <retrflag/>
  86. </data1>
  87. <data2>
  88. <emplno/>
  89. </data2>
  90. <cadl>
  91. <cadl/>
  92. <fromdd/>
  93. </cadl>
  94. <condition>
  95. <status/>
  96. </condition>
  97. </send>
  98. <hidden>
  99. <flag>
  100. <orchreturn>
  101. <amt/>
  102. <etcnotefact/>
  103. <incmtax/>
  104. <resdntax/>
  105. </orchreturn>
  106. </flag>
  107. <calclist>
  108. <A/>
  109. <B/>
  110. <C/>
  111. <D/>
  112. <E/>
  113. <F/>
  114. <G/>
  115. <H/>
  116. <I/>
  117. <J/>
  118. <K/>
  119. <L/>
  120. <M/>
  121. <N/>
  122. <O/>
  123. <P/>
  124. <Q/>
  125. <R/>
  126. <S/>
  127. <T/>
  128. <U/>
  129. <V/>
  130. </calclist>
  131. <condition>
  132. <custflag>N</custflag>
  133. <calcyearvariable>
  134. <variableA1/>
  135. <variableA2/>
  136. <variableB1/>
  137. <variableB2/>
  138. <variableC1/>
  139. <variableC2/>
  140. <variableD1/>
  141. <variableD2/>
  142. </calcyearvariable>
  143. <calcyear>2010</calcyear>
  144. <taxdeductflag>N</taxdeductflag>
  145. </condition>
  146. <selectretiree>Y</selectretiree>
  147. <emplinfo>
  148. <emplinfolist>
  149. <fromdd/>
  150. <todd/>
  151. </emplinfolist>
  152. </emplinfo>
  153. </hidden>
  154. <init>
  155. <R0278list>
  156. <R0278>
  157. <cdnm/>
  158. <cdid/>
  159. </R0278>
  160. </R0278list>
  161. <R0279list>
  162. <R0279>
  163. <cdnm/>
  164. <cdid/>
  165. </R0279>
  166. </R0279list>
  167. <belongyear/>
  168. </init>
  169. <temp>
  170. <seqno>
  171. <seqno/>
  172. </seqno>
  173. </temp>
  174. <target/>
  175. </root>
  176. </instance>
  177. <bind id="bind_totamt" ref="/root/hidden/totamt" calculate="(/root/main/orch_one/paytotamt) - (/root/main/orch_one/incmtax) -(/root/main/orch_one/resdntax)"/>
  178. <bind id="bind_amt" ref="/root/hidden/orchreturn/amt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
  179. <bind id="bind_incmtax" ref="/root/hidden/orchreturn/incmtax" calculate="sum(/root/hidden/calclist/T)"/>
  180. <bind id="bind_resdntax" ref="/root/hidden/orchreturn/resdntax" calculate="sum(/root/hidden/calclist/U)"/>
  181. <submission id="TRRAC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cadl" resultref="/root/main/list/cadlinfo"/>
  182. <submission id="TRRAD00141" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  183. <submission id="TXRAD00141" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list" resultref="/root/temp"/>
  184. <submission id="TRRAD00142" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/emplinfo"/>
  185. </model>
  186. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  187. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  188. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  189. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  191. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  192. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  193. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  194. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  195. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  196. <script type="javascript" ev:event="xforms-ready">
  197. <![CDATA[
  198. fInitialize();
  199. ]]>
  200. </script>
  201. <script type="javascript">
  202. <![CDATA[
  203. var instcd = model.getValue("/root/target/slipinfo/instcd");
  204. var unsldd = model.getValue("/root/target/slipinfo/unsldd");
  205. var unslno = model.getValue("/root/target/slipinfo/unslno");
  206. var unslseqno = model.getValue("/root/target/slipinfo/unslseqno");
  207. var seqno = model.getValue("/root/target/slipinfo/seqno");
  208. var profflag = model.getValue("/root/target/slipinfo/profflag");
  209. var emplno = model.getValue("/root/target/slipinfo/emplno");
  210. var rrgstno = model.getValue("/root/target/slipinfo/rrgstno");
  211. var amt = model.getValue("/root/target/slipinfo/amt");
  212. var cmt = model.getValue("/root/target/slipinfo/cmt");
  213. if(instcd == "") instcd = getUserInfo("dutplceinstcd");
  214. if(profflag == "") profflag = "9";
  215. function fInitialize()
  216. {
  217. var sToday = getCurrentDate().toString();
  218. model.setValue("/root/main/list/orchlist/fromdd", sToday);
  219. model.setValue("/root/main/list/orchlist/todd", sToday);
  220. model.setValue("/root/send/cadl/fromdd", model.getValue("/root/main/list/orchlist/todd"));
  221. radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/send/cadl/fromdd"), "", "", "", "", "/root/send/cadl/cadl");
  222. //model.setValue(cmb_custflag.attribute("ref"), "1");
  223. submit("TRRAC00202");
  224. if (model.getValue("/root/target/slipinfo/seqno") != "")
  225. {
  226. model.setValue("/root/send/retrparams/instcd", instcd);
  227. model.setValue("/root/send/retrparams/seqno", seqno);
  228. model.setValue("/root/send/retrparams/chrgflag", profflag);
  229. model.setValue("/root/send/retrparams/detlseqno", "0001");
  230. ipt_paydd.disabled = true;
  231. model.refresh();
  232. fSearch();
  233. model.refresh();
  234. }
  235. else
  236. {
  237. finsertStat();
  238. if(emplno != "")
  239. {
  240. model.setValue("/root/main/list/orchlist/emplno", emplno);
  241. ipt_emplno.refresh();
  242. ipt_emplno.dispatch("xforms-value-changed");
  243. }
  244. else if(rrgstno != "")
  245. {
  246. model.setValue("/root/main/list/orchlist/rrgstno", rrgstno);
  247. ipt_rrgstno.refresh();
  248. ipt_rrgstno.dispatch("xforms-value-changed");
  249. }
  250. else if(amt != "")
  251. {
  252. model.setValue("/root/main/list/orchlist/retireamt", amt);
  253. ipt_payamt.refresh();
  254. }
  255. model.makeValue("/root/main/list/orchlist/cmt", cmt);
  256. ipt_emplno.refresh();
  257. ipt_emplno.dispatch("xforms-value-changed");
  258. }
  259. model.refresh();
  260. if (model.getValue("/root/target/slipinfo/readonly") == "Y")
  261. {
  262. btn_save.disabled = true;
  263. btn_delete.disabled = true;
  264. }
  265. if(model.getValue("/root/main/list/orch/unslno") == "")
  266. {
  267. model.setValue("/root/main/list/orch/paydd", model.getValue("/root/main/list/orch/unsldd"));
  268. }
  269. // alert(model.getValue("/root/main/list/orchlist/rrgstno"));
  270. // alert(model.getValue("/root/main/list/orchlist/emplno"));
  271. if(model.getValue(ipt_emplno.attribute("ref")) != "")
  272. {
  273. cmb_custflag.value = "1";
  274. }
  275. else if(model.getValue(ipt_rrgstno.attribute("ref")) != "")
  276. {
  277. cmb_custflag.value = "2";
  278. }
  279. else
  280. {
  281. cmb_custflag.value = "1";
  282. } // 신규
  283. cmb_custflag.refresh();
  284. cmb_custflag.dispatch("xforms-value-changed");
  285. cmb_calcyear.refresh();
  286. cmb_calcyear.dispatch("xforms-value-changed");
  287. //fpayCalc();
  288. //model.getValue("/root/main/list/orch/status");
  289. if(model.getValue("/root/main/list/orch/unslno") == "")
  290. {
  291. ipt_paydd.visible = true;
  292. cap_paydd.value = "지급일";
  293. }
  294. model.setFocus("ipt_name");
  295. }
  296. function finsertStat()
  297. {
  298. model.removeNodeset("/root/main/list/orch");
  299. //model.removeNodeset("/root/main/list/orchlist");
  300. model.makeValue("/root/main/list/orch/instcd", instcd);
  301. model.makeValue("/root/main/list/orch/seqno", "");
  302. model.makeValue("/root/main/list/orch/paydd", "");
  303. model.makeValue("/root/main/list/orch/unsldd", unsldd);
  304. model.makeValue("/root/main/list/orch/unslno", unslno);
  305. model.makeValue("/root/main/list/orch/undeciseqno", unslseqno);
  306. model.makeValue("/root/main/list/orch/chrgflag", profflag);
  307. model.makeValue("/root/main/list/orch/status", "i");
  308. model.makeValue("/root/main/list/orchlist/instcd", instcd);
  309. model.makeValue("/root/main/list/orchlist/chrgflag" , profflag);
  310. model.makeValue("/root/main/list/orchlist/detlseqno" ,"0001");
  311. model.makeValue("/root/main/list/orchlist/seqno" ,"");
  312. model.makeValue("/root/main/list/orchlist/emplno" ,"");
  313. model.makeValue("/root/main/list/orchlist/rrgstno" ,"");
  314. model.makeValue("/root/main/list/orchlist/name" ,"");
  315. model.makeValue("/root/main/list/orchlist/fromdd" ,"");
  316. model.makeValue("/root/main/list/orchlist/todd" ,"");
  317. model.makeValue("/root/main/list/orchlist/servedmonths" ,"");
  318. model.makeValue("/root/main/list/orchlist/servedyears" ,"");
  319. model.makeValue("/root/main/list/orchlist/retireamt" ,"");
  320. model.makeValue("/root/main/list/orchlist/deductamt" ,"");
  321. model.makeValue("/root/main/list/orchlist/yearsdeductamt" ,"");
  322. model.makeValue("/root/main/list/orchlist/sumretrdeductamt" ,"");
  323. model.makeValue("/root/main/list/orchlist/taxstandard" ,"");
  324. model.makeValue("/root/main/list/orchlist/avetaxstandard" ,"");
  325. model.makeValue("/root/main/list/orchlist/avecalctax" ,"");
  326. model.makeValue("/root/main/list/orchlist/calctax" ,"");
  327. model.makeValue("/root/main/list/orchlist/taxdeduct" ,"");
  328. model.makeValue("/root/main/list/orchlist/determtax" ,"");
  329. model.makeValue("/root/main/list/orchlist/paymenttax" ,"");
  330. model.makeValue("/root/main/list/orchlist/incmtax" ,"");
  331. model.makeValue("/root/main/list/orchlist/resdntax" ,"");
  332. model.makeValue("/root/main/list/orchlist/paytax" ,"");
  333. model.makeValue("/root/main/list/orchlist/cmt" ,"");
  334. model.makeValue("/root/main/list/orchlist/rregno" ,"");
  335. model.makeValue("/root/main/list/orchlist/zipcd" ,"");
  336. model.makeValue("/root/main/list/orchlist/addr" ,"");
  337. model.makeValue("/root/main/list/orchlist/paytotamt" ,"");
  338. var sToday = getCurrentDate().toString();
  339. //model.setValue("/root/main/list/orchlist/fromdd", sToday);
  340. //model.setValue("/root/main/list/orchlist/todd", sToday);
  341. model.setValue("/root/send/cadl/fromdd", model.getValue("/root/main/list/orchlist/todd"));
  342. }
  343. //============================================================
  344. // 퇴직 소득 조회
  345. //============================================================
  346. function fSearch()
  347. {
  348. submit("TRRAD00141");
  349. if(instance1.selectNodes("/root/main/list/orchlist").length == 0)
  350. {
  351. finsertStat();
  352. }
  353. else
  354. {
  355. model.setValue("/root/main/list/orch/status", "u");
  356. model.makeValue(ipt_A.attribute("ref") ,"");
  357. model.makeValue(ipt_B.attribute("ref") ,"");
  358. model.makeValue(ipt_C.attribute("ref") ,"");
  359. model.makeValue(ipt_D.attribute("ref") ,"");
  360. model.makeValue(ipt_E.attribute("ref") ,"");
  361. model.makeValue(ipt_F.attribute("ref") ,"");
  362. model.makeValue(ipt_G.attribute("ref") ,"");
  363. model.makeValue(ipt_H.attribute("ref") ,"");
  364. model.makeValue(ipt_I.attribute("ref") ,"");
  365. model.makeValue(ipt_J.attribute("ref") ,"");
  366. model.makeValue(ipt_K.attribute("ref") ,"");
  367. model.makeValue(ipt_L.attribute("ref") ,"");
  368. model.makeValue(ipt_M.attribute("ref") ,"");
  369. model.makeValue(ipt_N.attribute("ref") ,"");
  370. model.makeValue(ipt_O.attribute("ref") ,"");
  371. model.makeValue(ipt_P.attribute("ref") ,"");
  372. model.makeValue(ipt_Q.attribute("ref") ,"");
  373. model.makeValue(ipt_R.attribute("ref") ,"");
  374. model.makeValue(ipt_S.attribute("ref") ,"");
  375. model.makeValue(ipt_T.attribute("ref") ,"");
  376. model.makeValue(ipt_U.attribute("ref") ,"");
  377. model.makeValue(ipt_V.attribute("ref") ,"");
  378. if(model.getValue(ipt_payamt.attribute("ref")) == "")
  379. {
  380. model.setValue(ipt_payamt.attribute("ref"), '0');
  381. ipt_payamt.refresh();
  382. }
  383. if(model.getValue(ipt_earlyretramt.attribute("ref")) == "")
  384. {
  385. model.setValue(ipt_earlyretramt.attribute("ref"), '0');
  386. ipt_earlyretramt.refresh();
  387. }
  388. model.setValue("/root/hidden/calclist/A", parseFloat(ipt_payamt.value) + parseFloat(ipt_earlyretramt.value));
  389. model.setValue(ipt_B.attribute("ref"), model.getValue("/root/main/list/orchlist/deductamt") );
  390. model.setValue(ipt_G.attribute("ref"), model.getValue("/root/main/list/orchlist/yearsdeductamt") );
  391. model.setValue(ipt_H.attribute("ref"), model.getValue("/root/main/list/orchlist/sumretrdeductamt") );
  392. model.setValue(ipt_I.attribute("ref"), model.getValue("/root/main/list/orchlist/taxstandard") );
  393. model.setValue(ipt_J.attribute("ref"), model.getValue("/root/main/list/orchlist/avetaxstandard") );
  394. model.setValue(ipt_O.attribute("ref"), model.getValue("/root/main/list/orchlist/avecalctax") );
  395. model.setValue(ipt_P.attribute("ref"), model.getValue("/root/main/list/orchlist/calctax") );
  396. model.setValue(ipt_Q.attribute("ref"), model.getValue("/root/main/list/orchlist/taxdeduct") );
  397. model.setValue(ipt_R.attribute("ref"), model.getValue("/root/main/list/orchlist/determtax") );
  398. model.setValue(ipt_S.attribute("ref"), model.getValue("/root/main/list/orchlist/paymenttax") );
  399. model.setValue(ipt_T.attribute("ref"), model.getValue("/root/main/list/orchlist/incmtax") );
  400. model.setValue(ipt_U.attribute("ref"), model.getValue("/root/main/list/orchlist/resdntax") );
  401. model.setValue(ipt_V.attribute("ref"), model.getValue("/root/main/list/orchlist/paytax") );
  402. model.setValue("/root/hidden/calclist/T", parseInt(model.getValue("/root/hidden/calclist/T") * 0.1) * 10);
  403. model.setValue("/root/hidden/calclist/U", parseInt(model.getValue("/root/hidden/calclist/U") * 0.1) * 10);
  404. ipt_B.refresh();
  405. ipt_G.refresh();
  406. ipt_H.refresh();
  407. ipt_I.refresh();
  408. ipt_J.refresh();
  409. ipt_O.refresh();
  410. ipt_P.refresh();
  411. ipt_Q.refresh();
  412. ipt_R.refresh();
  413. ipt_S.refresh();
  414. ipt_T.refresh();
  415. ipt_U.refresh();
  416. ipt_V.refresh();
  417. }
  418. model.refresh();
  419. }
  420. //============================================================
  421. // 퇴직 소득 저장
  422. //============================================================
  423. function fSave()
  424. {
  425. model.copyNode("/root/send/list/orch", "/root/main/list/orch");
  426. model.copyNode("/root/send/list/orchlist", "/root/main/list/orchlist");
  427. var ret = "";
  428. if(model.getValue("/root/main/list/orch/status") == "d")
  429. {
  430. ret = messageBox("삭제하시겠습니까?","Q999");
  431. }
  432. else
  433. {
  434. if(!fNotNullCheck())
  435. {
  436. return false;
  437. }
  438. ret = messageBox("저장하시겠습니까?","Q999");
  439. }
  440. if (ret == "6")
  441. {
  442. vCustFlag = model.getValue(cmb_custflag.attribute("ref"));
  443. if(vCustFlag == "1")
  444. {
  445. model.setValue("/root/main/list/orchlist/rrgstno", "");
  446. }
  447. else if(vCustFlag == "2")
  448. {
  449. model.setValue("/root/main/list/orchlist/emplno", "-");
  450. }
  451. submit("TXRAD00141")
  452. if (model.getValue("/root/temp/seqno/seqno") != "")
  453. {
  454. messageBox("저장이 " ,"I002");
  455. model.setValue("/root/send/retrparams/instcd", model.getValue("/root/main/list/orch/instcd"));
  456. model.setValue("/root/send/retrparams/seqno", model.getValue("/root/temp/seqno/seqno"));
  457. model.setValue("/root/send/retrparams/chrgflag", model.getValue("/root/main/list/orch/chrgflag"));
  458. model.setValue("/root/send/retrparams/detlseqno", "0001");
  459. model.refresh();
  460. fSearch();
  461. model.setValue("/root/main/list/orch/status", "u");
  462. }
  463. else
  464. {
  465. messageBox("삭제가" ,"I002");
  466. finsertStat();
  467. model.refresh();
  468. }
  469. }
  470. model.setFocus("ipt_name");
  471. }
  472. function fDelete()
  473. {
  474. if(model.getValue("/root/main/list/orch/status") == "u");
  475. {
  476. if (messageBox("해당 증빙을","Q001") == "6")
  477. {
  478. model.setValue("/root/main/list/orch/status", "d");
  479. fSave();
  480. model.setValue("/root/main/list/orch/status", "i");
  481. ipt_paydd.disabled = false;
  482. model.setValue("/root/hidden/calclist/A", "");
  483. model.setValue("/root/hidden/calclist/B", "");
  484. model.setValue("/root/hidden/calclist/C", "");
  485. model.setValue("/root/hidden/calclist/D", "");
  486. model.setValue("/root/hidden/calclist/E", "");
  487. model.setValue("/root/hidden/calclist/F", "");
  488. model.setValue("/root/hidden/calclist/G", "");
  489. model.setValue("/root/hidden/calclist/H", "");
  490. model.setValue("/root/hidden/calclist/I", "");
  491. model.setValue("/root/hidden/calclist/J", "");
  492. model.setValue("/root/hidden/calclist/K", "");
  493. model.setValue("/root/hidden/calclist/L", "");
  494. model.setValue("/root/hidden/calclist/M", "");
  495. model.setValue("/root/hidden/calclist/N", "");
  496. model.setValue("/root/hidden/calclist/O", "");
  497. model.setValue("/root/hidden/calclist/P", "");
  498. model.setValue("/root/hidden/calclist/Q", "");
  499. model.setValue("/root/hidden/calclist/R", "");
  500. model.setValue("/root/hidden/calclist/S", "");
  501. model.setValue("/root/hidden/calclist/T", "");
  502. model.setValue("/root/hidden/calclist/U", "");
  503. model.setValue("/root/hidden/calclist/V", "");
  504. }
  505. }
  506. model.refresh();
  507. }
  508. //============================================================
  509. // 과세 내역 계산
  510. //============================================================
  511. function fpayCalc()
  512. {
  513. if(!(ipt_years.value == "" || ipt_years.value == 0) && ipt_payamt.value != "")
  514. {
  515. model.setValue("/root/hidden/calclist/A", parseFloat(ipt_payamt.value) + parseFloat(ipt_earlyretramt.value));
  516. ipt_A.refresh();
  517. model.setValue("/root/hidden/calclist/B", parseInt((parseFloat(ipt_A.value) * 0.45)));
  518. ipt_B.refresh();
  519. if(ipt_years.value <= 5)
  520. {
  521. model.setValue("/root/hidden/calclist/C", 300000 * ipt_years.value);
  522. model.setValue("/root/hidden/calclist/D", 0);
  523. model.setValue("/root/hidden/calclist/E", 0);
  524. model.setValue("/root/hidden/calclist/F", 0);
  525. model.setValue("/root/hidden/calclist/G", 300000 * ipt_years.value);
  526. }
  527. else if(ipt_years.value > 5 && ipt_years.value <= 10)
  528. {
  529. model.setValue("/root/hidden/calclist/C", 0);
  530. model.setValue("/root/hidden/calclist/D", 500000 * (ipt_years.value - 5) + 1500000);
  531. model.setValue("/root/hidden/calclist/E", 0);
  532. model.setValue("/root/hidden/calclist/F", 0);
  533. model.setValue("/root/hidden/calclist/G", 500000 * (ipt_years.value - 5) + 1500000);
  534. }
  535. else if(ipt_years.value > 10 && ipt_years.value <= 20)
  536. {
  537. model.setValue("/root/hidden/calclist/C", 0);
  538. model.setValue("/root/hidden/calclist/D", 0);
  539. model.setValue("/root/hidden/calclist/E", 800000 * (ipt_years.value - 10) + 4000000);
  540. model.setValue("/root/hidden/calclist/F", 0);
  541. model.setValue("/root/hidden/calclist/G", 800000 * (ipt_years.value - 10) + 4000000);
  542. }
  543. else if(ipt_years.value > 20)
  544. {
  545. model.setValue("/root/hidden/calclist/C", 0);
  546. model.setValue("/root/hidden/calclist/D", 0);
  547. model.setValue("/root/hidden/calclist/E", 0);
  548. model.setValue("/root/hidden/calclist/F", 1200000 * (ipt_years.value - 20) + 12000000);
  549. model.setValue("/root/hidden/calclist/G", 1200000 * (ipt_years.value - 20) + 12000000);
  550. }
  551. else
  552. {
  553. messageBox("잘못된 값입니다.","I000"); return false;
  554. }
  555. ipt_C.refresh();
  556. ipt_D.refresh();
  557. ipt_E.refresh();
  558. ipt_F.refresh();
  559. ipt_G.refresh();
  560. model.setValue("/root/hidden/calclist/H", parseFloat(ipt_B.value) + parseFloat(ipt_G.value));
  561. ipt_H.refresh();
  562. model.setValue("/root/hidden/calclist/I", parseFloat(ipt_A.value) - parseFloat(ipt_H.value));
  563. ipt_I.refresh();
  564. if(parseFloat(ipt_I.value) < 0)
  565. {
  566. model.setValue(ipt_I.attribute("ref"), 0);
  567. ipt_I.refresh();
  568. }
  569. model.setValue("/root/hidden/calclist/J", parseInt(parseFloat(ipt_I.value)/parseFloat(ipt_years.value)));
  570. ipt_J.refresh();
  571. var variableA1 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableA1"));
  572. var variableA2 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableA2"));
  573. var variableB1 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableB1"));
  574. var variableB2 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableB2"));
  575. var variableC1 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableC1"));
  576. var variableC2 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableC2"));
  577. var variableD1 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableD1"));
  578. var variableD2 = parseFloat(model.getValue("/root/hidden/condition/calcyearvariable/variableD2"));
  579. var variableE = "";
  580. if(model.getValue(cmb_taxdeductflag.attribute("ref")) == "Y")
  581. {
  582. variableE = "0.3";
  583. }
  584. else if(model.getValue(cmb_taxdeductflag.attribute("ref")) == "N")
  585. {
  586. variableE = "0.0";
  587. }
  588. if(ipt_J.value <= 12000000)
  589. {
  590. model.setValue("/root/hidden/calclist/K", parseInt(parseFloat(ipt_J.value)*variableA1));
  591. model.setValue("/root/hidden/calclist/L", 0);
  592. model.setValue("/root/hidden/calclist/M", 0);
  593. model.setValue("/root/hidden/calclist/N", 0);
  594. model.setValue("/root/hidden/calclist/O", parseInt(parseFloat(ipt_J.value)*variableA1) + variableA2); //2009년 1월 1일 변경 (0.08)
  595. }
  596. else if(ipt_J.value > 12000000 && ipt_J.value <= 46000000)
  597. {
  598. model.setValue("/root/hidden/calclist/K", 0);
  599. model.setValue("/root/hidden/calclist/L", parseInt(parseFloat(ipt_J.value)*variableB1));
  600. model.setValue("/root/hidden/calclist/M", 0);
  601. model.setValue("/root/hidden/calclist/N", 0);
  602. model.setValue("/root/hidden/calclist/O", parseInt(parseFloat(ipt_J.value)*variableB1) + variableB2); //2009년 1월 1일 변경 (0.17 / 1080000)
  603. }
  604. else if(ipt_J.value > 46000000 && ipt_J.value <= 88000000)
  605. {
  606. model.setValue("/root/hidden/calclist/K", 0);
  607. model.setValue("/root/hidden/calclist/L", 0);
  608. model.setValue("/root/hidden/calclist/M", parseInt(parseFloat(ipt_J.value)*variableC1));
  609. model.setValue("/root/hidden/calclist/N", 0);
  610. model.setValue("/root/hidden/calclist/O", parseInt(parseFloat(ipt_J.value)*variableC1) + variableC2); //2009년 1월 1일 변경 (0.26 / 5220000)
  611. }
  612. else if(ipt_J.value > 88000000)
  613. {
  614. model.setValue("/root/hidden/calclist/K", 0);
  615. model.setValue("/root/hidden/calclist/L", 0);
  616. model.setValue("/root/hidden/calclist/M", 0);
  617. model.setValue("/root/hidden/calclist/N", parseInt(parseFloat(ipt_J.value)*variableD1));
  618. model.setValue("/root/hidden/calclist/O", parseInt(parseFloat(ipt_J.value)*variableD1) + variableD2); //2009년 1월 1일 변경 (0.35 / 13140000)
  619. }
  620. else
  621. {
  622. messageBox("잘못된 값입니다.","I000"); return false;
  623. }
  624. ipt_K.refresh();
  625. ipt_L.refresh();
  626. ipt_M.refresh();
  627. ipt_N.refresh();
  628. ipt_O.refresh();
  629. model.setValue("/root/hidden/calclist/P", parseInt(parseFloat(ipt_O.value) * parseFloat(ipt_years.value)));
  630. ipt_P.refresh();
  631. model.setValue("/root/hidden/calclist/Q", parseInt(parseFloat(ipt_P.value) * variableE));
  632. ipt_Q.refresh();
  633. model.setValue("/root/hidden/calclist/R", parseInt(parseFloat(ipt_P.value) - parseFloat(ipt_Q.value)));
  634. ipt_R.refresh();
  635. model.setValue("/root/hidden/calclist/S", 0);
  636. ipt_S.refresh();
  637. model.setValue("/root/hidden/calclist/T", parseInt(parseFloat(ipt_R.value) - parseFloat(ipt_S.value)));
  638. ipt_T.refresh();
  639. model.setValue("/root/hidden/calclist/U", parseInt(parseInt(ipt_T.value) * 0.1));
  640. ipt_U.refresh();
  641. model.setValue("/root/hidden/calclist/V", (parseInt(parseFloat(ipt_T.value) * 0.1) + parseInt(parseFloat(ipt_U.value) * 0.1)) * 10);
  642. ipt_V.refresh();
  643. model.setValue("/root/main/list/orchlist/paytotamt", parseInt((parseFloat(ipt_A.value) - parseFloat(ipt_V.value)) * 0.1) * 10);
  644. ipt_paytotamt.refresh();
  645. model.setValue("/root/main/list/orchlist/deductamt", ipt_B.value );
  646. model.setValue("/root/main/list/orchlist/yearsdeductamt", ipt_G.value );
  647. model.setValue("/root/main/list/orchlist/sumretrdeductamt", ipt_H.value );
  648. model.setValue("/root/main/list/orchlist/taxstandard", ipt_I.value );
  649. model.setValue("/root/main/list/orchlist/avetaxstandard", ipt_J.value );
  650. model.setValue("/root/main/list/orchlist/avecalctax", ipt_O.value );
  651. model.setValue("/root/main/list/orchlist/calctax", ipt_P.value );
  652. model.setValue("/root/main/list/orchlist/taxdeduct", ipt_Q.value );
  653. model.setValue("/root/main/list/orchlist/determtax", ipt_R.value );
  654. model.setValue("/root/main/list/orchlist/paymenttax", ipt_S.value );
  655. model.setValue("/root/main/list/orchlist/incmtax", ipt_T.value );
  656. model.setValue("/root/main/list/orchlist/resdntax", ipt_U.value );
  657. model.setValue("/root/main/list/orchlist/paytax", ipt_V.value );
  658. model.setValue("/root/hidden/calclist/T", parseInt(model.getValue("/root/hidden/calclist/T") * 0.1) * 10);
  659. ipt_T.refresh();
  660. model.setValue("/root/hidden/calclist/U", parseInt(model.getValue("/root/hidden/calclist/U") * 0.1) * 10);
  661. ipt_U.refresh();
  662. }
  663. }
  664. //========================================================================================
  665. //not null check
  666. //========================================================================================
  667. function fNotNullCheck() {
  668. if(model.getValue("/root/hidden/calclist/V").length== 0)
  669. {
  670. messageBox("납부세액은" ,"I003");
  671. model.setFocus("ipt_payamt");
  672. return false;
  673. }
  674. if(model.getValue(cmb_custflag.attribute("ref")) == "1" && model.getValue("/root/main/list/orchlist/emplno").length== 0 )
  675. {
  676. messageBox("사번은" ,"I003");
  677. model.setFocus("ipt_emplno");
  678. return false;
  679. }
  680. if(model.getValue(cmb_custflag.attribute("ref")) == "2" && model.getValue("/root/main/list/orchlist/rrgstno").length== 0 )
  681. {
  682. messageBox("주민등록번호은" ,"I003");
  683. model.setFocus("ipt_emplno");
  684. return false;
  685. }
  686. if(model.getValue("/root/main/list/orchlist/cmt").length== 0 )
  687. {
  688. messageBox("비고는" ,"I003");
  689. model.setFocus("ipt_cmt");
  690. return false;
  691. }
  692. return true;
  693. }
  694. //========================================================================================
  695. //not null check
  696. //========================================================================================
  697. function fCalMonth()
  698. {
  699. var vBelongyearfrom = model.getValue(ipt_todd.attribute("ref")).substr(0,4) + "0101";
  700. var vBelongyearto = model.getValue(ipt_todd.attribute("ref"));
  701. model.setValue(ipt_belongyearfrom.attribute("ref"), vBelongyearfrom);
  702. model.setValue(ipt_belongyearto.attribute("ref"), vBelongyearto);
  703. var fromdd = model.getValue("/root/main/list/orchlist/fromdd");
  704. var fryy = parseFloat(fromdd.substr(0,4));
  705. var frmm = parseFloat(fromdd.substr(4,2));
  706. var frdd = parseFloat(fromdd.substr(6,2));
  707. var todd = model.getValue("/root/main/list/orchlist/todd");
  708. var toyy = parseFloat(todd.substr(0,4));
  709. var tomm = parseFloat(todd.substr(4,2)) + 1;
  710. var todd = parseFloat(todd.substr(6,2));
  711. if(frdd > todd)
  712. {
  713. tomm --;
  714. }
  715. if(frmm > tomm)
  716. {
  717. toyy --;
  718. tomm = tomm + 12;
  719. }
  720. ipt_months.value = (toyy - fryy) * 12 + (tomm - frmm);
  721. ipt_months.refresh();
  722. ipt_months.dispatch("xforms-value-changed");
  723. }
  724. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  725. {
  726. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  727. {
  728. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  729. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  730. model.refresh();
  731. if (pNextIndex != "") {
  732. model.setFocus(pNextIndex);
  733. }
  734. }
  735. }
  736. function fGetFromToDD()
  737. {
  738. if(cmb_custflag.value == '1')
  739. {
  740. model.setValue("/root/send/data2/emplno", model.getValue(ipt_emplno.attribute("ref")));
  741. submit("TRRAD00142");
  742. if(model.getValue("/root/hidden/emplinfo/emplinfolist/fromdd") != "")
  743. {
  744. model.setValue(ipt_fromdd.attribute("ref"), model.getValue("/root/hidden/emplinfo/emplinfolist/fromdd"));
  745. model.setValue(ipt_todd.attribute("ref"), model.getValue("/root/hidden/emplinfo/emplinfolist/todd"));
  746. ipt_fromdd.refresh();
  747. ipt_todd.refresh();
  748. model.setValue("/root/hidden/emplinfo/emplinfolist/fromdd", "");
  749. model.setValue("/root/hidden/emplinfo/emplinfolist/todd", "");
  750. ipt_fromdd.dispatch("xforms-value-changed");
  751. }
  752. }
  753. }
  754. ]]>
  755. </script>
  756. </xhtml:head>
  757. <xhtml:body pagewidth="1031" pageheight="684" guideline="2,555;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  758. <group id="group1" style="left:0px; top:0px; width:1007px; height:13px; ">
  759. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">퇴직 소득 관리</caption>
  760. </group>
  761. <group id="group2" scroll="auto" style="left:0px; top:12px; width:1011px; height:633px; ">
  762. <line id="line7" class="line_2" style="x1:0px; y1:109px; x2:677px; y2:109px; "/>
  763. <line id="line5" class="line_2" style="x1:0px; y1:85px; x2:677px; y2:85px; "/>
  764. <line id="line3" class="line_2" style="x1:0px; y1:36px; x2:1011px; y2:36px; "/>
  765. <line id="line9" class="line_3" style="x1:0px; y1:580px; x2:1011px; y2:580px; "/>
  766. <line id="line8" class="line_2" style="x1:0px; y1:132px; x2:677px; y2:132px; "/>
  767. <line id="line2" class="line_1" style="x1:0px; y1:9px; x2:1011px; y2:9px; "/>
  768. <caption id="cap_zip" class="cell_1" style="left:0px; top:206px; width:100px; height:23px; vertical-align:middle; ">우편번호</caption>
  769. <caption id="cap_addr" class="cell_1" style="left:0px; top:230px; width:100px; height:23px; vertical-align:middle; ">주소</caption>
  770. <line id="line10" class="line_2" style="x1:0px; y1:61px; x2:677px; y2:61px; "/>
  771. <input id="ipt_supaddr" ref="/root/main/list/orchlist/addr" class="input_default" disabled="true" style="left:3px; top:254px; width:330px; height:19px; "/>
  772. <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>
  773. <button id="btn_userhelp" class="icon_search" navindex="-1" visibility="hidden" style="left:195px; top:91px; width:16px; height:16px; ">
  774. <caption/>
  775. <script type="javascript" ev:event="DOMActivate">
  776. <![CDATA[
  777. //misfOpenPopUpList("49", ipt_payamt, "", "emplno,emplnm");
  778. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
  779. fGetFromToDD();
  780. model.refresh();
  781. ]]>
  782. </script>
  783. </button>
  784. <input id="ipt_emplnm" ref="/root/main/list/orchlist/emplnm" class="input_essential" visibility="hidden" style="left:215px; top:89px; width:118px; height:19px; ">
  785. <script type="javascript" ev:event="onkeypress">
  786. <![CDATA[
  787. if(event.keyCode == 13)
  788. {
  789. model.setFocus("ipt_payamt");
  790. }
  791. ]]>
  792. </script>
  793. <script type="javascript" ev:event="xforms-value-changed">
  794. <![CDATA[
  795. //fValidationCheck("49", "emplno,emplnm", "", "ipt_payamt", "cmb_selectretiree", "selectretiree", "name");
  796. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  797. fGetFromToDD();
  798. model.refresh();
  799. ]]>
  800. </script>
  801. </input>
  802. <input id="ipt_emplno" ref="/root/main/list/orchlist/emplno" class="input_essential" visibility="hidden" style="left:105px; top:89px; width:87px; height:19px; ">
  803. <script type="javascript" ev:event="onkeypress">
  804. <![CDATA[
  805. if(event.keyCode == 13)
  806. {
  807. model.setFocus("ipt_payamt");
  808. }
  809. ]]>
  810. </script>
  811. <script type="javascript" ev:event="xforms-value-changed">
  812. <![CDATA[
  813. //fValidationCheck("49", "emplno,emplnm", "", "ipt_payamt", "cmb_selectretiree", "selectretiree", "code");
  814. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  815. fGetFromToDD();
  816. model.refresh();
  817. ]]>
  818. </script>
  819. </input>
  820. <caption id="cap_months" class="cell_1" style="left:0px; top:110px; width:100px; height:23px; vertical-align:middle; ">근속월수</caption>
  821. <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; ">
  822. <script type="javascript" ev:event="xforms-value-changed">
  823. <![CDATA[
  824. model.setValue("/root/main/list/orchlist/servedyears", Math.ceil(parseFloat(ipt_months.value)/12));
  825. ipt_years.refresh();
  826. // alert(parseFloat(ipt_months.value)/12)
  827. // alert(Math.ceil(parseFloat(ipt_months.value)/12))
  828. fpayCalc();
  829. ]]>
  830. </script>
  831. <script type="javascript" ev:event="onkeypress">
  832. <![CDATA[
  833. if(event.keyCode == 13)
  834. {
  835. model.setFocus("ipt_payamt");
  836. }
  837. ]]>
  838. </script>
  839. </input>
  840. <caption id="cap_years" class="cell_1" style="left:167px; top:110px; width:100px; height:23px; vertical-align:middle; ">근속년수</caption>
  841. <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; "/>
  842. <caption id="cap_earlyretramt" class="cell_1" style="left:0px; top:158px; width:100px; height:23px; vertical-align:middle; ">명예퇴직일시금</caption>
  843. <caption id="cap_rrgstno" class="cell_1" style="left:0px; top:182px; width:100px; height:23px; vertical-align:middle; ">주민등록번호</caption>
  844. <line id="line4" class="line_2" style="x1:0px; y1:156px; x2:677px; y2:156px; "/>
  845. <line id="line6" class="line_2" style="x1:0px; y1:180px; x2:677px; y2:180px; "/>
  846. <line id="line11" class="line_2" style="x1:0px; y1:204px; x2:677px; y2:204px; "/>
  847. <line id="line12" class="line_2" style="x1:0px; y1:228px; x2:677px; y2:228px; "/>
  848. <line id="line13" class="line_2" style="x1:10px; y1:253px; x2:677px; y2:253px; "/>
  849. <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; "/>
  850. <caption id="cap_entrregno" class="cell_1" style="left:0px; top:301px; width:100px; height:23px; vertical-align:middle; ">사업자등록번호</caption>
  851. <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; "/>
  852. <caption id="cap_custnm" class="cell_1" style="left:0px; top:326px; width:100px; height:23px; vertical-align:middle; ">법인명</caption>
  853. <caption id="cap_prsdnm" class="cell_1" style="left:0px; top:350px; width:100px; height:23px; vertical-align:middle; ">대표자</caption>
  854. <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; "/>
  855. <line id="line14" class="line_2" style="x1:0px; y1:278px; x2:677px; y2:278px; "/>
  856. <line id="line15" class="line_2" style="x1:0px; y1:303px; x2:677px; y2:303px; text-align:center; vertical-align:middle; "/>
  857. <line id="line16" class="line_2" style="x1:0px; y1:328px; x2:677px; y2:328px; "/>
  858. <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; "/>
  859. <caption id="cap_prrgstno" class="cell_1" style="left:0px; top:375px; width:100px; height:23px; vertical-align:middle; ">주민등록번호</caption>
  860. <caption id="cap_paddr" class="cell_1" style="left:0px; top:400px; width:100px; height:23px; vertical-align:middle; ">소재지</caption>
  861. <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; "/>
  862. <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>
  863. <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>
  864. <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; "/>
  865. <caption id="caption2" class="cell_1" style="left:344px; top:38px; width:176px; height:23px; text-align:center; vertical-align:middle; ">퇴 직 급 여 액</caption>
  866. <caption id="caption4" class="cell_1" style="left:405px; top:63px; width:115px; height:23px; text-align:center; vertical-align:middle; ">소득공제(A)</caption>
  867. <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>
  868. <caption id="caption12" class="cell_1" style="left:405px; top:206px; width:115px; height:23px; text-align:center; vertical-align:middle; ">계(A+B)</caption>
  869. <caption id="caption13" class="cell_1" style="left:344px; top:231px; width:176px; height:23px; text-align:center; vertical-align:middle; ">과 세 표 준</caption>
  870. <caption id="caption14" class="cell_1" style="left:344px; top:256px; width:176px; height:23px; text-align:center; vertical-align:middle; ">연평균 과세표준</caption>
  871. <caption id="caption16" class="cell_1" style="left:405px; top:280px; width:115px; height:23px; text-align:center; vertical-align:middle; ">1천2백만원이하</caption>
  872. <caption id="caption17" class="cell_1" style="left:405px; top:305px; width:115px; height:23px; text-align:center; vertical-align:middle; ">4천6백만원이하</caption>
  873. <caption id="caption18" class="cell_1" style="left:405px; top:330px; width:115px; height:23px; text-align:center; vertical-align:middle; ">8천8백만원이하</caption>
  874. <caption id="caption19" class="cell_1" style="left:405px; top:355px; width:115px; height:23px; text-align:center; vertical-align:middle; ">8천8백만원초과</caption>
  875. <caption id="caption20" class="cell_1" style="left:405px; top:380px; width:115px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
  876. <caption id="caption21" class="cell_1" style="left:345px; top:405px; width:176px; height:23px; text-align:center; vertical-align:middle; ">산 출 세 액</caption>
  877. <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>
  878. <caption id="caption23" class="cell_1" style="left:345px; top:455px; width:176px; height:23px; text-align:center; vertical-align:middle; ">결 정 세 액</caption>
  879. <caption id="caption24" class="cell_1" style="left:345px; top:480px; width:176px; height:23px; text-align:center; vertical-align:middle; ">기 납 부 세 액</caption>
  880. <caption id="caption25" class="cell_1" style="left:345px; top:505px; width:176px; height:23px; text-align:center; vertical-align:middle; ">소 득 세</caption>
  881. <caption id="caption26" class="cell_1" style="left:345px; top:530px; width:176px; height:23px; text-align:center; vertical-align:middle; ">주 민 세</caption>
  882. <caption id="caption27" class="cell_1" style="left:345px; top:555px; width:176px; height:23px; text-align:center; vertical-align:middle; ">납 부 세 액</caption>
  883. <line id="line19" class="line_3" style="x1:677px; y1:61px; x2:1011px; y2:61px; "/>
  884. <line id="line25" class="line_3" style="x1:677px; y1:205px; x2:1011px; y2:205px; "/>
  885. <line id="line26" class="line_3" style="x1:677px; y1:229px; x2:1011px; y2:229px; "/>
  886. <line id="line27" class="line_3" style="x1:677px; y1:253px; x2:1011px; y2:253px; "/>
  887. <line id="line33" class="line_3" style="x1:677px; y1:403px; x2:1011px; y2:403px; "/>
  888. <line id="line34" class="line_3" style="x1:677px; y1:428px; x2:1011px; y2:428px; "/>
  889. <line id="line35" class="line_3" style="x1:677px; y1:453px; x2:1011px; y2:453px; "/>
  890. <line id="line36" class="line_3" style="x1:677px; y1:478px; x2:1011px; y2:478px; "/>
  891. <line id="line37" class="line_3" style="x1:677px; y1:503px; x2:1011px; y2:503px; "/>
  892. <line id="line38" class="line_3" style="x1:677px; y1:528px; x2:1011px; y2:528px; "/>
  893. <line id="line39" class="line_3" style="x1:677px; y1:553px; x2:1011px; y2:553px; "/>
  894. <line id="line41" class="line_2" style="x1:0px; y1:353px; x2:677px; y2:353px; "/>
  895. <line id="line42" class="line_2" style="x1:0px; y1:378px; x2:677px; y2:378px; "/>
  896. <line id="line43" class="line_2" style="x1:5px; y1:400px; x2:682px; y2:400px; "/>
  897. <line id="line44" class="line_2" style="x1:0px; y1:428px; x2:677px; y2:428px; "/>
  898. <line id="line45" class="line_2" style="x1:0px; y1:453px; x2:677px; y2:453px; "/>
  899. <line id="line46" class="line_2" style="x1:0px; y1:478px; x2:677px; y2:478px; "/>
  900. <line id="line47" class="line_2" style="x1:0px; y1:503px; x2:677px; y2:503px; "/>
  901. <line id="line48" class="line_2" style="x1:0px; y1:528px; x2:677px; y2:528px; "/>
  902. <line id="line49" class="line_2" style="x1:0px; y1:553px; x2:677px; y2:553px; "/>
  903. <caption id="cap_1" class="cell_3" style="left:676px; top:38px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">퇴직급여(수당)액 과세소득</caption>
  904. <caption id="caption28" class="cell_3" style="left:676px; top:63px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">2006귀속분부터 퇴직급여액의 45%</caption>
  905. <caption id="caption45" class="cell_3" style="left:676px; top:181px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">(근속년수별 초과 재직연수 * F열) + E열</caption>
  906. <caption id="caption46" class="cell_3" style="left:677px; top:206px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">소득공제(A) + 근속연수공제(B)</caption>
  907. <caption id="caption47" class="cell_3" style="left:676px; top:231px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">과세소득액 - 퇴직소득공제액</caption>
  908. <caption id="caption48" class="cell_3" style="left:676px; top:255px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">과세 표준 / 세법상 근속연수</caption>
  909. <line id="line29" class="line_3" style="x1:770px; y1:82px; x2:770px; y2:178px; "/>
  910. <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>
  911. <line id="line30" class="line_3" style="x1:677px; y1:82px; x2:1011px; y2:82px; "/>
  912. <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>
  913. <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>
  914. <line id="line31" class="line_3" style="x1:677px; y1:106px; x2:1011px; y2:106px; "/>
  915. <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>
  916. <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>
  917. <caption id="caption58" class="cell_3" style="left:774px; top:82px; width:90px; height:23px; vertical-align:middle; padding-left:10; "/>
  918. <line id="line32" class="line_3" style="x1:677px; y1:130px; x2:1011px; y2:130px; "/>
  919. <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>
  920. <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>
  921. <line id="line51" class="line_3" style="x1:677px; y1:154px; x2:1011px; y2:154px; "/>
  922. <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>
  923. <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>
  924. <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>
  925. <line id="line52" class="line_3" style="x1:677px; y1:178px; x2:1011px; y2:178px; "/>
  926. <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>
  927. <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>
  928. <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>
  929. <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>
  930. <line id="line53" class="line_3" style="x1:965px; y1:82px; x2:965px; y2:178px; "/>
  931. <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>
  932. <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>
  933. <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>
  934. <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>
  935. <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>
  936. <line id="line54" class="line_3" style="x1:864px; y1:82px; x2:864px; y2:178px; "/>
  937. <line id="line40" class="line_3" style="x1:795px; y1:279px; x2:795px; y2:375px; "/>
  938. <line id="line20" class="line_3" style="x1:677px; y1:279px; x2:1011px; y2:279px; "/>
  939. <line id="line21" class="line_3" style="x1:677px; y1:303px; x2:1011px; y2:303px; "/>
  940. <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>
  941. <line id="line22" class="line_3" style="x1:677px; y1:328px; x2:1011px; y2:328px; "/>
  942. <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>
  943. <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>
  944. <line id="line23" class="line_3" style="x1:677px; y1:353px; x2:1011px; y2:353px; "/>
  945. <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>
  946. <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>
  947. <line id="line24" class="line_3" style="x1:677px; y1:375px; x2:1011px; y2:375px; "/>
  948. <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>
  949. <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>
  950. <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>
  951. <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>
  952. <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>
  953. <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>
  954. <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>
  955. <line id="line50" class="line_3" style="x1:864px; y1:279px; x2:864px; y2:375px; "/>
  956. <caption id="caption32" class="cell_3" style="left:676px; top:380px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">연평균과세표준액 기준 세율 적용 + 누진세</caption>
  957. <caption id="caption35" class="cell_3" style="left:676px; top:405px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">연평균산출세액 * 세법상 근속년수(소수점절사)</caption>
  958. <caption id="caption39" class="cell_3" style="left:676px; top:430px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">세액(외국납부)공제</caption>
  959. <caption id="caption44" class="cell_3" style="left:676px; top:455px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">산출세액-세액공제</caption>
  960. <caption id="caption50" class="cell_3" style="left:676px; top:505px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">결정세액 - 기납부세액(원단위 절사)</caption>
  961. <caption id="caption51" class="cell_3" style="left:676px; top:530px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">소득세액 * 10%</caption>
  962. <caption id="caption52" class="cell_3" style="left:676px; top:555px; width:334px; height:23px; vertical-align:middle; padding-left:10; ">소득세 + 주민세</caption>
  963. <line id="line17" class="line_1" style="x1:336px; y1:10px; x2:336px; y2:580px; "/>
  964. <line id="line18" class="line_1" style="x1:675px; y1:10px; x2:675px; y2:580px; "/>
  965. <caption id="caption3" class="cell_1" style="left:344px; top:63px; width:59px; height:167px; text-align:center; vertical-align:middle; ">
  966. <![CDATA[퇴
  967. 제]]>
  968. </caption>
  969. <caption id="caption5" class="cell_1" style="left:405px; top:87px; width:115px; height:93px; text-align:center; vertical-align:middle; ">근속년수별공제</caption>
  970. <caption id="caption15" class="cell_1" style="left:344px; top:280px; width:59px; height:123px; text-align:center; vertical-align:middle; ">
  971. <![CDATA[연평균
  972. 산출 세액]]>
  973. </caption>
  974. <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; "/>
  975. <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; "/>
  976. <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; "/>
  977. <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; "/>
  978. <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; "/>
  979. <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; "/>
  980. <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; "/>
  981. <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; "/>
  982. <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; "/>
  983. <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; "/>
  984. <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; "/>
  985. <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; "/>
  986. <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; "/>
  987. <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; "/>
  988. <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; "/>
  989. <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; "/>
  990. <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; "/>
  991. <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; "/>
  992. <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; "/>
  993. <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; "/>
  994. <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; "/>
  995. <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; "/>
  996. <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>
  997. <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; ">
  998. <script type="javascript" ev:event="xforms-value-changed">
  999. <![CDATA[
  1000. fCalMonth();
  1001. ]]>
  1002. </script>
  1003. </input>
  1004. <caption id="caption9" class="cell_1" style="left:4px; top:505px; width:176px; height:23px; text-align:center; vertical-align:middle; ">소 득 세 (절사전)</caption>
  1005. <caption id="caption10" class="cell_1" style="left:4px; top:530px; width:176px; height:23px; text-align:center; vertical-align:middle; ">주 민 세 (절사전)</caption>
  1006. <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; "/>
  1007. <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; "/>
  1008. <caption id="caption54" class="cell_1" style="left:345px; top:583px; width:176px; height:23px; text-align:center; vertical-align:middle; ">비 고</caption>
  1009. <input id="ipt_cmt" ref="/root/main/list/orchlist/cmt" class="input_default" style="left:522px; top:585px; width:486px; height:19px; "/>
  1010. <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; ">
  1011. <script type="javascript" ev:event="xforms-value-changed">
  1012. <![CDATA[
  1013. fCalMonth();
  1014. ]]>
  1015. </script>
  1016. </input>
  1017. <caption id="caption73" class="cell_1" style="left:0px; top:63px; width:100px; height:23px; vertical-align:middle; ">입사일/퇴사일</caption>
  1018. <caption id="caption8" class="cell_1" style="left:4px; top:555px; width:176px; height:23px; text-align:center; vertical-align:middle; ">지 급 액</caption>
  1019. <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; "/>
  1020. <caption id="caption74" style="left:212px; top:65px; width:20px; height:20px; ">~</caption>
  1021. <caption id="cap_paydd" class="cell_1" style="left:0px; top:15px; width:100px; height:23px; vertical-align:middle; "/>
  1022. <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; "/>
  1023. <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; "/>
  1024. <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; ">
  1025. <script type="javascript" ev:event="xforms-value-changed">
  1026. <![CDATA[
  1027. //model.setValue("/root/hidden/calclist/A", ipt_payamt.value);
  1028. if(model.getValue(ipt_payamt.attribute("ref")) == "")
  1029. {
  1030. model.setValue(ipt_payamt.attribute("ref"), '0');
  1031. ipt_payamt.refresh();
  1032. }
  1033. fpayCalc();
  1034. ]]>
  1035. </script>
  1036. <script type="javascript" ev:event="onkeypress">
  1037. <![CDATA[
  1038. if (event.keyCode == "13")
  1039. {
  1040. model.setFocus("btn_save");
  1041. }
  1042. ]]>
  1043. </script>
  1044. </input>
  1045. <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; "/>
  1046. <button id="btn_grddel" class="btn2_letter3" disabled="false" navindex="-1" visibility="visible" style="left:279px; top:146px; width:53px; height:19px; ">
  1047. <caption>재계산</caption>
  1048. <script type="javascript" ev:event="DOMActivate">
  1049. <![CDATA[
  1050. fpayCalc();
  1051. ]]>
  1052. </script>
  1053. </button>
  1054. <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; ">
  1055. <choices>
  1056. <item>
  1057. <label>교직원</label>
  1058. <value>1</value>
  1059. </item>
  1060. <item>
  1061. <label>소득자</label>
  1062. <value>2</value>
  1063. </item>
  1064. </choices>
  1065. <script type="javascript" ev:event="xforms-value-changed">
  1066. <![CDATA[
  1067. // model.setValue("/root/main/list/orchlist/emplno", "");
  1068. // model.setValue("/root/main/list/orchlist/rrgstno", "");
  1069. // model.setValue("/root/main/list/orchlist/name", "");
  1070. // ipt_name.refresh();
  1071. var vCustFlag = model.getValue("/root/hidden/condition/custflag");
  1072. if(vCustFlag == "1")
  1073. {
  1074. ipt_emplno.visible = true;
  1075. ipt_emplnm.visible = true;
  1076. btn_userhelp.visible = true;
  1077. btn_icpnhelp.visible = false;
  1078. ipt_rrgstno.visible = false;
  1079. ipt_name.visible = false;
  1080. }
  1081. else if(vCustFlag == "2")
  1082. {
  1083. ipt_emplno.visible = false;
  1084. ipt_emplnm.visible = false;
  1085. btn_userhelp.visible = false;
  1086. btn_icpnhelp.visible = true;
  1087. ipt_rrgstno.visible = true;
  1088. ipt_name.visible = true;
  1089. }
  1090. // ipt_emplno.refresh();
  1091. // ipt_rrgstno.refresh();
  1092. // ipt_emplnm.refresh();
  1093. ]]>
  1094. </script>
  1095. </select1>
  1096. <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; ">
  1097. <script type="javascript" ev:event="onkeypress">
  1098. <![CDATA[
  1099. if(event.keyCode == 13)
  1100. {
  1101. model.setFocus("ipt_payamt");
  1102. }
  1103. ]]>
  1104. </script>
  1105. <script type="javascript" ev:event="xforms-value-changed">
  1106. <![CDATA[
  1107. fValidationCheck("31", "rrgstno,name", "", "ipt_payamt", "", "", "code");
  1108. model.refresh();
  1109. ]]>
  1110. </script>
  1111. </input>
  1112. <button id="btn_icpnhelp" class="icon_search" navindex="-1" visibility="hidden" style="left:195px; top:90px; width:16px; height:16px; ">
  1113. <caption/>
  1114. <script type="javascript" ev:event="DOMActivate">
  1115. <![CDATA[
  1116. misfOpenPopUpList("31", ipt_payamt, "", "rrgstno,name");
  1117. model.refresh();
  1118. ]]>
  1119. </script>
  1120. </button>
  1121. <input id="ipt_name" ref="/root/main/list/orchlist/name" class="input_essential" visibility="hidden" style="left:215px; top:89px; width:118px; height:19px; ">
  1122. <script type="javascript" ev:event="onkeypress">
  1123. <![CDATA[
  1124. if(event.keyCode == 13)
  1125. {
  1126. model.setFocus("ipt_payamt");
  1127. }
  1128. ]]>
  1129. </script>
  1130. <script type="javascript" ev:event="xforms-value-changed">
  1131. <![CDATA[
  1132. fValidationCheck("31", "rrgstno,name", "", "ipt_payamt", "", "","name");
  1133. model.refresh();
  1134. ]]>
  1135. </script>
  1136. </input>
  1137. <caption id="cap_payamt" class="cell_1" style="left:0px; top:134px; width:100px; height:23px; vertical-align:middle; ">급여총계</caption>
  1138. <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; ">
  1139. <script type="javascript" ev:event="xforms-value-changed">
  1140. <![CDATA[
  1141. //model.setValue("/root/hidden/calclist/A", ipt_payamt.value);
  1142. if(model.getValue(ipt_earlyretramt.attribute("ref")) == "")
  1143. {
  1144. model.makeValue(ipt_earlyretramt.attribute("ref"), '0');
  1145. ipt_earlyretramt.refresh();
  1146. }
  1147. fpayCalc();
  1148. ]]>
  1149. </script>
  1150. <script type="javascript" ev:event="onkeypress">
  1151. <![CDATA[
  1152. if (event.keyCode == "13")
  1153. {
  1154. model.setFocus("btn_save");
  1155. }
  1156. ]]>
  1157. </script>
  1158. </input>
  1159. <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; ">
  1160. <choices>
  1161. <item>
  1162. <label>2010년</label>
  1163. <value>2010</value>
  1164. </item>
  1165. <item>
  1166. <label>2009년</label>
  1167. <value>2009</value>
  1168. </item>
  1169. <item>
  1170. <label>2008년</label>
  1171. <value>2008</value>
  1172. </item>
  1173. </choices>
  1174. <script type="javascript" ev:event="xforms-value-changed">
  1175. <![CDATA[
  1176. var vCalcyear = model.getValue(cmb_calcyear.attribute("ref"));
  1177. if(vCalcyear == "2010")
  1178. {
  1179. model.setValue("/root/hidden/condition/calcyearvariable/variableA1", "0.06");
  1180. model.setValue("/root/hidden/condition/calcyearvariable/variableA2", "0");
  1181. model.setValue("/root/hidden/condition/calcyearvariable/variableB1", "0.15");
  1182. model.setValue("/root/hidden/condition/calcyearvariable/variableB2", "1080000");
  1183. model.setValue("/root/hidden/condition/calcyearvariable/variableC1", "0.24");
  1184. model.setValue("/root/hidden/condition/calcyearvariable/variableC2", "5220000");
  1185. model.setValue("/root/hidden/condition/calcyearvariable/variableD1", "0.35");
  1186. model.setValue("/root/hidden/condition/calcyearvariable/variableD2", "14900000");
  1187. cap_variableA1.value = "6%";
  1188. cap_variableA2.value = "0";
  1189. cap_variableB1.value = "15%";
  1190. cap_variableB2.value = "1080000";
  1191. cap_variableC1.value = "24%";
  1192. cap_variableC2.value = "5220000";
  1193. cap_variableD1.value = "35%";
  1194. cap_variableD2.value = "14900000";
  1195. }
  1196. else if(vCalcyear == "2009")
  1197. {
  1198. model.setValue("/root/hidden/condition/calcyearvariable/variableA1", "0.06");
  1199. model.setValue("/root/hidden/condition/calcyearvariable/variableA2", "0");
  1200. model.setValue("/root/hidden/condition/calcyearvariable/variableB1", "0.16");
  1201. model.setValue("/root/hidden/condition/calcyearvariable/variableB2", "1200000");
  1202. model.setValue("/root/hidden/condition/calcyearvariable/variableC1", "0.25");
  1203. model.setValue("/root/hidden/condition/calcyearvariable/variableC2", "5340000");
  1204. model.setValue("/root/hidden/condition/calcyearvariable/variableD1", "0.35");
  1205. model.setValue("/root/hidden/condition/calcyearvariable/variableD2", "14140000");
  1206. cap_variableA1.value = "6%";
  1207. cap_variableA2.value = "0";
  1208. cap_variableB1.value = "16%";
  1209. cap_variableB2.value = "1200000";
  1210. cap_variableC1.value = "25%";
  1211. cap_variableC2.value = "5340000";
  1212. cap_variableD1.value = "35%";
  1213. cap_variableD2.value = "14140000";
  1214. }
  1215. else if(vCalcyear == "2008")
  1216. {
  1217. model.setValue("/root/hidden/condition/calcyearvariable/variableA1", "0.08");
  1218. model.setValue("/root/hidden/condition/calcyearvariable/variableA2", "0");
  1219. model.setValue("/root/hidden/condition/calcyearvariable/variableB1", "0.17");
  1220. model.setValue("/root/hidden/condition/calcyearvariable/variableB2", "1080000");
  1221. model.setValue("/root/hidden/condition/calcyearvariable/variableC1", "0.26");
  1222. model.setValue("/root/hidden/condition/calcyearvariable/variableC2", "5220000");
  1223. model.setValue("/root/hidden/condition/calcyearvariable/variableD1", "0.35");
  1224. model.setValue("/root/hidden/condition/calcyearvariable/variableD2", "13140000");
  1225. cap_variableA1.value = "8%";
  1226. cap_variableA2.value = "0";
  1227. cap_variableB1.value = "17%";
  1228. cap_variableB2.value = "1080000";
  1229. cap_variableC1.value = "26%";
  1230. cap_variableC2.value = "5220000";
  1231. cap_variableD1.value = "35%";
  1232. cap_variableD2.value = "13140000";
  1233. }
  1234. model.refresh();
  1235. ]]>
  1236. </script>
  1237. </select1>
  1238. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:953px; top:14px; width:56px; height:22px; text-align:left; ">
  1239. <caption>조회</caption>
  1240. <script type="javascript" ev:event="DOMActivate">
  1241. <![CDATA[
  1242. fSearch();
  1243. ]]>
  1244. </script>
  1245. </button>
  1246. <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; ">
  1247. <choices>
  1248. <itemset>
  1249. <label/>
  1250. <value/>
  1251. </itemset>
  1252. </choices>
  1253. </select1>
  1254. <caption id="cap_belongyear" class="cell_1" style="left:345px; top:608px; width:176px; height:23px; text-align:center; vertical-align:middle; ">귀 속 년 도</caption>
  1255. <caption id="caption31" style="left:632px; top:610px; width:20px; height:20px; ">~</caption>
  1256. <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; "/>
  1257. <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; "/>
  1258. <select id="chk_belongyear" ref="/root/init/belongyear" overflow="visible" appearance="full" style="left:760px; top:610px; width:50px; height:20px; border-style:none; ">
  1259. <choices>
  1260. <item>
  1261. <label>수정</label>
  1262. <value>Y</value>
  1263. </item>
  1264. </choices>
  1265. <script type="javascript" ev:event="xforms-value-changed">
  1266. <![CDATA[
  1267. if(model.getValue(chk_belongyear.attribute("ref")) == "Y")
  1268. {
  1269. ipt_belongyearfrom.disabled = false;
  1270. ipt_belongyearto.disabled = false;
  1271. }
  1272. else
  1273. {
  1274. ipt_belongyearfrom.disabled = true;
  1275. ipt_belongyearto.disabled = true;
  1276. }
  1277. ]]>
  1278. </script>
  1279. </select>
  1280. <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; ">
  1281. <choices>
  1282. <item>
  1283. <label>미적용[0%]</label>
  1284. <value>N</value>
  1285. </item>
  1286. <item>
  1287. <label>적용[30%]</label>
  1288. <value>Y</value>
  1289. </item>
  1290. </choices>
  1291. <script type="javascript" ev:event="xforms-value-changed">
  1292. <![CDATA[
  1293. // model.setValue("/root/main/list/orchlist/emplno", "");
  1294. // model.setValue("/root/main/list/orchlist/rrgstno", "");
  1295. // model.setValue("/root/main/list/orchlist/name", "");
  1296. // ipt_name.refresh();
  1297. var vCustFlag = model.getValue("/root/hidden/condition/custflag");
  1298. if(vCustFlag == "1")
  1299. {
  1300. ipt_emplno.visible = true;
  1301. ipt_emplnm.visible = true;
  1302. btn_userhelp.visible = true;
  1303. btn_icpnhelp.visible = false;
  1304. ipt_rrgstno.visible = false;
  1305. ipt_name.visible = false;
  1306. }
  1307. else if(vCustFlag == "2")
  1308. {
  1309. ipt_emplno.visible = false;
  1310. ipt_emplnm.visible = false;
  1311. btn_userhelp.visible = false;
  1312. btn_icpnhelp.visible = true;
  1313. ipt_rrgstno.visible = true;
  1314. ipt_name.visible = true;
  1315. }
  1316. // ipt_emplno.refresh();
  1317. // ipt_rrgstno.refresh();
  1318. // ipt_emplnm.refresh();
  1319. ]]>
  1320. </script>
  1321. </select1>
  1322. <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; ">
  1323. <choices>
  1324. <item>
  1325. <label>정년퇴직</label>
  1326. <value>1</value>
  1327. </item>
  1328. <item>
  1329. <label>정리해고</label>
  1330. <value>2</value>
  1331. </item>
  1332. <item>
  1333. <label>자발적퇴직</label>
  1334. <value>3</value>
  1335. </item>
  1336. <item>
  1337. <label>임원퇴직</label>
  1338. <value>4</value>
  1339. </item>
  1340. <item>
  1341. <label>중간정산</label>
  1342. <value>5</value>
  1343. </item>
  1344. <item>
  1345. <label>기타</label>
  1346. <value>6</value>
  1347. </item>
  1348. </choices>
  1349. </select1>
  1350. <caption id="cap_retrflag" class="cell_1" style="left:4px; top:480px; width:100px; height:23px; vertical-align:middle; ">퇴직구분</caption>
  1351. </group>
  1352. <group id="grp_btn" scroll="auto" style="left:0px; top:647px; width:1011px; height:27px; ">
  1353. <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:1011px; y2:0px; "/>
  1354. <button id="btn_save" class="btn4_letter2" style="left:817px; top:3px; width:56px; height:22px; ">
  1355. <caption>저장</caption>
  1356. <script type="javascript" ev:event="onclick">
  1357. <![CDATA[
  1358. // alert(model.getValue("/root/main/list/orch/unsldd"));
  1359. // alert(model.getValue("/root/main/list/orch/chrgflag"));
  1360. // alert(model.getValue("/root/main/list/orchlist/chrgflag"));
  1361. if(model.getValue("/root/main/list/orch/unslno") == "")
  1362. {
  1363. if(model.getValue("/root/main/list/orch/paydd") == "")
  1364. {
  1365. messageBox("지급일은 필수입니다.", "I000");
  1366. return false;
  1367. }
  1368. if(!isValidDateTime(model.getValue("/root/main/list/orch/paydd"), "YYYYMMDD"))
  1369. {
  1370. messageBox("지급일이 잘못되었습니다.", "I000");
  1371. return false;
  1372. }
  1373. model.setValue("/root/main/list/orch/unsldd", model.getValue("/root/main/list/orch/paydd"));
  1374. }
  1375. if(!isValidDateTime(model.getValue("/root/main/list/orchlist/fromdd"), "YYYYMMDD"))
  1376. {
  1377. messageBox("입사일이 잘못되었습니다.", "I000");
  1378. return false;
  1379. }
  1380. if(!isValidDateTime(model.getValue("/root/main/list/orchlist/todd"), "YYYYMMDD"))
  1381. {
  1382. messageBox("퇴사일이 잘못되었습니다.", "I000");
  1383. return false;
  1384. }
  1385. fSave();
  1386. var receiveref = model.getValue("/root/target/receiveref");
  1387. if(receiveref != "")
  1388. {
  1389. if (checkOpener())
  1390. {
  1391. opener.model.makeValue(receiveref + "/seqno", model.getValue("/root/main/list/orch/seqno"));
  1392. opener.model.makeValue(receiveref + "/amt", model.getValue("/root/main/list/orchlist/retireamt"));
  1393. opener.model.makeValue(receiveref + "/etcnotefact", model.getValue("/root/main/list/orchlist/cmt"));
  1394. opener.model.makeValue(receiveref + "/incmtax", model.getValue("/root/hidden/calclist/T"));
  1395. opener.model.makeValue(receiveref + "/resdntax", model.getValue("/root/hidden/calclist/U"));
  1396. }
  1397. else
  1398. {
  1399. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  1400. }
  1401. }
  1402. model.setFocus("btn_close");
  1403. ]]>
  1404. </script>
  1405. <script type="javascript" ev:event="onkeypress">
  1406. <![CDATA[
  1407. if (event.keyCode == "13")
  1408. {
  1409. fSave();
  1410. model.setFocus("btn_close");
  1411. }
  1412. ]]>
  1413. </script>
  1414. </button>
  1415. <button id="btn_delete" class="btn4_letter2" navindex="-1" style="left:875px; top:3px; width:56px; height:22px; ">
  1416. <caption>삭제</caption>
  1417. <script type="javascript" ev:event="DOMActivate">
  1418. <![CDATA[
  1419. fDelete();
  1420. var receiveref = model.getValue("/root/target/receiveref");
  1421. if(receiveref != "")
  1422. {
  1423. if (checkOpener())
  1424. {
  1425. opener.model.makeValue(receiveref + "/seqno", model.getValue("/root/main/list/orch/seqno"));
  1426. opener.model.makeValue(receiveref + "/amt", model.getValue("/root/main/list/orchlist/retireamt"));
  1427. opener.model.makeValue(receiveref + "/etcnotefact", model.getValue("/root/main/list/orchlist/cmt"));
  1428. opener.model.makeValue(receiveref + "/incmtax", model.getValue("/root/hidden/calclist/T"));
  1429. opener.model.makeValue(receiveref + "/resdntax", model.getValue("/root/hidden/calclist/U"));
  1430. }
  1431. else
  1432. {
  1433. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  1434. }
  1435. }
  1436. ]]>
  1437. </script>
  1438. </button>
  1439. <button id="btn_close" class="btn4_letter2" navindex="-1" style="left:933px; top:3px; width:56px; height:22px; ">
  1440. <caption>닫기</caption>
  1441. <script type="javascript" ev:event="DOMActivate">
  1442. <![CDATA[
  1443. var receiveref = model.getValue("/root/target/receiveref");
  1444. if(receiveref != "")
  1445. {
  1446. if (checkOpener())
  1447. {
  1448. opener.model.makeValue(receiveref + "/seqno", model.getValue("/root/main/list/orch/seqno"));
  1449. opener.model.makeValue(receiveref + "/amt", model.getValue("/root/main/list/orchlist/retireamt"));
  1450. opener.model.makeValue(receiveref + "/etcnotefact", model.getValue("/root/main/list/orchlist/cmt"));
  1451. opener.model.makeValue(receiveref + "/incmtax", model.getValue("/root/hidden/calclist/T"));
  1452. opener.model.makeValue(receiveref + "/resdntax", model.getValue("/root/hidden/calclist/U"));
  1453. }
  1454. else
  1455. {
  1456. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  1457. }
  1458. }
  1459. window.close();
  1460. ]]>
  1461. </script>
  1462. </button>
  1463. </group>
  1464. </xhtml:body>
  1465. </xhtml:html>