From d3faf36d4d4df1ac549d9f550d6289843b2fb646 Mon Sep 17 00:00:00 2001 From: Randy Woods Date: Thu, 13 Feb 2025 12:20:33 -0700 Subject: [PATCH 1/2] Move POAM export to CMMC section and disable if < Level 1 achieved --- .../ReportsData/ReportsDataBusiness.cs | 3 +- .../report-list-common.component.ts | 3 ++ .../report-list/report-list.component.html | 14 +++++- .../report-list/report-list.component.ts | 43 +++++++++++++++++++ .../reports/report-list/report-list.json | 5 +++ .../results/reports/reports.component.html | 19 +------- .../results/reports/reports.component.ts | 17 -------- CSETWebNg/src/app/services/report.service.ts | 18 ++++++++ CSETWebNg/src/assets/i18n/reports/en.json | 4 ++ 9 files changed, 90 insertions(+), 36 deletions(-) diff --git a/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsData/ReportsDataBusiness.cs b/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsData/ReportsDataBusiness.cs index a40935079f..ed8b2c5f39 100644 --- a/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsData/ReportsDataBusiness.cs +++ b/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsData/ReportsDataBusiness.cs @@ -1103,7 +1103,8 @@ public List GetObservationIndividuals() List individualList = []; var observations = (from f in _context.FINDING - join fc in _context.FINDING_CONTACT on f.Finding_Id equals fc.Finding_Id + join fc in _context.FINDING_CONTACT on f.Finding_Id equals fc.Finding_Id into fc1 + from fc in fc1.DefaultIfEmpty() join a in _context.ANSWER on f.Answer_Id equals a.Answer_Id join mq in _context.MATURITY_QUESTIONS on a.Question_Or_Requirement_Id equals mq.Mat_Question_Id into mq1 from mq in mq1.DefaultIfEmpty() diff --git a/CSETWebNg/src/app/assessment/results/reports/report-list/report-list-common.component.ts b/CSETWebNg/src/app/assessment/results/reports/report-list/report-list-common.component.ts index 5ec38f7bf0..ba9efa71b1 100644 --- a/CSETWebNg/src/app/assessment/results/reports/report-list/report-list-common.component.ts +++ b/CSETWebNg/src/app/assessment/results/reports/report-list/report-list-common.component.ts @@ -43,6 +43,9 @@ export class ReportListCommonComponent implements OnChanges { return result ? result.reportList : []; } + /** + * + */ iseCheckAndSetDisabled(reportList: any[]) { if (!this.ncuaSvc.ISE_StateLed) { this.acetSvc.getIseAnswerCompletionRate().subscribe((percentAnswered: number) => { diff --git a/CSETWebNg/src/app/assessment/results/reports/report-list/report-list.component.html b/CSETWebNg/src/app/assessment/results/reports/report-list/report-list.component.html index 97cc2e68c4..4e078408c6 100644 --- a/CSETWebNg/src/app/assessment/results/reports/report-list/report-list.component.html +++ b/CSETWebNg/src/app/assessment/results/reports/report-list/report-list.component.html @@ -7,12 +7,24 @@

{{sectionTitle}}

-
+ + +
+ + +
+ +
+