Fixed: SpaceQuotaOverview, unallocated quotas where shown, OCS and exchange
missing Fixed UserCustomers initial sort order on username
This commit is contained in:
parent
7483dd857f
commit
1e6a707edb
7 changed files with 88 additions and 2 deletions
|
@ -26213,6 +26213,12 @@ AS
|
||||||
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
||||||
INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID
|
INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID
|
||||||
WHERE pt.ParentPackageID = @PackageID)
|
WHERE pt.ParentPackageID = @PackageID)
|
||||||
|
ELSE IF @QuotaID = 320 -- OCS Users
|
||||||
|
SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts ea
|
||||||
|
INNER JOIN OCSUsers ocs ON ea.AccountID = ocs.AccountID
|
||||||
|
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
||||||
|
INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID
|
||||||
|
WHERE pt.ParentPackageID = @PackageID)
|
||||||
ELSE IF @QuotaID = 206 -- HostedSolution.Users
|
ELSE IF @QuotaID = 206 -- HostedSolution.Users
|
||||||
SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea
|
SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea
|
||||||
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
||||||
|
|
|
@ -1765,6 +1765,12 @@ AS
|
||||||
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
||||||
INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID
|
INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID
|
||||||
WHERE pt.ParentPackageID = @PackageID)
|
WHERE pt.ParentPackageID = @PackageID)
|
||||||
|
ELSE IF @QuotaID = 320 -- OCS Users
|
||||||
|
SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts ea
|
||||||
|
INNER JOIN OCSUsers ocs ON ea.AccountID = ocs.AccountID
|
||||||
|
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
||||||
|
INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID
|
||||||
|
WHERE pt.ParentPackageID = @PackageID)
|
||||||
ELSE IF @QuotaID = 206 -- HostedSolution.Users
|
ELSE IF @QuotaID = 206 -- HostedSolution.Users
|
||||||
SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea
|
SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea
|
||||||
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID
|
||||||
|
|
|
@ -189,4 +189,10 @@
|
||||||
<data name="lblLyncUsers.Text" xml:space="preserve">
|
<data name="lblLyncUsers.Text" xml:space="preserve">
|
||||||
<value>Lync Users:</value>
|
<value>Lync Users:</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="lblExchangeAccounts.Text" xml:space="preserve">
|
||||||
|
<value>Exchange Mailboxes:</value>
|
||||||
|
</data>
|
||||||
|
<data name="lblExchangeStorage.Text" xml:space="preserve">
|
||||||
|
<value>Exchange Storage, MB:</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -30,6 +30,14 @@
|
||||||
<td class="SubHead" nowrap><asp:Label ID="lblUserAccounts" runat="server" meta:resourcekey="lblUserAccounts" Text="User Accounts:"></asp:Label></td>
|
<td class="SubHead" nowrap><asp:Label ID="lblUserAccounts" runat="server" meta:resourcekey="lblUserAccounts" Text="User Accounts:"></asp:Label></td>
|
||||||
<td class="Normal"><wsp:Quota ID="quotaUserAccounts" runat="server" QuotaName="HostedSolution.Users" DisplayGauge="True" /></td>
|
<td class="Normal"><wsp:Quota ID="quotaUserAccounts" runat="server" QuotaName="HostedSolution.Users" DisplayGauge="True" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr ID="pnlExchangeAccounts" runat="server">
|
||||||
|
<td class="SubHead" nowrap><asp:Label ID="lblExchangeAccounts" runat="server" meta:resourcekey="lblExchangeAccounts" Text="Exchange Accounts:"></asp:Label></td>
|
||||||
|
<td class="Normal"><wsp:Quota ID="quotaExchangeAccounts" runat="server" QuotaName="Exchange2007.Mailboxes" DisplayGauge="True" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr ID="pnlExchangeStorage" runat="server">
|
||||||
|
<td class="SubHead" nowrap><asp:Label ID="lblExchangeStorage" runat="server" meta:resourcekey="lblExchangeStorage" Text="Exchange Storage:"></asp:Label></td>
|
||||||
|
<td class="Normal"><wsp:Quota ID="quotaExchangeStorage" runat="server" QuotaName="Exchange2007.DiskSpace" DisplayGauge="True" /></td>
|
||||||
|
</tr>
|
||||||
<tr ID="pnlMailAccounts" runat="server">
|
<tr ID="pnlMailAccounts" runat="server">
|
||||||
<td class="SubHead" nowrap><asp:Label ID="lblMailAccounts" runat="server" meta:resourcekey="lblMailAccounts" Text="Mail Accounts:"></asp:Label></td>
|
<td class="SubHead" nowrap><asp:Label ID="lblMailAccounts" runat="server" meta:resourcekey="lblMailAccounts" Text="Mail Accounts:"></asp:Label></td>
|
||||||
<td class="Normal"><wsp:Quota ID="quotaMailAccounts" runat="server" QuotaName="Mail.Accounts" DisplayGauge="True" /></td>
|
<td class="Normal"><wsp:Quota ID="quotaMailAccounts" runat="server" QuotaName="Mail.Accounts" DisplayGauge="True" /></td>
|
||||||
|
|
|
@ -59,14 +59,17 @@ namespace WebsitePanel.Portal
|
||||||
{ "quotaSubDomains", "pnlSubDomains" },
|
{ "quotaSubDomains", "pnlSubDomains" },
|
||||||
{ "quotaDomainPointers", "pnlDomainPointers" },
|
{ "quotaDomainPointers", "pnlDomainPointers" },
|
||||||
{ "quotaUserAccounts", "pnlUserAccounts" },
|
{ "quotaUserAccounts", "pnlUserAccounts" },
|
||||||
{ "quotaMailAccounts", "pnlMailboxes" },
|
{ "quotaMailAccounts", "pnlMailAccounts" },
|
||||||
|
{ "quotaExchangeAccounts", "pnlExchangeAccounts" },
|
||||||
{ "quotaOCSUsers", "pnlOCSUsers" },
|
{ "quotaOCSUsers", "pnlOCSUsers" },
|
||||||
{ "quotaLyncUsers", "pnlLyncUsers" },
|
{ "quotaLyncUsers", "pnlLyncUsers" },
|
||||||
{ "quotaBlackBerryUsers", "pnlBlackBerryUsers" },
|
{ "quotaBlackBerryUsers", "pnlBlackBerryUsers" },
|
||||||
{ "quotaSharepointSites", "pnlSharepointSites" },
|
{ "quotaSharepointSites", "pnlSharepointSites" },
|
||||||
{ "quotaWebSites", "pnlWebSites" },
|
{ "quotaWebSites", "pnlWebSites" },
|
||||||
{ "quotaDatabases", "pnlDatabases" },
|
{ "quotaDatabases", "pnlDatabases" },
|
||||||
{ "quotaNumberOfVm", "pnlHyperVForPC" }
|
{ "quotaNumberOfVm", "pnlHyperVForPC" },
|
||||||
|
{ "quotaFtpAccounts", "pnlFtpAccounts" },
|
||||||
|
{ "quotaExchangeStorage", "pnlExchangeStorage" }
|
||||||
};
|
};
|
||||||
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
|
|
@ -174,6 +174,60 @@ namespace WebsitePanel.Portal {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::WebsitePanel.Portal.Quota quotaUserAccounts;
|
protected global::WebsitePanel.Portal.Quota quotaUserAccounts;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// pnlExchangeAccounts control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlExchangeAccounts;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblExchangeAccounts control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblExchangeAccounts;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// quotaExchangeAccounts control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::WebsitePanel.Portal.Quota quotaExchangeAccounts;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// pnlExchangeStorage control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlExchangeStorage;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblExchangeStorage control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblExchangeStorage;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// quotaExchangeStorage control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::WebsitePanel.Portal.Quota quotaExchangeStorage;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// pnlMailAccounts control.
|
/// pnlMailAccounts control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -64,6 +64,9 @@ namespace WebsitePanel.Portal
|
||||||
Utils.SelectListItem(ddlStatus, Request["StatusID"]);
|
Utils.SelectListItem(ddlStatus, Request["StatusID"]);
|
||||||
if (Request["RoleID"] != null)
|
if (Request["RoleID"] != null)
|
||||||
Utils.SelectListItem(ddlRole, Request["RoleID"]);
|
Utils.SelectListItem(ddlRole, Request["RoleID"]);
|
||||||
|
|
||||||
|
|
||||||
|
gvUsers.Sort("Username", System.Web.UI.WebControls.SortDirection.Ascending);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue