public GeodatalovDatasetStatusReportViewModel(StatusReport statusReport, List <StatusReport> statusReports, string statusType)
        {
            ReportsSelectList    = CreateSelectList(statusReports);
            StatusTypeSelectList = CreateStatusTypeSelectList();  // TODO
            GeodatalovLineChart  = new GeodatalovLineChart(statusReports, statusReport, statusType);
            StatusChart          = new StatusLineChart(statusReports, statusReport, statusType);

            if (statusReport != null)
            {
                ReportNotExists = false;
                Id            = statusReport.Id;
                Date          = statusReport.Date;
                NumberOfItems = statusReport.NumberOfIems();

                NumberOfItemsWithMetadata             = new NumberOfStatuses(statusReport.NumberOfGeodatalovDatasetsWithMetadata(Good), statusReport.NumberOfGeodatalovDatasetsWithMetadata(Useable), statusReport.NumberOfGeodatalovDatasetsWithMetadata(Deficient), statusReport.NumberOfGeodatalovDatasetsWithMetadata(Notset));
                NumberOfItemsWithProductSpecification = new NumberOfStatuses(statusReport.NumberOfGeodatalovDatasetsWithProductSpecification(Good), statusReport.NumberOfGeodatalovDatasetsWithProductSpecification(Useable), statusReport.NumberOfGeodatalovDatasetsWithProductSpecification(Deficient), statusReport.NumberOfGeodatalovDatasetsWithProductSpecification(Notset));
                NumberOfItemsWithSosiRequirements     = new NumberOfStatuses(statusReport.NumberOfGeodatalovDatasetsWithSosiRequirements(Good), statusReport.NumberOfGeodatalovDatasetsWithSosiRequirements(Useable), statusReport.NumberOfGeodatalovDatasetsWithSosiRequirements(Deficient), statusReport.NumberOfGeodatalovDatasetsWithSosiRequirements(Notset));
                NumberOfItemsWithGmlRequirements      = new NumberOfStatuses(statusReport.NumberOfGeodatalovDatasetsWithGmlRequirements(Good), statusReport.NumberOfGeodatalovDatasetsWithGmlRequirements(Useable), statusReport.NumberOfGeodatalovDatasetsWithGmlRequirements(Deficient), statusReport.NumberOfGeodatalovDatasetsWithGmlRequirements(Notset));
                NumberOfItemsWithWms      = new NumberOfStatuses(statusReport.NumberOfGeodatalovDatasetsWithWms(Good), statusReport.NumberOfGeodatalovDatasetsWithWms(Useable), statusReport.NumberOfGeodatalovDatasetsWithWms(Deficient), statusReport.NumberOfGeodatalovDatasetsWithWms(Notset));
                NumberOfItemsWithWfs      = new NumberOfStatuses(statusReport.NumberOfGeodatalovDatasetsWithWfs(Good), statusReport.NumberOfGeodatalovDatasetsWithWfs(Useable), statusReport.NumberOfGeodatalovDatasetsWithWfs(Deficient), statusReport.NumberOfGeodatalovDatasetsWithWfs(Notset));
                NumberOfItemsWithAtomFeed = new NumberOfStatuses(statusReport.NumberOfGeodatalovDatasetsWithAtomFeed(Good), statusReport.NumberOfGeodatalovDatasetsWithAtomFeed(Useable), statusReport.NumberOfGeodatalovDatasetsWithAtomFeed(Deficient), statusReport.NumberOfGeodatalovDatasetsWithAtomFeed(Notset));
                NumberOfItemsWithCommon   = new NumberOfStatuses(statusReport.NumberOfItemsWithCommon(Good), statusReport.NumberOfItemsWithCommon(Useable), statusReport.NumberOfItemsWithCommon(Deficient), statusReport.NumberOfItemsWithCommon(Notset));

                NumberOfItemsWithInspireTheme    = statusReport.NumberOfGeodatalovDatasetsWithInspireTheme();
                NumberOfItemsWithDok             = statusReport.NumberOfGeodatalovDatasetsWithDok();
                NumberOfItemsWithNationalDataset = statusReport.NumberOfGeodatalovDatasetsWithNationalDataset();
                NumberOfItemsWithPlan            = statusReport.NumberOfGeodatalovDatasetsWithPlan();
                NumberOfItemsWithGeodatalov      = statusReport.NumberOfGeodatalovDatasetsWithGeodatalov();
            }
            else
            {
                ReportNotExists = true;
            }
        }
Esempio n. 2
0
        public MareanoDatasetStatusReportViewModel(StatusReport statusReport, List <StatusReport> statusReports, string statusType)
        {
            ReportsSelectList    = CreateSelectList(statusReports);
            StatusTypeSelectList = CreateStatusTypeSelectList();
            MareanoLineChart     = new MareanoLineChart(statusReports, statusReport, statusType);
            StatusChart          = new StatusLineChart(statusReports, statusReport, statusType);

            if (statusReport != null)
            {
                ReportNotExists = false;
                Id            = statusReport.Id;
                Date          = statusReport.Date;
                NumberOfItems = statusReport.NumberOfIems();

                NumberOfItemsWithFindable      = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithFindable(Good), statusReport.NumberOfMareanoDatasetsWithFindable(Useable), statusReport.NumberOfMareanoDatasetsWithFindable(Deficient), statusReport.NumberOfMareanoDatasetsWithFindable(Notset), statusReport.NumberOfMareanoDatasetsWithFindable(Satisfactory));
                NumberOfItemsWithAccesible     = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithAccesible(Good), statusReport.NumberOfMareanoDatasetsWithAccesible(Useable), statusReport.NumberOfMareanoDatasetsWithAccesible(Deficient), statusReport.NumberOfMareanoDatasetsWithAccesible(Notset), statusReport.NumberOfMareanoDatasetsWithAccesible(Satisfactory));
                NumberOfItemsWithInteroperable = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithInteroperable(Good), statusReport.NumberOfMareanoDatasetsWithInteroperable(Useable), statusReport.NumberOfMareanoDatasetsWithInteroperable(Deficient), statusReport.NumberOfMareanoDatasetsWithInteroperable(Notset), statusReport.NumberOfMareanoDatasetsWithInteroperable(Satisfactory));
                NumberOfItemsWithReUseable     = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithReUsable(Good), statusReport.NumberOfMareanoDatasetsWithReUsable(Useable), statusReport.NumberOfMareanoDatasetsWithReUsable(Deficient), statusReport.NumberOfMareanoDatasetsWithReUsable(Notset), statusReport.NumberOfMareanoDatasetsWithReUsable(Satisfactory));

                NumberOfItemsWithMetadata             = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithMetadata(Good), statusReport.NumberOfMareanoDatasetsWithMetadata(Useable), statusReport.NumberOfMareanoDatasetsWithMetadata(Deficient), statusReport.NumberOfMareanoDatasetsWithMetadata(Notset));
                NumberOfItemsWithProductSheet         = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithProductSheet(Good), statusReport.NumberOfMareanoDatasetsWithProductSheet(Useable), statusReport.NumberOfMareanoDatasetsWithProductSheet(Deficient), statusReport.NumberOfMareanoDatasetsWithProductSheet(Notset));
                NumberOfItemsWithPresentationRules    = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithPresentationRules(Good), statusReport.NumberOfMareanoDatasetsWithPresentationRules(Useable), statusReport.NumberOfMareanoDatasetsWithPresentationRules(Deficient), statusReport.NumberOfMareanoDatasetsWithPresentationRules(Notset));
                NumberOfItemsWithProductSpecification = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithProductSpecification(Good), statusReport.NumberOfMareanoDatasetsWithProductSpecification(Useable), statusReport.NumberOfMareanoDatasetsWithProductSpecification(Deficient), statusReport.NumberOfMareanoDatasetsWithProductSpecification(Notset));
                NumberOfItemsWithSosiRequirements     = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Good), statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Useable), statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Deficient), statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Notset));
                NumberOfItemsWithGmlRequirements      = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Good), statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Useable), statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Deficient), statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Notset));
                NumberOfItemsWithWms      = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithWms(Good), statusReport.NumberOfMareanoDatasetsWithWms(Useable), statusReport.NumberOfMareanoDatasetsWithWms(Deficient), statusReport.NumberOfMareanoDatasetsWithWms(Notset));
                NumberOfItemsWithWfs      = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithWfs(Good), statusReport.NumberOfMareanoDatasetsWithWfs(Useable), statusReport.NumberOfMareanoDatasetsWithWfs(Deficient), statusReport.NumberOfMareanoDatasetsWithWfs(Notset));
                NumberOfItemsWithAtomFeed = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithAtomFeed(Good), statusReport.NumberOfMareanoDatasetsWithAtomFeed(Useable), statusReport.NumberOfMareanoDatasetsWithAtomFeed(Deficient), statusReport.NumberOfMareanoDatasetsWithAtomFeed(Notset));
                NumberOfItemsWithCommon   = new NumberOfStatuses(statusReport.NumberOfItemsWithCommon(Good), statusReport.NumberOfItemsWithCommon(Useable), statusReport.NumberOfItemsWithCommon(Deficient), statusReport.NumberOfItemsWithCommon(Notset));
            }
            else
            {
                ReportNotExists = true;
            }
        }
        public InspireDataserviceStatusReportViweModel(StatusReport statusReport, List <StatusReport> statusReports, string inspireDataServiceStatusType)
        {
            StatusTypeSelectList = CreateStatusTypeSelectList();
            LineChart            = new InspireDataServiceLineChart(statusReports, statusReport);
            StatusChart          = new StatusLineChart(statusReports, statusReport, inspireDataServiceStatusType);

            if (statusReport != null)
            {
                NumberOfItemsWithMetadata = new NumberOfStatuses(statusReport.NumberOfInspireDataServiceWithMetadata(Good), statusReport.NumberOfInspireDataServiceWithMetadata(Useable), statusReport.NumberOfInspireDataServiceWithMetadata(Deficient), statusReport.NumberOfInspireDataServiceWithMetadata(Notset));
                NumberOfItemsWithMetadataInSearchService = new NumberOfStatuses(statusReport.NumberOfInspireDataServicesWithMetadataService(Good), statusReport.NumberOfInspireDataServicesWithMetadataService(Useable), statusReport.NumberOfInspireDataServicesWithMetadataService(Deficient), statusReport.NumberOfInspireDataServicesWithMetadataService(Notset));
                NumberOfItemsWithServiceStatus           = new NumberOfStatuses(statusReport.NumberOfItemsWithServiceStatus(Good), statusReport.NumberOfItemsWithServiceStatus(Useable), statusReport.NumberOfItemsWithServiceStatus(Deficient), statusReport.NumberOfItemsWithServiceStatus(Notset));
                NumberOfItemsWithSds            = statusReport.NumberOfInspireDataServiceWithSds();
                NumberOfItemsWithNetworkService = statusReport.NumberOfInspireDataServiceWithNetworkService();
                NumberOfInspireDataservices     = statusReport.NumberOfInspireDataServices();
            }
        }
Esempio n. 4
0
        public InspireDatasetStatusReportViweModel(StatusReport statusReport, List <StatusReport> statusReports, string inspireDatasetStatusType)
        {
            StatusTypeSelectList = CreateStatusTypeSelectList();
            StatusChart          = new StatusLineChart(statusReports, statusReport, inspireDatasetStatusType);

            LineChart = new InspireDatasetLineChart(statusReports, statusReport);
            if (statusReport != null)
            {
                NumberOfItemsWithMetadata           = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithMetadata(Good), statusReport.NumberOfInspireDatasetsWithMetadata(Useable), statusReport.NumberOfInspireDatasetsWithMetadata(Deficient), statusReport.NumberOfInspireDatasetsWithMetadata(Notset));
                NumberOfItemsWithMetadataService    = new NumberOfStatuses(statusReport.NumberOfItemsWithMetadataService(Good), statusReport.NumberOfItemsWithMetadataService(Useable), statusReport.NumberOfItemsWithMetadataService(Deficient), statusReport.NumberOfItemsWithMetadataService(Notset));
                NumberOfItemsWithDistribution       = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithDistribution(Good), statusReport.NumberOfInspireDatasetsWithDistribution(Useable), statusReport.NumberOfInspireDatasetsWithDistribution(Deficient), statusReport.NumberOfInspireDatasetsWithDistribution(Notset));
                NumberOfItemsWithWms                = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithWms(Good), statusReport.NumberOfInspireDatasetsWithWms(Useable), statusReport.NumberOfInspireDatasetsWithWms(Deficient), statusReport.NumberOfInspireDatasetsWithWms(Notset));
                NumberOfItemsWithWfs                = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithWfs(Good), statusReport.NumberOfInspireDatasetsWithWfs(Useable), statusReport.NumberOfInspireDatasetsWithWfs(Deficient), statusReport.NumberOfInspireDatasetsWithWfs(Notset));
                NumberOfItemsWithAtomFeed           = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithAtomFeed(Good), statusReport.NumberOfInspireDatasetsWithAtomFeed(Useable), statusReport.NumberOfInspireDatasetsWithAtomFeed(Deficient), statusReport.NumberOfInspireDatasetsWithAtomFeed(Notset));
                NumberOfItemsWithWfsOrAtom          = new NumberOfStatuses(statusReport.NumberOfItemsWithWfsOrAtom(Good), statusReport.NumberOfItemsWithWfsOrAtom(Useable), statusReport.NumberOfItemsWithWfsOrAtom(Deficient), statusReport.NumberOfItemsWithWfsOrAtom(Notset));
                NumberOfItemsWithHarmonizedData     = new NumberOfStatuses(statusReport.NumberOfItemsWithHarmonizedData(Good), statusReport.NumberOfItemsWithHarmonizedData(Useable), statusReport.NumberOfItemsWithHarmonizedData(Deficient), statusReport.NumberOfItemsWithHarmonizedData(Notset));
                NumberOfItemsWithSpatialDataService = new NumberOfStatuses(statusReport.NumberOfItemsWithSpatialDataService(Good), statusReport.NumberOfItemsWithSpatialDataService(Useable), statusReport.NumberOfItemsWithSpatialDataService(Deficient), statusReport.NumberOfItemsWithSpatialDataService(Notset));
                NumberOfInspireDatasets             = statusReport.NumberOfInspireDatasets();
            }
        }
Esempio n. 5
0
        public DokStatusReportViewModel(StatusReport statusReport, List <StatusReport> statusReports, string statusType)
        {
            ReportsSelectList    = CreateSelectList(statusReports);
            StatusTypeSelectList = CreateStatusTypeSelectList();
            DokHistoricalChart   = new DokLineChart(statusReports, statusReport, statusType);
            StatusChart          = new StatusLineChart(statusReports, statusReport, statusType);

            if (statusReport != null)
            {
                ReportNotExists = false;
                Id            = statusReport.Id;
                Date          = statusReport.Date;
                NumberOfItems = statusReport.NumberOfIems();

                NumberOfItemsWithMetadataGood      = statusReport.NumberOfItemsWithMetadata(Good);
                NumberOfItemsWithMetadataDeficient = statusReport.NumberOfItemsWithMetadata(Deficient);
                NumberOfItemsWithMetadataNotSet    = statusReport.NumberOfItemsWithMetadata(Notset);
                NumberOfItemsWithMetadataUseable   = statusReport.NumberOfItemsWithMetadata(Useable);

                NumberOfItemsWithProductsheetGood      = statusReport.NumberOfItemsWithProductsheet(Good);
                NumberOfItemsWithProductsheetDeficient = statusReport.NumberOfItemsWithProductsheet(Deficient);
                NumberOfItemsWithProductsheetNotSet    = statusReport.NumberOfItemsWithProductsheet(Notset);
                NumberOfItemsWithProductsheetUseable   = statusReport.NumberOfItemsWithProductsheet(Useable);

                NumberOfItemsWithPresentationRulesGood      = statusReport.NumberOfItemsWithPresentationRules(Good);
                NumberOfItemsWithPresentationRulesDeficient = statusReport.NumberOfItemsWithPresentationRules(Deficient);
                NumberOfItemsWithPresentationRulesNotSet    = statusReport.NumberOfItemsWithPresentationRules(Notset);
                NumberOfItemsWithPresentationRulesUseable   = statusReport.NumberOfItemsWithPresentationRules(Useable);

                NumberOfItemsWithProductSpecificationGood      = statusReport.NumberOfItemsWithProductSpecification(Good);
                NumberOfItemsWithProductSpecificationDeficient = statusReport.NumberOfItemsWithProductSpecification(Deficient);
                NumberOfItemsWithProductSpecificationNotSet    = statusReport.NumberOfItemsWithProductSpecification(Notset);
                NumberOfItemsWithProductSpecificationUseable   = statusReport.NumberOfItemsWithProductSpecification(Useable);


                NumberOfItemsWithWmsGood      = statusReport.NumberOfItemsWithWms(Good);
                NumberOfItemsWithWmsDeficient = statusReport.NumberOfItemsWithWms(Deficient);
                NumberOfItemsWithWmsNotSet    = statusReport.NumberOfItemsWithWms(Notset);
                NumberOfItemsWithWmsUseable   = statusReport.NumberOfItemsWithWms(Useable);

                NumberOfItemsWithWfsGood      = statusReport.NumberOfItemsWithWfs(Good);
                NumberOfItemsWithWfsDeficient = statusReport.NumberOfItemsWithWfs(Deficient);
                NumberOfItemsWithWfsNotSet    = statusReport.NumberOfItemsWithWfs(Notset);
                NumberOfItemsWithWfsUseable   = statusReport.NumberOfItemsWithWfs(Useable);

                NumberOfItemsWithSosiRequirementsGood      = statusReport.NumberOfItemsWithSosiRequirements(Good);
                NumberOfItemsWithSosiRequirementsDeficient = statusReport.NumberOfItemsWithSosiRequirements(Deficient);
                NumberOfItemsWithSosiRequirementsNotSet    = statusReport.NumberOfItemsWithSosiRequirements(Notset);
                NumberOfItemsWithSosiRequirementsUseable   = statusReport.NumberOfItemsWithSosiRequirements(Useable);

                NumberOfItemsWithGmlRequirementsGood      = statusReport.NumberOfItemsWithGmlRequirements(Good);
                NumberOfItemsWithGmlRequirementsDeficient = statusReport.NumberOfItemsWithGmlRequirements(Deficient);
                NumberOfItemsWithGmlRequirementsNotSet    = statusReport.NumberOfItemsWithGmlRequirements(Notset);
                NumberOfItemsWithGmlRequirementsUseable   = statusReport.NumberOfItemsWithGmlRequirements(Useable);

                NumberOfItemsWithAtomFeedGood      = statusReport.NumberOfItemsWithAtomFeed(Good);
                NumberOfItemsWithAtomFeedDeficient = statusReport.NumberOfItemsWithAtomFeed(Deficient);
                NumberOfItemsWithAtomFeedNotSet    = statusReport.NumberOfItemsWithAtomFeed(Notset);
                NumberOfItemsWithAtomFeedUseable   = statusReport.NumberOfItemsWithAtomFeed(Useable);

                NumberOfItemsWithDistributionGood      = statusReport.NumberOfItemsWithDistribution(Good);
                NumberOfItemsWithDistributionDeficient = statusReport.NumberOfItemsWithDistribution(Deficient);
                NumberOfItemsWithDistributionNotSet    = statusReport.NumberOfItemsWithDistribution(Notset);
                NumberOfItemsWithDistributionUseable   = statusReport.NumberOfItemsWithDistribution(Useable);
            }
            else
            {
                ReportNotExists = true;
            }
        }