ค้นหาทะเบียน

This commit is contained in:
Kittapath 2024-03-26 09:47:17 +07:00
parent e368c4cae8
commit 6e8b8d58b9
5 changed files with 1412 additions and 32 deletions

View file

@ -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")