237 lines
4.6 KiB
C#
237 lines
4.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Ease.CoreV35.Model;
|
|
|
|
namespace Payroll.BO
|
|
{
|
|
[Serializable]
|
|
public class PMPTargetSetting : BasicBaseObject
|
|
{
|
|
#region Constructors
|
|
|
|
public PMPTargetSetting()
|
|
{
|
|
PmpEmployeeRatingID = null;
|
|
PmpProcessId = null;
|
|
EmployeeID = null;
|
|
Objective = string.Empty;
|
|
ObjectivePercent = double.MinValue;
|
|
TargetDate = DateTime.MinValue;
|
|
SelfComments = string.Empty;
|
|
SelfRatingID = null;
|
|
EvaluationCriteria = string.Empty;
|
|
ApprovarID = null;
|
|
ApprovarComments = string.Empty;
|
|
ApprovarRatingID = null;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region Delegate
|
|
|
|
public delegate void ItemChanged();
|
|
#endregion
|
|
|
|
#region StringID
|
|
|
|
public string StringID
|
|
{
|
|
get { return ID.ToString(); }
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region PMPEmployeeRatingID : ID
|
|
|
|
private ID _pmpEmployeeRatingID;
|
|
|
|
public ID PmpEmployeeRatingID
|
|
{
|
|
get { return _pmpEmployeeRatingID; }
|
|
set { _pmpEmployeeRatingID = value; }
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
#region PmpProcessId
|
|
|
|
private ID _pmpProcessId;
|
|
|
|
public ID PmpProcessId
|
|
{
|
|
get { return _pmpProcessId; }
|
|
set { _pmpProcessId = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region EmployeeID : ID
|
|
|
|
|
|
private ID _employeeID;
|
|
|
|
public ID 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 ID _selfRatingID;
|
|
|
|
public ID 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 ID _approvarID;
|
|
|
|
public ID 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 ID _approvarRatingID;
|
|
|
|
public ID ApprovarRatingID
|
|
{
|
|
get { return _approvarRatingID; }
|
|
set { _approvarRatingID = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ApprovarRatingDes
|
|
public string ApprovarRatingDes
|
|
{
|
|
|
|
get
|
|
{
|
|
if (_approvarRatingID != null && !_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
|
|
|
|
}
|
|
|
|
|
|
}
|