示例#1
0
        // GET: Base
        public virtual ActionResult Index(int?id)
        {
            var _menuId = id == null ? 0 : id.Value;
            var _roleId = Operator.RoleId;

            if (id != null)
            {
                ViewData["RightButtonList"] = ButtonService.GetButtonListByRoleIdModuleId(_roleId, _menuId, PositionEnum.FormInside);
                ViewData["TopButtonList"]   = ButtonService.GetButtonListByRoleIdModuleId(_roleId, _menuId, PositionEnum.FormRightTop);
            }
            return(View());
        }
示例#2
0
        // GET: Base
        public virtual ActionResult Index(int?id)
        {
            string url = Request.Url.ToString();

            var _menuId = id == null ? 0 : id.Value;
            var _roleId = Operator.RoleId;

            if (id != null)
            {
                ViewData["RightButtonList"] = ButtonService.GetButtonListByRoleIdModuleId(_roleId, _menuId, PositionEnum.FormInside);
                ViewData["TopButtonList"]   = ButtonService.GetButtonListByRoleIdModuleId(_roleId, _menuId, PositionEnum.FormRightTop);
            }
            if (url.Contains("Scada/ScadaFlow"))
            {
            }
            return(View());
        }