EchoTex_Payroll/HRM.BO/Employee/EmployeePosting.cs
2024-10-14 10:01:49 +06:00

73 lines
2.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;
namespace HRM.BO
{
#region EmployeePosting
public class EmployeePosting : AuditTrailBase
{
#region Constructor
public EmployeePosting()
{
EmployeeID = 0;
EffectDate = DateTime.MinValue;
DepartmentID = 0;
LocationID = 0;
DesignationID = 0;
//Employee = null;
//Department = null;
//Location = null;
//Designation = null;
}
#endregion
#region Properties
public int EmployeeID { get; set; }
public Employee Employee { get; set; }
public DateTime EffectDate { get; set; }
public int DepartmentID { get; set; }
public int LocationID { get; set; }
public int DesignationID { get; set; }
//public Employee Employee { get; set; }
//public Department Department { get; set; }
//public Location Location { get; set; }
//public Designation Designation { get; set; }
//#region Service Factory IEmployeePostingService : IEmployeePostingService
//internal static IEmployeePostingService Service
//{
// get { return Services.Factory.CreateService<IEmployeePostingService>(typeof(IEmployeePostingService)); }
//}
//#endregion
#endregion
}
#endregion
#region IEmployeePosting Service
public interface IEmployeePostingService
{
// EmployeePosting Get(ID id);
List<EmployeePosting> Get();
EmployeePosting Get(int nEmpID, DateTime dPostingDate, int payrollTypeID);
List<EmployeePosting> GetByEmpID(int nID);
DataSet GetEmpCurrentPosting(DateTime EffectDate, int payrollTypeID);
DataSet GetEmpPrvPosting(DateTime EffectDate, int payrollTypeID);
int Save(EmployeePosting item);
void Delete(int id);
void DeleteAll();
}
#endregion
}