<%@ control language="VB" autoeventwireup="false" inherits="Billing_StatmentDetail, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>
<%@ 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">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN0000835%>      <%--Operations--%>                                                                                                                             
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal207" runat="server" Text="<%$ Resources:Content,GN00001497%>"
                                EnableViewState="false" />:<label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_PaymentGroups" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <div class="form-group">
                            <asp:LinkButton ID="LB_SetDefaultCurrency" runat="server" Text='<%$ Resources:Content, GN00001569 %>' class="btn btn-primary waves-effect btnAction" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal42" runat="server" Text="<%$ Resources:Content,GN00001498%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12" id="Td_BillingMethod" runat="server">
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN0000837%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12" id="Td_TotalCharges" runat="server">
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN0000838%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12" id="Td_TotalPayments" runat="server">
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,GN0000693%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12" id="Td_Balance" runat="server">
                    </div>
                </div>
                <div class="row" id="Tr_MonthlyBillingDay" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,DGN1110078%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12" id="Td_BillingDay" runat="server">
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <div class="form-group">
                            <asp:LinkButton ID="LB_Change" runat="server" Text='<%$ Resources:Content, GN0000385 %>' class="btn btn-primary waves-effect btnAction" />
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_ChangeMonthlyBillingDay" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,DGN1110078%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:DropDownList ID="DDL_BillingDay" runat="server">
                            <asp:ListItem Selected="True" Value="0" Text="<%$ Resources:Content, DGN1110079 %>"></asp:ListItem>
                            <asp:ListItem Value="1" Text="<%$ Resources:Content, GN00001032 %>"></asp:ListItem>
                            <asp:ListItem Value="2" Text="<%$ Resources:Content, GN00001033 %>"></asp:ListItem>
                            <asp:ListItem Value="3" Text="<%$ Resources:Content, GN00001034 %>"></asp:ListItem>
                            <asp:ListItem Value="4" Text="<%$ Resources:Content, GN00001035 %>"></asp:ListItem>
                            <asp:ListItem Value="5" Text="<%$ Resources:Content, GN00001036 %>"></asp:ListItem>
                            <asp:ListItem Value="6" Text="<%$ Resources:Content, GN00001037 %>"></asp:ListItem>
                            <asp:ListItem Value="7" Text="<%$ Resources:Content, GN00001038 %>"></asp:ListItem>
                            <asp:ListItem Value="8" Text="<%$ Resources:Content, GN00001039 %>"></asp:ListItem>
                            <asp:ListItem Value="9" Text="<%$ Resources:Content, GN00001040 %>"></asp:ListItem>
                            <asp:ListItem Value="10" Text="<%$ Resources:Content, GN00001041 %>"></asp:ListItem>
                            <asp:ListItem Value="11" Text="<%$ Resources:Content, GN00001042 %>"></asp:ListItem>
                            <asp:ListItem Value="12" Text="<%$ Resources:Content, GN00001043 %>"></asp:ListItem>
                            <asp:ListItem Value="13" Text="<%$ Resources:Content, GN00001044 %>"></asp:ListItem>
                            <asp:ListItem Value="14" Text="<%$ Resources:Content, GN00001045 %>"></asp:ListItem>
                            <asp:ListItem Value="15" Text="<%$ Resources:Content, GN00001046 %>"></asp:ListItem>
                            <asp:ListItem Value="16" Text="<%$ Resources:Content, GN00001047 %>"></asp:ListItem>
                            <asp:ListItem Value="17" Text="<%$ Resources:Content, GN00001048 %>"></asp:ListItem>
                            <asp:ListItem Value="18" Text="<%$ Resources:Content, GN00001049 %>"></asp:ListItem>
                            <asp:ListItem Value="19" Text="<%$ Resources:Content, GN00001050 %>"></asp:ListItem>
                            <asp:ListItem Value="20" Text="<%$ Resources:Content, GN00001051 %>"></asp:ListItem>
                            <asp:ListItem Value="21" Text="<%$ Resources:Content, GN00001052 %>"></asp:ListItem>
                            <asp:ListItem Value="22" Text="<%$ Resources:Content, GN00001053 %>"></asp:ListItem>
                            <asp:ListItem Value="23" Text="<%$ Resources:Content, GN00001054 %>"></asp:ListItem>
                            <asp:ListItem Value="24" Text="<%$ Resources:Content, GN00001055 %>"></asp:ListItem>
                            <asp:ListItem Value="25" Text="<%$ Resources:Content, GN00001056 %>"></asp:ListItem>
                            <asp:ListItem Value="26" Text="<%$ Resources:Content, GN00001057 %>"></asp:ListItem>
                            <asp:ListItem Value="27" Text="<%$ Resources:Content, GN00001058 %>"></asp:ListItem>
                            <asp:ListItem Value="28" Text="<%$ Resources:Content, GN00001059 %>"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:LinkButton ID="LB_ChangeOk" runat="server" Text='<%$ Resources:Content, GN0000858 %>' class="btn btn-primary waves-effect" />
                    </div>
                </div>
                <div class="row" id="Tr_DefaultBillingAccount" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,DGN1110080%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12" id="Td_BillingAccount" runat="server">
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <div class="form-group">
                            <asp:LinkButton ID="LB_ChangeBillAccount" runat="server" Text='<%$ Resources:Content, GN0000385 %>' class="btn btn-primary waves-effect btnAction" />
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_ChangeBillingAccount" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,DGN1110080%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:DropDownList ID="DDL_BillingAccounts" runat="server">
                        </asp:DropDownList>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:LinkButton ID="LB_ChangeBillingAccount" runat="server" Text='<%$ Resources:Content, GN0000858 %>' class="btn btn-primary waves-effect btnAction" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,DGN1110081%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12" id="Td_LastInvoice" runat="server">
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <div class="form-group">
                            <asp:LinkButton ID="LB_GenerateInvoices" runat="server" Text='<%$ Resources:Content, SPT0010051 %>' class="btn btn-primary waves-effect btnAction" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content, SendBillingEmailsTo %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-7 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SendBillingEmailsTo" runat="server" />
                            </div>
                        </div>
                        <br /><small class="row-label"><%= Resources.Content.SpecifyCommaSeparatedEmails %></small>
                        <br />
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_SendEmailsToBillingOnly" runat="server" Text='<%$ Resources:Content, SendEmailsToBillingOnly %>' />
                        </div>
                    </div>
                    <div class="col-sm-2 col-xs-12">
                        <asp:Button ID="Btn_SaveSendBillingEmailsTo" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Save %>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN00001363%>      <%--Filter Records--%>                                                                                                                             
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12 col-sm-4">
                        <label class="row-label display-date-label">
                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN0000687%>" EnableViewState="false" />:
                        </label>
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_DateAfter" Enabled="false" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_DRangeAfter" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_DRangeAfter" runat="server" TargetControlID="TxBx_DateAfter"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>" PopupButtonID="A_DRangeAfter" CssClass="date__calendar">
                        </EM:CalendarExtender>
                    </div>
                    <div class="col-xs-12 col-sm-3">
                        <label class="row-label display-date-label">
                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,GN0000688%>" EnableViewState="false" />:
                        </label>
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_DateBefore" Enabled="false" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_DRangeBefore" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_DRangeBefore" runat="server" TargetControlID="TxBx_DateBefore"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>" PopupButtonID="A_DRangeBefore" CssClass="date__calendar">
                        </EM:CalendarExtender>
                    </div>
                    <div class="col-xs-12 col-sm-3">
                        <div class="form-group">
                            <asp:DropDownList ID="Ddl_DocumentType" runat="server">
                                <asp:ListItem Text='<%$ Resources:Content,SelectDocumentType %>' Value="0"></asp:ListItem>
                                <%--<asp:ListItem Text='<%$ Resources:Content,GN0000265 %>' Value="GN0000265"></asp:ListItem>--%>
                                <asp:ListItem Text='<%$ Resources:Content,GN0000336 %>' Value="GN0000336"></asp:ListItem>
                                <asp:ListItem Text='<%$ Resources:Content,GN0000337 %>' Value="GN0000337"></asp:ListItem>
                                <asp:ListItem Text='<%$ Resources:Content,GN0000338 %>' Value="GN0000338"></asp:ListItem>
                                <asp:ListItem Text='<%$ Resources:Content,GN0000340 %>' Value="GN0000340"></asp:ListItem>
                                <asp:ListItem Text='<%$ Resources:Content,GN0000341 %>' Value="GN0000341"></asp:ListItem>
                                <asp:ListItem Text='<%$ Resources:Content,GN0000264 %>' Value="GN0000264"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-xs-12 col-sm-2">
                        <asp:Button ID="Btn_RangeGo" runat="server" Text='<%$ Resources:Content, GN0000395 %>' class="btn btn-primary waves-effect" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN00001320%>      <%--Operations--%>                                                                                                                             
                </h3>
            </div>
            <div class="body">
                <asp:Button ID="Btn_NewCredit" runat="server" Text="<%$ Resources:Content, DGN1110084 %>" class="btn btn-primary waves-effect btnAction" />
            </div>
        </div>
    </div>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN0000835%>      <%--Operations--%>                                                                                                                             
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12 row-label" id="Div_PrevBalance" runat="server">
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <CustomGrid:MPGridView EmptyDataText="<%$ Resources:Content,GN00001375%>" ID="GV_Statments" AllowPaging="true"
                            AutoGenerateColumns="false" runat="server" CssClass="table table-bordered table-striped table-hover">

                            <Columns>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000678 %>' HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <div id="Div_Id" runat="server">
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000673 %>' HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <div id="Div_Type" runat="server">
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN000114 %>' HeaderStyle-CssClass="col-xs-3">
                                    <ItemTemplate>
                                        <div id="Div_Total" runat="server">
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000693 %>' HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <div id="Div_Balance" runat="server">
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000721 %>' HeaderStyle-CssClass="col-xs-3">
                                    <ItemTemplate>
                                        <div id="Div_Date" runat="server">
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <UC:Pager ID="Pager" runat="server" />
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </CustomGrid:MPGridView>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 row-label" id="Div_BalSignRule" runat="server">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
