|
@ -306,14 +306,7 @@ |
|
|
var countryCode = $('.dial-code').text(); |
|
|
var countryCode = $('.dial-code').text(); |
|
|
var mobileNo = input.val(); |
|
|
var mobileNo = input.val(); |
|
|
var maxLength = input.attr('maxLength'); |
|
|
var maxLength = input.attr('maxLength'); |
|
|
if (mobileNo.length > 10) { |
|
|
|
|
|
alert('Mobile No. Can allow input maximum 10 digit only'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (mobileNo.indexOf(countryCode) < 0) { |
|
|
|
|
|
mobileNo = countryCode + mobileNo; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (mobileNo.length > 13) { |
|
|
if (mobileNo.length > 13) { |
|
|
alert('Mobile No. Can allow input maximum ' + maxLength + ' digit only'); |
|
|
alert('Mobile No. Can allow input maximum ' + maxLength + ' digit only'); |
|
|
return $(this).val(''); |
|
|
return $(this).val(''); |
|
@ -325,8 +318,8 @@ |
|
|
$('#<%=countryList.ClientID%>').on('change', function () { |
|
|
$('#<%=countryList.ClientID%>').on('change', function () { |
|
|
$("#<%=mobile.ClientID%>").val(''); |
|
|
$("#<%=mobile.ClientID%>").val(''); |
|
|
var country = $("#<%=countryList.ClientID%> option:selected").text(); |
|
|
var country = $("#<%=countryList.ClientID%> option:selected").text(); |
|
|
if (country.toLowerCase() == 'japan') { |
|
|
|
|
|
$("#<%=mobile.ClientID%>").intlTelInput('setCountry', 'jp'); |
|
|
|
|
|
|
|
|
if (country.toLowerCase() == 'united kingdom') { |
|
|
|
|
|
$("#<%=mobile.ClientID%>").intlTelInput('setCountry', 'gb'); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -366,7 +359,7 @@ |
|
|
$('input[name=agreement]').prop("checked", true); |
|
|
$('input[name=agreement]').prop("checked", true); |
|
|
$('#<%=register.ClientID%>').removeAttr('disabled'); |
|
|
$('#<%=register.ClientID%>').removeAttr('disabled'); |
|
|
}); |
|
|
}); |
|
|
CustomerSignatureFromAdmin(); |
|
|
|
|
|
|
|
|
//CustomerSignatureFromAdmin(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
@ -588,10 +581,10 @@ |
|
|
$('#<%=txtRegistrationNo.ClientID%>').val(dr[0].registerationNo); |
|
|
$('#<%=txtRegistrationNo.ClientID%>').val(dr[0].registerationNo); |
|
|
$('#<%=txtDateOfIncorporation.ClientID%>').val(dr[0].dateofIncorporation); |
|
|
$('#<%=txtDateOfIncorporation.ClientID%>').val(dr[0].dateofIncorporation); |
|
|
$('#<%=txtNameofAuthoPerson.ClientID%>').val(dr[0].nameOfAuthorizedPerson); |
|
|
$('#<%=txtNameofAuthoPerson.ClientID%>').val(dr[0].nameOfAuthorizedPerson); |
|
|
//$('#<%=txtStreet.ClientID%>').val(dr[0].street); |
|
|
|
|
|
|
|
|
<%--$('#<%=txtStreet.ClientID%>').val(dr[0].street);--%> |
|
|
$('#<%=txtAdditionalAddress.ClientID%>').val(dr[0].additionalAddress); |
|
|
$('#<%=txtAdditionalAddress.ClientID%>').val(dr[0].additionalAddress); |
|
|
$('#<%=txtsenderCityjapan.ClientID%>').val(dr[0].cityUnicode); |
|
|
$('#<%=txtsenderCityjapan.ClientID%>').val(dr[0].cityUnicode); |
|
|
$('#<%=txtstreetJapanese.ClientID%>').val(dr[0].streetUnicode); |
|
|
|
|
|
|
|
|
<%--$('#<%=txtstreetJapanese.ClientID%>').val(dr[0].streetUnicode);--%> |
|
|
$('#<%=txtNameofEmployeer.ClientID%>').val(dr[0].nameOfEmployeer); |
|
|
$('#<%=txtNameofEmployeer.ClientID%>').val(dr[0].nameOfEmployeer); |
|
|
|
|
|
|
|
|
$('#<%=rbRemitanceAllowed.ClientID%> input[value=' + (dr[0].remittanceAllowed == true ? "Enabled" : "Disabled") + ']').attr('checked', 'checked'); |
|
|
$('#<%=rbRemitanceAllowed.ClientID%> input[value=' + (dr[0].remittanceAllowed == true ? "Enabled" : "Disabled") + ']').attr('checked', 'checked'); |
|
@ -657,6 +650,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function CheckFormValidation() { |
|
|
function CheckFormValidation() { |
|
|
|
|
|
debugger |
|
|
var reqField = ""; |
|
|
var reqField = ""; |
|
|
var val = $("#<% =hdnCustomerId.ClientID%>").val(); |
|
|
var val = $("#<% =hdnCustomerId.ClientID%>").val(); |
|
|
var customerType = $("#<% =ddlCustomerType.ClientID%>").val(); |
|
|
var customerType = $("#<% =ddlCustomerType.ClientID%>").val(); |
|
@ -666,9 +660,6 @@ |
|
|
var countryCode = $('.dial-code').text(); |
|
|
var countryCode = $('.dial-code').text(); |
|
|
var maxLength = input.attr('maxLength'); |
|
|
var maxLength = input.attr('maxLength'); |
|
|
|
|
|
|
|
|
if (mobileNo.indexOf(countryCode) < 0) { |
|
|
|
|
|
mobileNo = countryCode + mobileNo; |
|
|
|
|
|
} |
|
|
|
|
|
if (mobileNo.length > 13) { |
|
|
if (mobileNo.length > 13) { |
|
|
alert('Mobile No. Can allow input maximum ' + maxLength + ' digit only'); |
|
|
alert('Mobile No. Can allow input maximum ' + maxLength + ' digit only'); |
|
|
return $(this).val(''); |
|
|
return $(this).val(''); |
|
@ -873,68 +864,68 @@ |
|
|
}); |
|
|
}); |
|
|
}--%> |
|
|
}--%> |
|
|
|
|
|
|
|
|
function PopulateAreaDDL(data, selectedValue) { |
|
|
|
|
|
var option, selValue = ''; |
|
|
|
|
|
var editable = false; |
|
|
|
|
|
|
|
|
|
|
|
if (selectedValue) { |
|
|
|
|
|
selValue = selectedValue; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (editable) { |
|
|
|
|
|
|
|
|
|
|
|
$(".es-list").empty(); |
|
|
|
|
|
if (data.length > 1) { |
|
|
|
|
|
$(".es-list").append('<li class="es-visible">Select Area</li>'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < data.length; i++) { |
|
|
|
|
|
if (data[i].SELECTED === 'Y') { |
|
|
|
|
|
option = '<li value=' + data[i].ROW_ID + ' class="selected es-visible">' + data[i].STREET_NAME + '</li>'; |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
option = '<li value=' + data[i].ROW_ID + ' class="es-visible" ">' + data[i].STREET_NAME + '</li>'; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
$(".es-list").append(option); |
|
|
|
|
|
} |
|
|
|
|
|
catch (e) { |
|
|
|
|
|
alert(e); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
var ddl = document.getElementById("ContentPlaceHolder1_txtStreet"); |
|
|
|
|
|
$(ddl).empty(); |
|
|
|
|
|
if (data.length > 1) { |
|
|
|
|
|
option = document.createElement("option"); |
|
|
|
|
|
option.text = 'Select Area'; |
|
|
|
|
|
option.value = ''; |
|
|
|
|
|
ddl.options.add(option); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < data.length; i++) { |
|
|
|
|
|
option = document.createElement("option"); |
|
|
|
|
|
option.text = data[i].STREET_NAME; |
|
|
|
|
|
option.value = data[i].ROW_ID; |
|
|
|
|
|
|
|
|
|
|
|
if (data[i].SELECTED === 'Y') { |
|
|
|
|
|
$('#ContentPlaceHolder1_hf_editable_townArea').val(data[i].STREET_NAME); |
|
|
|
|
|
option.classList.add("selected"); |
|
|
|
|
|
option.selected = true; |
|
|
|
|
|
} |
|
|
|
|
|
else if (data.length == 1) { |
|
|
|
|
|
$('#ContentPlaceHolder1_hf_editable_townArea').val(data[i].STREET_NAME); |
|
|
|
|
|
} |
|
|
|
|
|
try { |
|
|
|
|
|
ddl.options.add(option); |
|
|
|
|
|
} |
|
|
|
|
|
catch (e) { |
|
|
|
|
|
alert(e); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//function PopulateAreaDDL(data, selectedValue) { |
|
|
|
|
|
// var option, selValue = ''; |
|
|
|
|
|
// var editable = false; |
|
|
|
|
|
|
|
|
|
|
|
// if (selectedValue) { |
|
|
|
|
|
// selValue = selectedValue; |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// if (editable) { |
|
|
|
|
|
|
|
|
|
|
|
// $(".es-list").empty(); |
|
|
|
|
|
// if (data.length > 1) { |
|
|
|
|
|
// $(".es-list").append('<li class="es-visible">Select Area</li>'); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// for (var i = 0; i < data.length; i++) { |
|
|
|
|
|
// if (data[i].SELECTED === 'Y') { |
|
|
|
|
|
// option = '<li value=' + data[i].ROW_ID + ' class="selected es-visible">' + data[i].STREET_NAME + '</li>'; |
|
|
|
|
|
// } |
|
|
|
|
|
// else |
|
|
|
|
|
// option = '<li value=' + data[i].ROW_ID + ' class="es-visible" ">' + data[i].STREET_NAME + '</li>'; |
|
|
|
|
|
|
|
|
|
|
|
// try { |
|
|
|
|
|
// $(".es-list").append(option); |
|
|
|
|
|
// } |
|
|
|
|
|
// catch (e) { |
|
|
|
|
|
// alert(e); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// else { |
|
|
|
|
|
// var ddl = document.getElementById("ContentPlaceHolder1_txtStreet"); |
|
|
|
|
|
// $(ddl).empty(); |
|
|
|
|
|
// if (data.length > 1) { |
|
|
|
|
|
// option = document.createElement("option"); |
|
|
|
|
|
// option.text = 'Select Area'; |
|
|
|
|
|
// option.value = ''; |
|
|
|
|
|
// ddl.options.add(option); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// for (var i = 0; i < data.length; i++) { |
|
|
|
|
|
// option = document.createElement("option"); |
|
|
|
|
|
// option.text = data[i].STREET_NAME; |
|
|
|
|
|
// option.value = data[i].ROW_ID; |
|
|
|
|
|
|
|
|
|
|
|
// if (data[i].SELECTED === 'Y') { |
|
|
|
|
|
// $('#ContentPlaceHolder1_hf_editable_townArea').val(data[i].STREET_NAME); |
|
|
|
|
|
// option.classList.add("selected"); |
|
|
|
|
|
// option.selected = true; |
|
|
|
|
|
// } |
|
|
|
|
|
// else if (data.length == 1) { |
|
|
|
|
|
// $('#ContentPlaceHolder1_hf_editable_townArea').val(data[i].STREET_NAME); |
|
|
|
|
|
// } |
|
|
|
|
|
// try { |
|
|
|
|
|
// ddl.options.add(option); |
|
|
|
|
|
// } |
|
|
|
|
|
// catch (e) { |
|
|
|
|
|
// alert(e); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
function CheckRequiredOrNot() { |
|
|
function CheckRequiredOrNot() { |
|
|
var previousVerificationId = $("#<%=hddVerificationTypeNo.ClientID%>").val().toLowerCase(); |
|
|
var previousVerificationId = $("#<%=hddVerificationTypeNo.ClientID%>").val().toLowerCase(); |
|
@ -1165,12 +1156,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-4 col-sm-4" style="display: none;"> |
|
|
|
|
|
|
|
|
<%--<div class="col-md-4 col-sm-4" style="display: none;"> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label>Street/Street[Japanese]:</label> |
|
|
<label>Street/Street[Japanese]:</label> |
|
|
<asp:TextBox ID="txtstreetJapanese" autocomplete="stopdoingthat" runat="server" placeholder="Street[Japanese]" CssClass="form-control" /> |
|
|
<asp:TextBox ID="txtstreetJapanese" autocomplete="stopdoingthat" runat="server" placeholder="Street[Japanese]" CssClass="form-control" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div>--%> |
|
|
<div class="col-md-4 col-sm-4"> |
|
|
<div class="col-md-4 col-sm-4"> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label>City:<span class="errormsg">*</span></label> |
|
|
<label>City:<span class="errormsg">*</span></label> |
|
@ -1358,7 +1349,7 @@ |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label id="otherVerificationType">Other Verification Id Type:<span class="errormsg">*</span></label> |
|
|
<label id="otherVerificationType">Other Verification Id Type:<span class="errormsg">*</span></label> |
|
|
<div class="input-group input-append date dpYears"> |
|
|
<div class="input-group input-append date dpYears"> |
|
|
<asp:TextBox ID="otherVerificationTypeNo" runat="server" placeholder="Other Verification Id Type" MaxLength="30" CssClass="form-control required" /> |
|
|
|
|
|
|
|
|
<asp:TextBox ID="otherVerificationTypeNo" runat="server" placeholder="Other Verification Id Type" MaxLength="30" CssClass="form-control" /> |
|
|
<div class="input-group-addon" onclick="ShowIdTypeInfo();"><i class="fa fa-info"></i></div> |
|
|
<div class="input-group-addon" onclick="ShowIdTypeInfo();"><i class="fa fa-info"></i></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|