141 lines
3.4 KiB
C#
141 lines
3.4 KiB
C#
|
|
|||
|
using Ease.Core.Model;
|
|||
|
|
|||
|
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Data;
|
|||
|
|
|||
|
namespace HRM.BO
|
|||
|
{
|
|||
|
public class ObjectiveCategory : BasicBaseObject
|
|||
|
{
|
|||
|
#region Constructor
|
|||
|
|
|||
|
public ObjectiveCategory()
|
|||
|
{
|
|||
|
this.Description = string.Empty;
|
|||
|
this.Category = EnumObjectiveCategory.Band;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Properties
|
|||
|
|
|||
|
public EnumObjectiveCategory Category { get; set; }
|
|||
|
|
|||
|
public string Description { get; set; }
|
|||
|
|
|||
|
public int PMPYearID { get; set; }
|
|||
|
public int ObjectiveTypeID { get; set; }
|
|||
|
|
|||
|
public List<ObjectiveCategoryGrades> ObjectiveCategoryGrades { get; set; }
|
|||
|
|
|||
|
//#region Property ObjectiveCategoryGrades : ObjectiveCategoryGrades
|
|||
|
|
|||
|
//private List<ObjectiveCategoryGrades> _objectiveCategoryGrades;
|
|||
|
|
|||
|
//public List<ObjectiveCategoryGrades> ObjectiveCategoryGrades
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// if (_objectiveCategoryGrades == null && !this.ID.IsUnassigned && this.ID.Integer > 0)
|
|||
|
// {
|
|||
|
// _objectiveCategoryGrades = Service.GetObjectiveCategoryGrades(this.ID);
|
|||
|
|
|||
|
// }
|
|||
|
// return _objectiveCategoryGrades;
|
|||
|
// }
|
|||
|
// set
|
|||
|
// {
|
|||
|
// _objectiveCategoryGrades = value;
|
|||
|
// }
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
//#region Functions
|
|||
|
|
|||
|
//#region Get All
|
|||
|
|
|||
|
//public static List<ObjectiveCategory> Get()
|
|||
|
//{
|
|||
|
// return ObjectiveCategory.Service.Get();
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Get By ID
|
|||
|
|
|||
|
//public static ObjectiveCategory Get(int id)
|
|||
|
//{
|
|||
|
// return ObjectiveCategory.Service.Get(id);
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Get By Status
|
|||
|
|
|||
|
//public static List<ObjectiveCategory> Get(EnumStatus status)
|
|||
|
//{
|
|||
|
// return ObjectiveCategory.Service.Get(status);
|
|||
|
//}
|
|||
|
//public static List<ObjectiveCategory> GetByPMPyear(int nID)
|
|||
|
//{
|
|||
|
// return ObjectiveCategory.Service.GetByPMPyear(nID);
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Save
|
|||
|
|
|||
|
//public static void Save(List<ObjectiveCategory> items)
|
|||
|
//{
|
|||
|
// foreach(ObjectiveCategory item in items)
|
|||
|
// item.SetAuditTrailProperties();
|
|||
|
// ObjectiveCategory.Service.Save(items);
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Delete
|
|||
|
|
|||
|
//public static void Delete(int id)
|
|||
|
//{
|
|||
|
// ObjectiveCategory.Service.Delete(id);
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Service Factory IObjectiveCategory : IObjectiveCategory
|
|||
|
|
|||
|
//internal static IObjectiveCategoryService Service
|
|||
|
//{
|
|||
|
// get { return Services.Factory.CreateService<IObjectiveCategoryService>(typeof(IObjectiveCategoryService)); }
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
}
|
|||
|
|
|||
|
#region IObjectiveCategory Service
|
|||
|
|
|||
|
public interface IObjectiveCategoryService
|
|||
|
{
|
|||
|
List<ObjectiveCategory> Get();
|
|||
|
List<ObjectiveCategory> Get(EnumStatus status);
|
|||
|
ObjectiveCategory Get(int id);
|
|||
|
void Save(List<ObjectiveCategory> items);
|
|||
|
void Save(ObjectiveCategory item);
|
|||
|
void Delete(int id);
|
|||
|
|
|||
|
List<ObjectiveCategoryGrades> GetObjectiveCategoryGrades(int iD);
|
|||
|
List<ObjectiveCategory> GetByPMPyear(int nID);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|