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;
|
typeLeaveId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "เหตุผล",
|
comment: "เหตุผล",
|
||||||
type: "text",
|
type: "text",
|
||||||
|
|
@ -276,104 +276,73 @@ export class ProfileLeave extends EntityBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileLeave {
|
export class CreateProfileLeave {
|
||||||
@Column("uuid")
|
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column()
|
|
||||||
restCount: number | null;
|
restCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
restDay: number | null;
|
restDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
sickCount: number | null;
|
sickCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
sickDay: number | null;
|
sickDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
otherDay: number | null;
|
otherDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
personalCount: number | null;
|
personalCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
personalDay: number | null;
|
personalDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
studyCount: number | null;
|
studyCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
absentCount: number | null;
|
absentCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
absentDay: number | null;
|
absentDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
agencyCount: number | null;
|
agencyCount: number | null;
|
||||||
|
agencyDay: number | null;
|
||||||
@Column()
|
|
||||||
agencyDay: number | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
coupleCount: number | null;
|
coupleCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
coupleDay: number | null;
|
coupleDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
lateCount: number | null;
|
lateCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
lateDay: number | null;
|
lateDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
maternityCount: number | null;
|
maternityCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
maternityDay: number | null;
|
maternityDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
militaryCount: number | null;
|
militaryCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
militaryDay: number | null;
|
militaryDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
ordainCount: number | null;
|
ordainCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
ordainDay: number | null;
|
ordainDay: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
otherCount: number | null;
|
otherCount: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
dateStartLeave: Date | null;
|
dateStartLeave: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
dateEndLeave: Date | null;
|
dateEndLeave: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
numLeave: number | null;
|
numLeave: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
sumLeave: number | null;
|
sumLeave: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
totalLeave: number | null;
|
totalLeave: number | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
status: string | null;
|
status: string | null;
|
||||||
|
|
||||||
@Column("uuid")
|
|
||||||
typeLeaveId: string | null;
|
typeLeaveId: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
reason: string | null;
|
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 {
|
export class CreateProfileNopaid {
|
||||||
@Column("uuid")
|
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column()
|
|
||||||
date: Date | null;
|
date: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
reference: string | null;
|
reference: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
refCommandDate: Date | null;
|
refCommandDate: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
refCommandNo: string | null;
|
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")
|
@Entity("profileNopaidHistory")
|
||||||
export class ProfileNopaidHistory extends EntityBase {
|
export class ProfileNopaidHistory extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
comment: "สถานะการใช้งาน",
|
comment: "สถานะการใช้งาน",
|
||||||
default: false,
|
default: false,
|
||||||
|
|
@ -60,35 +59,7 @@ export class ProfileNopaidHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
profileNopaidId: string;
|
profileNopaidId: string;
|
||||||
|
|
||||||
|
|
||||||
@ManyToOne(() => ProfileNopaid, (profileNopaid) => profileNopaid.profileNopaidHistories)
|
@ManyToOne(() => ProfileNopaid, (profileNopaid) => profileNopaid.profileNopaidHistories)
|
||||||
@JoinColumn({ name: "profileNopaidId" })
|
@JoinColumn({ name: "profileNopaidId" })
|
||||||
histories: ProfileNopaid;
|
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,
|
default: false,
|
||||||
})
|
})
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "รายละเอียด",
|
comment: "รายละเอียด",
|
||||||
|
|
@ -44,17 +44,15 @@ export class ProfileOther extends EntityBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileOther {
|
export class CreateProfileOther {
|
||||||
@Column("uuid")
|
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column()
|
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
date: Date | null;
|
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,
|
default: false,
|
||||||
})
|
})
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "รายละเอียด",
|
comment: "รายละเอียด",
|
||||||
|
|
@ -38,19 +38,3 @@ export class ProfileOtherHistory extends EntityBase {
|
||||||
@JoinColumn({ name: "profileOtherId" })
|
@JoinColumn({ name: "profileOtherId" })
|
||||||
histories: ProfileOther;
|
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