This commit is contained in:
parent
7d572b18d2
commit
f31ecf1c2b
11 changed files with 349 additions and 19 deletions
|
|
@ -217,16 +217,16 @@ export class CreateOrgChild1 {
|
|||
orgChild1RankSub?: string;
|
||||
|
||||
@Column()
|
||||
DEPARTMENT_CODE?: string;
|
||||
DEPARTMENT_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
DIVISION_CODE?: string;
|
||||
DIVISION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
SECTION_CODE?: string;
|
||||
SECTION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
JOB_CODE?: string;
|
||||
JOB_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
orgChild1PhoneEx?: string;
|
||||
|
|
@ -253,4 +253,57 @@ export class CreateOrgChild1 {
|
|||
misId?: string;
|
||||
}
|
||||
|
||||
export type UpdateOrgChild1 = Partial<CreateOrgChild1> & { orgChild1Rank?: OrgChild1Rank };
|
||||
// export type UpdateOrgChild1 = Partial<CreateOrgChild1> & { orgChild1Rank?: OrgChild1Rank }; //ทำให้ส่ง null มาเก็บไม่ได้
|
||||
|
||||
export class UpdateOrgChild1 {
|
||||
@Column()
|
||||
orgChild1Name: string;
|
||||
|
||||
@Column()
|
||||
orgChild1ShortName: string;
|
||||
|
||||
@Column()
|
||||
orgChild1Code?: string;
|
||||
|
||||
@Column()
|
||||
orgChild1Rank: string;
|
||||
|
||||
@Column()
|
||||
orgChild1RankSub?: string;
|
||||
|
||||
@Column()
|
||||
DEPARTMENT_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
DIVISION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
SECTION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
JOB_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
orgChild1PhoneEx?: string;
|
||||
|
||||
@Column()
|
||||
orgChild1PhoneIn?: string;
|
||||
|
||||
@Column()
|
||||
orgChild1Fax?: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgRootId: string;
|
||||
|
||||
@Column()
|
||||
responsibility?: string;
|
||||
|
||||
@Column()
|
||||
isOfficer: boolean;
|
||||
|
||||
@Column()
|
||||
isInformation: boolean;
|
||||
|
||||
@Column()
|
||||
misId?: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -240,4 +240,50 @@ export class CreateOrgChild2 {
|
|||
@Column()
|
||||
misId?: string;
|
||||
}
|
||||
export type UpdateOrgChild2 = Partial<CreateOrgChild2> & { orgChild2Rank?: OrgChild2Rank };
|
||||
// export type UpdateOrgChild2 = Partial<CreateOrgChild2> & { orgChild2Rank?: OrgChild2Rank };
|
||||
export class UpdateOrgChild2 {
|
||||
@Column()
|
||||
orgChild2Name: string;
|
||||
|
||||
@Column()
|
||||
orgChild2ShortName: string;
|
||||
|
||||
@Column()
|
||||
orgChild2Code: string;
|
||||
|
||||
@Column()
|
||||
orgChild2Rank: string;
|
||||
|
||||
@Column()
|
||||
orgChild2RankSub?: string;
|
||||
|
||||
@Column()
|
||||
DEPARTMENT_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
DIVISION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
SECTION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
JOB_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
orgChild2PhoneEx?: string;
|
||||
|
||||
@Column()
|
||||
orgChild2PhoneIn?: string;
|
||||
|
||||
@Column()
|
||||
orgChild2Fax?: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgChild1Id: string;
|
||||
|
||||
@Column()
|
||||
responsibility?: string;
|
||||
|
||||
@Column()
|
||||
misId?: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -249,4 +249,51 @@ export class CreateOrgChild3 {
|
|||
misId?: string;
|
||||
}
|
||||
|
||||
export type UpdateOrgChild3 = Partial<CreateOrgChild3> & { orgChild3Rank?: OrgChild3Rank };
|
||||
// export type UpdateOrgChild3 = Partial<CreateOrgChild3> & { orgChild3Rank?: OrgChild3Rank };
|
||||
|
||||
export class UpdateOrgChild3 {
|
||||
@Column()
|
||||
orgChild3Name: string;
|
||||
|
||||
@Column()
|
||||
orgChild3ShortName: string;
|
||||
|
||||
@Column()
|
||||
orgChild3Code: string;
|
||||
|
||||
@Column()
|
||||
orgChild3Rank: string;
|
||||
|
||||
@Column()
|
||||
orgChild3RankSub?: string;
|
||||
|
||||
@Column()
|
||||
DEPARTMENT_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
DIVISION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
SECTION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
JOB_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
orgChild3PhoneEx?: string;
|
||||
|
||||
@Column()
|
||||
orgChild3PhoneIn?: string;
|
||||
|
||||
@Column()
|
||||
orgChild3Fax?: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgChild2Id: string;
|
||||
|
||||
@Column()
|
||||
responsibility?: string;
|
||||
|
||||
@Column()
|
||||
misId?: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -254,4 +254,50 @@ export class CreateOrgChild4 {
|
|||
@Column()
|
||||
misId?: string;
|
||||
}
|
||||
export type UpdateOrgChild4 = Partial<OrgChild4>;
|
||||
// export type UpdateOrgChild4 = Partial<OrgChild4>;
|
||||
export class UpdateOrgChild4 {
|
||||
@Column()
|
||||
orgChild4Name: string;
|
||||
|
||||
@Column()
|
||||
orgChild4ShortName: string;
|
||||
|
||||
@Column()
|
||||
orgChild4Code: string;
|
||||
|
||||
@Column()
|
||||
orgChild4Rank: string;
|
||||
|
||||
@Column()
|
||||
orgChild4RankSub?: string;
|
||||
|
||||
@Column()
|
||||
DEPARTMENT_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
DIVISION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
SECTION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
JOB_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
orgChild4PhoneEx?: string;
|
||||
|
||||
@Column()
|
||||
orgChild4PhoneIn?: string;
|
||||
|
||||
@Column()
|
||||
orgChild4Fax?: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgChild3Id: string;
|
||||
|
||||
@Column()
|
||||
responsibility?: string;
|
||||
|
||||
@Column()
|
||||
misId?: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,4 +247,57 @@ export class CreateOrgRoot {
|
|||
misId?: string;
|
||||
}
|
||||
|
||||
export type UpdateOrgRoot = Partial<CreateOrgRoot> & { orgRootRank?: OrgRootRank };
|
||||
// export type UpdateOrgRoot = Partial<CreateOrgRoot> & { orgRootRank?: OrgRootRank };
|
||||
|
||||
export class UpdateOrgRoot {
|
||||
@Column()
|
||||
orgRootName: string;
|
||||
|
||||
@Column()
|
||||
orgRootShortName: string;
|
||||
|
||||
@Column()
|
||||
orgRootCode: string;
|
||||
|
||||
@Column()
|
||||
orgRootRank: OrgRootRank;
|
||||
|
||||
@Column()
|
||||
orgRootRankSub?: string;
|
||||
|
||||
@Column()
|
||||
DEPARTMENT_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
DIVISION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
SECTION_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
JOB_CODE?: string | null;
|
||||
|
||||
@Column()
|
||||
orgRootPhoneEx?: string;
|
||||
|
||||
@Column()
|
||||
orgRootPhoneIn?: string;
|
||||
|
||||
@Column()
|
||||
orgRootFax?: string;
|
||||
|
||||
@Column()
|
||||
responsibility?: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgRevisionId: string;
|
||||
|
||||
@Column()
|
||||
isDeputy: boolean;
|
||||
|
||||
@Column()
|
||||
isCommission: boolean;
|
||||
|
||||
@Column()
|
||||
misId?: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue