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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#accordion").accordion();
        });        
    </script>
    <style type="text/css">
        .btnstl
        {
            background: #ccc;
            padding: 3px;
            outline: none;
        }
        
        #ui-id-2
        {
            display: none;
        }
        .ui-draggable, .ui-droppable
        {
            background-position: top;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpLyremit" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="600">
    </asp:ScriptManager>
    <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>
    <div id="dvDash" runat="server" class="col-md-12">
        <div class=" clearfix">
            &nbsp;</div>
        <div class=" clearfix">
            &nbsp;</div>
        <div id="dvWBal" runat="server" class="dasBox1 col-md-3">
            <div class="inerBox">
                CasheeRemit Wallet Balance
                <br />
                <asp:Label ID="lblWaletBal" runat="server"></asp:Label>
            </div>
            <div  class="linkarea">
                <a id="aWbalURl"  runat="server" href="../EWallet/MyWallet.aspx">View Details </a>
            </div>
        </div>
        <div id="dvSMoney" runat="server" class="dasBox1 col-md-3">
            <div class="inerBox">
                Send Money
            </div>
            <div class="linkarea">
                <a href="../Remittance/MoneyRemittance.aspx">Click Here to Send Money </a>
            </div>
        </div>
        <div id="dvCom" runat="server" class="dasBox1 col-md-3" visible="true">
            <div class="inerBox">
                Commissions
                <br />
                <asp:Label ID="lblComsion" runat="server"></asp:Label></div>
            <div class="linkarea">
                <a href="../EWallet/MyCommission.aspx">View Details </a>
            </div>
        </div>
        <div id="dvProfile" runat="server" class="dasBox1 col-md-3">
            <div class="inerBox">
                My Profile
            </div>
            <div class="linkarea">
                <a href="../Account/ViewProfile.aspx">View Details </a>
            </div>
        </div>
        <div id="dvRate" runat="server" class="dasBox1 col-md-3">
            <div class="inerBox">
                Check Rates
            </div>
            <div class="linkarea">
                <a href="../Account/CheckRate.aspx">Check Exchange Rates </a>
            </div>
        </div>
        <div class=" clearfix">
            &nbsp;</div>
    </div>
    <div class="bluHD col-md-12">
        <i class="fa fa-money iconsize" aria-hidden="true"></i>Check Current Rate for Transfer
        Types
    </div>
    <div class="col-md-12 vinobox">
        <div class=" clearfix">
            &nbsp;</div>
        <div class="form-group">
            <asp:Label ID="lblCountry" Style="width: 18%;" runat="server" class="col-md-3 control-label"
                Text="Please select a country"></asp:Label>
            <div class="col-md-4">
                <asp:DropDownList Style="width: 50%;" ID="ddlCountry" runat="server" AutoPostBack="true"
                    onchange="DisplayProgress();" CssClass="form-control" DataTextField="Country_Name"
                    DataValueField="Alpha_3_Code" OnSelectedIndexChanged="ddlCountry_Changed">
                </asp:DropDownList>
            </div>
            <div class=" clearfix">
                &nbsp;</div>
        </div>
        <div class=" clearfix">
            &nbsp;</div>
        <div class=" clearfix">
            &nbsp;</div>
        <div class="table-responsive">
            <asp:GridView ID="gvRates" Style="width: 98%; margin-left: 1%;" runat="server" class="table m-t-15"
                AutoGenerateColumns="False" DataKeyNames="Country,TransferType,Currency,Amount"
                OnPageIndexChanging="gvRates_PageIndexChanging" OnRowDataBound="gvRates_RowDataBound"
                AllowPaging="True" EmptyDataText="No Record Found" CellPadding="6" CellSpacing="2"
                PageSize="6" GridLines="None" HeaderStyle-CssClass="tbl-head" RowStyle-CssClass="tbl-data"
                AlternatingRowStyle-BackColor="#ffffff">
                <RowStyle HorizontalAlign="Left" />
                <Columns>
                    <asp:BoundField DataField="Country" HeaderText="Country" HeaderStyle-CssClass="wp25" />
                    <asp:BoundField DataField="TransferType" HeaderText="Transfer Type" HeaderStyle-CssClass="wp25" />
                    <asp:BoundField DataField="Currency" HeaderText="Currency" HeaderStyle-CssClass="wp25" />
                    <asp:BoundField DataField="Amount" HeaderText="Amount" HeaderStyle-CssClass="wp25"
                        DataFormatString="{0:n}" />
                </Columns>
                <PagerStyle BackColor="White" ForeColor="White" Width="200px" HorizontalAlign="Center"
                    CssClass="pgg" />
            </asp:GridView>
        </div>
    </div>
    <%--<asp:Button ID="btnrefresh" Style="margin-top: -9%; width: 18%;" runat="server" Text="Refresh"
        class="orngBtn" OnClick="btnrefresh_click" />
    <asp:Button ID="btnChkrate" Style="margin-top: -9%; width: 30%;" runat="server" PostBackUrl="~/Account/CheckRate.aspx"
        Text="Check Rates" class="orngBtn" />--%>
    <div visible="false" runat="server" id="accordion">
        <div id="Div1" runat="server">
            <h3 id="h1" runat="server" class="btnstl">
                <asp:Button ID="btn1" OnClick="btndet1_click" runat="server" /><asp:Label runat="server"
                    Visible="false" ID="lblcon1"></asp:Label></h3>
            <div id="det1" runat="server" class="table-responsive">
                <asp:GridView ID="gvRates1" Style="width: 60%; margin-left: 1%;" runat="server" class="table m-t-15"
                    AutoGenerateColumns="False" DataKeyNames="Country,TransferType,Currency,Amount"
                    OnPageIndexChanging="gvRates_PageIndexChanging" OnRowDataBound="gvRates_RowDataBound"
                    AllowPaging="True" EmptyDataText="No Record Found" CellPadding="6" CellSpacing="2"
                    PageSize="6" GridLines="None" HeaderStyle-CssClass="tbl-head" RowStyle-CssClass="tbl-data">
                    <RowStyle HorizontalAlign="Left" />
                    <Columns>
                        <asp:BoundField DataField="Country" HeaderText="Country" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="TransferType" HeaderText="Transfer Type" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Currency" HeaderText="Currency" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Amount" HeaderText="Amount" HeaderStyle-CssClass="wp25"
                            DataFormatString="{0:n}" />
                    </Columns>
                    <PagerStyle BackColor="White" ForeColor="White" Width="200px" HorizontalAlign="Center"
                        CssClass="pgg" />
                </asp:GridView>
            </div>
            <h3 id="h2" runat="server" class="btnstl">
                <asp:Button ID="btn2" OnClick="btndet2_click" runat="server" /><asp:Label Visible="false"
                    runat="server" ID="lblcon2"></asp:Label></h3>
            <div id="det2" runat="server" class="table-responsive">
                <asp:GridView ID="gvRates2" Style="width: 60%; margin-left: 1%;" runat="server" class="table m-t-15"
                    AutoGenerateColumns="False" DataKeyNames="Country,TransferType,Currency,Amount"
                    OnPageIndexChanging="gvRates_PageIndexChanging" OnRowDataBound="gvRates_RowDataBound"
                    AllowPaging="True" EmptyDataText="No Record Found" CellPadding="6" CellSpacing="2"
                    PageSize="6" GridLines="None" HeaderStyle-CssClass="tbl-head" RowStyle-CssClass="tbl-data">
                    <RowStyle HorizontalAlign="Left" />
                    <Columns>
                        <asp:BoundField DataField="Country" HeaderText="Country" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="TransferType" HeaderText="Transfer Type" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Currency" HeaderText="Currency" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Amount" HeaderText="Amount" HeaderStyle-CssClass="wp25"
                            DataFormatString="{0:n}" />
                    </Columns>
                    <PagerStyle BackColor="White" ForeColor="White" Width="200px" HorizontalAlign="Center"
                        CssClass="pgg" />
                </asp:GridView>
            </div>
            <h3 id="h3" runat="server" class="btnstl">
                <asp:Button ID="btn3" OnClick="btndet3_click" runat="server" /><asp:Label Visible="false"
                    runat="server" ID="lblcon3"></asp:Label>
            </h3>
            <div id="det3" runat="server" class="table-responsive">
                <asp:GridView ID="gvRates3" Style="width: 60%; margin-left: 1%;" runat="server" class="table m-t-15"
                    AutoGenerateColumns="False" DataKeyNames="Country,TransferType,Currency,Amount"
                    OnPageIndexChanging="gvRates_PageIndexChanging" OnRowDataBound="gvRates_RowDataBound"
                    AllowPaging="True" EmptyDataText="No Record Found" CellPadding="6" CellSpacing="2"
                    PageSize="6" GridLines="None" HeaderStyle-CssClass="tbl-head" RowStyle-CssClass="tbl-data">
                    <RowStyle HorizontalAlign="Left" />
                    <Columns>
                        <asp:BoundField DataField="Country" HeaderText="Country" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="TransferType" HeaderText="Transfer Type" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Currency" HeaderText="Currency" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Amount" HeaderText="Amount" HeaderStyle-CssClass="wp25"
                            DataFormatString="{0:n}" />
                    </Columns>
                    <PagerStyle BackColor="White" ForeColor="White" Width="200px" HorizontalAlign="Center"
                        CssClass="pgg" />
                </asp:GridView>
            </div>
            <h3 id="h4" runat="server" class="btnstl">
                <asp:Button ID="btn4" OnClick="btndet4_click" runat="server" /><asp:Label Visible="false"
                    runat="server" ID="lblcon4"></asp:Label></h3>
            <div id="det4" runat="server" class="table-responsive">
                <asp:GridView ID="gvRates4" Style="width: 60%; margin-left: 1%;" runat="server" class="table m-t-15"
                    AutoGenerateColumns="False" DataKeyNames="Country,TransferType,Currency,Amount"
                    OnPageIndexChanging="gvRates_PageIndexChanging" OnRowDataBound="gvRates_RowDataBound"
                    AllowPaging="True" EmptyDataText="No Record Found" CellPadding="6" CellSpacing="2"
                    PageSize="6" GridLines="None" HeaderStyle-CssClass="tbl-head" RowStyle-CssClass="tbl-data">
                    <RowStyle HorizontalAlign="Left" />
                    <Columns>
                        <asp:BoundField DataField="Country" HeaderText="Country" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="TransferType" HeaderText="Transfer Type" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Currency" HeaderText="Currency" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Amount" HeaderText="Amount" HeaderStyle-CssClass="wp25"
                            DataFormatString="{0:n}" />
                    </Columns>
                    <PagerStyle BackColor="White" ForeColor="White" Width="200px" HorizontalAlign="Center"
                        CssClass="pgg" />
                </asp:GridView>
            </div>
            <h3 id="h5" runat="server" class="btnstl">
                <asp:Button ID="btn5" OnClick="btndet5_click" runat="server" /><asp:Label Visible="false"
                    runat="server" ID="lblcon5"></asp:Label></h3>
            <div id="det5" runat="server" class="table-responsive">
                <asp:GridView ID="gvRates5" Style="width: 60%; margin-left: 1%;" runat="server" class="table m-t-15"
                    AutoGenerateColumns="False" DataKeyNames="Country,TransferType,Currency,Amount"
                    OnPageIndexChanging="gvRates_PageIndexChanging" OnRowDataBound="gvRates_RowDataBound"
                    AllowPaging="True" EmptyDataText="No Record Found" CellPadding="6" CellSpacing="2"
                    PageSize="6" GridLines="None" HeaderStyle-CssClass="tbl-head" RowStyle-CssClass="tbl-data">
                    <RowStyle HorizontalAlign="Left" />
                    <Columns>
                        <asp:BoundField DataField="Country" HeaderText="Country" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="TransferType" HeaderText="Transfer Type" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Currency" HeaderText="Currency" HeaderStyle-CssClass="wp25" />
                        <asp:BoundField DataField="Amount" HeaderText="Amount" HeaderStyle-CssClass="wp25"
                            DataFormatString="{0:n}" />
                    </Columns>
                    <PagerStyle BackColor="White" ForeColor="White" Width="200px" HorizontalAlign="Center"
                        CssClass="pgg" />
                </asp:GridView>
            </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>
</asp:Content>
