Lync Module fixes
This commit is contained in:
parent
f500906c68
commit
323e085b15
8 changed files with 229 additions and 73 deletions
|
@ -31,6 +31,8 @@ using System.Collections.Generic;
|
|||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using WebsitePanel.EnterpriseServer;
|
||||
using WebsitePanel.Providers.Common;
|
||||
|
||||
namespace WebsitePanel.Portal.Lync
|
||||
{
|
||||
|
@ -38,6 +40,15 @@ namespace WebsitePanel.Portal.Lync
|
|||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Page_PreRender(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
phoneQuota.Viewer.QuotaUsedValue = ES.Services.Servers.GetPackageIPAddressesCount(PanelSecurity.PackageId, PanelRequest.ItemID, IPAddressPool.PhoneNumbers);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -95,7 +95,9 @@ namespace WebsitePanel.Portal.UserControls
|
|||
if (cntx.Quotas.ContainsKey(quotaName))
|
||||
{
|
||||
int quotaAllocated = cntx.Quotas[quotaName].QuotaAllocatedValue;
|
||||
int quotaUsed = cntx.Quotas[quotaName].QuotaUsedValue;
|
||||
//int quotaUsed = cntx.Quotas[quotaName].QuotaUsedValue;
|
||||
|
||||
int quotaUsed = ES.Services.Servers.GetPackageIPAddressesCount(PanelSecurity.PackageId, PanelRequest.ItemID, IPAddressPool.PhoneNumbers);
|
||||
|
||||
if (quotaAllocated != -1)
|
||||
quotaAllowed = quotaAllocated - quotaUsed;
|
||||
|
|
|
@ -55,6 +55,11 @@ namespace WebsitePanel.Portal
|
|||
set { quotaViewer.DisplayGauge = value; }
|
||||
}
|
||||
|
||||
public QuotaViewer Viewer
|
||||
{
|
||||
get { return quotaViewer; }
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue