import {EnumObjectiveFlowStatus, EnumObjectiveRating} from '../enums'; import {Objective} from './objective'; import {ObjectiveSetRemarks} from './objectiveSetRemarks'; import {YearEndRecomendation} from './yearEndRecomendation'; import {BaseObject} from '../Basic/baseObject'; import {YearEndValuesRating} from './yearEndValuesRating'; import { PMPValueBehaviorSetting } from './pmpValueBehaviorSetting'; import { PMPProcess } from './pMPProcess'; export class ObjectiveSet extends BaseObject { constructor() { super(); this.pmpYearID = undefined; this.employeeID = undefined; this.payrollTypeID = undefined; this.employeeNodeID = undefined; this.lmID = undefined; //this.overallOBRating = undefined; //this.overallValuesRating = undefined; this.revertComment = ''; this.obEmpComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.obEmpCompleteDate = undefined; this.empObjRating = undefined; this.empValueRating = undefined; this.lmObjRating = undefined; this.lmValueRating = undefined; this.obLmComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.obLmCompleteDate = undefined; this.myEmpComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.mylmComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.yeEmpComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.yeLmComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.developmentPlanSubmit = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.devPlanEmpStatus = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.devPlanLMStatus = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.lmDevelopmentPlanSubmit = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.yeSecondLMComplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.yeDirectorCmplete = EnumObjectiveFlowStatus.Not_Yet_Initiated; this.isEditing = false; this.objectives = []; this.objectiveSetRemarksList = []; this.objectiveSetRemarks = new ObjectiveSetRemarks(); this.yearEndRecomendations = []; this.valuesRatings = []; this.preCalibrationRating = undefined; this.keyPerformance = ''; this.strength = ''; this.opportunity = ''; this.progressStatus = 0; this.secondLMAchive = 0; this.assessmentSubmitLM = false; this.assessmentSubmit2ndLM = false; } pmpYearID: number; employeeID: number; payrollTypeID: number; employeeNodeID: number; lmID: number; revertComment: string; empObjAchive: number; empValueAchive: number; empObjRating: number; empValueRating: number; empRating: number; lmObjAchive: number; lmValueAchive: number; lmObjRating: number; lmValueRating: number; lmRating: number; secondLMAchive?: number; //lmOverallRating: number; //lmobjRating: EnumObjectiveRating; //lmValueRating: EnumObjectiveRating; //yeTotalObjectiveLmMark: number; obEmpComplete: EnumObjectiveFlowStatus; obEmpCompleteDate: Date; obLmComplete: EnumObjectiveFlowStatus; obLmCompleteDate: Date; obSecondLmComplete: EnumObjectiveFlowStatus; obSecondLmCompleteDate: Date; myEmpComplete: EnumObjectiveFlowStatus; mylmComplete: EnumObjectiveFlowStatus; yeEmpComplete: EnumObjectiveFlowStatus; yeLmComplete: EnumObjectiveFlowStatus; yeSecondLMComplete: EnumObjectiveFlowStatus; yeSecondLMCompleteDate: Date; yeDirectorCmplete: EnumObjectiveFlowStatus; developmentPlanSubmit: EnumObjectiveFlowStatus; devPlanEmpStatus: EnumObjectiveFlowStatus; devPlanLMStatus: EnumObjectiveFlowStatus; lmDevelopmentPlanSubmit: EnumObjectiveFlowStatus; overAllAchievement: number; overAllRating: string; objAssessRatingLM: number; leadershipAssessRatingLM: number; assessmentRemarksLM: string; assessmentSubmitLM: boolean; objAssessRating2ndLM: number; leadershipAssessRating2ndLM: number; assessmentRemarks2ndLM: string; assessmentSubmit2ndLM: boolean; isEditing: boolean; objectives: Objective[] = []; objectiveSetRemarksList: ObjectiveSetRemarks[] = []; objectiveSetRemarks: ObjectiveSetRemarks; yearEndRecomendations: YearEndRecomendation[] = []; valuesRatings: PMPValueBehaviorSetting[] = []; preCalibrationRating: number; keyPerformance: string; strength: string; opportunity: string; secondLMObjRating?: number; secondLMValueRating?: number; secondLMOverallRating?: number; progressStatus: number; unreadEmployeeMessage: number; values: PMPValueBehaviorSetting[] = undefined; pmpProcess: PMPProcess; overallOBAchive: number; overallOBRating: number; overallValueAchive: number; overallValuesRating: number; overallPMPRating: number; objectiveUpdateStatus: EnumObjectiveFlowStatus; /** Transient - only sent along with a RejectObjectiveHistory call. */ objectiveUpdateRejectRemarks?: string; }