From 4fdf9dfe03f70d8da70bdefa1b79c178af4c8c69 Mon Sep 17 00:00:00 2001 From: Randy Woods Date: Thu, 5 Dec 2024 16:19:26 -0700 Subject: [PATCH] More CMMC cleanup, i18n --- .../Maturity/CmmcBusiness.cs | 4 ++++ .../CSETWebCore.Model/Maturity/CmmcScores.cs | 3 +++ .../cmmc2-domain-results.component.html | 7 +++---- .../cmmc2-domain-results.component.ts | 3 --- .../cmmc2-level-results.component.html | 6 +++--- .../cmmc2-level-results.component.ts | 3 +-- .../cmmc2-level1-score.component.html | 8 ++++---- .../cmmc2-level1-score.component.ts | 5 +++-- .../cmmc2-level2-score.component.html | 10 +++++----- .../cmmc2-level3-score.component.html | 10 +++++----- .../cmmc2-level3-score.component.ts | 7 ++++--- .../cmmc2-results.component.html | 6 +++--- .../cmmc2-scores/cmmc2-scores.component.html | 19 +++++++++++++------ .../level-scorecard.component.html | 6 +++--- .../acet-layout-main.component.scss | 4 ++++ .../cf-layout-main.component.scss | 4 ++++ .../cie-layout-main.component.scss | 4 ++++ .../iod-layout/iod-layout.component.scss | 4 ++++ .../layout-main/layout-main.component.scss | 4 ++++ .../renew-layout-main.component.scss | 4 ++++ .../rra-layout-main.component.scss | 4 ++++ CSETWebNg/src/app/layout/styles-base.scss | 4 ++++ CSETWebNg/src/app/layout/styles-rra.scss | 4 ++++ .../tsa-layout-main.component.scss | 4 ++++ CSETWebNg/src/app/reports/reports.scss | 7 +++++-- CSETWebNg/src/app/services/chart.service.ts | 4 ++-- CSETWebNg/src/assets/i18n/en.json | 19 ++++++++++++------- .../src/assets/navigation/workflow-omni.xml | 4 ++-- CSETWebNg/src/sass/styles.scss | 4 ++++ 29 files changed, 119 insertions(+), 56 deletions(-) diff --git a/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Maturity/CmmcBusiness.cs b/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Maturity/CmmcBusiness.cs index b5b4ca161b..53233ef7de 100644 --- a/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Maturity/CmmcBusiness.cs +++ b/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Maturity/CmmcBusiness.cs @@ -37,6 +37,7 @@ public class CmmcBusiness private readonly int _level1Max = 15; private readonly int _level2Max = 110; + private readonly int _level3Max = 24; /// @@ -72,18 +73,21 @@ public CmmcScores GetCmmcScores(int assessmentId) // Level 1 response.Level1Score = GetScoreForLevel(assessmentId, 1); + response.Level1MaxScore = _level1Max; // Level 2 var sprs = GetSPRSScore(assessmentId); response.Level2Score = sprs.LevelScore; + response.Level2MaxScore = _level2Max; response.Level2Active = (response.Level1Score == _level1Max); // Level 3 response.Level3Score = GetScoreForLevel(assessmentId, 3); + response.Level3MaxScore = _level3Max; response.Level3Active = (response.Level2Score == _level2Max); diff --git a/CSETWebApi/CSETWeb_Api/CSETWebCore.Model/Maturity/CmmcScores.cs b/CSETWebApi/CSETWeb_Api/CSETWebCore.Model/Maturity/CmmcScores.cs index 722b8ae0c4..4f4c0820d1 100644 --- a/CSETWebApi/CSETWeb_Api/CSETWebCore.Model/Maturity/CmmcScores.cs +++ b/CSETWebApi/CSETWeb_Api/CSETWebCore.Model/Maturity/CmmcScores.cs @@ -9,10 +9,12 @@ namespace CSETWebCore.Model.Maturity public class CmmcScores { public int Level1Score { get; set; } + public int Level1MaxScore { get; set; } public int Level2Score { get; set; } + public int Level2MaxScore { get; set; } /// /// Level 3 is only active if Level 1 is 100% compliant @@ -22,6 +24,7 @@ public class CmmcScores public int Level3Score { get; set; } + public int Level3MaxScore { get; set; } /// /// Level 3 is only active if Level 2 is 100% compliant diff --git a/CSETWebNg/src/app/assessment/results/mat-cmmc2/cmmc2-domain-results/cmmc2-domain-results.component.html b/CSETWebNg/src/app/assessment/results/mat-cmmc2/cmmc2-domain-results/cmmc2-domain-results.component.html index b9ae70fdce..e1e91bf196 100644 --- a/CSETWebNg/src/app/assessment/results/mat-cmmc2/cmmc2-domain-results/cmmc2-domain-results.component.html +++ b/CSETWebNg/src/app/assessment/results/mat-cmmc2/cmmc2-domain-results/cmmc2-domain-results.component.html @@ -20,13 +20,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --------------------------> -