代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
CSharp
】
2013个人所得税计算
作者:
DDT
/ 发布于
2013/2/1
/
2561
using System; using System.Data; using System.Configuration; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; /// <summary> ///TaxInfo 个人所得税详细信息 ///版本:1.0 ///官网:http://www.9aicai.com ///名称:爱财个人所得税计算器(C#版) 2012-2013 /// </summary> public class TaxInfo { public TaxInfo() { // //TODO: 在此处添加构造函数逻辑 // } /// <summary> /// 工资收入 /// </summary> public decimal Income { set; get; } /// <summary> /// 纳税人员类型,是否外籍人士 /// </summary> public bool IsForeign { set; get; } /// <summary> /// 五险一金 /// </summary> public decimal Golds { set; get; } /// <summary> /// 个人所得税起征点 /// </summary> public decimal StartPoint { set; get; } /// <summary> /// 应纳税所得额 /// </summary> public decimal TaxableIncome { set; get; } /// <summary> /// 适用税率 /// </summary> public decimal Rate { set; get; } /// <summary> /// 速算扣除数 /// </summary> public decimal Deduct { set; get; } /// <summary> /// 应纳税额 /// </summary> public decimal Tax { set; get; } /// <summary> /// 税后收入 /// </summary> public decimal IncomeAfterTax { set; get; } } using System; using System.Data; using System.Configuration; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; /// <summary> ///TaxManager 个人所得税的计算处理 ///版本:1.0 ///官网:http://www.9aicai.com ///名称:爱财个人所得税计算器(C#版) 2012-2013 /// </summary> public class TaxManager { public TaxManager() { // //TODO: 在此处添加构造函数逻辑 // } /// <summary> /// 计算个人所得税 /// </summary> /// <param name="income">工资收入</param> /// <param name="golds">五险一金</param> /// <param name="isForeign">是否是外籍人员</param> /// <returns>个人所得税计算结果</returns> public static TaxInfo Calc(decimal income, decimal golds, bool isForeign) { TaxInfo taxInfo = new TaxInfo(); taxInfo.Income = income; taxInfo.Golds = golds; taxInfo.IsForeign = isForeign; //国内人员与外籍人员的起征点是不一样的, taxInfo.StartPoint = taxInfo.IsForeign ? 4800 : 3500; taxInfo.TaxableIncome = taxInfo.Income - taxInfo.Golds - taxInfo.StartPoint; decimal rate, deduct; //不需要纳税,应纳税额小于等于0 if (taxInfo.TaxableIncome <= 0) { taxInfo.Rate = 0; taxInfo.Deduct = 0; taxInfo.Tax = 0; taxInfo.IncomeAfterTax = taxInfo.Income; }//下面是需要纳税部分 else { //获取对应的税率与速算扣除数 getRateAndDeduct(taxInfo.TaxableIncome, out rate, out deduct); taxInfo.Rate = rate; taxInfo.Deduct = deduct; taxInfo.Tax = taxInfo.TaxableIncome * taxInfo.Rate - taxInfo.Deduct; taxInfo.IncomeAfterTax = taxInfo.Income - taxInfo.Golds - taxInfo.Tax; } return taxInfo; } /// <summary> /// 获取对应的税率与速算扣除数,采用最新七级超额累进个人所得税税率表 /// </summary> /// <param name="taxableIncome">应纳税所得额</param> /// <param name="rate">适用税率</param> /// <param name="deduct">速算扣除数</param> private static void getRateAndDeduct(decimal taxableIncome, out decimal rate, out decimal deduct) { if (taxableIncome <= 1500) { rate = 3; deduct = 0; } else if (taxableIncome > 1500 && taxableIncome <= 4500) { rate = 10; deduct = 105; } else if (taxableIncome > 4500 && taxableIncome <= 9000) { rate = 20; deduct = 555; } else if (taxableIncome > 9000 && taxableIncome <= 35000) { rate = 25; deduct = 1005; } else if (taxableIncome > 35000 && taxableIncome <= 55000) { rate = 30; deduct = 2755; } else if (taxableIncome > 55000 && taxableIncome <= 80000) { rate = 35; deduct = 5505; } else { rate = 45; deduct = 13505; } } }
试试其它关键字
个人所得税
同语言下
.
文件IO 操作类库
.
Check图片类型[JPEG(.jpg 、.jpeg),TIF,GIF,BMP,PNG,P
.
机器名和IP取得(IPV4 IPV6)
.
Tiff转换Bitmap
.
linqHelper
.
MadieHelper.cs
.
RegHelper.cs
.
如果关闭一个窗体后激活另一个窗体的事件或方法
.
创建日志通用类
.
串口辅助开发类
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
DDT
贡献的其它代码
(
160
)
.
Oracle统计表的数据行和数据块信息
.
html标签闭合检测与修复
.
Powershell日期计算
.
Powershell的Base64编解码
.
Powershell并行循环
.
Powershell目录中搜索文本
.
Powershell枚举远程机器上的本地权限组
.
VBScript解析csv文件
.
快速排序之Powershell
.
批处理输出格式化时间字符串
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3