130 lines
3.1 KiB
C#
130 lines
3.1 KiB
C#
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 BonusEmpCostCenter
|
|
|
|
[Serializable]
|
|
public class BonusEmpCostCenter : AuditTrailBase
|
|
{
|
|
#region Cache Store
|
|
|
|
private static Cache _cache = new Cache(typeof(BonusEmpCostCenter));
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
public BonusEmpCostCenter()
|
|
{
|
|
_BonusProcessID = null;
|
|
_costCenterID = null;
|
|
_percentage = 0.0;
|
|
_employeeID = null;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region BonusProcessID : ID
|
|
|
|
private ID _BonusProcessID;
|
|
public ID BonusProcessID
|
|
{
|
|
get { return _BonusProcessID; }
|
|
set
|
|
{
|
|
base.OnPropertyChange<ID>("BonusProcessID", _BonusProcessID, value);
|
|
_BonusProcessID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region costCenterID : ID
|
|
|
|
private ID _costCenterID;
|
|
public ID CostCenterID
|
|
{
|
|
get { return _costCenterID; }
|
|
set
|
|
{
|
|
base.OnPropertyChange<ID>("costCenterID", _costCenterID, value);
|
|
_costCenterID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region percentage : double
|
|
|
|
private double _percentage;
|
|
public double Percentage
|
|
{
|
|
get { return _percentage; }
|
|
set
|
|
{
|
|
base.OnPropertyChange<double>("percentage", _percentage, value);
|
|
_percentage = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region employeeID : ID
|
|
|
|
private ID _employeeID;
|
|
public ID EmployeeID
|
|
{
|
|
get { return _employeeID; }
|
|
set
|
|
{
|
|
base.OnPropertyChange<ID>("employeeID", _employeeID, value);
|
|
_employeeID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Service Factory IBonusProcessService : IBonusProcessService
|
|
|
|
internal static IBonusProcessService Service
|
|
{
|
|
get { return Services.Factory.CreateService<IBonusProcessService>(typeof(IBonusProcessService)); }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
#region Functions
|
|
|
|
//public static ObjectsTemplate<BonusEmpCostCenter> GetEmpCostCenter(ID nID)
|
|
//{
|
|
// ObjectsTemplate<SalaryEmpCostCenter> oBonusEmpCostCenter = null;
|
|
// #region Cache Header
|
|
// oBonusEmpCostCenter = (ObjectsTemplate<BonusEmpCostCenter>)_cache["GetEmpCostCenter", nID];
|
|
// if (oBonusEmpCostCenter != null)
|
|
// return oBonusEmpCostCenter;
|
|
// #endregion
|
|
// oBonusEmpCostCenter = BonusProcess.Service.GetEmpCostCenter(nID);
|
|
// #region Cache Footer
|
|
// _cache.Add(oBonusEmpCostCenter, "GetEmpCostCenter", nID);
|
|
// #endregion
|
|
// return oBonusEmpCostCenter;
|
|
//}
|
|
|
|
#endregion
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|