<%@ page language="C#" masterpagefile="~/MasterPages/Main.master" autoeventwireup="true" inherits="Business_Repl_2, App_Web_repl_2.aspx.36edc644" viewStateEncryptionMode="Always" 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">

 <style type="text/css">
    .modalBackground
    {
        background-color:Black;
        filter:alpha(opacity=90);
        opacity:0.8;
    }
    .modalPopup
    {
        background-color:#FFFFFF;
        border-width:3px;
        border-style:solid;
        border-color:Black;
        padding-top:10px;
        padding-left:10px;
        width:100%;
        height:175px;
    }
    
    
</style>

    <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('<%=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='onEndLast';
        document.getElementById('gridtable').style.display = 'block';
        document.getElementById('controltable').style.display = 'none';
    }
    function showcontrol()
    {
        document.getElementById('td1').className='on';
        document.getElementById('td2').className='onEnd';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className='offEndLast';
        document.getElementById('gridtable').style.display = 'none';
        document.getElementById('controltable').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>
                            Deposit 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:Panel ID="pnlSearch" runat="server" Width="100%">
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal">
                                        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" OnClientClick="return validate()"
                                            OnClick="Button1_Click" />
                                    </td>
                                </tr>
                            </table>
                            </asp:Panel>
                            <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">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>
                                                        
                                                    <%--<asp:BoundField DataField="branch_code" HeaderText="" />
                                                    <asp:BoundField DataField="prev_replenishment_date" HeaderText="" />
                                                    <asp:BoundField DataField="prev_replenishment_time" HeaderText="" />
                                                    <asp:BoundField DataField="amount_deposited" HeaderText="" />
                                                    <asp:BoundField DataField="amount_frm_vault" HeaderText="" />
                                                    <asp:BoundField DataField="amount_to_vault" HeaderText="" />
                                                    <asp:BoundField DataField="record_date" HeaderText="" />
                                                    <asp:BoundField DataField="sw_amount_dispensed" HeaderText="" />
                                                    <asp:BoundField DataField="opening_balance" HeaderText="" />
                                                    <asp:BoundField DataField="closing_balance" HeaderText="" />
                                                    <asp:BoundField DataField="gl_atm_difference" HeaderText="" />
                                                    <asp:BoundField DataField="ej_atm_difference" HeaderText="" />
                                                    <asp:BoundField DataField="overall_atm_diff" HeaderText="" />
                                                    <asp:BoundField DataField="rec_type_code" HeaderText="" />
                                                    <asp:BoundField DataField="verified_date" HeaderText="" />
                                                    <asp:BoundField DataField="verified_time" HeaderText="" />
                                                    <asp:BoundField DataField="status_code" HeaderText="" />
                                                    <asp:BoundField DataField="error_description" HeaderText="" />
                                                    <asp:BoundField DataField="GL_amount_dispensed" HeaderText="" />
                                                    <asp:BoundField DataField="Modify_Reason" HeaderText="" />
                                                    <asp:BoundField DataField="from_b24" HeaderText="" />
                                                    <asp:BoundField DataField="ej_print_flag" HeaderText="" />
                                                    <asp:BoundField DataField="bancs_recon_result" HeaderText="" />
                                                    <asp:BoundField DataField="b24_amount_deposited" HeaderText="" />
                                                    <asp:BoundField DataField="b24_amount_frm_vault" HeaderText="" />
                                                    <asp:BoundField DataField="b24_amount_to_vault" HeaderText="" />
                                                    <asp:BoundField DataField="b24_rpl_time" HeaderText="" />
                                                    <asp:BoundField DataField="b24_p_rpl_time" HeaderText="" />
                                                    <asp:BoundField DataField="created_by" HeaderText="" />
                                                    <asp:BoundField DataField="create_date" HeaderText="" />
                                                    <asp:BoundField DataField="b24_rpl_date" HeaderText="" />
                                                    <asp:BoundField DataField="b24_p_rpl_date" HeaderText="" />--%>
                                                </Columns>
                                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                <EditRowStyle BackColor="#999999" />
                                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 20%">
                                            Go To Page:
                                            <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" AutoPostBack="True"
                                                Width="50px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </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>
                                            &nbsp;
                                        </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"></asp:TextBox>
                                            <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%">
                                            <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%">
                                                        Amount deposited
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox6" runat="server" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr style="display:none">
                                                    <td class="tdNormal" style="width: 30%">
                                                        Amount from vault
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox7" runat="server" Enabled="false" class="fieldNormal">0</asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                    Retracted
                                                        </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                         <asp:TextBox ID="txtRetracted" runat="server" class="fieldNormal" Enabled="false"></asp:TextBox>
                                                         </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal" style="width: 30%">
                                                    Rejected
                                                        </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                         <asp:TextBox ID="txtRejected" runat="server" class="fieldNormal" Enabled="false"></asp:TextBox>
                                                         </td>
                                                </tr>
                                                <tr style="display:none">
                                                    <td class="tdNormal" style="width: 30%">
                                                        Amount to vault
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox8" runat="server" class="fieldNormal" Enabled="false"></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%">
                                                        Amount deposited
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox20" Enabled="false" runat="server" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr style="display :none">
                                                    <td class="tdNormal" style="width: 30%">
                                                        Amount from vault
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox21" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr style="display:none">
                                                    <td class="tdNormal" style="width: 30%">
                                                        Amount to vault
                                                    </td>
                                                    <td class="tdNormal" style="width: 70%">
                                                        <asp:TextBox ID="TextBox22" runat="server" Enabled="false" class="fieldNormal"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <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 href="#" onclick="showcontrol();">Replenishment Reconcilliation Details</a>
                                                        </td>
                                                        <td id="td2" class="onEnd">
                                                        </td>
                                                        <td id="td3" class="off">
                                                            <a href="#" onclick="showgrid();">Claims for this period</a>
                                                        </td>
                                                        <td id="td4" class="offEndLast">
                                                        </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"></asp:TextBox>
                                            </td>
                                            <td class="tdNormal" style="width: 10%">
                                            </td>
                                             <td class="tdNormal" style="display:none;width: 15%">
                                                GL ATM Difference
                                            </td>
                                            <td class="tdNormal" style="display:none;width: 30%">
                                                <asp:TextBox ID="TextBox13" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                            </td>
                                          
                                        </tr>
                                        <tr>
                                         <td class="tdNormal" style="width: 15%">
                                                GL Amount deposited
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox3" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox><font color="red">* Cash Deposited</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"></asp:TextBox>
                                            </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>
                                           <td class="tdNormal" style="width: 15%">
                                                Overall ATM Difference
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox15" Enabled="false" ReadOnly="true" 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%">
                                                &nbsp;</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 deposited
                                            </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>
                                           <%-- <td class="tdNormal" style="width: 15%">
                                                GL Amount deposited
                                            </td>
                                            <td class="tdNormal" style="width: 30%">
                                                <asp:TextBox ID="TextBox3" Enabled="false" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                            </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>
                                </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   "  
                                                CausesValidation="False" 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 ----------------------------------------------->
                                <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()" />
                            <asp:Button ID="btn_GlEntryDelete" runat="server" class="Btn_M_Normal" Text=" Delete GL"
                                OnClick="btn_GlEntryDelete_Click" Visible="false" 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">
                                                        
                                                        &nbsp;</td>
                                                     <td class="tdNormal">
                                                        
                                                         &nbsp;</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>
                          <%--  <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
                            OkControlID="btnCancelManualGlEntry" PopupControlID="pnlManualGlEntry" TargetControlID="btn_confirm_ok_glentry" BackgroundCssClass="modalBackground">
                            </ajaxToolkit:ModalPopupExtender>--%>
                           
                                        <br />
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>
