update viewPosMaster

This commit is contained in:
AdisakKanthawilang 2025-04-03 16:53:23 +07:00
parent 8723fdd81d
commit 4d61aec707

View file

@ -6,6 +6,7 @@ import { ViewColumn, ViewEntity } from "typeorm";
posMaster.posMasterNoPrefix, posMaster.posMasterNoPrefix,
posMaster.posMasterNo, posMaster.posMasterNo,
posMaster.posMasterNoSuffix, posMaster.posMasterNoSuffix,
posMaster.orgRevisionId,
posMaster.orgRootId, posMaster.orgRootId,
posMaster.orgChild1Id, posMaster.orgChild1Id,
posMaster.orgChild2Id, posMaster.orgChild2Id,
@ -23,13 +24,18 @@ import { ViewColumn, ViewEntity } from "typeorm";
profile.birthDate, profile.birthDate,
orgRoot.id as rootId, orgRoot.id as rootId,
orgRoot.orgRootShortName, orgRoot.orgRootShortName,
orgRoot.orgRootName,
orgChild1.id as child1Id, orgChild1.id as child1Id,
orgChild1.orgChild1ShortName,
orgChild1.orgChild1Name, orgChild1.orgChild1Name,
orgChild2.id as child2Id, orgChild2.id as child2Id,
orgChild2.orgChild2ShortName,
orgChild2.orgChild2Name, orgChild2.orgChild2Name,
orgChild3.id as child3Id, orgChild3.id as child3Id,
orgChild3.orgChild3ShortName,
orgChild3.orgChild3Name, orgChild3.orgChild3Name,
orgChild4.id as child4Id, orgChild4.id as child4Id,
orgChild4.orgChild4ShortName,
orgChild4.orgChild4Name, orgChild4.orgChild4Name,
position.id as positionId, position.id as positionId,
position.positionIsSelected, position.positionIsSelected,
@ -91,6 +97,8 @@ export class viewPosMaster {
@ViewColumn() @ViewColumn()
posMasterNoSuffix: string; posMasterNoSuffix: string;
@ViewColumn() @ViewColumn()
orgRevisionId: string;
@ViewColumn()
orgRootId: string; orgRootId: string;
@ViewColumn() @ViewColumn()
orgChild1Id: string; orgChild1Id: string;
@ -125,20 +133,30 @@ export class viewPosMaster {
@ViewColumn() @ViewColumn()
orgRootShortName: string; orgRootShortName: string;
@ViewColumn() @ViewColumn()
orgRootName: string;
@ViewColumn()
child1Id: string; child1Id: string;
@ViewColumn() @ViewColumn()
orgChild1ShortName: string;
@ViewColumn()
orgChild1Name: string; orgChild1Name: string;
@ViewColumn() @ViewColumn()
child2Id: string; child2Id: string;
@ViewColumn() @ViewColumn()
orgChild2ShortName: string;
@ViewColumn()
orgChild2Name: string; orgChild2Name: string;
@ViewColumn() @ViewColumn()
child3Id: string; child3Id: string;
@ViewColumn() @ViewColumn()
orgChild3ShortName: string;
@ViewColumn()
orgChild3Name: string; orgChild3Name: string;
@ViewColumn() @ViewColumn()
child4Id: string; child4Id: string;
@ViewColumn() @ViewColumn()
orgChild4ShortName: string;
@ViewColumn()
orgChild4Name: string; orgChild4Name: string;
@ViewColumn() @ViewColumn()
positionId: string; positionId: string;
@ -149,7 +167,9 @@ export class viewPosMaster {
@ViewColumn() @ViewColumn()
isSpecial: boolean; isSpecial: boolean;
@ViewColumn() @ViewColumn()
posExcutiveId: string; posExecutiveId: string;
@ViewColumn()
posExecutiveName: string;
@ViewColumn() @ViewColumn()
profileDisciplineId: string; profileDisciplineId: string;
@ViewColumn() @ViewColumn()
@ -159,7 +179,7 @@ export class viewPosMaster {
@ViewColumn() @ViewColumn()
profileAssessmentId: string; profileAssessmentId: string;
@ViewColumn() @ViewColumn()
pointSum: string; pointSum: number;
@ViewColumn() @ViewColumn()
posLevelId: string; posLevelId: string;
@ViewColumn() @ViewColumn()