<%@ 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 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();
        }

        function CheckAll(Checkbox) {

            var GridView1 = document.getElementById("<%=GridView1.ClientID %>");
            for (i = 1; i < GridView1.rows.length; i++) {
                GridView1.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = Checkbox.checked;
            }
        } 
    </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>
                            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" AutoPostBack="True"
                                            Visible="false" 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="POS Settlement"
                                            Visible="false" AutoPostBack="True" OnCheckedChanged="rdPOSSET_CheckedChanged" />
                                        <%--<asp:RadioButton ID="rdPOSRENT" runat="server" GroupName="aa" Text="POS Rental" 
                                            AutoPostBack="True" oncheckedchanged="rdPOSRENT_CheckedChanged" />--%>
                                        <asp:RadioButton ID="rdClaims" runat="server" GroupName="aa" Text="Claims" Checked="True"
                                            AutoPostBack="True" OnCheckedChanged="rdClaims_CheckedChanged" />
                                        <asp:RadioButton ID="rdCSSett" runat="server" GroupName="aa" Text="Card Scheme Settlement"
                                            AutoPostBack="True" OnCheckedChanged="rdCS_Sett_CheckedChanged" />
                                    </td>
                                </tr>
                                <tr runat="server" id="CSRow" visible="false">
                                    <td class="tdNormal">Select Card Scheme
                                    </td>
                                    <td class="tdNormal" style="width: 10%">
                                        <asp:RadioButton ID="rdVisaSett" runat="server" AutoPostBack="True" GroupName="csGrp" Text="Visa" OnCheckedChanged="rdcsGrp_CheckedChanged" />
                                    </td>
                                    <td class="tdNormal" style="width: 20%">
                                        <asp:RadioButton ID="rdCSBilling" runat="server" AutoPostBack="True" GroupName="csGrp" Text="Visa / MasterCard Billing" OnCheckedChanged="rdCSBilling_CheckedChanged" />
                                    </td>
                                    <td class="tdNormal" style="width: 10%">
                                        <asp:RadioButton ID="rdAmexSett" runat="server" AutoPostBack="True" GroupName="csGrp" Text="Amex" OnCheckedChanged="rdcsGrp_CheckedChanged" />
                                    </td>
                                    <td class="tdNormal" style="width: 13%">
                                        <asp:RadioButton ID="rdMcAcq" runat="server" AutoPostBack="True" GroupName="csGrp" Text="MC Acquirer" OnCheckedChanged="rdcsGrp_CheckedChanged" />
                                    </td>
                                    <td class="tdNormal" style="width: 13%">
                                        <asp:RadioButton ID="rdMadaMonthly" runat="server" AutoPostBack="True" GroupName="csGrp" Text="MADA Monthly" OnCheckedChanged="rdcsGrp_CheckedChanged" />
                                    </td>
                                    <td class="tdNormal" style="width: 12%">
                                        <asp:RadioButton ID="rdMaestro" runat="server" AutoPostBack="True" GroupName="csGrp" Text="Maestro" OnCheckedChanged="rdcsGrp_CheckedChanged" />
                                    </td>
                                    <td class="tdNormal" style="width: 20%">
                                        <asp:RadioButton ID="rdDiscover" runat="server" AutoPostBack="True" GroupName="csGrp" Text="Discover" OnCheckedChanged="rdcsGrp_CheckedChanged" />
                                    </td>
                                </tr>
                                <%if (rdVisaSett.Checked || rdMcAcq.Checked || rdCSBilling.Checked || rdDiscover.Checked || rdMadaMonthly.Checked)
                                  { %>
                                <tr runat="server" id="productRow" visible="false">
                                    <td class="tdNormal">
                                        Product
                                    </td>
                                    <td colspan="2">
                                        <asp:DropDownList ID="ddlProducts" runat="server" DataTextField="PRODUCT_NAME" Width="250px" AutoPostBack="true"
                                            DataValueField="ID" class="fieldNormal">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="tdNormal" style="width: 15%">
                                    </td>
                                    <td class="tdNormal" style="width: 30%">
                                    </td>
                                </tr>
                                      <% if (Helper.IsMultiCurrencyProduct_CS(ddlProducts.SelectedValue))
                                         {  %>
                                <tr>
                                    <td class="tdNormal">Select Currency
                                    </td>
                                  <td colspan="2">
                                        <asp:DropDownList ID="ddlCurrency" runat="server" DataTextField="Curr_Name" Width="250px"
                                            DataValueField="CardScheme_Curr_ID" 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" AutoPostBack="True" OnSelectedIndexChanged="ddlEvents_SelectedIndexChanged">
                                        </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" AutoPostBack="True" OnSelectedIndexChanged="ddlChannels_SelectedIndexChanged">
                                        </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="tdNormal">
                                        ATM type
                                    </td>
                                    <td colspan="4">
                                        <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"></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="ClaimRow">
                                    <td class="tdNormal">
                                        Card No
                                    </td>
                                    <td class="tdNormal">
                                        <asp:TextBox ID="txtCardNo" runat="server" class="fieldNormal" Width="250"></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"></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"></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"
                                            Checked="True" />
                                        <asp:RadioButton ID="rdPOSClaim" Text="POS" GroupName="rd" runat="server" AutoPostBack="False" />
                                        <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="ClaimSamaApprovedRow">
                                    <td class="tdNormal">
                                        SAMA Approved
                                    </td>
                                    <td class="tdNormal">
                                        <asp:CheckBox ID="chkSamaApproved" runat="server" class="fieldNormal" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal" align="right">
                                    </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>
                                        <asp:Label ID="lbl_Date" runat="server" Text=""></asp:Label>
                                    </td>
                                    <td colspan="4">
                                        <uc1:DatePicker ID="DatePicker1" runat="server" width="250" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td colspan="2" style="text-align: center">
                                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="Btn_L_Normal" OnClick="Button1_Click" />
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Button ID="BtnPostSelClaim" runat="server" Text="Post All" CssClass="Btn_L_Normal"
                                            OnClick="BtnSelectedApproved_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:TemplateField>
                                                        <HeaderStyle Width="5" />
                                                        <HeaderTemplate>
                                                            <asp:CheckBox ID="chkAll" runat="server" onclick="CheckAll(this)" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            &nbsp &nbsp
                                                            <asp:CheckBox ID="chkRow" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <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="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="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="Card_Number" HeaderText="Card Number" />
                                                    <asp:BoundField DataField="uniq_ID" HeaderText="" />
                                                    <asp:BoundField DataField="mw_resp" HeaderText="MW Resp." />
                                                    <asp:BoundField DataField="SAR_Amt" HeaderText="SAR_Amt" />

                                                     <asp:BoundField DataField="ACCT_NUM_CRNCY" HeaderText="ACCT_NUM_CRNCY" />
                                                     <asp:BoundField DataField="CASH_ACCT_CRNCY" HeaderText="CASH_ACCT_CRNCY" />

                                                </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%">
                                            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%">
                                            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%">
                                              Settlement Amount</td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblSarAmount" 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="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 10%">
                                            Posting Response:
                                            <td class="tdNormal" style="width: 90%">
                                                <asp:Label ID="lbl_MW_Resp" AutoSize="false" runat="server" Text="" class="fieldError"> </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%">
                                            Transaction type
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblGLType" runat="server" Text=""></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%">
                                         
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                          
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Settlement Amount
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtAmountSAR" 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>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                           Account Currency (Dr)
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtDrCurrency" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                          Settlment Currency(Cr)
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtCrCuurency" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            <asp:Label ID="lbl_Card" runat="server" Text=" Card Number"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtPostingCardNumber" ReadOnly="true" runat="server" Width="100%"
                                                class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            GL Description
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtGLDesc" ReadOnly="true" runat="server" Width="100%" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnSavePost" runat="server" class="Btn_M_Normal" OnClick="btnSavePost_Click"
                                                Text="   Save   " />
                                            <asp:Button ID="btnCancelPost" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                CausesValidation="False" OnClick="btnCancelPost_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>
