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

241 lines
4.7 KiB
C#

using Ease.Core.Model;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
public class PMPTargetSetting : BasicBaseObject
{
#region Constructors
public PMPTargetSetting()
{
PmpEmployeeRatingID = 0;
PmpProcessId = 0;
EmployeeID = 0;
Objective = string.Empty;
ObjectivePercent = double.MinValue;
TargetDate = DateTime.MinValue;
SelfComments = string.Empty;
SelfRatingID = 0;
EvaluationCriteria = string.Empty;
ApprovarID = 0;
ApprovarComments = string.Empty;
ApprovarRatingID = 0;
}
#endregion
#region Properties
#region Delegate
public delegate void ItemChanged();
#endregion
#region StringID
public string StringID
{
get { return ID.ToString(); }
}
#endregion
#region PMPEmployeeRatingID : ID
private int _pmpEmployeeRatingID;
public int PmpEmployeeRatingID
{
get { return _pmpEmployeeRatingID; }
set { _pmpEmployeeRatingID = value; }
}
#endregion
#region PmpProcessId
private int _pmpProcessId;
public int PmpProcessId
{
get { return _pmpProcessId; }
set { _pmpProcessId = value; }
}
#endregion
#region EmployeeID : ID
private int _employeeID;
public int EmployeeID
{
get { return _employeeID; }
set { _employeeID = value; }
}
#endregion
#region Objective : string
private string _objective;
public string Objective
{
get { return _objective; }
set { _objective = value; }
}
#endregion
#region ObjectivePercent : Double
private double _objectivePercent;
public double ObjectivePercent
{
get { return _objectivePercent; }
set { _objectivePercent = value; }
}
#endregion
#region TargetDate : DateTime
private DateTime _targetDate;
public DateTime TargetDate
{
get { return _targetDate; }
set { _targetDate = value; }
}
#endregion
#region SelfComments : string
private string _selfComments;
public string SelfComments
{
get { return _selfComments; }
set { _selfComments = value; }
}
#endregion
#region SelfRatingID : ID
private int _selfRatingID;
public int SelfRatingID
{
get { return _selfRatingID; }
set { _selfRatingID = value; }
}
#endregion
#region EvaluationCriteria : string
private string _evaluationCriteria;
public string EvaluationCriteria
{
get { return _evaluationCriteria; }
set { _evaluationCriteria = value; }
}
#endregion
#region ApprovarID : ID
private int _approvarID;
public int ApprovarID
{
get { return _approvarID; }
set { _approvarID = value; }
}
#endregion
#region ApprovarComments : string
private string _approvarComments;
public string ApprovarComments
{
get { return _approvarComments; }
set { _approvarComments = value; }
}
#endregion
#region ApprovarRatingID
private int _approvarRatingID;
public int ApprovarRatingID
{
get { return _approvarRatingID; }
set { _approvarRatingID = value; }
}
#endregion
public string ApprovarRatingDes { get; set; }
public string SelfRatingDes { get; set; }
//#region ApprovarRatingDes
//public string ApprovarRatingDes
//{
// get
// {
// if (_approvarRatingID != 0 && !_approvarRatingID.IsUnassigned)
// {
// return PMPRating.GetById(_approvarRatingID).Name;
// }
// else return String.Empty;
// }
//}
//#endregion
//#region SelfRatingDes
//public string SelfRatingDes
//{
// get
// {
// if (_selfRatingID != null && !_selfRatingID.IsUnassigned)
// {
// return PMPRating.GetById(_selfRatingID).Name;
// }
// else return String.Empty;
// }
//}
//#endregion
#endregion
}
}