<%@ page language="C#" masterpagefile="~/MasterPages/Main.master" autoeventwireup="true" inherits="Business_TSearch, App_Web_tsearch.aspx.36edc644" viewStateEncryptionMode="Always" maintainScrollPositionOnPostBack="true" %>

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function validate() {
            var message = "";

            if (document.getElementById("<%=txtCardNumber.ClientID%>").value == "")//&&
            //document.getElementById("<%=DatePicker1.TextBoxClientID%>").value=="" &&
            //document.getElementById("<%=DatePicker2.TextBoxClientID%>").value=="")
            {
                //message += "You have to enter the card number Or the transaction date...\n";
                message += "You have to enter the card number...\n";
            }

            if (isNaN(document.getElementById("<%=txtCardNumber.ClientID%>").value)) {
                message += "Card number must contain numbers only\n";
            }

            if (message.length > 0) {
                message = "please notice the following requirments:\n\n" + message;
                alert(message);
                return false;
            }
            return true;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td valign="top">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                            Channel Transaction Search
                        </td>
                    </tr>
                </table>
                <br>
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                    <tr>
                        <td align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal">
                                        Channel
                                    </td>
                                    <td class="tdNormal">
                                        <asp:DropDownList ID="ddlChannels" runat="server" DataTextField="channel_name" Width="250px"
                                            DataValueField="rc_code" class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlChannels_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Event
                                    </td>
                                    <td class="tdNormal">
                                        <asp:DropDownList ID="ddlEvents" runat="server" DataTextField="evant_name" Width="250px"
                                            AutoPostBack="true" DataValueField="re_code" class="fieldNormal" OnSelectedIndexChanged="ddlEvents_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Card Number
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCardNumber" runat="server" class="fieldNormal" Width="250" MaxLength="19"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Reference Number
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtReferenceNumber" runat="server" class="fieldNormal" Width="250"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Date (From)
                                    </td>
                                    <td>
                                        <uc1:DatePicker ID="DatePicker1" runat="server" width="250" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Terminal ID
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtATM" MaxLength="16" runat="server" class="fieldNormal" Width="250"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Date (To)
                                    </td>
                                    <td>
                                        <uc1:DatePicker ID="DatePicker2" runat="server" width="250" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Issuer
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlIssuer" runat="server" DataTextField="display" Width="250px"
                                            DataValueField="bin" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal">
                                        &nbsp;
                                    </td>
                                    <td class="tdNormal">
                                        Acquirer
                                    </td>
                                    <td class="tdNormal">
                                        <asp:DropDownList ID="ddlAcquirer" runat="server" DataTextField="display" Width="250px"
                                            DataValueField="bin" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal" colspan="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="text-align: center">
                                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="Btn_L_Normal" OnClick="Button1_Click" />
                                        <asp:Button ID="btnClear" runat="server" Text="Clear" CssClass="Btn_L_Normal" OnClick="btnClear_Click"
                                            CausesValidation="False" />
                                    </td>
                                </tr>
                            </table>
                            <asp:Label ID="lbl_error" runat="server" class="fieldError" Visible="False"></asp:Label>
                            <br />
                            <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem">Channel Transaction Search Results</legend>
                                </fieldset>
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                    <tr>
                                        <td class="tdNormal" colspan="5">
                                            <asp:GridView ID="GridView1" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None"
                                                DataKeyNames="ct_code" OnRowCommand="GridView1_RowCommand" EmptyDataText="There are no results">
                                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                                <Columns>
                                                    <asp:BoundField DataField="TRAN_DATE" HeaderText="Txn Date" />
                                                    <asp:BoundField DataField="TRAN_TIME" HeaderText="Txn Time" />
                                                    <asp:BoundField DataField="CARD_NUMBER" HeaderText="Card number" />
                                                    <asp:BoundField DataField="FINANCIAL_FLAG" HeaderText="Financial flag" />
                                                    <asp:BoundField DataField="TERM_ID" HeaderText="Terminal ID" />
                                                    <asp:BoundField DataField="TRAN_AMOUNT" HeaderText="Amount" />
                                                    <asp:BoundField DataField="TRAN_CURR" HeaderText="Currency" />
                                                    <asp:BoundField DataField="SETTL_AMOUNT" HeaderText="Settl Amount" />
                                                    <asp:BoundField DataField="SETTL_CURR" HeaderText="Settl Currency" />
                                                    <asp:BoundField DataField="TRAN_SOURCE" HeaderText="Acquirer" />
                                                    <asp:BoundField DataField="TRAN_DEST" HeaderText="Issuer" />
                                                    <asp:BoundField DataField="RRN" HeaderText="Reference No" />
                                                    <asp:BoundField DataField="product" HeaderText="product" />
                                                    <asp:BoundField DataField="MATCH_RESULT" HeaderText="Match Result" />
                                                    <asp:BoundField DataField="Pcode_Type" HeaderText="Pcode Type" />
                                                    <asp:BoundField DataField="ISO_RSP" HeaderText="Response" />
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" Text="View Transaction details"
                                                        ImageUrl="~/Images/document_view.jpg">
                                                        <ItemStyle Width="30px" />
                                                    </asp:ButtonField>
                                                </Columns>
                                                <PagerStyle BackColor="#284775" ForeColor="White" />
                                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                <EditRowStyle BackColor="#999999" />
                                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 20%">
                                            Go To Page:
                                            <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" AutoPostBack="True"
                                                Width="50px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="pnlControls" runat="server" Width="90%">
                                <fieldset id="addItem">
                                    <legend id="addItem">Transaction details</legend>
                                </fieldset>
                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Record date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label1" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Settlment Date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label2" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Transaction date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label3" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Transaction time
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label4" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Card number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label5" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            ISO response
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label6" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Terminal ID
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label7" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Transaction amount
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label8" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Acquirer
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label9" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Issuer
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label10" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Message type
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label11" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Trace ID
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label12" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            File number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label13" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Card brand
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label14" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Reference number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label15" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Card expiry date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label16" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Account number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label17" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Auth code
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label18" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Business class
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label19" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Recon status
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label20" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Transaction currency
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label21" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Settlment currency
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label22" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Settlment amount
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label23" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Transaction change
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label24" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Match result
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label25" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Chip index
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label26" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Channel name
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label27" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Event name
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label28" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            PCODE
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label29" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Financial flag
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label30" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            product
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label31" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Message reason code
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label32" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Settlment flag
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label33" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Claim ID
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label34" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr style="visibility: hidden">
                                        <td class="tdNormal" style="width: 15%">
                                            Equation Value date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblFinValDate" runat="server" Font-Bold="True" Text=""></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Equation Posting date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblFinPostDate" runat="server" Font-Bold="True" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%; visibility: hidden">
                                            Equation Posting time
                                        </td>
                                        <td class="tdNormal" style="width: 30%; visibility: hidden">
                                            <asp:Label ID="lblFinPostTime" runat="server" Font-Bold="True" Text=""></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Merchant Name
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblMerchantName" runat="server" Font-Bold="True" Text=""></asp:Label>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnCancel" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                CausesValidation="False" OnClick="btnCancel_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br />
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>
