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 PFinterestProvision public class PFinterestProvision : AuditTrailBase { #region Constructor public PFinterestProvision() { //_employeeID = null; //_pFTransactionID = null; //_processedMonthDate = DateTime.MinValue; //_pFamount = 0; //_cPFAmount = 0; //_pFIntProvision = 0; //_cPFIntProvision = 0; //_pending = false; //_pFTransaction = null; } #endregion #region Properties public int EmployeeID { get; set; } public DateTime ProcessedMonthDate { get; set; } public int PFTransactionID { get; set; } public double PFamount { get; set; } public double CPFAmount { get; set; } public double PFIntProvision { get; set; } public double CPFIntProvision { get; set; } public bool Pending { get; set; } public PFTransaction PFTransaction { get; set; } //#region Service Factory IPFinterestProvisionService : IPFinterestProvisionService //internal static IPFinterestProvisionService Service //{ // get { return Services.Factory.CreateService(typeof(IPFinterestProvisionService)); } //} //#endregion #endregion //#region Functions //public static PFinterestProvision Get(ID nEmpID) //{ // PFinterestProvision oPFinterestProvision = null; // #region Cache Header // oPFinterestProvision = (PFinterestProvision)_cache["Get", nEmpID]; // if (oPFinterestProvision != null) // return oPFinterestProvision; // #endregion // oPFinterestProvision = PFinterestProvision.Service.Get(nEmpID); // #region Cache Footer // _cache.Add(oPFinterestProvision, "Get", nEmpID); // #endregion // return oPFinterestProvision; //} //public static List Get() //{ // #region Cache Header // List pFinterestProvisions = _cache["Get"] as List; // if (pFinterestProvisions != null) // return pFinterestProvisions; // #endregion // try // { // pFinterestProvisions = Service.Get(); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // #region Cache Footer // _cache.Add(pFinterestProvisions, "Get"); // #endregion // return pFinterestProvisions; //} //public ID Save() //{ // this.SetAuditTrailProperties(); // return PFinterestProvision.Service.Save(this); //} //public void Delete() //{ // PFinterestProvision.Service.Delete(ID); //} //#endregion } #endregion //#region IPFinterestProvision Service //public interface IPFinterestProvisionService //{ // PFinterestProvision Get(ID nEmpID); // List Get(); // ID Save(PFinterestProvision item); // void Delete(ID id); //} //#endregion }