<%@ control language="VB" autoeventwireup="false" inherits="RCC_VPS_CC_ModifyRam, MachSol.MachPanel.Web" %>

<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="CC" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">
    <script type="text/javascript">

        function showMe(ControlID) {
            var ControlClientID = $("[id$=" + ControlID + "]").attr("id");
            document.getElementById(ControlClientID).style.display = "block";
        }
        function HideMe(ControlID) {
            var ControlClientID = $("[id$=" + ControlID + "]").attr("id");;
            document.getElementById(ControlClientID).style.display = "none";
        }

    </script>
</CC:UpdatePanelInlineScriptControl>

<%--<%--  <asp:View ID="vShow" runat="server">
         
        <div class="col-sm-4 col-xs-12 row-label">
            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content, GN00001562 %>"></asp:Literal>:                                                                
        </div>
        <div class="col-sm-3 col-xs-12">
            <asp:Label ID="lblRam" runat="server" class="resource-limit"></asp:Label>&nbsp;&nbsp;
        </div>
        <div class="col-sm-2 col-xs-12">
            <asp:Button ID="btnChange" runat="server" class="btn btn-primary" Text="<%$ Resources:Content, GN0000385 %>" />
            <div class="clear-both">
            </div>
        </div>
       
    </asp:View>--%>

<asp:MultiView ID="mvRam" runat="server" ActiveViewIndex="0">

    <asp:View ID="vModify" runat="server">
        <div class="col-xs-8">
            <div class="row">
                <div class="col-sm-4 col-xs-12">
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content, strMemoryRAMMB %>"></asp:Literal>:                                                                
                </div>
                <div class="col-sm-3 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="txtRam" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvRam" runat="server" Text="*" ErrorMessage="<%$ Resources:Content, strThevalueofRAMisrequiredMessage %>"
                                ControlToValidate="txtRam"   Display="None" ValidationGroup="Memory"></asp:RequiredFieldValidator>
                         <EM:FilteredTextBoxExtender ID="FTBE_txtRam" runat="server" TargetControlID="txtRam"
                                FilterType="Custom, Numbers" />
                        </div>
                    </div>

                </div>
                <div class="col-sm-5 col-xs-12 resource-limit">

                    <asp:Label ID="Lbl_RAM" runat="server"></asp:Label>
                </div>
            </div>
            <div class="row" id="Tr_VModify" runat="server">

                <div class="row" id="tblRAMWeightType" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="col-sm-4 col-xs-12">

                            <asp:Literal ID="ltlWeight" runat="server" EnableViewState="false" Text='<%$ Resources:Content,strWeight %>' />:
                    
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtWeight" runat="server"></asp:TextBox>
                                    <EM:FilteredTextBoxExtender ID="FTBE_txtWeight" runat="server" TargetControlID="txtWeight"
                                FilterType="Custom, Numbers" />
                                </div>
                            </div>
                        </div>
                        <%--  <asp:RangeValidator ID="rgvWeight" Type="Integer" ControlToValidate="txtWeight" MinimumValue="0" MaximumValue="100" runat="server"></asp:RangeValidator>--%>
                    </div>

                    <div class="col-xs-12">
                        <div class="col-sm-4 col-xs-12">

                            <asp:Literal ID="ltlMemoryType" runat="server" EnableViewState="false" Text='<%$ Resources:Content,strMemoryType %>' />:
                       
                        </div>
                        <div class="col-sm-8 col-xs-12">
                            <div class="form-group">
                                <asp:RadioButton ID="rdbStaticRAM" runat="server" onclick="HideMe('tblRAMSettings')" Checked="true" Text='<%$ Resources:Content,strStaticRAM %>' GroupName="MemoryType" />&nbsp;&nbsp;
                        <asp:RadioButton ID="rdbDynamicRAM" runat="server" onclick="showMe('tblRAMSettings')" Text='<%$ Resources:Content,strDynamicRAM %>' GroupName="MemoryType" />&nbsp;&nbsp;                                                  
                            </div>
                        </div>
                    </div>

                </div>


                <div class="row" id="tblRAMSettings" runat="server">

                    <div class="col-xs-12">
                        <div class="col-sm-6 col-xs-12" id="trdynamicRAMSetting" runat="server" visible="true">
                            <h5 class="row-label">
                                <asp:Literal ID="ltlDynamicRamSettings" runat="server" EnableViewState="false" Text='<%$ Resources:Content,strDynamicRAMSettings %>' />:
                            </h5>
                        </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="col-sm-4 col-xs-12">
                            <asp:Literal ID="ltlStartUpRAM" runat="server" EnableViewState="false" Text='<%$ Resources:Content,strStartUpRAM %>' />:                                       
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtStartUpRAM" runat="server"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <asp:RangeValidator ID="rgvStartupRAM" Type="Integer" ControlToValidate="txtStartUpRAM" MaximumValue="1024" MinimumValue="8" runat="server"></asp:RangeValidator>
                    </div>

                    <div class="col-xs-12">
                        <div class="col-sm-4 col-xs-12">
                            <asp:Literal ID="ltlMinimumRAM" runat="server" EnableViewState="false" Text='<%$ Resources:Content,strMinimumRAM %>' />:                                             
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtMinimumRAM" runat="server"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <asp:RangeValidator ID="rgvMinimumRAM" Type="Integer" ControlToValidate="txtMinimumRAM" MinimumValue="8" MaximumValue="1024" runat="server"></asp:RangeValidator>
                    </div>

                    <div class="col-xs-12">
                        <div class="col-sm-4 col-xs-12">
                            <asp:Literal ID="ltlBuffer" runat="server" EnableViewState="false" Text='<%$ Resources:Content,StrBuffer %>' />:                                                     
                        </div>
                        <div class="col-sm-3 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtBuffer" runat="server"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <asp:RangeValidator ID="rgvBuffer" Type="Integer" ControlToValidate="txtBuffer" MinimumValue="5" MaximumValue="2000" runat="server"></asp:RangeValidator>
                    </div>

                </div>
                <div class="col-xs-12">
                    <div class="col-sm-4 col-xs-12">
                        <asp:Button ID="btnModify" runat="server" ValidationGroup="Memory" Text="<%$ Resources:Content, GN0000385 %>" CssClass="btn btn-primary btnAction" />
                        <%--                        <asp:Button ID="btnCancel" runat="server" CausesValidation="false" Text="<%$ Resources:Content, GN0000572 %>" CssClass="btn btn-primary" />--%>
                    </div>
                    <div class="col-sm-8 col-xs-12" id="DivOffMsg" runat="server" visible="false">
                        <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,strToChangeRAMVMOff %>' />
                    </div>
                </div>
            </div>
        </div>
    </asp:View>
</asp:MultiView>
<asp:ValidationSummary ID="VS_ModifyCPU" ValidationGroup="Memory" DisplayMode="BulletList"
    ShowSummary="false" ShowMessageBox="true" HeaderText="<%$ Resources:Content,SMI750%>"
    runat="server" />
