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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="CustomGrid" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>

<div class="row">
    <div class="col-xs-12">
        <!-- Operations -->
        <div class="row Div_OpsRow" id="Div_OperationsVMs" 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 CssClass="btn btn-primary btnAction" class="btn btn-primary waves-effect" ID="Btn_ExportVMs" runat="server" Text="<%$ Resources:Content,strExport%>" />
                                <asp:Button CssClass="btn btn-primary btnAction" class="btn btn-primary waves-effect" ID="Btn_ImportVMs" runat="server" Text="<%$ Resources:Content,strImport%>" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- Search Panel -->
        <asp:Panel ID="Pnl_SearchVMs" runat="server" DefaultButton="Btn_SearchVMs">
            <div class="row">
                <div class="panel-group search-panel" id="AS_VMs" role="tablist" aria-multiselectable="true">
                    <div class="col-xs-12" role="tab" id="SH_VMs">
                        <div class="card">
                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_VMs" href="#<%= CSB_VMs.ClientID%>" aria-expanded="true" aria-controls="SH_VMs">
                                <h3>
                                    <%= Resources.Content.GN0000395%>
                                </h3>
                            </div>
                            <div id="CSB_VMs" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_VMs" aria-expanded="false">
                                <div class="row">
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_PackageNameVMs" runat="server" />
                                                <asp:Label CssClass="form-label" ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,PackageName%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_VMName" runat="server" />
                                                <asp:Label CssClass="form-label" ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,VMName%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_VMSubscriptionId" runat="server" />
                                                <asp:Label CssClass="form-label" ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SubscriptionId%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3 col-sm-6 col-xs-12" id="Div_VMsFor" runat="server">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="DDL_VMsFor" runat="server">
                                                <asp:ListItem Text='<%$ Resources:Content, ProductsFor %>' Value="-1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text='<%$ Resources:Content, SM200001 %>' Value="0"></asp:ListItem>
                                                <asp:ListItem Text='<%$ Resources:Content, SMI759 %>' Value="1"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:Button CssClass="btn btn-primary" ID="Btn_SearchVMs" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                            <asp:Button CssClass="btn btn-primary" ID="Btn_ClearVMs" SkinID="searchButton" Visible="false" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>
        <!-- End of Search Panel -->

        <asp:GridView ID="GV_VMs" runat="server" AutoGenerateColumns="False"
            CssClass="table table-bordered table-striped table-hover table-responsive"
            DataKeyNames="SubscriptionId" AllowPaging="false" EmptyDataText='<%$ Resources:Content, GN00001375  %>'>
            <Columns>
                <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1119987 %>'>
                    <ItemTemplate>
                        <asp:HyperLink ID="Lbl_Subscription" runat="server"></asp:HyperLink>
                        <asp:HiddenField ID="Hf_SubscriptionId" runat="server" />
                        <asp:HiddenField ID="Hf_PackageId" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content,VMName%>" HeaderStyle-CssClass="col-xs-2">
                    <ItemTemplate>
                        <asp:Label ID="Lbl_VMName" runat="server"></asp:Label>
                        <asp:HiddenField ID="Hf_VPSId" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001473%>" HeaderStyle-CssClass="col-xs-2">
                    <ItemTemplate>
                        <asp:Label ID="Lbl_BillingCycle" runat="server"></asp:Label>
                        <asp:HiddenField ID="Hf_CycleId" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content,CreditLimits%>" HeaderStyle-CssClass="col-xs-3">
                    <ItemTemplate>
                        <table class="table small">
                            <tbody>

                                <tr>
                                    <td class="col-xs-5 row-label">
                                        <asp:Label ID="Label15" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,GN00001373%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-7">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_CreditLimit" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-5 row-label">
                                        <asp:Label ID="Label16" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,GN00001027%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-7">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_AlertThreshold" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Content,strLimitUsed%>" HeaderStyle-CssClass="col-xs-2">
                    <ItemTemplate>
                        <asp:Label ID="Lbl_CurrentUsed" runat="server" ReadOnly="true"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <%--PagerTemplate Start--%>
            <%--<PagerTemplate>
                <em:pager id="Pager1" runat="server" />
            </PagerTemplate>--%>
            <%--PagerTemplate End--%>
        </asp:GridView>

        <div class="row">
            <div class="col-xs-12">
                <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_SaveVM" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,Save%>" />
            </div>
        </div>

        <div id="Div_ImportVM" runat="server" visible="false" class="row">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3><%= Resources.Content.strImport%>  </h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *<asp:Literal ID="Literal1" EnableViewState="false" runat="server" Text="<%$ Resources:Content,selectExcelFileToImport%>" />:
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <div class="form-group">
                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                        <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                            <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                            <asp:FileUpload ID="FU_Subs" runat="server" />
                                        </span>
                                        <span class="fileupload-preview"></span>
                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                    </div>
                                    <span><%= Resources.Content.ExportFirst %></span>
                                </div>
                            </div>


                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_NextVMs" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN00001242%>" />
                                <asp:Button ID="Btn_ImportVMsCancel" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
