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(typeof(IEmployeePostingService)); } //} //#endregion #endregion } #endregion #region IEmployeePosting Service public interface IEmployeePostingService { // EmployeePosting Get(ID id); List Get(); EmployeePosting Get(int nEmpID, DateTime dPostingDate, int payrollTypeID); List 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 }