Refactoring code module 08_KPI
This commit is contained in:
parent
3636f380fb
commit
67d117dcfc
48 changed files with 989 additions and 1140 deletions
|
|
@ -20,4 +20,73 @@ interface ProjectYearOp {
|
|||
projectName: string;
|
||||
}
|
||||
|
||||
export type { DataOptions, Pagination, DataOptionTechnique, ProjectYearOp };
|
||||
interface PosmasterActType {
|
||||
id: string;
|
||||
posMasterOrder: number;
|
||||
profileId: string;
|
||||
citizenId: string;
|
||||
prefix?: string;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
posLevel: string;
|
||||
posType: string;
|
||||
position: string;
|
||||
posNo: string;
|
||||
}
|
||||
|
||||
interface EvaluatorType {
|
||||
fullName: string;
|
||||
position: string;
|
||||
avartar: string;
|
||||
posTypeName: string;
|
||||
posLevelName: string;
|
||||
posExecutiveName: string | null;
|
||||
org: string;
|
||||
isPosmasterAct: boolean;
|
||||
posmasterAct: PosmasterActType[];
|
||||
}
|
||||
|
||||
interface MainListKpi {
|
||||
id: string;
|
||||
profileId: string;
|
||||
prefix: string;
|
||||
firstname: string;
|
||||
lastname: string;
|
||||
kpiPeriodId: string;
|
||||
evaluationStatus: string;
|
||||
evaluationResults: string;
|
||||
evaluatorId: string;
|
||||
commanderId: string | null;
|
||||
commanderHighId: string | null;
|
||||
createdAt: string;
|
||||
plannedPoint: number;
|
||||
rolePoint: number;
|
||||
specialPoint: number;
|
||||
capacityPoint: number;
|
||||
year: number;
|
||||
durationKPI: string;
|
||||
}
|
||||
|
||||
interface PaginationType {
|
||||
sortBy: string;
|
||||
descending: boolean;
|
||||
page: number;
|
||||
rowsPerPage: number;
|
||||
}
|
||||
|
||||
interface ListCriteria {
|
||||
id: string;
|
||||
level: number;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export type {
|
||||
DataOptions,
|
||||
Pagination,
|
||||
DataOptionTechnique,
|
||||
ProjectYearOp,
|
||||
EvaluatorType,
|
||||
MainListKpi,
|
||||
PaginationType,
|
||||
ListCriteria,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -71,6 +71,25 @@ interface FormQuery {
|
|||
keyword: string;
|
||||
}
|
||||
|
||||
interface ListTarget {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
createdUserId: string;
|
||||
lastUpdatedAt: string;
|
||||
lastUpdateUserId: string;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
topic: string;
|
||||
reason: string;
|
||||
score: number | null;
|
||||
reasonEvaluator: string | null;
|
||||
reasonCommander: string | null;
|
||||
reasonCommanderHigh: string | null;
|
||||
status: string;
|
||||
type: string;
|
||||
kpiUserCapacityId: string;
|
||||
}
|
||||
|
||||
export type {
|
||||
FormProfile,
|
||||
FormDataAssigned,
|
||||
|
|
@ -80,4 +99,5 @@ export type {
|
|||
FormComment,
|
||||
FormCommentByRole,
|
||||
FormQuery,
|
||||
ListTarget
|
||||
};
|
||||
|
|
|
|||
|
|
@ -41,4 +41,57 @@ interface ResEvaluatorAssessor {
|
|||
profileId: string;
|
||||
}
|
||||
|
||||
export type { ResEvaluator, ResRound, ResEvaluatorAssessor };
|
||||
interface EvaOptionType {
|
||||
id: string;
|
||||
prefix: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
citizenId: string;
|
||||
position: string;
|
||||
posLevel: string;
|
||||
posType: string;
|
||||
isDirector: boolean;
|
||||
}
|
||||
|
||||
interface RoundKpiResponse {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
createdUserId: string;
|
||||
lastUpdatedAt: string;
|
||||
lastUpdateUserId: string;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
year: number;
|
||||
durationKPI: string;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
interface EvaluationIndicatorType {
|
||||
id: string;
|
||||
evaluationId: string;
|
||||
indicatorId: string;
|
||||
includingName: string;
|
||||
target: string;
|
||||
weight: number;
|
||||
unit: string;
|
||||
meaning: string;
|
||||
formula: string;
|
||||
summary: number;
|
||||
point: number;
|
||||
achievement: string;
|
||||
achievement1: string;
|
||||
achievement2: string;
|
||||
achievement3: string;
|
||||
achievement4: string;
|
||||
achievement5: string;
|
||||
}
|
||||
export type {
|
||||
ResEvaluator,
|
||||
ResRound,
|
||||
ResEvaluatorAssessor,
|
||||
EvaOptionType,
|
||||
RoundKpiResponse,
|
||||
EvaluationIndicatorType
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue