no message
This commit is contained in:
parent
65e1d682b1
commit
42264be4a2
16 changed files with 55 additions and 201 deletions
|
|
@ -1,14 +1,10 @@
|
|||
import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { KpiPeriod } from "./kpiPeriod";
|
||||
import { KpiUserHead } from "./kpiUserHead";
|
||||
import { KpiUserGroup } from "./kpiUserGroup";
|
||||
import { KpiUserExecutive } from "./kpiUserExecutive";
|
||||
import { KpiUserDirector } from "./kpiUserDirector";
|
||||
import { KpiUserInspector } from "./kpiUserInspector";
|
||||
import { KpiUserSpecial } from "./kpiUserSpecial";
|
||||
import { KpiUserRole } from "./kpiUserRole";
|
||||
import { KpiUserPlanned } from "./kpiUserPlanned";
|
||||
import { KpiUserCapacity } from "./kpiUserCapacity";
|
||||
@Entity("kpiUserEvaluation")
|
||||
export class KpiUserEvaluation extends EntityBase {
|
||||
@Column({
|
||||
|
|
@ -51,48 +47,38 @@ export class KpiUserEvaluation extends EntityBase {
|
|||
})
|
||||
profileId: string;
|
||||
|
||||
@Column({ // PENDING = รอการประเมิน , INPROGRESS = กําลังประเมิน , DONE = ประเมินเสร็จสิ้น
|
||||
nullable: true,
|
||||
@Column({
|
||||
// PENDING = รอการประเมิน , INPROGRESS = กําลังประเมิน , DONE = ประเมินเสร็จสิ้น
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "สถานะการประเมินผล",
|
||||
comment: "สถานะการประเมินผล",
|
||||
default: null,
|
||||
})
|
||||
evaluationStatus: string;
|
||||
|
||||
@Column({ // PASSED = ผ่านการประเมิน , NOTPASSED = ไม่ผ่านการประเมิน
|
||||
nullable: true,
|
||||
@Column({
|
||||
// PASSED = ผ่านการประเมิน , NOTPASSED = ไม่ผ่านการประเมิน
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "ผลการประเมิน",
|
||||
comment: "ผลการประเมิน",
|
||||
default: null,
|
||||
})
|
||||
evaluationResults: string;
|
||||
|
||||
@ManyToOne(() => KpiPeriod, (kpiPeriod) => kpiPeriod.kpiUserEvaluation)
|
||||
@ManyToOne(() => KpiPeriod, (kpiPeriod) => kpiPeriod.kpiUserEvaluations)
|
||||
@JoinColumn({ name: "kpiPeriodId" })
|
||||
kpiPeriod: KpiPeriod;
|
||||
|
||||
@OneToMany(() => KpiUserHead, (kpiUserHead) => kpiUserHead.kpiUserEvaluations)
|
||||
kpiUserHeads: KpiUserHead[];
|
||||
@OneToMany(() => KpiUserCapacity, (kpiUserCapacity) => kpiUserCapacity.kpiUserEvaluation)
|
||||
kpiUserCapacitys: KpiUserCapacity[];
|
||||
|
||||
@OneToMany(() => KpiUserGroup, (kpiUserGroup) => kpiUserGroup.kpiUserEvaluations)
|
||||
kpiUserGroups: KpiUserGroup[];
|
||||
|
||||
@OneToMany(() => KpiUserExecutive, (kpiUserExecutive) => kpiUserExecutive.kpiUserEvaluations)
|
||||
kpiUserExecutives: KpiUserExecutive[];
|
||||
|
||||
@OneToMany(() => KpiUserDirector, (kpiUserDirector) => kpiUserDirector.kpiUserEvaluations)
|
||||
kpiUserDirectors: KpiUserDirector[];
|
||||
|
||||
@OneToMany(() => KpiUserInspector, (kpiUserInspector) => kpiUserInspector.kpiUserEvaluations)
|
||||
kpiUserInspectors: KpiUserInspector[];
|
||||
|
||||
@OneToMany(() => KpiUserPlanned, (kpiUserPlanned) => kpiUserPlanned.kpiUserEvaluations)
|
||||
@OneToMany(() => KpiUserPlanned, (kpiUserPlanned) => kpiUserPlanned.kpiUserEvaluation)
|
||||
kpiUserPlanneds: KpiUserPlanned[];
|
||||
|
||||
@OneToMany(() => KpiUserRole, (kpiUserRole) => kpiUserRole.kpiUserEvaluations)
|
||||
@OneToMany(() => KpiUserRole, (kpiUserRole) => kpiUserRole.kpiUserEvaluation)
|
||||
kpiUserRoles: KpiUserRole[];
|
||||
|
||||
@OneToMany(() => KpiUserSpecial, (kpiUserSpecial) => kpiUserSpecial.kpiUserEvaluations)
|
||||
@OneToMany(() => KpiUserSpecial, (kpiUserSpecial) => kpiUserSpecial.kpiUserEvaluation)
|
||||
kpiUserSpecials: KpiUserSpecial[];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue