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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <!--JS jQuery 1.9.0 -->
    <script src="../Scripts/jquery.min.js"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {

            $('#<%=txt_approve_suggestedAmount.ClientID%>').focusout(function () {


                var SuggestAmount = $(this).val();

                $('#<%=lblGlAmt1.ClientID%>').text(SuggestAmount);


            });
            $('#<%=txtCommissionFee.ClientID%>').focusout(function () {


                var CommissionFee = parseFloat($(this).val()).toFixed(2);
                $(this).val(CommissionFee);

                var SuggestAmount = parseFloat($('#<%=txt_approve_suggestedAmount.ClientID%>').val());
                // one of the variable should be of type decimal
                //if (CommissionFee > SuggestAmount || CommissionFee > 40 || CommissionFee < 0.001 || isNaN(CommissionFee)) {
                // alert('Commission Amount should be less than suggested amount-It cannot be blank or zero- Maximam CommissionAmount is 40');
                if (CommissionFee > SuggestAmount || CommissionFee > 160 || CommissionFee < 0.001 || isNaN(CommissionFee)) {
                    alert('Commission Amount should be less than suggested amount-It cannot be blank or zero- Maximam CommissionAmount is 160');

                    $(this).val(0);
                    return;
                }


                var VAT_Rate = $("#<%=lblVatRate.ClientID %>").text();
                var VAT = (CommissionFee * (VAT_Rate / 100)).toFixed(2);

                $('#<%=lblGlAmt2.ClientID%>').text(SuggestAmount - CommissionFee - VAT);
                $('#<%=lblGlAmt3.ClientID%>').text(CommissionFee);
                $('#<%=lblVAT.ClientID%>').text(VAT);
            });

            $('#<%=btnSavePPPMS.ClientID%>').click(function () {
                // alert("The paragraph was clicked.");
                var extRefNo = $("#<%=txtExtRefNo.ClientID %>").val();
                var claimID = $("#<%=lblClaimID.ClientID %>").text();

                var dataValue = "{ claim_id:'" + claimID + "'  , Ext_Ref_No: '" + extRefNo + "' }";

                $.ajax({
                    type: "POST",
                    url: "InvestigateClaim.aspx/Update_Ext_Ref_No",
                    data: dataValue,
                    contentType: 'application/json; charset=utf-8',
                    dataType: 'json',
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        alert("Request: " + XMLHttpRequest.toString() + "\n\nStatus: " + textStatus + "\n\nError: " + errorThrown);
                    },
                    success: function (result) {
                        alert(result.d);
                    }
                });
                return false;
            });
        });


        function popUp(strOpen) {
            strOpen = "Slip.aspx?clID=" + strOpen;
            window.open(strOpen, 'popWindow', 'toolbar=0,scrollbar=0,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=250,left=300,top=200');

        }

        function AcceptClosingConfirmation() {
            var userSelection;

            userSelection = confirm("Are you sure you want to Accept the claim?");

            if (userSelection) {
                return true;
            } else {
                return false;
            }
        }
        function RejectClosingConfirmation() {
            var userSelection;

            userSelection = confirm("Are you sure you want to Reject the claim?");

            if (userSelection) {
                return true;
            } else {
                return false;
            }
        }
        function SaveConfirmation() {
            var userSelection;

            userSelection = confirm("Are you sure you want to continue with changes?");

            if (userSelection) {
                return true;
            } else {
                return false;
            }
        }
        function show1() {
            document.getElementById('td1').className = 'on';
            document.getElementById('td2').className = 'onEnd';
            document.getElementById('td3').className = 'off';
            document.getElementById('td4').className = 'offEndLast';
            document.getElementById('tbl1').style.display = 'block';
            document.getElementById('tbl2').style.display = 'none';
        }
        function show2() {
            document.getElementById('td1').className = 'off';
            document.getElementById('td2').className = 'offEnd';
            document.getElementById('td3').className = 'on';
            document.getElementById('td4').className = 'onEndLast';
            document.getElementById('tbl1').style.display = 'none';
            document.getElementById('tbl2').style.display = 'block';
        }
    </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>
                            Investigate Claim
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                    <tr>
                        <td align="center" valign="top">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <fieldset id="addItem">
                                <legend id="addItem">Claim Details</legend>
                            </fieldset>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal" style="width: 15%">
                                        Card Number
                                    </td>
                                    <td class="tdNormal" style="width: 30%">
                                        <asp:Label ID="lblCardNo" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal" style="width: 10%">
                                    </td>
                                    <td class="tdNormal" style="width: 15%">
                                        TransactionDate
                                    </td>
                                    <td class="tdNormal" style="width: 30%">
                                        <asp:Label ID="lblTxnDate" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Terminal ID
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblTermID" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Amount
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblAmount" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="tdNormal">
                                       
                                    </td>
                                    <td class="tdNormal">
                                     
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Settlement Amount
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblSettlementAmt" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Reference No
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblReference" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Status
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblStatus" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Type
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblProduct" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Duration
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblDuration" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Sama Status
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblSamaStatus" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Claim ID
                                    </td>
                                    <td class="tdNormal">
                                        <asp:HyperLink ID="lblClaimID" NavigateUrl="#" Text="" runat="server" />
                                        <%--  <asp:Label ID="lblClaimID" runat="server" Text="Label" class="fieldNormal"></asp:Label>--%>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        CPS Type
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblCPSType" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Suggested Amount
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblSugAmt" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        CPS File Name
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblCPSFile" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Message
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblClMessage" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Issuer Bank
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lbl_issuerBank" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Acquirer Bank
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lbl_acquirerBank" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Last Modified By
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblModifiedBy" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        SAMA Claim ID
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lbl_sama_claim_id" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        New RRN
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblNEW_RRN" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Credit Issuer
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblCREDIT_ISSUER" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Credit Aquirer
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblCREDIT_ACQUIRER" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Debit Issuer
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblDEBIT_ISSUER" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Debit Acquirer
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblDEBIT_ACQUIRER" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Originator Id
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="LblOriginator" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblNarrrFromAcct" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblFromAcctDesc" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblNarrrToAcct" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblToAcctDesc" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                        <asp:Label ID="lbl_Re_Code" Visible="false" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <% if (lblValFromAcct_2.Text.Length > 1)
                                   { %>
                                <tr>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblNarrrFromAcct_2" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblValFromAcct_2" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblNarrrToAcct_2" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblValToAcct_2" runat="server" Text="Label" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <%} %>
                                <% if (lblValFromAcct_3.Text.Length > 1)
                                   { %>
                                <tr>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblNarrrFromAcct_3" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblValFromAcct_3" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblNarrrToAcct_3" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblValToAcct_3" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <%} %>>
                                <tr>
                                    <td>
                                        Claim Note
                                    </td>
                                    <td colspan="4">
                                        <asp:TextBox ID="txtNote" runat="server" Width="100%" Rows="4" class="fieldMultiLine"
                                            TextMode="MultiLine"></asp:TextBox>
                                    </td>
                                </tr>
                                <% if (lblCardNo.Text.Trim().Substring(0, 6) == Helper.getParamByID("302"))
                                   {
                                %>
                                <tr>
                                    <td class="tdNormal">
                                        PPMS Refercene No.
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtExtRefNo" MaxLength="20" runat="server" class="fieldNormal" Width="80%"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Button ID="btnSavePPPMS" runat="server" Text="Save PPMS" class="Btn_L_Normal1" />
                                    </td>
                                    <td class="tdNormal">
                                        PPMS Outward Fild IDo.
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Label ID="lblExtOutwardFileID" runat="server" Text="" class="fieldNormal"></asp:Label>
                                    </td>
                                </tr>
                                <%} %>
                                <tr>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Button ID="btnPaySlip" runat="server" Text="Request Pay-Slip" class="Btn_L_Normal1"
                                            OnClientClick="javascript:return popUp(clID);" OnClick="btnPaySlip_Click" />
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                            <table width="95%" class="tabTb" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="left">
                                        <table border="0" cellpadding="0" cellspacing="0" dir="ltr">
                                            <tr>
                                                <td id="td1" class="on">
                                                    <a href="#" onclick="show1();">Claim Transactions</a>
                                                </td>
                                                <td id="td2" class="onEnd">
                                                </td>
                                                <td id="td3" class="off">
                                                    <a href="#" onclick="show2();">
                                                        <asp:Label ID="lblClaimNote" runat="server" Text="Claim Notes"></asp:Label>
                                                    </a>
                                                </td>
                                                <td id="td4" class="offEndLast">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <table id="tbl1" style="display: block" border="0" width="95%" cellpadding="0" cellspacing="0"
                                class="add_ItemTB1">
                                <tr>
                                    <td>
                                        <asp:Panel ID="pnlAcc" runat="server" Width="90%">
                                            <fieldset id="addItem">
                                                <legend id="addItem">Accounts Information</legend>
                                            </fieldset>
                                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal">
                                                        <asp:GridView ID="gvAcc" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                            DataKeyNames="" AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                            GridLines="None" EmptyDataText="There are no Results">
                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                            <Columns>
                                                                <asp:BoundField DataField="term_id" HeaderText="Term ID" />
                                                                <asp:BoundField DataField="retailer_id" HeaderText="Retailer ID" />
                                                                <asp:BoundField DataField="txn_date" HeaderText="Date" />
                                                                <asp:BoundField DataField="txn_time" HeaderText="Time" />
                                                                <asp:BoundField DataField="service_name" HeaderText="Service" />
                                                                <asp:BoundField DataField="srv_amt" HeaderText="Amount" />
                                                                <asp:BoundField DataField="fee_amt" HeaderText="Fee" />
                                                                <asp:BoundField DataField="net_amt" HeaderText="Net AMount" />
                                                                <asp:BoundField DataField="acct_number" HeaderText="Account No" />
                                                                <asp:BoundField DataField="REC_TYPE" HeaderText="REC Type" />
                                                                <asp:BoundField DataField="Status" HeaderText="Status" />
                                                            </Columns>
                                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                            <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>
                                                        <br />
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                        <asp:Panel ID="pnlAccATM" runat="server" Width="90%">
                                            <fieldset id="addItem">
                                                <legend id="addItem">Accounts Information</legend>
                                            </fieldset>
                                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal">
                                                        <asp:GridView ID="gvAccATM" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                            DataKeyNames="" AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                            GridLines="None" EmptyDataText="There are no Results">
                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                            <Columns>
                                                                <asp:BoundField DataField="ATM_OVERAGE_ACCT" HeaderText="ATM Overage Account" />
                                                                <asp:BoundField DataField="ATM_SHORTAGE_ACCT" HeaderText="ATM Shortage Account" />
                                                                <asp:BoundField DataField="ATM_CASH_ACCT" HeaderText="ATM Cash Account" />
                                                                <asp:BoundField DataField="TRAN_AMOUNT" HeaderText="Tran Amount" />
                                                                <asp:BoundField DataField="REPL_DATE" HeaderText="Repl Date" />
                                                            </Columns>
                                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                            <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>
                                                        <br />
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                        <fieldset id="addItem">
                                            <legend id="addItem">Postilion Transactions</legend>
                                        </fieldset>
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                            <tr>
                                                <td class="tdNormal" colspan="5">
                                                    <asp:GridView ID="gvB24" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                        DataKeyNames="mt_code" AllowSorting="True" CellPadding="4"
                                                        ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvB24_RowCommand"
                                                        OnRowCreated="gvB24_RowCreated">
                                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                        <Columns>
                                                            <asp:BoundField DataField="TRAN_DATE" HeaderText="TRAN Date" />
                                                            <asp:BoundField DataField="TRAN_TIME" HeaderText="TRAN Time" />
                                                            <asp:BoundField DataField="FINANCIAL_FLAG" HeaderText="Financial flag" />
                                                            <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_CURR" />
                                                            <asp:BoundField DataField="recon_status" HeaderText="Recon Status" />
                                                            <asp:BoundField DataField="merchant_settl_status" HeaderText="Merchant Paid" />
                                                            <asp:BoundField DataField="rrn" HeaderText="Reference No." />
                                                            <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" Text="View Transaction details"
                                                                ImageUrl="~/Images/document_view.jpg"></asp:ButtonField>
                                                        </Columns>
                                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                        <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>
                                                    <br />
                                                    <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%">
                                                                    Transaction 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%">
                                                                    Transaction time
                                                                </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%">
                                                                    Card number
                                                                </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%">
                                                                    Terminal ID
                                                                </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%">
                                                                    Transaction amount
                                                                </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%">
                                                                    Transaction currency
                                                                </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%">
                                                                    PCode
                                                                </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%">
                                                                    Reference number
                                                                </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%">
                                                                    Reconciliation status
                                                                </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%">
                                                                    Merchant Paid?
                                                                </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%">
                                                                    Trace ID
                                                                </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%">
                                                                    Postilion response
                                                                </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 brand
                                                                </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%">
                                                                    Card expiry date
                                                                </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%">
                                                                    Account number
                                                                </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%">
                                                                    Authorization code
                                                                </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%">
                                                                    Business class
                                                                </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 status
                                                                </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%">
                                                                    Event
                                                                </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%">
                                                                    Product
                                                                </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%">
                                                                    Original sequence number
                                                                </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%">
                                                                    Original date
                                                                </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%">
                                                                    ATM 2
                                                                </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%">
                                                                    ATM 3
                                                                </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%">
                                                                    Authenticate amount
                                                                </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%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Match Criteria
                                                                </td>
                                                                <td class="tdNormal" colspan="4">
                                                                    <asp:GridView ID="GridView2" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                                        CellPadding="4" ForeColor="#333333" GridLines="None" EmptyDataText="There are no results">
                                                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                                                        <Columns>
                                                                            <asp:BoundField DataField="channel_name" HeaderText="Channel Name" />
                                                                            <asp:BoundField DataField="mresult" HeaderText="Match Result" />
                                                                        </Columns>
                                                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                        <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>
                                                        </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>
                                                    <br />
                                                    <fieldset id="addItem">
                                                        <legend id="addItem">Channel Transactions</legend>
                                                    </fieldset>
                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal" colspan="5"> 

                                                                <asp:GridView ID="gvChannel" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                                    DataKeyNames="ct_code" AllowSorting="True" CellPadding="4"
                                                                    ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvChannel_RowCommand">
                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                    <%--irfan--%>
                                                                    <Columns>
                                                                        <asp:BoundField DataField="channel" HeaderText="Channel" />
                                                                        <asp:BoundField DataField="TRAN_DATE" HeaderText="TRAN Date" />
                                                                        <asp:BoundField DataField="TRAN_TIME" HeaderText="TRAN Time" />
                                                                        <asp:BoundField DataField="msg_type" HeaderText="Txn type" />
                                                                        <asp:BoundField DataField="CARD_NUMBER" HeaderText="CARD NUMBER" />
                                                                        <asp:BoundField DataField="FINANCIAL_FLAG" HeaderText="Financial flag" />
                                                                        <asp:BoundField DataField="TERM_ID" HeaderText="TERM 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_CURR" />
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" Text="View Transaction details"
                                                                            ImageUrl="~/Images/document_view.jpg"></asp:ButtonField>
                                                                    </Columns>
                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                    <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>
                                                                <br />
                                                                <asp:Panel ID="pnlControls1" 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="Label32" 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="Label33" 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="Label34" 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="Label35" 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="Label36" 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="Label37" 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="Label38" 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="Label39" 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="Label40" 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="Label41" 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="Label42" 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="Label43" 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="Label44" 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="Label45" 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="Label46" 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="Label47" 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="Label48" 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="Label49" 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="Label50" 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="Label51" 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="Label52" 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="Label53" 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="Label54" 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="Label55" 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="Label56" 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="Label57" 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="Label58" 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="Label59" 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="Label60" 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="Label61" 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="Label62" 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="Label63" 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="Label64" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 10%">
                                                                                &nbsp;
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                HOST indicator
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 30%">
                                                                                <asp:Label ID="Label65" 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>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                                        <tr>
                                                                            <td>
                                                                                <asp:Button ID="btnCancel1" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                                    CausesValidation="False" OnClick="btnCancel1_Click" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                                <br />
                                                                <asp:Panel ID="pnlEJ" runat="server">
                                                                    <fieldset id="addItem">
                                                                        <legend id="addItem">EJ Transactions</legend>
                                                                    </fieldset>
                                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                                        <tr>
                                                                            <td class="tdNormal">
                                                                                <asp:GridView ID="gvEJ" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None"
                                                                                    EmptyDataText="There are no Results" OnRowCommand="gvEJ_RowCommand" OnRowCreated="gvEJ_RowCreated">
                                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                                    <Columns>
                                                                                        <asp:BoundField DataField="card_no" HeaderText="Card No" />
                                                                                        <asp:BoundField DataField="tran_date" HeaderText="Date" />
                                                                                        <asp:BoundField DataField="tran_time" HeaderText="Time" />
                                                                                        <asp:BoundField DataField="settle_date" HeaderText="Settle Date" />
                                                                                        <asp:BoundField DataField="txn_cur" HeaderText="Currency" />
                                                                                        <asp:BoundField DataField="amount" HeaderText="Amount" />
                                                                                        <asp:BoundField DataField="terminal_id" HeaderText="Terminal ID" />
                                                                                        <asp:BoundField DataField="record_date" HeaderText="Record Date" />
                                                                                        <asp:BoundField DataField="proc_flag" HeaderText="Proc Flag" />
                                                                                        <asp:BoundField DataField="seq_no" HeaderText="Seq 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 Account From" />
                                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" Text="View Transaction details"
                                                                                            ImageUrl="~/Images/document_view.jpg">
                                                                                            <ItemStyle Width="30px" />
                                                                                        </asp:ButtonField>
                                                                                         <asp:BoundField DataField="dispenser" HeaderText="" />
                                                                                    </Columns>
                                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                                    <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>
                                                                    </table>
                                                                    <br />
                                                                    <asp:Panel ID="pnlControls2" runat="server" Width="80%">
                                                                        <fieldset id="Fieldset1">
                                                                            <legend id="Legend1">EJ Item details</legend>
                                                                        </fieldset>
                                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Card Number
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label66" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 10%">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Sequence Number
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label67" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Transaction Status
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label68" 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 Date
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label69" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Transaction Time
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label70" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 10%">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Settle Date
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label71" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Account
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label72" 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 Currency
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label73" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Amount
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label74" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 10%">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Status
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label75" runat="server" Text="Label" Font-Bold="True"></asp:Label></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Terminal ID
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label76" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 10%">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Record Date
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label77" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Processing flag
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label78" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 10%">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                </td>
                                                                            </tr>
                                                                            <% if (Validate_Manager.Validate_Data(lblDenom.Text.Trim(), 1))
                                                                               {
                                                                            %>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Cassette "A" (50)
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label79" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 10%">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Cassette "B" (100)
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label80" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Cassette "C" (500)
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label81" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 10%">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Cassette "D" (10)
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="Label82" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                           <% } if (Validate_Manager.Validate_Data(lblDenom.Text.Trim(),2) )
                                                                               {
                                                                            %>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    Denomination
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                    <asp:Label ID="lblDenom" runat="server" Text="Label" Font-Bold="True"></asp:Label>
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 10%">
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                </td>
                                                                                <td class="tdNormal" style="width: 30%">
                                                                                </td>
                                                                            </tr>
                                                                            <%//
                                                                              } %>
                                                                            <tr>
                                                                                <td class="tdNormal" style="width: 15%">
                                                                                    EDC status
                                                                                </td>
                                                                                <td class="tdNormal" colspan="4">
                                                                                    <asp:GridView ID="GridView1" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                                                        CellPadding="4" ForeColor="#333333" GridLines="None" EmptyDataText="There are no status messages">
                                                                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                                                                        <Columns>
                                                                                            <asp:BoundField DataField="status" HeaderText="status" />
                                                                                            <asp:BoundField DataField="stat_desc" HeaderText="Description" />
                                                                                            <asp:BoundField DataField="TERM_TRACE" HeaderText="Trace" />
                                                                                            <asp:BoundField DataField="TXN_PREV_TRACE" HeaderText="Prev. Trace" />
                                                                                        </Columns>
                                                                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                                        <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>
                                                                        </table>
                                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Button ID="btnCancel2" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                                        CausesValidation="False" OnClick="btnCancel2_Click" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </asp:Panel>
                                                                <asp:Panel ID="pnlPOS" runat="server">
                                                                    <fieldset id="addItem">
                                                                        <legend id="addItem">Related Claims</legend>
                                                                    </fieldset>
                                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                                        <tr>
                                                                            <td class="tdNormal">
                                                                                <asp:GridView ID="gvClaims" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                                                    AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None"
                                                                                    DataKeyNames="claim_id" EmptyDataText="There are no Results" OnRowCommand="gvClaims_RowCommand">
                                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                                    <Columns>
                                                                                        <asp:BoundField DataField="claim_id" HeaderText="Claim ID" />
                                                                                        <asp:BoundField DataField="card_number" HeaderText="Card No" />
                                                                                        <asp:BoundField DataField="claim_date" HeaderText="Claim Date" />
                                                                                        <asp:BoundField DataField="claim_amount" HeaderText="Claim Amount" />
                                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="i" Text="Investigate"
                                                                                            ImageUrl="~/Images/document_view.jpg"></asp:ButtonField>
                                                                                    </Columns>
                                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                                    <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>
                                                                    </table>
                                                                </asp:Panel>
                                                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Button ID="btnApprove" runat="server" Text="Submit for approval" class="Btn_L_Normal1"
                                                                                OnClick="btnApprove_Click" />
                                                                            <asp:Button ID="btnDecline" runat="server" Text="Reject" class="Btn_L_Normal1" OnClick="btnDecline_Click"
                                                                                OnClientClick="return SaveConfirmation()" />
                                                                            <asp:Button ID="btnBack" runat="server" Text="Back" class="Btn_L_Normal1" OnClientClick="javascript:window.close();" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <asp:Panel ID="pnlApprove" runat="server" Width="100%" Visible="false">
                                                                    <fieldset id="addItem">
                                                                        <legend id="addItem">Approve Details</legend>
                                                                    </fieldset>
                                                                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                Suggested Amount
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:TextBox ID="txt_approve_suggestedAmount" runat="server" class="fieldNormal"
                                                                                    Width="80%"></asp:TextBox>
                                                                            </td>
                                                                            <%-- Sathish Added a condition to charge commision if the was claim against merchant--%>
                                                                            <%--if (lbl_FromAcct2.Text.ToString().Length > 1 ) --%>
                                                                            <% if (lbl_FromAcct2.Text.ToString().Length > 1 || txtToManualMerAccount.Text.ToString().Length > 1)
                                                                               { %>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lblCommissionFee" Visible="true" runat="server" class="fieldNormal"
                                                                                    Text="Commission Fee"></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:TextBox ID="txtCommissionFee" MaxLength="6" Visible="true" runat="server" class="fieldNormal"
                                                                                    Width="80%"></asp:TextBox>
                                                                            </td>
                                                                            <% }%>
                                                                        </tr>
                                                                        <% if (lbl_FromAcct3.Text.ToString().Length > 1 && lbl_ToAcct3.Text.ToString().Length > 1)
                                                                            {
                                                                             %>
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                VAT 
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                 <asp:Label ID="lblVAT" Visible="true" runat="server" class="fieldNormal"
                                                                                    Text=""></asp:Label>
                                                                            </td>
                                                                            
                                                                            
                                                                            <td class="tdNormal" style="width: 15%">
                                                                               VAT Rate
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                               <asp:Label ID="lblVatRate" Visible="true" runat="server" class="fieldNormal" 
                                                                                    Text=""></asp:Label>
                                                                            </td>
                                                                          
                                                                        </tr>
                                                                          <% }%>
                                                                     <% if (lbl_Re_Code.Text == "8" || lbl_Re_Code.Text == "33")
                                                                              { %>
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                Claim Type
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:RadioButton ID="rdCard" runat="server" Checked="true" AutoPostBack="true" GroupName="gg1"
                                                                                    Text="CardHolder" OnCheckedChanged="rdCard_CheckedChanged"></asp:RadioButton>
                                                                                <asp:RadioButton ID="reMer" runat="server" GroupName="gg1" AutoPostBack="true" Text="Merchant"
                                                                                    OnCheckedChanged="reMer_CheckedChanged"></asp:RadioButton>
                                                                            </td>
                                                                        </tr>
                                                                        <%} %>
                                                                        <tr>
                                                                            <td>
                                                                                1st GL Amount:
                                                                            </td>
                                                                            <td>
                                                                                <asp:Label ID="lblGlAmt1" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lblFrom" runat="server" class="fieldNormal" Text="From  (Dr)"></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:DropDownList ID="ddlFromAcct" runat="server" class="fieldNormal" DataTextField="acct_desc"
                                                                                    DataValueField="acct" AutoPostBack="True" OnSelectedIndexChanged="ddlFromAcct_SelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="OtherFromMerAccountNo" runat="server" class="fieldNormal" Visible="false"
                                                                                    MaxLength="20" Width="200px"></asp:TextBox>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lblfromAccount" runat="server" class="fieldNormal" Text="" Visible="false"></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lblTo" runat="server" class="fieldNormal" Text="To (Cr)"></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:DropDownList ID="ddlToAcct" runat="server" DataTextField="acct_desc" DataValueField="acct"
                                                                                    class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlToAcct_SelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="OtherToMerAccount" runat="server" class="fieldNormal" Visible="false"
                                                                                    MaxLength="20" Width="200px"></asp:TextBox>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 30%">
                                                                                <asp:Label ID="lbltoAccount" runat="server" class="fieldNormal" Text="" Visible="false"></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 10%">
                                                                                &nbsp;
                                                                            </td>
                                                                        </tr>
                                                                        <% 
                                                                            if (lbl_FromAcct3.Text.ToString().Length > 1 && lbl_ToAcct3.Text.ToString().Length > 1)
                                                                            {
                                                                        %>
                                                                        <br />
                                                                        <tr>
                                                                            <td>
                                                                                2nd GL Amount:
                                                                            </td>
                                                                            <td>
                                                                                <asp:Label ID="lblGlAmt2" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lblFrom_2" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:TextBox ID="lbl_FromAcct2" Enabled="false" runat="server" class="fieldNormal"
                                                                                    MaxLength="20" Width="200px"></asp:TextBox>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lblTo_2" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:TextBox ID="txtToManualMerAccount" runat="server" class="fieldNormal" MaxLength="20"
                                                                                    Enabled="false" Width="200px"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <br />
                                                                        <tr>
                                                                            <td>
                                                                                3rd GL Amount:
                                                                            </td>
                                                                            <td>
                                                                                <asp:Label ID="lblGlAmt3" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lblFrom_3" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:Label ID="lbl_FromAcct3" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lblTo_3" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:Label ID="lbl_ToAcct3" runat="server" class="fieldNormal" Text=""></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <%} %>
                                                                        <%-- <tr> not used in saib
                                                                <td class="tdNormal" style="width: 15%">
                                                                    <asp:Label ID="lblAtmOvShort" runat="server" class="fieldNormal" Text="Overage/Shortage Reference No."></asp:Label>
                                                                </td>
                                                                <td class="tdNormal" style="width: 25%">
                                                                    <asp:TextBox ID="TxtRefNo" runat="server" class="fieldNormal" Width="80%"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>--%>
                                                                        <% if (lblCardNo.Text.Trim().Substring(0, 6) == Helper.getParamByID("302"))
                                                                           { %>
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                <asp:Label ID="lbl_PrePaid" runat="server" class="fieldNormal" Text="Prepaid Account Type"></asp:Label>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                                <asp:DropDownList ID="ddlPrepaidAcctType" runat="server" DataTextField="Ext_Acct_Type_Desc"
                                                                                    DataValueField="Ext_Acct_Type_Code" Width="250px" class="fieldNormal" AutoPostBack="False" />
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 25%">
                                                                            </td>
                                                                        </tr>
                                                                        <%} %>>
                                                                    </table>
                                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                                        <tr>
                                                                            <td>
                                                                                <asp:Button ID="btnCancelPost" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                                    CausesValidation="False" OnClick="btnCancelPost_Click" />
                                                                                <asp:Button ID="btnSavePost" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                                    OnClick="btnSavePost_Click" OnClientClick="return SaveConfirmation()" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                                <br />
                                                                <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB"
                                                                    runat="server" id="rowSugAmt">
                                                                    <tr>
                                                                        <td class="tdNormal" style="width: 15%">
                                                                            Suggested Amount
                                                                        </td>
                                                                        <td class="tdNormal">
                                                                            <asp:TextBox ID="txtSugAmt" runat="server" class="fieldNormal" Width="250" />
                                                                        </td>
                                                                        <td class="tdNormal">
                                                                        </td>
                                                                        <td class="tdNormal">
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <table id="cpsInfo" runat="server" border="0" width="100%" cellpadding="0" cellspacing="0"
                                                                    class="add_ItemTB">
                                                                    <tr>
                                                                        <td class="tdNormal" style="width: 15%">
                                                                            CPS Claim Type
                                                                            <asp:Label ID="lblClaimType" runat="server" class="fieldNormal" Text="" Visible="false"></asp:Label>
                                                                        </td>
                                                                        <td class="tdNormal">
                                                                            <asp:DropDownList ID="ddlCPSType" runat="server" DataTextField="type_name" DataValueField="type_code"
                                                                                Width="250px" class="fieldNormal" AutoPostBack="False" />
                                                                        </td>
                                                                        <td class="tdNormal">
                                                                        </td>
                                                                        <td class="tdNormal">
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <table id="samaActions" runat="server" border="0" cellpadding="0" cellspacing="0"
                                                                    class="action_TB_BgForm">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Button ID="btnsenttoCPS" runat="server" Text="Send To CPS" class="Btn_L_Normal1"
                                                                                OnClick="btnsenttoCPS_Click" />
                                                                            <asp:Button ID="btnSamaAccept" runat="server" Text="Sama Accept" class="Btn_L_Normal1"
                                                                                OnClientClick="return AcceptClosingConfirmation()" OnClick="btnSamaAccept_Click" />
                                                                            <asp:Button ID="btnSamaReject" runat="server" Text="Sama Reject" class="Btn_L_Normal1"
                                                                                OnClientClick="return RejectClosingConfirmation()" OnClick="btnSamaReject_Click" />
                                                                            <asp:Button ID="btnRequest" runat="server" Text="Request Info" class="Btn_L_Normal1"
                                                                                OnClick="btnRequest_Click" />
                                                                            <asp:Button ID="btnResponse" runat="server" Text="Info Response" class="Btn_L_Normal1"
                                                                                OnClick="btnResponse_Click" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <asp:Panel ID="Panel2" runat="server" Width="100%">
                                                                    <fieldset id="addItem">
                                                                        <legend id="addItem">Info Response</legend>
                                                                    </fieldset>
                                                                    <table border="0" width="70%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                                        <tr>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                Info Response
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 30%">
                                                                                <asp:DropDownList ID="ddlRespons" runat="server" Width="550px" class="fieldNormal"
                                                                                    AutoPostBack="false">
                                                                                    <asp:ListItem Value="Wrong_Information">Wrong Information</asp:ListItem>
                                                                                    <asp:ListItem Value="Customer_Received_Cash">Customer Received Cash</asp:ListItem>
                                                                                    <asp:ListItem Value="Claim_Dispute_Settled">Claim Dispute Settled</asp:ListItem>
                                                                                    <asp:ListItem Value="Claim_Reversed">Claim Reversed</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 10%">
                                                                                &nbsp;
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 15%">
                                                                                &nbsp;
                                                                            </td>
                                                                            <td class="tdNormal" style="width: 30%">
                                                                                &nbsp;
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                                        <tr>
                                                                            <td>
                                                                                <asp:Button ID="btnCancelResponse" runat="server" Text="   Cancel   " OnClick="btnCancelResponse_Click"
                                                                                    class="Btn_M_Normal" CausesValidation="False" />
                                                                                <asp:Button ID="btnSaveResponse" OnClientClick="return validate()" runat="server"
                                                                                    Text="   Save   " OnClick="btnSaveResponse_Click" class="Btn_M_Normal" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                                <!------------------------------------body End2 ----------------------------------------------->
                                                                <br>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <!------------------------------------body End2 ----------------------------------------------->
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <table id="tbl2" style="display: none" border="0" width="95%" cellpadding="0" cellspacing="0"
                                class="add_ItemTB1">
                                <tr>
                                    <td>
                                        <asp:Panel ID="Panel1" runat="server" Width="90%">
                                            <fieldset id="addItem">
                                                <legend id="addItem">Claim Notes</legend>
                                            </fieldset>
                                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal">
                                                        <asp:GridView ID="gvNotes" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                            DataKeyNames="" AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                            GridLines="None" EmptyDataText="There are no Results">
                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                            <Columns>
                                                                <asp:BoundField DataField="user_name" HeaderText="User Name" ItemStyle-Width="20%" />
                                                                <asp:BoundField DataField="action_date" HeaderText="Date" ItemStyle-Width="20%" />
                                                                <asp:BoundField DataField="note" HeaderText="Note" ItemStyle-Width="60%" />
                                                            </Columns>
                                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                            <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>
                                                        <br />
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Add Claim Note</legend>
                                                        </fieldset>
                                                        <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr>
                                                                <td>
                                                                    Note
                                                                </td>
                                                                <td colspan="4">
                                                                    <asp:TextBox ID="txtAddNote" runat="server" Width="100%" Rows="4" class="fieldMultiLine"
                                                                        TextMode="MultiLine"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal">
                                                                </td>
                                                                <td class="tdNormal">
                                                                </td>
                                                                <td class="tdNormal">
                                                                </td>
                                                                <td class="tdNormal">
                                                                </td>
                                                                <td class="tdNormal">
                                                                    <asp:Button ID="btnAddNote" runat="server" Text="Save" class="Btn_L_Normal1" OnClick="btnAddNote_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
