fixed
This commit is contained in:
parent
cdf761d3ec
commit
cb45022c59
5 changed files with 25 additions and 2 deletions
|
@ -2581,8 +2581,11 @@ namespace WebsitePanel.EnterpriseServer
|
|||
OrganizationSecurityGroup tmpSecurityGroup = GetSecurityGroupGeneralSettings(itemId, account.AccountId);
|
||||
|
||||
if (tmpSecurityGroup != null)
|
||||
{
|
||||
account.Notes = tmpSecurityGroup.Notes;
|
||||
accounts.Add(account);
|
||||
}
|
||||
}
|
||||
|
||||
result.PageItems = accounts.ToArray();
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
string mailboxPlan;
|
||||
string publicFolderPermission;
|
||||
string userPrincipalName;
|
||||
string notes;
|
||||
|
||||
public int AccountId
|
||||
{
|
||||
|
@ -149,5 +150,10 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
set { this.userPrincipalName = value; }
|
||||
}
|
||||
|
||||
public string Notes
|
||||
{
|
||||
get { return this.notes; }
|
||||
set { this.notes = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -150,4 +150,7 @@
|
|||
<data name="Text.PageName" xml:space="preserve">
|
||||
<value>Groups</value>
|
||||
</data>
|
||||
<data name="gvGroupsNotes.Header" xml:space="preserve">
|
||||
<value>Notes</value>
|
||||
</data>
|
||||
</root>
|
|
@ -49,11 +49,11 @@
|
|||
|
||||
<asp:GridView ID="gvGroups" runat="server" AutoGenerateColumns="False" EnableViewState="true"
|
||||
Width="100%" EmptyDataText="gvGroups" CssSelectorClass="NormalGridView"
|
||||
OnRowCommand="gvSecurityGroups_RowCommand" AllowPaging="True" AllowSorting="True"
|
||||
OnRowCommand="gvSecurityGroups_RowCommand" OnRowDataBound="gvSecurityGroups_RowDataBound" AllowPaging="True" AllowSorting="True"
|
||||
DataSourceID="odsSecurityGroupsPaged" PageSize="20">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="gvGroupsDisplayName" SortExpression="DisplayName">
|
||||
<ItemStyle Width="100%"></ItemStyle>
|
||||
<ItemStyle Width="35%"></ItemStyle>
|
||||
<ItemTemplate>
|
||||
<asp:hyperlink id="lnk1" runat="server"
|
||||
NavigateUrl='<%# GetListEditUrl(Eval("AccountId").ToString()) %>'>
|
||||
|
@ -61,6 +61,7 @@
|
|||
</asp:hyperlink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField HeaderText="gvGroupsNotes" DataField="Notes" ItemStyle-Width="65%" />
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="cmdDelete" runat="server" Text="Delete" SkinID="ExchangeDelete"
|
||||
|
|
|
@ -44,6 +44,8 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
{
|
||||
public partial class OrganizationSecurityGroups : WebsitePanelModuleBase
|
||||
{
|
||||
protected const int _NotesMaxLength = 100;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
@ -102,6 +104,14 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
}
|
||||
}
|
||||
|
||||
protected void gvSecurityGroups_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow && e.Row.Cells[1].Text.Length > _NotesMaxLength)
|
||||
{
|
||||
e.Row.Cells[1].Text = e.Row.Cells[1].Text.Substring(0, _NotesMaxLength - 3) + "...";
|
||||
}
|
||||
}
|
||||
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
gvGroups.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue