using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { #region EmployeeCostCenter public class EmployeeCostCenter : AuditTrailBase { #region Constructor public EmployeeCostCenter() { EmployeeID = 0; MonthDate = DateTime.MinValue; CostCenterID = 0; Percentage = 0; IsCurrentCC = false; TillDate = DateTime.MinValue; //Costcenter = null; } #endregion #region Properties public int EmployeeID { get; set; } public DateTime MonthDate { get; set; } public int CostCenterID { get; set; } public double Percentage { get; set; } public bool IsCurrentCC { get; set; } public DateTime TillDate { get; set; } public Costcenter Costcenter { get; set; } //#region Service Factory IEmployeeCostCenterService : IEmployeeCostCenterService //internal static IEmployeeCostCenterService Service //{ // get { return Services.Factory.CreateService(typeof(IEmployeeCostCenterService)); } //} //#endregion #endregion } #endregion #region IEmployeeCostCenter Service public interface IEmployeeCostCenterService { EmployeeCostCenter Get(int id); List Get(); List GetByEmpID(int nID); List GetByCCID(int nID); List GetByEmpIDCCID(int nCCID, int nEmpID); DataSet GetEmpCC(DateTime dMonthDate, string sEmpID); DataSet GetEmpCCDetails(DateTime dMonthDate, string nEmpID); DateTime GetMaxDate(string nEmpID, DateTime monthDate); int Save(EmployeeCostCenter item); void Save(List _empCostCenters); void Delete(int id); List GetByMonthStartEnd(DateTime strt, DateTime end, int payrollTypeID); List Get(List empCRGInvolvements, int employeeID); } #endregion }