Beispiel #1
0
 public MemberModel(int? id, GroupSelect select, string name, string sgprefix = "")
 {
     OrganizationId = id;
     if (Util2.CurrentGroups != null && @select == GroupSelect.Active)
     {
         Groups = Util2.CurrentGroups;
         GroupsMode = Util2.CurrentGroupsMode;
     }
     else // No Filter
     {
         Groups = new int[] {0};
         GroupsMode = 0;
     }
     Select = select;
     Pager = new PagerModel2(Count);
     Pager.Direction = "asc";
     Pager.Sort = "Name";
     NameFilter = name;
     SgPrefix = sgprefix;
 }
Beispiel #2
0
 public MemberModel(int?id, GroupSelect select, string name, string sgprefix = "")
 {
     OrganizationId = id;
     if (Util2.CurrentGroups != null && @select == GroupSelect.Active)
     {
         Groups     = Util2.CurrentGroups;
         GroupsMode = Util2.CurrentGroupsMode;
     }
     else // No Filter
     {
         Groups     = new int[] { 0 };
         GroupsMode = 0;
     }
     Select          = select;
     Pager           = new PagerModel2(Count);
     Pager.Direction = "asc";
     Pager.Sort      = "Name";
     NameFilter      = name;
     SgPrefix        = sgprefix;
 }
Beispiel #3
0
 public string GroupActive(string group)
 {
     return(GroupSelect.Contains(group) ? "active" : "");
 }