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

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        function disableCancelBtn() {
            document.getElementById('<%=Button1.ClientID %>').disabled = true;
        }
        function PrintContent(ctrl) {
            var DocumentContainer = document.getElementById(ctrl);
            var WindowObject = window.open('', "TrackHistoryData",
                              "width=800,height=300,top=250,left=345,toolbars=no,scrollbars=no,status=no,resizable=no");
            WindowObject.document.write(DocumentContainer.innerHTML);
            WindowObject.document.close();
            WindowObject.focus();
            WindowObject.print();
            WindowObject.close();
        }

    </script>
    <style type="text/css">
        .style2
        {
            height: 22px;
        }
    </style>
</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>
                            GL Posting
                        </td>
                    </tr>
                </table>
                <br>
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB" dir="ltr">
                    <tr>
                        <td align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal">
                                        Search Type
                                    </td>
                                    <td colspan="4">
                                        <asp:RadioButton ID="rdEvent" runat="server" GroupName="aa" Text="Events" Checked="True"
                                            AutoPostBack="True" OnCheckedChanged="rdEvent_CheckedChanged" />
                                        <asp:RadioButton ID="rdChannel" runat="server" GroupName="aa" Text="Channels" AutoPostBack="True"
                                            OnCheckedChanged="rdChannel_CheckedChanged" />
                                        <asp:RadioButton ID="rdATM" runat="server" GroupName="aa" Text="ATM" AutoPostBack="True"
                                            OnCheckedChanged="rdATM_CheckedChanged" />
                                        <asp:RadioButton ID="rdPOSSET" runat="server" GroupName="aa" Text="Settlement"
                                            AutoPostBack="True" OnCheckedChanged="rdPOSSET_CheckedChanged" />
                                           <%--  Below radio buttion was used as POS Rental NCB here it is used as POS Low Useage Fee --%>
                                        <asp:RadioButton ID="rdPOSRENT" runat="server" GroupName="aa" Text="Terminal Charges"
                                            AutoPostBack="True" oncheckedchanged="rdPOSRENT_CheckedChanged" />
                                        <asp:RadioButton ID="rdClaims" runat="server" GroupName="aa" Text="Claims" AutoPostBack="True"
                                            OnCheckedChanged="rdClaims_CheckedChanged" />
                                        <asp:RadioButton ID="rdSAMAMonthlySettlement" runat="server" GroupName="aa" Text="SAMA Monthly Settlement"
                                            AutoPostBack="True" OnCheckedChanged="rdSAMAMonthlySettlement_CheckedChanged" />
                                    </td>
                                </tr>
                                <tr runat="server" id="samaAccountType">
                                    <td class="tdNormal">
                                        SAMA Account Type
                                    </td>
                                    <td colspan="2">
                                        <asp:DropDownList ID="ddlSAMAAccountType" runat="server" DataTextField="SAMA_MONTHLY_GL_DESCRIBTION"
                                            Width="250px" DataValueField="LSM_G_CODE" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal" style="width: 15%">
                                    </td>
                                    <td class="tdNormal" style="width: 30%">
                                    </td>
                                </tr>
                                <tr runat="server" id="eventsRow">
                                    <td class="tdNormal">
                                        Event
                                    </td>
                                    <td colspan="2">
                                        <asp:DropDownList ID="ddlEvents" runat="server" DataTextField="evant_name" Width="250px"
                                            DataValueField="re_code" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal" style="width: 15%">
                                        Type
                                    </td>
                                    <td class="tdNormal" style="width: 30%">
                                        <asp:DropDownList ID="ddlType" runat="server" DataTextField="type_nm" Width="250px"
                                            DataValueField="type_cd" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr runat="server" id="channelsRow">
                                    <td class="tdNormal">
                                        Channel
                                    </td>
                                    <td colspan="4">
                                        <asp:DropDownList ID="ddlChannels" runat="server" DataTextField="channel_name" Width="250px"
                                            DataValueField="rc_code" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr runat="server" id="AccTypeRow">
                                    <td class="tdNormal">
                                        Account type
                                    </td>
                                    <td colspan="4">
                                        <asp:DropDownList ID="ddlAccType" runat="server" DataTextField="matching" Width="250px"
                                            DataValueField="match_code" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr runat="server" id="BranchRow">
                                    <td class="tdNormal">
                                        Branch
                                    </td>
                                    <td colspan="4">
                                        <asp:DropDownList ID="ddlBranch" runat="server" DataTextField="branch_name" Width="250px"
                                            DataValueField="branch_code" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr runat="server" id="ATMTypeRow">
                                    <td class="style2">
                                        ATM type
                                    </td>
                                    <td colspan="4" class="style2">
                                        <asp:DropDownList ID="ddlATMType" runat="server" DataTextField="type_name" Width="250px"
                                            DataValueField="type_code" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr runat="server" id="ATMNoRow">
                                    <td class="tdNormal">
                                        ATM No
                                    </td>
                                    <td colspan="4">
                                        <asp:TextBox ID="txtATMnumber" runat="server" class="fieldNormal" Width="250" MaxLength="4"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr runat="server" id="POSRow">
                                    <td class="tdNormal">
                                        CLient No
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtClientNo" runat="server" class="fieldNormal" Width="250" MaxLength="10"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Terminal ID
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtTerminalID" runat="server" class="fieldNormal" MaxLength="8"
                                            Width="250"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr runat="server" id="POSRow2">
                                    <td class="tdNormal">
                                        
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="TextBox1" runat="server" MaxLength="20"  class="fieldNormal" Width="250"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        
                                    </td>
                                    <td class="tdNormal">
                                        <asp:RadioButton ID="rdPOSSETL" Text="MADA POS" GroupName="rd1" runat="server" AutoPostBack="False"
                                            Checked="true" />
                                        <asp:RadioButton ID="rdECOMSETL" Text="MADA ECOM" GroupName="rd1" runat="server" AutoPostBack="False" />
                                        <asp:RadioButton ID="rdDiscovery" Text="DGN POS" GroupName="rd1" runat="server" AutoPostBack="False" />
                                    </td>
                                </tr>
                                <tr runat="server" id="ClaimRow">
                                    <td class="tdNormal">
                                        Card No
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtCardNo" runat="server" class="fieldNormal" Width="250" MaxLength="19"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        Trace ID
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtTraceID" runat="server" class="fieldNormal" Width="250" MaxLength="12"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr runat="server" id="ClaimRow2">
                                    <td class="tdNormal">
                                        Claim ID
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtClaimID" runat="server" class="fieldNormal" Width="250"  MaxLength="15"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                        <asp:RadioButton ID="rdATMClaim" Text="ATM" GroupName="rd" runat="server" AutoPostBack="False" />
                                        <asp:RadioButton ID="rdPOSClaim" Text="POS" GroupName="rd" runat="server" AutoPostBack="False"
                                            Checked="true" />
                                        <asp:RadioButton ID="rdECOMClaim" Text="ECOM" GroupName="rd" runat="server" AutoPostBack="False" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Approved
                                    </td>
                                    <td class="tdNormal">
                                        <asp:CheckBox ID="chkApproved" runat="server" class="fieldNormal" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal" align="right">
                                    </td>
                                </tr>
                                <tr runat="server" id="AutoApproveRow">
                                    <td class="tdNormal">
                                        Auto System Approved
                                    </td>
                                    <td class="tdNormal">
                                        <asp:CheckBox ID="chkAutoSystemApproved" runat="server" class="fieldNormal" />
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Button ID="ButtonRpt" runat="server" Text="Generate Report" CssClass="Btn_L_Normal"
                                            OnClick="btnGenAutoAprroveReport_Click" />
                                        
                                    </td>
                                    <td class="tdNormal">
                                        </td>
                                    <td class="tdNormal" align="right">
                                      <asp:Button ID="BtnPostSystemApproved" runat="server" Text="Post All" 
                                            CssClass="Btn_L_Normal" Enabled="false"
                                          OnClick="BtnPostSystemApproved_Click" />
                              
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Posted
                                    </td>
                                    <td class="tdNormal">
                                        <asp:CheckBox ID="chkPosted" runat="server" class="fieldNormal" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal" align="right">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                        Declined
                                    </td>
                                    <td class="tdNormal">
                                        <asp:CheckBox ID="chkDeclined" runat="server" class="fieldNormal" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Date
                                    </td>
                                    <td colspan="4">
                                        <uc1:DatePicker ID="DatePicker1" runat="server" width="250" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="text-align: center">
                                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="Btn_L_Normal" OnClick="Button1_Click" />
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                            <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem">GL Entities</legend>
                                </fieldset>
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" colspan="5">
                                            <asp:GridView ID="GridView1" CssClass="gridMaster" Width="100%" runat="server" AutoGenerateColumns="False"
                                                AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None"
                                                EmptyDataText="There are no Results" DataKeyNames="gpe_code" OnRowCommand="GridView1_RowCommand"
                                                OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                <Columns>
                                                    <asp:BoundField DataField="channel" HeaderText="Channel" />
                                                    <asp:BoundField DataField="event" HeaderText="Event" />
                                                    <asp:BoundField DataField="acct_number" HeaderText="Account Number" />
                                                    <asp:BoundField DataField="grid_desc" HeaderText="Gl Desc" />
                                                    <asp:BoundField DataField="grid_desc" HeaderText="Gl Desc" />
                                                    <%-- <asp:BoundField DataField="gl_desc" HeaderText="Gl Desc" />--%>
                                                    <asp:BoundField DataField="txn_type" HeaderText="Txn Type" />
                                                    <asp:BoundField DataField="posted" HeaderText="Posted" />
                                                    <asp:BoundField DataField="approved" HeaderText="approved" />
                                                    <asp:BoundField DataField="declined" HeaderText="declined" />
                                                    <asp:BoundField DataField="gl_tran_amt" HeaderText="Amount" />
                                                    <asp:BoundField DataField="recon_run_date" HeaderText="Recon run date" />
                                                    <asp:BoundField DataField="recon_run_time" HeaderText="Recon run time" />
                                                    <asp:BoundField DataField="posting_for_date" HeaderText="Date" />
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="v" Text="View"
                                                        ImageUrl="~/Images/AR/document_view.jpg"></asp:ButtonField>
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="a" Text="Approve"
                                                        ImageUrl="~/Images/approve.jpg"></asp:ButtonField>
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="d" Text="Decline"
                                                        ImageUrl="~/Images/delete.jpg"></asp:ButtonField>
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="p" Text="Approve & Post"
                                                        ImageUrl="~/Images/AR/cd_out.gif"></asp:ButtonField>
                                                    <asp:BoundField DataField="record_date" HeaderText="" />
                                                    <asp:BoundField DataField="posting_for_date" HeaderText="" />
                                                    <asp:BoundField DataField="post_date" HeaderText="" />
                                                    <asp:BoundField DataField="approve_date" HeaderText="" />
                                                    <asp:BoundField DataField="file_number" HeaderText="" />
                                                    <asp:BoundField DataField="re_code" HeaderText="" />
                                                    <asp:BoundField DataField="rc_code" HeaderText="" />
                                                    <asp:BoundField DataField="decline_date" HeaderText="" />
                                                    <asp:BoundField DataField="journal_ref" HeaderText="" />
                                                    <asp:BoundField DataField="posted_by_user" HeaderText="" />
                                                    <asp:BoundField DataField="approved_by_user" HeaderText="" />
                                                    <asp:BoundField DataField="declined_by_user" HeaderText="" />
                                                    <asp:BoundField DataField="settle_account" HeaderText="" />
                                                    <asp:BoundField DataField="short_name" HeaderText="" />
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="r" Text="Reset"
                                                        ImageUrl="~/Images/AR/update.jpg"></asp:ButtonField>
                                                    <asp:BoundField DataField="gl_desc" HeaderText="" />
                                                    <asp:BoundField DataField="grid_desc" HeaderText="" />
                                                    <asp:BoundField DataField="approved_by" HeaderText="" />
                                                    <asp:BoundField DataField="mer_net_amt" HeaderText="" />
                                                    <asp:BoundField DataField="mer_fee_amt" 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>
                                    <tr>
                                        <td class="tdNormal" style="width: 20%">
                                            Go To Page:
                                            <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" AutoPostBack="True"
                                                Width="50px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            <asp:Button ID="btnApproveAll" runat="server" Text="Approve All" CssClass="Btn_L_Normal"
                                                OnClick="btnApproveAll_Click" />
                                        </td>
                                        <td class="tdNormal">
                                            <asp:Button ID="btnPostAll" runat="server" Text="Post All" CssClass="Btn_L_Normal"
                                                OnClick="btnPostAll_Click" Visible="false" />
                                        </td>
                                        <td class="tdNormal">
                                            <asp:Button ID="btnGenReport" runat="server" Text="Gateway Report" CssClass="Btn_L_Normal"
                                                OnClick="btnGenReport_Click" Visible="false" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="pnlControls" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem">GL Entity Details</legend>
                                </fieldset>
                                <table border="0" cellpadding="0" cellspacing="0" id="printtable" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Record date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label1" runat="server" Text="" ForeColor="#3399FF"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Posting for date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label2" runat="server" Text="" ForeColor="#3399FF"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Account number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label3" runat="server" Text="" ForeColor="#3399FF"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Settlement Account
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label4" runat="server" Text="" ForeColor="#3399FF"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr runat="server" id="cashaccrow">
                                        <td class="tdNormal" style="width: 15%">
                                            Cash Account
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblCashAcc" runat="server" Text="" ForeColor="#3399FF"></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%">
                                            Transaction type
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label15" runat="server" Text="" ForeColor="#3399FF"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Grid Desc
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label21" runat="server" Text="" ForeColor="#3399FF"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Posted
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label5" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Post date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label6" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Posted By
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label13" runat="server" Text="" ForeColor="#3399FF"> </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%">
                                            Approved
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label7" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Approved date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label8" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Approved By
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label18" runat="server" Text="" ForeColor="#3399FF"> </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%">
                                            Declined
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label16" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Declined date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label17" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Declined By
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label19" runat="server" Text="" ForeColor="#3399FF"> </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%">
                                            Total Amount
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblTotAmount" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Merchant Fee Amount
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblMerchantFeeAmt" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Net Amount
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label9" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            File number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label10" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Event
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label11" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Channel
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label12" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Journal
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label14" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            GL Desc
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="Label20" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                                        </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" />
                                            <asp:Button ID="btnPrint" runat="server" class="Btn_M_Normal" Text="Print Record"
                                                OnClientClick='javascript:PrintContent("ctl00_ContentPlaceHolder1_pnlControls")' />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="pnlPost" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem">Posting Details</legend>
                                </fieldset>
                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblGLType" runat="server" Visible="False"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Amount
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtAmount" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Account Number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtAccount" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Settlement Account
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtSettlementAcc" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Narrative1
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtNarrative1" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Narrative2
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtNarrative2" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Narrative3
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtNarrative3" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </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="javascript:disableCancelBtn();" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>
