<%@ page title="" language="C#" masterpagefile="~/MasterPages/Main.master" autoeventwireup="true" inherits="Business_ATM_Jard, App_Web_5gjzjsli" viewStateEncryptionMode="Always" maintainScrollPositionOnPostBack="true" %>

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script language="javascript" type="text/javascript">
        function searchValidate()
        {
            var message = "";

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

            if (isNaN(document.getElementById("<%=txt_atmNumberFilter.ClientID%>").value))
            {
                message += "ATM number must contain numbers only\n";
            }
        
            if(message.length >0)
            {
                message = "please notice the following requirments:\n\n" + message;
                alert(message);
                return false;
            }
            return true;
        }

        function addJardValidator() {
            var message = ""; 
            var regExp = /^(\d{1,2}):(\d{2}):(\d{2})/;

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

            if (isNaN(document.getElementById("<%=txt_atmNumber.ClientID%>").value)) {
                message += "ATM number must contain numbers only\n";
            }

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

            if (!document.getElementById("<%=txt_replTime.ClientID%>").value.match(regExp)) {
                message += "Please enter a valid time format eg.HH:MM:SS ...\n";
            }

            if (document.getElementById("<%=ddl_rplCurrency.ClientID%>").value == "0") {
                message += "Please Select a Currency ...\n";
            }
            
            if (message.length > 0) {
                message = "please notice the following requirments:\n\n" + message;
                alert(message);
                return false;
            }

            
            return true;
        }

        function capturedCardsValidater( textControl) {
            
            if (isNaN(textControl.value)) {
                document.getElementById("<%=lbl_capturedCardsError.ClientID%>").innerHTML = "The Cards Number should be a numeric value!";

                document.getElementById("<%=ddl_capturedCard_cardType.ClientID%>").disabled = true;
                document.getElementById("<%=txt_capturedCard_cardNo.ClientID%>").disabled = true;
                document.getElementById("<%=txt_capturedCard_issuerBank.ClientID%>").disabled = true;
                document.getElementById("<%=txt_capturedCard_holderName.ClientID%>").disabled = true;
                document.getElementById("<%=btn_addCard.ClientID%>").disabled = true;

            } else {
                document.getElementById("<%=lbl_capturedCardsError.ClientID%>").innerHTML = "";

                document.getElementById("<%=ddl_capturedCard_cardType.ClientID%>").disabled = false;
                document.getElementById("<%=txt_capturedCard_cardNo.ClientID%>").disabled = false;
                document.getElementById("<%=txt_capturedCard_issuerBank.ClientID%>").disabled = false;
                document.getElementById("<%=txt_capturedCard_holderName.ClientID%>").disabled = false;
                document.getElementById("<%=btn_addCard.ClientID%>").disabled = false;

            }

            
        }

        function addCardValidator() {
            var message = "";

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

            if (message.length > 0) {
                message = "please notice the following requirments:\n\n" + message;
                alert(message);
                return false;
            }

            return true;
        }

        function calcOpenPhyCashTotal() {

            var total = (document.getElementById("<%=txt_opnPhyCash_10SR.ClientID%>").value * 10) +
                        (document.getElementById("<%=txt_opnPhyCash_20SR.ClientID%>").value * 20) +
                        (document.getElementById("<%=txt_opnPhyCash_50SR.ClientID%>").value * 50) +
                        (document.getElementById("<%=txt_opnPhyCash_100SR.ClientID%>").value * 100) +
                        (document.getElementById("<%=txt_opnPhyCash_500SR.ClientID%>").value * 500) +
                        (document.getElementById("<%=txt_opnPhyCash_100USD.ClientID%>").value * 100);


            document.getElementById("<%=lbl_openPhyCashTotal.ClientID%>").innerHTML = total;
        }

        function calcOpenCashEJTotal() {

            var total = (document.getElementById("<%=txt_opnCashEJ_10SR.ClientID%>").value * 10) +
                        (document.getElementById("<%=txt_opnCashEJ_20SR.ClientID%>").value * 20) +
                        (document.getElementById("<%=txt_opnCashEJ_50SR.ClientID%>").value * 50) +
                        (document.getElementById("<%=txt_opnCashEJ_100SR.ClientID%>").value * 100) +
                        (document.getElementById("<%=txt_opnCashEJ_500SR.ClientID%>").value * 500) +
                        (document.getElementById("<%=txt_opnCashEJ_100USD.ClientID%>").value * 100);


            document.getElementById("<%=lbl_openEJCashTotal.ClientID%>").innerHTML = total;
        }

        function calcClosePhyCashTotal() {

            var total = (document.getElementById("<%=txt_closePhyCashCount_10SR.ClientID%>").value * 10) +
                        (document.getElementById("<%=txt_closePhyCashCount_20SR.ClientID%>").value * 20) +
                        (document.getElementById("<%=txt_closePhyCashCount_50SR.ClientID%>").value * 50) +
                        (document.getElementById("<%=txt_closePhyCashCount_100SR.ClientID%>").value * 100) +
                        (document.getElementById("<%=txt_closePhyCashCount_500SR.ClientID%>").value * 500) +
                        (document.getElementById("<%=txt_closePhyCashCount_100USD.ClientID%>").value * 100);


            document.getElementById("<%=lbl_closePhyCashTotal.ClientID%>").innerHTML = total;
        }

        function calcCloseCashTotal() {

            var total = (document.getElementById("<%=txt_closeCashATMSlip_10SR.ClientID%>").value * 10) +
                        (document.getElementById("<%=txt_closeCashATMSlip_20SR.ClientID%>").value * 20) +
                        (document.getElementById("<%=txt_closeCashATMSlip_50SR.ClientID%>").value * 50) +
                        (document.getElementById("<%=txt_closeCashATMSlip_100SR.ClientID%>").value * 100) +
                        (document.getElementById("<%=txt_closeCashATMSlip_500SR.ClientID%>").value * 500) +
                        (document.getElementById("<%=txt_closeCashATMSlip_100USD.ClientID%>").value * 100);


            document.getElementById("<%=lbl_closeCashTotal.ClientID%>").innerHTML = total;
        }

        function calcDispCashTotal() {

            var total = (document.getElementById("<%=txt_cashDispensed_10SR.ClientID%>").value * 10) +
                        (document.getElementById("<%=txt_cashDispensed_20SR.ClientID%>").value * 20) +
                        (document.getElementById("<%=txt_cashDispensed_50SR.ClientID%>").value * 50) +
                        (document.getElementById("<%=txt_cashDispensed_100SR.ClientID%>").value * 100) +
                        (document.getElementById("<%=txt_cashDispensed_500SR.ClientID%>").value * 500) +
                        (document.getElementById("<%=txt_cashDispensed_100USD.ClientID%>").value * 100);


            document.getElementById("<%=lbl_dispCashTotal.ClientID%>").innerHTML = total;
        }

        function jardClosingConfirmation() {
            var userSelection;

            userSelection = confirm("Are you sure want to close this Jard ?");

            if (userSelection) {
                return true;
            } else {
            return false;
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
    <asp:HiddenField runat="server" ID="jardID" />
    
    <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>
                             ATM Jard
                        </td>
                    </tr>
                </table>
                <br />
                <!------------------------------------body End1 ----------------------------------------------->

                <table id="tbl1" style="display: block" border="0" width="95%" cellpadding="0" cellspacing="0"
                 class="add_ItemTB1">
                    <tr>
                        <td class="tdNormal" style="width: 15%" >
                            ATM Number: 
                        </td>
                        <td class="tdNormal" style="width: 30%" >
                            <asp:TextBox ID="txt_atmNumberFilter" runat="server" class="fieldNormal"></asp:TextBox>
                        </td>
                        <td class="tdNormal" style="width: 10%" ></td>
                        <td class="tdNormal" style="width: 15%" >
                           Replenishment Curreny:
                        </td>
                        <td class="tdNormal" style="width: 30%" >
                            <asp:DropDownList ID="ddl_rplCurrency_filter" runat="server" class="fieldNormal"> 
                                <asp:ListItem Text="Select Currency" Value="0" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="SAR" Value="SAR"></asp:ListItem>
                                <asp:ListItem Text="USD" Value="USD"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdNormal" style="width: 15%" >
                            Replenishment Date: 
                        </td>
                        <td class="tdNormal" style="width: 30%" >
                            <uc1:DatePicker ID="dtp_rplDate" runat="server" />
                        </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%" >
                            
                        </td>
                        <td class="tdNormal" style="width: 30%" ></td>
                        <td class="tdNormal" style="width: 10%" >
                        
                        </td>
                        <td class="tdNormal" style="width: 15%" >
                           
                        </td>
                        <td class="tdNormal" style="width: 30%" >
                            <asp:Button ID="btn_search" runat="server" Text="   Search   " 
                                class="Btn_M_Normal" onclick="btn_search_Click" OnClientClick="return searchValidate()"/>
                        </td>
                    </tr>
                </table>

                <br />

                <asp:Label ID="lbl_error" runat="server" Text="" class="fieldError"></asp:Label>

                <asp:Panel ID="pnl_result" runat="server" Width="100%" Visible="false">
                    <table border="0" width="100%" cellpadding="0" cellspacing="0" class="contTB">
                        <tr>
                            <td class="tdNormal" colspan="5">
                                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                    <tr>
                                        <td>
                                            Opening ATM Jard
                                        </td>
                                    </tr>
                                </table>

                                <asp:GridView ID="grd_jardResult" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                    AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None"
                                    DataKeyNames="AJT" EmptyDataText="There are no Results" 
                                    onrowcommand="grd_jardResult_RowCommand" 
                                    onpageindexchanging="grd_jardResult_PageIndexChanging">
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="ATM_No" HeaderText="ATM Number" />
                                        <asp:BoundField DataField="RPL_CURRENCY" HeaderText="Replenishment Currency" />
                                        <asp:BoundField DataField="LAST_REPL_DATE" HeaderText="Last Replenishment Date" />
                                        <asp:BoundField DataField="CURR_REPL_DATE" HeaderText="Current Replenishment Date" />
                                        <asp:BoundField DataField="REPL_TIME" HeaderText="Replenishment Time" />
                                        <asp:BoundField DataField="JARD_STATUS" HeaderText="JARD Status" />
                                                    
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" Text="View Jard Details"
                                            ImageUrl="~/Images/view.jpg">
                                            <ItemStyle Width="30px" />
                                        </asp:ButtonField>
                                        
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="u" Text="Update Jard"
                                            ImageUrl="~/Images/edit.jpg">
                                            <ItemStyle Width="30px" />
                                        </asp:ButtonField>

                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" Text="Delete Jard"
                                            ImageUrl="~/Images/delete.jpg">
                                            <ItemStyle Width="30px" />
                                        </asp:ButtonField>
                                    </Columns>
                                    <PagerStyle BackColor="#284775" ForeColor="White" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                    <EditRowStyle BackColor="#999999" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                </asp:GridView>
                                            
                            </td>
                        </tr>
                    </table>
                </asp:Panel>

                <asp:Panel ID="pnl_addNew" runat="server" Width="100%" Visible="false">
                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                        <tr>
                            <td>
                                 <asp:Button ID="btn_addNew" runat="server" Text="   Add New   " 
                                    class="Btn_M_Normal" onclick="btn_addNew_Click" />
                            </td>
                        </tr>
                </table>
                </asp:Panel>

                <asp:Panel ID="pnl_jardDetails" runat="server" Width="95%">
                    <fieldset id="addItem">
                        <legend id="addItem">ATM Jard Details</legend>
                    </fieldset>

                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                        <tr>
                            <td class="tdNormal" style="width:23%">ATM Number:</td>
                            <td class="tdNormal" style="width:25%"><asp:TextBox ID="txt_atmNumber" runat="server" class="fieldNormal"></asp:TextBox></td>
                            <td class="tdNormal" style="width:4%"></td>
                            <td class="tdNormal" style="width:23%">Replenishment Currency:</td>
                            <td class="tdNormal" style="width:25%">
                                <asp:DropDownList ID="ddl_rplCurrency" runat="server" class="fieldNormal"> 
                                    <asp:ListItem Text="Select Currency" Value="0" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="SAR" Value="SAR"></asp:ListItem>
                                    <asp:ListItem Text="USD" Value="USD"></asp:ListItem>
                                </asp:DropDownList>
                            
                            </td>
                        </tr>

                        <tr>
                            <td class="tdNormal" style="width:23%">Last Replenishment Date:</td>
                            <td class="tdNormal" style="width:25%"><asp:Label ID="lbl_lastReplDate" runat="server" class="fieldNormal"></asp:Label></td>
                            <td class="tdNormal" style="width:4%">&nbsp;</td>
                            <td class="tdNormal" style="width:23%"></td>
                            <td class="tdNormal" style="width:25%"></td>
                        </tr>

                        <tr>
                            <td class="tdNormal" style="width:23%">Current Replenishment Date:</td>
                            <td class="tdNormal" style="width:25%"><asp:Label ID="lbl_currentReplDate" runat="server" class="fieldNormal"></asp:Label></td>
                            <td class="tdNormal" style="width:4%">&nbsp;</td>
                            <td class="tdNormal" style="width:23%">Replenishment Time:</td>
                            <td class="tdNormal" style="width:25%"><asp:TextBox ID="txt_replTime" runat="server" class="fieldNormal"></asp:TextBox></td>
                        </tr>

                        <tr>
                            <td class="tdNormal" style="width:23%">Sequence of 1st Transaction:</td>
                            <td class="tdNormal" style="width:25%"><asp:TextBox ID="txt_firstTranNo" runat="server" class="fieldNormal"></asp:TextBox></td>
                            <td class="tdNormal" style="width:4%">&nbsp;</td>
                            <td class="tdNormal" style="width:23%">Sequence of Last Transaction:</td>
                            <td class="tdNormal" style="width:25%"><asp:TextBox ID="txt_lastTranNo" runat="server" class="fieldNormal"></asp:TextBox></td>
                        </tr>

                        <tr>
                            <td class="tdNormal" style="width:23%">Retract Amount:</td>
                            <td class="tdNormal" style="width:25%"><asp:TextBox ID="txt_retractAmount" runat="server" class="fieldNormal"></asp:TextBox></td>
                            <td class="tdNormal" style="width:4%">&nbsp;</td>
                            <td class="tdNormal" style="width:23%"></td>
                            <td class="tdNormal" style="width:25%"></td>
                        </tr>
                    
                        <tr>
                            <td class="tdNormal" style="width:23%"></td>
                            <td class="tdNormal" style="width:25%"></td>
                            <td class="tdNormal" style="width:4%"></td>
                            <td class="tdNormal" style="width:23%"></td>
                            <td class="tdNormal" style="width:25%">
                                <asp:Button ID="btn_cancel_basicDetails" runat="server" Text="   Cancel   "  
                                     class="Btn_M_Normal" onclick="btn_cancel_basicDetails_Click"/>

                                  &nbsp;&nbsp;

                                <asp:Button ID="btn_addJard" runat="server" Text="   ADD   "  
                                     class="Btn_M_Normal" onClientClick="return addJardValidator()" onclick="btn_addJard_Click"/>
                            </td>
                        </tr>
                        

                        <tr>
                            <td class="tdNormal" colspan="5">
                                <br />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>

                <asp:Panel ID="pnl_jardDetailsDenos" runat="server" Width="95%">
                    
                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">

                        <tr>
                            <td class="tdNormal" colspan="5" >
                                <asp:Panel ID="Panel5" runat="server">
                                    <fieldset id="fieldDetails">
                                        <legend id="legandDetails">Opening Physical Cash by Denomination:</legend>
                                    </fieldset>

                                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                    
                                        <tr>
                                            <td class="tdNormal" colspan="6">
                                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB5">
                                                    <tr>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            10 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnPhyCash_10SR" runat="server" class="fieldNormalCenter"
                                                             onchange="javascript:calcOpenPhyCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            20 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnPhyCash_20SR" runat="server" class="fieldNormalCenter"
                                                             onchange="javascript:calcOpenPhyCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            50 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnPhyCash_50SR" runat="server" class="fieldNormalCenter"
                                                             onchange="javascript:calcOpenPhyCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            100 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnPhyCash_100SR" runat="server" class="fieldNormalCenter"
                                                             onchange="javascript:calcOpenPhyCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            500 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnPhyCash_500SR" runat="server" class="fieldNormalCenter"
                                                             onchange="javascript:calcOpenPhyCashTotal();"></asp:TextBox>
                                                        </td>
                                         
                                                        <td class="tdNormal" style="width:17.5%">
                                                            100 USD
                                                            <br />
                                                            <asp:TextBox ID="txt_opnPhyCash_100USD" runat="server" class="fieldNormalCenter"
                                                             onchange="javascript:calcOpenPhyCashTotal();"></asp:TextBox>
                                                        </td>
                                            
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td class="tdNormal" style="width:15%">Total:</td>
                                            <td class="tdNormal" style="width:20%"><asp:Label ID="lbl_openPhyCashTotal" runat="server" class="fieldNormal"></asp:Label></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%"></td>
                                            <td class="tdNormal" style="width:20%"></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                        </tr>
                                    
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>

                        <tr>
                            <td class="tdNormal" colspan="5">
                                <br />
                            </td>
                        </tr>
                        
                        <tr>
                            <td class="tdNormal" colspan="5">
                                <asp:Panel ID="Panel4" runat="server">
                                    <fieldset id="fieldDetails">
                                        <legend id="legandDetails">Opening Cash by Denomination as per EJ:</legend>
                                    </fieldset>

                                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                        
                                        <tr>
                                            <td class="tdNormal" colspan="6">
                                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB5">
                                                    <tr>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            10 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnCashEJ_10SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcOpenCashEJTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            20 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnCashEJ_20SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcOpenCashEJTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            50 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnCashEJ_50SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcOpenCashEJTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            100 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnCashEJ_100SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcOpenCashEJTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            500 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_opnCashEJ_500SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcOpenCashEJTotal();"></asp:TextBox>
                                                        </td>
                                         
                                                        <td class="tdNormal" style="width:17.5%">
                                                            100 USD
                                                            <br />
                                                            <asp:TextBox ID="txt_opnCashEJ_100USD" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcOpenCashEJTotal();"></asp:TextBox>
                                                        </td>
                                            
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td class="tdNormal" style="width:15%">Total:</td>
                                            <td class="tdNormal" style="width:20%"><asp:Label ID="lbl_openEJCashTotal" runat="server" class="fieldNormal"></asp:Label></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%"></td>
                                            <td class="tdNormal" style="width:20%"></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                        </tr>

                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>
                                            
                        <tr>
                            <td class="tdNormal" colspan="5">
                                <br />
                            </td>
                        </tr>
                        
                        <tr>
                            <td class="tdNormal" colspan="5">
                                <asp:Panel ID="Panel3" runat="server">
                                    <fieldset id="fieldDetails">
                                        <legend id="legandDetails">Cash Dispensed by Denomination as per EJ:</legend>
                                    </fieldset>

                                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                        <tr>
                                            <td class="tdNormal" colspan="6">
                                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB5">
                                                    <tr>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            10 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_cashDispensed_10SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcDispCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            20 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_cashDispensed_20SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcDispCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            50 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_cashDispensed_50SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcDispCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            100 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_cashDispensed_100SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcDispCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            500 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_cashDispensed_500SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcDispCashTotal();"></asp:TextBox>
                                                        </td>
                                         
                                                        <td class="tdNormal" style="width:17.5%">
                                                            100 USD
                                                            <br />
                                                            <asp:TextBox ID="txt_cashDispensed_100USD" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcDispCashTotal();"></asp:TextBox>
                                                        </td>
                                            
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td class="tdNormal" style="width:15%">Total:</td>
                                            <td class="tdNormal" style="width:20%"><asp:Label ID="lbl_dispCashTotal" runat="server" class="fieldNormal"></asp:Label></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%"></td>
                                            <td class="tdNormal" style="width:20%"></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                        </tr>
                                    </table>

                                </asp:Panel>         
                            </td>
                        </tr>

                        <tr>
                            <td class="tdNormal" colspan="5">
                                <br />
                            </td>
                        </tr>

                        <tr>
                            <td class="tdNormal" colspan="5">
                                <asp:Panel ID="Panel2" runat="server">
                                    <fieldset id="fieldDetails">
                                        <legend id="legandDetails">Closing Cash by Denomination as per ATM Slip as per EJ:</legend>
                                    </fieldset>
                                    
                                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                        <tr>
                                            <td class="tdNormal" colspan="6">
                                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB5">
                                                    <tr>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            10 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closeCashATMSlip_10SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcCloseCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            20 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closeCashATMSlip_20SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcCloseCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            50 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closeCashATMSlip_50SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcCloseCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            100 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closeCashATMSlip_100SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcCloseCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            500 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closeCashATMSlip_500SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcCloseCashTotal();"></asp:TextBox>
                                                        </td>
                                         
                                                        <td class="tdNormal" style="width:17.5%">
                                                            100 USD
                                                            <br />
                                                            <asp:TextBox ID="txt_closeCashATMSlip_100USD" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcCloseCashTotal();"></asp:TextBox>
                                                        </td>
                                            
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td class="tdNormal" style="width:15%">Total:</td>
                                            <td class="tdNormal" style="width:20%"><asp:Label ID="lbl_closeCashTotal" runat="server" class="fieldNormal"></asp:Label></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%"></td>
                                            <td class="tdNormal" style="width:20%"></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>

                        <tr>
                            <td class="tdNormal" colspan="5">
                                <br />
                            </td>
                        </tr>
                        
                        <tr>
                            <td class="tdNormal" colspan="5">
                                <asp:Panel ID="Panel1" runat="server">
                                    <fieldset id="fieldDetails">
                                        <legend id="legandDetails">Closing Physical Cash Count by Denomination:</legend>
                                    </fieldset>

                                    <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                        <tr>
                                            <td class="tdNormal" colspan="6">
                                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB5">
                                                    <tr>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            10 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closePhyCashCount_10SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcClosePhyCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            20 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closePhyCashCount_20SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcClosePhyCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            50 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closePhyCashCount_50SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcClosePhyCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            100 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closePhyCashCount_100SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcClosePhyCashTotal();"></asp:TextBox>
                                                        </td>
                                                        <td class="tdNormal" style="width:16.5%">
                                                            500 SAR
                                                            <br />
                                                            <asp:TextBox ID="txt_closePhyCashCount_500SR" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcClosePhyCashTotal();"></asp:TextBox>
                                                        </td>
                                         
                                                        <td class="tdNormal" style="width:17.5%">
                                                            100 USD
                                                            <br />
                                                            <asp:TextBox ID="txt_closePhyCashCount_100USD" runat="server" class="fieldNormalCenter"
                                                            onchange="javascript:calcClosePhyCashTotal();"></asp:TextBox>
                                                        </td>
                                            
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td class="tdNormal" style="width:15%">Total:</td>
                                            <td class="tdNormal" style="width:20%"><asp:Label ID="lbl_closePhyCashTotal" runat="server" class="fieldNormal"></asp:Label></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%"></td>
                                            <td class="tdNormal" style="width:20%"></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                        </tr>
                                        
                                    </table>
                                </asp:Panel>                   
                            </td>
                        </tr>

                        <tr>
                            <td class="tdNormal" colspan="5">
                                <br />
                            </td>
                        </tr>

                        <tr>
                            <td class="tdNormal" style="width:15%">Difference:</td>
                            <td class="tdNormal" style="width:20%"><asp:Label ID="lbl_difference" runat="server" class="fieldNormal"></asp:Label></td>
                            <td class="tdNormal" colspan="4"></td>
                        </tr>

                        <tr>
                            <td class="tdNormal" colspan="5">
                                <br />
                            </td>
                        </tr>

                        <tr>
                            <td class="tdNormal" colspan="5">
                                <asp:Panel ID="pnl_capturedCards" runat="server">
                                    <fieldset id="fieldDetails">
                                        <legend id="legandDetails">Captured Cards:</legend>
                                    </fieldset>
                                    
                                    <center>
                                        <asp:Label ID="lbl_capturedCardsError" runat="server" Text="" class="fieldError"></asp:Label>
                                    </center>

                                    <table  id="tbl_capturedCards" border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                        <tr>
                                            <td class="tdNormal" style="width:15%">Captured Cards Number:</td>
                                            <td class="tdNormal" style="width:20%"><asp:TextBox ID="txt_capturedCardsNo" runat="server" class="fieldNormal" onchange="javascript:capturedCardsValidater(this);"></asp:TextBox></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%"></td>
                                            <td class="tdNormal" style="width:20%"></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                        </tr>

                                        <tr>
                                            
                                            <td class="tdNormal" style="width:15%">Card Type:</td>
                                            <td class="tdNormal" style="width:20%"><asp:DropDownList ID="ddl_capturedCard_cardType" runat="server" DataTextField="SERVICE_NAME" DataValueField="SERVICE_CODE" class="fieldNormal"> </asp:DropDownList></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%">Card Number:</td>
                                            <td class="tdNormal" style="width:20%"><asp:TextBox ID="txt_capturedCard_cardNo" runat="server" class="fieldNormal"></asp:TextBox></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                            
                                        </tr>

                                        <tr>
                                        
                                            <td class="tdNormal" style="width:15%">Issuer Bank:</td>
                                            <td class="tdNormal" style="width:20%"><asp:TextBox ID="txt_capturedCard_issuerBank" runat="server" class="fieldNormal"></asp:TextBox></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%">Holder Name:</td>
                                            <td class="tdNormal" style="width:20%"><asp:TextBox ID="txt_capturedCard_holderName" runat="server" class="fieldNormal"></asp:TextBox></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                        
                                        </tr>

                                        <tr>
                                        
                                            <td class="tdNormal" style="width:15%"></td>
                                            <td class="tdNormal" style="width:20%"></td>
                                            <td class="tdNormal" style="width:25%"></td>
                                            <td class="tdNormal" style="width:15%"></td>
                                            <td class="tdNormal" style="width:20%"><asp:Button ID="btn_addCard" runat="server" 
                                                    Text="   Add Card   " class="Btn_M_Normal" 
                                                    OnClientClick="return addCardValidator()" onclick="btn_addCard_Click" /></td>
                                            <td class="tdNormal" style="width:5%"></td>
                                        
                                        </tr>

                                        <tr>
                                        
                                            <td class="tdNormal" colspan="6">
                                                <asp:Panel ID="pnl_capturedCardsGridPnl" runat="server">
                                                    <asp:GridView ID="grd_capturedCards" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                                        AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None"
                                                        DataKeyNames="CARD_NUMBER" EmptyDataText="There are No Captured Cards" 
                                                        onrowcommand="grd_capturedCards_RowCommand" >
                                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                                        <Columns>
                                                            <asp:BoundField DataField="CARD_NUMBER" HeaderText="Card Number" />
                                                            <asp:BoundField DataField="SERVICE_NAME" HeaderText="Card Type" />
                                                            <asp:BoundField DataField="ISSUER" HeaderText="Issuer Bank" />
                                                            <asp:BoundField DataField="CARDHOLDER_NAME" HeaderText="Holder Name" />
                                                            
                                                            <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" Text="Delete Card"
                                                                ImageUrl="~/Images/delete1.jpg">
                                                                <ItemStyle Width="30px" />
                                                            </asp:ButtonField>
                                                        </Columns>
                                                        <PagerStyle BackColor="#284775" ForeColor="White" />
                                                        <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>
                                                </asp:Panel>
                                            </td>

                                        </tr>

                                    </table>

                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                    
                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                        <tr>
                            <td>
                                <asp:Button ID="btn_cancel" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                    CausesValidation="False" onclick="btn_cancel_Click"  />
                                <asp:Button ID="btn_save" runat="server" Text="   Save   " class="Btn_M_Normal" 
                                    onclick="btn_save_Click" />
                                <asp:Button ID="btn_close" runat="server" Text=" Set As Closed " 
                                    class="Btn_L_Normal" onclick="btn_close_Click" OnClientClick="return jardClosingConfirmation()"/>

                                <asp:Button ID="btn_print" runat="server" Text="  Print  " class="Btn_M_Normal" 
                                            onclick="btn_print_Click" />
                            </td>
                        </tr>
                    </table>
                    

                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

