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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">

        function SaveConfirmation() {
            var userSelection;

            userSelection = confirm("Are you sure to create new Gl Entry");

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

            userSelection = confirm("Are you sure to Delete Gl Entry");

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

            document.getElementById('<%=TextBox6.ClientID%>').disabled = false;
            document.getElementById('<%=TextBox7.ClientID%>').disabled = false;
            document.getElementById('<%=TextBox8.ClientID%>').disabled = false;
            document.getElementById('<%=ddlModifyReason.ClientID%>').disabled = false;
            document.getElementById('<%=ddlStatus.ClientID%>').disabled = false;
            document.getElementById('<%=btnEdit.ClientID %>').style.visibility = "hidden";

        }
        function validate() {
            var message = "";

            if (document.getElementById("<%=txtTerminal.ClientID%>").value == "") {
                message += "You have to enter the ATM number...\n";
            }

            if (message.length > 0) {
                message = "please notice the following requirments:\n\n" + message;
                alert(message);
                return false;
            }
            return true;
        }
        function showgrid() {
            document.getElementById('td1').className = 'off';
            document.getElementById('td2').className = 'offEnd';
            document.getElementById('td3').className = 'on';
            document.getElementById('td4').className = 'onLastEnd';
            //    document.getElementById('td5').className = 'off';
            //    document.getElementById('td6').className = 'onEnd';
            //    document.getElementById('td7').className = 'off';
            //    document.getElementById('td8').className = 'onEndLast';  

            document.getElementById('gridtable').style.display = 'block';
            document.getElementById('controltable').style.display = 'none';
            //    document.getElementById('replTable').style.display = 'none';
            //    document.getElementById('tblDropDetails').style.display = 'none';


        }
        function showcontrol() {
            document.getElementById('td1').className = 'on';
            document.getElementById('td2').className = 'onEnd';
            document.getElementById('td3').className = 'off';
            document.getElementById('td4').className = 'offLastEnd';

            //    document.getElementById('td5').className = 'off';
            //    document.getElementById('td6').className = 'offEnd';
            //    document.getElementById('td7').className = 'off';
            //    document.getElementById('td8').className = 'offLastEnd';  
            document.getElementById('gridtable').style.display = 'none';
            document.getElementById('controltable').style.display = 'block';
            //    document.getElementById('replTable').style.display = 'none';
            //    document.getElementById('tblDropDetails').style.display = 'none';
        }

        //function showgrid2() {
        //    document.getElementById('td1').className = 'off';
        //    document.getElementById('td2').className = 'offEnd';
        //    document.getElementById('td3').className = 'off';
        //    document.getElementById('td4').className = 'offend';
        //    document.getElementById('td5').className = 'on';
        //    document.getElementById('td6').className = 'onEnd';
        //    document.getElementById('td7').className = 'off';
        //    document.getElementById('td8').className = 'offLastEnd';  
        //    document.getElementById('gridtable').style.display = 'none';
        //    document.getElementById('controltable').style.display = 'none';
        //    document.getElementById('replTable').style.display = 'block';
        //    document.getElementById('tblDropDetails').style.display = 'none';
        //}

        //function showgrid3() {
        //    document.getElementById('td1').className = 'off';
        //    document.getElementById('td2').className = 'offEnd';
        //    document.getElementById('td3').className = 'off';
        //    document.getElementById('td4').className = 'offend';
        //    document.getElementById('td5').className = 'off';
        //    document.getElementById('td6').className = 'offend';
        //    document.getElementById('td7').className = 'on';
        //    document.getElementById('td8').className = 'onLastEnd';  
        //    document.getElementById('gridtable').style.display = 'none';
        //    document.getElementById('controltable').style.display = 'none';
        //    document.getElementById('replTable').style.display = 'none';
        //    document.getElementById('tblDropDetails').style.display = 'block';

        //}

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td valign="top">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                            Dispense ATM Replenishment
                        </td>
                    </tr>
                </table>
                <br>
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                    <tr>
                        <td align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                            <asp:Panel ID="pnlSearch" runat="server" Width="100%">
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            ATM number
                                        </td>
                                        <td colspan="4">
                                            <asp:ScriptManager ID="ScriptManager2" runat="server">
                                            </asp:ScriptManager>
                                            <asp:TextBox ID="txtTerminal" runat="server" class="fieldNormal" Width="250" MaxLength="4"></asp:TextBox>
                                            <ajaxToolkit:AutoCompleteExtender ID="AutoCompleteExtender1" ServiceMethod="GetCompletionList"
                                                MinimumPrefixLength="1" CompletionInterval="10" EnableCaching="false" CompletionSetCount="1"
                                                TargetControlID="txtTerminal" FirstRowSelected="false" runat="server">
                                            </ajaxToolkit:AutoCompleteExtender>
                                        </td>
                                    </tr>
                                    <tr runat="server" id="row1">
                                        <td class="tdNormal" style="width: 15%">
                                            Prev
                                            <br />
                                            replenishment date
                                        </td>
                                        <td style="width: 30%">
                                            <uc1:DatePicker ID="DatePicker1" runat="server" width="250" />
                                        </td>
                                        <td style="width: 10%">
                                        </td>
                                        <td style="width: 15%">
                                            Prev
                                            <br />
                                            replenishment time
                                        </td>
                                        <td style="width: 30%">
                                            <asp:TextBox ID="txtPrevTime" runat="server" class="fieldNormal" Width="250"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            Replenishment date
                                        </td>
                                        <td>
                                            <uc1:DatePicker ID="DatePicker2" runat="server" width="250" />
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblTime" runat="server" Text="Replenishment time"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTime" runat="server" class="fieldNormal" Width="250"></asp:TextBox>
                                        </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"
                                                OnClientClick="return validate()" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            <asp:Panel ID="pnlResult" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem">Replenishment Search Results</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="rid" OnRowCommand="GridView1_RowCommand"
                                                OnRowCreated="GridView1_RowCreated">
                                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                <Columns>
                                                    <asp:BoundField DataField="rid" HeaderText="Replenishment ID" />
                                                    <asp:BoundField DataField="terminal" HeaderText="Terminal ID" />
                                                    <asp:BoundField DataField="repl_curr" HeaderText="Repl Currancy" />
                                                    <asp:BoundField DataField="repl_date" HeaderText="Repl Date" />
                                                    <asp:BoundField DataField="repl_time" HeaderText="Repl Time" />
                                                    <asp:BoundField DataField="status" HeaderText="Status" />
                                                    <asp:BoundField DataField="acct_number" HeaderText="Acct Number" />
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="e" Text="Edit"
                                                        ImageUrl="~/Images/edit.jpg"></asp:ButtonField>
                                                </Columns>
                                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                <EditRowStyle BackColor="#999999" />
                                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 20%">
                                            Go To Page:
                                            <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" AutoPostBack="True"
                                                Width="50px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnAdd" runat="server" Text="     Add     " class="Btn_M_Normal"
                                                OnClick="btnAdd_Click" />
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            <asp:Label ID="lblError1" runat="server" Text="" class="fieldError"></asp:Label>
                            <asp:Panel ID="pnlControls" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem">Replenishment Details</legend>
                                </fieldset>
                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Branch
                                        </td>
                                        <td class="tdNormal" colspan="2">
                                            <asp:DropDownList ID="DropDownList1" runat="server" class="fieldNormal" DataTextField="branch_name"
                                                DataValueField="branch_code">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            ATM Number
                                        </td>
                                        <td class="tdNormal" colspan="2">
                                            <asp:TextBox ID="txtATMNumberAdd" runat="server" class="fieldNormal" MaxLength="4"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            &nbsp;
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Prev Repl Date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblPrevReplDate" runat="server" Text="" Visible="false"></asp:Label>
                                            <uc1:DatePicker ID="datePrev" runat="server" />
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Prev Repl Time
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtPreTime" runat="server" class="fieldNormal"></asp:TextBox>&nbsp;(HH:MM:SS)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Repl Date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblReplDate" runat="server" Text="" Visible="false"></asp:Label>
                                            <uc1:DatePicker ID="dateCurrent" runat="server" />
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Repl Time
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtRepTime" runat="server" class="fieldNormal"></asp:TextBox>&nbsp;(HH:MM:SS)
                                        </td>
                                    </tr>
                                    <tr style="display: none">
                                        <td class="tdNormal" style="width: 15%">
                                            Prev Postilion Date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <uc1:DatePicker ID="dateB24PrevDate" runat="server" />
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Prev Postilion Time
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtPrevB24Time" runat="server" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr style="display: none">
                                        <td class="tdNormal" style="width: 15%">
                                            Postilion Date
                                        </td>
                                        <td class="tdNormal" style="width: 30%" runat="server">
                                            <uc1:DatePicker ID="dateB24Date" runat="server" />
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Postilion Time
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtB24Time" runat="server" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Repl Currency
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:DropDownList ID="ddlCurrency" runat="server" class="fieldNormal" DataTextField="currency"
                                                DataValueField="iso_code">
                                            </asp:DropDownList>
                                            <asp:TextBox ID="TextBox5" Enabled="false" runat="server" class="fieldNormal"></asp:TextBox>
                                        </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%">
                                            Record Status
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:DropDownList ID="ddlStatus" runat="server" class="fieldNormal" DataTextField="status"
                                                DataValueField="SID">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            From Postilion
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:CheckBox ID="chkFromBase24" Enabled="false" runat="server" class="fieldNormal" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            From CL / Add
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblClAdd" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            HOST results
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblBANCS" runat="server" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Record date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="TextBox10" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Modify reason
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:DropDownList ID="ddlModifyReason" runat="server" DataTextField="reason" Width="250px"
                                                DataValueField="reason_id" class="fieldNormal" AutoPostBack="False">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Created By
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblUser" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Creation Date
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblUserDate" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" colspan="2" style="width: 45%">
                                            <fieldset id="addItem">
                                                <legend id="addItem">EJ Totals</legend>
                                            </fieldset>
                                            <table border="0" style="width: 95%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        Opening Balance
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox7" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        Dispensed
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox6" runat="server" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        <asp:Label ID="lbl_Disp_A" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="txt_Disp_A" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        <asp:Label ID="lbl_Disp_B" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="txt_Disp_B" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        <asp:Label ID="lbl_Disp_C" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="txt_Disp_C" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        <asp:Label ID="lbl_Disp_D" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="txt_Disp_D" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        <asp:Label ID="lbl_Disp_E" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="txt_Disp_E" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        Diverted SAR
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="txtDivertedSAR" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        Diverted USD
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="txtDivertedUSD" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        Closing Balance
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox8" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal" colspan="2">
                                            <fieldset id="addItem">
                                                <legend id="addItem">Postilion Totals</legend>
                                            </fieldset>
                                            <table border="0" style="width: 95%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        Opening Balance
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox21" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        Dispensed
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox20" Enabled="false" runat="server" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                        Closing Balance
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox22" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                            <br />
                                            <!--<fieldset id="addItem">
                                                <legend id="addItem">FINACLE Dropped</legend>
                                            </fieldset>
                                            <table border="0" style="width: 95%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                       Debit Dropped
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="txtDebitDrop" Enabled="false" runat="server" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                
                                            </table> -->
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <asp:Panel ID="pnlReadOnly" runat="server" Width="100%" Visible="false">
                                    <table width="95%" class="tabTb" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left">
                                                <table border="0" cellpadding="0" cellspacing="0" dir="ltr">
                                                    <tr>
                                                        <td id="td1" class="on">
                                                            <a onclick="showcontrol(); return false;" href="#">Replenishment Reconcilliation Details</a>
                                                        </td>
                                                        <td id="td2" class="onEnd">
                                                        </td>
                                                        <td id="td3" class="off">
                                                            <a href="#" onclick="showgrid();return false;">Claims for this period</a>
                                                        </td>
                                                        <td id="td4" class="offEndLast">
                                                        </td>
                                                        <%-- <td id="td5" class="off">
                                                            <a href="#" onclick="showgrid2();return false;">Replenishment Details</a>
                                                        </td>
                                                        <td id="td6" class="offend">

                                                        <td id="td7" class="off">
                                                            <a href="#" onclick="showgrid3();return false;">Drop Details</a>
                                                        </td>
                                                         <td id="td8" class="offEndLast">
                                                        </td>
                                                        
                                                        </td>--%>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                    <table id="controltable" border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                        <tr>
                                            <td class="tdNormal" style="width: 15%">
                                                Opening Balance
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox11" Enabled="true" ReadOnly="false" runat="server" class="fieldNormal"
                                                    OnTextChanged="TextBox11_TextChanged" AutoPostBack="True"></asp:TextBox>
                                            </td>
                                            <td class="tdNormal" style="width: 10%">
                                            </td>
                                            <td class="tdNormal" style="display: none; width: 15%">
                                                EJ GL ATM Difference
                                            </td>
                                            <td class="tdNormal" style="display: none; width: 30%">
                                                <asp:TextBox ID="txtGlDifference" Enabled="false" ReadOnly="true" runat="server"
                                                    class="fieldNormal"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdNormal" style="width: 15%">
                                                Switch Amount dispensed
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox3" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox><font
                                                    color="red">* No GL Dispensed Amt.</font>
                                            </td>
                                            <td class="tdNormal" style="width: 10%">
                                            </td>
                                            <td class="tdNormal" style="width: 15%">
                                                EJ Switch Difference
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox14" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdNormal" style="width: 15%">
                                                Closing Balance
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox12" Enabled="true" ReadOnly="false" runat="server" class="fieldNormal"
                                                    OnTextChanged="TextBox12_TextChanged" AutoPostBack="True"></asp:TextBox>
                                            </td>
                                            <td class="tdNormal" style="width: 10%">
                                            </td>
                                            <td class="tdNormal" style="width: 15%; display: none">
                                                EJ REPL GL ATM Difference
                                            </td>
                                            <td class="tdNormal" style="width: 30%; display: none">
                                                <asp:TextBox ID="txtEJREPLGLATMDifference" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdNormal" style="width: 15%">
                                                Overall ATM Difference
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="txtOverAllDiffer" Enabled="false" ReadOnly="true" runat="server"
                                                    class="fieldNormal"></asp:TextBox>
                                            </td>
                                            <td class="tdNormal" style="width: 10%">
                                            </td>
                                            <td class="tdNormal" style="width: 15%">
                                                Retract
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="txtGlRetract" runat="server" class="fieldNormal" Enabled="false"
                                                    ReadOnly="true" MaxLength="14"></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%">
                                            </td>
                                            <td class="tdNormal" style="width: 15%; display: none">
                                                Record Type
                                            </td>
                                            <td class="tdNormal" style="width: 30%; display: none">
                                                <asp:TextBox ID="TextBox16" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr style="display: none">
                                            <td class="tdNormal" style="width: 15%">
                                                Verified date
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox17" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                            </td>
                                            <td class="tdNormal" style="width: 10%">
                                            </td>
                                            <td class="tdNormal" style="width: 15%">
                                                verified time
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox18" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr style="display: none">
                                            <td class="tdNormal" style="width: 15%">
                                                SW Amount dispensed
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox19" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                            </td>
                                            <td class="tdNormal" style="width: 10%">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdNormal" style="width: 15%">
                                                Description
                                            </td>
                                            <td class="tdNormal" colspan="4">
                                                <asp:TextBox ID="TextBox1" Enabled="true" TextMode="MultiLine" Rows="6" ReadOnly="false"
                                                    runat="server" class="fieldMultiLine"></asp:TextBox>
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table id="gridtable" style="display: none" border="0" width="100%" cellpadding="0"
                                        cellspacing="0" class="add_ItemTB">
                                        <tr>
                                            <td class="tdNormal" colspan="5">
                                                <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AllowSorting="True"
                                                    AutoGenerateColumns="False" CellPadding="4" CssClass="gridMaster" Width="100%"
                                                    DataKeyNames="claim_id" EmptyDataText="There are no Results" ForeColor="#333333"
                                                    GridLines="None">
                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                    <Columns>
                                                        <asp:BoundField DataField="claim_id" HeaderText="Claim ID" />
                                                        <asp:BoundField DataField="card_number" HeaderText="Card No" />
                                                        <asp:BoundField DataField="term_id" HeaderText="Terminal ID" />
                                                        <asp:BoundField DataField="tran_date" HeaderText="Tran Date" />
                                                        <asp:BoundField DataField="tran_amount" HeaderText="Tran Amount" />
                                                        <asp:BoundField DataField="rrn" HeaderText="Reference No" />
                                                        <asp:BoundField DataField="claim_issuer" HeaderText="Claim Issuer" />
                                                        <asp:BoundField DataField="claim_status_desc" HeaderText="Status" />
                                                        <asp:BoundField DataField="sama_claim_status" HeaderText="Sama Status" />
                                                        <asp:BoundField DataField="duration_days" HeaderText="Duration" />
                                                        <asp:BoundField DataField="Claim_Reset_Flg" HeaderText="Reset?" />
                                                        <asp:BoundField DataField="last_commentator" HeaderText="last Inv. By" />
                                                        <asp:BoundField DataField="Parent_claim_id" HeaderText="Parent claim" />
                                                    </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="DropDownList3" runat="server" class="fieldNormal" AutoPostBack="True"
                                                    Width="50px" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                        </tr>
                                    </table>
                                    <table id="replTable" style="display: none" border="0" width="100%" cellpadding="0"
                                        cellspacing="0" class="add_ItemTB">
                                        <tr>
                                            <td class="tdNormal" style="width: 20%">
                                                Replenishment Type:
                                                <asp:DropDownList ID="ddlRepType" runat="server" class="fieldNormal" AutoPostBack="false">
                                                    <asp:ListItem Value="24" Text="Manual Replenishment"></asp:ListItem>
                                                    <asp:ListItem Value="25" Text="Automatic Replenishment"></asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:Button ID="btnGetData" runat="server" Text="Search" CssClass="Btn_L_Normal"
                                                    OnClick="btnGetData_Click" />
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdNormal" colspan="5">
                                                <asp:GridView ID="grFinacleReplDet" runat="server" AllowPaging="True" AllowSorting="True"
                                                    AutoGenerateColumns="False" CellPadding="4" CssClass="gridMaster" Width="100%"
                                                    DataKeyNames="GL_ACCT_NO" EmptyDataText="There are no Results" ForeColor="#333333"
                                                    GridLines="None">
                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                    <Columns>
                                                        <asp:BoundField DataField="TRAN_DATE" HeaderText="Tran Date" />
                                                        <asp:BoundField DataField="tran_time" HeaderText="Tran Time" />
                                                        <asp:BoundField DataField="Settl_DATE" HeaderText="Settelment Date" />
                                                        <asp:BoundField DataField="TRAN_AMOUNT" HeaderText="Tran Amount" />
                                                        <asp:BoundField DataField="ACCT_NUMBER" HeaderText="Account Number" />
                                                        <asp:BoundField DataField="GL_ACCT_NO" HeaderText="GL Account No" />
                                                        <asp:BoundField DataField="SUBSCRIBER_ID" HeaderText="SUBSCRIBER_/Term ID" />
                                                        <asp:BoundField DataField="TXT_MESSAGE" HeaderText="Message" />
                                                    </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="ddlChangeReplIndex" runat="server" class="fieldNormal" AutoPostBack="True"
                                                    Width="50px" OnSelectedIndexChanged="ddlChangeReplIndex_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                        </tr>
                                    </table>
                                    <table id="tblDropDetails" style="display: none" border="0" width="100%" cellpadding="0"
                                        cellspacing="0" class="add_ItemTB">
                                        <tr>
                                            <td class="tdNormal" style="width: 20%">
                                                Transactions Type:
                                                <asp:DropDownList ID="ddlDropSelection" runat="server" class="fieldNormal" AutoPostBack="false">
                                                    <asp:ListItem Value="1" Text="Drop Transactions"></asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:Button ID="btnDropGet" runat="server" Text="Search" CssClass="Btn_L_Normal"
                                                    OnClick="btnDropGet_Click" />
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdNormal" colspan="5">
                                                <asp:GridView ID="grDropDetails" runat="server" AllowPaging="True" AllowSorting="True"
                                                    AutoGenerateColumns="False" CellPadding="4" CssClass="gridMaster" Width="100%"
                                                    DataKeyNames="TRAN_DATE" EmptyDataText="There are no Results" ForeColor="#333333"
                                                    GridLines="None">
                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                    <Columns>
                                                        <asp:BoundField DataField="TRAN_DATE" HeaderText="Tran Date" />
                                                        <asp:BoundField DataField="tran_time" HeaderText="Tran Time" />
                                                        <asp:BoundField DataField="Settl_DATE" HeaderText="Settelment Date" />
                                                        <asp:BoundField DataField="TRAN_AMOUNT" HeaderText="Tran Amount" />
                                                        <asp:BoundField DataField="FINANCIAL_FLAG" HeaderText="Financial Flagr" />
                                                        <asp:BoundField DataField="CARD_NUMBER" HeaderText="Card Number" />
                                                        <asp:BoundField DataField="RRN" HeaderText="RRN" />
                                                        <asp:BoundField DataField="PRODUCT" HeaderText="Product" />
                                                    </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="ddlDropDetails" runat="server" class="fieldNormal" AutoPostBack="True"
                                                    Width="50px" OnSelectedIndexChanged="ddlDropDetails_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                            <td class="tdNormal">
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <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="btnManualGLEntry" runat="server" Text="Manual GL Entry" class="Btn_L_Normal"
                                                OnClick="btnManualGLEntry_Click" />
                                            <asp:Button ID="btnSave" runat="server" class="Btn_M_Normal" OnClick="btnSave_Click"
                                                Text="   Save   " />
                                            <asp:Button ID="btnEdit" runat="server" class="Btn_M_Normal" Text="   Edit   " OnClick="btnEdit_Click1" />
                                            <% if (lblBANCS.Text == "Overage" || lblBANCS.Text == "Shortage")
                                               { %>
                                            <asp:Button ID="btn_DifferenceGlEntry" runat="server" Text="Diff. GL Entry" class="Btn_L_Normal"
                                                OnClick="btn_DifferenceGlEntry_Click" />
                                            <% }%>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            <asp:Panel ID="pnl_confirmation_glentry" runat="server" Width="100%">
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td colspan="2" class="tdNormal" align="center">
                                            <asp:Label ID="Label2" runat="server" Text="Are you sure you want to do Manual GL Entry?"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            <asp:Button ID="btn_confirm_ok_glentry" runat="server" Text="OK" CssClass="Btn_L_Normal"
                                                OnClick="btn_confirm_ok_glentry_Click" />
                                        </td>
                                        <td class="tdNormal">
                                            <asp:Button ID="btn_confirm_cancel_glentry" runat="server" Text="Cancel" CssClass="Btn_L_Normal"
                                                OnClick="btn_confirm_cancel_glentry_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            <asp:Panel ID="pnl_confirmation_recon" runat="server" Width="100%">
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td colspan="2" class="tdNormal" align="center">
                                            <asp:Label ID="Label1" runat="server" Text="Are you sure you want to Reconcile?"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            <asp:Button ID="btn_conf_ok" runat="server" Text="OK" CssClass="Btn_L_Normal" OnClick="btn_conf_ok_Click" />
                                        </td>
                                        <td class="tdNormal">
                                            <asp:Button ID="btn_conf_cancel" runat="server" Text="Cancel" CssClass="Btn_L_Normal"
                                                OnClick="btn_conf_cancel_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br />
                              <asp:Label ID="lblError_PanelGlEntrySave" runat="server" Text="" class="fieldError"></asp:Label>
                            <asp:Panel ID="PanelGlEntrySave" runat="server" Width="100%" Visible="false">
                                <table border="0" cellpadding="0" cellspacing="0" id="printtable" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            <%=lblBANCS.Text%>
                                            Details
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <%  if (lblBANCS.Text == "Shortage")
                                                {%>
                                            <asp:DropDownList ID="ddlShortageType" runat="server" class="fieldNormal" AutoPostBack="True" 
                                                onselectedindexchanged="ddlShortageType_SelectedIndexChanged">
                                                <asp:ListItem Value="0">Select Shortage Reason</asp:ListItem>
                                                <asp:ListItem Value="1">Short due to false reversal</asp:ListItem>
                                                <asp:ListItem Value="2">Short and over(For custodian it’s over but in reconciliation its short)</asp:ListItem>
                                                <asp:ListItem Value="3">Amount found in span difference account</asp:ListItem>
                                            </asp:DropDownList>
                                            <%} %>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                    </tr>
                    <tr>
                        <td class="tdNormal" style="width: 15%">
                            Record date
                        </td>
                        <td class="tdNormal" style="width: 30%">
                            <asp:Label ID="lbl_CreatedDate" 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="lbl_Posting_for_ReplDate" 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="lbl_Acct_number" 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="lbl_settle_account" runat="server" Text="" ForeColor="#3399FF"></asp:Label>
                        </td>
                    </tr>
                
           
               
                    <tr>
                        <td class="tdNormal" style="width: 15%">
                            Approved
                        </td>
                        <td class="tdNormal" style="width: 30%">
                            <asp:Label ID="lbl_approved_by" 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="lbl_approve_date" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                        </td>
                    </tr>
                             <tr>
                        <td class="tdNormal" style="width: 15%">
                            Transaction type
                        </td>
                        <td class="tdNormal" style="width: 30%">
                            <asp:Label ID="lbl_txn_type" runat="server" Text="" ForeColor="#3399FF"></asp:Label>
                        </td>
                        <td class="tdNormal" style="width: 10%">
                        </td>
                        <td class="tdNormal" style="width: 15%">
                           Amount
                        </td>
                        <td class="tdNormal" style="width: 30%">
                              <asp:Label ID="lbl_gl_tran_amt" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                        </td>
                    </tr>
         
                    <tr>
                        <td class="tdNormal" style="width: 15%">
                          GL Desc
                        </td>
                        <td class="tdNormal" style="width: 30%">
                           <asp:TextBox ID="txt_GL_Desc" runat="server" class="fieldNormal" MaxLength="35" 
                                Width="224px"></asp:TextBox>
                        </td>
                        <td class="tdNormal" style="width: 10%">
                        </td>
                        <td class="tdNormal" style="width: 15%">
                          Posted      
                        </td>
                        <td class="tdNormal" style="width: 30%">
                           <asp:Label ID="lbl_POSTED" runat="server" Text="" ForeColor="#3399FF"> </asp:Label>
                             <asp:Label ID="lbl_GPE_CODE" runat="server" Visible="false" Text="" ForeColor="#3399FF"> </asp:Label>
                               <asp:Label ID="lbl_ATM_NO" runat="server" Visible="false" Text="" ForeColor="#3399FF"> </asp:Label>
                             
                        </td>
                    </tr>
                
              
                </table>
                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                    <tr>
                        <td>
                            <asp:Button ID="btn_GlEntryCancel" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                CausesValidation="False" OnClick="btn_GlEntryCancel_Click" />
                            <asp:Button ID="btn_GlEntrySave" runat="server" class="Btn_M_Normal" Text=" Save GL"
                                OnClick="btn_GlEntrySave_Click" OnClientClick="return SaveConfirmation()" />
                                <% if (lbl_POSTED.Text == "No" && lbl_approved_by.Text =="Yes")
                                   {%>
                            <asp:Button ID="btn_GlEntryDelete" runat="server" class="Btn_M_Normal" Text=" Delete GL"
                                OnClick="btn_GlEntryDelete_Click"  OnClientClick="return DelConfirmation()" />
                                <%} %>
                        </td>
                    </tr>
                </table>
                </asp:Panel>
                <br />
                <asp:Panel ID="pnlManualGlEntry" runat="server" Visible="false">
                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                        <tr>
                            <td class="tdNormal">
                                ATM Number
                            </td>
                            <td class="tdNormal">
                                <asp:TextBox ID="txtTerminalID" runat="server" class="fieldNormal" MaxLength="8"></asp:TextBox>
                            </td>
                            <td class="tdNormal">
                            </td>
                            <td class="tdNormal">
                                Retract
                            </td>
                            <td class="tdNormal">
                                <asp:TextBox ID="txtRetract" runat="server" class="fieldNormal" MaxLength="14"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">
                                Replenishment Date
                            </td>
                            <td class="tdNormal">
                                <asp:TextBox ID="txtReplDate" runat="server" class="fieldNormal" MaxLength="16"></asp:TextBox>
                                <uc1:DatePicker ID="dtReplDate" runat="server" Visible="False" width="250" />
                            </td>
                            <td class="tdNormal">
                            </td>
                            <td class="tdNormal" style="width: 15%">
                                Replenishment Time
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                (HH:MM:SS)<br />
                                <asp:TextBox ID="txtReplTime" runat="server" class="fieldNormal" MaxLength="8"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">
                                ATM Type
                            </td>
                            <td class="tdNormal">
                                <asp:DropDownList ID="ddlReplType" runat="server" class="fieldNormal">
                                    <asp:ListItem Value="009">Dispense</asp:ListItem>
                                    <asp:ListItem Value="030">Deposit</asp:ListItem>
                                    <asp:ListItem Value="039">Recycle</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td class="tdNormal">
                            </td>
                            <td class="tdNormal" style="width: 15%">
                                Replenishment Currency
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                <asp:DropDownList ID="DropDownList2" runat="server" class="fieldNormal" DataTextField="currency"
                                    DataValueField="iso_code">
                                </asp:DropDownList>
                                <asp:TextBox ID="txtReplCurrency" runat="server" class="fieldNormal" MaxLength="16"
                                    Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdNormal" style="width: 15%">
                                GL Account No
                            </td>
                            <td class="tdNormal">
                                <asp:TextBox ID="txtGLAccountNo" runat="server" class="fieldNormal" MaxLength="16"></asp:TextBox>
                            </td>
                            <td class="tdNormal">
                            </td>
                            <td class="tdNormal" style="width: 15%">
                                &nbsp;
                            </td>
                            <td class="tdNormal" style="width: 30%">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="5">
                                <fieldset id="Fieldset2">
                                    <legend id="Legend2">GL</legend>
                                </fieldset>
                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Opening Balance
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtOpeningBalance" runat="server" class="fieldNormal" MaxLength="20"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Closing Balance
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtClosingBalance" runat="server" class="fieldNormal" MaxLength="20"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                        <tr>
                            <td>
                                <asp:Button ID="btnCancelManualGlEntry" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                    CausesValidation="False" OnClick="btnCancelManualGlEntry_Click" />
                                <asp:Button ID="btnSaveManualGlEntry" runat="server" Text="   Save   " class="Btn_M_Normal"
                                    OnClick="btnSaveManualGlEntry_Click" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <!------------------------------------body End2 ----------------------------------------------->
    </td> </tr> </table>
</asp:Content>
