public ActionResult GetUserRoleRelation() { int userID = WebRequestHelper.GetIntFromParameters("UserID"); List <SystemRoleInfoModel> roleList = SystemRoleInfoBusiness.GetSystemRoleInfoListByUserID(userID); return(Json(roleList)); }
public ActionResult RoleInfoEdit(SystemRoleInfoModel roleInfo) { bool isSuccess = SystemRoleInfoBusiness.SaveSystemRoleInfo(roleInfo); ViewBag.Message = isSuccess ? "保存成功" : "保存失败"; ViewBag.IsSuccess = isSuccess; return(View(roleInfo)); }
public ActionResult RoleMenuRelationManage() { int roleId = WebRequestHelper.GetIntFromParameters("RoleID"); SystemRoleInfoModel roleInfo = new SystemRoleInfoModel(); roleInfo = SystemRoleInfoBusiness.GetSystemRoleInfo(roleId); return(View(roleInfo)); }
public ActionResult RoleInfoManageSearch() { string roleName = WebRequestHelper.GetStringFromParameters("RoleName"); int pageSize = WebRequestHelper.GetIntFromParameters("rows"); int currentPage = WebRequestHelper.GetIntFromParameters("page"); DataGridPageList <SystemRoleInfoModel> roleInfoPageList = SystemRoleInfoBusiness.GetSystemRoleInfoPageList(roleName, pageSize, currentPage); return(Json(roleInfoPageList)); }
public ActionResult DeleteRoleInfo() { int roleID = WebRequestHelper.GetIntFromParameters("RoleID"); bool isSuccess = SystemRoleInfoBusiness.DeleteRoleInfo(roleID); ReturnInfoModel returnInfo = new ReturnInfoModel(); returnInfo.IsSuccess = isSuccess; returnInfo.Message = isSuccess ? "删除成功" : "删除失败"; return(Json(returnInfo)); }