Esempio n. 1
0
 public BenchmarkauswertungZustandskennwertenPoProvider(
     IBenchmarkingGruppenService benchmarkingGruppenService,
     IKenngroessenFruehererJahreService kenngroessenFruehererJahreService,
     IBenchmarkingDataService benchmarkingDataService,
     IReportLocalizationService reportLocalizationService,
     IBelastungskategorieService belastungskategorieService)
 {
     this.benchmarkingGruppenService        = benchmarkingGruppenService;
     this.kenngroessenFruehererJahreService = kenngroessenFruehererJahreService;
     this.benchmarkingDataService           = benchmarkingDataService;
     this.reportLocalizationService         = reportLocalizationService;
     this.belastungskategorieService        = belastungskategorieService;
 }
 public KenngroessenFruehererJahreControllerBase(
     ILocalizationService localizationService,
     IBelastungskategorieService belastungskategorieService,
     IKenngroessenFruehererJahreOverviewService kenngroessenFruehererJahreOverviewService,
     IKenngroessenFruehererJahreService kenngroessenFruehererJahreService,
     IErfassungsPeriodService erfassungsPeriodService
     )
 {
     this.localizationService        = localizationService;
     this.belastungskategorieService = belastungskategorieService;
     this.kenngroessenFruehererJahreOverviewService = kenngroessenFruehererJahreOverviewService;
     this.kenngroessenFruehererJahreService         = kenngroessenFruehererJahreService;
     this.erfassungsPeriodService = erfassungsPeriodService;
 }
 public BenchmarkauswertungKennwertenRealisiertenMassnahmenPoProvider(
     IBenchmarkingGruppenService benchmarkingGruppenService,
     IKenngroessenFruehererJahreService kenngroessenFruehererJahreService,
     IBenchmarkingDataService benchmarkingDataService,
     IReportLocalizationService reportLocalizationService,
     IBelastungskategorieService belastungskategorieService,
     ISecurityService securityService)
 {
     this.benchmarkingGruppenService        = benchmarkingGruppenService;
     this.kenngroessenFruehererJahreService = kenngroessenFruehererJahreService;
     this.benchmarkingDataService           = benchmarkingDataService;
     this.reportLocalizationService         = reportLocalizationService;
     this.belastungskategorieService        = belastungskategorieService;
     this.securityService = securityService;
 }
        public KenngroessenFruehererJahreModelValidator(
            ILocalizationService localizationService,
            IErfassungsPeriodService erfassungsPeriodService,
            IKenngroessenFruehererJahreService kenngroessenFruehererJahreService
            )
            : base(localizationService)
        {
            RuleFor(m => m.Jahr).NotNull()
            .ShouldNotBeNegative(LocalizationService)
            .InclusiveBetween(1000, 9999)
            .Must(jahr => IsValidJahr(erfassungsPeriodService, jahr))
            .WithMessage(localizationService.GetLocalizedError(ValidationError.InvalidKenngroessenFuehererJahre),
                         k => erfassungsPeriodService.GetOldestClosedErfassungsperiod() == null ? "" : oldestClosedErfassungsperiod.Erfassungsjahr.Year.ToString())
            .Must((m, jahr) => kenngroessenFruehererJahreService.IsJahrUnique(m))
            .WithMessage(localizationService.GetLocalizedError(ValidationError.ShouldBeUnique));

            RuleForNullableDecimal(m => m.KostenFuerWerterhaltung).NotEmpty();
            RuleFor(m => m.KenngroesseFruehereJahrDetailModels)
            .SetCollectionValidator(new KenngroessenFruehererJahreDetailModelValidator(localizationService));
        }
 public JahresabschlussService(
     ITransactionScopeProvider transactionScopeProvider,
     IErfassungsPeriodService erfassungsPeriodService,
     IStrassenabschnittService strassenabschnittService,
     INetzSummarischService netzSummarischService,
     IStrassenabschnittGISService strassenabschnittGISService,
     ITrottoirZustandService trottoirZustandService,
     ITrottoirZustandGISService trottoirZustandGisService,
     IKatalogCopyService katalogCopyService,
     INetzSummarischDetailService netzSummarischDetailService,
     IInspektionsRouteGISService inspektionsRouteGISService,
     IJahresabschlussGISService jahresabschlussGISService,
     IRealisierteMassnahmeService realisierteMassnahmeService,
     IKoordinierteMassnahmeGISModelService koordinierteMassnahmeGISModelService,
     IRealisierteMassnahmeSummarsichService realisierteMassnahmeSummarsichService,
     IEreignisLogService ereignisLogService,
     IMandantenDetailsCopyService mandantenDetailsCopyService,
     IBenchmarkingDataDetailCalculatorService benchmarkingDataDetailCopyService,
     IMassnahmenvorschlagTeilsystemeGISModelService massnahmenvorschlagTeilsystemeGISModelService,
     IKenngroessenFruehererJahreService kenngroessenFruehererJahreService)
 {
     this.transactionScopeProvider                      = transactionScopeProvider;
     this.erfassungsPeriodService                       = erfassungsPeriodService;
     this.strassenabschnittService                      = strassenabschnittService;
     this.netzSummarischService                         = netzSummarischService;
     this.strassenabschnittGISService                   = strassenabschnittGISService;
     this.trottoirZustandService                        = trottoirZustandService;
     this.trottoirZustandGisService                     = trottoirZustandGisService;
     this.katalogCopyService                            = katalogCopyService;
     this.netzSummarischDetailService                   = netzSummarischDetailService;
     this.jahresabschlussGISService                     = jahresabschlussGISService;
     this.inspektionsRouteGISService                    = inspektionsRouteGISService;
     this.realisierteMassnahmeService                   = realisierteMassnahmeService;
     this.realisierteMassnahmeSummarsichService         = realisierteMassnahmeSummarsichService;
     this.ereignisLogService                            = ereignisLogService;
     this.mandantenDetailsCopyService                   = mandantenDetailsCopyService;
     this.benchmarkingDataDetailCopyService             = benchmarkingDataDetailCopyService;
     this.koordinierteMassnahmeGISModelService          = koordinierteMassnahmeGISModelService;
     this.massnahmenvorschlagTeilsystemeGISModelService = massnahmenvorschlagTeilsystemeGISModelService;
     this.kenngroessenFruehererJahreService             = kenngroessenFruehererJahreService;
 }
        public RealisiertenMassnahmenWertverlustZustandsindexProJahrGrafischePoProvider(
            IJahresIntervalService jahresIntervalService,
            IFiltererFactory filtererFactory,
            ITransactionScopeProvider transactionScopeProvider,
            IReportLocalizationService reportLocalizationService,
            IKenngroessenFruehererJahreService kenngroessenFruehererJahreService,
            INetzSummarischDetailService netzSummarischDetailService,
            IWiederbeschaffungswertKatalogService wiederbeschaffungswertKatalogService,
            IReportLegendImageService reportLegendImageService)
        {
            this.jahresIntervalService                = jahresIntervalService;
            this.filtererFactory                      = filtererFactory;
            this.transactionScopeProvider             = transactionScopeProvider;
            this.reportLocalizationService            = reportLocalizationService;
            this.kenngroessenFruehererJahreService    = kenngroessenFruehererJahreService;
            this.netzSummarischDetailService          = netzSummarischDetailService;
            this.wiederbeschaffungswertKatalogService = wiederbeschaffungswertKatalogService;
            this.reportLegendImageService             = reportLegendImageService;

            diagramPos = new Dictionary <int, List <DiagramPo> >();
            tablePos   = new Dictionary <int, List <TablePo> >();
        }
Esempio n. 7
0
 public EineListeVonRealisiertenMassnahmenGeordnetNachJahrenGISPoProvider(IFiltererFactory filtererFactory, ITransactionScopeProvider transactionScopeProvider, IKenngroessenFruehererJahreService kenngroessenFruehererJahreService)
     : base(filtererFactory, transactionScopeProvider, kenngroessenFruehererJahreService)
 {
 }
Esempio n. 8
0
 public KenngroessenFruehererJahreController(ILocalizationService localizationService, IBelastungskategorieService belastungskategorieService, IKenngroessenFruehererJahreOverviewService kenngroessenFruehererJahreOverviewService, IKenngroessenFruehererJahreService kenngroessenFruehererJahreService, IErfassungsPeriodService erfassungsPeriodService) : base(localizationService, belastungskategorieService, kenngroessenFruehererJahreOverviewService, kenngroessenFruehererJahreService, erfassungsPeriodService)
 {
 }
Esempio n. 9
0
 public RealisiertenMassnahmenGeordnetNachJahren(IFiltererFactory filtererFactory, ITransactionScopeProvider transactionScopeProvider, IKenngroessenFruehererJahreService kenngroessenFruehererJahreService)
 {
     this.filtererFactory                   = filtererFactory;
     this.transactionScopeProvider          = transactionScopeProvider;
     this.kenngroessenFruehererJahreService = kenngroessenFruehererJahreService;
 }