แก้apiแสดงข้อมูลtree
This commit is contained in:
parent
49c468f53d
commit
9166faf102
6 changed files with 486 additions and 144 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { Entity, Column, ManyToOne, JoinColumn, OneToOne, OneToMany } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { CreatePosDict } from "./PosDict";
|
||||
|
||||
enum PosMasterLine {
|
||||
MAIN = "MAIN",
|
||||
|
|
@ -106,7 +107,8 @@ export class PosMaster extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คนครองปัจจุบัน เมื่อทำสำเนาโครงสร้างและตำแหน่งพร้อมกับคนครองมา คนครองจะอยู่ในฟิลด์นี้",
|
||||
comment:
|
||||
"คนครองปัจจุบัน เมื่อทำสำเนาโครงสร้างและตำแหน่งพร้อมกับคนครองมา คนครองจะอยู่ในฟิลด์นี้",
|
||||
default: "string",
|
||||
})
|
||||
profileIdCurrentHolder: string;
|
||||
|
|
@ -114,7 +116,8 @@ export class PosMaster extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คนที่กำลังจะมาครอง ตอนปรับโครงสร้าง ถ้าเลือกให้ใครมาครอง ProfileId ของคนนั้นจะมาอยู่ในช่องนี้ รวมทั้งตอนเลือกตำแหน่งเพื่อบรรจุ แต่งตั้ง เลื่อน ย้าย ในระบบบรรจุแต่งตั้งด้วย",
|
||||
comment:
|
||||
"คนที่กำลังจะมาครอง ตอนปรับโครงสร้าง ถ้าเลือกให้ใครมาครอง ProfileId ของคนนั้นจะมาอยู่ในช่องนี้ รวมทั้งตอนเลือกตำแหน่งเพื่อบรรจุ แต่งตั้ง เลื่อน ย้าย ในระบบบรรจุแต่งตั้งด้วย",
|
||||
default: "string",
|
||||
})
|
||||
profileIdNextHolder: string;
|
||||
|
|
@ -123,5 +126,36 @@ export class PosMaster extends EntityBase {
|
|||
length: 40,
|
||||
default: "00000000-0000-0000-0000-000000000000",
|
||||
})
|
||||
orgRevisionId: string;//fk
|
||||
orgRevisionId: string; //fk
|
||||
}
|
||||
|
||||
export class CreatePosMaster {
|
||||
@Column()
|
||||
posMasterNoPrefix: string;
|
||||
|
||||
@Column()
|
||||
posMasterNo: string;
|
||||
|
||||
@Column()
|
||||
posMasterNoSuffix: string;
|
||||
|
||||
@Column("uuid")
|
||||
positions: CreatePosDict[];
|
||||
|
||||
@Column("uuid")
|
||||
orgRootId: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgChild1Id: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgChild2Id: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgChild3Id: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgChild4Id: string;
|
||||
}
|
||||
|
||||
export type UpdatePosMaster = Partial<PosMaster>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue