using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { public class FndMngmentWF : BasicBaseObject { #region Constructor public FndMngmentWF() { _sPurchaseType = string.Empty; _sDescription = string.Empty; _dPurchaseAmount = 0; _dPFAmount = 0; _dCFAmount = 0; _dPFInterest = 0; _dCFInterest = 0; _dGratuity = 0; _nEmployeeID = 0; _status = EnumStatus.Active; FndMngmentEmps = null; } #endregion #region Properties #region PurchaseType : string private string _sPurchaseType; public string PurchaseType { get { return _sPurchaseType; } set { _sPurchaseType = value; } } #endregion #region PurchaseAmount : double private double _dPurchaseAmount; public double PurchaseAmount { get { return _dPurchaseAmount; } set { _dPurchaseAmount = value; } } #endregion #region PFAmount : double private double _dPFAmount; public double PFAmount { get { return _dPFAmount; } set { _dPFAmount = value; } } #endregion #region CFAmount : double private double _dCFAmount; public double CFAmount { get { return _dCFAmount; } set { _dCFAmount = value; } } #endregion #region PFInterest : double private double _dPFInterest; public double PFInterest { get { return _dPFInterest; } set { _dPFInterest = value; } } #endregion #region CFInterest : double private double _dCFInterest; public double CFInterest { get { return _dCFInterest; } set { _dCFInterest = value; } } #endregion #region Gratuity : double private double _dGratuity; public double Gratuity { get { return _dGratuity; } set { _dGratuity = value; } } #endregion #region EmployeeID : ID private int _nEmployeeID; public int EmployeeID { get { return _nEmployeeID; } set { _nEmployeeID = value; } } #endregion #region Description : string private string _sDescription; public string Description { get { return _sDescription; } set { _sDescription = value; } } #endregion public List FndMngmentEmps { get; set; } public List AllFndMngEmpRemarks { get; set; } //#region FndMngmentEmps : List //private List _oFndMngmentEmp; //public List FndMngmentEmps //{ // get // { // if (this.int != null && _oFndMngmentEmp == null) // { // _oFndMngmentEmp = FndMngmentWF.Service.GetFndMngmentEmps(this.ID); // } // return _oFndMngmentEmp; // } // set { _oFndMngmentEmp = value; } //} //#endregion //#region FndMngmentEmps : List //private List _oAllFndMngEmpRemarks; //public List AllFndMngEmpRemarks //{ // get // { // if (this.int != null && _oAllFndMngEmpRemarks == null) // { // _oAllFndMngEmpRemarks = FndMngmentWF.Service.GetAllFndMngmentEmpRemarks(this.ID); // } // return _oAllFndMngEmpRemarks; // } // set { _oAllFndMngEmpRemarks = value; } //} //#endregion //#region Service Factory //internal static IFndMngmentWFService Service //{ // get { return Services.Factory.CreateService(typeof(IFndMngmentWFService)); } //} //#endregion #endregion //#region Functions //public static FndMngmentWF Get(int FndMngmentId) //{ // FndMngmentWF oFndMngment = null; // #region Cache Header // oFndMngment = (FndMngmentWF)_cache["Get", FndMngmentId]; // if (oFndMngment != null) // return oFndMngment; // #endregion // oFndMngment = FndMngmentWF.Service.Get(FndMngmentId); // #region Cache Footer // _cache.Add(oFndMngment, "Get", FndMngmentId); // #endregion // return oFndMngment; //} //public static List Get(EnumStatus status) //{ // #region Cache Header // List FndMngments = _cache["Get"] as List; // if (FndMngments != null) // return FndMngments; // #endregion // FndMngments = FndMngmentWF.Service.Get(status); // #region Cache Footer // _cache.Add(FndMngments, "Get"); // #endregion // return FndMngments; //} //public int Save() //{ // this.SetAuditTrailProperties(); // return FndMngmentWF.Service.Save(this); //} //public void Delete() //{ // FndMngmentWF.Service.Delete(this.ID); //} //public void Deactivate() //{ // this.SetAuditTrailProperties(); // FndMngmentWF.Service.Deactivate(this); //} //public static List GetFndMngmentEmpRemarks(int FndMngmentEmpID) //{ // #region Cache Header // List FndMngmentEmpRemarkses = _cache["GetFndMngmentEmpRemarks"] as List; // if (FndMngmentEmpRemarkses != null) // return FndMngmentEmpRemarkses; // #endregion // FndMngmentEmpRemarkses = FndMngmentWF.Service.GetFndMngmentEmpRemarks(FndMngmentEmpID); // #region Cache Footer // _cache.Add(FndMngmentEmpRemarkses, "GetFndMngmentEmpRemarks"); // #endregion // return FndMngmentEmpRemarkses; //} //#endregion } #region IFndMngment Service public interface IFndMngmentWFService { FndMngmentWF Get(int id); List Get(EnumStatus status); int Save(FndMngmentWF oFndMngment); void Delete(int id); List GetFndMngmentEmps(int FndMngmentWFID); List GetFndMngmentEmpRemarks(int FndMngmentEmpID); List GetAllFndMngmentEmpRemarks(int FndMngmentWFID); void Save(FndMngmentEmpRemarks oFndEmpRemarks); void Deactivate(FndMngmentWF fndMngmentWF); } #endregion }