EchoTex_Payroll/HRM.BO/PMP/SkillLevelMapping.cs
2024-10-14 10:01:49 +06:00

179 lines
5.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.ComponentModel.DataAnnotations;
using HRM.BO;
namespace HRM.BO
{
[Serializable]
public class SkillLevelMapping : BasicBaseObject
{
#region Constructor
public SkillLevelMapping()
{
PMPYearID = 0;
GradeID = 0;
CategoryID = 0;
SkillID = 0;
LevelID = 0;
}
#endregion
#region Properties
public int PMPYearID { get; set; }
public int GradeID { get; set; }
public int CategoryID { get; set; }
public int SkillID { get; set; }
public int LevelID { get; set; }
#endregion
//#region Functions
//public static SkillLevelMapping Get(ID nID)
//{
// SkillLevelMapping oSkillLevelMapping = null;
// #region Cache Header
// oSkillLevelMapping = (SkillLevelMapping)_cache["Get", nID];
// if (oSkillLevelMapping != null)
// return oSkillLevelMapping;
// #endregion
// oSkillLevelMapping = SkillLevelMapping.Service.Get(nID);
// #region Cache Footer
// _cache.Add(oSkillLevelMapping, "Get", nID);
// #endregion
// return oSkillLevelMapping;
//}
//public static ObjectsTemplate<SkillLevelMapping> Get()
//{
// #region Cache Header
// ObjectsTemplate<SkillLevelMapping> oSkillLevelMappings = _cache["Get"] as ObjectsTemplate<SkillLevelMapping>;
// if (oSkillLevelMappings != null)
// return oSkillLevelMappings;
// #endregion
// try
// {
// oSkillLevelMappings = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oSkillLevelMappings, "Get");
// #endregion
// return oSkillLevelMappings;
//}
//public static ObjectsTemplate<SkillLevelMapping> Get(int pmpYearID, int gradeID)
//{
// #region Cache Header
// ObjectsTemplate<SkillLevelMapping> oSkillLevelMappings = _cache["Get", pmpYearID, gradeID] as ObjectsTemplate<SkillLevelMapping>;
// if (oSkillLevelMappings != null)
// return oSkillLevelMappings;
// #endregion
// try
// {
// oSkillLevelMappings = Service.Get(pmpYearID, gradeID);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oSkillLevelMappings, "Get", pmpYearID, gradeID);
// #endregion
// return oSkillLevelMappings;
//}
//public static ObjectsTemplate<SkillLevelMapping> GetCompetency(int pmpYearID, int gradeID)
//{
// #region Cache Header
// ObjectsTemplate<SkillLevelMapping> oSkillLevelMappings = _cache["Get", pmpYearID, gradeID] as ObjectsTemplate<SkillLevelMapping>;
// if (oSkillLevelMappings != null)
// return oSkillLevelMappings;
// #endregion
// try
// {
// oSkillLevelMappings = Service.GetCompetency(pmpYearID, gradeID);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oSkillLevelMappings, "Get", pmpYearID, gradeID);
// #endregion
// return oSkillLevelMappings;
//}
//public ID Save()
//{
// this.SetAuditTrailProperties();
// return SkillLevelMapping.Service.Save(this);
//}
//public void Save(ObjectsTemplate<SkillLevelMapping> _skillLevelMappings)
//{
// foreach (SkillLevelMapping omap in _skillLevelMappings)
// {
// omap.SetAuditTrailProperties();
// }
// SkillLevelMapping.Service.Save(_skillLevelMappings);
//}
//public void Delete(ID id)
//{
// SkillLevelMapping.Service.Delete(id);
//}
//#endregion
//#region Service Factory ISkillLevelMappingService : ISkillLevelMappingService
//internal static ISkillLevelMappingService Service
//{
// get { return Services.Factory.CreateService<ISkillLevelMappingService>(typeof(ISkillLevelMappingService)); }
//}
//#endregion
}
//#region ISkillLevelMappingService Service
//public interface ISkillLevelMappingService
//{
// SkillLevelMapping Get(ID nID);
// ObjectsTemplate<SkillLevelMapping> Get();
// ID Save(SkillLevelMapping skillLevelMapping);
// void Delete(ID id);
// void Save(ObjectsTemplate<SkillLevelMapping> _skillLevelMappings);
// ObjectsTemplate<SkillLevelMapping> Get(int pmpYearID, int gradeID);
// ObjectsTemplate<SkillLevelMapping> GetCompetency(int pmpYearID, int gradeID);
//}
//#endregion
}