// GET: PlantiT.Web.HeinekenMassafra.MES/DrillInController public ActionResult Index(string BatchKey, string ConfigKey) { // Berechtigungen ermitteln PPrincipal principal = System.Web.HttpContext.Current.GetPrincipal(); if ((null != principal) && !String.IsNullOrWhiteSpace(principal.AuthenticationType)) { ViewBag.AuthenticationToken = principal.AuthenticationToken; ViewBag.AuthenticationType = principal.AuthenticationType; } // Gateway Verbindung PGatewayConnection gatewayConnection = DependencyResolver.Current.GetService(typeof(PGatewayConnection)) as PGatewayConnection; if (gatewayConnection == null) { return(new HttpStatusCodeResult(HttpStatusCode.Conflict, "Gateway information not found")); } ViewBag.GatewayPath = gatewayConnection.BaseUri; try { ViewBag.BatchKey = Int64.Parse(BatchKey); ViewBag.ConfigKey = Int64.Parse(ConfigKey); } catch (Exception) { return(new HttpStatusCodeResult(HttpStatusCode.Conflict, "Parameter type not correct")); } return(View()); }
public virtual async Task <ActionResult> IndexEH(long ml) { // Berechtigungen ermitteln PPrincipal principal = System.Web.HttpContext.Current.GetPrincipal(); if ((null != principal) && !String.IsNullOrWhiteSpace(principal.AuthenticationType)) { ViewBag.AuthenticationToken = principal.AuthenticationToken; ViewBag.AuthenticationType = principal.AuthenticationType; } // Gateway Verbindung PGatewayConnection gatewayConnection = DependencyResolver.Current.GetService(typeof(PGatewayConnection)) as PGatewayConnection; if (gatewayConnection == null) { return(new HttpStatusCodeResult(HttpStatusCode.Conflict, "Gateway information not found")); } Models.Database.MenuItem menuItem = this.configurationProvider.GetCurrentMenuItem(ml); System.Web.Routing.RouteValueDictionary routeValues = menuItem.GetRouteValues(true); String select_usage = "*[Template Type].2*"; ViewBag.GatewayPath = gatewayConnection.BaseUri; ViewBag.select_usage = select_usage; return(View("Index")); }