using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ease.CoreV35; using Ease.CoreV35.Model; using Ease.CoreV35.Caching; using System.Data.Linq.Mapping; namespace Payroll.BO { #region SAPDataProcessDetail [Serializable] public class SAPDataProcessDetail : AuditTrailBase { #region Cache Store private static Cache _cache = new Cache(typeof(SAPDataProcessDetail)); #endregion #region Constructor public SAPDataProcessDetail() { _EmployeeNo = string.Empty; _name = string.Empty; _DataType = string.Empty; _Description = string.Empty; _SAPDataProcessID = ID.FromInteger(0); } #endregion #region Properties #region EmployeeNo : string private string _EmployeeNo; public string EmployeeNo { get { return _EmployeeNo; } set { base.OnPropertyChange("EmployeeNo", _EmployeeNo, value); _EmployeeNo = value; } } #endregion #region SAPDataProcessID : ID private ID _SAPDataProcessID; public ID SAPDataProcessID { get { return _SAPDataProcessID; } set { base.OnPropertyChange("SAPDataProcessID", _SAPDataProcessID, value); _SAPDataProcessID = value; } } #endregion #region name : string private string _name; public string Name { get { return _name; } set { base.OnPropertyChange("name", _name, value); _name = value; } } #endregion #region DataType : string private string _DataType; public string DataType { get { return _DataType; } set { base.OnPropertyChange("DataType", _DataType, value); _DataType = value; } } #endregion #region Description : string private string _Description; public string Description { get { return _Description; } set { base.OnPropertyChange("Description", _Description, value); _Description = value; } } #endregion #region Service Factory ISAPDataProcessService : ISAPDataProcessService internal static ISAPDataProcessService Service { get { return Services.Factory.CreateService(typeof(ISAPDataProcessService)); } } #endregion #endregion #region Functions //public static SAPDataProcessDetail Get(ID nID) //{ // SAPDataProcessDetail oSAPDataProcessDetail = null; // #region Cache Header // oSAPDataProcessDetail = (SAPDataProcessDetail)_cache["Get", nID]; // if (oSAPDataProcessDetail != null) // return oSAPDataProcessDetail; // #endregion // oSAPDataProcessDetail = SAPDataProcessDetail.Service.Get(nID); // #region Cache Footer // _cache.Add(oSAPDataProcessDetail, "Get", nID); // #endregion // return oSAPDataProcessDetail; //} //public static ObjectsTemplate Get() //{ // #region Cache Header // ObjectsTemplate SAPDataProcessDetails = _cache["Get"] as ObjectsTemplate; // if (SAPDataProcessDetails != null) // return SAPDataProcessDetails; // #endregion // try // { // SAPDataProcessDetails = Service.Get(); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // #region Cache Footer // _cache.Add(SAPDataProcessDetails, "Get"); // #endregion // return SAPDataProcessDetails; //} //public ID Save() //{ // base.SetAuditTrailProperties(); // return SAPDataProcessDetail.Service.Save(this); //} //public void Delete(ID id) //{ // SAPDataProcessDetail.Service.Delete(id); //} #endregion } #endregion #region ISAPDataProcessDetail Service //public interface ISAPDataProcessDetailService //{ // SAPDataProcessDetail Get(ID id); // ObjectsTemplate Get(); // ID Save(SAPDataProcessDetail item); // void Delete(ID id); //} #endregion }