Exemple #1
0
        //点击按钮 改变权限
        public JsonResult saveMenu(int UserGroupID, int MenuId, bool isTrue)
        {
            string     strError = "";
            T_MenuInfo model    = new T_MenuInfo();

            model.ID        = MenuId;
            model.IsChecked = isTrue;

            bool isSuccess = funcmenu.SaveUserGroupMenuToDB(currentUser, model, UserGroupID, ref strError);

            return(Json(new { state = isSuccess, obj = strError }, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public bool SaveT_UserGroupMenu(UserInfo user, T_MenuInfo t_Menu, int UserGroupID, ref string strError)
        {
            T_MENU_Func tfunc = new T_MENU_Func();

            return(tfunc.SaveUserGroupMenuToDB(user, t_Menu, UserGroupID, ref strError));
        }