예제 #1
0
 public SalesArticleReports(
     IRepository <SalesArticle, string> salesArticleRepository,
     IProductionTriggerLevelsService productionTriggerLevelsService,
     IReportingHelper reportingHelper)
 {
     this.salesArticleRepository         = salesArticleRepository;
     this.productionTriggerLevelsService = productionTriggerLevelsService;
     this.reportingHelper = reportingHelper;
 }
예제 #2
0
 public WhatWillDecrementReportService(
     IProductionTriggerLevelsService productionTriggerLevelsService,
     IWwdPack wwdPack,
     IQueryRepository <WwdWork> wwdWorkRepository,
     IQueryRepository <WwdWorkDetail> wwdWorkDetailsRepository,
     IQueryRepository <ChangeRequest> changeRequestRepository,
     IReportingHelper reportingHelper)
 {
     this.productionTriggerLevelsService = productionTriggerLevelsService;
     this.wwdPack                  = wwdPack;
     this.wwdWorkRepository        = wwdWorkRepository;
     this.wwdWorkDetailsRepository = wwdWorkDetailsRepository;
     this.changeRequestRepository  = changeRequestRepository;
     this.reportingHelper          = reportingHelper;
 }
예제 #3
0
        public ProductionTriggerLevelsModule(
            IProductionTriggerLevelsService productionTriggerLevelsService,
            ISingleRecordFacadeService <PtlSettings, PtlSettingsResource> ptlSettingsFacadeService,
            IAuthorisationService authorisationService,
            ITriggerRunDispatcher triggerRunDispatcher)
        {
            this.productionTriggerLevelsService = productionTriggerLevelsService;
            this.ptlSettingsFacadeService       = ptlSettingsFacadeService;
            this.authorisationService           = authorisationService;
            this.triggerRunDispatcher           = triggerRunDispatcher;

            this.Get("production/maintenance/production-trigger-levels/create", _ => this.GetApp());
            this.Get("production/maintenance/production-trigger-levels/application-state", _ => this.GetApp());
            this.Get("production/maintenance/production-trigger-levels/{partNumber*}", parameters => this.GetProductionTriggerLevel(parameters.partNumber));
            this.Get("production/maintenance/production-trigger-levels", _ => this.GetProductionTriggerLevels());
            this.Put("production/maintenance/production-trigger-levels/{partNumber*}", parameters => this.UpdateTriggerLevel(parameters.partNumber));
            this.Post("production/maintenance/production-trigger-levels", _ => this.AddTriggerLevel());
            this.Get("production/maintenance/production-trigger-levels-settings", _ => this.GetProductionTriggerLevelsSettings());
            this.Put("production/maintenance/production-trigger-levels-settings", _ => this.UpdateProductionTriggerLevelsSettings());
            this.Post("production/maintenance/production-trigger-levels-settings/start-trigger-run", _ => this.StartTriggerRun());
        }