コード例 #1
0
ファイル: ReportsController.cs プロジェクト: ws-projects/cset
        public BasicReportData getSecurityPlan()
        {
            int assessmentId = Auth.AssessmentForUser();

            ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId);
            BasicReportData    data = new BasicReportData();

            data.ControlList  = reportsDataManager.GetControls();
            data.genSalTable  = reportsDataManager.GetGenSals();
            data.information  = reportsDataManager.GetInformation();
            data.salTable     = reportsDataManager.GetSals();
            data.nistTypes    = reportsDataManager.GetNistInfoTypes();
            data.nistSalTable = reportsDataManager.GetNistSals();
            return(data);
        }
コード例 #2
0
ファイル: ReportsController.cs プロジェクト: ws-projects/cset
        public BasicReportData getSiteSummary()
        {
            int assessmentId = Auth.AssessmentForUser();

            ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId);
            BasicReportData    data = new BasicReportData();

            data.genSalTable                   = reportsDataManager.GetGenSals();
            data.information                   = reportsDataManager.GetInformation();
            data.salTable                      = reportsDataManager.GetSals();
            data.nistTypes                     = reportsDataManager.GetNistInfoTypes();
            data.nistSalTable                  = reportsDataManager.GetNistSals();
            data.DocumentLibraryTable          = reportsDataManager.GetDocumentLibrary();
            data.RankedQuestionsTable          = reportsDataManager.GetRankedQuestions();
            data.QuestionsWithCommentsTable    = reportsDataManager.getQuestionsWithCommentsOrMarkedForReview();
            data.QuestionsWithAlternateJustifi = reportsDataManager.GetQuestionsWithAlternateJustification();
            return(data);
        }
コード例 #3
0
ファイル: ReportsController.cs プロジェクト: itcms/cset
        public BasicReportData GetDetail()
        {
            int assessmentId = Auth.AssessmentForUser();

            ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId);
            BasicReportData    data = new BasicReportData();

            data.genSalTable                   = reportsDataManager.GetGenSals();
            data.information                   = reportsDataManager.GetInformation();
            data.salTable                      = reportsDataManager.GetSals();
            data.nistTypes                     = reportsDataManager.GetNistInfoTypes();
            data.nistSalTable                  = reportsDataManager.GetNistSals();
            data.DocumentLibraryTable          = reportsDataManager.GetDocumentLibrary();
            data.RankedQuestionsTable          = reportsDataManager.GetRankedQuestions();
            data.QuestionsWithComments         = reportsDataManager.GetQuestionsWithComments();
            data.QuestionsMarkedForReview      = reportsDataManager.GetQuestionsMarkedForReview();
            data.QuestionsWithAlternateJustifi = reportsDataManager.GetQuestionsWithAlternateJustification();
            data.StandardsQuestions            = reportsDataManager.GetQuestionsForEachStandard();
            data.ComponentQuestions            = reportsDataManager.GetComponentQuestions();
            return(data);
        }