<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true" CodeFile="TSearchAll.aspx.cs" Inherits="Business_TSearchAll" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
	<!-- DataTables -->
	<link rel="stylesheet" href="../plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
	<link rel="stylesheet" href="../plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
	<link rel="stylesheet" href="../plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
    <link rel="stylesheet" href="../dist/css/dtHorizontal.css">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
	<asp:ScriptManager ID="ScriptManager1" runat="server">
	</asp:ScriptManager>
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
	<section class="content-header">
	  <div class="container-fluid">
		<div class="row mb-2">
		  <div class="col-sm-6">
			<h1>All Transaction</h1>
		  </div>
		  <div class="col-sm-6">
			<ol class="breadcrumb float-sm-right">
			  <li class="breadcrumb-item"><a href="#">Home</a></li>
			  <li class="breadcrumb-item active">Transaction Search</li>
			  <li class="breadcrumb-item active">All Transaction</li>
			</ol>
		  </div>
		</div>
	  </div><!-- /.container-fluid -->
	</section>

		<!-- /.content-header -->
		<!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <div class="card card-warning">
                    <%--<div class="card-header">
                <h3 class="card-title">Search Filters</h3>
              </div>--%>
                    <!-- /.card-header -->
                    <div class="card-body">
                        <div class="row">
                            <div class="col-sm-4">
                                <label>Terminal ID</label>
                                <div class="form-group">
                                    <div class="form-group">
                                        <asp:TextBox ID="txtATM" runat="server" class="form-control" MaxLength="16"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <label>Card Number</label>
                                <div class="form-group">
                                    <asp:TextBox ID="txtCardNumber" runat="server" class="form-control" MaxLength="19"></asp:TextBox>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <label>Reference Number</label>
                                <div class="form-group">
                                    <asp:TextBox ID="txtRefNo" runat="server" class="form-control" MaxLength="19"></asp:TextBox>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <label>Account Number</label>
                                <div class="form-group">
                                    <asp:TextBox ID="txtAccountNo" runat="server" class="form-control" MaxLength="19"></asp:TextBox>
                                </div>
                            </div>
                            <div class="col-sm-4">
                            <div class="form-group">
                                <label>Date (From) <span style="color: Red">*</span></label>
                                <div class="input-group date" id="sfdate" data-target-input="nearest">
                                    <asp:TextBox ID="txtsfdate" data-target="#sfdate" runat="server" class="form-control datetimepicker-input"></asp:TextBox>
                                    <div class="input-group-append" data-target="#sfdate" data-toggle="datetimepicker">
                                        <div class="input-group-text"><i class="fa fa-calendar"></i></div>
                                    </div>
                                    <asp:TextBox ID="picksfdate" runat="server" Visible="false" class="form-control"></asp:TextBox>
                                </div>
                            </div>
                            </div>
                            <div class="col-sm-4">
                            <div class="form-group">
                                <label>Date (To) <span style="color: Red">*</span></label>
                                <div class="input-group date" id="stdate" data-target-input="nearest">
                                    <asp:TextBox ID="txtstdate" data-target="#stdate" runat="server" class="form-control datetimepicker-input"></asp:TextBox>
                                    <div class="input-group-append" data-target="#stdate" data-toggle="datetimepicker">
                                        <div class="input-group-text"><i class="fa fa-calendar"></i></div>
                                    </div>
                                    <asp:TextBox ID="pickstdate" runat="server" Visible="false" class="form-control"></asp:TextBox>
                                </div>
                            </div></div>
                            <div class="col-12" style="text-align: center">
                                <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btn btn-primary btn-l" OnClick="btnSearch_Click" />
                            </div>
                        </div>
                        <!-- /.card-body -->
                    </div>

                    </div>

                    <!-- pnlControls -->
                <div class="row">
                    <div class="modal fade" id="pnlControls-modal-xl">
                        <div class="modal-dialog modal-xl" style="max-width: max-content;">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">Transaction details</h4>
                                    <asp:Label ID="lblpnlControls" runat="server" Visible="false"></asp:Label>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true">&times;</span>
                                    </button>
                                </div>
                                <div class="modal-body">
                                    <div class="row card-body">
                                        <div class="col-sm-3">
                                            <label>Transaction Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label1" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Time</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label2" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Card Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label3" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Terminal ID</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label4" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Amount</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label5" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Currency</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label6" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>PCode</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label7" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Reference Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label8" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Acquirer</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label9" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Issuer</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label10" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Message type</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label11" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Reconciliation Status</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label12" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Merchant Paid?</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label13" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Trace ID</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label14" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3" visible="false">
                                            <label>B24 Response</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label15" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Card Brand</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label16" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Card Expiry Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label17" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Account Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label18" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Authorization Code</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label19" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Business Class</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label20" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Status</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label21" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Settlment Currency</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label22" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Settlment Amount</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label23" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Change</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label24" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Event</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label25" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Product</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label26" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Original Sequence Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label27" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Original Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label28" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Amount 2</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label29" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Amount 3</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label30" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Authenticate amount</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label31" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Match Criteria</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label32" runat="server"></asp:Label>
                                            </div>
                                        </div>

                                        <div class="col-sm-12">
                                            <asp:GridView ID="GridView2" class="table table-bordered table-hover" runat="server" AutoGenerateColumns="False" EmptyDataText="There are no results">
                                                <Columns>
                                                    <asp:BoundField DataField="channel_name" HeaderText="Channel Name" />
                                                    <asp:BoundField DataField="mresult" HeaderText="Match Result" />
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                        <!-- Start: pnlClaim -->
                                            <div class="col-sm-3">
                                                <label>Card Number</label>
                                                <div class="form-group">
                                                    <asp:TextBox ReadOnly="true" ID="txtInputCard" runat="server" class="form-control"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-sm-3">
                                                <label>Transaction Date</label>
                                                <div class="form-group">
                                                    <asp:TextBox ReadOnly="true" ID="txtInputTransactionDate" runat="server" class="form-control"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-sm-3">
                                                <label>Terminal ID</label>
                                                <div class="form-group">
                                                    <asp:TextBox ReadOnly="true" ID="txtInputTerminalID" runat="server" class="form-control"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-sm-3">
                                                <label>Amount</label>
                                                <div class="form-group">
                                                    <asp:TextBox ReadOnly="true" ID="txtInputAmount" runat="server" class="form-control"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-sm-3">
                                                <label>Reference No</label>
                                                <div class="form-group">
                                                    <asp:TextBox ReadOnly="true" ID="txtInputReference" runat="server" class="form-control"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-sm-3">
                                                <label>New RRN</label>
                                                <div class="form-group">
                                                    <asp:TextBox ReadOnly="false" ID="txtNewRRN" runat="server" class="form-control"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-sm-3">
                                                <label>&nbsp;</label>
                                                <div class="form-group">
                                                    <asp:TextBox ReadOnly="true" ID="txtHDATE" runat="server" class="form-control"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-sm-3">
                                                <label>&nbsp;</label>
                                                <div class="form-group">
                                                    <asp:TextBox ReadOnly="true" ID="txtHMTCODE" runat="server" class="form-control"></asp:TextBox>
                                                </div>
                                            </div>
                                        <%--</section> --%><!-- End: pnlClaim -->
                                    </div>
                            </div>
                            <div class="modal-footer justify-content-between">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                <asp:Button ID="btnSaveClaim" runat="server" Text="Save Claim" class="btn btn-primary btn-l" OnClick="btnSave_Click" />
                            </div>
                            </div>
                                <!-- /.modal-content -->
                        </div>
                        <!-- /.modal-dialog -->
                    </div>
                    <!-- /.modal -->
                </div>

                <!-- pnlControlsChannel -->
                <div class="row">
                    <div class="modal fade" id="pnlControlsChannel-modal-xl">
                        <div class="modal-dialog modal-xl" style="max-width: max-content;">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">Transaction details</h4>
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true">&times;</span>
                                    </button>
                                </div>
                                <div class="modal-body">
                                    <div class="row card-body">

                                        <div class="col-sm-3">
                                            <label>Record Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label33" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Settlement Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label34" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label35" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Time</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label36" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Card Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label37" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>ISO Response</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label38" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Terminal ID</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label39" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Amount</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label40" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Acquirer</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label41" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Issuer</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label42" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Message Type</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label43" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Trace ID</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label44" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>File Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label45" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Card brand</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label46" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Reference Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label47" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Card Expiry Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label48" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Account Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label49" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Auth Code</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label50" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Business class</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label51" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Recon status</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label52" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction currency</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label53" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Settlement currency</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label54" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Settlement amount</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label55" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction change</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label56" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Match result</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label57" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Chip index</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label58" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Channel name</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label59" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Event name</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label60" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>PCODE</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label61" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Financial flag</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label62" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Product</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label63" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Message Reason Code</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label64" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Settlment flag</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label65" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>HOST indicator</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label66" runat="server"></asp:Label>
                                            </div>
                                        </div>

                                    </div>
                                </div>
                                <div class="modal-footer justify-content-between">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            </div>
                            </div>
                            <!-- /.modal-content -->
                        </div>
                        <!-- /.modal-dialog -->
                    </div>
                    <!-- /.modal -->
                </div>

                <!-- pnlControlsEJ -->
                <div class="row">
                    <div class="modal fade" id="pnlControlsEJ-modal-xl">
                        <div class="modal-dialog modal-xl" style="max-width: max-content;">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title">EJ Item details</h4>
                                    <button type="button" class="close" data-dismiss="confirmation-glentry-modal" aria-label="Close">
                                        <span aria-hidden="true">&times;</span>
                                    </button>
                                </div>
                                <div class="modal-body">
                                    <div class="row card-body">

                                        <div class="col-sm-3">
                                            <label>Card Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label67" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Sequence Number</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label68" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Status</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label69" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label70" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Time</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label71" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Settle Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label72" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Account</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label73" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Transaction Currency</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label74" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Amount</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label75" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Status</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label76" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Terminal ID</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label77" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Record Date</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label78" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>Processing flag</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label79" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>

                                        <% if (Validate_Manager.Validate_Data(lblDenom.Text.Trim(), 1))
                                            {
                                        %>
                                        <div class="col-sm-3">
                                            <label>disp a</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label80" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>disp b</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label81" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>disp c</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label82" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-sm-3">
                                            <label>disp d</label>
                                            <div class="form-group">
                                                <asp:Label ID="Label83" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <%} %>

                                        <% if (Validate_Manager.Validate_Data(lblDenom.Text.Trim(), 2))
                                            {
                                        %>
                                        <div class="col-sm-3">
                                            <label>Denomination</label>
                                            <div class="form-group">
                                                <asp:Label ID="lblDenom" runat="server" Font-Bold="True"></asp:Label>
                                            </div>
                                        </div>
                                        <%} %>

                                        <div class="col-sm-12">
                                            <label>EDC status</label>
                                            <div class="form-group">
                                                <asp:GridView ID="GridView3" class="table table-bordered table-hover" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText="There are no results">
                                                    <Columns>
                                                        <asp:BoundField DataField="status" HeaderText="Status" />
                                                        <asp:BoundField DataField="stat_desc" HeaderText="Description" />
                                                        <%--<asp:BoundField DataField="claim_flag" HeaderText="Claim Flag" />--%>
                                                        <asp:BoundField DataField="TERM_TRACE" HeaderText="Trace" />
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer justify-content-between">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                </div>
                            </div>
                            <!-- /.modal-content -->
                        </div>
                        <!-- /.modal-dialog -->
                    </div>
                    <!-- /.modal -->
                </div>

                </div>
                <!-- /.container-fluid -->
        </section>

        <!-- pnlResult -->
        <section id="pnlResult" class="content" visible="false" runat="server">
            <div class="container-fluid">
                <div class="card card-warning">
                    <div class="row mb-4">
                        <div class="col-md-12">
                            <div class="card-header">
                                    <h3 class="card-title">
                                        <i class="fas fa-tag"></i>
                                        Master Transaction Search Results
                                    </h3>

                                    <div class="card-tools">
                                        <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                                            <i class="fas fa-minus"></i>
                                        </button>
                                    </div>
                                </div>
                            <div class="card-body">

                                <%--<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="mt_code" OnRowCommand="GridView1_RowCommand" EmptyDataText="There are no results">
                                <asp:TemplateField>
                                    <Columns>
                                <table id="dtHorizontalVertical" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
                                    <thead>
                                        <HeaderTemplate>
                                        <tr>
                                            <th>Tran&nbsp;Date</th>
                                            <th>Tran&nbsp;Time</th>
                                            <th>Txn&nbsp;Type</th>
                                            <th>Card&nbsp;Number</th>
                                            <th>Financial&nbsp;Flag</th>
                                            <th>Terminal&nbsp;ID</th>
                                            <th>Acquirer</th>
                                            <th>Issuer</th>
                                            <th>Reference&nbsp;No</th>
                                            <th>Product</th>
                                            <th>Amount</th>
                                            <th>Settl&nbsp;Amount</th>
                                            <th>Settl&nbsp;Currency</th>
                                            <th>Tran&nbsp;Curr</th>
                                            <th>Pcode&nbsp;Type</th>
                                            <th>Actions</th>
                                        </tr>
                                        </HeaderTemplate>
                                    </thead>
                                    
                                    <tbody>
                                        <ItemTemplate>
                                        <tr>
                                            <td><asp:Label runat="server" ID="CustomerID" Text='<% #Eval("TRAN_DATE") %>'></asp:Label></td>
                                            <td>Nixon</td>
                                            <td>System Architect</td>
                                            <td>Edinburgh</td>
                                            <td>61</td>
                                            <td>2011/04/25</td>
                                            <td>$320,800</td>
                                            <td>5421</td>
                                            <td>t.nixon@datatables.net</td>
                                        </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            Go To Page&nbsp;: &nbsp;<asp:DropDownList ID="ddlPages" runat="server" class="form-control select2" AutoPostBack="True" Width="100px" Height="30px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged"></asp:DropDownList>
                                        </FooterTemplate>
                                    </tbody>
                                </table></Columns>
                                </asp:TemplateField>
                                
                                </asp:GridView>--%>

                                <div style="width: 100%; display: inline-block;vertical-align: top; overflow-x: auto;">
                                    <asp:GridView ID="GridView1" class="table table-striped table-bordered table-sm" runat="server" AutoGenerateColumns="False"
                                DataKeyNames="mt_code" OnRowCommand="GridView1_RowCommand" EmptyDataText="There are no results">
                                <Columns>
                                    <asp:BoundField DataField="TRAN_DATE" HeaderText="Tran&nbsp;Date" />
                                    <asp:BoundField DataField="TRAN_TIME" HeaderText="Tran&nbsp;Time" />
                                    <asp:BoundField DataField="msg_type" HeaderText="Txn&nbsp;Type" />
                                    <asp:BoundField DataField="CARD_NUMBER" HeaderText="Card&nbsp;Number" />
                                    <asp:BoundField DataField="FINANCIAL_FLAG" HeaderText="Financial&nbsp;Flag" />
                                    <asp:BoundField DataField="TERM_ID" HeaderText="Terminal&nbsp;ID" />
                                    <asp:BoundField DataField="TRAN_SOURCE" HeaderText="Acquirer" />
                                    <asp:BoundField DataField="TRAN_DEST" HeaderText="Issuer" />
                                    <asp:BoundField DataField="RRN" HeaderText="Reference&nbsp;No" />
                                    <asp:BoundField DataField="PRODUCT" HeaderText="Product" />
                                    <asp:BoundField DataField="TRAN_AMOUNT" HeaderText="Amount" />
                                    <asp:BoundField DataField="SETTL_AMOUNT" HeaderText="Settl&nbsp;Amount" />
                                    <asp:BoundField DataField="SETTL_CURR" HeaderText="Settl&nbsp;Currency" />
                                    <asp:BoundField DataField="TRAN_CURR" HeaderText="Tran&nbsp;Curr" />
                                    <asp:BoundField DataField="Pcode_Type" HeaderText="Pcode&nbsp;Type" />
                                    <asp:TemplateField HeaderText="Actions" Visible="true">
                                        <ItemTemplate>
                                            <button type="button" class="btn btn-default btn-block btn-xs dropdown-toggle" data-toggle="dropdown">
                                                Action
                                            </button>
                                            <div class="dropdown-menu">
                                                <a class="dropdown-item" href="#">
                                                    <asp:Button ID="Button5" CssClass="btn btn-outline-info btn-block btn-sm" runat="server" Text="View" CommandName="v" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" /></a>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>
                            
                                </div>
                                <div class="row" style="margin-left:1%; margin-top:1%; margin-bottom:1%">
                                    <div style="margin-top:3px;"><asp:Label ID="LGTP" runat="server" Text="Go To Page"></asp:Label>&nbsp;: &nbsp;</div>
                                    <asp:DropDownList ID="ddlPages" runat="server" class="form-control select2" AutoPostBack="True" Width="7%" Height="6%" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged"></asp:DropDownList>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- pnlResultChannel -->
        <section id="pnlResultChannel" class="content" visible="false" runat="server">
            <div class="container-fluid">
                <div class="card card-warning">
                    <div class="row mb-4">
                        <div class="col-md-12">
                            <div class="card-header">
                                    <h3 class="card-title">
                                        <i class="fas fa-tag"></i>
                                        Channel Transaction Search Results
                                    </h3>

                                    <div class="card-tools">
                                        <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                                            <i class="fas fa-minus"></i>
                                        </button>
                                    </div>
                                </div>
                            <div class="card-body">
                                <%--<h5 class="card-title">Channel Transaction Search Results</h5>--%>
                                <!-- Create the editor container -->
                                <div style="width: 100%; display: inline-block;vertical-align: top; overflow-x: auto;"">
                                    <asp:GridView ID="gvChannel" class="table table-striped table-bordered table-sm" runat="server" AutoGenerateColumns="False"
                                        DataKeyNames="ct_code" OnRowCommand="gvChannel_RowCommand" EmptyDataText="There are no results">
                                        <Columns>
                                            <asp:BoundField DataField="channel_name" HeaderText="Channel" />
                                            <asp:BoundField DataField="TRAN_DATE" HeaderText="Tran&nbsp;Date" />
                                            <asp:BoundField DataField="TRAN_TIME" HeaderText="Tran&nbsp;Time" />
                                            <asp:BoundField DataField="msg_type" HeaderText="Tran&nbsp;Type" />
                                            <asp:BoundField DataField="CARD_NUMBER" HeaderText="Card&nbsp;Number" />
                                            <asp:BoundField DataField="FINANCIAL_FLAG" HeaderText="Financial&nbsp;Flag" />
                                            <asp:BoundField DataField="TERM_ID" HeaderText="Term&nbsp;ID" />
                                            <asp:BoundField DataField="TRAN_SOURCE" HeaderText="Acquirer" />
                                            <asp:BoundField DataField="TRAN_DEST" HeaderText="Issuer" />
                                            <asp:BoundField DataField="PRODUCT" HeaderText="Product" />
                                            <asp:BoundField DataField="TRAN_AMOUNT" HeaderText="Amount" />
                                            <asp:BoundField DataField="TRAN_CURR" HeaderText="Tran&nbsp;Curr" />

                                            <asp:TemplateField HeaderText="Actions" Visible="true">
                                                <ItemTemplate>
                                                    <button type="button" class="btn btn-default btn-block btn-xs dropdown-toggle" data-toggle="dropdown">
                                                        Action
                                                    </button>
                                                    <div class="dropdown-menu">
                                                        <a class="dropdown-item" href="#">
                                                            <asp:Button ID="Button5" CssClass="btn btn-outline-info btn-block btn-sm" runat="server" Text="View" CommandName="v" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" /></a>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                        </Columns>
                                    </asp:GridView>
                                </div>
                                <div class="row" style="margin-left:1%; margin-top:1%; margin-bottom:1%">
                                        <div style="margin-top:3px;"><asp:Label ID="Label85" runat="server" Text="Go To Page"></asp:Label>&nbsp;: &nbsp;</div>
                                        <asp:DropDownList ID="ddlPages2" runat="server" class="form-control select2" AutoPostBack="True" Width="7%" Height="6%" OnSelectedIndexChanged="ddlPages2_SelectedIndexChanged"></asp:DropDownList>
                                    </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- pnlResultEJ -->
        <section id="pnlResultEJ" class="content" visible="false" runat="server">
            <div class="container-fluid">
                <div class="card card-warning">
                    <div class="row mb-4">
                        <div class="col-md-12">
                            <div class="card-header">
                                <h3 class="card-title">
                                    <i class="fas fa-tag"></i>
                                    EJ Transactions
                                </h3>

                                <div class="card-tools">
                                    <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                                        <i class="fas fa-minus"></i>
                                    </button>
                                </div>
                            </div>
                            <div class="card-body">
                                <div style="width: 100%; display: inline-block;vertical-align: top; overflow-x: auto;"">
                                <asp:GridView ID="gvEJ" class="table table-striped table-bordered table-sm" runat="server" AutoGenerateColumns="False"
                                    DataKeyNames="ct_code" OnRowCommand="gvEJ_RowCommand" OnRowCreated="gvEJ_RowCreated" EmptyDataText="There are no results">
                                    <Columns>
                                        <asp:BoundField DataField="card_no" HeaderText="Card&nbsp;No" />
                                        <asp:BoundField DataField="tran_date" HeaderText="Date" />
                                        <asp:BoundField DataField="tran_time" HeaderText="Time" />
                                        <asp:BoundField DataField="settle_date" HeaderText="Settle&nbsp;Date" />
                                        <asp:BoundField DataField="txn_cur" HeaderText="Currency" />
                                        <asp:BoundField DataField="amount" HeaderText="Amount" />
                                        <asp:BoundField DataField="terminal_id" HeaderText="Terminal&nbsp;ID" />
                                        <asp:BoundField DataField="record_date" HeaderText="Record&nbsp;Date" />
                                        <asp:BoundField DataField="proc_flag" HeaderText="Proc&nbsp;Flag" />
                                        <asp:BoundField DataField="seq_no" HeaderText="Seq&nbsp;No" />
                                        <asp:BoundField DataField="tran_status" HeaderText="" />
                                        <asp:BoundField DataField="status" HeaderText="" />
                                        <asp:BoundField DataField="luno_id" HeaderText="" />
                                        <asp:BoundField DataField="ACCOUNT" HeaderText="" />
                                        <asp:BoundField DataField="disp_a" HeaderText="" />
                                        <asp:BoundField DataField="disp_b" HeaderText="" />
                                        <asp:BoundField DataField="disp_c" HeaderText="" />
                                        <asp:BoundField DataField="disp_d" HeaderText="" />
                                        <asp:BoundField DataField="txn_date" HeaderText="" />
                                        <asp:BoundField DataField="status_code" HeaderText="" />
                                        <asp:BoundField DataField="acct_src" HeaderText="Customer&nbsp;A/C&nbsp;From" />
                                        <asp:BoundField DataField="dispenser" HeaderText="" />
                                        <asp:TemplateField HeaderText="Actions" Visible="true">
                                            <ItemTemplate>
                                                <button type="button" class="btn btn-default btn-block btn-xs dropdown-toggle" data-toggle="dropdown">
                                                    Action
                                                </button>
                                                <div class="dropdown-menu">
                                                    <a class="dropdown-item" href="#">
                                                        <asp:Button ID="Button5" CssClass="btn btn-outline-info btn-block btn-sm" runat="server" Text="View" CommandName="v" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" /></a>
                                                </div>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                    </Columns>
                                </asp:GridView>
                                </div>
                                <div class="row" style="margin-left:1%; margin-top:1%; margin-bottom:1%">
                                    <div style="margin-top:3px;"><asp:Label ID="Label84" runat="server" Text="Go To Page"></asp:Label>&nbsp;: &nbsp;</div>
                                    <asp:DropDownList ID="ddlPages3" runat="server" class="form-control select2" AutoPostBack="True" Width="7%" Height="6%" OnSelectedIndexChanged="ddlPages3_SelectedIndexChanged"></asp:DropDownList>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

		<!-- /.content -->
	</div>
	<!-- Toastr -->
	<!-- jQuery -->
	<script src="../plugins/jquery/jquery.min.js"></script>
	<!-- Bootstrap 4 -->
	<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
	<!-- SweetAlert2 -->
	<script src="../plugins/sweetalert2/sweetalert2.min.js"></script>
	<!-- Toastr -->
	<script src="../plugins/toastr/toastr.min.js"></script>
	<!-- AdminLTE App -->
	<script src=".../dist/js/adminlte.min.js"></script>
	<!-- AdminLTE for demo purposes -->
	<script src="../plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
	<script src="../plugins/datatables/jquery.dataTables.min.js"></script>
	<script src="../plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
	<script src="../plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
	<script src="../plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
	<script src="../plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
	<script src="../plugins/jszip/jszip.min.js"></script>
	<script src="../plugins/pdfmake/pdfmake.min.js"></script>
	<script src="../plugins/pdfmake/vfs_fonts.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.html5.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.print.min.js"></script>
	<script src="../plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
    <script src="../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
	<!-- AdminLTE App -->
	<script src="../dist/js/adminlte.min.js"></script>
	<!-- AdminLTE for demo purposes -->
	<script src="../dist/js/demo.js"></script>
    <script src="../plugins/select2/js/select2.full.min.js"></script>
    <!-- Bootstrap4 Duallistbox -->
    <script src="../plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script>
    <!-- InputMask -->
    <script src="../plugins/moment/moment.min.js"></script>
    <script src="../plugins/inputmask/jquery.inputmask.min.js"></script>
    <!-- date-range-picker -->
    <script src="../plugins/daterangepicker/daterangepicker.js"></script>
    <!-- bootstrap color picker -->
    <script src="../plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
    <!-- Tempusdominus Bootstrap 4 -->
    <script src="../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
    <!-- Bootstrap Switch -->
    <script src="../plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
    <!-- BS-Stepper -->
    <script src="../plugins/bs-stepper/js/bs-stepper.min.js"></script>
    <!-- dropzonejs -->
    <script src="../plugins/dropzone/min/dropzone.min.js"></script>
    <!-- AdminLTE App -->
	<script>

	    $(function () {

	        $('#ContentPlaceHolder1_GridView1').DataTable({
	            "responsive": true, "lengthChange": false, "autoWidth": false,
	            "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
            }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');

            //Date picker
            $('#reservationdate22').daterangepicker();

	        //Date picker
            $('#sftdate').daterangepicker();
//	        $('#ctl00_ContentPlaceHolder1_reservation').daterangepicker()({
//	            format: 'DD/MM/YYYY - DD/MM/YYYY'
//	        });
	        $('#ctl00_ContentPlaceHolder1_txtsftdate').daterangepicker({
	            locale: {
                    format: 'DD-MM-YYYY'
	            }
            })

            $('#sfdate').datetimepicker({
                //format: 'L'
                format: 'DD-MM-YYYY'
            });

            $('#stdate').datetimepicker({
                //format: 'L'
                format: 'DD-MM-YYYY'
            });
	        
	        //		    $('#reservationdate').datetimepicker({
	        //		        format: 'DD/MM/YYYY'
	        //		    });

	        //        $('#ContentPlaceHolder1_GridView1').DataTable({
	        //            "responsive": true, "lengthChange": false, "autoWidth": false,
	        //            "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
	        //        }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');

	        //        $('#ContentPlaceHolder1_gvChannel').DataTable({
	        //            "responsive": true, "lengthChange": false, "autoWidth": false,
	        //            "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
	        //        }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');

	        //        $('#ContentPlaceHolder1_gvEJ').DataTable({
	        //            "responsive": true, "lengthChange": false, "autoWidth": false,
	        //            "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
	        //        }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');

            $(document).ready(function () {
                $('#dtHorizontalVertical').DataTable({
                    "scrollX": true,
                    "scrollY": 200,
                });
                $('.dataTables_length').addClass('bs-select');
            });
	    });
    </script>
</asp:Content>
