Added functionality of Service Levels
This commit is contained in:
parent
4c58752483
commit
b1c52c36eb
39 changed files with 2282 additions and 175 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue