ค้นหาทะเบียน
This commit is contained in:
parent
e368c4cae8
commit
6e8b8d58b9
5 changed files with 1412 additions and 32 deletions
|
|
@ -22,6 +22,7 @@ import { Gender } from "./Gender";
|
|||
import { Relationship } from "./Relationship";
|
||||
import { BloodGroup } from "./BloodGroup";
|
||||
import { Religion } from "./Religion";
|
||||
import { calculateRetireYear } from "../interfaces/utils";
|
||||
|
||||
@Entity("profile")
|
||||
export class Profile extends EntityBase {
|
||||
|
|
@ -126,6 +127,12 @@ export class Profile extends EntityBase {
|
|||
})
|
||||
isProbation: boolean;
|
||||
|
||||
@Column({
|
||||
comment: "เกษียณ",
|
||||
default: false,
|
||||
})
|
||||
isLeave: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
|
|
@ -263,6 +270,10 @@ export class Profile extends EntityBase {
|
|||
@ManyToOne(() => PosType, (posType) => posType.profiles)
|
||||
@JoinColumn({ name: "posTypeId" })
|
||||
posType: PosType;
|
||||
|
||||
// calculateRetireYear(): number {
|
||||
// return calculateRetireYear(this.birthDate);
|
||||
// }
|
||||
}
|
||||
|
||||
@Entity("profileHistory")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue