using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { public class PMSUpdateHistory : BasicBaseObject { #region Constructor public PMSUpdateHistory() { this._description = string.Empty; } #endregion #region Properties #region ObjectiveSetID : ID private int _objectiveSetID; public int ObjectiveSetID { get { return _objectiveSetID; } set { _objectiveSetID = value; } } #endregion #region PMPYearID : ID private int _pMPYearID; public int PMPYearID { get { return _pMPYearID; } set { _pMPYearID = value; } } #endregion #region ObjectID : ID private int _ObjectID; public int ObjectID { get { return _ObjectID; } set { _ObjectID = value; } } #endregion #region Description : string private string _description; public string Description { get { return _description; } set { _description = value; } } #endregion #region ActorType : EnumActor private EnumActor _ActorType; public EnumActor ActorType { get { return _ActorType; } set { _ActorType = value; } } #endregion #region ChangeType : EnumActor private EnumObjectiveChangeType _ChangeType; public EnumObjectiveChangeType ChangeType { get { return _ChangeType; } set { _ChangeType = value; } } #endregion #region PmpStatus private EnumPMPStatus _pmpStatus; public EnumPMPStatus PmpStatus { get { return _pmpStatus; } set { _pmpStatus = value; } } #endregion #region Weightages private double _weightages; public double Weightages { get { return _weightages; } set { _weightages = value; } } #endregion #region Timing private string _timing; public string Timing { get { return _timing; } set { _timing = value; } } #endregion #endregion //#region Function //#region Get All //public static List Get() //{ // return PMSUpdateHistory.Service.Get(); //} //#endregion //#region Get By ID //public static PMSUpdateHistory Get(int id) //{ // return PMSUpdateHistory.Service.Get(id); //} //#endregion //#region Get By Employee ID //public static List GetByPMSYearID(int PMPYID) //{ // return PMSUpdateHistory.Service.GetByPMSYearID(PMPYID); //} //public static List GetByObjectiveSetID(int ObjectiveSetID) //{ // return PMSUpdateHistory.Service.GetByObjectiveSetID(ObjectiveSetID); //} //#endregion //#region Save //public static void Update(List objectives) //{ // //this.SetAuditTrailProperties(); // PMSUpdateHistory.Service.Update(objectives); //} //public int Save() //{ // this.SetAuditTrailProperties(); // return PMSUpdateHistory.Service.Save(this); //} //public static void Save(List items) //{ // foreach (PMSUpdateHistory item in items) // { // item.SetAuditTrailProperties(); // } // PMSUpdateHistory.Service.Save(items); //} //#endregion //#region Delete //public void Delete() //{ // PMSUpdateHistory.Service.Delete(this.ID); //} //#endregion //#endregion //#region Service Factory IPMSUpdateHistory : IPMSUpdateHistory //internal static IPMSUpdateHistoryService Service //{ // get { return Services.Factory.CreateService(typeof(IPMSUpdateHistoryService)); } //} //#endregion } #region IObjectiveService Service public interface IPMSUpdateHistoryService { List Get(); PMSUpdateHistory Get(int id); List GetByPMSYearID(int PMPID); int Save(PMSUpdateHistory item); void Save(List items); void Update(List items); void Delete(int id); List GetByObjectiveSetID(int ObjectiveSetID); } #endregion }