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



<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<asp:Panel ID="Pnl_Listing" runat="server">

    <asp:Panel ID="Panel5" runat="server" DefaultButton="btnSGAddVHDLocation">
        <%--<div class="col-xs-12" >--%>
        <div class="card" id="tblVHDLocations" runat="server">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources:Content, strVHDLocations %>' EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row Div_OpsRow" id="trOperations" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>                                                                                                                                 
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="btnAddNewVHDLOcation" class="btn btn-primary waves-effect btnAction" CausesValidation="false" runat="server" Text='<%$ Resources:Content,strAddNewVHDPath %>' />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="trVHDListing" runat="server">
                    <div class="col-xs-12">
                        <EM:MPGridView ID="GV_VHDLocations" CurrentSortExpression="VHDLocations" CurrentSortDirection="Asc"
                            CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="false" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                            AutoGenerateColumns="false" DataKeyNames='VPSVHDLocationID'>
                            <Columns>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, strVHDPath %>"
                                    HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                    <ItemTemplate>
                                        <asp:Label ID="lblVHDLocation" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.VHDPath")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, strMaxSizeGBs %>"
                                    HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="lblMaxSize" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MaxSize") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                               <%-- <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000850 %>"
                                    HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCustomers" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Customers") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>--%>
                                  <asp:TemplateField HeaderText="<%$ Resources:Content,strStorageType %>"
                                    HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="lblStorageType" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.VPSStorageTypeName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>"
                                    HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:LinkButton CssClass="btn btn-primary waves-effect" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.VPSVHDLocationID")%>'
                                            ID="LB_Edit" CommandName="EditRow" runat="server" Text="<%$ Resources:Content,GN0000276%>" CausesValidation="false" />
                                        <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.VPSVHDLocationID")%>'
                                            ID="LB_Remove" CommandName="Remove" runat="server" Text="<%$ Resources:Content,GN0000278%>" CausesValidation="false" />
                                        <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,strAreyousuretodeleteVHDLocation%>" TargetControlID="LB_Remove" runat="server">
                                        </EM:ConfirmButtonExtender>

                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </EM:MPGridView>
                    </div>
                </div>
                <div class="row" id="trVHDPath" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal14" runat="server" Text='<%$ Resources:Content, strVHDPath %>' EnableViewState="false"></asp:Literal>: 
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="txtSGVHDPath" runat="server" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="VHDLocation" ControlToValidate="txtSGVHDPath"
                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegExpForLocalAndUNCPath" ControlToValidate="txtSGVHDPath" runat="server"
                            ErrorMessage='<%$ Resources:Content, strPathIsInValid%>' ValidationExpression="^[a-zA-Z]\:\\.*|^\\\\.*"
                            ValidationGroup="VHDLocation">
                        </asp:RegularExpressionValidator>
                    </div>
                </div>
                <div class="row" id="trMaxSize" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal15" runat="server" Text='<%$ Resources:Content, strMaxSizeGBs%>' EnableViewState="false"></asp:Literal>: 
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="txtSGVHDLocationMaxSize" runat="server" MaxLength="6" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ValidationGroup="VHDLocation" ControlToValidate="txtSGVHDLocationMaxSize"
                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegEVForInteger" ControlToValidate="txtSGVHDLocationMaxSize" runat="server"
                            ErrorMessage='<%$ Resources:Content, strOnlyNumbersAllowed%>' ValidationExpression="\d+">
                        </asp:RegularExpressionValidator>
                    </div>
                </div>
                <div class="row" id="trStorageType" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content, strStorageType%>' EnableViewState="false"></asp:Literal>: 
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                             <asp:DropDownList ID="ddl_StorageType" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                </div>
              <%--  <div class="row" id="trCustomers" runat="server" visible="false">
                    <div class="col-xs-12 row-label">
                        <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,GN0000850 %>" />:
                    </div>
                    <div class="col-xs-12">
                        <EM:AddSelectableSelected ID="UCCustomer" runat="server" />
                    </div>
                </div>--%>
                <div class="row" id="trbtnAdd" runat="server" visible="false">
                    <div class="col-xs-12">
                        <asp:Button ID="btnSGAddVHDLocation" runat="server" Text='<%$ Resources:Content,GN0000659 %>' CausesValidation="true" ValidationGroup="VHDLocation" class="btn btn-primary waves-effect" />
                        <asp:Button ID="BtnCancel" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000572 %>' class="btn btn-primary waves-effect" />
                    </div>
                </div>
            </div>
        </div>
        <%--</div>--%>
        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001 %>' ID="ValidationSummary2"
            runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="VHDLocation" />
    </asp:Panel>
</asp:Panel>

