Merge branch 'net-dav' into develop
This commit is contained in:
commit
2d15c5d23f
6 changed files with 14 additions and 84 deletions
|
|
@ -13,12 +13,6 @@ export class ProfileHonor extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 2000,
|
length: 2000,
|
||||||
|
|
@ -38,7 +32,7 @@ export class ProfileHonor extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 200,
|
length: 200,
|
||||||
comment: "หน่วยงานที่ออก",
|
comment: "หน่วยงานที่ออก ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
issuer: string;
|
issuer: string;
|
||||||
|
|
@ -59,13 +53,6 @@ export class ProfileHonor extends EntityBase {
|
||||||
})
|
})
|
||||||
refCommandNo: string;
|
refCommandNo: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
comment: "ประเภทช่วงเวลาการศึกษา",
|
|
||||||
default: null,
|
|
||||||
})
|
|
||||||
isDate: boolean;
|
|
||||||
|
|
||||||
@OneToMany(() => ProfileHonorHistory, (profileHonorHistory) => profileHonorHistory.histories)
|
@OneToMany(() => ProfileHonorHistory, (profileHonorHistory) => profileHonorHistory.histories)
|
||||||
profileHonorHistories: ProfileHonorHistory[];
|
profileHonorHistories: ProfileHonorHistory[];
|
||||||
|
|
||||||
|
|
@ -76,21 +63,17 @@ export class ProfileHonor extends EntityBase {
|
||||||
|
|
||||||
export class CreateProfileHonor {
|
export class CreateProfileHonor {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
issueDate: Date | null;
|
issueDate: Date | null;
|
||||||
issuer: string | null;
|
issuer: string | null;
|
||||||
refCommandDate: Date | null;
|
refCommandDate: Date | null;
|
||||||
refCommandNo: string | null;
|
refCommandNo: string | null;
|
||||||
isDate: boolean | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileHonor = {
|
export type UpdateProfileHonor = {
|
||||||
isActive?: boolean;
|
|
||||||
detail?: string | null;
|
detail?: string | null;
|
||||||
issueDate?: Date | null;
|
issueDate?: Date | null;
|
||||||
issuer?: string | null;
|
issuer?: string | null;
|
||||||
refCommandDate?: Date | null;
|
refCommandDate?: Date | null;
|
||||||
refCommandNo?: string | null;
|
refCommandNo?: string | null;
|
||||||
isDate?: boolean | null;
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -57,14 +57,6 @@ export class ProfileInsignia extends EntityBase {
|
||||||
})
|
})
|
||||||
page: string;
|
page: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
type: "datetime",
|
|
||||||
comment: "ลงวันที่",
|
|
||||||
default: null,
|
|
||||||
})
|
|
||||||
receiveDate: Date;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -136,13 +128,13 @@ export class ProfileInsignia extends EntityBase {
|
||||||
|
|
||||||
export class CreateProfileInsignia {
|
export class CreateProfileInsignia {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
year: number;
|
year: number;
|
||||||
no: string | null;
|
no: string | null;
|
||||||
volume: string | null;
|
volume: string | null;
|
||||||
section: string | null;
|
section: string | null;
|
||||||
page: string | null;
|
page: string | null;
|
||||||
receiveDate: Date | null;
|
|
||||||
insigniaId: string;
|
insigniaId: string;
|
||||||
dateAnnounce: Date | null;
|
dateAnnounce: Date | null;
|
||||||
issue: string | null;
|
issue: string | null;
|
||||||
|
|
@ -153,13 +145,12 @@ export class CreateProfileInsignia {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileInsignia = {
|
export type UpdateProfileInsignia = {
|
||||||
isActive?: boolean;
|
|
||||||
year?: number;
|
year?: number;
|
||||||
no?: string | null;
|
no?: string | null;
|
||||||
volume?: string | null;
|
volume?: string | null;
|
||||||
section?: string | null;
|
section?: string | null;
|
||||||
page?: string | null;
|
page?: string | null;
|
||||||
receiveDate?: Date | null;
|
|
||||||
insigniaId?: string | null;
|
insigniaId?: string | null;
|
||||||
insigniaType?: string | null;
|
insigniaType?: string | null;
|
||||||
dateAnnounce?: Date | null;
|
dateAnnounce?: Date | null;
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,6 @@ export class ProfileOther extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "รายละเอียด",
|
comment: "รายละเอียด",
|
||||||
|
|
@ -45,13 +39,11 @@ export class ProfileOther extends EntityBase {
|
||||||
|
|
||||||
export class CreateProfileOther {
|
export class CreateProfileOther {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
date: Date | null;
|
date: Date | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileOther = {
|
export type UpdateProfileOther = {
|
||||||
isActive?: boolean;
|
|
||||||
detail?: string | null;
|
detail?: string | null;
|
||||||
date?: Date | null;
|
date?: Date | null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,6 @@ export class ProfileOtherHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
profileOtherId: string;
|
profileOtherId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "รายละเอียด",
|
comment: "รายละเอียด",
|
||||||
|
|
|
||||||
|
|
@ -13,16 +13,10 @@ export class ProfileTraining extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
comment: "วันเริ่มต้นการฝึกอบรม/ดูงาน",
|
comment: "วันเริ่มต้นการฝึกอบรม/ดูงาน ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
startDate: Date;
|
startDate: Date;
|
||||||
|
|
@ -30,7 +24,7 @@ export class ProfileTraining extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
comment: "วันสิ้นสุดการฝึกอบรม/ดูงาน",
|
comment: "วันสิ้นสุดการฝึกอบรม/ดูงาน ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
endDate: Date;
|
endDate: Date;
|
||||||
|
|
@ -38,7 +32,7 @@ export class ProfileTraining extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 200,
|
length: 200,
|
||||||
comment: "เลขที่คำสั่ง/เลขที่หนังสืออนุมัติ",
|
comment: "เลขที่คำสั่ง/เลขที่หนังสืออนุมัติ ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
numberOrder: string;
|
numberOrder: string;
|
||||||
|
|
@ -46,7 +40,7 @@ export class ProfileTraining extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 200,
|
length: 200,
|
||||||
comment: "หัวข้อการฝึกอบรม/ดูงาน",
|
comment: "หัวข้อการฝึกอบรม/ดูงาน ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
topic: string;
|
topic: string;
|
||||||
|
|
@ -54,7 +48,7 @@ export class ProfileTraining extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 200,
|
length: 200,
|
||||||
comment: "สถานที่ฝึกอบรม/ดูงาน",
|
comment: "สถานที่ฝึกอบรม/ดูงาน ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
place: string;
|
place: string;
|
||||||
|
|
@ -62,7 +56,7 @@ export class ProfileTraining extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
comment: "คำสั่งลงวันที่/หนังสืออนุมัติลงวันที่",
|
comment: "คำสั่งลงวันที่/หนังสืออนุมัติลงวันที่ ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
dateOrder: Date;
|
dateOrder: Date;
|
||||||
|
|
@ -70,7 +64,7 @@ export class ProfileTraining extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 200,
|
length: 200,
|
||||||
comment: "หน่วยงานที่รับผิดชอบจัดการฝึกอบรม/ดูงาน",
|
comment: "หน่วยงานที่รับผิดชอบจัดการฝึกอบรม/ดูงาน ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
department: string;
|
department: string;
|
||||||
|
|
@ -78,7 +72,7 @@ export class ProfileTraining extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 200,
|
length: 200,
|
||||||
comment: "รวมระยะเวลาในการฝึกอบรม/ดูงาน",
|
comment: "รวมระยะเวลาในการฝึกอบรม/ดูงาน ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
duration: string;
|
duration: string;
|
||||||
|
|
@ -86,25 +80,18 @@ export class ProfileTraining extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 200,
|
length: 200,
|
||||||
comment: "ชื่อโครงการ/หลักสูตรการฝึกอบรม",
|
comment: "ชื่อโครงการ/หลักสูตรการฝึกอบรม ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ปีที่อบรม (พ.ศ.)",
|
comment: "ปีที่อบรม (พ.ศ.) ",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
yearly: number;
|
yearly: number;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
comment: "ประเภทช่วงเวลาการศึกษา",
|
|
||||||
default: null,
|
|
||||||
})
|
|
||||||
isDate: boolean;
|
|
||||||
|
|
||||||
@OneToMany(
|
@OneToMany(
|
||||||
() => ProfileTrainingHistory,
|
() => ProfileTrainingHistory,
|
||||||
(profileTrainingHistory) => profileTrainingHistory.histories,
|
(profileTrainingHistory) => profileTrainingHistory.histories,
|
||||||
|
|
@ -118,7 +105,6 @@ export class ProfileTraining extends EntityBase {
|
||||||
|
|
||||||
export class CreateProfileTraining {
|
export class CreateProfileTraining {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
startDate: Date | null;
|
startDate: Date | null;
|
||||||
endDate: Date | null;
|
endDate: Date | null;
|
||||||
numberOrder: string | null;
|
numberOrder: string | null;
|
||||||
|
|
@ -129,11 +115,9 @@ export class CreateProfileTraining {
|
||||||
duration: string | null;
|
duration: string | null;
|
||||||
name: string | null;
|
name: string | null;
|
||||||
yearly: number | null;
|
yearly: number | null;
|
||||||
isDate: boolean | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileTraining = {
|
export type UpdateProfileTraining = {
|
||||||
isActive?: boolean;
|
|
||||||
startDate?: Date | null;
|
startDate?: Date | null;
|
||||||
endDate?: Date | null;
|
endDate?: Date | null;
|
||||||
numberOrder?: string | null;
|
numberOrder?: string | null;
|
||||||
|
|
@ -144,5 +128,4 @@ export type UpdateProfileTraining = {
|
||||||
duration?: string | null;
|
duration?: string | null;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
yearly?: number | null;
|
yearly?: number | null;
|
||||||
isDate?: boolean | null;
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,6 @@ import { ProfileTraining } from "./ProfileTraining";
|
||||||
|
|
||||||
@Entity("profileTrainingHistory")
|
@Entity("profileTrainingHistory")
|
||||||
export class ProfileTrainingHistory extends EntityBase {
|
export class ProfileTrainingHistory extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -98,13 +92,6 @@ export class ProfileTrainingHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
profileTrainingId: string;
|
profileTrainingId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
comment: "ประเภทช่วงเวลาการศึกษา",
|
|
||||||
default: null,
|
|
||||||
})
|
|
||||||
isDate: boolean;
|
|
||||||
|
|
||||||
@ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories)
|
@ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories)
|
||||||
@JoinColumn({ name: "profileTrainingId" })
|
@JoinColumn({ name: "profileTrainingId" })
|
||||||
histories: ProfileTraining;
|
histories: ProfileTraining;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue