add Application Pools Restart Quota

This commit is contained in:
dev_amdtel 2013-05-14 23:28:03 +04:00
parent c65ec921f7
commit 62cbb7e4ab
6 changed files with 32 additions and 11 deletions

View file

@ -1623,6 +1623,9 @@
<data name="Quota.Web.AppPools" xml:space="preserve">
<value>Dedicated Application Pools</value>
</data>
<data name="Quota.Web.AppPoolsRestart" xml:space="preserve">
<value>Application Pools Restart</value>
</data>
<data name="Quota.Web.ColdFusion" xml:space="preserve">
<value>ColdFusion</value>
</data>

View file

@ -191,12 +191,14 @@
<asp:Literal ID="litAppPoolStatus" runat="server"></asp:Literal>
</td>
<td align="center">
<asp:ImageButton ID="cmdAppPoolStart" runat="server" SkinID="StartMedium" meta:resourcekey="cmdStart"
CommandName="Started" OnClick="cmdAppPoolChangeState_Click" />
<asp:ImageButton ID="cmdAppPoolRecycle" runat="server" SkinID="RecycleMedium" meta:resourcekey="cmdRecycle"
CommandName="Recycle" OnClick="cmdAppPoolChangeState_Click" />
<asp:ImageButton ID="cmdAppPoolStop" runat="server" SkinID="StopMedium" meta:resourcekey="cmdStop"
CommandName="Stopped" OnClick="cmdAppPoolChangeState_Click" />
<asp:Panel runat="server" ID="AppPoolRestartPanel">
<asp:ImageButton ID="cmdAppPoolStart" runat="server" SkinID="StartMedium" meta:resourcekey="cmdStart"
CommandName="Started" OnClick="cmdAppPoolChangeState_Click" />
<asp:ImageButton ID="cmdAppPoolRecycle" runat="server" SkinID="RecycleMedium" meta:resourcekey="cmdRecycle"
CommandName="Recycle" OnClick="cmdAppPoolChangeState_Click" />
<asp:ImageButton ID="cmdAppPoolStop" runat="server" SkinID="StopMedium" meta:resourcekey="cmdStop"
CommandName="Stopped" OnClick="cmdAppPoolChangeState_Click" />
</asp:Panel>
</td>
</tr>
</table>

View file

@ -265,6 +265,8 @@ namespace WebsitePanel.Portal
ToggleFrontPageControls(site.FrontPageInstalled);
}
AppPoolRestartPanel.Visible = Utils.CheckQouta(Quotas.WEB_APPPOOLSRESTART, cntx);
// bind controls
webSitesHomeFolderControl.BindWebItem(PackageId, site);
webSitesSecuredFoldersControl.BindSecuredFolders(site);

View file

@ -11,7 +11,7 @@ namespace WebsitePanel.Portal {
public partial class WebSitesEditSite {
/// <summary>
/// asyncTasks control.
/// </summary>
@ -20,7 +20,7 @@ namespace WebsitePanel.Portal {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks;
/// <summary>
/// WDeployBuildPublishingProfileWizardPanel control.
/// </summary>
@ -29,7 +29,7 @@ namespace WebsitePanel.Portal {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel WDeployBuildPublishingProfileWizardPanel;
/// <summary>
/// WDeployPubProfilePanel control.
/// </summary>
@ -390,6 +390,15 @@ namespace WebsitePanel.Portal {
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litAppPoolStatus;
/// <summary>
/// AppPoolRestartPanel 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.Panel AppPoolRestartPanel;
/// <summary>
/// cmdAppPoolStart control.
/// </summary>