เพิ่มประเภทโครงการ

This commit is contained in:
Kittapath 2024-08-06 10:42:45 +07:00
parent b4078299f5
commit fb7ccb0a3b
2 changed files with 36 additions and 0 deletions

View file

@ -241,6 +241,9 @@ export class KpiUserDevelopmentController extends Controller {
reasonDevelopment70: getKpiUserDevelopment.reasonDevelopment70,
reasonDevelopment20: getKpiUserDevelopment.reasonDevelopment20,
reasonDevelopment10: getKpiUserDevelopment.reasonDevelopment10,
selectType: getKpiUserDevelopment.selectType,
selectTypeYear: getKpiUserDevelopment.selectTypeYear,
selectTypeId: getKpiUserDevelopment.selectTypeId,
developmentProjects: getKpiUserDevelopment.developmentProjects.map((x) => x.name).sort(),
};

View file

@ -95,6 +95,27 @@ export class KpiUserDevelopment extends EntityBase {
})
reasonDevelopment10: string;
@Column({
nullable: true,
comment: "ประเภทข้อมูลพัฒนา",
default: null,
})
selectType: string;
@Column({
nullable: true,
comment: "ปีพัฒนา",
default: null,
})
selectTypeYear: string;
@Column({
nullable: true,
comment: "id พัฒนา",
default: null,
})
selectTypeId: string;
@OneToMany(
() => DevelopmentProject,
(developmentProject: DevelopmentProject) => developmentProject.kpiUserDevelopment,
@ -126,6 +147,12 @@ export class CreateKpiUserDevelopment {
@Column()
target: string | null;
@Column()
selectType: string | null;
@Column()
selectTypeYear: string | null;
@Column()
selectTypeId: string | null;
@Column()
achievement10?: string | null;
@Column()
achievement5?: string | null;
@ -155,6 +182,12 @@ export class UpdateKpiUserDevelopment {
@Column()
target: string | null;
@Column()
selectType: string | null;
@Column()
selectTypeYear: string | null;
@Column()
selectTypeId: string | null;
@Column()
achievement10?: string | null;
@Column()
achievement5?: string | null;