196 lines
6.8 KiB
C#
196 lines
6.8 KiB
C#
|
|
using Ease.Core.Model;
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class ObjectiveSet : BasicBaseObject
|
|
{
|
|
public ObjectiveSet()
|
|
{
|
|
this.OverallOBRating = 0.0;
|
|
this.OverallValuesRating = 0.0;
|
|
this.OBEmpComplete = false;
|
|
this.OBLMComplete = EnumObjectiveFlowStatus.Not_yet_Agreed;
|
|
this.MYEmpComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated;
|
|
this.MYLMComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; ;
|
|
this.MYEmpAgreed = EnumObjectiveFlowStatus.Not_yet_Agreed;
|
|
this.YEEmpComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; ;
|
|
this.YELMComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated;
|
|
this.YEEmpAgreed = EnumObjectiveFlowStatus.Not_yet_Agreed;
|
|
this.YEESendLMCmplete = EnumObjectiveFlowStatus.Not_Yet_Initiated;
|
|
this.YEDirectorCmplete = EnumObjectiveFlowStatus.Not_Yet_Initiated;
|
|
this.DevelopmentPlanSubmit = EnumObjectiveFlowStatus.Not_Yet_Initiated;
|
|
this.LMDevelopmentPlanSubmit = EnumObjectiveFlowStatus.Not_Yet_Initiated;
|
|
this.OverallEmpComments = string.Empty;
|
|
this.OverallLMComments = string.Empty;
|
|
this.OverallSecondLMComments = string.Empty;
|
|
this.OverallDirectorComments = string.Empty;
|
|
this.SecondLMAgreed = false;
|
|
this.DirectorAgreed = false;
|
|
this.IsLMRecommend = false;
|
|
this.IsSecondLMRecommend = false;
|
|
this.IsDirectorRecommend = false;
|
|
this.NotificationStatus = EnumPMSNotificationStatus.None;
|
|
this.OBEmpCompleteDate = DateTime.MinValue;
|
|
this.OBLMCompleteDate = DateTime.MinValue;
|
|
this.IsEditing = false;
|
|
}
|
|
public int PMPYearID { get; set; }
|
|
|
|
public int EmployeeID { get; set; }
|
|
|
|
public int EmployeeNodeID { get; set; }
|
|
|
|
public int LMID { get; set; }
|
|
public int LMNodeID { get; set; }
|
|
|
|
public double OverallOBRating { get; set; }
|
|
|
|
public double OverallValuesRating { get; set; }
|
|
|
|
public bool OBEmpComplete { get; set; }
|
|
|
|
public DateTime OBEmpCompleteDate { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus OBLMComplete { get; set; }
|
|
|
|
public DateTime OBLMCompleteDate { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus MYEmpComplete { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus MYLMComplete { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus MYEmpAgreed { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus YEEmpComplete { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus YELMComplete { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus YEEmpAgreed { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus DevelopmentPlanSubmit { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus DevPlanEmpStatus { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus DevPlanLMStatus { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus LMDevelopmentPlanSubmit { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus YEESendLMCmplete { get; set; }
|
|
|
|
public EnumObjectiveFlowStatus YEDirectorCmplete { get; set; }
|
|
|
|
public int AuthorizedOBEmployeeID { get; set; }
|
|
|
|
public int AuthorizedDPEmployeeID { get; set; }
|
|
|
|
public int AuthorizedMYEmployeeID { get; set; }
|
|
|
|
public int AuthorizedYEEmployeeID { get; set; }
|
|
|
|
public string OverallEmpComments { get; set; }
|
|
|
|
public string OverallLMComments { get; set; }
|
|
|
|
public string OverallSecondLMComments { get; set; }
|
|
|
|
public string OverallDirectorComments { get; set; }
|
|
|
|
public bool SecondLMAgreed { get; set; }
|
|
|
|
public bool DirectorAgreed { get; set; }
|
|
|
|
public bool IsLMRecommend { get; set; }
|
|
|
|
public bool IsSecondLMRecommend { get; set; }
|
|
|
|
public bool IsDirectorRecommend { get; set; }
|
|
|
|
public string RevertComment { get; set; }
|
|
|
|
public int PreCalibrationRating { get; set; }
|
|
public string KeyPerformance { get; set; }
|
|
public string Strength { get; set; }
|
|
public string Opportunity { get; set; }
|
|
public EnumPMSNotificationStatus NotificationStatus { get; set; }
|
|
|
|
public double LMValueRating { get; set; }
|
|
|
|
public double LMOBJRating { get; set; }
|
|
|
|
public bool DHeadChecked { get; set; }
|
|
public double EMPValueRating { get; set; }
|
|
|
|
public double EMPOBJRating { get; set; }
|
|
|
|
public double EMPOverallRating { get; set; }
|
|
|
|
public double LMOverallRating { get; set; }
|
|
|
|
public double? YeTotalObjectiveEmpMark { get; set; }
|
|
public double? YeTotalObjectiveLmMark { get; set; }
|
|
public double AchivementPercent { get; set; }
|
|
|
|
public double OverAllObjectiveRating { get; set; }
|
|
|
|
public double OverAllBehaviorRating { get; set; }
|
|
public int YEDHComplete { get; set; }
|
|
public int YEMTComplete { get; set; }
|
|
public int YECEOComplete { get; set; }
|
|
public string YEEmpComments { get; set; }
|
|
public bool IsEditing { get; set; }
|
|
public ObjectiveSetRemarks ObjectiveSetRemarks { get; set; }
|
|
public List<Objective> Objectives { get; set; }
|
|
public List<ObjectiveSetRemarks> ObjectiveSetRemarksList { get; set; }
|
|
public List<YearEndRecomendation> YearEndRecomendations { get; set; }
|
|
public List<YearEndValuesRating> YearEndValuesRatings { get; set; }
|
|
public double? SecondLMObjRating { get; set; }
|
|
public double? SecondLMValueRating { get; set; }
|
|
public double? SecondLMOverallRating { get; set; }
|
|
|
|
}
|
|
|
|
#region IObjectiveSetService Service
|
|
|
|
public interface IObjectiveSetService
|
|
{
|
|
List<ObjectiveSet> Get();
|
|
ObjectiveSet Get(int id);
|
|
ObjectiveSet GetObjectiveSetWithChild(int empId, int pmpId);
|
|
int Save(ObjectiveSet item);
|
|
void SaveWithChild(ObjectiveSet item);
|
|
void Delete(int id);
|
|
|
|
List<Objective> GetByObjectiveSetID(int iD);
|
|
List<ObjectiveSet> GetByPMPYear(int nPMPYearID, string InEmpSQL);
|
|
List<ObjectiveSet> GetByPMPYear(int nPMPYearID);
|
|
|
|
List<ObjectiveSetRemarks> GetObjectiveSetRemarks(int iD);
|
|
|
|
List<YearEndRecomendation> GetYearEndRecomendations(int iD);
|
|
ObjectiveSet GetByEmployeeID(int EmpiD, int pmpYID);
|
|
List<ObjectiveSet> GetByEmployeeID(int EmpiD);
|
|
List<ObjectiveSet> GetByEmpIds(int pmpYearId, string empIds);
|
|
List<ObjectiveSet> GetObjectiveSetByDepartment(int deptId, int pmpYearId);
|
|
|
|
void UpdateObjectivesetForReplace(ObjectiveSet sObjName);
|
|
|
|
void UpdateObjectivesetStatus(int objID, EnumPMSNotificationStatus status);
|
|
|
|
void UpdateObjectiveForReplace(Objective sObjName);
|
|
|
|
void UpdateObjectiveEmployeeForReplace(ObjectiveEmployees sObjName);
|
|
|
|
void UpdateOldObjectiveFlag(Objective sObj);
|
|
|
|
}
|
|
|
|
#endregion
|
|
}
|