<%@ control language="VB" autoeventwireup="false" inherits="RCC_Billing_CC_AzureBillDetail, 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">
        <asp:Button ID="Btn_AzuleBillExportToExcel" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content, Ex001 %>' CausesValidation="false" />
    </div>
    <div class="col-xs-12">
        <CustomGrid:MPGridView ID="GV_AzureBillDetail" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False" CurrentSortExpression="ResourceName" CurrentSortDirection="DESC">

            <Columns>
                <asp:TemplateField HeaderText='<%$ Resources:Content, strMeter %>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4" SortExpression="ResourceName">
                    <ItemTemplate>
                        <table class="table small">
                            <tbody>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblMeter" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strMeter%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="LtrlMeter" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ResourceName")%>'></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="Label1" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,GN0001286%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="LtlCategory" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ServiceType")%>'></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="Literal6" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strSubCategory%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="LtlSubCategory" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ServiceName")%>'></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblMeterid" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strMeterId%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="LtlMeterId" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ResourceId")%>'></asp:Literal>
                                    </td>
                                </tr>


                            </tbody>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText='<%$ Resources:Content, SPT001003 %>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                    <ItemTemplate>

                        <table class="table small">
                            <tbody>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblUnit" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strUnit%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="ltlUnit" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Unit")%>'></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblConsumedQuantity" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strConsumedQuantity%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="ltlConsumedQuantity" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ConsumedQuantity")%>'></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblIncludedQuantity" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strIncludedQuantity%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="ltlIncludedQuantity" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.IncludedQuantity")%>'></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblOverageQuantity" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strOverageQuantity%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="ltlOverageQuantity" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.OverageQuantity")%>'></asp:Literal>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText='<%$ Resources:Content, GN00001490 %>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                    <ItemTemplate>

                        <table class="table small">
                            <tbody>
                                <tr id="trMicrosoftRate" runat="server">
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblMicrosoftRate" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strMicrosoftRate%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="LtlMicrosoftRate" runat="server" Text='<%# ViewState("Currency") & " " & Utility.RoundTo2(DataBinder.Eval(Container, "DataItem.MicrosoftPrice"))%>'></asp:Literal>
                                    </td>
                                </tr>

                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblCustomerPrice" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strCustomerRate%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="LtlRate" runat="server" Text='<%# ViewState("Currency") & " " & Utility.RoundTo2(DataBinder.Eval(Container, "DataItem.CustomerPrice"))%>'></asp:Literal>
                                    </td>
                                </tr>

                                <tr>
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblCustomerCharges" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strCustomerCharges%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="ltlCustomerCharges" runat="server" Text='<%# ViewState("Currency") & " " & Utility.RoundTo2(DataBinder.Eval(Container, "DataItem.CustomerCharges"))%>'></asp:Literal>
                                    </td>
                                </tr>
                                <tr id="trProviderIncome" runat="server">
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblProviderIncome" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strProviderIncome%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="ltrlProviderIncome" runat="server" Text='<%# ViewState("Currency") & " " & Utility.RoundTo2(DataBinder.Eval(Container, "DataItem.ProviderIncome"))%>'></asp:Literal>
                                    </td>
                                </tr>
                                <tr id="trResellerIncome" runat="server">
                                    <td class="col-xs-4 row-label">
                                        <asp:Label ID="lblResellerIncome" runat="server"
                                            EnableViewState="false" Text='<%$ Resources:Content,strResellerIncome%>'></asp:Label>:
                                    </td>
                                    <td class="col-xs-8">
                                        <asp:Literal ID="ltrlResellerIncome" runat="server" Text='<%# ViewState("Currency") & " " & Utility.RoundTo2(DataBinder.Eval(Container, "DataItem.ResellerIncome"))%>'></asp:Literal>
                                    </td>
                                </tr>

                            </tbody>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <%--PagerTemplate Start--%>
            <PagerTemplate>
                <UC:Pager ID="Pager" runat="server" />
            </PagerTemplate>
            <%--PagerTemplate End--%>
        </CustomGrid:MPGridView>
    </div>
</div>
