<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckRate.aspx.cs" MasterPageFile="~/Masters/AgentMaster.Master"
    Inherits="CasheeremitAgent.Account.CheckRate" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <script type="text/javascript">
        function DisplayProgress() {
            
            $find('<%=ModalPopupExtender2.ClientID %>').show();
            setTimeout('document.images["imgLoad"].src = "../Styles/images/loading.gif"', 10);
        }

        function DisplayWaiting(validationgroup) {
            
            if (Validate(validationgroup) == 'success') {
                $find('<%=ModalPopupExtender2.ClientID %>').show();
                setTimeout('document.images["imgLoad"].src = "../Styles/images/loading.gif"', 10);
            }
        }
        function Validate(validationgroupname) {

            if (Page_ClientValidate(validationgroupname)) {
                return 'success';
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpLyremit" runat="server">
    <asp:ScriptManager ID="sm" runat="server">
    </asp:ScriptManager>
    <div id="Div1" runat="server" class="col-md-12">
     <script type="text/javascript">
        
        </script>
        <div class="clearfix">
            &nbsp;</div>
        <h3>
            Check Rates</h3>
        <div class="clearfix">
            &nbsp;</div>
        <div class=" col-md-4 col-lg-4 col-sm-11 col-xs-12   ">
            <div class="iocLable upperCs">
                <img src="../Styles/img/transImg.png" class="estimate" alt="CasheeRemit" title="CasheeRemit" />
                Estimate Cost</div>
            <div class=" clearfix">
            </div>
            <div class="costBg brdr9">
                <div class="pad10">
                    <%--<asp:UpdatePanel ID="up" runat="server">
                        <ContentTemplate>--%>
                            <div class=" col-md-12 lbl mrgT3p" style="padding: 10px;">
                                Send Money To
                            </div>
                            <div class=" col-md-12 " style="padding: 0px;">
                                <asp:DropDownList ID="ddlSendMoneyTo" CssClass="Txtbox_demo2" runat="server" AutoPostBack="true" onchange="DisplayProgress();"
                                    OnSelectedIndexChanged="ddlSendMoneyTochanged">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="reqCountry" runat="server" ErrorMessage="Please select Send Money To"
                                    ControlToValidate="ddlSendMoneyTo" CssClass="errMsg" InitialValue="0" Display="Dynamic"
                                    ValidationGroup="Estimate"></asp:RequiredFieldValidator>
                            </div>
                            <%--<div class="clearfix">
                                &nbsp;</div>--%>
                            <div class=" col-md-12 lbl mrgT3p" style="padding: 10px;">
                                Transfer Type
                            </div>
                            <div class=" col-md-12 " style="padding: 0px;">
                                <asp:DropDownList ID="ddlTransferType" AutoPostBack="true" OnSelectedIndexChanged="ddlTransferType_changed" onchange="DisplayProgress();"
                                    CssClass="Txtbox_demo2" runat="server">
                                    <asp:ListItem Value="0" Text="Select Transfer Type"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please select Transfer Type"
                                    ControlToValidate="ddlTransferType" CssClass="errMsg" InitialValue="0" Display="Dynamic"
                                    ValidationGroup="Estimate"></asp:RequiredFieldValidator>
                            </div>
                            <%--<div class="clearfix">
                                &nbsp;</div>--%>
                            <div class=" col-md-12 lbl mrgT3p" style="padding: 0px;">
                                To Currency
                            </div>
                            <div class=" col-md-12 " style="padding: 0px;">
                                <asp:DropDownList ID="ddltocurrency" CssClass="Txtbox_demo2" runat="server">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddltocurrency"
                                    CssClass="errMsg" InitialValue="0" Display="Dynamic" ValidationGroup="Estimate"></asp:RequiredFieldValidator>
                            </div>
                            <%--<div class="clearfix">
                                &nbsp;</div>--%>
                            <div class=" col-md-12 lbl mrgT3p" style="padding: 10px;">
                                Amount Type
                            </div>
                            <div class=" col-md-12 " style="padding: 0px;">
                                <asp:DropDownList ID="ddlAmountType" CssClass="Txtbox_demo2" runat="server">
                                    <asp:ListItem Selected="True" Value="0" Text="Select Amount Type"></asp:ListItem>
                                    <asp:ListItem Text="Remitter to Send" Value="Remitter to Send"></asp:ListItem>
                                    <asp:ListItem Text="Beneficiary to Receive" Value="Beneficiary to Receive"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please select Amount Type"
                                    ControlToValidate="ddlAmountType" CssClass="errMsg" InitialValue="0" Display="Dynamic"
                                    ValidationGroup="Estimate"></asp:RequiredFieldValidator>
                            </div>
                            <%--<div class="clearfix">
                                &nbsp;</div>--%>
                            <div class=" col-md-12 lbl mrgT3p" style="padding: 10px;">
                                Amount
                            </div>
                            <div class=" col-md-12 " style="padding: 0px;">
                                <asp:TextBox ID="txtAmount" runat="server" CssClass="Txtbox_demo2" placeholder="Amount"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please Enter Amount"
                                    ControlToValidate="txtAmount" CssClass="errMsg" Display="Dynamic" ValidationGroup="Estimate"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtAmount"
                                    CssClass="errMsg" ErrorMessage="Please Enter Only Numbers" ValidationExpression="^[0-9]\d*(\.\d+)?$"
                                    ValidationGroup="Estimate" Display="Dynamic"></asp:RegularExpressionValidator>
                            </div>
                        <%--</ContentTemplate>
                    </asp:UpdatePanel>--%>
                    <div class=" col-md-12 MrgTop MrgBot25  " style="text-align: center; margin-top: 23px;
                        width: 65%;">
                        <asp:Button ID="bntEstimate" runat="server" Text="Estimate" CssClass="orngBtn" OnClick="bntEstimate_click"
                            OnClientClick="DisplayWaiting('Estimate')" UseSubmitBehavior="false" ValidationGroup="Estimate" />
                    </div>
                    <div class="clearfix ht12">
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-7  col-lg-7 col-sm-12 col-xs-12   MrgBot25 marforMobT">
            <div class=" iocLable upperCs">
                <img src="../Styles/img/transImg.png" class="est_summery" alt="CasheeRemit" title="CasheeRemit" />
                Estimation Summary</div>
            <div class="costBg brdr9">
                <div style="display: none;" class="col-md-12 col-sm-12 col-lg-12 col-xs-12  ">
                    <div class=" pull-left EstTxtS mrgR upperCs" style="padding-left: 15px;">
                        Exchange Rate *</div>
                    <div class=" pull-left EstTxtL ">
                        <asp:Label ID="lblExchangeRate1" runat="server" Text=""></asp:Label>
                    </div>
                    <div class="bluline2">
                        &nbsp;</div>
                </div>
                <div class="clearfix">
                    &nbsp;</div>
                <div class=" col-md-12 minHt442">
                    <div class="col-md-6 col-sm-6 col-lg-4 col-xs-5 lbl">
                        Send To :</div>
                    <div class="col-md-3 col-sm-4 col-lg-4 col-xs-4 lbl">
                        <asp:Label ID="lblSendTo" runat="server" Text=""></asp:Label>
                        <%--<img id="flag" visible="false" runat="server" height="30" width="35" />--%>
                    </div>
                    <div class="clearfix mrgT2p">
                        &nbsp;</div>
                    <div class="col-md-6 col-sm-6 col-lg-4 col-xs-5 lbl">
                        Transfer Type :</div>
                    <div class="col-md-3 col-sm-4 col-lg-4 col-xs-4 lbl">
                        <asp:Label ID="lblTransferType" runat="server" Text=""></asp:Label>
                    </div>
                    <div class="clearfix mrgT2p">
                        &nbsp;</div>
                    <div class="col-md-6 col-sm-6 col-lg-4 col-xs-5 lbl">
                        Transfer Fee** :</div>
                    <div class="col-md-3 col-sm-4 col-lg-4 col-xs-4 lbl">
                        <asp:Label ID="lblTransferFee" runat="server" Text=""></asp:Label>
                    </div>
                    <div class="clearfix mrgT2p">
                        &nbsp;</div>
                    <div class="col-md-6 col-sm-6 col-lg-4 col-xs-5 lbl">
                        Send Amount :</div>
                    <div class="col-md-3 col-sm-4 col-lg-4 col-xs-4 lbl">
                        <asp:Label ID="lblSendAmount" runat="server" Text=""></asp:Label>
                    </div>
                    <div class="clearfix mrgT2p">
                        &nbsp;</div>
                    <div class="costbox">
                        <div class="col-md-6 col-sm-6 col-xs-5 col-lg-4 lblwt ">
                            Total Cost :</div>
                        <div class="col-md-3 col-sm-4 col-lg-4 col-xs-4 lblwt NormalRates">
                            <asp:Label ID="lblTotalCost" runat="server" Text=""></asp:Label>
                        </div>
                        <div class="clearfix mrgTop30">
                            &nbsp;</div>
                        <div class="col-md-6 col-sm-6 col-xs-5 col-lg-4 lblwt" style="margin-top: 33px;">
                            Receive Amount :</div>
                        <div class="col-md-3 col-sm-4 col-lg-4 col-xs-4 lblwt NormalRates" style="margin-top: 33px;">
                            <asp:Label ID="lblReceiveAmount" runat="server" Text=""></asp:Label>
                        </div>
                        <div class="clearfix ">
                            &nbsp;</div>
                    </div>
                    <div class="clearfix mrgTop30">
                        &nbsp;</div>
                    <div class="col-md-6 col-sm-6 col-xs-5 lblwtec">
                        Rate: 1 United Kingdom Pound (GBP)</div>
                    <div class="col-md-3 col-sm-4 col-lg-4 col-xs-4 lblwt NormalRates">
                        <b style="font-size: medium;" class="NormalRates">=</b>&emsp;<asp:Label ID="lblExchangeRate"
                            runat="server" Text=""></asp:Label>
                    </div>
                    <div class="col-md-1">
                    </div>
                    <div class="col-md-4 TxtBold mrgtop13 ">
                        <%--<asp:Button ID="btnRegisterNow" runat="server" OnClientClick="return false;" Text="Register Now"
                                CssClass="btn btn-color form-control2"></asp:Button>--%>
                        <%--<a class="btn btn-color form-control2" href='<%=ConfigurationManager.AppSettings["LR_Portal_Register"].ToString().Trim() %>'>
                            Register Now</a>--%>
                    </div>
                    <div class="col-md-4 TxtBold mrgtop13">
                        <asp:Button ID="btnSendMoney" runat="server" PostBackUrl="~/Remittance/MoneyRemittance.aspx"
                            OnClientClick="DisplayProgress();" Text="Send Money" CssClass="orngBtn" Style="width: 70%;">
                        </asp:Button>
                    </div>
                </div>
                <div class=" clearfix">
                    &nbsp;</div>
            </div>
        </div>
        <div id="dvProgressbar">
            <asp:Button runat="server" ID="Button1" Style="display: none" />
            <asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" Style="display: none">
                <div class="modal1">
                    <div class="center1">
                        <!-- Start -->
                        <img id="imgLoad" alt="Please wait....." src="../Styles/images/loading.gif" />
                        <!-- End -->
                        <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="Button1"
                            PopupControlID="Panel1" BackgroundCssClass="modalBackground" DropShadow="false" />
                    </div>
                </div>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
