Feature: User List Sorted.
Fix: Checkes were not being removed from Listbox
This commit is contained in:
parent
948cd0bf28
commit
3706d8eb1e
@ -41,7 +41,10 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
var roles = bi.RoleList();
|
||||
clbRoles.DataSource = roles;
|
||||
|
||||
for (int i = 0; i < clbRoles.Items.Count; i++)
|
||||
{
|
||||
clbRoles.SetItemChecked(i, false);
|
||||
}
|
||||
if (groupID.HasValue)
|
||||
{
|
||||
var group = bi.Get(x => x.GroupID == groupID.Value);
|
||||
|
@ -47,7 +47,10 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
var groups = bi.GroupList();
|
||||
clbGroups.DataSource = groups;
|
||||
|
||||
for (int i = 0; i < clbGroups.Items.Count; i++)
|
||||
{
|
||||
clbGroups.SetItemChecked(i, false);
|
||||
}
|
||||
if (userID.HasValue)
|
||||
{
|
||||
var user = bi.Get(x => x.UserID == userID.Value);
|
||||
|
@ -9,6 +9,13 @@ namespace Tanshu.Accounts.Repository
|
||||
{
|
||||
public class UserBI : UnitOfWork<User>
|
||||
{
|
||||
public new IList<User> List()
|
||||
{
|
||||
return _session.QueryOver<User>()
|
||||
.OrderBy(x => x.Name).Asc
|
||||
.List<User>();
|
||||
}
|
||||
|
||||
public IList<Group> GroupList()
|
||||
{
|
||||
return _session.QueryOver<Group>()
|
||||
|
Loading…
Reference in New Issue
Block a user