using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { public class ObjectiveCategoryGrades : BasicBaseObject { #region Constructor public ObjectiveCategoryGrades() { this.Percent = 0.0; } #endregion #region Properties public int ObjectiveCategoryID { get; set; } public int GradeID { get; set; } public int Tier { get; set; } public double Percent { get; set; } public bool OBMOSRequired { get; set; } public bool DPMOSRequired { get; set; } public int ObjectiveType { get; set; } #endregion //#region Functions //#region Get All //public static List Get() //{ // return ObjectiveCategoryGrades.Service.Get(); //} //public static List Get(int nPmpyearID,int nCategory) //{ // return ObjectiveCategoryGrades.Service.Get(nPmpyearID, nCategory); //} //public static List GetByPMPYear(int nPmpyearID) //{ // return ObjectiveCategoryGrades.Service.GetByPMPYear(nPmpyearID); //} //public static List GetByEmpTier(int empID, int nPmpyearID) //{ // return ObjectiveCategoryGrades.Service.GetByEmpTier(empID, nPmpyearID); //} //#endregion //#region Get By ID //public static ObjectiveCategoryGrades Get(int id) //{ // return ObjectiveCategoryGrades.Service.Get(id); //} //#endregion //#region Save //public int Save() //{ // this.SetAuditTrailProperties(); // return ObjectiveCategoryGrades.Service.Save(this); //} //#endregion //#region Delete //public static void Delete(int id) //{ // ObjectiveCategoryGrades.Service.Delete(id); //} //#endregion //#endregion //#region Service Factory IObjectiveCategoryGrades : IObjectiveCategoryGrades //internal static IObjectiveCategoryGradesService Service //{ // get { return Services.Factory.CreateService(typeof(IObjectiveCategoryGradesService)); } //} //#endregion } #region IObjectiveCategoryGrades Service public interface IObjectiveCategoryGradesService { List Get(); List Get(int nPmpyearID, int nCategory); List GetByPMPYear(int nPmpyearID); List GetByGradeId(int gradeId, int pmpYearId); ObjectiveCategoryGrades Get(int id); int Save(ObjectiveCategoryGrades item); void Delete(int id); List GetByEmpTier(int empID, int nPmpyearID); } #endregion }