From cdd7d69e1713948f222b0b0defbde529da75acc0 Mon Sep 17 00:00:00 2001 From: Aryan <aryangiroud@gmail.com> Date: Tue, 17 Sep 2024 17:52:53 +0530 Subject: [PATCH] added activity level in excel --- src/app/component/mapping/mapping.component.html | 6 ++++++ src/app/component/mapping/mapping.component.ts | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/app/component/mapping/mapping.component.html b/src/app/component/mapping/mapping.component.html index 3f8cefb7..d0898b21 100644 --- a/src/app/component/mapping/mapping.component.html +++ b/src/app/component/mapping/mapping.component.html @@ -155,6 +155,7 @@ <th>Dimension</th> <th>Sub Dimension</th> <th>Activity</th> + <th>Level</th> <th>Description</th> <th>Risk</th> <th>Measure</th> @@ -193,6 +194,11 @@ {{ item.activityName | slice : 0 : 32767 }} </ng-container> </td> + <td> + <ng-container *ngIf="item.level"> + {{ '' + item.level | slice : 0 : 32767 }} + </ng-container> + </td> <td> <ng-container *ngIf="item.description && item.description.length > 0"> {{ item.description | slice : 0 : 32767 }} diff --git a/src/app/component/mapping/mapping.component.ts b/src/app/component/mapping/mapping.component.ts index 254859f5..54b81780 100644 --- a/src/app/component/mapping/mapping.component.ts +++ b/src/app/component/mapping/mapping.component.ts @@ -44,6 +44,7 @@ export interface MappingElementSortedByISO17 { dependsOn: string[]; comments: string; assessment: string; + level: number; implementation: any; teamImplementation: { [key: string]: boolean; @@ -345,6 +346,8 @@ export class MappingComponent implements OnInit { var CurrentTeamsEvidence = this.YamlObject[dim][subDim][activity]['teamsEvidence']; + var CurrentActivityLevel = this.YamlObject[dim][subDim][activity]['level']; + this.temporaryMappingElement = { dimension: dim, subDimension: subDim, @@ -360,6 +363,7 @@ export class MappingComponent implements OnInit { resources: CurrentResources, usefulness: CurrentUsefulness, dependsOn: CurrentDependsOn, + level: CurrentActivityLevel, implementation: CurrentImplementation, comments: CurrentComments, assessment: CurrentAssessment,