Added functionality of Service Levels

This commit is contained in:
vfedosevich 2014-09-11 22:23:48 +03:00
parent 4c58752483
commit b1c52c36eb
39 changed files with 2282 additions and 175 deletions

View file

@ -978,6 +978,31 @@ namespace WebsitePanel.EnterpriseServer
List<ExchangeAccount> accounts = new List<ExchangeAccount>();
ObjectUtils.FillCollectionFromDataView(accounts, ds.Tables[1].DefaultView);
Organization org = null;
try
{
org = GetOrganization(itemId);
if (org != null)
{
Organizations orgProxy = OrganizationController.GetOrganizationProxy(org.ServiceId);
OrganizationUser user = null;
string accountName = string.Empty;
foreach (var account in accounts)
{
accountName = OrganizationController.GetAccountName(account.AccountName);
user = orgProxy.GetUserGeneralSettings(accountName, org.OrganizationId);
account.Disabled = user.Disabled;
account.Locked = user.Locked;
}
}
}
catch { }
result.PageItems = accounts.ToArray();
return result;
}