<%@ control language="VB" autoeventwireup="false" inherits="RCC_Clients_CC_AzureRates, 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" %>

<%--Search Option--%>
<asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_SrchAzureRates">
    <div class="row">
        <div class="panel-group search-panel" id="AS_AzureRates" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_AzureRates">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_AzureRates" href="#<%= CSB_AzureRates.ClientID%>" aria-expanded="true" aria-controls="SH_AzureRates">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_AzureRates" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_AzureRates" 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_MeterName" runat="server"></asp:TextBox>
                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,MeterName%>" class="form-label"></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_SrchCategory" runat="server" MaxLength="200"></asp:TextBox>
                                        <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001286%>" class="form-label"></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_SubCategory" runat="server"></asp:TextBox>
                                        <asp:Label ID="Label9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SubCategory%>" class="form-label"></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_Region" runat="server"></asp:TextBox>
                                        <asp:Label ID="Label10" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync362%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>

                            <div class="col-xs-12">
                                <div class="form-group form-float">
                                    <asp:Button ID="Btn_SrchAzureRates" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                        Text="<%$ Resources:Content,String289 %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<div class="row" id="Div_AzureRates" runat="server">
    <div class="col-xs-12">
        <CustomGrid:MPGridView EmptyDataText="<%$ Resources:Content, GN00001375 %>" ID="GV_AzureRates" AllowPaging="True" AutoGenerateColumns="false"
            runat="server" CssClass="table table-bordered table-striped table-hover" CurrentSortExpression="MeterId" CurrentSortDirection="DESC">

            <Columns>
                <asp:TemplateField HeaderText='<%$ Resources:Content, Meter %>' HeaderStyle-CssClass="col-xs-4" SortExpression="MeterName">
                    <ItemTemplate>
                        <table class="table small">
                            <tbody>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.MeterName%>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_MeterName" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.MeterId%>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_MeterId" runat="server" />
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0001286  %>' HeaderStyle-CssClass="col-xs-4" SortExpression="Category">
                    <ItemTemplate>

                        <table class="table small">
                            <tbody>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.GN0001286%>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_Category" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.SubCategory%>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_SubCategory" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.strIncludedQuantity%>: 
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_IncludedQuantity" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.strUnit%>: 
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_Unit" runat="server" />
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText='<%$ Resources:Content, Rates %>' HeaderStyle-CssClass="col-xs-4">
                    <ItemTemplate>

                        <table class="table small">
                            <tbody>
                                <tr id="tr_MicrosoftRate" runat="server" visible="false">
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.MicrosoftRate%>: 
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_MicrosoftRate" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.strCustomerRate%>: 
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_Rate" runat="server" />
                                    </td>
                                </tr>

                                <tr id="tr_ProviderIncome" runat="server" visible="false">
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.ProviderIncome%>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_ProviderIncome" runat="server" />
                                    </td>
                                </tr>
                                <tr id="tr_ResellerIncome" runat="server" visible="false">
                                    <td class="col-xs-4 row-label">
                                        <%= Resources.Content.ResellerIncome%>: 
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Label ID="lbl_ResellerIncome" runat="server" />
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerTemplate>
                <UC:Pager ID="Pager" runat="server" />
            </PagerTemplate>
        </CustomGrid:MPGridView>
    </div>
</div>
