From f54a35f770ffbda9ba17a6672b8b882d11d972b1 Mon Sep 17 00:00:00 2001 From: kittapath Date: Tue, 18 Mar 2025 15:32:21 +0700 Subject: [PATCH] add isupload --- src/entities/ProfileAbility.ts | 2 ++ src/entities/ProfileAssistance.ts | 2 ++ src/entities/ProfileCertificate.ts | 9 +++++++++ src/entities/ProfileCertificateHistory.ts | 6 ++++++ src/entities/ProfileDiscipline.ts | 9 +++++++++ src/entities/ProfileDisciplineHistory.ts | 6 ++++++ src/entities/ProfileDuty.ts | 2 ++ src/entities/ProfileHonor.ts | 2 ++ src/entities/ProfileInsignia.ts | 2 ++ src/entities/ProfileNopaid.ts | 9 +++++++++ src/entities/ProfileNopaidHistory.ts | 6 ++++++ 11 files changed, 55 insertions(+) diff --git a/src/entities/ProfileAbility.ts b/src/entities/ProfileAbility.ts index 6b5767f1..da0aee40 100644 --- a/src/entities/ProfileAbility.ts +++ b/src/entities/ProfileAbility.ts @@ -99,6 +99,7 @@ export class CreateProfileAbility { dateStart: Date | null; dateEnd: Date | null; field: string | null; + isUpload?: boolean | null; } export class CreateProfileAbilityEmployee { @@ -109,6 +110,7 @@ export class CreateProfileAbilityEmployee { dateStart: Date | null; dateEnd: Date | null; field: string | null; + isUpload?: boolean | null; } export type UpdateProfileAbility = { diff --git a/src/entities/ProfileAssistance.ts b/src/entities/ProfileAssistance.ts index c74af049..bf5cdd10 100644 --- a/src/entities/ProfileAssistance.ts +++ b/src/entities/ProfileAssistance.ts @@ -109,6 +109,7 @@ export class CreateProfileAssistance { document: string | null; refCommandDate?: string | null; commandId?: string | null; + isUpload?: boolean | null; } export class CreateProfileAssistanceEmployee { @@ -120,6 +121,7 @@ export class CreateProfileAssistanceEmployee { document: string | null; refCommandDate?: string | null; commandId?: string | null; + isUpload?: boolean | null; } export type UpdateProfileAssistance = { diff --git a/src/entities/ProfileCertificate.ts b/src/entities/ProfileCertificate.ts index 1c1cdd7e..74e217e4 100644 --- a/src/entities/ProfileCertificate.ts +++ b/src/entities/ProfileCertificate.ts @@ -62,6 +62,12 @@ export class ProfileCertificate extends EntityBase { }) issuer: string; + @Column({ + comment: "แนบไฟล์เอกสาร", + default: false, + }) + isUpload: boolean; + @OneToMany( () => ProfileCertificateHistory, (profileCertificateHistory) => profileCertificateHistory.histories, @@ -84,6 +90,7 @@ export class CreateProfileCertificate { certificateNo: string | null; certificateType: string | null; issuer: string | null; + isUpload?: boolean | null; } export class CreateProfileEmployeeCertificate { @@ -93,6 +100,7 @@ export class CreateProfileEmployeeCertificate { certificateNo: string | null; certificateType: string | null; issuer: string | null; + isUpload?: boolean | null; } export type UpdateProfileCertificate = { @@ -101,4 +109,5 @@ export type UpdateProfileCertificate = { certificateNo?: string | null; certificateType?: string | null; issuer?: string | null; + isUpload?: boolean | null; }; diff --git a/src/entities/ProfileCertificateHistory.ts b/src/entities/ProfileCertificateHistory.ts index 8b2dad8d..022d1e17 100644 --- a/src/entities/ProfileCertificateHistory.ts +++ b/src/entities/ProfileCertificateHistory.ts @@ -44,6 +44,12 @@ export class ProfileCertificateHistory extends EntityBase { }) issuer: string; + @Column({ + comment: "แนบไฟล์เอกสาร", + default: false, + }) + isUpload: boolean; + @Column({ nullable: true, length: 40, diff --git a/src/entities/ProfileDiscipline.ts b/src/entities/ProfileDiscipline.ts index c9fb0f3c..c4647593 100644 --- a/src/entities/ProfileDiscipline.ts +++ b/src/entities/ProfileDiscipline.ts @@ -70,6 +70,12 @@ export class ProfileDiscipline extends EntityBase { }) unStigma: string; + @Column({ + comment: "แนบไฟล์เอกสาร", + default: false, + }) + isUpload: boolean; + @OneToMany( () => ProfileDisciplineHistory, (profileDisciplineHistory) => profileDisciplineHistory.histories, @@ -93,6 +99,7 @@ export class CreateProfileDiscipline { refCommandDate: Date | null; refCommandNo: string | null; unStigma: string | null; + isUpload?: boolean | null; } export class CreateProfileEmployeeDiscipline { @@ -103,6 +110,7 @@ export class CreateProfileEmployeeDiscipline { refCommandDate: Date | null; refCommandNo: string | null; unStigma: string | null; + isUpload?: boolean | null; } export type UpdateProfileDiscipline = { @@ -113,4 +121,5 @@ export type UpdateProfileDiscipline = { refCommandDate?: Date | null; refCommandNo?: string | null; unStigma?: string | null; + isUpload?: boolean | null; }; diff --git a/src/entities/ProfileDisciplineHistory.ts b/src/entities/ProfileDisciplineHistory.ts index 33769257..f265a825 100644 --- a/src/entities/ProfileDisciplineHistory.ts +++ b/src/entities/ProfileDisciplineHistory.ts @@ -59,6 +59,12 @@ export class ProfileDisciplineHistory extends EntityBase { }) unStigma: string; + @Column({ + comment: "แนบไฟล์เอกสาร", + default: false, + }) + isUpload: boolean; + @ManyToOne( () => ProfileDiscipline, (profileDiscipline) => profileDiscipline.profileDisciplineHistories, diff --git a/src/entities/ProfileDuty.ts b/src/entities/ProfileDuty.ts index 0454b6fb..9bd98ca5 100644 --- a/src/entities/ProfileDuty.ts +++ b/src/entities/ProfileDuty.ts @@ -96,6 +96,7 @@ export class CreateProfileDuty { reference: string | null; refCommandDate: Date | null; refCommandNo: string | null; + isUpload?: boolean | null; } export class CreateProfileEmployeeDuty { @@ -106,6 +107,7 @@ export class CreateProfileEmployeeDuty { reference: string | null; refCommandDate: Date | null; refCommandNo: string | null; + isUpload?: boolean | null; } export type UpdateProfileDuty = { diff --git a/src/entities/ProfileHonor.ts b/src/entities/ProfileHonor.ts index 1e73f676..718d15ad 100644 --- a/src/entities/ProfileHonor.ts +++ b/src/entities/ProfileHonor.ts @@ -104,6 +104,7 @@ export class CreateProfileHonor { refCommandNo: string | null; type: string | null; isDate: boolean | null; + isUpload?: boolean | null; } export class CreateProfileEmployeeHonor { @@ -115,6 +116,7 @@ export class CreateProfileEmployeeHonor { refCommandNo: string | null; type: string | null; isDate: boolean | null; + isUpload?: boolean | null; } export type UpdateProfileHonor = { diff --git a/src/entities/ProfileInsignia.ts b/src/entities/ProfileInsignia.ts index d195b701..23b91bcb 100644 --- a/src/entities/ProfileInsignia.ts +++ b/src/entities/ProfileInsignia.ts @@ -162,6 +162,7 @@ export class CreateProfileInsignia { refCommandDate: Date | null; refCommandNo: string | null; note: string | null; + isUpload?: boolean | null; } export class CreateProfileEmployeeInsignia { @@ -179,6 +180,7 @@ export class CreateProfileEmployeeInsignia { refCommandDate: Date | null; refCommandNo: string | null; note: string | null; + isUpload?: boolean | null; } export type UpdateProfileInsignia = { diff --git a/src/entities/ProfileNopaid.ts b/src/entities/ProfileNopaid.ts index 84246ba0..ddbe6565 100644 --- a/src/entities/ProfileNopaid.ts +++ b/src/entities/ProfileNopaid.ts @@ -62,6 +62,12 @@ export class ProfileNopaid extends EntityBase { }) refCommandNo: string; + @Column({ + comment: "แนบไฟล์เอกสาร", + default: false, + }) + isUpload: boolean; + @OneToMany(() => ProfileNopaidHistory, (profileNopaidHistory) => profileNopaidHistory.histories) profileNopaidHistories: ProfileNopaidHistory[]; @@ -81,6 +87,7 @@ export class CreateProfileNopaid { reference: string | null; refCommandDate: Date | null; refCommandNo: string | null; + isUpload?: boolean | null; } export class CreateProfileEmployeeNopaid { @@ -90,6 +97,7 @@ export class CreateProfileEmployeeNopaid { reference: string | null; refCommandDate: Date | null; refCommandNo: string | null; + isUpload?: boolean | null; } export type UpdateProfileNopaid = { @@ -98,4 +106,5 @@ export type UpdateProfileNopaid = { reference?: string | null; refCommandDate?: Date | null; refCommandNo?: string | null; + isUpload?: boolean | null; }; diff --git a/src/entities/ProfileNopaidHistory.ts b/src/entities/ProfileNopaidHistory.ts index 28fa9afa..905395ef 100644 --- a/src/entities/ProfileNopaidHistory.ts +++ b/src/entities/ProfileNopaidHistory.ts @@ -44,6 +44,12 @@ export class ProfileNopaidHistory extends EntityBase { }) refCommandNo: string; + @Column({ + comment: "แนบไฟล์เอกสาร", + default: false, + }) + isUpload: boolean; + @Column({ nullable: true, length: 40,