public override bool Equals(object obj)
        {
            bool Result = false;

            if (obj is RoleMemberEntity)
            {
                RoleMemberEntity RoleMember = obj as RoleMemberEntity;
                if (RoleNo == RoleMember.RoleNo &&
                    UserNo == RoleMember.UserNo)
                {
                    Result = true;
                }
            }
            return(Result);
        }
 /// <summary>
 /// 添加角色成员
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void UserList_OnItemCommand(object sender, RepeaterCommandEventArgs e)
 {
     if (String.IsNullOrEmpty(RoleNo)) {
         ShowMessage("请在角色列表中选择一个角色!");
         return;
     }
     string userNo = (string)e.CommandArgument;
     RoleMemberEntity roleMember = new RoleMemberEntity();
     roleMember.RoleNo = RoleNo;
     roleMember.UserNo = userNo;
     m_Role.SaveRoleMember(roleMember);
     BindRoleMember();
 }
 /// <summary>
 /// 移除角色成员
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void RoleMemberList_OnItemCommand(object sender, RepeaterCommandEventArgs e)
 {
     string userNo = (string)e.CommandArgument;
     RoleMemberEntity roleMember = new RoleMemberEntity();
     roleMember.RoleNo = RoleNo;
     roleMember.UserNo = userNo;
     m_Role.DeleteRoleMember(roleMember);
     BindRoleMember();
 }