权限设计思路(12)
发布时间:2021-06-07
发布时间:2021-06-07
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <returns>返回DataTable</returns>
DataTable GetDT(BaseUserInfoLog BaseUser);
/// <summary>
/// 获取实体
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <returns>返回一个实体</returns>
Role GetEntity(BaseUserInfoLog BaseUser, string RoleNo);
/// <summary>
/// 获取DataTable
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <returns>DataTable</returns>
Role GetRoleDT(BaseUserInfoLog BaseUser, string RoleNo);
/// <summary>
/// 根据角色编码修改
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleEntity">角色实体</param>
/// <param name="RoleNo">角色编码</param>
/// <returns>返回的条数</returns>
int Update(BaseUserInfoLog BaseUser, Role RoleEntity,string RoleNo);
/// <summary>
/// 给角色分用户
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <param name="UserNo">用户编码</param>
/// <returns>返回的条数</returns>
int AddUserToRole(BaseUserInfoLog BaseUser, string RoleNo, List<string> UserNo); /// <summary>
/// 移除这个角色的用户
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <param name="UserNo">用户编码</param>
/// <returns>返回条数</returns>
int RemoveUserFromRole(BaseUserInfoLog BaseUser, string RoleNo, List<string> UserNo); /// <summary>