226 lines
5.0 KiB
C#
226 lines
5.0 KiB
C#
|
|
using Ease.Core.Model;
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
namespace HRM.BO
|
|
{
|
|
|
|
public class SalaryMonthlyDetail :UpdateAuditTrail
|
|
{
|
|
#region Constructor
|
|
|
|
public SalaryMonthlyDetail()
|
|
{
|
|
_salaryMonthlyID = 0;
|
|
_itemID = 0;
|
|
_supportID = 0;
|
|
_description = string.Empty;
|
|
_position = 0;
|
|
_calculatedAmount = 0;
|
|
_changedAmount = 0;
|
|
_itemCode = 0;
|
|
_ADParamEmployee = null;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region salaryMonthlyID : ID
|
|
|
|
private int _salaryMonthlyID;
|
|
public int SalaryMonthlyID
|
|
{
|
|
get { return _salaryMonthlyID; }
|
|
set
|
|
{
|
|
|
|
_salaryMonthlyID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region itemID : int
|
|
|
|
private int _itemID;
|
|
public int ItemID
|
|
{
|
|
get { return _itemID; }
|
|
set
|
|
{
|
|
|
|
_itemID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region supportID : ID
|
|
|
|
private int? _supportID;
|
|
public int? SupportID
|
|
{
|
|
get { return _supportID; }
|
|
set
|
|
{
|
|
|
|
_supportID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region description : string
|
|
|
|
private string _description;
|
|
public string Description
|
|
{
|
|
get { return _description; }
|
|
set
|
|
{
|
|
|
|
_description = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region position : int
|
|
|
|
private int _position;
|
|
public int Position
|
|
{
|
|
get { return _position; }
|
|
set
|
|
{
|
|
|
|
_position = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region calculatedAmount : double
|
|
|
|
private double _calculatedAmount;
|
|
public double CalculatedAmount
|
|
{
|
|
get { return _calculatedAmount; }
|
|
set
|
|
{
|
|
|
|
_calculatedAmount = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region changedAmount : double
|
|
|
|
private double _changedAmount;
|
|
public double ChangedAmount
|
|
{
|
|
get { return _changedAmount; }
|
|
set
|
|
{
|
|
|
|
_changedAmount = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region itemCode : EnumPaySlipItemCode
|
|
|
|
private EnumSalaryItemCode _itemCode;
|
|
public EnumSalaryItemCode ItemCode
|
|
{
|
|
get { return _itemCode; }
|
|
set
|
|
{
|
|
|
|
_itemCode = value;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region itemGroup : EnumPaySlipItemCode
|
|
|
|
private EnumSalaryGroup _itemGroupCode;
|
|
public EnumSalaryGroup itemGroupCode
|
|
{
|
|
get { return _itemGroupCode; }
|
|
set
|
|
{
|
|
|
|
_itemGroupCode = value;
|
|
}
|
|
}
|
|
|
|
|
|
private ADParameterEmployee _ADParamEmployee;
|
|
public ADParameterEmployee ADParamEmployee
|
|
{
|
|
get { return _ADParamEmployee; }
|
|
set
|
|
{
|
|
_ADParamEmployee = value;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
#region Service Factory ISalaryMonthlyService : ISalaryMonthlyService
|
|
|
|
internal static ISalaryMonthlyService Service
|
|
{
|
|
get { return Services.Factory.CreateService<ISalaryMonthlyService>(typeof(ISalaryMonthlyService)); }
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
#endregion
|
|
|
|
//#region Functions
|
|
|
|
|
|
//public EnumIncomeTaxItemGroup GetTaxGroupCode()
|
|
//{
|
|
// EnumIncomeTaxItemGroup itemgroup = EnumIncomeTaxItemGroup.None;
|
|
// switch (this.ItemCode)
|
|
// {
|
|
// case EnumSalaryItemCode.Basic_Salary:
|
|
// itemgroup = EnumIncomeTaxItemGroup.Basic_Salary;
|
|
// break;
|
|
// case EnumSalaryItemCode.Over_Time_Amount:
|
|
// itemgroup = EnumIncomeTaxItemGroup.TimeCard;
|
|
// break;
|
|
// case EnumSalaryItemCode.Bonus:
|
|
// itemgroup = EnumIncomeTaxItemGroup.Bonus;
|
|
// break;
|
|
// case EnumSalaryItemCode.Allowance:
|
|
// itemgroup = EnumIncomeTaxItemGroup.Other_Allowance;
|
|
// break;
|
|
// case EnumSalaryItemCode.Deduction:
|
|
// itemgroup = EnumIncomeTaxItemGroup.Other_Allowance;
|
|
// break;
|
|
// case EnumSalaryItemCode.PF_Contribution:
|
|
// itemgroup = EnumIncomeTaxItemGroup.Company_Contri_PF;
|
|
// break;
|
|
// default:
|
|
// break;
|
|
// }
|
|
// return itemgroup;
|
|
//}
|
|
//#endregion
|
|
|
|
}
|
|
|
|
}
|