added check "Lync Enterprise Voice" Quotas in dialog "Lync User Plan"

This commit is contained in:
dev_amdtel 2013-06-13 19:26:40 +04:00
parent c41abafe5d
commit 0bc9187cf4

View file

@ -30,6 +30,11 @@ using System;
using WebsitePanel.EnterpriseServer; using WebsitePanel.EnterpriseServer;
using WebsitePanel.Providers.HostedSolution; using WebsitePanel.Providers.HostedSolution;
using WebsitePanel.Providers.ResultObjects; using WebsitePanel.Providers.ResultObjects;
using WebsitePanel.Providers;
using WebsitePanel.Providers.Web;
using WebsitePanel.Providers.Common;
using WebsitePanel.Portal.Code.Helpers;
namespace WebsitePanel.Portal.Lync namespace WebsitePanel.Portal.Lync
{ {
@ -37,10 +42,11 @@ namespace WebsitePanel.Portal.Lync
{ {
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
PackageContext cntx = null;
if (!IsPostBack) if (!IsPostBack)
{ {
PackageContext cntx = ES.Services.Packages.GetPackageContext(PanelSecurity.PackageId); cntx = ES.Services.Packages.GetPackageContext(PanelSecurity.PackageId);
string[] archivePolicy = ES.Services.Lync.GetPolicyList(PanelRequest.ItemID, LyncPolicyType.Archiving, null); string[] archivePolicy = ES.Services.Lync.GetPolicyList(PanelRequest.ItemID, LyncPolicyType.Archiving, null);
if (archivePolicy != null) if (archivePolicy != null)
@ -169,6 +175,10 @@ namespace WebsitePanel.Portal.Lync
} }
cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
PlanFeaturesTelephony.Visible = Utils.CheckQouta(Quotas.LYNC_ENTERPRISEVOICE, cntx);
secPlanFeaturesTelephony.Visible = PlanFeaturesTelephony.Visible;
} }
protected void btnAdd_Click(object sender, EventArgs e) protected void btnAdd_Click(object sender, EventArgs e)