user request data
This commit is contained in:
parent
939ed6ddfd
commit
d899039b9d
9 changed files with 688 additions and 6 deletions
|
|
@ -3,9 +3,20 @@ import { EntityBase } from "./base/Base";
|
|||
import { Profile } from "./Profile";
|
||||
import { ProfileEmployee } from "./ProfileEmployee";
|
||||
import { ProfileDevelopmentHistory } from "./ProfileDevelopmentHistory";
|
||||
import { DevelopmentProject } from "./DevelopmentProject";
|
||||
|
||||
@Entity("profileDevelopment")
|
||||
export class ProfileDevelopment extends EntityBase {
|
||||
// REQUEST = ขอแก้ไข
|
||||
// DEVELOP = พัฒนา
|
||||
// KPI = ประเมิน
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระบบ",
|
||||
default: null,
|
||||
})
|
||||
type: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
|
|
@ -111,6 +122,30 @@ export class ProfileDevelopment extends EntityBase {
|
|||
})
|
||||
reasonDevelopment10: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "เป้าหมายการนำไปพัฒนางาน",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
developmentTarget: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "วิธีการวัดผลการพัฒนา",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
developmentResults: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "รายงานผลการพัฒนา",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
developmentReport: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
|
|
@ -132,9 +167,16 @@ export class ProfileDevelopment extends EntityBase {
|
|||
@ManyToOne(() => ProfileEmployee, (ProfileEmployee) => ProfileEmployee.profileDevelopments)
|
||||
@JoinColumn({ name: "profileEmployeeId" })
|
||||
profileEmployee: ProfileEmployee;
|
||||
|
||||
@OneToMany(
|
||||
() => DevelopmentProject,
|
||||
(developmentProject) => developmentProject.profileDevelopment,
|
||||
)
|
||||
developmentProjects: DevelopmentProject[];
|
||||
}
|
||||
|
||||
export class CreateProfileDevelopment {
|
||||
type?: string | null;
|
||||
profileId: string | null;
|
||||
name: string | null;
|
||||
target: string | null;
|
||||
|
|
@ -153,6 +195,7 @@ export class CreateProfileDevelopment {
|
|||
}
|
||||
|
||||
export class CreateProfileEmployeeDevelopment {
|
||||
type?: string | null;
|
||||
profileEmployeeId: string | null;
|
||||
name: string | null;
|
||||
target: string | null;
|
||||
|
|
@ -171,6 +214,7 @@ export class CreateProfileEmployeeDevelopment {
|
|||
}
|
||||
|
||||
export type UpdateProfileDevelopment = {
|
||||
type?: string | null;
|
||||
name: string | null;
|
||||
target: string | null;
|
||||
achievement10?: string | null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue