// GET: TemplateSetting public ActionResult TestSetting() { SelectedList sl = new SelectedList(); UserClientsBL ucb = new UserClientsBL(); ViewBag.UserClients = ucb.SelectedList("byUserId", Convert.ToString(ViewBag.UserId)); AD_DefinationBL db = new AD_DefinationBL(); if (ViewBag.IsAdmin) { ViewBag.Cities = db.SelectedList("AllCities"); } else { ViewBag.Cities = db.SelectedList("UserCities", Convert.ToString(ViewBag.UserId)); } // ViewBag.Cities = sl.Cities(); ViewBag.NetworkModes = db.SelectedList("NetworkModes", null, "-Select NetworkMode-"); //ViewBag.NetworkModes = sl.NetworkModes(); ViewBag.Bands = db.ToList("Bands"); ViewBag.Carriers = db.ToList("Carriers"); return(View()); }
public ActionResult Scanner(int SiteId, int NetworkModeId, int BandId) { SelectedList sl = new SelectedList(); UserClientsBL ucb = new UserClientsBL(); ViewBag.UserClients = ucb.SelectedList("byUserId", Convert.ToString(ViewBag.UserId)); AD_DefinationBL db = new AD_DefinationBL(); if (ViewBag.IsAdmin) { ViewBag.Cities = db.SelectedList("AllCities"); } else { ViewBag.Cities = db.SelectedList("UserCities", Convert.ToString(ViewBag.UserId)); } ViewBag.Manufacturer = db.SelectedList("byDefinationType", "ScannerManufacturer", "-Select Manufacturer-"); ViewBag.ScannerModel = db.ToList("byDefinationType", "ScannerModel"); ViewBag.ScannerProtocol = db.SelectedList("byDefinationType", "Scanner Protocol", "-Select Protocol-"); ViewBag.ScannerBand = db.ToList("byDefinationType", "Scanner Band"); AV_SiteScannerConfigurationsBL site = new AV_SiteScannerConfigurationsBL(); var SiteData = site.ToList("GET_SiteParams", SiteId.ToString(), NetworkModeId.ToString(), BandId.ToString(), ""); if (SiteData != null && SiteData.Count > 0) { var Single = SiteData.FirstOrDefault(); if (Single != null) { ViewBag.ClientId = Single.ClientId; ViewBag.CityId = Single.CityId; } } ViewBag.SiteId = SiteId; ViewBag.NetworkModeId = NetworkModeId; ViewBag.BandId = BandId; //ViewBag.IsExist = false; //var siteConfig = site.ToList("GET_Configuration", SiteId.ToString(), NetworkModeId.ToString(), BandId.ToString()); //if (siteConfig.Count()>0) //{ // ViewBag.IsExist = true; // ViewBag.Values = siteConfig; // TempData["Templates"] = siteConfig; // ViewBag.TestCategory = siteConfig.GroupBy(test => test.TestCatogoryId) // .Select(grp => grp.First()) // .ToList(); // ViewBag.GetTestTypes = new Func<int, List<AV_GetScannerSettingTemplate>>(GetScannerTestTypes); // ViewBag.GetKpi = new Func<int, List<AV_GetScannerSettingTemplate>>(GetScannerKpi); //} return(View()); }
public ActionResult ScannerSetting() { SelectedList sl = new SelectedList(); UserClientsBL ucb = new UserClientsBL(); ViewBag.UserClients = ucb.SelectedList("byUserId", Convert.ToString(ViewBag.UserId)); AD_DefinationBL db = new AD_DefinationBL(); if (ViewBag.IsAdmin) { ViewBag.Cities = db.SelectedList("AllCities"); } else { ViewBag.Cities = db.SelectedList("UserCities", Convert.ToString(ViewBag.UserId)); } ViewBag.Manufacturer = db.SelectedList("byDefinationType", "ScannerManufacturer", "-Select Manufacturer-"); ViewBag.ScannerModel = db.ToList("byDefinationType", "ScannerModel"); ViewBag.ScannerProtocol = db.SelectedList("byDefinationType", "Scanner Protocol", "-Select Protocol-"); ViewBag.ScannerBand = db.ToList("byDefinationType", "Scanner Band"); return(View()); }
// GET: ReportConfigurations public ActionResult New(string id = "0") { SelectedList sl = new SelectedList(); UserClientsBL ucb = new UserClientsBL(); ViewBag.UserClients = ucb.SelectedList("byUserId", Convert.ToString(ViewBag.UserId)); AD_DefinationBL db = new AD_DefinationBL(); ViewBag.Cities = db.SelectedList("UserCities", Convert.ToString(ViewBag.UserId)); var ReportTypes = db.SelectedList("ReportTypes"); ViewBag.ReportTypes = ReportTypes; if (ReportTypes.Count > 0 && Convert.ToInt32(id) == 0) { id = ReportTypes.FirstOrDefault().Value; } ViewBag.SelectedReport = id; ViewBag.Scopes = db.SelectedList("byDefinationType", "Scope"); return(View()); }
// GET: Market public ActionResult Configuration(int Id = 0) { ViewBag.CityId = Id; AD_DefinationBL db = new AD_DefinationBL(); if (ViewBag.IsAdmin) { ViewBag.Cities = db.SelectedList("AllCities"); } else { ViewBag.Cities = db.SelectedList("UserCities", Convert.ToString(ViewBag.UserId)); } Sec_UserBL ubl = new Sec_UserBL(); ViewBag.Users = ubl.SelectedList("All", null); ViewBag.MarketUsers = ubl.SelectedList("ByCityId", Id.ToString()); ViewBag.NetworkModes = db.SelectedList("NetworkModes", null, "-Select NetworkMode-"); UserClientsBL ucb = new UserClientsBL(); ViewBag.UserClients = ucb.SelectedList("byUserId", Convert.ToString(ViewBag.UserId)); ViewBag.Projects = db.SelectedList("UserProjects", Convert.ToString(ViewBag.UserId)); ViewBag.ReportTypes = db.SelectedList("ReportTypes", null, "-Report Types-"); ViewBag.Scopes = db.SelectedList("byDefinationType", "Scope"); ViewBag.PlotTypes = db.SelectedList("RFPlotTypes"); return(View()); }