public ActionResult Rules() { ViewBag.Message = "Home.Rule"; ConfigData configData = new ConfigData(); configData.AddConfigItem(new ConfigItem("Rules.", "Rules", "Home")); configData.AddConfigItem(new ConfigItem("Devices.", "Devices", "Home")); configData.AddConfigItem(new ConfigItem("General.", "General", "Home")); configData.AddConfigItem(new ConfigItem("Faarm.", "Farm", "Home")); configData.AddRuleOverviewItem(new RuleOverview("RR Movements On The Desk", RuleOverview.RuleState.Enabled)); configData.AddRuleOverviewItem(new RuleOverview("RR Any movement on the road", RuleOverview.RuleState.Disabled)); configData.AddRuleOverviewItem(new RuleOverview("RR Any movement in the lab", RuleOverview.RuleState.Enabled)); return(View(configData)); }
public ActionResult DeviceList() { ViewBag.Message = "Device.DeviceList"; ConfigData configData = new ConfigData(); configData.AddConfigItem(new ConfigItem("Rules.", "Rules", "Home")); configData.AddConfigItem(new ConfigItem("Devices.", "Devices", "Home")); configData.AddConfigItem(new ConfigItem("General.", "General", "Home")); configData.AddConfigItem(new ConfigItem("Faarm.", "Farm", "Home")); configData.AddDeviceOverviewItem(new DeviceOverview("Axis 111", 1)); configData.AddDeviceOverviewItem(new DeviceOverview("Bosch 222", 2)); configData.AddDeviceOverviewItem(new DeviceOverview("Vivotek 333", 3)); configData.AddDeviceOverviewItem(new DeviceOverview("Vivotek 444", 4)); configData.AddDeviceOverviewItem(new DeviceOverview("Vivotek 555", 5)); configData.AddDeviceOverviewItem(new DeviceOverview("Vivotek 888", 8)); return(View(configData)); }
public ActionResult DeviceConfigNetwork(string id, string layout) { ViewBag.Message = "Home.Devises"; ConfigData configData = new ConfigData(); configData.AddConfigItem(new ConfigItem("Rules.", "Rules", "Home")); configData.AddConfigItem(new ConfigItem("Devices.", "Devices", "Home")); configData.AddConfigItem(new ConfigItem("General.", "General", "Home")); configData.AddConfigItem(new ConfigItem("Faarm.", "Farm", "Home")); configData.AddDeviceOverviewItem(new DeviceOverview("Axis " + id, 1)); configData.AddDeviceOverviewItem(new DeviceOverview("Bosch 222", 2)); configData.AddDeviceOverviewItem(new DeviceOverview("Vivotek 333", 3)); configData.AddDeviceOverviewItem(new DeviceOverview("Vivotek 444", 4)); configData.AddDeviceOverviewItem(new DeviceOverview("Vivotek 555", 5)); configData.AddDeviceOverviewItem(new DeviceOverview("Vivotek 888", 8)); return(View("DeviceConfigNetwork", layout, configData)); //return View("DeviceConfigNetwork", "_EmptyLayout", configData); //return View(configData); }