<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Billing_VCreditAdj, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>


<asp:Content ID="Content8" ContentPlaceHolderID="CPH_Content" runat="Server">

    <script type="text/javascript">

        function onOk() {
            if (document.getElementById('ctl00_CPH_Content_TC_Credits_Tab_AllPayments_TxBx_CancelComments').value != '') {
                __doPostBack('ctl00$CPH_Content$TC_Credits$Tab_AllPayments$Btn_Pop_OK', '');
            }
            else {
                alert("Please enter comments.");
                $find('ctl00_CPH_Content_TC_Credits_Tab_AllPayments_MP1').show();
            }

        }

    </script>

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <div class="body">

                <EM:TabContainer ID="TC_Credits" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_AllPayments" runat="server" HeaderText='<%$ Resources:Content, GN0000843 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div class="row Div_OpsRow" id="tbl_OperationsBox" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_Cancel" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, Cancel %>' />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">

                                        <div class="card">
                                            <div class="header">
                                                <h3><%= Resources.Content.DGN1110413 %></h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Div10" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000850 %>' />:
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12" id="Td_Client" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000777 %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12" id="Td_ReferenceNo" runat="server"></div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000721 %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12" id="Td_Date" runat="server"></div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text='<%$ Resources:Content, String385 %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12" id="Td_Status" runat="server"></div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN000114 %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12" id="Td_Total" runat="server"></div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000693 %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12" id="Td_Balance" runat="server"></div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000746 %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12" id="Td_Comment" runat="server"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>

                            <asp:Panel ID="Panel1" CssClass="width-modal-popup-auto" runat="server" Style="display: none;">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN00001371 %>' /></h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <label>*<asp:Literal ID="Ltl_GN000148" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN000148 %>' /></label>
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:TextBox ID="TxBx_CancelComments" runat="server" Height="150px" TextMode="MultiLine" Width="100%"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="Btn_Pop_OK" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content, GN0000710 %>' />
                                                        <asp:Button ID="Btn_Pop_Cancel" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content, GN0000572 %>' />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                            <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
                                OnOkScript="onOk()" DropShadow="false" OkControlID="Btn_Pop_OK"
                                PopupControlID="Panel1" TargetControlID="Btn_Cancel">
                            </EM:ModalPopupExtender>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="TabPanel1" runat="server" HeaderText='<%$ Resources:Content, GN00001370 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:GridView ID="GV_Invoices" runat="server" AutoGenerateColumns="False" CssClass="table table-bordered table-striped table-hover">

                                                            <Columns>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000718 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <div runat="server" id="Div_InvoiceId"></div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN00001496 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <div id="Div_Date" runat="server">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000722 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <div id="Div_DueDate" runat="server">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, String385 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <div id="Div_Status" runat="server">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000693 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <div id="Div_Balance" runat="server">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN000148 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <div id="Div_Comments" runat="server">
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>

            </div>
        </div>
    </div>


</asp:Content>
