CEL_Payroll/Payroll.BO/SAPLookUp/SAPDataProcessDetail.cs

199 lines
4.8 KiB
C#
Raw Normal View History

2024-09-17 14:30:13 +06:00
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<string>("EmployeeNo", _EmployeeNo, value);
_EmployeeNo = value;
}
}
#endregion
#region SAPDataProcessID : ID
private ID _SAPDataProcessID;
public ID SAPDataProcessID
{
get { return _SAPDataProcessID; }
set
{
base.OnPropertyChange<ID>("SAPDataProcessID", _SAPDataProcessID, value);
_SAPDataProcessID = value;
}
}
#endregion
#region name : string
private string _name;
public string Name
{
get { return _name; }
set
{
base.OnPropertyChange<string>("name", _name, value);
_name = value;
}
}
#endregion
#region DataType : string
private string _DataType;
public string DataType
{
get { return _DataType; }
set
{
base.OnPropertyChange<string>("DataType", _DataType, value);
_DataType = value;
}
}
#endregion
#region Description : string
private string _Description;
public string Description
{
get { return _Description; }
set
{
base.OnPropertyChange<string>("Description", _Description, value);
_Description = value;
}
}
#endregion
#region Service Factory ISAPDataProcessService : ISAPDataProcessService
internal static ISAPDataProcessService Service
{
get { return Services.Factory.CreateService<ISAPDataProcessService>(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<SAPDataProcessDetail> Get()
//{
// #region Cache Header
// ObjectsTemplate<SAPDataProcessDetail> SAPDataProcessDetails = _cache["Get"] as ObjectsTemplate<SAPDataProcessDetail>;
// 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<SAPDataProcessDetail> Get();
// ID Save(SAPDataProcessDetail item);
// void Delete(ID id);
//}
#endregion
}