예제 #1
0
        private void InitNavigation(string controller)
        {
            var navigation = new NavItem<NavUrl>();
            navigation.AddGroup("Meso. Wind DB", isActive: controller == "MesoWind")
                .AddItem("Database", new NavUrl("Database", "MesoWind", "EngineeringTools"))
                .AddItem("Help", new NavUrl("Index", "EngMesoWind", "Help"), openInNewWindow: true);
            /*
                .AddItem("Current Data", new NavUrl("CurrentData", "MesoWind", "EngineeringTools"))
                .AddItem("Velocity Freq.", new NavUrl("VelocityFreq", "MesoWind", "EngineeringTools"))
                .AddItem("Wind Rose", new NavUrl("WindRose", "MesoWind", "EngineeringTools"));
            */
            navigation.AddGroup("Power Calculator", isActive: controller == "WindWave")
                .AddItem("Input Data", new NavUrl("InputData", "WindWave", "EngineeringTools"))
                .AddItem("Power Output", new NavUrl("PowerOutput", "WindWave", "EngineeringTools"))
                .AddItem("Power Output Adv.", new NavUrl("PowerOutputAdvanced", "WindWave", "EngineeringTools"))
                .AddItem("Help", new NavUrl("Index", "EngPowerCalc", "Help"), openInNewWindow: true);

            navigation.AddGroup("Wake Simulation", isActive: controller == "WakeSimulation")
                .AddItem("General Properties", new NavUrl("GeneralProperties", "WakeSimulation", "EngineeringTools"))
                .AddItem("Turbine Coordinates", new NavUrl("TurbineCoordinates", "WakeSimulation", "EngineeringTools"))
                .AddItem("Simulation", new NavUrl("Simulation", "WakeSimulation", "EngineeringTools"))
                .AddItem("Post-processing", new NavUrl("PostProcessing", "WakeSimulation", "EngineeringTools"))
                .AddItem("Help", new NavUrl("Index", "EngWindSim", "Help"), openInNewWindow: true);

            navigation.AddGroup("Wind Farm Control", isActive: controller == "WakeSimulation2")
                .AddItem("Simulation", new NavUrl("Simulation", "WakeSimulation2", "EngineeringTools"))
                .AddItem("Results", new NavUrl("Results", "WakeSimulation2", "EngineeringTools"))
                .AddItem("Help", new NavUrl("Index", "EngWindSim", "Help"), openInNewWindow: true);

            //navigation.AddGroup("Wind Farm Control", isActive: controller == "WindFarm")
            //    .AddItem("Input Data", new NavUrl("InputData", "WindFarm", "EngineeringTools"))
            //    .AddItem("Simulation", new NavUrl("Simulation", "WindFarm", "EngineeringTools"));

            ViewBag.SideNav = navigation;
        }
예제 #2
0
        private void InitNavigation()
        {
            if (!_noNavigation)
            {
                var navigation = new NavItem <NavUrl>();
                navigation.AddGroup("")
                .AddItem("Overview", new NavUrl("Index", "MesoWind", "EngineeringTools"))
                .AddItem("Database", new NavUrl("Database", "MesoWind", "EngineeringTools"));

                //navigation.AddGroup("Wake Simulation")
                //    .AddItem("General Properties", new NavUrl("GeneralProperties", "WakeSimulation", "EngineeringTools"))
                //    .AddItem("Turbine Coordinates", new NavUrl("TurbineCoordinates", "WakeSimulation", "EngineeringTools"))
                //    .AddItem("Simulation", new NavUrl("Simulation", "WakeSimulation", "EngineeringTools"))
                //    .AddItem("Post-processing", new NavUrl("PostProcessing", "WakeSimulation", "EngineeringTools"));

                //navigation.AddGroup("Wind Wave Power")
                //    .AddItem("Overview", new NavUrl("Index", "WindWave", "EngineeringTools"))
                //    .AddItem("Input Data", new NavUrl("InputData", "WindWave", "EngineeringTools"))
                //    .AddItem("Power Output", new NavUrl("PowerOutput", "WindWave", "EngineeringTools"))
                //    .AddItem("Power Output Adv.", new NavUrl("PowerOutputAdvanced", "WindWave", "EngineeringTools"));

                //navigation.AddGroup("Wind Farm Control")
                //    .AddItem("Input Data", new NavUrl("InputData", "WindFarm", "EngineeringTools"))
                //    .AddItem("Simulation", new NavUrl("Simulation", "WindFarm", "EngineeringTools"));

                //foreach (var grp in navigation)
                //{
                //    grp.IsActive = grp.Title == _currentGroup;
                //}
                ViewBag.SideNav = navigation;
            }
        }
예제 #3
0
        private void InitNavigation()
        {
            if (!_noNavigation)
            {
                var navigation = new NavItem<NavUrl>();
                navigation.AddGroup("")
                    .AddItem("Overview", new NavUrl("Index", "MesoWind", "EngineeringTools"))
                    .AddItem("Database", new NavUrl("Database", "MesoWind", "EngineeringTools"));

                //navigation.AddGroup("Wake Simulation")
                //    .AddItem("General Properties", new NavUrl("GeneralProperties", "WakeSimulation", "EngineeringTools"))
                //    .AddItem("Turbine Coordinates", new NavUrl("TurbineCoordinates", "WakeSimulation", "EngineeringTools"))
                //    .AddItem("Simulation", new NavUrl("Simulation", "WakeSimulation", "EngineeringTools"))
                //    .AddItem("Post-processing", new NavUrl("PostProcessing", "WakeSimulation", "EngineeringTools"));

                //navigation.AddGroup("Wind Wave Power")
                //    .AddItem("Overview", new NavUrl("Index", "WindWave", "EngineeringTools"))
                //    .AddItem("Input Data", new NavUrl("InputData", "WindWave", "EngineeringTools"))
                //    .AddItem("Power Output", new NavUrl("PowerOutput", "WindWave", "EngineeringTools"))
                //    .AddItem("Power Output Adv.", new NavUrl("PowerOutputAdvanced", "WindWave", "EngineeringTools"));

                //navigation.AddGroup("Wind Farm Control")
                //    .AddItem("Input Data", new NavUrl("InputData", "WindFarm", "EngineeringTools"))
                //    .AddItem("Simulation", new NavUrl("Simulation", "WindFarm", "EngineeringTools"));

                //foreach (var grp in navigation)
                //{
                //    grp.IsActive = grp.Title == _currentGroup;
                //}
                ViewBag.SideNav = navigation;
            }
        }
예제 #4
0
        protected override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            var navigation = new NavItem<NavUrl>();

            navigation.AddGroup("Content")
                .AddItem("Block", new NavUrl("Index", "ContentMgmt", "ControlPanel", ContentType.Block.S()))
                .AddItem("Blog", new NavUrl("Index", "ContentMgmt", "ControlPanel", ContentType.Blog.S()))
                .AddItem("Page", new NavUrl("Index", "ContentMgmt", "ControlPanel", ContentType.Page.S()));

            navigation.AddGroup("Users")
                .AddItem("Users", new NavUrl("Index", "Users", "ControlPanel"));

            //ViewBag.SideNav = navigation;

            ViewBag.IsAdmin = AccountsHelper.IsAdmin(filterContext.HttpContext.User.Identity.Name);

            base.OnActionExecuted(filterContext);
        }
예제 #5
0
        protected override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            var navigation = new NavItem <NavUrl>();

            navigation.AddGroup("Content")
            .AddItem("Block", new NavUrl("Index", "ContentMgmt", "ControlPanel", ContentType.Block.S()))
            .AddItem("Blog", new NavUrl("Index", "ContentMgmt", "ControlPanel", ContentType.Blog.S()))
            .AddItem("Page", new NavUrl("Index", "ContentMgmt", "ControlPanel", ContentType.Page.S()));

            navigation.AddGroup("Users")
            .AddItem("Users", new NavUrl("Index", "Users", "ControlPanel"));

            //ViewBag.SideNav = navigation;

            ViewBag.IsAdmin = AccountsHelper.IsAdmin(filterContext.HttpContext.User.Identity.Name);

            base.OnActionExecuted(filterContext);
        }
예제 #6
0
        private void InitNavigation(string controller)
        {
            var navigation = new NavItem <NavUrl>();

            navigation.AddGroup("Meso. Wind DB", isActive: controller == "MesoWind")
            .AddItem("Database", new NavUrl("Database", "MesoWind", "EngineeringTools"))
            .AddItem("Help", new NavUrl("Index", "EngMesoWind", "Help"), openInNewWindow: true);

            /*
             *  .AddItem("Current Data", new NavUrl("CurrentData", "MesoWind", "EngineeringTools"))
             *  .AddItem("Velocity Freq.", new NavUrl("VelocityFreq", "MesoWind", "EngineeringTools"))
             *  .AddItem("Wind Rose", new NavUrl("WindRose", "MesoWind", "EngineeringTools"));
             */
            navigation.AddGroup("Power Calculator", isActive: controller == "WindWave")
            .AddItem("Input Data", new NavUrl("InputData", "WindWave", "EngineeringTools"))
            .AddItem("Power Output", new NavUrl("PowerOutput", "WindWave", "EngineeringTools"))
            .AddItem("Power Output Adv.", new NavUrl("PowerOutputAdvanced", "WindWave", "EngineeringTools"))
            .AddItem("Help", new NavUrl("Index", "EngPowerCalc", "Help"), openInNewWindow: true);

            navigation.AddGroup("Wake Simulation", isActive: controller == "WakeSimulation")
            .AddItem("General Properties", new NavUrl("GeneralProperties", "WakeSimulation", "EngineeringTools"))
            .AddItem("Turbine Coordinates", new NavUrl("TurbineCoordinates", "WakeSimulation", "EngineeringTools"))
            .AddItem("Simulation", new NavUrl("Simulation", "WakeSimulation", "EngineeringTools"))
            .AddItem("Post-processing", new NavUrl("PostProcessing", "WakeSimulation", "EngineeringTools"))
            .AddItem("Help", new NavUrl("Index", "EngWindSim", "Help"), openInNewWindow: true);

            navigation.AddGroup("Wind Farm Control", isActive: controller == "WakeSimulation2")
            .AddItem("Simulation", new NavUrl("Simulation", "WakeSimulation2", "EngineeringTools"))
            .AddItem("Results", new NavUrl("Results", "WakeSimulation2", "EngineeringTools"))
            .AddItem("Help", new NavUrl("Index", "EngWindSim", "Help"), openInNewWindow: true);

            navigation.AddGroup("Wind Farm Control-N", isActive: controller == "WakeSimulation2New")
            .AddItem("Simulation", new NavUrl("Simulation", "WakeSimulation2New", "EngineeringTools"))
            .AddItem("Results", new NavUrl("Results", "WakeSimulation2New", "EngineeringTools"))
            .AddItem("Nowcasting", new NavUrl("Nowcasting", "WakeSimulation2New", "EngineeringTools"))
            .AddItem("Help", new NavUrl("Index", "EngWindFarmControlNew", "Help"), openInNewWindow: true);

            //navigation.AddGroup("Wind Farm Control", isActive: controller == "WindFarm")
            //    .AddItem("Input Data", new NavUrl("InputData", "WindFarm", "EngineeringTools"))
            //    .AddItem("Simulation", new NavUrl("Simulation", "WindFarm", "EngineeringTools"));

            ViewBag.SideNav = navigation;
        }
예제 #7
0
        private void InitNavigation()
        {
            var navigation = new NavItem<NavUrl>();
            navigation.AddGroup("Wind Farms & Turbines")
                .AddItem("Overview", new NavUrl("Index", "HomeWindFarms", "WindFarms"))
                .AddItem("Wind Farms", new NavUrl("List", "WindFarm", "WindFarms"))
                .AddItem("Turbines", new NavUrl("List", "Turbine", "WindFarms"));

            foreach (var grp in navigation)
            {
                grp.IsActive = grp.Title == _currentGroup;
            }
            ViewBag.SideNav = navigation;
        }
예제 #8
0
        private void InitNavigation()
        {
            var navigation = new NavItem <NavUrl>();

            navigation.AddGroup("Wind Farms & Turbines")
            .AddItem("Overview", new NavUrl("Index", "HomeWindFarms", "WindFarms"))
            .AddItem("Wind Farms", new NavUrl("List", "WindFarm", "WindFarms"))
            .AddItem("Turbines", new NavUrl("List", "Turbine", "WindFarms"));

            foreach (var grp in navigation)
            {
                grp.IsActive = grp.Title == _currentGroup;
            }
            ViewBag.SideNav = navigation;
        }
예제 #9
0
        private void InitNavigation()
        {
            var navigation = new NavItem<string>();
            var group = navigation.AddGroup("Information");
            var cid = Guid.Parse("9EC610BF-4F5B-4E02-A3DA-DA6C853F9B64");
            foreach (var ri in _ctx.VRouteItems.Where(ri => ri.CategoryId == cid).OrderBy(ri => ri.Position))
            {
                group.AddItem(ri.RouteTitle, ri.Route);
            }

            foreach (var grp in navigation)
            {
                grp.IsActive = true;
            }
            ViewBag.SideNav = navigation;
        }
예제 #10
0
        private void InitNavigation()
        {
            var navigation = new NavItem <string>();
            var group      = navigation.AddGroup("Information");
            var cid        = Guid.Parse("9EC610BF-4F5B-4E02-A3DA-DA6C853F9B64");

            foreach (var ri in _ctx.VRouteItems.Where(ri => ri.CategoryId == cid).OrderBy(ri => ri.Position))
            {
                group.AddItem(ri.RouteTitle, ri.Route);
            }

            foreach (var grp in navigation)
            {
                grp.IsActive = true;
            }
            ViewBag.SideNav = navigation;
        }
예제 #11
0
        private void InitNavigation()
        {
            var navigation = new NavItem<NavUrl>();
            navigation.AddGroup("Pre-processing")
                .AddItem("Domain Setup", new NavUrl("DomainSetup", "Preprocessing", "CFD"))
                .AddItem("Transport Properties", new NavUrl("TransportProperties", "Preprocessing", "CFD"))
                .AddItem("Earth STL Generator", new NavUrl("StlGenerator", "Preprocessing", "CFD"));

            navigation.AddGroup("Boundary Conditions")
                .AddItem("k", new NavUrl("FieldK", "BoundaryConditions", "CFD"))
                .AddItem("epsilon", new NavUrl("FieldEpsilon", "BoundaryConditions", "CFD"))
                .AddItem("p", new NavUrl("FieldP", "BoundaryConditions", "CFD"))
                .AddItem("R", new NavUrl("FieldR", "BoundaryConditions", "CFD"))
                .AddItem("U", new NavUrl("FieldU", "BoundaryConditions", "CFD"));

            navigation.AddGroup("Turbines")
                .AddItem("Turbine Types", new NavUrl("TurbineTypes", "Turbines", "CFD"))
                .AddItem("Turbine Array", new NavUrl("TurbineArray", "Turbines", "CFD"));

            navigation.AddGroup("Airfoil & Turbulence")
                .AddItem("Airfoil Properties", new NavUrl("AirfoilProperties", "AirfoilAndTurbulence", "CFD"))
                .AddItem("Turbulence Properties", new NavUrl("TurbulenceProperties", "AirfoilAndTurbulence", "CFD"));

            navigation.AddGroup("System")
                .AddItem("Time", new NavUrl("Time", "SystemControls", "CFD"))
                .AddItem("Schemes", new NavUrl("Schemes", "SystemControls", "CFD"))
                .AddItem("Solution", new NavUrl("Solution", "SystemControls", "CFD"))
                .AddItem("ParallelExecution", new NavUrl("ParallelExecution", "SystemControls", "CFD"));

            navigation.AddGroup("Processing")
                .AddItem("Settings", new NavUrl("Settings", "Processing", "CFD"))
                .AddItem("Simulation", new NavUrl("Simulation", "Processing", "CFD"))
                .AddItem("History", new NavUrl("History", "Processing", "CFD"));

            navigation.AddGroup("Case Management")
                .AddItem("Reset", new NavUrl("Reset", "CaseManagement", "CFD"));

            foreach (var grp in navigation)
            {
                grp.IsActive = grp.Title == SectionTitle;
            }

            ViewBag.SideNav = navigation;
        }
예제 #12
0
        private void InitNavigation()
        {
            var navigation = new NavItem <NavUrl>();

            navigation.AddGroup("Pre-processing")
            .AddItem("Domain Setup", new NavUrl("DomainSetup", "Preprocessing", "CFD"))
            .AddItem("Transport Properties", new NavUrl("TransportProperties", "Preprocessing", "CFD"))
            .AddItem("Earth STL Generator", new NavUrl("StlGenerator", "Preprocessing", "CFD"));

            navigation.AddGroup("Boundary Conditions")
            .AddItem("k", new NavUrl("FieldK", "BoundaryConditions", "CFD"))
            .AddItem("epsilon", new NavUrl("FieldEpsilon", "BoundaryConditions", "CFD"))
            .AddItem("p", new NavUrl("FieldP", "BoundaryConditions", "CFD"))
            .AddItem("R", new NavUrl("FieldR", "BoundaryConditions", "CFD"))
            .AddItem("U", new NavUrl("FieldU", "BoundaryConditions", "CFD"));

            navigation.AddGroup("Turbines")
            .AddItem("Turbine Types", new NavUrl("TurbineTypes", "Turbines", "CFD"))
            .AddItem("Turbine Array", new NavUrl("TurbineArray", "Turbines", "CFD"));

            navigation.AddGroup("Airfoil & Turbulence")
            .AddItem("Airfoil Properties", new NavUrl("AirfoilProperties", "AirfoilAndTurbulence", "CFD"))
            .AddItem("Turbulence Properties", new NavUrl("TurbulenceProperties", "AirfoilAndTurbulence", "CFD"));

            navigation.AddGroup("System")
            .AddItem("Time", new NavUrl("Time", "SystemControls", "CFD"))
            .AddItem("Schemes", new NavUrl("Schemes", "SystemControls", "CFD"))
            .AddItem("Solution", new NavUrl("Solution", "SystemControls", "CFD"))
            .AddItem("ParallelExecution", new NavUrl("ParallelExecution", "SystemControls", "CFD"));

            navigation.AddGroup("Processing")
            .AddItem("Settings", new NavUrl("Settings", "Processing", "CFD"))
            .AddItem("Simulation", new NavUrl("Simulation", "Processing", "CFD"))
            .AddItem("History", new NavUrl("History", "Processing", "CFD"));

            navigation.AddGroup("Case Management")
            .AddItem("Reset", new NavUrl("Reset", "CaseManagement", "CFD"));

            foreach (var grp in navigation)
            {
                grp.IsActive = grp.Title == SectionTitle;
            }

            ViewBag.SideNav = navigation;
        }