EchoTex_Payroll/HRM.BO/Claim/ClaimPaymentDetail.cs

118 lines
3.5 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 HRM.BO;
namespace Payroll.BO
{
[Serializable]
public class ClaimPaymentDetail : BasicBaseObject
{
#region Constructor
public ClaimPaymentDetail()
{
}
#endregion
#region Properties
public int ClaimID { get; set; }
public int ClaimPaymentID { get; set; }
#endregion
#region Functions
//public static ClaimPaymentDetail Get(ID nID)
//{
// ClaimPaymentDetail oClaimPaymentDetail = null;
// #region Cache Header
// oClaimPaymentDetail = (ClaimPaymentDetail)_cache["Get", nID];
// if (oClaimPaymentDetail != null)
// return oClaimPaymentDetail;
// #endregion
// oClaimPaymentDetail = ClaimPaymentDetail.Service.Get(nID);
// #region Cache Footer
// _cache.Add(oClaimPaymentDetail, "Get", nID);
// #endregion
// return oClaimPaymentDetail;
//}
//public static ObjectsTemplate<ClaimPaymentDetail> Get(EnumStatus status)
//{
// #region Cache Header
// ObjectsTemplate<ClaimPaymentDetail> oClaimPaymentDetails = _cache["Get", status] as ObjectsTemplate<ClaimPaymentDetail>;
// if (oClaimPaymentDetails != null)
// return oClaimPaymentDetails;
// #endregion
// try
// {
// oClaimPaymentDetails = Service.Get(status, SystemInformation.CurrentSysInfo.PayrollTypeID.Integer);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oClaimPaymentDetails, "Get", status);
// #endregion
// return oClaimPaymentDetails;
//}
//public void Save(ObjectsTemplate<ClaimPaymentDetail> oClaimPaymentDetails)
//{
// oClaimPaymentDetails.ForEach(o => o.SetAuditTrailProperties());
// ClaimPaymentDetail.Service.Save(oClaimPaymentDetails);
//}
//public ID Save()
//{
// this.SetAuditTrailProperties();
// return ClaimPaymentDetail.Service.Save(this);
//}
//public void Delete(ID id)
//{
// ClaimPaymentDetail.Service.Delete(ID);
//}
#endregion
//#region Service Factory IClaimPaymentDetailService : IClaimPaymentService
//internal static IClaimPaymentDetailService Service
//{
// get { return Services.Factory.CreateService<IClaimPaymentDetailService>(typeof(IClaimPaymentDetailService)); }
//}
//#endregion
//public static ObjectsTemplate<ClaimPaymentDetail> GetByClaimPaymentNewID(int nID)
//{
// ObjectsTemplate<ClaimPaymentDetail> oClaimPaymentDetails = new ObjectsTemplate<ClaimPaymentDetail>();
// oClaimPaymentDetails = Service.GetByClaimPaymentNewID(nID);
// return oClaimPaymentDetails;
//}
}
#region ClaimPaymentNewService
public interface IClaimPaymentDetailService
{
void Save(List<ClaimPaymentDetail> oClaimPayments);
ClaimPaymentDetail Get(int id);
List<ClaimPaymentDetail> Get(EnumStatus status, int iD);
int Save(ClaimPaymentDetail item);
void Delete(int id);
List<ClaimPaymentDetail> GetByClaimPaymentNewID(int nID);
}
#endregion
}