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 Get(EnumStatus status) //{ // #region Cache Header // ObjectsTemplate oClaimPaymentDetails = _cache["Get", status] as ObjectsTemplate; // 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 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(typeof(IClaimPaymentDetailService)); } //} //#endregion //public static ObjectsTemplate GetByClaimPaymentNewID(int nID) //{ // ObjectsTemplate oClaimPaymentDetails = new ObjectsTemplate(); // oClaimPaymentDetails = Service.GetByClaimPaymentNewID(nID); // return oClaimPaymentDetails; //} } #region ClaimPaymentNewService public interface IClaimPaymentDetailService { void Save(List oClaimPayments); ClaimPaymentDetail Get(int id); List Get(EnumStatus status, int iD); int Save(ClaimPaymentDetail item); void Delete(int id); List GetByClaimPaymentNewID(int nID); } #endregion }