Merge branch 'net-dav' into develop
This commit is contained in:
commit
5ef971bf07
5 changed files with 54 additions and 138 deletions
|
|
@ -259,7 +259,7 @@ export class ProfileLeave extends EntityBase {
|
|||
})
|
||||
typeLeaveId: string;
|
||||
|
||||
@Column({
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "เหตุผล",
|
||||
type: "text",
|
||||
|
|
@ -276,104 +276,73 @@ export class ProfileLeave extends EntityBase {
|
|||
}
|
||||
|
||||
export class CreateProfileLeave {
|
||||
@Column("uuid")
|
||||
profileId: string | null;
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
@Column()
|
||||
restCount: number | null;
|
||||
|
||||
@Column()
|
||||
restDay: number | null;
|
||||
|
||||
@Column()
|
||||
sickCount: number | null;
|
||||
|
||||
@Column()
|
||||
sickDay: number | null;
|
||||
|
||||
@Column()
|
||||
otherDay: number | null;
|
||||
|
||||
@Column()
|
||||
personalCount: number | null;
|
||||
|
||||
@Column()
|
||||
personalDay: number | null;
|
||||
|
||||
@Column()
|
||||
studyCount: number | null;
|
||||
|
||||
@Column()
|
||||
absentCount: number | null;
|
||||
|
||||
@Column()
|
||||
absentDay: number | null;
|
||||
|
||||
@Column()
|
||||
agencyCount: number | null;
|
||||
|
||||
@Column()
|
||||
agencyDay: number | null;
|
||||
|
||||
@Column()
|
||||
agencyDay: number | null;
|
||||
coupleCount: number | null;
|
||||
|
||||
@Column()
|
||||
coupleDay: number | null;
|
||||
|
||||
@Column()
|
||||
lateCount: number | null;
|
||||
|
||||
@Column()
|
||||
lateDay: number | null;
|
||||
|
||||
@Column()
|
||||
maternityCount: number | null;
|
||||
|
||||
@Column()
|
||||
maternityDay: number | null;
|
||||
|
||||
@Column()
|
||||
militaryCount: number | null;
|
||||
|
||||
@Column()
|
||||
militaryDay: number | null;
|
||||
|
||||
@Column()
|
||||
ordainCount: number | null;
|
||||
|
||||
@Column()
|
||||
ordainDay: number | null;
|
||||
|
||||
@Column()
|
||||
otherCount: number | null;
|
||||
|
||||
@Column()
|
||||
dateStartLeave: Date | null;
|
||||
|
||||
@Column()
|
||||
dateEndLeave: Date | null;
|
||||
|
||||
@Column()
|
||||
numLeave: number | null;
|
||||
|
||||
@Column()
|
||||
sumLeave: number | null;
|
||||
|
||||
@Column()
|
||||
totalLeave: number | null;
|
||||
|
||||
@Column()
|
||||
status: string | null;
|
||||
|
||||
@Column("uuid")
|
||||
typeLeaveId: string | null;
|
||||
|
||||
@Column()
|
||||
reason: string | null;
|
||||
}
|
||||
|
||||
export type UpdateProfileLeave = Partial<CreateProfileLeave>;
|
||||
export type UpdateProfileLeave = {
|
||||
profileId: string | null;
|
||||
isActive: boolean;
|
||||
restCount: number | null;
|
||||
restDay: number | null;
|
||||
sickCount: number | null;
|
||||
sickDay: number | null;
|
||||
otherDay: number | null;
|
||||
personalCount: number | null;
|
||||
personalDay: number | null;
|
||||
studyCount: number | null;
|
||||
absentCount: number | null;
|
||||
absentDay: number | null;
|
||||
agencyCount: number | null;
|
||||
agencyDay: number | null;
|
||||
coupleCount: number | null;
|
||||
coupleDay: number | null;
|
||||
lateCount: number | null;
|
||||
lateDay: number | null;
|
||||
maternityCount: number | null;
|
||||
maternityDay: number | null;
|
||||
militaryCount: number | null;
|
||||
militaryDay: number | null;
|
||||
ordainCount: number | null;
|
||||
ordainDay: number | null;
|
||||
otherCount: number | null;
|
||||
dateStartLeave?: Date | null;
|
||||
dateEndLeave?: Date | null;
|
||||
numLeave: number | null;
|
||||
sumLeave: number | null;
|
||||
totalLeave: number | null;
|
||||
status: string | null;
|
||||
typeLeaveId: string | null;
|
||||
reason: string | null;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -68,27 +68,21 @@ export class ProfileNopaid extends EntityBase {
|
|||
}
|
||||
|
||||
export class CreateProfileNopaid {
|
||||
@Column("uuid")
|
||||
profileId: string | null;
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
@Column()
|
||||
date: Date | null;
|
||||
|
||||
@Column()
|
||||
detail: string | null;
|
||||
|
||||
@Column()
|
||||
reference: string | null;
|
||||
|
||||
@Column()
|
||||
refCommandDate: Date | null;
|
||||
|
||||
@Column()
|
||||
refCommandNo: string | null;
|
||||
|
||||
}
|
||||
|
||||
export type UpdateProfileNopaid = Partial<CreateProfileNopaid>;
|
||||
export type UpdateProfileNopaid = {
|
||||
profileId: string | null;
|
||||
isActive: boolean;
|
||||
date?: Date | null;
|
||||
detail: string | null;
|
||||
reference: string | null;
|
||||
refCommandDate?: Date | null;
|
||||
refCommandNo: string | null;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import { ProfileNopaid } from "./ProfileNopaid";
|
|||
|
||||
@Entity("profileNopaidHistory")
|
||||
export class ProfileNopaidHistory extends EntityBase {
|
||||
|
||||
@Column({
|
||||
comment: "สถานะการใช้งาน",
|
||||
default: false,
|
||||
|
|
@ -60,35 +59,7 @@ export class ProfileNopaidHistory extends EntityBase {
|
|||
})
|
||||
profileNopaidId: string;
|
||||
|
||||
|
||||
@ManyToOne(() => ProfileNopaid, (profileNopaid) => profileNopaid.profileNopaidHistories)
|
||||
@JoinColumn({ name: "profileNopaidId" })
|
||||
histories: ProfileNopaid;
|
||||
}
|
||||
|
||||
export class CreateProfileNopaidHistory {
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
@Column()
|
||||
date: Date | null;
|
||||
|
||||
@Column()
|
||||
detail: string | null;
|
||||
|
||||
@Column()
|
||||
reference: string | null;
|
||||
|
||||
@Column()
|
||||
refCommandDate: Date | null;
|
||||
|
||||
@Column()
|
||||
refCommandNo: string | null;
|
||||
|
||||
@Column("uuid")
|
||||
profileNopaidId: string | null;
|
||||
|
||||
}
|
||||
|
||||
export type UpdateProfileNopaidHistory = Partial<CreateProfileNopaidHistory>;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export class ProfileOther extends EntityBase {
|
|||
default: false,
|
||||
})
|
||||
isActive: boolean;
|
||||
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "รายละเอียด",
|
||||
|
|
@ -44,17 +44,15 @@ export class ProfileOther extends EntityBase {
|
|||
}
|
||||
|
||||
export class CreateProfileOther {
|
||||
@Column("uuid")
|
||||
profileId: string | null;
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
@Column()
|
||||
detail: string | null;
|
||||
|
||||
@Column()
|
||||
date: Date | null;
|
||||
}
|
||||
|
||||
export type UpdateProfileOther = Partial<CreateProfileOther>;
|
||||
export type UpdateProfileOther = {
|
||||
profileId: string | null;
|
||||
isActive: boolean;
|
||||
detail: string | null;
|
||||
date?: Date | null;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export class ProfileOtherHistory extends EntityBase {
|
|||
default: false,
|
||||
})
|
||||
isActive: boolean;
|
||||
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "รายละเอียด",
|
||||
|
|
@ -38,19 +38,3 @@ export class ProfileOtherHistory extends EntityBase {
|
|||
@JoinColumn({ name: "profileOtherId" })
|
||||
histories: ProfileOther;
|
||||
}
|
||||
|
||||
export class CreateProfileOtherHistory {
|
||||
@Column("uuid")
|
||||
profileOtherId: string | null;
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
@Column()
|
||||
detail: string | null;
|
||||
|
||||
@Column()
|
||||
date: Date | null;
|
||||
}
|
||||
|
||||
export type UpdateProfileOtherHistory = Partial<CreateProfileOtherHistory>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue