Пример #1
0
        private string GetGroup(MassEmailSendArgs args)
        {
            string result = string.Empty;

            switch (args.Group)
            {
            case "community":
                result = string.Join(", ", CommunityUtility.GetCommunityNames(Combine(args.Values)));
                break;

            case "manager":
                result = Client.GetClient(args.Values.First()).DisplayName;
                break;

            case "tools":
                result = string.Join(", ", Resource.GetResources(args.Values).Select(x => x.ResourceName));
                break;

            case "lab":
                result = string.Join(", ", Room.GetPassbackRooms().Where(x => args.Values.Contains(x.AreaID)).Select(x => x.AreaName));
                break;

            default:     //privilege
                result = string.Join(", ", PrivUtility.GetPrivTypes((ClientPrivilege)Combine(args.Values)));
                break;
            }

            return(result);
        }
Пример #2
0
 protected override string GetGroupName()
 {
     return(string.Join(", ", PrivUtility.GetPrivTypes((ClientPrivilege)SelectedPrivileges)));
 }