using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ease.CoreV35.Model; namespace Payroll.BO { [Serializable] public class EmpAppraisalRating :AuditTrailBase { #region Constructor public EmpAppraisalRating() { _employeeID = null; _appraisalYear = DateTime.MinValue; _appraisalPointRatingID = null; } #endregion #region EmployeeID private ID _employeeID; public ID EmployeeID { get { return _employeeID; } set { _employeeID = value; } } #endregion #region AppraisalYear private DateTime _appraisalYear; public DateTime AppraisalYear { get { return _appraisalYear; } set { _appraisalYear = value; } } #endregion #region AppraisalPointRatingID private ID _appraisalPointRatingID; public ID AppraisalPointRatingID { get { return _appraisalPointRatingID; } set { _appraisalPointRatingID = value; } } #endregion #region Service Factory IEmpAppraisalRatingService : IEmpAppraisalRatingService internal static IEmpAppraisalRatingService Service { get { return Services.Factory.CreateService(typeof(IEmpAppraisalRatingService)); } } #endregion #region functions #region Delete public static void Delete(ID id) { EmpAppraisalRating.Service.Delete(id); } #endregion #region Save public ID Save() { this.SetAuditTrailProperties(); return EmpAppraisalRating.Service.Save(this); } #endregion #region Get public static ObjectsTemplate Get(DateTime appraisalyear) { return EmpAppraisalRating.Service.Get(appraisalyear); } public static void Save(ObjectsTemplate Items) { foreach (EmpAppraisalRating item in Items) { item.SetAuditTrailProperties(); } EmpAppraisalRating.Service.Save(Items); } #endregion #endregion } #region IEmpAppraisalRating public interface IEmpAppraisalRatingService { ObjectsTemplate Get(DateTime appraisalyear); void Delete(ID id); ID Save(EmpAppraisalRating item); void Save(ObjectsTemplate items); } #endregion }