using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { #region BonusEmpCostCenter public class BonusEmpCostCenter : AuditTrailBase { #region Constructor public BonusEmpCostCenter() { _BonusProcessID = 0; _costCenterID = 0; _percentage = 0.0; _employeeID = 0; } #endregion #region Properties #region BonusProcessID : ID private int _BonusProcessID; public int BonusProcessID { get { return _BonusProcessID; } set { _BonusProcessID = value; } } #endregion #region costCenterID : ID private int _costCenterID; public int CostCenterID { get { return _costCenterID; } set { _costCenterID = value; } } #endregion #region percentage : double private double _percentage; public double Percentage { get { return _percentage; } set { _percentage = value; } } #endregion #region employeeID : ID private int _employeeID; public int EmployeeID { get { return _employeeID; } set { _employeeID = value; } } #endregion #region Service Factory IBonusProcessService : IBonusProcessService internal static IBonusProcessService Service { get { return Services.Factory.CreateService(typeof(IBonusProcessService)); } } #endregion #endregion //#region Functions ////public static List GetEmpCostCenter(int nID) ////{ //// List oBonusEmpCostCenter = null; //// #region Cache Header //// oBonusEmpCostCenter = (List)_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 }