Exchange Storage Breakdown extended with average mailbox size
This commit is contained in:
parent
49a611361b
commit
79bf776678
4 changed files with 50 additions and 2 deletions
|
@ -186,4 +186,10 @@
|
||||||
<data name="Text.PageName" xml:space="preserve">
|
<data name="Text.PageName" xml:space="preserve">
|
||||||
<value>Storage Usage</value>
|
<value>Storage Usage</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="locAverageMailboxSize.Text" xml:space="preserve">
|
||||||
|
<value>Avg. Mailbox Size (MB):</value>
|
||||||
|
</data>
|
||||||
|
<data name="locTotalMailboxes.Text" xml:space="preserve">
|
||||||
|
<value>Total Mailboxes:</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -42,6 +42,11 @@
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
<br />
|
<br />
|
||||||
<table cellpadding="2">
|
<table cellpadding="2">
|
||||||
|
<tr>
|
||||||
|
<td class="FormLabel150"><asp:Localize ID="locTotalMailboxes" runat="server" meta:resourcekey="locTotalMailboxes" Text="Total Mailboxes:"></asp:Localize></td>
|
||||||
|
<td><asp:Label ID="lblTotalMailboxes" runat="server" CssClass="NormalBold">177</asp:Label></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="FormLabel150"><asp:Localize ID="locTotalMailboxItems" runat="server" meta:resourcekey="locTotalMailboxItems" Text="Total Items:"></asp:Localize></td>
|
<td class="FormLabel150"><asp:Localize ID="locTotalMailboxItems" runat="server" meta:resourcekey="locTotalMailboxItems" Text="Total Items:"></asp:Localize></td>
|
||||||
<td><asp:Label ID="lblTotalMailboxItems" runat="server" CssClass="NormalBold">177</asp:Label></td>
|
<td><asp:Label ID="lblTotalMailboxItems" runat="server" CssClass="NormalBold">177</asp:Label></td>
|
||||||
|
@ -50,6 +55,11 @@
|
||||||
<td class="FormLabel150"><asp:Localize ID="locTotalMailboxesSize" runat="server" meta:resourcekey="locTotalMailboxesSize" Text="Total Size (MB):"></asp:Localize></td>
|
<td class="FormLabel150"><asp:Localize ID="locTotalMailboxesSize" runat="server" meta:resourcekey="locTotalMailboxesSize" Text="Total Size (MB):"></asp:Localize></td>
|
||||||
<td><asp:Label ID="lblTotalMailboxSize" runat="server" CssClass="NormalBold">100</asp:Label></td>
|
<td><asp:Label ID="lblTotalMailboxSize" runat="server" CssClass="NormalBold">100</asp:Label></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="FormLabel150"><asp:Localize ID="Localize1" runat="server" meta:resourcekey="locAverageMailboxSize" Text="Avg. Size (MB):"></asp:Localize></td>
|
||||||
|
<td><asp:Label ID="lblAverageMailboxSize" runat="server" CssClass="NormalBold">100</asp:Label></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|
|
@ -70,8 +70,13 @@ namespace WebsitePanel.Portal.ExchangeServer
|
||||||
totalMailboxesSizeMB += item.TotalSizeMB;
|
totalMailboxesSizeMB += item.TotalSizeMB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OrganizationStatistics stats = ES.Services.ExchangeServer.GetOrganizationStatisticsByOrganization(PanelRequest.ItemID);
|
||||||
|
|
||||||
lblTotalMailboxItems.Text = totalMailboxItems.ToString();
|
lblTotalMailboxItems.Text = totalMailboxItems.ToString();
|
||||||
lblTotalMailboxSize.Text = totalMailboxesSizeMB.ToString();
|
lblTotalMailboxSize.Text = totalMailboxesSizeMB.ToString();
|
||||||
|
lblTotalMailboxes.Text = stats.CreatedMailboxes.ToString();
|
||||||
|
int avgSize = totalMailboxesSizeMB / stats.CreatedMailboxes;
|
||||||
|
lblAverageMailboxSize.Text = avgSize.ToString("N2");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -84,6 +84,24 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.GridView gvMailboxes;
|
protected global::System.Web.UI.WebControls.GridView gvMailboxes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// locTotalMailboxes 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.Localize locTotalMailboxes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTotalMailboxes 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 lblTotalMailboxes;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// locTotalMailboxItems control.
|
/// locTotalMailboxItems control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -121,12 +139,21 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
||||||
protected global::System.Web.UI.WebControls.Label lblTotalMailboxSize;
|
protected global::System.Web.UI.WebControls.Label lblTotalMailboxSize;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// FormComments control.
|
/// Localize1 control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Auto-generated field.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Localize FormComments;
|
protected global::System.Web.UI.WebControls.Localize Localize1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblAverageMailboxSize 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 lblAverageMailboxSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue