EchoTex_Payroll/HRM.BO/PMP/ObjectiveCategoryGrades.cs

120 lines
3.0 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00

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<ObjectiveCategoryGrades> Get()
//{
// return ObjectiveCategoryGrades.Service.Get();
//}
//public static List<ObjectiveCategoryGrades> Get(int nPmpyearID,int nCategory)
//{
// return ObjectiveCategoryGrades.Service.Get(nPmpyearID, nCategory);
//}
//public static List<ObjectiveCategoryGrades> GetByPMPYear(int nPmpyearID)
//{
// return ObjectiveCategoryGrades.Service.GetByPMPYear(nPmpyearID);
//}
//public static List<ObjectiveCategoryGrades> 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<IObjectiveCategoryGradesService>(typeof(IObjectiveCategoryGradesService)); }
//}
//#endregion
}
#region IObjectiveCategoryGrades Service
public interface IObjectiveCategoryGradesService
{
List<ObjectiveCategoryGrades> Get();
List<ObjectiveCategoryGrades> Get(int nPmpyearID, int nCategory);
List<ObjectiveCategoryGrades> GetByPMPYear(int nPmpyearID);
List<ObjectiveCategoryGrades> GetByGradeId(int gradeId, int pmpYearId);
ObjectiveCategoryGrades Get(int id);
int Save(ObjectiveCategoryGrades item);
void Delete(int id);
List<ObjectiveCategoryGrades> GetByEmpTier(int empID, int nPmpyearID);
}
#endregion
}