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

268 lines
6.8 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ease.CoreV35;
using HRM.BO;
namespace HRM.BO
{
public class ReviewRole : BasicBaseObject
{
#region Constructor
public ReviewRole()
{
_PMPYearID = 0;
_GradeID = 0;
_KPISelf = false;
_KPISupervisor = false;
_BehaviourSelf = false;
_BehaviourSupervisor = false;
_TechnicalSelf = false;
_TechnicalSupervisor = false;
_ValueSelf = false;
_ValueSupervisor = false;
_DevelopmentSelf = false;
_DevelopmentSupervisor = false;
_PeerAppraisal = false;
}
#endregion
#region Properties
#region PMPYearID : ID
private int _PMPYearID;
public int PMPYearID
{
get { return _PMPYearID; }
set { _PMPYearID = value; }
}
#endregion
#region GradeID : ID
private int _GradeID;
public int GradeID
{
get { return _GradeID; }
set { _GradeID = value; }
}
#endregion
#region KPISelf
private bool _KPISelf;
public bool KPISelf
{
get { return _KPISelf; }
set { _KPISelf = value; }
}
#endregion
#region KPISupervisor
private bool _KPISupervisor;
public bool KPISupervisor
{
get { return _KPISupervisor; }
set { _KPISupervisor = value; }
}
#endregion
#region BehaviourSelf
private bool _BehaviourSelf;
public bool BehaviourSelf
{
get { return _BehaviourSelf; }
set { _BehaviourSelf = value; }
}
#endregion
#region BehaviourSupervisor
private bool _BehaviourSupervisor;
public bool BehaviourSupervisor
{
get { return _BehaviourSupervisor; }
set { _BehaviourSupervisor = value; }
}
#endregion
#region TechnicalSelf
private bool _TechnicalSelf;
public bool TechnicalSelf
{
get { return _TechnicalSelf; }
set { _TechnicalSelf = value; }
}
#endregion
#region TechnicalSupervisor
private bool _TechnicalSupervisor;
public bool TechnicalSupervisor
{
get { return _TechnicalSupervisor; }
set { _TechnicalSupervisor = value; }
}
#endregion
#region ValueSelf
private bool _ValueSelf;
public bool ValueSelf
{
get { return _ValueSelf; }
set { _ValueSelf = value; }
}
#endregion
#region ValueSupervisor
private bool _ValueSupervisor;
public bool ValueSupervisor
{
get { return _ValueSupervisor; }
set { _ValueSupervisor = value; }
}
#endregion
#region DevelopmentSelf
private bool _DevelopmentSelf;
public bool DevelopmentSelf
{
get { return _DevelopmentSelf; }
set { _DevelopmentSelf = value; }
}
#endregion
#region DevelopmentSupervisor
private bool _DevelopmentSupervisor;
public bool DevelopmentSupervisor
{
get { return _DevelopmentSupervisor; }
set { _DevelopmentSupervisor = value; }
}
#endregion
#region PeerAppraisal
private bool _PeerAppraisal;
public bool PeerAppraisal
{
get { return _PeerAppraisal; }
set { _PeerAppraisal = value; }
}
#endregion
#endregion
//#region Service Factory IReviewRoleService : IReviewRoleService
//internal static IReviewRoleService Service
//{
// get { return Services.Factory.CreateService<IReviewRoleService>(typeof(IReviewRoleService)); }
//}
//#endregion
//#region Functions
//public static ReviewRole Get(ID nID)
//{
// ReviewRole oReviewRole = null;
// #region Cache Header
// oReviewRole = (ReviewRole)_cache["Get", nID];
// if (oReviewRole != null)
// return oReviewRole;
// #endregion
// oReviewRole = ReviewRole.Service.Get(nID);
// #region Cache Footer
// _cache.Add(oReviewRole, "Get", nID);
// #endregion
// return oReviewRole;
//}
//public static ObjectsTemplate<ReviewRole> Get(int nPmpYearID)
//{
// #region Cache Header
// ObjectsTemplate<ReviewRole> oReviews = _cache["Get"] as ObjectsTemplate<ReviewRole>;
// if (oReviews != null)
// return oReviews;
// #endregion
// try
// {
// oReviews = Service.Get(nPmpYearID);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oReviews, "Get");
// #endregion
// return oReviews;
//}
//public static ReviewRole GetWithGrade(int nPmpYearID,int nGradeID)
//{
// ReviewRole orole = null;
// #region Cache Header
// orole = (ReviewRole)_cache["GetWithGrade", nPmpYearID,nGradeID];
// if (orole != null)
// return orole;
// #endregion
// orole = ReviewRole.Service.GetWithGrade(nPmpYearID,nGradeID);
// #region Cache Footer
// _cache.Add(orole, "GetWithGrade", nPmpYearID,nGradeID);
// #endregion
// return orole;
//}
//public ID Save()
//{
// this.SetAuditTrailProperties();
// return ReviewRole.Service.Save(this);
//}
//public static void save(ObjectsTemplate<ReviewRole> _reviewRoles,ID nPMPYearID)
//{
// foreach (ReviewRole orole in _reviewRoles)
// {
// orole.SetAuditTrailProperties();
// }
// Service.Save(_reviewRoles, nPMPYearID);
//}
//public void Delete(ID id)
//{
// ReviewRole.Service.Delete(id);
//}
//#endregion
}
//#region IReviewRoleService Service
//public interface IReviewRoleService
//{
// ReviewRole Get(ID nID);
// ObjectsTemplate<ReviewRole> Get(int nPmpYearID);
// ID Save(ReviewRole reviewRole);
// void Delete(ID id);
// void Save(ObjectsTemplate<ReviewRole> _reviewRoles, ID nPMPYearID);
// ReviewRole GetWithGrade(int nPmpYearID, int nGradeID);
//}
//#endregion
}