Beispiel #1
0
        public ActionResult Edit(ActionInfo actionInfo)
        {
            string result = "no";

            //判断是否桌面菜单
            if (actionInfo.IsMenu == 1)
            {
                //是
                actionInfo.MenuIcon = string.IsNullOrWhiteSpace(Request["viewMenuIcon"]) ? ConfigurationManager.AppSettings["DefaultMenuIcon"] : Request["viewMenuIcon"];
            }
            else
            {
                //否
                actionInfo.MenuIcon = null;
            }
            ActionInfo action = ActionInfoBll.GetById(actionInfo.ActionId);

            action.ModifiedTime   = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            action.ActionTitle    = actionInfo.ActionTitle;
            action.ControllerName = actionInfo.ControllerName;
            action.ActionName     = actionInfo.ActionName;
            action.IsMenu         = actionInfo.IsMenu;
            action.MenuIcon       = actionInfo.MenuIcon;
            action.Remark         = actionInfo.Remark;
            action.SubBy          = UserLogin.UserId;
            if (action.ActionTitle != string.Empty && ActionInfoBll.Edit(action))
            {
                result = "ok";
            }
            return(Content(result));
        }
Beispiel #2
0
        public ActionResult Edit(int aId)
        {
            ActionInfo actionInfo = ActionInfoBll.GetById(aId);

            return(View(actionInfo));
        }