75 lines
2.1 KiB
C#
75 lines
2.1 KiB
C#
|
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<IEmployeeCostCenterService>(typeof(IEmployeeCostCenterService)); }
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region IEmployeeCostCenter Service
|
|||
|
|
|||
|
public interface IEmployeeCostCenterService
|
|||
|
{
|
|||
|
EmployeeCostCenter Get(int id);
|
|||
|
List<EmployeeCostCenter> Get();
|
|||
|
List<EmployeeCostCenter> GetByEmpID(int nID);
|
|||
|
List<EmployeeCostCenter> GetByCCID(int nID);
|
|||
|
List<EmployeeCostCenter> 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<EmployeeCostCenter> _empCostCenters);
|
|||
|
void Delete(int id);
|
|||
|
List<EmployeeCostCenter> GetByMonthStartEnd(DateTime strt, DateTime end, int payrollTypeID);
|
|||
|
|
|||
|
List<EmployeeCostCenter> Get(List<EmployeeCostCenter> empCRGInvolvements, int employeeID);
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|