Example #1
0
        private void InitButton(Flamingo.Right.Role role)
        {
            IList <Flamingo.Right.User> users = Users.DefaultUsers.GetUsersByRoleId(role.RoleId);

            UserListView.Items.Clear();
            foreach (Flamingo.Right.User user in users)
            {
                ListViewItem item = new ListViewItem(user.UserId.ToString());
                item.Tag = user;
                item.SubItems.Add(user.UserName);
                item.SubItems.Add(user.EmployeeId);
                item.SubItems.Add(user.Mobile);
                item.SubItems.Add(user.IsActive ? "否" : "是");
                UserListView.Items.Add(item);
            }
        }
Example #2
0
 public RoleObject(Flamingo.Right.Role role)
 {
     this.role = role;
 }