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 UploadEncashAmount public class UploadEncashAmount : BasicBaseObject { #region Constructor public UploadEncashAmount() { //_nEmpID = null; //_nLeaveID = null; //_days = 0; //_basicSalary = 0.0; //_leaveYear = 0; } #endregion #region Properties public int EmployeeID { get; set; } public int LeaveID { get; set; } public int Days { get; set; } public int LeaveYear { get; set; } public double BasicSalary { get; set; } #endregion //#region Functions //public void Save(List items) //{ // //this.SetAuditTrailProperties(); // UploadEncashAmount.Service.Save(items); //} //public void Delete(ID id) //{ // UploadEncashAmount.Service.Delete(id); //} //#endregion //#region Collection Functions //public static List Get() //{ // #region Cache Header // List UploadEncashAmounts = _cache["Get"] as List; // if (UploadEncashAmounts != null) // return UploadEncashAmounts; // #endregion // UploadEncashAmounts = UploadEncashAmount.Service.Get(); // #region Cache Footer // _cache.Add(UploadEncashAmounts, "Get"); // #endregion // return UploadEncashAmounts; //} //public static List Get(ID EmpID) //{ // #region Cache Header // List UploadEncashAmounts = _cache["Get", EmpID] as List; // if (UploadEncashAmounts != null) // return UploadEncashAmounts; // #endregion // UploadEncashAmounts = UploadEncashAmount.Service.Get(EmpID); // #region Cache Footer // _cache.Add(UploadEncashAmounts, "Get", EmpID); // #endregion // return UploadEncashAmounts; //} //#endregion //#region Service Factory //internal static IUploadEncashAmountService Service //{ // get { return Services.Factory.CreateService(typeof(IUploadEncashAmountService)); } //} //#endregion } #endregion #region IUploadEncashAmount Service public interface IUploadEncashAmountService { List Get(); List Get(int EmpID); void Save(List items); void Delete(int id); } #endregion }