CEL_Payroll/Payroll.BO/Tax/TaxParameterSlab.cs

157 lines
3.3 KiB
C#
Raw Normal View History

2024-09-17 14:30:13 +06:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.CoreV35;
using Ease.CoreV35.Model;
using Ease.CoreV35.Caching;
using System.Data.Linq.Mapping;
namespace Payroll.BO
{
#region TaxParameterSlab
[Serializable]
public class TaxParameterSlab:AuditTrailBase
{
#region Cache Store
private static Cache _cache = new Cache(typeof(TaxParameterSlab));
#endregion
#region Constructor
public TaxParameterSlab()
{
_taxparamID = null;
_incomeAmount = 0;
_taxPercent = 0;
_sequenceNo = 0;
_paramType = EnumTaxSlabType.Age;
}
#endregion
#region Properties
#region TaxparamID : ID
private ID _taxparamID;
public ID TaxparamID
{
get { return _taxparamID; }
set
{
base.OnPropertyChange<ID>("TaxparamID", _taxparamID, value);
_taxparamID = value;
}
}
#endregion
#region incomeAmount : double
private double _incomeAmount;
public double IncomeAmount
{
get { return _incomeAmount; }
set
{
base.OnPropertyChange<double>("incomeAmount", _incomeAmount, value);
_incomeAmount = value;
}
}
#endregion
#region taxPercent : double
private double _taxPercent;
public double TaxPercent
{
get { return _taxPercent; }
set
{
base.OnPropertyChange<double>("taxPercent", _taxPercent, value);
_taxPercent = value;
}
}
#endregion
#region sequenceNo : int
private int _sequenceNo;
public int SequenceNo
{
get { return _sequenceNo; }
set
{
base.OnPropertyChange<int>("sequenceNo", _sequenceNo, value);
_sequenceNo = value;
}
}
#endregion
#region paramType : EnumIncomeTaxType
private EnumTaxSlabType _paramType;
public EnumTaxSlabType ParamType
{
get { return _paramType; }
set
{
base.OnPropertyChange<short>("paramType",(short) _paramType, (short)value);
_paramType = value;
}
}
#endregion
#region paramType : EnumIncomeTaxType
private double _slabTaxAmount;
public double SlabTaxAmount
{
get { return _slabTaxAmount; }
set
{
_slabTaxAmount = value;
}
}
private double _slabTaxableAmount;
public double SlabTaxableAmount
{
get { return _slabTaxableAmount; }
set
{
_slabTaxableAmount = value;
}
}
#endregion
public static double GetTotalTaxAmount(ObjectsTemplate<TaxParameterSlab> slabItems)
{
double amount = 0;
foreach (TaxParameterSlab item in slabItems)
{
amount = amount + item.SlabTaxAmount;
}
return amount;
}
#endregion
}
#endregion
}