Ability to set system and reseller lync and exchange mailbox plans as a default
plan added
This commit is contained in:
parent
555fb75d5d
commit
62f478010c
7 changed files with 112 additions and 2 deletions
|
@ -2570,6 +2570,18 @@ namespace WebsitePanel.EnterpriseServer
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
public static IDataReader GetExchangeOrganization(int itemId)
|
||||
{
|
||||
return SqlHelper.ExecuteReader(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"GetExchangeOrganization",
|
||||
new SqlParameter("@ItemID", itemId)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public static void SetOrganizationDefaultExchangeMailboxPlan(int itemId, int mailboxPlanId)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(
|
||||
|
|
|
@ -2647,6 +2647,17 @@ namespace WebsitePanel.EnterpriseServer
|
|||
else
|
||||
ExchangeServerController.GetExchangeMailboxPlansByUser(0, user, ref mailboxPlans);
|
||||
|
||||
|
||||
ExchangeOrganization ExchangeOrg = ObjectUtils.FillObjectFromDataReader<ExchangeOrganization>(DataProvider.GetExchangeOrganization(itemId));
|
||||
|
||||
if (ExchangeOrg != null)
|
||||
{
|
||||
foreach (ExchangeMailboxPlan p in mailboxPlans)
|
||||
{
|
||||
p.IsDefault = (p.MailboxPlanId == ExchangeOrg.ExchangeMailboxPlanID);
|
||||
}
|
||||
}
|
||||
|
||||
return mailboxPlans;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
@ -548,6 +548,18 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
|||
else
|
||||
LyncController.GetLyncUserPlansByUser(0, user, ref plans);
|
||||
|
||||
|
||||
ExchangeOrganization ExchangeOrg = ObjectUtils.FillObjectFromDataReader<ExchangeOrganization>(DataProvider.GetExchangeOrganization(itemId));
|
||||
|
||||
if (ExchangeOrg != null)
|
||||
{
|
||||
foreach (LyncUserPlan p in plans)
|
||||
{
|
||||
p.IsDefault = (p.LyncUserPlanId == ExchangeOrg.LyncUserPlanID);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return plans;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue