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 { public class PremiumProcessDetail : BasicBaseObject { public PremiumProcessDetail() { } #region Properties private ID _premiumProcessID; public ID PremiumProcessID { get { return _premiumProcessID; } set { _premiumProcessID = value; } } private ID _employeeID; public ID EmployeeID { get { return _employeeID; } set { _employeeID = value; } } private double _gross; public double Gross { get { return _gross; } set { _gross = value; } } private double _basic; public double Basic { get { return _basic; } set { _basic = value; } } private double _assuredAmount; public double AssuredAmount { get { return _assuredAmount; } set { _assuredAmount = value; } } private double _premiumAmount; public double PremiumAmount { get { return _premiumAmount; } set { _premiumAmount = value; } } #endregion #region Service Factory IPremiumProcessDetailService : IPremiumProcessDetailService internal static IPremiumProcessDetailService Service { get { return Services.Factory.CreateService(typeof(IPremiumProcessDetailService)); } } #endregion #region Functions public static PremiumProcessDetail Get(ID nPremiumProcessID) { return PremiumProcessDetail.Service.Get(nPremiumProcessID); } public static ObjectsTemplate Get() { return PremiumProcessDetail.Service.Get(); } public static ObjectsTemplate GetDetails(ID id) { return PremiumProcessDetail.Service.GetDetails(id); } public ID Save() { this.SetAuditTrailProperties(); return PremiumProcessDetail.Service.Save(this); } public void Delete(ID id) { PremiumProcessDetail.Service.Delete(id); } #endregion } #region IPremiumProcess Service public interface IPremiumProcessDetailService { PremiumProcessDetail Get(ID id); ObjectsTemplate Get(); ObjectsTemplate GetDetails(ID id); ID Save(PremiumProcessDetail item); void Delete(ID id); } #endregion }