public TqmsModule( ITqmsReportsFacadeService tqmsReportsFacadeService, ISingleRecordFacadeService <TqmsMaster, TqmsMasterResource> tqmsMasterFacadeService, IFacadeService <TqmsJobRef, string, TqmsJobRefResource, TqmsJobRefResource> tqmsJobRefsFacadeService) { this.tqmsReportsFacadeService = tqmsReportsFacadeService; this.tqmsMasterFacadeService = tqmsMasterFacadeService; this.tqmsJobRefsFacadeService = tqmsJobRefsFacadeService; this.Get("/inventory/tqms-category-summary", _ => this.GetApp()); this.Get("/inventory/tqms-category-summary/report", _ => this.GetTqmsSummaryByCategory()); this.Get("/inventory/tqms-master", _ => this.GetTqmsMaster()); this.Get("/inventory/tqms-jobrefs", _ => this.GetTqmsJobrefs()); }
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()); }