public OpenBiz(IOpenService openService, IDiagnosticoDal diagnosticoDal, ISmpService smpService, IOutageService outageService, IDtbService dtbService) { this.openService = openService; this.diagnosticoDal = diagnosticoDal; this.smpService = smpService; this.outageService = outageService; this.dtbService = dtbService; }
public MainDirectories(IAccountService accountService, ICustomerService customerService, IProductCategoryService productCategoryService, ICurrencyService currencyService, IStoreService storeService, IProductService productService, IMachineService machineService, IOutageService outageService, IChannelService channelService, IPromotionService promotionService, IEntityService entityService, IScenarioService scenarioService, IAccountingService accountingService, IProductSubcategoryService productSubcategoryService) { _accountService = accountService; _customerService = customerService; _productCategoryService = productCategoryService; _currencyService = currencyService; _storeService = storeService; _machineService = machineService; _outageService = outageService; _channelService = channelService; _promotionService = promotionService; _entityService = entityService; _scenarioService = scenarioService; _accountingService = accountingService; _productService = productService; _productSubcategoryService = productSubcategoryService; }
protected override void OnInit(EventArgs e) { base.OnInit(e); _liveOutageService = new LiveOutageService(); _outageSummary = _liveOutageService.GetOutageInformation(); string incidentId = Request.QueryString["incidentId"]; IsSummaryMode = !string.IsNullOrEmpty(incidentId); try { if (IsSummaryMode) { _outageSummary = new OutageSummary() { Success = true, Data = new[] { _liveOutageService.GetOutageInformation(incidentId) } }; } else { _outageSummary = _liveOutageService.GetOutageInformation(); } } catch (Exception ex) { //log exception to kentico EventLogProvider.LogException("Content", "GET", ex, 0, "Outage Summary Control", null); } bool designMode = (PortalContext.ViewMode == ViewModeEnum.Design) || (this.HideOnCurrentPage) || (!this.IsVisible); pnlOutageMapControlPreviewMode.Visible = !designMode; GoogleMapKey = SettingsHelper.Webpart.GoogleMapApiKey; OutageInformationAsJson = JsonConvert.SerializeObject(_outageSummary); }
public OMS(IOutageService outageService, IReportService reportService) { this.outageService = outageService; this.reportService = reportService; }
protected override void OnInit(EventArgs e) { base.OnInit(e); _outageService = new LiveOutageService(); }