import mis

This commit is contained in:
mamoss 2025-05-21 08:16:21 +07:00
parent 60a72243e8
commit 083a482b3a
26 changed files with 4711 additions and 0 deletions

View file

@ -76,6 +76,13 @@ export class ProfileAbility extends EntityBase {
})
profileEmployeeId: string;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: null,
})
isEntry: boolean;
@OneToMany(
() => ProfileAbilityHistory,
(profileAbilityHistory) => profileAbilityHistory.histories,

View file

@ -0,0 +1,53 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileAbilitys")
export class ProfileAbilitys extends EntityBase {
@Column({
nullable: true,
comment: "หมายเหตุ",
type: "text",
default: null,
})
remark: string;
@Column({
nullable: true,
comment: "รายละเอียด",
type: "text",
default: null,
})
detail: string;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง",
type: "text",
default: null,
})
reference: string;
@Column({
nullable: true,
type: "datetime",
comment: "วันที่เริ่มต้น",
default: null,
})
dateStart: Date;
@Column({
nullable: true,
type: "datetime",
comment: "วันที่สิ้นสุด",
default: null,
})
dateEnd: Date;
@Column({
nullable: true,
comment: "ด้าน",
type: "text",
default: null,
})
field: string;
}

View file

@ -68,6 +68,13 @@ export class ProfileCertificate extends EntityBase {
})
isUpload: boolean;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(
() => ProfileCertificateHistory,
(profileCertificateHistory) => profileCertificateHistory.histories,

View file

@ -0,0 +1,45 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileCertificates")
export class ProfileCertificates extends EntityBase {
@Column({
nullable: true,
type: "datetime",
comment: "วันที่หมดอายุ",
default: null,
})
expireDate: Date;
@Column({
nullable: true,
type: "datetime",
comment: "วันที่ออกใบอนุญาต",
default: null,
})
issueDate: Date;
@Column({
nullable: true,
comment: "เลขที่ใบอนุญาต",
length: 20,
default: null,
})
certificateNo: string;
@Column({
nullable: true,
comment: "ชื่อใบอนุญาต",
length: 100,
default: null,
})
certificateType: string;
@Column({
nullable: true,
comment: "หน่วยงานผู้ออกใบอนุญาต",
length: 200,
default: null,
})
issuer: string;
}

View file

@ -70,6 +70,13 @@ export class ProfileChangeName extends EntityBase {
})
profileEmployeeId: string;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(
() => ProfileChangeNameHistory,
(profileChangeNameHistory) => profileChangeNameHistory.histories,

View file

@ -0,0 +1,37 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileChangeNames")
export class ProfileChangeNames extends EntityBase {
@Column({
nullable: true,
length: 40,
comment: "คำนำหน้า",
default: null,
})
prefix: string;
@Column({
nullable: true,
length: 100,
comment: "ชื่อ",
default: null,
})
firstName: string;
@Column({
nullable: true,
length: 100,
comment: "นามสกุล",
default: null,
})
lastName: string;
@Column({
nullable: true,
length: 100,
comment: "สถานะ",
default: null,
})
status: string;
}

View file

@ -66,6 +66,13 @@ export class ProfileChildren extends EntityBase {
})
profileEmployeeId: string;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@ManyToOne(() => Profile, (Profile) => Profile.profileChildrens)
@JoinColumn({ name: "profileId" })
profile: Profile;

View file

@ -0,0 +1,48 @@
import { Column, Entity } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileChildrens")
export class ProfileChildrens extends EntityBase {
@Column({
nullable: true,
default: null,
comment: "อาชีพบุตร",
})
childrenCareer: string;
@Column({
nullable: true,
default: null,
comment: "ชื่อบุตร",
})
childrenFirstName: string;
@Column({
nullable: true,
default: null,
comment: "นามสกุลบุตร",
})
childrenLastName: string;
@Column({
nullable: true,
default: null,
comment: "คำนำหน้าบุตร",
})
childrenPrefix: string;
@Column({
nullable: true,
default: null,
type: "boolean",
comment: "มีชีวิตบุตร",
})
childrenLive: boolean;
@Column({
nullable: true,
default: null,
comment: "เลขที่บัตรประชาชนบุตร",
})
childrenCitizenId: string;
}

View file

@ -76,6 +76,13 @@ export class ProfileDiscipline extends EntityBase {
})
isUpload: boolean;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(
() => ProfileDisciplineHistory,
(profileDisciplineHistory) => profileDisciplineHistory.histories,

View file

@ -0,0 +1,53 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileDisciplines")
export class ProfileDisciplines extends EntityBase {
@Column({
nullable: true,
type: "datetime",
comment: "วันที่",
default: null,
})
date: Date;
@Column({
nullable: true,
comment: "ระดับความผิด",
type: "text",
default: null,
})
level: string;
@Column({
nullable: true,
comment: "รายละเอียด",
type: "text",
default: null,
})
detail: string;
@Column({
nullable: true,
type: "datetime",
comment: "เอกสารอ้างอิง (ลงวันที่)",
default: null,
})
refCommandDate: Date;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง (เลขที่คำสั่ง)",
type: "text",
default: null,
})
refCommandNo: string;
@Column({
nullable: true,
comment: "ล้างมลทิน",
type: "text",
default: null,
})
unStigma: string;
}

View file

@ -76,6 +76,13 @@ export class ProfileDuty extends EntityBase {
})
isUpload: boolean;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(() => ProfileDutyHistory, (profileDutyHistory) => profileDutyHistory.histories)
profileDutyHistories: ProfileDutyHistory[];

View file

@ -0,0 +1,53 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileDutys")
export class ProfileDutys extends EntityBase {
@Column({
nullable: true,
type: "datetime",
comment: "เริ่มต้น",
default: null,
})
dateStart: Date;
@Column({
nullable: true,
type: "datetime",
comment: "สิ้นสุด",
default: null,
})
dateEnd: Date;
@Column({
nullable: true,
comment: "รายละเอียด",
type: "text",
default: null,
})
detail: string;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง",
type: "text",
default: null,
})
reference: string;
@Column({
nullable: true,
type: "datetime",
comment: "เอกสารอ้างอิง (ลงวันที่)",
default: null,
})
refCommandDate: Date;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง (เลขที่คำสั่ง)",
type: "text",
default: null,
})
refCommandNo: string;
}

View file

@ -190,6 +190,13 @@ export class ProfileEducation extends EntityBase {
})
level: number;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(
() => ProfileEducationHistory,
(profileEducationHistory) => profileEducationHistory.histories,

View file

@ -0,0 +1,152 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileEducations")
export class ProfileEducations extends EntityBase {
@Column({
nullable: true,
comment: "ประเทศ",
length: 1000,
default: null,
})
country: string;
@Column({
nullable: true,
comment: "วุฒิการศึกษา",
length: 200,
default: null,
})
degree: string;
@Column({
nullable: true,
comment: "ระยะเวลา",
length: 1000,
default: null,
})
duration: string;
@Column({
comment: "ระยะเวลาหลักสูตร",
nullable: true,
})
durationYear: number;
@Column({
nullable: true,
comment: "สาขาวิชา/ทาง",
length: 200,
default: null,
})
field: string;
@Column({
nullable: true,
type: "datetime",
comment: "วันที่สำเร็จการศึกษา",
default: null,
})
finishDate: Date;
@Column({
nullable: true,
comment: "ทุน",
length: 1000,
default: null,
})
fundName: string;
@Column({
nullable: true,
comment: "เกรดเฉลี่ย",
length: 20,
default: null,
})
gpa: string;
@Column({
nullable: true,
comment: "สถานศึกษา",
length: 1000,
default: null,
})
institute: string;
@Column({
nullable: true,
comment: "ข้อมูลการติดต่อ",
length: 1000,
default: null,
})
other: string;
@Column({
nullable: true,
type: "datetime",
comment: "ตั้งแต่",
default: null,
})
startDate: Date;
@Column({
nullable: true,
type: "datetime",
comment: "ถึง",
default: null,
})
endDate: Date;
@Column({
nullable: true,
comment: "ระดับศึกษา",
type: "text", // ใช้ "text" แทน "string" เพื่อรองรับ long text
default: null,
})
educationLevel: string;
@Column({
nullable: true,
length: 40,
comment: "Id ระดับศึกษา",
default: null,
})
educationLevelId: string;
@Column({
nullable: true,
comment: "เป็นวุฒิการศึกษาในตำแหน่ง",
type: "text",
default: null,
})
positionPath: string;
@Column({
nullable: true,
comment: "หมายเหตุ",
default: null,
})
note: string;
@Column({
nullable: true,
length: 40,
comment: "Id เป็นวุฒิการศึกษาในตำแหน่ง",
default: null,
})
positionPathId: string;
@Column({
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา",
default: null,
})
isDate: boolean;
@Column({
nullable: true,
comment: "เป็นวุฒิศึกษาในตำแหน่ง",
default: null,
})
isEducation: boolean;
}

View file

@ -83,6 +83,13 @@ export class ProfileHonor extends EntityBase {
})
isUpload: boolean;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(() => ProfileHonorHistory, (profileHonorHistory) => profileHonorHistory.histories)
profileHonorHistories: ProfileHonorHistory[];

View file

@ -0,0 +1,60 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileHonors")
export class ProfileHonors extends EntityBase {
@Column({
nullable: true,
length: 2000,
comment: "รายละเอียด",
default: null,
})
detail: string;
@Column({
nullable: true,
type: "datetime",
comment: "วันที่ได้รับ",
default: null,
})
issueDate: Date;
@Column({
nullable: true,
length: 200,
comment: "หน่วยงานที่ออก ",
default: null,
})
issuer: string;
// @Column({
// nullable: true,
// length: 200,
// comment: "ประเภท",
// default: null,
// })
// type: string;
@Column({
nullable: true,
type: "datetime",
comment: "เอกสารอ้างอิง (ลงวันที่)",
default: null,
})
refCommandDate: Date;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง (เลขที่คำสั่ง)",
type: "text",
default: null,
})
refCommandNo: string;
@Column({
nullable: true,
comment: "ประเภทช่วงเวลา",
default: null,
})
isDate: boolean;
}

View file

@ -131,6 +131,13 @@ export class ProfileInsignia extends EntityBase {
})
insigniaId: string;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@ManyToOne(() => Insignia, (v) => v.profileInsignias)
insignia: Insignia;

View file

@ -0,0 +1,106 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileInsignias")
export class ProfileInsignias extends EntityBase {
@Column({
nullable: true,
comment: "ปีที่ยื่นขอ",
default: null,
})
year: number;
@Column({
nullable: true,
length: 20,
comment: "ลำดับที่",
default: null,
})
no: string;
@Column({
nullable: true,
length: 30,
comment: "เล่ม",
default: null,
})
volume: string;
@Column({
nullable: true,
length: 30,
comment: "ตอน",
default: null,
})
section: string;
@Column({
nullable: true,
length: 30,
comment: "หน้า",
default: null,
})
page: string;
@Column({
nullable: true,
type: "datetime",
comment: "ลงวันที่",
default: null,
})
receiveDate: Date;
@Column({
nullable: true,
type: "datetime",
comment: "วันที่ประกาศในราชกิจจาฯ",
default: null,
})
dateAnnounce: Date;
@Column({
nullable: true,
length: 300,
comment: "ราชกิจจาฯ ฉบับที่",
default: null,
})
issue: string;
@Column({
nullable: true,
length: 30,
comment: "เล่มที่",
default: null,
})
volumeNo: string;
@Column({
nullable: true,
type: "datetime",
comment: "เอกสารอ้างอิง (ลงวันที่)",
default: null,
})
refCommandDate: Date;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง (เลขที่คำสั่ง)",
type: "text",
default: null,
})
refCommandNo: string;
@Column({
nullable: true,
comment: "หมายเหตุ",
default: null,
})
note: string;
@Column({
nullable: true,
comment: "หมายเหตุ",
default: null,
})
insigniaId: string;
}

View file

@ -94,6 +94,13 @@ export class ProfileLeave extends EntityBase {
})
leaveId: string;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(() => ProfileLeaveHistory, (v) => v.profileLeave)
histories: ProfileLeaveHistory[];

View file

@ -0,0 +1,61 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileLeaveSummary")
export class ProfileLeaves extends EntityBase {
@Column({
nullable: true,
type: "datetime",
comment: "วัน เดือน ปี ที่เริ่มลา",
default: null,
})
dateLeaveStart: Date;
@Column({
nullable: true,
type: "datetime",
comment: "วัน เดือน ปี ที่สิ้นสุดลา",
default: null,
})
dateLeaveEnd: Date;
@Column({
nullable: true,
type: "double",
comment: "จำนวนวันลา",
default: null,
})
leaveDays: number;
@Column({
nullable: true,
type: "double",
comment: "ลามาเเล้ว",
default: null,
})
leaveCount: number;
@Column({
nullable: true,
type: "double",
comment: "รวมเป็น",
default: null,
})
totalLeave: number;
@Column({
nullable: true,
comment: "สถานะ",
type: "text",
default: null,
})
status: string;
@Column({
nullable: true,
comment: "เหตุผล",
type: "text",
default: null,
})
reason: string;
}

View file

@ -68,6 +68,13 @@ export class ProfileNopaid extends EntityBase {
})
isUpload: boolean;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(() => ProfileNopaidHistory, (profileNopaidHistory) => profileNopaidHistory.histories)
profileNopaidHistories: ProfileNopaidHistory[];

View file

@ -0,0 +1,45 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileNopaids")
export class ProfileNopaids extends EntityBase {
@Column({
nullable: true,
type: "datetime",
comment: "วัน เดือน ปี",
default: null,
})
date: Date;
@Column({
nullable: true,
comment: "รายละเอียด",
type: "text",
default: null,
})
detail: string;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง",
type: "text",
default: null,
})
reference: string;
@Column({
nullable: true,
type: "datetime",
comment: "เอกสารอ้างอิง (ลงวันที่)",
default: null,
})
refCommandDate: Date;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง (เลขที่คำสั่ง)",
type: "text",
default: null,
})
refCommandNo: string;
}

View file

@ -38,6 +38,13 @@ export class ProfileOther extends EntityBase {
})
date: Date;
@Column({
nullable: false,
comment: "ข้อมูลจาก Entry",
default: false,
})
isEntry: boolean;
@OneToMany(() => ProfileOtherHistory, (profileOtherHistory) => profileOtherHistory.histories)
profileOtherHistories: ProfileOtherHistory[];

View file

@ -0,0 +1,21 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("ProfileOthers")
export class ProfileOthers extends EntityBase {
@Column({
nullable: true,
comment: "รายละเอียด",
type: "text",
default: null,
})
detail: string;
@Column({
nullable: true,
type: "datetime",
comment: "วันที่",
default: null,
})
date: Date;
}