using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ease.CoreV35.Model; namespace Payroll.BO { [Serializable] public class PMPValueBehaviorRating : BasicBaseObject { #region Constructor public PMPValueBehaviorRating() { this._pmpEmployeeRatingID = null; this._pmpValueBehaviorId = null; this._employeeID = null; this._selfComments = String.Empty; this._selfRatingID = null; this._approvarRatingID = null; this._approvarComments = string.Empty; } #endregion #region Properties #region PMPEmployeeRatingID : ID private ID _pmpEmployeeRatingID; public ID PmpEmployeeRatingID { get { return _pmpEmployeeRatingID; } set { _pmpEmployeeRatingID = value; } } #endregion #region ValueBehavior : ID private ID _pmpValueBehaviorId; public ID PMPValueBehaviorID { get { return _pmpValueBehaviorId; } set { _pmpValueBehaviorId = value; } } #endregion #region EmployeeID : ID private ID _employeeID; public ID EmployeeID { get { return _employeeID; } set { _employeeID = 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 ApprovarComments : string private string _approvarComments; public string ApprovarComments { get { return _approvarComments; } set { _approvarComments = value; } } #endregion #region ApprovarRatingID: ID private ID _approvarRatingID; public ID ApprovarRatingID { get { return _approvarRatingID; } set { _approvarRatingID = value; } } #endregion #region PmpProcessId private ID _pmpProcessId; public ID PmpProcessId { get { return _pmpProcessId; } set { _pmpProcessId = value; } } #endregion #region ObjectId public string ObjectId { get { if (!ID.IsUnassigned) return ID.Integer.ToString(); return String.Empty; } } #endregion #region SelfRatingDes public string SelfRatingDes { get { if (SelfRatingID!=null && !SelfRatingID.IsUnassigned) { return PMPRating.GetById(SelfRatingID).Name; } return string.Empty; } } #endregion #region AppRatingDes public string AppRatingDes { get { if (ApprovarRatingID!=null && !ApprovarRatingID.IsUnassigned) { return PMPRating.GetById(ApprovarRatingID).Name; } return string.Empty; } } #endregion #region PMPValuBehaviorDes public string PMPValuBehaviorDes { get { if(!PMPValueBehaviorID.IsUnassigned) { return PMPValueBehavior.Get(PMPValueBehaviorID).Name; } return string.Empty; } } #endregion #endregion } }