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 PremiumSetup : BasicBaseObject { public PremiumSetup() { } #region Properties private double _factor; public double Factor { get { return _factor; } set { _factor = value; } } private double _premiumRate; public double PremiumRate { get { return _premiumRate; } set { _premiumRate = value; } } #endregion #region Service Factory IPremiumSetupService : IPremiumSetupService internal static IPremiumSetupService Service { get { return Services.Factory.CreateService(typeof(IPremiumSetupService)); } } #endregion #region Functions public static PremiumSetup Get(ID nPremiumSetupID) { return PremiumSetup.Service.Get(nPremiumSetupID); } public static ObjectsTemplate Get() { return PremiumSetup.Service.Get(); } public ID Save() { this.SetAuditTrailProperties(); return PremiumSetup.Service.Save(this); } public void Delete(ID id) { PremiumSetup.Service.Delete(id); } #endregion } #region IPremiumSetup Service public interface IPremiumSetupService { PremiumSetup Get(ID id); ObjectsTemplate Get(); ID Save(PremiumSetup item); void Delete(ID id); } #endregion }