This commit is contained in:
feodor_fitsner 2012-03-08 09:29:04 -08:00
commit b6b026fba2
24 changed files with 242 additions and 69 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

View file

@ -35,6 +35,13 @@
</div> </div>
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch"> <asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch">
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem Selected="True">20</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
<asp:ListItem>100</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox"> <asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem> <asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem>
<asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem> <asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem>
@ -46,8 +53,9 @@
</div> </div>
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" EnableViewState="true" <asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" EnableViewState="true"
Width="100%" CssSelectorClass="NormalGridView" DataSourceID="odsAccountsPaged" meta:resourcekey="gvUsers" Width="100%" CssSelectorClass="NormalGridView"
AllowPaging="true" AllowSorting="true"> DataSourceID="odsAccountsPaged" meta:resourcekey="gvUsers"
AllowPaging="true" AllowSorting="true" PageSize="20">
<Columns> <Columns>
<asp:TemplateField HeaderText="gvUsersDisplayName" SortExpression="DisplayName"> <asp:TemplateField HeaderText="gvUsersDisplayName" SortExpression="DisplayName">
<ItemStyle Width="50%"></ItemStyle> <ItemStyle Width="50%"></ItemStyle>

View file

@ -62,5 +62,14 @@ namespace WebsitePanel.Portal.BlackBerry
"ItemID=" + PanelRequest.ItemID); "ItemID=" + PanelRequest.ItemID);
} }
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
gvUsers.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);
// rebind grid
gvUsers.DataBind();
}
} }
} }

View file

@ -1,10 +1,9 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.1433
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -85,6 +84,15 @@ namespace WebsitePanel.Portal.BlackBerry {
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Panel SearchPanel; protected global::System.Web.UI.WebControls.Panel SearchPanel;
/// <summary>
/// ddlPageSize 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.DropDownList ddlPageSize;
/// <summary> /// <summary>
/// ddlSearchColumn control. /// ddlSearchColumn control.
/// </summary> /// </summary>

View file

@ -33,6 +33,13 @@
</div> </div>
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch"> <asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch">
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem Selected="True">20</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
<asp:ListItem>100</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox"> <asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem> <asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem>
<asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem> <asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem>
@ -44,7 +51,7 @@
<asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" EnableViewState="true" <asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" EnableViewState="true"
Width="100%" EmptyDataText="gvUsers" meta:resourcekey="gvUsers" CssSelectorClass="NormalGridView" Width="100%" EmptyDataText="gvUsers" meta:resourcekey="gvUsers" CssSelectorClass="NormalGridView"
AllowPaging="True" AllowSorting="True" DataSourceID="odsAccountsPaged"> AllowPaging="True" AllowSorting="True" DataSourceID="odsAccountsPaged" PageSize="20">
<Columns> <Columns>
<asp:TemplateField HeaderText="gvUsersDisplayName" SortExpression="DisplayName"> <asp:TemplateField HeaderText="gvUsersDisplayName" SortExpression="DisplayName">
<ItemStyle Width="50%"></ItemStyle> <ItemStyle Width="50%"></ItemStyle>

View file

@ -79,5 +79,14 @@ namespace WebsitePanel.Portal.CRM
} }
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
gvUsers.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);
// rebind grid
gvUsers.DataBind();
}
} }
} }

View file

@ -1,10 +1,9 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.1433
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -85,6 +84,15 @@ namespace WebsitePanel.Portal.CRM {
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Panel SearchPanel; protected global::System.Web.UI.WebControls.Panel SearchPanel;
/// <summary>
/// ddlPageSize 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.DropDownList ddlPageSize;
/// <summary> /// <summary>
/// ddlSearchColumn control. /// ddlSearchColumn control.
/// </summary> /// </summary>

View file

@ -79,8 +79,7 @@ namespace WebsitePanel.Portal
public static int ParseInt(object val, int defaultValue) public static int ParseInt(object val, int defaultValue)
{ {
int result = defaultValue; int result = defaultValue;
// Perf: allow only non-empty values to go through if (val != null && !String.IsNullOrEmpty(val.ToString()))
if (val != null && val != String.Empty)
{ {
try try
{ {

View file

@ -32,6 +32,13 @@
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch"> <asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch">
<asp:Localize ID="locSearch" runat="server" meta:resourcekey="locSearch" Visible="false"></asp:Localize> <asp:Localize ID="locSearch" runat="server" meta:resourcekey="locSearch" Visible="false"></asp:Localize>
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem Selected="True">20</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
<asp:ListItem>100</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox"> <asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem> <asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem>
<asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem> <asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem>
@ -44,7 +51,7 @@
<asp:GridView ID="gvContacts" runat="server" AutoGenerateColumns="False" EnableViewState="true" <asp:GridView ID="gvContacts" runat="server" AutoGenerateColumns="False" EnableViewState="true"
Width="100%" EmptyDataText="gvContacts" CssSelectorClass="NormalGridView" Width="100%" EmptyDataText="gvContacts" CssSelectorClass="NormalGridView"
OnRowCommand="gvContacts_RowCommand" AllowPaging="True" AllowSorting="True" OnRowCommand="gvContacts_RowCommand" AllowPaging="True" AllowSorting="True"
DataSourceID="odsAccountsPaged"> DataSourceID="odsAccountsPaged" PageSize="20">
<Columns> <Columns>
<asp:TemplateField HeaderText="gvContactsDisplayName" SortExpression="DisplayName"> <asp:TemplateField HeaderText="gvContactsDisplayName" SortExpression="DisplayName">
<ItemStyle Width="50%"></ItemStyle> <ItemStyle Width="50%"></ItemStyle>

View file

@ -109,5 +109,17 @@ namespace WebsitePanel.Portal.ExchangeServer
} }
} }
} }
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
gvContacts.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);
// rebind grid
gvContacts.DataBind();
// bind stats
BindStats();
}
} }
} }

View file

@ -1,22 +1,15 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.312
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace WebsitePanel.Portal.ExchangeServer { namespace WebsitePanel.Portal.ExchangeServer {
/// <summary>
/// ExchangeContacts class.
/// </summary>
/// <remarks>
/// Auto-generated class.
/// </remarks>
public partial class ExchangeContacts { public partial class ExchangeContacts {
/// <summary> /// <summary>
@ -100,6 +93,15 @@ namespace WebsitePanel.Portal.ExchangeServer {
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Localize locSearch; protected global::System.Web.UI.WebControls.Localize locSearch;
/// <summary>
/// ddlPageSize 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.DropDownList ddlPageSize;
/// <summary> /// <summary>
/// ddlSearchColumn control. /// ddlSearchColumn control.
/// </summary> /// </summary>

View file

@ -32,6 +32,13 @@
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch"> <asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch">
<asp:Localize ID="locSearch" runat="server" meta:resourcekey="locSearch" Visible="false"></asp:Localize> <asp:Localize ID="locSearch" runat="server" meta:resourcekey="locSearch" Visible="false"></asp:Localize>
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem Selected="True">20</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
<asp:ListItem>100</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox"> <asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem> <asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem>
<asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem> <asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem>
@ -44,7 +51,7 @@
<asp:GridView ID="gvLists" runat="server" AutoGenerateColumns="False" EnableViewState="true" <asp:GridView ID="gvLists" runat="server" AutoGenerateColumns="False" EnableViewState="true"
Width="100%" EmptyDataText="gvLists" CssSelectorClass="NormalGridView" Width="100%" EmptyDataText="gvLists" CssSelectorClass="NormalGridView"
OnRowCommand="gvLists_RowCommand" AllowPaging="True" AllowSorting="True" OnRowCommand="gvLists_RowCommand" AllowPaging="True" AllowSorting="True"
DataSourceID="odsAccountsPaged"> DataSourceID="odsAccountsPaged" PageSize="20">
<Columns> <Columns>
<asp:TemplateField HeaderText="gvListsDisplayName" SortExpression="DisplayName"> <asp:TemplateField HeaderText="gvListsDisplayName" SortExpression="DisplayName">
<ItemStyle Width="50%"></ItemStyle> <ItemStyle Width="50%"></ItemStyle>

View file

@ -109,5 +109,17 @@ namespace WebsitePanel.Portal.ExchangeServer
} }
} }
} }
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
gvLists.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);
// rebind grid
gvLists.DataBind();
// bind stats
BindStats();
}
} }
} }

View file

@ -1,22 +1,15 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.312
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace WebsitePanel.Portal.ExchangeServer { namespace WebsitePanel.Portal.ExchangeServer {
/// <summary>
/// ExchangeDistributionLists class.
/// </summary>
/// <remarks>
/// Auto-generated class.
/// </remarks>
public partial class ExchangeDistributionLists { public partial class ExchangeDistributionLists {
/// <summary> /// <summary>
@ -100,6 +93,15 @@ namespace WebsitePanel.Portal.ExchangeServer {
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Localize locSearch; protected global::System.Web.UI.WebControls.Localize locSearch;
/// <summary>
/// ddlPageSize 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.DropDownList ddlPageSize;
/// <summary> /// <summary>
/// ddlSearchColumn control. /// ddlSearchColumn control.
/// </summary> /// </summary>

View file

@ -31,12 +31,22 @@
</div> </div>
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch"> <asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch">
<asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox"> <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
<asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem> onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem> <asp:ListItem>10</asp:ListItem>
<asp:ListItem Value="AccountName" meta:resourcekey="ddlSearchColumnAccountName">AccountName</asp:ListItem> <asp:ListItem Selected="True">20</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
</asp:DropDownList><asp:TextBox ID="txtSearchValue" runat="server" CssClass="NormalTextBox" Width="100"></asp:TextBox><asp:ImageButton ID="cmdSearch" Runat="server" meta:resourcekey="cmdSearch" SkinID="SearchButton" <asp:ListItem>100</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox">
<asp:ListItem meta:resourcekey="ddlSearchColumnDisplayName" Value="DisplayName">DisplayName</asp:ListItem>
<asp:ListItem meta:resourcekey="ddlSearchColumnEmail"
Value="PrimaryEmailAddress">Email</asp:ListItem>
<asp:ListItem meta:resourcekey="ddlSearchColumnAccountName" Value="AccountName">AccountName</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="txtSearchValue" runat="server" CssClass="NormalTextBox" Width="100"></asp:TextBox><asp:ImageButton ID="cmdSearch" Runat="server" meta:resourcekey="cmdSearch" SkinID="SearchButton"
CausesValidation="false"/> CausesValidation="false"/>
</asp:Panel> </asp:Panel>
</div> </div>
@ -45,7 +55,7 @@
<asp:GridView ID="gvMailboxes" runat="server" AutoGenerateColumns="False" EnableViewState="true" <asp:GridView ID="gvMailboxes" runat="server" AutoGenerateColumns="False" EnableViewState="true"
Width="100%" EmptyDataText="gvMailboxes" CssSelectorClass="NormalGridView" Width="100%" EmptyDataText="gvMailboxes" CssSelectorClass="NormalGridView"
OnRowCommand="gvMailboxes_RowCommand" AllowPaging="True" AllowSorting="True" OnRowCommand="gvMailboxes_RowCommand" AllowPaging="True" AllowSorting="True"
DataSourceID="odsAccountsPaged"> DataSourceID="odsAccountsPaged" PageSize="20">
<Columns> <Columns>
<asp:TemplateField HeaderText="gvMailboxesDisplayName" SortExpression="DisplayName"> <asp:TemplateField HeaderText="gvMailboxesDisplayName" SortExpression="DisplayName">
<ItemStyle Width="50%"></ItemStyle> <ItemStyle Width="50%"></ItemStyle>

View file

@ -76,7 +76,7 @@ namespace WebsitePanel.Portal.ExchangeServer
public string GetAccountImage(int accountTypeId) public string GetAccountImage(int accountTypeId)
{ {
ExchangeAccountType accountType = (ExchangeAccountType)accountTypeId; ExchangeAccountType accountType = (ExchangeAccountType)accountTypeId;
string imgName = "mailbox_16.gif"; string imgName = "accounting_mail_16.png";
if (accountType == ExchangeAccountType.Contact) if (accountType == ExchangeAccountType.Contact)
imgName = "contact_16.gif"; imgName = "contact_16.gif";
else if (accountType == ExchangeAccountType.DistributionList) else if (accountType == ExchangeAccountType.DistributionList)
@ -85,7 +85,6 @@ namespace WebsitePanel.Portal.ExchangeServer
imgName = "room_16.gif"; imgName = "room_16.gif";
else if (accountType == ExchangeAccountType.Equipment) else if (accountType == ExchangeAccountType.Equipment)
imgName = "equipment_16.gif"; imgName = "equipment_16.gif";
return GetThemedImage("Exchange/" + imgName); return GetThemedImage("Exchange/" + imgName);
} }
@ -117,5 +116,17 @@ namespace WebsitePanel.Portal.ExchangeServer
} }
} }
} }
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
gvMailboxes.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);
// rebind grid
gvMailboxes.DataBind();
// bind stats
BindStats();
}
} }
} }

View file

@ -1,10 +1,9 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.3053
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -85,6 +84,15 @@ namespace WebsitePanel.Portal.ExchangeServer {
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Panel SearchPanel; protected global::System.Web.UI.WebControls.Panel SearchPanel;
/// <summary>
/// ddlPageSize 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.DropDownList ddlPageSize;
/// <summary> /// <summary>
/// ddlSearchColumn control. /// ddlSearchColumn control.
/// </summary> /// </summary>

View file

@ -34,6 +34,13 @@
</div> </div>
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch"> <asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch">
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem Selected="True">20</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
<asp:ListItem>100</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox"> <asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem> <asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem>
<asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem> <asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem>
@ -47,7 +54,7 @@
<asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" EnableViewState="true" <asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" EnableViewState="true"
Width="100%" EmptyDataText="gvUsers" CssSelectorClass="NormalGridView" Width="100%" EmptyDataText="gvUsers" CssSelectorClass="NormalGridView"
OnRowCommand="gvUsers_RowCommand" AllowPaging="True" AllowSorting="True" OnRowCommand="gvUsers_RowCommand" AllowPaging="True" AllowSorting="True"
DataSourceID="odsAccountsPaged"> DataSourceID="odsAccountsPaged" PageSize="20">
<Columns> <Columns>
<asp:TemplateField HeaderText="gvUsersDisplayName" SortExpression="DisplayName"> <asp:TemplateField HeaderText="gvUsersDisplayName" SortExpression="DisplayName">
<ItemStyle Width="50%"></ItemStyle> <ItemStyle Width="50%"></ItemStyle>

View file

@ -49,6 +49,7 @@ namespace WebsitePanel.Portal.HostedSolution
ES.Services.Organizations.GetOrganizationStatistics(PanelRequest.ItemID); ES.Services.Organizations.GetOrganizationStatistics(PanelRequest.ItemID);
usersQuota.QuotaUsedValue = stats.CreatedUsers; usersQuota.QuotaUsedValue = stats.CreatedUsers;
usersQuota.QuotaValue = stats.AllocatedUsers; usersQuota.QuotaValue = stats.AllocatedUsers;
} }
protected void btnCreateUser_Click(object sender, EventArgs e) protected void btnCreateUser_Click(object sender, EventArgs e)
@ -102,15 +103,26 @@ namespace WebsitePanel.Portal.HostedSolution
} }
} }
public string GetAccountImage(int accountTypeId) public string GetAccountImage(int accountTypeId)
{ {
ExchangeAccountType accountType = (ExchangeAccountType)accountTypeId; ExchangeAccountType accountType = (ExchangeAccountType)accountTypeId;
string imgName = "accounting_mail_16.png"; string imgName = "accounting_mail_16.png";
if (accountType == ExchangeAccountType.User) if (accountType == ExchangeAccountType.User)
imgName = "admin_16.png"; imgName = "admin_16.png";
return GetThemedImage("Exchange/" + imgName); return GetThemedImage("Exchange/" + imgName);
} }
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
gvUsers.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);
// rebind grid
gvUsers.DataBind();
// bind stats
BindStats();
}
} }
} }

View file

@ -1,10 +1,9 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.3053
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -85,6 +84,15 @@ namespace WebsitePanel.Portal.HostedSolution {
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Panel SearchPanel; protected global::System.Web.UI.WebControls.Panel SearchPanel;
/// <summary>
/// ddlPageSize 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.DropDownList ddlPageSize;
/// <summary> /// <summary>
/// ddlSearchColumn control. /// ddlSearchColumn control.
/// </summary> /// </summary>

View file

@ -33,6 +33,13 @@
</div> </div>
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch"> <asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch">
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem Selected="True">20</asp:ListItem>
<asp:ListItem>50</asp:ListItem>
<asp:ListItem>100</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox"> <asp:DropDownList ID="ddlSearchColumn" runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem> <asp:ListItem Value="DisplayName" meta:resourcekey="ddlSearchColumnDisplayName">DisplayName</asp:ListItem>
<asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem> <asp:ListItem Value="PrimaryEmailAddress" meta:resourcekey="ddlSearchColumnEmail">Email</asp:ListItem>
@ -46,7 +53,8 @@
<div class="FormButtonsBarCleanRight"> <div class="FormButtonsBarCleanRight">
<asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" EnableViewState="true" <asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" EnableViewState="true"
Width="100%" CssSelectorClass="NormalGridView" DataSourceID="odsAccountsPaged" Width="100%" CssSelectorClass="NormalGridView" DataSourceID="odsAccountsPaged"
meta:resourcekey="gvUsers" AllowPaging="true" AllowSorting="true" OnRowCommand="gvUsers_RowCommand"> meta:resourcekey="gvUsers" AllowPaging="true" AllowSorting="true"
OnRowCommand="gvUsers_RowCommand" PageSize="20">
<Columns> <Columns>
<asp:TemplateField HeaderText="gvUsersDisplayName" meta:resourcekey="gvUsersDisplayName" <asp:TemplateField HeaderText="gvUsersDisplayName" meta:resourcekey="gvUsersDisplayName"
SortExpression="DisplayName"> SortExpression="DisplayName">

View file

@ -97,5 +97,17 @@ namespace WebsitePanel.Portal.OCS
} }
} }
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
gvUsers.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);
// rebind grid
gvUsers.DataBind();
// bind stats
BindStats();
}
} }
} }

View file

@ -1,10 +1,9 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.3053
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -85,6 +84,15 @@ namespace WebsitePanel.Portal.OCS {
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Panel SearchPanel; protected global::System.Web.UI.WebControls.Panel SearchPanel;
/// <summary>
/// ddlPageSize 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.DropDownList ddlPageSize;
/// <summary> /// <summary>
/// ddlSearchColumn control. /// ddlSearchColumn control.
/// </summary> /// </summary>

View file

@ -101,6 +101,7 @@
<Content Include="App_Themes\Default\Icons\block.png" /> <Content Include="App_Themes\Default\Icons\block.png" />
<Content Include="App_Themes\Default\Icons\configureVLan.png" /> <Content Include="App_Themes\Default\Icons\configureVLan.png" />
<Content Include="App_Themes\Default\Icons\OK.png" /> <Content Include="App_Themes\Default\Icons\OK.png" />
<Content Include="App_Themes\Default\Images\Exchange\disabled_16.png" />
<Content Include="App_Themes\Default\Images\FileManager\vbhtml.png" /> <Content Include="App_Themes\Default\Images\FileManager\vbhtml.png" />
<Content Include="App_Themes\Default\Images\VPSForPC\vlan_icon.png" /> <Content Include="App_Themes\Default\Images\VPSForPC\vlan_icon.png" />
<Content Include="App_Themes\Default\Images\VPSForPC\private_cloud_module_header_vps.gif" /> <Content Include="App_Themes\Default\Images\VPSForPC\private_cloud_module_header_vps.gif" />
@ -675,9 +676,7 @@
<Content Include="App_Themes\Default\Images\warning_icon_small.gif" /> <Content Include="App_Themes\Default\Images\warning_icon_small.gif" />
<EmbeddedResource Include="Code\Adapters\empty.gif" /> <EmbeddedResource Include="Code\Adapters\empty.gif" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup />
<Folder Include="DesktopModules\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
@ -705,28 +704,28 @@
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<PropertyGroup> <PropertyGroup>
<IncludeSetAclProviderOnDestination>False</IncludeSetAclProviderOnDestination> <IncludeSetAclProviderOnDestination>False</IncludeSetAclProviderOnDestination>
<ExcludeFilesFromPackage>True</ExcludeFilesFromPackage> <ExcludeFilesFromPackage>True</ExcludeFilesFromPackage>
<CopyAllFilesToSingleFolderForPackageDependsOn> <CopyAllFilesToSingleFolderForPackageDependsOn>
PreDeployWebsitePanelProjectBinaries; PreDeployWebsitePanelProjectBinaries;
$(CopyAllFilesToSingleFolderForPackageDependsOn); $(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn> </CopyAllFilesToSingleFolderForPackageDependsOn>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ExcludeFromPackageFiles Include="**\SiteSettings.config"> <ExcludeFromPackageFiles Include="**\SiteSettings.config">
<FromTarget>Project</FromTarget> <FromTarget>Project</FromTarget>
</ExcludeFromPackageFiles> </ExcludeFromPackageFiles>
<ExcludeFromPackageFiles Include="**\Web.config"> <ExcludeFromPackageFiles Include="**\Web.config">
<FromTarget>Project</FromTarget> <FromTarget>Project</FromTarget>
</ExcludeFromPackageFiles> </ExcludeFromPackageFiles>
</ItemGroup> </ItemGroup>
<Target Name="PreDeployWebsitePanelProjectBinaries"> <Target Name="PreDeployWebsitePanelProjectBinaries">
<ItemGroup> <ItemGroup>
<_CustomFiles Include="$(TargetDir)\WebsitePanel.*" /> <_CustomFiles Include="$(TargetDir)\WebsitePanel.*" />
<FilesForPackagingFromProject Include="@(_CustomFiles)"> <FilesForPackagingFromProject Include="@(_CustomFiles)">
<DestinationRelativePath>bin\%(Filename)%(Extension)</DestinationRelativePath> <DestinationRelativePath>bin\%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject> </FilesForPackagingFromProject>
</ItemGroup> </ItemGroup>
</Target> </Target>
</Project> </Project>