Exchange Shared and Resource mailboxes
This commit is contained in:
parent
fd023a347d
commit
ac3d594fbd
15 changed files with 239 additions and 6 deletions
|
@ -6082,3 +6082,72 @@ set PropertyValue='%PROGRAMFILES(x86)%\PHP\php.exe'
|
||||||
where PropertyName='Php4Path' and ProviderId in(101, 105)
|
where PropertyName='Php4Path' and ProviderId in(101, 105)
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
-- Exchange2013 Shared and resource mailboxes
|
||||||
|
|
||||||
|
-- Exchange2013 Shared and resource mailboxes Quotas
|
||||||
|
|
||||||
|
IF NOT EXISTS (SELECT * FROM [dbo].[Quotas] WHERE [QuotaName] = 'Exchange2013.SharedMailboxes')
|
||||||
|
BEGIN
|
||||||
|
INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID], [HideQuota])
|
||||||
|
VALUES (427, 12, 30, N'Exchange2013.SharedMailboxes', N'Shared Mailboxes per Organization', 2, 0, NULL, NULL)
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
IF NOT EXISTS (SELECT * FROM [dbo].[Quotas] WHERE [QuotaName] = 'Exchange2013.ResourceMailboxes')
|
||||||
|
BEGIN
|
||||||
|
INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID], [HideQuota])
|
||||||
|
VALUES (428, 12, 31, N'Exchange2013.ResourceMailboxes', N'Resource Mailboxes per Organization', 2, 0, NULL, NULL)
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
-- Exchange2013 Shared and resource mailboxes Organization statistics
|
||||||
|
|
||||||
|
ALTER PROCEDURE [dbo].[GetExchangeOrganizationStatistics]
|
||||||
|
(
|
||||||
|
@ItemID int
|
||||||
|
)
|
||||||
|
AS
|
||||||
|
|
||||||
|
DECLARE @ARCHIVESIZE INT
|
||||||
|
IF -1 in (SELECT B.ArchiveSizeMB FROM ExchangeAccounts AS A INNER JOIN ExchangeMailboxPlans AS B ON A.MailboxPlanId = B.MailboxPlanId WHERE A.ItemID=@ItemID)
|
||||||
|
BEGIN
|
||||||
|
SET @ARCHIVESIZE = -1
|
||||||
|
END
|
||||||
|
ELSE
|
||||||
|
BEGIN
|
||||||
|
SET @ARCHIVESIZE = (SELECT SUM(B.ArchiveSizeMB) FROM ExchangeAccounts AS A INNER JOIN ExchangeMailboxPlans AS B ON A.MailboxPlanId = B.MailboxPlanId WHERE A.ItemID=@ItemID)
|
||||||
|
END
|
||||||
|
|
||||||
|
IF -1 IN (SELECT B.MailboxSizeMB FROM ExchangeAccounts AS A INNER JOIN ExchangeMailboxPlans AS B ON A.MailboxPlanId = B.MailboxPlanId WHERE A.ItemID=@ItemID)
|
||||||
|
BEGIN
|
||||||
|
SELECT
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE (AccountType = 1 OR AccountType = 5 OR AccountType = 6) AND ItemID = @ItemID) AS CreatedMailboxes,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE (AccountType = 10) AND ItemID = @ItemID) AS CreatedSharedMailboxes,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE (AccountType = 11) AND ItemID = @ItemID) AS CreatedResourceMailboxes,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE AccountType = 2 AND ItemID = @ItemID) AS CreatedContacts,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE AccountType = 3 AND ItemID = @ItemID) AS CreatedDistributionLists,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE AccountType = 4 AND ItemID = @ItemID) AS CreatedPublicFolders,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeOrganizationDomains WHERE ItemID = @ItemID) AS CreatedDomains,
|
||||||
|
(SELECT MIN(B.MailboxSizeMB) FROM ExchangeAccounts AS A INNER JOIN ExchangeMailboxPlans AS B ON A.MailboxPlanId = B.MailboxPlanId WHERE A.ItemID=@ItemID) AS UsedDiskSpace,
|
||||||
|
(SELECT MIN(B.RecoverableItemsSpace) FROM ExchangeAccounts AS A INNER JOIN ExchangeMailboxPlans AS B ON A.MailboxPlanId = B.MailboxPlanId WHERE A.ItemID=@ItemID) AS UsedLitigationHoldSpace,
|
||||||
|
@ARCHIVESIZE AS UsedArchingStorage
|
||||||
|
END
|
||||||
|
ELSE
|
||||||
|
BEGIN
|
||||||
|
SELECT
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE (AccountType = 1 OR AccountType = 5 OR AccountType = 6) AND ItemID = @ItemID) AS CreatedMailboxes,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE (AccountType = 10) AND ItemID = @ItemID) AS CreatedSharedMailboxes,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE (AccountType = 11) AND ItemID = @ItemID) AS CreatedResourceMailboxes,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE AccountType = 2 AND ItemID = @ItemID) AS CreatedContacts,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE AccountType = 3 AND ItemID = @ItemID) AS CreatedDistributionLists,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeAccounts WHERE AccountType = 4 AND ItemID = @ItemID) AS CreatedPublicFolders,
|
||||||
|
(SELECT COUNT(*) FROM ExchangeOrganizationDomains WHERE ItemID = @ItemID) AS CreatedDomains,
|
||||||
|
(SELECT SUM(B.MailboxSizeMB) FROM ExchangeAccounts AS A INNER JOIN ExchangeMailboxPlans AS B ON A.MailboxPlanId = B.MailboxPlanId WHERE A.ItemID=@ItemID) AS UsedDiskSpace,
|
||||||
|
(SELECT SUM(B.RecoverableItemsSpace) FROM ExchangeAccounts AS A INNER JOIN ExchangeMailboxPlans AS B ON A.MailboxPlanId = B.MailboxPlanId WHERE A.ItemID=@ItemID) AS UsedLitigationHoldSpace,
|
||||||
|
@ARCHIVESIZE AS UsedArchingStorage
|
||||||
|
END
|
||||||
|
|
||||||
|
|
||||||
|
RETURN
|
||||||
|
GO
|
||||||
|
|
|
@ -123,6 +123,9 @@ order by rg.groupOrder
|
||||||
public const string EXCHANGE2013_ARCHIVINGSTORAGE = "Exchange2013.ArchivingStorage"; // Archiving
|
public const string EXCHANGE2013_ARCHIVINGSTORAGE = "Exchange2013.ArchivingStorage"; // Archiving
|
||||||
public const string EXCHANGE2013_ARCHIVINGMAILBOXES = "Exchange2013.ArchivingMailboxes";
|
public const string EXCHANGE2013_ARCHIVINGMAILBOXES = "Exchange2013.ArchivingMailboxes";
|
||||||
|
|
||||||
|
public const string EXCHANGE2013_SHAREDMAILBOXES = "Exchange2013.SharedMailboxes"; // Shared and resource mailboxes
|
||||||
|
public const string EXCHANGE2013_RESOURCEMAILBOXES = "Exchange2013.ResourceMailboxes";
|
||||||
|
|
||||||
public const string MSSQL2000_DATABASES = "MsSQL2000.Databases"; // Databases
|
public const string MSSQL2000_DATABASES = "MsSQL2000.Databases"; // Databases
|
||||||
public const string MSSQL2000_USERS = "MsSQL2000.Users"; // Users
|
public const string MSSQL2000_USERS = "MsSQL2000.Users"; // Users
|
||||||
public const string MSSQL2000_MAXDATABASESIZE = "MsSQL2000.MaxDatabaseSize"; // Max Database Size
|
public const string MSSQL2000_MAXDATABASESIZE = "MsSQL2000.MaxDatabaseSize"; // Max Database Size
|
||||||
|
|
|
@ -193,6 +193,9 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
stats.UsedDiskSpace = tempStats.UsedDiskSpace;
|
stats.UsedDiskSpace = tempStats.UsedDiskSpace;
|
||||||
stats.UsedLitigationHoldSpace = tempStats.UsedLitigationHoldSpace;
|
stats.UsedLitigationHoldSpace = tempStats.UsedLitigationHoldSpace;
|
||||||
stats.UsedArchingStorage = tempStats.UsedArchingStorage;
|
stats.UsedArchingStorage = tempStats.UsedArchingStorage;
|
||||||
|
|
||||||
|
stats.CreatedSharedMailboxes = tempStats.CreatedSharedMailboxes;
|
||||||
|
stats.CreatedResourceMailboxes = tempStats.CreatedResourceMailboxes;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -221,6 +224,9 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
stats.UsedDiskSpace += tempStats.UsedDiskSpace;
|
stats.UsedDiskSpace += tempStats.UsedDiskSpace;
|
||||||
stats.UsedLitigationHoldSpace += tempStats.UsedLitigationHoldSpace;
|
stats.UsedLitigationHoldSpace += tempStats.UsedLitigationHoldSpace;
|
||||||
stats.UsedArchingStorage += tempStats.UsedArchingStorage;
|
stats.UsedArchingStorage += tempStats.UsedArchingStorage;
|
||||||
|
|
||||||
|
stats.CreatedSharedMailboxes += tempStats.CreatedSharedMailboxes;
|
||||||
|
stats.CreatedResourceMailboxes += tempStats.CreatedResourceMailboxes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -241,6 +247,9 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
stats.AllocatedLitigationHoldSpace = cntx.Quotas[Quotas.EXCHANGE2007_RECOVERABLEITEMSSPACE].QuotaAllocatedValue;
|
stats.AllocatedLitigationHoldSpace = cntx.Quotas[Quotas.EXCHANGE2007_RECOVERABLEITEMSSPACE].QuotaAllocatedValue;
|
||||||
stats.AllocatedArchingStorage = cntx.Quotas[Quotas.EXCHANGE2013_ARCHIVINGSTORAGE].QuotaAllocatedValue;
|
stats.AllocatedArchingStorage = cntx.Quotas[Quotas.EXCHANGE2013_ARCHIVINGSTORAGE].QuotaAllocatedValue;
|
||||||
|
|
||||||
|
stats.AllocatedSharedMailboxes = cntx.Quotas[Quotas.EXCHANGE2013_SHAREDMAILBOXES].QuotaAllocatedValue;
|
||||||
|
stats.AllocatedResourceMailboxes = cntx.Quotas[Quotas.EXCHANGE2013_RESOURCEMAILBOXES].QuotaAllocatedValue;
|
||||||
|
|
||||||
return stats;
|
return stats;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -1665,8 +1674,21 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
// check mailbox quota
|
// check mailbox quota
|
||||||
OrganizationStatistics orgStats = GetOrganizationStatistics(itemId);
|
OrganizationStatistics orgStats = GetOrganizationStatistics(itemId);
|
||||||
if ((orgStats.AllocatedMailboxes > -1) && (orgStats.CreatedMailboxes >= orgStats.AllocatedMailboxes))
|
if (accountType == ExchangeAccountType.SharedMailbox)
|
||||||
return BusinessErrorCodes.ERROR_EXCHANGE_MAILBOXES_QUOTA_LIMIT;
|
{
|
||||||
|
if ((orgStats.AllocatedSharedMailboxes > -1) && (orgStats.CreatedSharedMailboxes >= orgStats.AllocatedSharedMailboxes))
|
||||||
|
return BusinessErrorCodes.ERROR_EXCHANGE_MAILBOXES_QUOTA_LIMIT;
|
||||||
|
}
|
||||||
|
else if (accountType == ExchangeAccountType.ResourceMailbox)
|
||||||
|
{
|
||||||
|
if ((orgStats.AllocatedResourceMailboxes > -1) && (orgStats.CreatedResourceMailboxes >= orgStats.AllocatedResourceMailboxes))
|
||||||
|
return BusinessErrorCodes.ERROR_EXCHANGE_MAILBOXES_QUOTA_LIMIT;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ((orgStats.AllocatedMailboxes > -1) && (orgStats.CreatedMailboxes >= orgStats.AllocatedMailboxes))
|
||||||
|
return BusinessErrorCodes.ERROR_EXCHANGE_MAILBOXES_QUOTA_LIMIT;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// place log record
|
// place log record
|
||||||
|
|
|
@ -39,7 +39,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
Equipment = 6,
|
Equipment = 6,
|
||||||
User = 7,
|
User = 7,
|
||||||
SecurityGroup = 8,
|
SecurityGroup = 8,
|
||||||
DefaultSecurityGroup = 9
|
DefaultSecurityGroup = 9,
|
||||||
|
SharedMailbox = 10,
|
||||||
|
ResourceMailbox = 11
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -341,6 +341,36 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
get { return usedArchingStorage; }
|
get { return usedArchingStorage; }
|
||||||
set { usedArchingStorage = value; }
|
set { usedArchingStorage = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int allocatedSharedMailboxes;
|
||||||
|
public int AllocatedSharedMailboxes
|
||||||
|
{
|
||||||
|
get { return allocatedSharedMailboxes; }
|
||||||
|
set { allocatedSharedMailboxes = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
int createdSharedMailboxes;
|
||||||
|
public int CreatedSharedMailboxes
|
||||||
|
{
|
||||||
|
get { return createdSharedMailboxes; }
|
||||||
|
set { createdSharedMailboxes = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
int allocatedResourceMailboxes;
|
||||||
|
public int AllocatedResourceMailboxes
|
||||||
|
{
|
||||||
|
get { return allocatedResourceMailboxes; }
|
||||||
|
set { allocatedResourceMailboxes = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
int createdResourceMailboxes;
|
||||||
|
public int CreatedResourceMailboxes
|
||||||
|
{
|
||||||
|
get { return createdResourceMailboxes; }
|
||||||
|
set { createdResourceMailboxes = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1942,6 +1942,11 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
cmd.Parameters.Add("Equipment");
|
cmd.Parameters.Add("Equipment");
|
||||||
else if (accountType == ExchangeAccountType.Room)
|
else if (accountType == ExchangeAccountType.Room)
|
||||||
cmd.Parameters.Add("Room");
|
cmd.Parameters.Add("Room");
|
||||||
|
else if (accountType == ExchangeAccountType.SharedMailbox)
|
||||||
|
cmd.Parameters.Add("Shared");
|
||||||
|
else if (accountType == ExchangeAccountType.ResourceMailbox)
|
||||||
|
cmd.Parameters.Add("Equipment");
|
||||||
|
|
||||||
|
|
||||||
result = ExecuteShellCommand(runSpace, cmd);
|
result = ExecuteShellCommand(runSpace, cmd);
|
||||||
|
|
||||||
|
|
|
@ -369,6 +369,10 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
cmd.Parameters.Add("Equipment");
|
cmd.Parameters.Add("Equipment");
|
||||||
else if (accountType == ExchangeAccountType.Room)
|
else if (accountType == ExchangeAccountType.Room)
|
||||||
cmd.Parameters.Add("Room");
|
cmd.Parameters.Add("Room");
|
||||||
|
else if (accountType == ExchangeAccountType.SharedMailbox)
|
||||||
|
cmd.Parameters.Add("Shared");
|
||||||
|
else if (accountType == ExchangeAccountType.ResourceMailbox)
|
||||||
|
cmd.Parameters.Add("Equipment");
|
||||||
|
|
||||||
result = ExecuteShellCommand(runSpace, cmd);
|
result = ExecuteShellCommand(runSpace, cmd);
|
||||||
|
|
||||||
|
|
|
@ -5593,7 +5593,16 @@
|
||||||
<data name="Error.RDS_CREATE_COLLECTION_RDSSERVER_REQUAIRED" xml:space="preserve">
|
<data name="Error.RDS_CREATE_COLLECTION_RDSSERVER_REQUAIRED" xml:space="preserve">
|
||||||
<value>Error creating rds collection. You need to add at least 1 rds server to collection</value>
|
<value>Error creating rds collection. You need to add at least 1 rds server to collection</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Error.RDS_UNASSIGN_SERVER_FROM_ORG_SERVER_IS_IN_COLLECTION" xml:space="preserve">
|
<data name="Quota.Exchange2013.ResourceMailboxes" xml:space="preserve">
|
||||||
<value>Error deleting rds server from organization: server is used in rds collection</value>
|
<value>Resource Mailboxes per Organization</value>
|
||||||
|
</data>
|
||||||
|
<data name="Quota.Exchange2013.SharedMailboxes" xml:space="preserve">
|
||||||
|
<value>Shared Mailboxes per Organization</value>
|
||||||
|
</data>
|
||||||
|
<data name="ResourceMailbox.Text" xml:space="preserve">
|
||||||
|
<value> (resource mailbox)</value>
|
||||||
|
</data>
|
||||||
|
<data name="SharedMailbox.Text" xml:space="preserve">
|
||||||
|
<value> (shared mailbox)</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -186,4 +186,10 @@
|
||||||
<data name="valRequireSubscriberNumber.Text" xml:space="preserve">
|
<data name="valRequireSubscriberNumber.Text" xml:space="preserve">
|
||||||
<value>*</value>
|
<value>*</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ResourceMailbox.Text" xml:space="preserve">
|
||||||
|
<value>Resource Mailbox</value>
|
||||||
|
</data>
|
||||||
|
<data name="SharedMailbox.Text" xml:space="preserve">
|
||||||
|
<value>Shared Mailbox</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -101,6 +101,20 @@ namespace WebsitePanel.Portal.ExchangeServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cntx.Quotas.ContainsKey(Quotas.EXCHANGE2013_SHAREDMAILBOXES))
|
||||||
|
{
|
||||||
|
if (cntx.Quotas[Quotas.EXCHANGE2013_SHAREDMAILBOXES].QuotaAllocatedValue != 0)
|
||||||
|
rbMailboxType.Items.Add(new System.Web.UI.WebControls.ListItem(GetLocalizedString("SharedMailbox.Text"), "10"));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cntx.Quotas.ContainsKey(Quotas.EXCHANGE2013_RESOURCEMAILBOXES))
|
||||||
|
{
|
||||||
|
if (cntx.Quotas[Quotas.EXCHANGE2013_RESOURCEMAILBOXES].QuotaAllocatedValue != 0)
|
||||||
|
rbMailboxType.Items.Add(new System.Web.UI.WebControls.ListItem(GetLocalizedString("ResourceMailbox.Text"), "11"));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
rowRetentionPolicy.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWRETENTIONPOLICY, cntx);
|
rowRetentionPolicy.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWRETENTIONPOLICY, cntx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,6 +183,12 @@ namespace WebsitePanel.Portal.ExchangeServer
|
||||||
}
|
}
|
||||||
imgVipUser.Visible = account.IsVIP && Cntx.Groups.ContainsKey(ResourceGroups.ServiceLevels);
|
imgVipUser.Visible = account.IsVIP && Cntx.Groups.ContainsKey(ResourceGroups.ServiceLevels);
|
||||||
|
|
||||||
|
if (account.AccountType == ExchangeAccountType.SharedMailbox)
|
||||||
|
litDisplayName.Text += GetSharedLocalizedString("SharedMailbox.Text");
|
||||||
|
|
||||||
|
if (account.AccountType == ExchangeAccountType.ResourceMailbox)
|
||||||
|
litDisplayName.Text += GetSharedLocalizedString("ResourceMailbox.Text");
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,6 +67,16 @@ namespace WebsitePanel.Portal.ExchangeServer
|
||||||
litDisplayName.Text = mailbox.DisplayName;
|
litDisplayName.Text = mailbox.DisplayName;
|
||||||
sendAsPermission.SetAccounts(mailbox.SendAsAccounts);
|
sendAsPermission.SetAccounts(mailbox.SendAsAccounts);
|
||||||
fullAccessPermission.SetAccounts(mailbox.FullAccessAccounts);
|
fullAccessPermission.SetAccounts(mailbox.FullAccessAccounts);
|
||||||
|
|
||||||
|
// get account meta
|
||||||
|
ExchangeAccount account = ES.Services.ExchangeServer.GetAccount(PanelRequest.ItemID, PanelRequest.AccountID);
|
||||||
|
|
||||||
|
if (account.AccountType == ExchangeAccountType.SharedMailbox)
|
||||||
|
litDisplayName.Text += GetSharedLocalizedString("SharedMailbox.Text");
|
||||||
|
|
||||||
|
if (account.AccountType == ExchangeAccountType.ResourceMailbox)
|
||||||
|
litDisplayName.Text += GetSharedLocalizedString("ResourceMailbox.Text");
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,9 @@
|
||||||
</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:CheckBox ID="chkMailboxes" runat="server" meta:resourcekey="chkMailboxes" Text="Mailboxes" AutoPostBack="true" OnCheckedChanged="chkMailboxes_CheckedChanged"/>
|
||||||
|
<asp:CheckBox ID="chkResourceMailboxes" runat="server" meta:resourcekey="chkResourceMailboxes" Text="Resource Mailboxes" AutoPostBack="true" OnCheckedChanged="chkMailboxes_CheckedChanged"/>
|
||||||
|
<asp:CheckBox ID="chkSharedMailboxes" runat="server" meta:resourcekey="chkSharedMailboxes" Text="Shared Mailboxes" AutoPostBack="true" OnCheckedChanged="chkMailboxes_CheckedChanged"/>
|
||||||
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
|
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
|
||||||
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
|
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
|
||||||
<asp:ListItem>10</asp:ListItem>
|
<asp:ListItem>10</asp:ListItem>
|
||||||
|
|
|
@ -60,6 +60,10 @@ namespace WebsitePanel.Portal.ExchangeServer
|
||||||
|
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
|
chkMailboxes.Checked = true;
|
||||||
|
chkResourceMailboxes.Checked = true;
|
||||||
|
chkSharedMailboxes.Checked = true;
|
||||||
|
|
||||||
BindStats();
|
BindStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,5 +250,25 @@ namespace WebsitePanel.Portal.ExchangeServer
|
||||||
|
|
||||||
return serviceLevel;
|
return serviceLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void chkMailboxes_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
List<string> accountTypes = new List<string>();
|
||||||
|
|
||||||
|
if ((!chkMailboxes.Checked)&&(!chkSharedMailboxes.Checked)&&(!chkResourceMailboxes.Checked))
|
||||||
|
chkMailboxes.Checked = true;
|
||||||
|
|
||||||
|
if (chkMailboxes.Checked)
|
||||||
|
accountTypes.AddRange(new string[] {"1","5","6"});
|
||||||
|
|
||||||
|
if (chkSharedMailboxes.Checked)
|
||||||
|
accountTypes.Add("10");
|
||||||
|
|
||||||
|
if (chkResourceMailboxes.Checked)
|
||||||
|
accountTypes.Add("11");
|
||||||
|
|
||||||
|
odsAccountsPaged.SelectParameters["accountTypes"].DefaultValue = string.Join(",", accountTypes);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -66,6 +66,33 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Panel SearchPanel;
|
protected global::System.Web.UI.WebControls.Panel SearchPanel;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// chkMailboxes 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.CheckBox chkMailboxes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// chkResourceMailboxes 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.CheckBox chkResourceMailboxes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// chkSharedMailboxes 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.CheckBox chkSharedMailboxes;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ddlPageSize control.
|
/// ddlPageSize control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue