เพิ่มฟิวผู้บังคับ

This commit is contained in:
Kittapath 2024-04-26 13:08:23 +07:00
parent ba00645cb8
commit ecbb9c0d9f
7 changed files with 171 additions and 64 deletions

View file

@ -47,11 +47,36 @@ export class KpiUserEvaluation extends EntityBase {
})
profileId: string;
@Column({
nullable: true,
length: 40,
comment: "ไอดีผู้ประเมิน",
default: null,
})
evaluatorId: string;
@Column({
nullable: true,
length: 40,
comment: "ไอดีผู้บังคับบัญชาเหนือขึ้นไป",
default: null,
})
commanderId: string;
@Column({
nullable: true,
length: 40,
comment: "ไอดีผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง",
default: null,
})
commanderHighId: string;
@Column({
// "สถานะการประเมินผล ดังนี้ PENDING = รอดำเนินการ, INPROGRESS = กําลังดำเนินการ, DONE = ประเมินเสร็จสิ้น",
nullable: true,
length: 40,
comment: "สถานะการประเมินผล ดังนี้ PENDING = รอดำเนินการ, INPROGRESS = กําลังดำเนินการ, DONE = ประเมินเสร็จสิ้น",
comment:
"สถานะการประเมินผล ดังนี้ PENDING = รอดำเนินการ, INPROGRESS = กําลังดำเนินการ, DONE = ประเมินเสร็จสิ้น",
default: null,
})
evaluationStatus: string;
@ -60,7 +85,8 @@ export class KpiUserEvaluation extends EntityBase {
// "ผลการประเมิน ดังนี้ PENDING = รอดำเนินการ, PASSED = ผ่านการประเมิน, NOTPASSED = ไม่ผ่านการประเมิน",
nullable: true,
length: 40,
comment: "ผลการประเมิน ดังนี้ PENDING = รอดำเนินการ, PASSED = ผ่านการประเมิน, NOTPASSED = ไม่ผ่านการประเมิน",
comment:
"ผลการประเมิน ดังนี้ PENDING = รอดำเนินการ, PASSED = ผ่านการประเมิน, NOTPASSED = ไม่ผ่านการประเมิน",
default: null,
})
evaluationResults: string;
@ -93,6 +119,12 @@ export class createKpiUserEvaluation {
kpiPeriodId: string;
@Column()
profileId: string;
@Column()
evaluatorId: string | null;
@Column()
commanderId: string | null;
@Column()
commanderHighId: string | null;
}
export class updateKpiUserEvaluation {
@ -107,3 +139,12 @@ export class updateKpiUserEvaluation {
@Column()
profileId: string;
}
export class updateKpiUserCheckEvaluation {
@Column()
evaluatorId: string | null;
@Column()
commanderId: string | null;
@Column()
commanderHighId: string | null;
}