using Ease.Core.Utility; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { #region PayrollType public class PayrollType:AuditTrailBase { #region Constructor public PayrollType() { Description = string.Empty; NextPayProcessDate = DateTime.MinValue; TaxYearEndDate = DateTime.MinValue; TaxParamID = null; PFYearEndDate = DateTime.MinValue; PFYearEnd = DateTime.MinValue; //this.pFContriCompany = 10; } #endregion #region Properties public string Description { get; set; } public string Address { get; set; } public string CompanyName { get; set; } public string CompanyCode { get; set; } public DateTime NextPayProcessDate { get; set; } public DateTime TaxYearEndDate { get; set; } public int? TaxParamID { get; set; } public DateTime PFYearEndDate { get; set; } public DateTime PFYearEnd { get; set; } public bool ActualTaxInvestment { get; set; } public DateTime LastPayProcessDate { get { return Global.DateFunctions.LastDateOfMonth(NextPayProcessDate.AddMonths(-1)); } } public double pFContriCompany { get; set; } public byte[] Logo { get; set; } public DateTime? ExpectedSalaryDate { get; set; } public DateTime? ExpectedApprovalDate { get; set; } //#region Service Factory IPayrollTypeService : IPayrollTypeService //internal static IPayrollTypeService Service //{ // get { return Services.Factory.CreateService(typeof(IPayrollTypeService)); } //} //#endregion #endregion } #endregion #region IPayrollType Service public interface IPayrollTypeService { PayrollType Get(int id); List Get(); int Update(PayrollType item); List GetPayrollTypes(string loginid); List GetUsersAdminPayrollTypes(int employeeId); byte[] GetCompanyImage(int id); bool GetBenifitsProcessStatus(int payrolltypeid); public void UpdateExpectedSalaryandApprovalDate(DateTime expectedSalaryDate, DateTime expectedApprovalDate, int payrollTypeID); } #endregion }