Refactoring code module 01_masterdata
This commit is contained in:
parent
82f5380f3e
commit
71be6d095f
22 changed files with 272 additions and 209 deletions
|
|
@ -28,10 +28,126 @@ interface DataAssignment {
|
|||
year: string;
|
||||
}
|
||||
|
||||
interface IndicatorType {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
including: number;
|
||||
includingName: string;
|
||||
kpiPeriod: any;
|
||||
}
|
||||
|
||||
interface OrgTreeNode {
|
||||
orgTreeId: string;
|
||||
orgRootId: string;
|
||||
orgLevel: number;
|
||||
orgName: string;
|
||||
orgTreeName: string;
|
||||
orgTreeShortName: string;
|
||||
orgTreeCode: string;
|
||||
orgCode: string;
|
||||
orgTreeRank: string;
|
||||
orgTreeRankSub: string | null;
|
||||
orgTreeOrder: number;
|
||||
orgRootCode: string;
|
||||
orgTreePhoneEx: string;
|
||||
orgTreePhoneIn: string;
|
||||
orgTreeFax: string;
|
||||
orgRevisionId: string;
|
||||
orgRootName: string;
|
||||
responsibility: string | null;
|
||||
labelName: string;
|
||||
totalPosition: number;
|
||||
totalPositionCurrentUse: number;
|
||||
totalPositionCurrentVacant: number;
|
||||
totalPositionNextUse: number;
|
||||
totalPositionNextVacant: number;
|
||||
totalRootPosition: number;
|
||||
totalRootPositionCurrentUse: number;
|
||||
totalRootPositionCurrentVacant: number;
|
||||
totalRootPositionNextUse: number;
|
||||
totalRootPositionNextVacant: number;
|
||||
children: OrgTreeNode[];
|
||||
}
|
||||
|
||||
interface DataHistory {
|
||||
id: string;
|
||||
createdAt: Date | null;
|
||||
createdUserId: string;
|
||||
lastUpdatedAt: Date | null;
|
||||
lastUpdateUserId: string;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
kpiPlanId: string;
|
||||
}
|
||||
|
||||
interface NodePlan {
|
||||
id: string;
|
||||
level: number;
|
||||
name: string;
|
||||
children: NodePlan[];
|
||||
}
|
||||
|
||||
interface KpiRoleData {
|
||||
id: string;
|
||||
createdAt: Date | null;
|
||||
createdUserId: string;
|
||||
lastUpdatedAt: Date | null;
|
||||
lastUpdateUserId: string;
|
||||
createdFullName: string;
|
||||
lastUpdateFullName: string;
|
||||
kpiRoleId: string;
|
||||
}
|
||||
|
||||
interface IndicatorTotal {
|
||||
value: string;
|
||||
label: string;
|
||||
color: string;
|
||||
}
|
||||
interface CompetencySumary {
|
||||
value: string;
|
||||
label: string;
|
||||
color: string;
|
||||
total?:string
|
||||
}
|
||||
|
||||
interface Position {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface Capacity {
|
||||
id: string;
|
||||
name: string;
|
||||
type: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
interface ListLinkGroup {
|
||||
id: string;
|
||||
groupName: string;
|
||||
groupId: string;
|
||||
positions: Position[];
|
||||
capacitys: Capacity[];
|
||||
}
|
||||
|
||||
interface SizeType{
|
||||
width:number
|
||||
height:number
|
||||
}
|
||||
export type {
|
||||
Pagination,
|
||||
DataOption,
|
||||
NewPagination,
|
||||
ItemsMenu,
|
||||
DataAssignment,
|
||||
IndicatorType,
|
||||
OrgTreeNode,
|
||||
DataHistory,
|
||||
NodePlan,
|
||||
KpiRoleData,
|
||||
IndicatorTotal,
|
||||
ListLinkGroup,
|
||||
Position,
|
||||
CompetencySumary,
|
||||
SizeType
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ interface DataStrategic {
|
|||
id: string;
|
||||
name: string;
|
||||
level: number;
|
||||
children: DataStrategic;
|
||||
children: DataStrategic[];
|
||||
}
|
||||
|
||||
export type { DataStrategic };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue