using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ease.CoreV35.Model; namespace Payroll.BO { [Serializable] public class AppraisalPointRating : BasicBaseObject { public delegate void ItemChanged(); public AppraisalPointRating() { this.AppraisalPointID = null; this.Parcent = double.MinValue; this.MinParcent = double.MinValue; this.MaxParcent = double.MinValue; this._appraisalYear = DateTime.MinValue; } #region properties private ID _appraisalPointID; public ID AppraisalPointID { get { return _appraisalPointID; } set { _appraisalPointID = value; } } private DateTime _appraisalYear; public DateTime AppraisalYear { get { return _appraisalYear; } set { _appraisalYear = value; } } private double _maxParcent; public double MaxParcent { get { return _maxParcent; } set { _maxParcent = value; } } private double _minParcent; public double MinParcent { get { return _minParcent; } set { _minParcent = value; } } private double _parcent; public double Parcent { get { return _parcent; } set { _parcent = value; } } #endregion #region Service Factory IAppraisalPointRatingService : IAppraisalPointRatingService internal static IAppraisalPointRatingService Service { get { return Services.Factory.CreateService(typeof(IAppraisalPointRatingService)); } } #endregion #region Functions public static ObjectsTemplate Get() { ObjectsTemplate allAppraisalPointRatings = null; return allAppraisalPointRatings = AppraisalPointRating.Service.Get(); } public static ID Save(AppraisalPointRating item) { return AppraisalPointRating.Service.Save(item); } public static void Update(AppraisalPointRating item) { AppraisalPointRating.Service.Update(item); } public static void Delete(ID id) { AppraisalPointRating.Service.Delete(id); } public static bool CheckAppraisalPointRating(ID id, DateTime year) { return AppraisalPointRating.Service.CheckAppraisalPointRating(id, year); } #endregion public ID Save() { this.SetAuditTrailProperties(); return AppraisalPointRating.Service.Save(this); } public static ObjectsTemplate Get(DateTime appraisalyear) { return AppraisalPointRating.Service.Get(appraisalyear); } } #region IAppraisalPointRatingService public interface IAppraisalPointRatingService { ObjectsTemplate Get(DateTime apprisalYear); ObjectsTemplate Get(); ID Save(AppraisalPointRating item); void Update(AppraisalPointRating item); void Delete(ID id); bool CheckAppraisalPointRating(ID id, DateTime year); } #endregion }