add dna
This commit is contained in:
parent
4aae619e90
commit
b0b1e06a78
5 changed files with 350 additions and 38 deletions
|
|
@ -2242,18 +2242,23 @@ export class ProfileEmployeeController extends Controller {
|
|||
posExecutiveId:
|
||||
position == null || position.posExecutive == null ? null : position.posExecutive.id,
|
||||
rootId: root == null ? null : root.id,
|
||||
rootDnaId: root == null ? null : root.ancestorDNA,
|
||||
root: root == null ? null : root.orgRootName,
|
||||
rootShortName: root == null ? null : root.orgRootShortName,
|
||||
child1Id: child1 == null ? null : child1.id,
|
||||
child1DnaId: child1 == null ? null : child1.ancestorDNA,
|
||||
child1: child1 == null ? null : child1.orgChild1Name,
|
||||
child1ShortName: child1 == null ? null : child1.orgChild1ShortName,
|
||||
child2Id: child2 == null ? null : child2.id,
|
||||
child2DnaId: child2 == null ? null : child2.ancestorDNA,
|
||||
child2: child2 == null ? null : child2.orgChild2Name,
|
||||
child2ShortName: child2 == null ? null : child2.orgChild2ShortName,
|
||||
child3Id: child3 == null ? null : child3.id,
|
||||
child3DnaId: child3 == null ? null : child3.ancestorDNA,
|
||||
child3: child3 == null ? null : child3.orgChild3Name,
|
||||
child3ShortName: child3 == null ? null : child3.orgChild3ShortName,
|
||||
child4Id: child4 == null ? null : child4.id,
|
||||
child4DnaId: child4 == null ? null : child4.ancestorDNA,
|
||||
child4: child4 == null ? null : child4.orgChild4Name,
|
||||
child4ShortName: child4 == null ? null : child4.orgChild4ShortName,
|
||||
node: null,
|
||||
|
|
@ -3607,6 +3612,12 @@ export class ProfileEmployeeController extends Controller {
|
|||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgRoot == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgRootId,
|
||||
rootDnaId:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgRoot == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.ancestorDNA,
|
||||
root:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
|
|
@ -3619,6 +3630,12 @@ export class ProfileEmployeeController extends Controller {
|
|||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild1 == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild1Id,
|
||||
child1DnaId:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild1 == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.ancestorDNA,
|
||||
child1:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
|
|
@ -3632,6 +3649,12 @@ export class ProfileEmployeeController extends Controller {
|
|||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild2 == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild2Id,
|
||||
child2DnaId:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild2 == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.ancestorDNA,
|
||||
child2:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
|
|
@ -3645,6 +3668,12 @@ export class ProfileEmployeeController extends Controller {
|
|||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild3 == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild3Id,
|
||||
child3DnaId:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild3 == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.ancestorDNA,
|
||||
child3:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
|
|
@ -3658,6 +3687,12 @@ export class ProfileEmployeeController extends Controller {
|
|||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild4 == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild4Id,
|
||||
child4DnaId:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.orgChild4 == null
|
||||
? null
|
||||
: profile.current_holders.find((x) => x.orgRevisionId == revisionId)?.ancestorDNA,
|
||||
child4:
|
||||
profile.current_holders == null ||
|
||||
profile.current_holders.find((x) => x.orgRevisionId == revisionId) == null ||
|
||||
|
|
@ -4550,18 +4585,23 @@ export class ProfileEmployeeController extends Controller {
|
|||
posTypeId: profile.posType == null ? null : profile.posType.id,
|
||||
// posExecutiveName: "",
|
||||
rootId: root == null ? null : root.id,
|
||||
rootDnaId: root == null ? null : root.ancestorDNA,
|
||||
root: root == null ? null : root.orgRootName,
|
||||
rootShortName: root == null ? null : root.orgRootShortName,
|
||||
child1Id: child1 == null ? null : child1.id,
|
||||
child1DnaId: child1 == null ? null : child1.ancestorDNA,
|
||||
child1: child1 == null ? null : child1.orgChild1Name,
|
||||
child1ShortName: child1 == null ? null : child1.orgChild1ShortName,
|
||||
child2Id: child2 == null ? null : child2.id,
|
||||
child2DnaId: child2 == null ? null : child2.ancestorDNA,
|
||||
child2: child2 == null ? null : child2.orgChild2Name,
|
||||
child2ShortName: child2 == null ? null : child2.orgChild2ShortName,
|
||||
child3Id: child3 == null ? null : child3.id,
|
||||
child3DnaId: child3 == null ? null : child3.ancestorDNA,
|
||||
child3: child3 == null ? null : child3.orgChild3Name,
|
||||
child3ShortName: child3 == null ? null : child3.orgChild3ShortName,
|
||||
child4Id: child4 == null ? null : child4.id,
|
||||
child4DnaId: child4 == null ? null : child4.ancestorDNA,
|
||||
child4: child4 == null ? null : child4.orgChild4Name,
|
||||
child4ShortName: child4 == null ? null : child4.orgChild4ShortName,
|
||||
node: null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue