<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/AgentMaster.Master" AutoEventWireup="true"
    CodeBehind="ViewPayoutLocationsByCorridor.aspx.cs" Inherits="CasheeremitAgent.Remittance.ViewPayoutLocationsByCorridor" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DropDownChosen" Namespace="CustomDropDown" TagPrefix="ucc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <style type="text/css">
        .WordWrap
        {
            width: 100%;
            word-break: break-all;
        }
        .WordBreak
        {
            width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .displaynone
        {
            display: none;
        }
        
        .table
        {
            width: auto;
        }
    </style>

     <script type="text/javascript" language="javascript">

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

     </script>
    <script type="text/javascript" language="javascript">

        function textSMSMultilineMaxNumber(txt, maxLen) {
            try {
                if (txt.value.length > (maxLen - 1)) return false;
            } catch (e) {
            }
        }
                 
        function DisplayWaiting(validationgroup) {
            
            if (Validate(validationgroup) == 'success') {
                $find('<%=ModalPopupExtender2.ClientID %>').show();
                setTimeout('document.images["imgLoad"].src = "../Styles/images/loading.gif"', 10);
            }


        function swaRedirect(val, typ) {
            swal({
                title: "",
                text: val,
                type: typ,
                showConfirmButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "OK",
                closeOnConfirm: false
            }, function (isConfirm) {
                if (isConfirm) {
                    //window.location.href = '';
                }
                else {
                }
            });
        }       
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpLyremit" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="dvcontent" class="content" runat="server">
        <!-- end page-header -->
        <div id="Div1" runat="server" class="col-md-12">
            <div class="clearfix">
                &nbsp;</div>
           <div class="bluHD col-md-12" >
                Search Banks or Agent Collection Points</div>
            <div class="col-md-12 vinobox">
                <div class="row">
                 <div class="clearfix">
                &nbsp;</div>
                    <div class="form-group col-sm-6">
                        <asp:Label ID="lblCountry" class="col-md-4 control-label text-left" runat="server"
                            Text="Destination Country"></asp:Label>
                        <div class="col-md-8">
                            <asp:DropDownList ID="ddlCountry" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlCountry_changed" onchange="DisplayProgress();" 
                             AutoPostBack="true">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="reqCountry" runat="server" ErrorMessage="Please select Country"
                                ControlToValidate="ddlCountry" CssClass="errMsg" InitialValue="0"
                                Display="Dynamic"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div runat="server" visible="false" class="form-group col-sm-6">
                        <asp:Label ID="lblCorridor" class="col-md-4 control-label text-left" runat="server"
                            Text="Corridor"></asp:Label>
                        <div class="col-md-8">
                            <asp:DropDownList ID="ddlCorridor" class="form-control" onchange="DisplayProgress();" runat="server">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="reqCorridor" runat="server" ErrorMessage="Please select Corridor"
                                ControlToValidate="ddlCorridor" CssClass="errMsg" InitialValue="0"
                                Display="Dynamic"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div id="dvTransfrType" runat="server" class="form-group col-sm-6" visible="false">
                        <asp:Label ID="lblTransferType" class="col-md-4 control-label text-left" runat="server"
                            Text="Transfer Type"></asp:Label>
                        <div class="col-md-8">
                            <asp:DropDownList ID="ddlTransfrType" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlTransfrType_Changed"
                                onchange ="DisplayProgress();" AutoPostBack="true">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please select service"
                                ControlToValidate="ddlTransfrType" CssClass="errMsg" InitialValue="0"
                                Display="Dynamic"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="form-group col-sm-6" id="dvBankName" runat="server" visible="false">
                        <asp:Label ID="lblBankNameSrch" runat="server" Text="Bank" class="col-md-4 control-label text-left"></asp:Label>
                        <div class="col-md-8">
                            <asp:DropDownList ID="ddlBanknameSrch" runat="server" AutoPostBack="true" class="form-control"
                                onchange ="DisplayProgress();" OnSelectedIndexChanged="ddlBanknameSrch_Changed">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="reqBankName" CssClass="errMsg" runat="server" ControlToValidate="ddlBanknameSrch"
                                Display="Dynamic" InitialValue="0" ErrorMessage="Please enter BankName"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="form-group col-sm-6" id="dvBankCode" runat="server" visible="false">
                    <div class="col-md-4">
                        <asp:Label ID="lblBankBranch" runat="server" Text="Bank Branch" class=" control-label text-left"></asp:Label>
                        <span class="text-danger f-s-10">&lowast;</span></div>
                        <div class="col-md-8">
                            <asp:DropDownList ID="ddlBankBranch" runat="server" onchange ="DisplayProgress();" class="form-control">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="reqBankCode" CssClass="errMsg" runat="server" ControlToValidate="ddlBankBranch"
                                Display="Dynamic" ErrorMessage="Please enter BankCode" InitialValue="0"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="form-group col-sm-6" id="dvPayoutCity" runat="server" visible="false">
                        <asp:Label ID="lblPayoutCity" runat="server" Text="Payout City" class="col-md-4 control-label text-left"></asp:Label>
                        <div class="col-md-8">
                            <asp:TextBox ID="txtPayoutCity" class="form-control" runat="server" MaxLength="50"
                                autocomplete="off" AutoCompleteType="Disabled" oncopy="return false;" onpaste="return false;"
                                oncut="return false;"></asp:TextBox>
                        </div>
                    </div>
                    <div class="form-group col-sm-6" id="dvPayoutPostCode" runat="server" visible="false">
                        <asp:Label ID="lblPayoutPostCode" runat="server" Text="Payout PostCode" class="col-md-4 control-label text-left"></asp:Label>
                        <div class="col-md-8">
                            <asp:TextBox ID="txtPayoutPostCode" class="form-control" runat="server" MaxLength="50"
                                autocomplete="off" AutoCompleteType="Disabled" oncopy="return false;" onpaste="return false;"
                                oncut="return false;"></asp:TextBox>
                        </div>
                    </div>
                    <div class="form-group col-sm-6" id="dvCashPickup" runat="server" visible="false">
                        <asp:Label ID="lblFndState" runat="server" Text="Collection Point" class="col-md-4 control-label text-left"></asp:Label>
                        <div class="col-md-8">
                            <ucc:DropDownListChosen ID="ddlFndState" runat="server" NoResultsText="No results match."
                                class="form-control" DataPlaceHolder="Type Here..." AllowSingleDeselect="true"
                                Width="100%">
                            </ucc:DropDownListChosen>
                            <asp:RequiredFieldValidator ID="reqFndState" CssClass="errMsg" runat="server" ControlToValidate="ddlFndState"
                                Display="Dynamic" ErrorMessage="Please select Collection Point"
                                InitialValue="0"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="form-group col-sm-6" id="dvColctPtName" runat="server" visible="false">
                        <asp:Label ID="lblColctPtName" runat="server" Text="Ewallet ID" class="col-md-4 control-label text-left"></asp:Label>
                        <span class="text-danger f-s-10">&lowast;</span>
                        <div class="col-md-8">
                            <asp:TextBox ID="txtColctPtName" class="Txtbox_demo2" runat="server" MaxLength="50"
                                autocomplete="off" AutoCompleteType="Disabled" oncopy="return false;" onpaste="return false;"
                                oncut="return false;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="reqColctPtName" CssClass="errMsg" runat="server"
                                ControlToValidate="txtColctPtName" Display="Dynamic" ValidationGroup="PL" ErrorMessage="Please enter the Ewallet ID"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="form-group col-sm-6" id="dvColctPtBank" runat="server" visible="false">
                        <asp:Label ID="lblColctPtBank" runat="server" Text="Ewallet Agent ID" class="col-md-4 control-label text-left"></asp:Label>
                        <span class="text-danger f-s-10">&lowast;</span>
                        <div class="col-md-8">
                            <asp:TextBox ID="txtColctPtbank" class="form-control" runat="server" MaxLength="50"
                                autocomplete="off" AutoCompleteType="Disabled" oncopy="return false;" onpaste="return false;"
                                oncut="return false;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="reqColctPtbank" CssClass="errMsg" runat="server"
                                ControlToValidate="txtColctPtbank" Display="Dynamic" ErrorMessage="Please enter Collection Point Bank"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="clearfix">
        </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>
