using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ease.Core; using Ease.Core.Model; using System.Data; namespace HRM.BO { #region PFTransaction public class PFException : AuditTrailBase { #region Constructor public PFException() { //_employeeID = null; //_startDate = DateTime.MinValue; //_cPFPercent = 0; //_ePFPercent = 0; //_ePFAmount = 0; //_cPFAmount = 0; } #endregion #region Properties public int EmployeeID { get; set; } public double EPFPercent { get; set; } public double CPFPercent { get; set; } public double EPFAmount { get; set; } public double CPFAmount { get; set; } public DateTime StartDate { get; set; } public string EmployeeName { get; set; } public string EmployeeNo { get; set; } #endregion //#region Service Factory IPFExceptionService : IPFExceptionService //internal static IPFExceptionService Service //{ // get { return Services.Factory.CreateService(typeof(IPFExceptionService)); } //} //#endregion //#region Functions //public static List Get() //{ // #region Cache Header // List pFExceptions = _cache["Get"] as List; // if (pFExceptions != null) // return pFExceptions; // #endregion // try // { // pFExceptions = Service.Get(); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // #region Cache Footer // _cache.Add(pFExceptions, "Get"); // #endregion // return pFExceptions; //} //public PFException Get(ID PFExceptionID) //{ // #region Cache Header // PFException pFException = _cache["Get", PFExceptionID] as PFException; // if (pFException != null) // return pFException; // #endregion // try // { // pFException = Service.Get(PFExceptionID); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // #region Cache Footer // _cache.Add(pFException, "Get", PFExceptionID); // #endregion // return pFException; //} //public ID Save() //{ // this.SetAuditTrailProperties(); // return PFException.Service.Save(this); //} //public void Delete() //{ // PFException.Service.Delete(this.ID); //} //#endregion } #endregion //#region IPFException Service //public interface IPFExceptionService //{ // List Get(); // PFException Get(ID PFExceptionID); // ID Save(PFException item); // void Delete(ID PFExceptionID); //} //#endregion }