EchoTex_Payroll/HRM.BO/OverTime/OTSlab.cs

159 lines
3.4 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
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 OTSlab
public class OTSlab:AuditTrailBase
{
#region Constructor
public OTSlab()
{
//_termID = null;
//_hours = 0;
//_amount = 0;
}
#endregion
#region Properties
public int TermID { get; set; }
public int Hours { get; set; }
public double Amount { get; set; }
//#region Service Factory IOTSlabService : IOTSlabService
//internal static IOTSlabService Service
//{
// get { return Services.Factory.CreateService<IOTSlabService>(typeof(IOTSlabService)); }
//}
//#endregion
#endregion
//#region Functions
//public static OTSlab Get(ID nID)
//{
// OTSlab oOTSlab = null;
// #region Cache Header
// oOTSlab = (OTSlab)_cache["Get", nID];
// if (oOTSlab != null)
// return oOTSlab;
// #endregion
// oOTSlab = OTSlab.Service.Get(nID);
// #region Cache Footer
// _cache.Add(oOTSlab, "Get", nID);
// #endregion
// return oOTSlab;
//}
//public static List<OTSlab> Get()
//{
// #region Cache Header
// List<OTSlab> oTSlabs = _cache["Get"] as List<OTSlab>;
// if (oTSlabs != null)
// return oTSlabs;
// #endregion
// try
// {
// oTSlabs = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oTSlabs, "Get");
// #endregion
// return oTSlabs;
//}
//public static List<OTSlab> GetByTermID(ID nTermID)
//{
// #region Cache Header
// List<OTSlab> oTSlabs = _cache["Get",nTermID] as List<OTSlab>;
// if (oTSlabs != null)
// return oTSlabs;
// #endregion
// try
// {
// oTSlabs = Service.GetByTermID(nTermID);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oTSlabs, "Get",nTermID);
// #endregion
// return oTSlabs;
//}
//public static void Save(List<OTSlab> _OTSlabs)
//{
// //foreach (OTSlab oTSlab in _OTSlabs)
// //{
// // oTSlab.SetAuditTrailProperties();
// //}
// OTSlab.Service.Save(_OTSlabs);
//}
//public ID Save()
//{
// return OTSlab.Service.Save(this);
//}
//public void Delete()
//{
// OTSlab.Service.Delete(ID);
//}
//#endregion
}
#endregion
//#region IOTSlab Service
//public interface IOTSlabService
//{
// OTSlab Get(ID id);
// List<OTSlab> Get();
// List<OTSlab> GetByTermID(ID nTermID);
// ID Save(OTSlab item);
// void Save(List<OTSlab> _OTSlabs);
// void Delete(ID id);
//}
//#endregion
}