256 lines
7.0 KiB
C#
256 lines
7.0 KiB
C#
|
|
|||
|
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<FndMngmentEmp> FndMngmentEmps { get; set; }
|
|||
|
public List<FndMngmentEmpRemarks> AllFndMngEmpRemarks { get; set; }
|
|||
|
|
|||
|
//#region FndMngmentEmps : List<FndMngmentEmp>
|
|||
|
|
|||
|
//private List<FndMngmentEmp> _oFndMngmentEmp;
|
|||
|
//public List<FndMngmentEmp> FndMngmentEmps
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// if (this.int != null && _oFndMngmentEmp == null)
|
|||
|
// {
|
|||
|
// _oFndMngmentEmp = FndMngmentWF.Service.GetFndMngmentEmps(this.ID);
|
|||
|
// }
|
|||
|
// return _oFndMngmentEmp;
|
|||
|
// }
|
|||
|
// set { _oFndMngmentEmp = value; }
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region FndMngmentEmps : List<FndMngmentEmpRemarks>
|
|||
|
|
|||
|
//private List<FndMngmentEmpRemarks> _oAllFndMngEmpRemarks;
|
|||
|
//public List<FndMngmentEmpRemarks> 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<IFndMngmentWFService>(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<FndMngmentWF> Get(EnumStatus status)
|
|||
|
//{
|
|||
|
// #region Cache Header
|
|||
|
// List<FndMngmentWF> FndMngments = _cache["Get"] as List<FndMngmentWF>;
|
|||
|
// 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<FndMngmentEmpRemarks> GetFndMngmentEmpRemarks(int FndMngmentEmpID)
|
|||
|
//{
|
|||
|
// #region Cache Header
|
|||
|
// List<FndMngmentEmpRemarks> FndMngmentEmpRemarkses = _cache["GetFndMngmentEmpRemarks"] as List<FndMngmentEmpRemarks>;
|
|||
|
// 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<FndMngmentWF> Get(EnumStatus status);
|
|||
|
int Save(FndMngmentWF oFndMngment);
|
|||
|
void Delete(int id);
|
|||
|
List<FndMngmentEmp> GetFndMngmentEmps(int FndMngmentWFID);
|
|||
|
|
|||
|
List<FndMngmentEmpRemarks> GetFndMngmentEmpRemarks(int FndMngmentEmpID);
|
|||
|
List<FndMngmentEmpRemarks> GetAllFndMngmentEmpRemarks(int FndMngmentWFID);
|
|||
|
|
|||
|
void Save(FndMngmentEmpRemarks oFndEmpRemarks);
|
|||
|
|
|||
|
void Deactivate(FndMngmentWF fndMngmentWF);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
}
|