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

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

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script language="javascript" type="text/javascript">
        function validate() {
            var message = "";

            if (isNaN(document.getElementById("<%=txt_creditATM_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_debitATM_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_creditPOS_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_debitPOS_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_creditECOM_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_debitECOM_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_creditATM_GCC_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_debitATM_GCC_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_creditPOS_GCC_amount.ClientID%>").value)
                || isNaN(document.getElementById("<%=txt_debitPOS_GCC_amount.ClientID%>").value)
                ) {

                //message += "Please enter a valid amount value\n";
                document.getElementById("<%=lbl_error.ClientID%>").innerHTML = "Please enter a valid amount value";
                alert(message);
                return false;
            } else {
                document.getElementById("<%=lbl_error.ClientID%>").innerHTML = "";
                return true;
            }

        }

        function validateEmptyValues() {
            var message = "";

            if (document.getElementById("<%=txt_creditATM_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_debitATM_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_creditPOS_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_debitPOS_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_creditECOM_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_debitECOM_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_creditATM_GCC_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_debitATM_GCC_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_creditPOS_GCC_amount.ClientID%>").value == ""
                || document.getElementById("<%=txt_debitPOS_GCC_amount.ClientID%>").value == ""
                ) {

                alert("Please enter atleast one value");
                return false;
            } else {
                return true;
            }

        }

        function calcAtmCreditDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_creditATM_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_creditATM_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_creditATM_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_creditATM_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcAtmDebitDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_debitATM_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_debitATM_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_debitATM_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_debitATM_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }
        /******************************************************************************/

        function calcECOMCreditDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_creditECOM_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_creditECOM_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_creditECOM_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_creditECOM_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcECOMDebitDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_debitECOM_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_debitECOM_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_debitECOM_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_debitECOM_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        /******************************************************************************/
        calcPosCreditDifference

        function calcPosCreditDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_creditPOS_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_creditPOS_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_creditPOS_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_creditPOS_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcPosDebitDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_debitPOS_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_debitPOS_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_debitPOS_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_debitPOS_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }


        function calcGccAtmCreditDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_creditATM_GCC_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_creditATM_GCC_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_creditATM_GCC_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_creditATM_GCC_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcGccAtmCreditFeesDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_creditATM_GCC_SamaAmount_Fees.ClientID%>").innerHTML - document.getElementById("<%=txt_creditATM_GCC_amount_Fees.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_creditATM_GCC_difference_Fees.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_creditATM_GCC_difference_Fees.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcGccAtmDebitDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_debitATM_GCC_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_debitATM_GCC_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_debitATM_GCC_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_debitATM_GCC_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcGccAtmDebitFeesDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_debitATM_GCC_SamaAmount_Fees.ClientID%>").innerHTML - document.getElementById("<%=txt_debitATM_GCC_amount_Fees.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_debitATM_GCC_difference_Fees.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_debitATM_GCC_difference_Fees.ClientID%>").innerHTML = "Invalid Value";
            }
        }


        /*------------------------------------------------------------------------------------------------------------------------------------------*/
        function calcGccPOSCreditDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_creditPOS_GCC_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_creditPOS_GCC_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_creditPOS_GCC_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_creditPOS_GCC_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcGccPOSCreditFeesDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_creditPOS_GCC_SamaAmount_Fees.ClientID%>").innerHTML - document.getElementById("<%=txt_creditPOS_GCC_amount_Fees.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_creditPOS_GCC_difference_Fees.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_creditPOS_GCC_difference_Fees.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcGccPOSDebitDifference() {
            var difference = 0;

            if (validate()) {
                difference = document.getElementById("<%=lbl_debitPOS_GCC_SamaAmount.ClientID%>").innerHTML - document.getElementById("<%=txt_debitPOS_GCC_amount.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_debitPOS_GCC_difference.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_debitPOS_GCC_difference.ClientID%>").innerHTML = "Invalid Value";
            }
        }

        function calcGccPOSDebitFeesDifference() {
            var difference = 0;

            if (validate()) {

                difference = document.getElementById("<%=lbl_debitPOS_GCC_SamaAmount_Fees.ClientID%>").innerHTML - document.getElementById("<%=txt_debitPOS_GCC_amount_Fees.ClientID%>").value;

                difference = Math.round(difference * 100) / 100;

                document.getElementById("<%=lbl_debitPOS_GCC_difference_Fees.ClientID%>").innerHTML = difference;
            } else {
                document.getElementById("<%=lbl_debitPOS_GCC_difference_Fees.ClientID%>").innerHTML = "Invalid Value";
            }
        }
        /*-----------------------------------------------------------------------------------------------------------------------------------------------------------*/

        function validateDate() {
            var message = "";
            if (document.getElementById("<%=dtp_filter_sttlDate.TextBoxClientID%>").value == "") {
                message += "You have to at enter the transaction date\n";
            }
            if (message.length > 0) {
                message = "please notice the following requirments:\n\n" + message;
                alert(message);
                return false;
            }
            return true;
        }

    </script>

    <style type="text/css">
        .style2
        {
            width: 25%;
            height: 53px;
        }
    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
             <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
                <tr align="center">
                    <td valign="top">
                        <!------------------------------------body St  ---------------------------------------------->
                        <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                            <tr>
                                <td>
                                     SAMA Daily Settlement
                                </td>
                            </tr>
                        </table>
                        <br />
                        <!------------------------------------body End1 ----------------------------------------------->


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

                        <asp:Panel ID="pnl_searchCriteria" runat="server" Width="100%">
                            
                            <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1" style="width:100%">
                                <tr>
                                    <td class="tdNormal" style="width:15%">
                                        Settlement Date:
                                    </td>
                                    <td class="tdNormal" style="width:30%">
                                        <uc1:DatePicker ID="dtp_filter_sttlDate" runat="server" />
                                    </td>
                                    <td class="tdNormal" style="width:10%">&nbsp;</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"  OnClientClick="return validateDate()" onclick="btn_search_Click"/>
                                    </td>
                                </tr>
                            </table>
                            
                        </asp:Panel>
                         
                                     
                        <asp:Panel ID="pnl_result" runat="server" Width="100%">
                       
                            <table dir="ltr" width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                            <tr>
                                                <td>
                                                    SAMA Files Details
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table dir="ltr" border="0" cellpadding="0" cellspacing="0" class="add_ItemTB1" style="width:100%">
                                            <thead>
                                                <tr>
                                                    <td valign="middle" align="left" style="width:25%;font-weight:bold">
                                                        Clearing Amount Type
                                                    </td>

                                                    <td valign="middle" align="center" style="width:25%;font-weight:bold">
                                                        Clearing SAMA Amounts
                                                    </td>

                                                    <td valign="middle" align="center" style="width:25%;font-weight:bold">
                                                        Clearing Amounts
                                                    </td>

                                                    <td valign="middle" align="center" style="width:25%;font-weight:bold">
                                                        Difference
                                                    </td>
                                                 </tr>                                
                                            </thead>
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Debit For POS Issuing</td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitPOS_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                     <asp:TextBox ID="txt_debitPOS_amount" runat="server" class="fieldNormal" MaxLength="23"
                                                         onchange="javascript:calcPosDebitDifference();"></asp:TextBox>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitPOS_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="width:25%" valign="middle">
                                                    Credit For POS Acquiring</td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:Label ID="lbl_creditPOS_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:TextBox ID="txt_creditPOS_amount" runat="server" class="fieldNormal"  MaxLength="23"
                                                        onchange="javascript:calcPosCreditDifference();"></asp:TextBox>
                                                </td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:Label ID="lbl_creditPOS_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Debit For ATM Issuing
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitATM_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:TextBox ID="txt_debitATM_amount" runat="server" class="fieldNormal" MaxLength="23"
                                                         onchange="javascript:calcAtmDebitDifference();"></asp:TextBox>
                                                    
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitATM_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Credit For ATM Acquiring
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditATM_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    
                                                    <asp:TextBox ID="txt_creditATM_amount" runat="server" class="fieldNormal"  MaxLength="23"
                                                        onchange="javascript:calcAtmCreditDifference();"></asp:TextBox>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditATM_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Debit For ECOM Issuing
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitECOM_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:TextBox ID="txt_debitECOM_amount" runat="server" class="fieldNormal" MaxLength="23"
                                                         onchange="javascript:calcECOMDebitDifference();"></asp:TextBox>
                                                    
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitECOM_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Credit For ECOM Acquiring
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditECOM_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    
                                                    <asp:TextBox ID="txt_creditECOM_amount" runat="server" class="fieldNormal"  MaxLength="23"
                                                        onchange="javascript:calcECOMCreditDifference();"></asp:TextBox>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditECOM_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Debit For ATM Issuing (GCC)
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitATM_GCC_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:TextBox ID="txt_debitATM_GCC_amount" runat="server" class="fieldNormal"  MaxLength="23"
                                                        onchange="javascript:calcGccAtmDebitDifference();"></asp:TextBox>
                                                    
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitATM_GCC_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="width:25%" valign="middle">
                                                    Debit For ATM Issuing (GCC) Fees</td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:Label ID="lbl_debitATM_GCC_SamaAmount_Fees" runat="server" 
                                                        class="fieldNormal"></asp:Label>
                                                </td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:TextBox ID="txt_debitATM_GCC_amount_Fees" runat="server"  MaxLength="23"
                                                        class="fieldNormal" onchange="javascript:calcGccAtmDebitFeesDifference();"></asp:TextBox>
                                                </td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:Label ID="lbl_debitATM_GCC_difference_Fees" runat="server" 
                                                        class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Credit For ATM Acquiring (GCC)
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditATM_GCC_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:TextBox ID="txt_creditATM_GCC_amount" runat="server" class="fieldNormal" MaxLength="23"
                                                         onchange="javascript:calcGccAtmCreditDifference();"></asp:TextBox>
                                                    
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditATM_GCC_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Credit For ATM Acquiring (GCC) Fees
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditATM_GCC_SamaAmount_Fees" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:TextBox ID="txt_creditATM_GCC_amount_Fees" runat="server" class="fieldNormal" MaxLength="23"
                                                         onchange="javascript:calcGccAtmCreditFeesDifference();"></asp:TextBox>
                                                    
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditATM_GCC_difference_Fees" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <!-- Adding tags for GCC POS ------------------------------------------------------------------------------------------------->
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Debit For POS Issuing (GCC)
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitPOS_GCC_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:TextBox ID="txt_debitPOS_GCC_amount" runat="server" class="fieldNormal"  MaxLength="23"
                                                        onchange="javascript:calcGccPOSDebitDifference();"></asp:TextBox>
                                                    
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_debitPOS_GCC_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="width:25%" valign="middle">
                                                    Debit For POS Issuing (GCC) Fees</td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:Label ID="lbl_debitPOS_GCC_SamaAmount_Fees" runat="server" 
                                                        class="fieldNormal"></asp:Label>
                                                </td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:TextBox ID="txt_debitPOS_GCC_amount_Fees" runat="server"  MaxLength="23"
                                                        class="fieldNormal" onchange="javascript:calcGccPOSDebitFeesDifference();"></asp:TextBox>
                                                </td>
                                                <td align="center" style="width:25%" valign="middle">
                                                    <asp:Label ID="lbl_debitPOS_GCC_difference_Fees" runat="server" 
                                                        class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Credit For POS Acquiring (GCC)
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditPOS_GCC_SamaAmount" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:TextBox ID="txt_creditPOS_GCC_amount" runat="server" class="fieldNormal" MaxLength="23"
                                                         onchange="javascript:calcGccPOSCreditDifference();"></asp:TextBox>
                                                    
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditPOS_GCC_difference" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td valign="middle" align="left" style="width:25%">
                                                    Credit For POS Acquiring (GCC) Fees
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditPOS_GCC_SamaAmount_Fees" runat="server" class="fieldNormal"></asp:Label>
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:TextBox ID="txt_creditPOS_GCC_amount_Fees" runat="server" class="fieldNormal" MaxLength="23"
                                                         onchange="javascript:calcGccPOSCreditFeesDifference();"></asp:TextBox>
                                                    
                                                </td>

                                                <td valign="middle" align="center" style="width:25%">
                                                    <asp:Label ID="lbl_creditPOS_GCC_difference_Fees" runat="server" class="fieldNormal"></asp:Label>
                                                </td>
                                            </tr>
                                            <!-- End tags for GCC POS -------------------------------------------------------------------------------------------------------->

                                        </table>

                                    </td>
                                </tr>
                            </table>

                            <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                <tr>
                                    <td>
                                        <asp:Button ID="btn_clear" runat="server" Text="   Clear   " 
                                            class="Btn_M_Normal" onclick="btn_clear_Click" />
                                        <asp:Button ID="btn_save" runat="server" Text="   Add   " class="Btn_M_Normal" 
                                            onclick="btn_save_Click" OnClientClick="return validateEmptyValues()" />
                                        <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>

