|
@ -21,7 +21,7 @@ |
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<div class="mb-3"> |
|
|
<div class="mb-3"> |
|
|
<label class="form-label">Receiver's Country</label> |
|
|
<label class="form-label">Receiver's Country</label> |
|
|
<select class="form-select form-control" asp-for="Country" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("allCountrylist", true)" class="form-select"> |
|
|
|
|
|
|
|
|
<select class="form-select form-control" asp-for="Country" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("allCountrylist", true)" class="form-select" required onkeydown="PaymentMethodChangeEvent"> |
|
|
@* <option value="BANGLADESH">BANGLADESH</option> |
|
|
@* <option value="BANGLADESH">BANGLADESH</option> |
|
|
<option value="INDIA">INDIA</option> |
|
|
<option value="INDIA">INDIA</option> |
|
|
<option value="SRI LANKA">SRI LANKA</option> |
|
|
<option value="SRI LANKA">SRI LANKA</option> |
|
@ -114,9 +114,10 @@ |
|
|
<div class="mb-3"> |
|
|
<div class="mb-3"> |
|
|
<label class="form-label">Payment Mode</label> |
|
|
<label class="form-label">Payment Mode</label> |
|
|
<select asp-for="paymentMode" class="form-select" required> |
|
|
<select asp-for="paymentMode" class="form-select" required> |
|
|
@* <option value="Cash">Cash Payment</option> |
|
|
|
|
|
<option value="Bank Deposit">Bank Deposit</option> |
|
|
|
|
|
<option value="Mobile Wallet">Mobile Wallet</option> *@ |
|
|
|
|
|
|
|
|
<option selected="selected" value="">Select Payment Mode</option> |
|
|
|
|
|
<option value="1">Cash Payment</option> |
|
|
|
|
|
<option value="15">Bank Deposit</option> |
|
|
|
|
|
<option value="25">Mobile Wallet</option> |
|
|
</select> |
|
|
</select> |
|
|
@* <select class="form-select form-control" asp-for="paymentMode" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("howtopay", true)" required> *@ |
|
|
@* <select class="form-select form-control" asp-for="paymentMode" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("howtopay", true)" required> *@ |
|
|
@* <input type="email" asp-for="Email" class="form-control" placeholder="Email" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("", true)" /> *@ |
|
|
@* <input type="email" asp-for="Email" class="form-control" placeholder="Email" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("", true)" /> *@ |
|
@ -131,9 +132,9 @@ |
|
|
<div class="mb-3"> |
|
|
<div class="mb-3"> |
|
|
<label class="form-label">ID Type</label> |
|
|
<label class="form-label">ID Type</label> |
|
|
<select asp-for="idType" class="form-select form-control" required> |
|
|
<select asp-for="idType" class="form-select form-control" required> |
|
|
<option value="Brother/ Sister">Passport</option> |
|
|
|
|
|
<option value="Business Partner">National ID Card</option> |
|
|
|
|
|
<option value="Business Partner">Gov. ID</option> |
|
|
|
|
|
|
|
|
<option value="1">Passport</option> |
|
|
|
|
|
<option value="2">National ID Card</option> |
|
|
|
|
|
<option value="3">Gov. ID</option> |
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
@ -174,6 +175,7 @@ |
|
|
<div class="mb-3"> |
|
|
<div class="mb-3"> |
|
|
<label class="form-label">Select Bank</label> |
|
|
<label class="form-label">Select Bank</label> |
|
|
<select class="form-select form-control" asp-for="bankName" required> |
|
|
<select class="form-select form-control" asp-for="bankName" required> |
|
|
|
|
|
|
|
|
<option selected="selected" value="">Select Bank</option> |
|
|
<option selected="selected" value="">Select Bank</option> |
|
|
<option value="1163">AGRICULTURAL DEVELOPMENT BANK LTD</option> |
|
|
<option value="1163">AGRICULTURAL DEVELOPMENT BANK LTD</option> |
|
|
<option value="1120">APEX DEVELOPMENT BANK LTD</option> |
|
|
<option value="1120">APEX DEVELOPMENT BANK LTD</option> |
|
@ -244,6 +246,7 @@ |
|
|
<option value="1222">TRIVENI BIKASH BANK LTD</option> |
|
|
<option value="1222">TRIVENI BIKASH BANK LTD</option> |
|
|
<option value="1218">VYCCU SAVING AND CREDIT CO-OPERATIVE LTD</option> |
|
|
<option value="1218">VYCCU SAVING AND CREDIT CO-OPERATIVE LTD</option> |
|
|
<option value="1158">YETI DEVELOPMENT BANK LTD</option> |
|
|
<option value="1158">YETI DEVELOPMENT BANK LTD</option> |
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -293,13 +296,13 @@ |
|
|
|
|
|
|
|
|
// debugger; |
|
|
// debugger; |
|
|
// $('#Country').change(function () { |
|
|
// $('#Country').change(function () { |
|
|
// if ($(this).val() == 'Nepal' { |
|
|
|
|
|
// PopulateDDL('paymentMode', 'pMode', $(this).val(), true, ''); |
|
|
|
|
|
// //PopulateDDL('bankName', 'bList', $(this).val(), true, ''); |
|
|
|
|
|
|
|
|
// if ($(this).val() == '' { |
|
|
|
|
|
// PopulateDDL('paymentMode', 'payoutMethods', $(this).val(), true, ''); |
|
|
|
|
|
// PopulateDDL('bankName', 'bankList', $(this).val(), true, ''); |
|
|
// } |
|
|
// } |
|
|
// else { |
|
|
// else { |
|
|
// $('#paymentMode').empty(); |
|
|
// $('#paymentMode').empty(); |
|
|
// // $('#bankName').empty(); |
|
|
|
|
|
|
|
|
// $('#bankName').empty(); |
|
|
// } |
|
|
// } |
|
|
// }); |
|
|
// }); |
|
|
// }); |
|
|
// }); |
|
@ -339,7 +342,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//let country = $('#Country').val(); |
|
|
|
|
|
|
|
|
let country = $('#Country').val(); |
|
|
let firstName = $('#firstName').val(); |
|
|
let firstName = $('#firstName').val(); |
|
|
let middleName = $('#middleName').val(); |
|
|
let middleName = $('#middleName').val(); |
|
|
let lastName1 = $('#lastName1').val(); |
|
|
let lastName1 = $('#lastName1').val(); |
|
@ -348,41 +351,24 @@ |
|
|
let State = $('#State').val(); |
|
|
let State = $('#State').val(); |
|
|
let Mobile = $('#Mobile').val(); |
|
|
let Mobile = $('#Mobile').val(); |
|
|
let Email = $('#Email').val(); |
|
|
let Email = $('#Email').val(); |
|
|
//let paymentMode = $('#paymentMode').val(); |
|
|
|
|
|
|
|
|
let PaymentMode = $('#paymentMode').val(); |
|
|
let idType = $('#idType').val(); |
|
|
let idType = $('#idType').val(); |
|
|
let idNumber = $('#idNumber').val(); |
|
|
let idNumber = $('#idNumber').val(); |
|
|
|
|
|
|
|
|
|
|
|
let zipCode = $('#zipCode').val(); |
|
|
let createdDate = $('#createdDate').val(); |
|
|
let createdDate = $('#createdDate').val(); |
|
|
let idExpairyDate = $('#idExpairyDate').val(); |
|
|
let idExpairyDate = $('#idExpairyDate').val(); |
|
|
let bankLocation = $('#bankLocation').val(); |
|
|
let bankLocation = $('#bankLocation').val(); |
|
|
let receiverAccountNumber = $('#receiverAccountNumber').val(); |
|
|
let receiverAccountNumber = $('#receiverAccountNumber').val(); |
|
|
let bankName = $('#bankName').val(); |
|
|
let bankName = $('#bankName').val(); |
|
|
|
|
|
|
|
|
// let Country = $('#Country').val(); |
|
|
|
|
|
// let FirstName = $('#FirstName').val(); |
|
|
|
|
|
// let MiddleName = $('#MiddleName').val(); |
|
|
|
|
|
// let LastName1 = $('#LastName1').val(); |
|
|
|
|
|
// let Relationship = $('#Relationship').val(); |
|
|
|
|
|
// let Address = $('#Address').val(); |
|
|
|
|
|
// let State = $('#State').val(); |
|
|
|
|
|
// let Mobile = $('#Mobile').val(); |
|
|
|
|
|
// let Email = $('#Email').val(); |
|
|
|
|
|
|
|
|
|
|
|
// let IdType = $('#IdType').val(); |
|
|
|
|
|
// let IdNumber = $('#IdNumber').val(); |
|
|
|
|
|
|
|
|
|
|
|
// let ceatedDate = $('#ceatedDate').val(); |
|
|
|
|
|
// let IdExpairyDate = $('#IdExpairyDate').val(); |
|
|
|
|
|
// let BankLocation = $('#BankLocation').val(); |
|
|
|
|
|
// let ReceiverAccountNumber = $('#ReceiverAccountNumber').val(); |
|
|
|
|
|
// let BankName = $('#BankName').val(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let Data = { |
|
|
let Data = { |
|
|
|
|
|
|
|
|
//Country: country, |
|
|
|
|
|
|
|
|
Country: country, |
|
|
firstName: firstName, |
|
|
firstName: firstName, |
|
|
middleName: middleName, |
|
|
middleName: middleName, |
|
|
lastName1: lastName1, |
|
|
lastName1: lastName1, |
|
@ -391,7 +377,7 @@ |
|
|
State: State, |
|
|
State: State, |
|
|
Mobile: Mobile, |
|
|
Mobile: Mobile, |
|
|
Email: Email, |
|
|
Email: Email, |
|
|
//paymentMode: paymentMode; |
|
|
|
|
|
|
|
|
zipCode : zipCode, |
|
|
idType: idType, |
|
|
idType: idType, |
|
|
idNumber: idNumber, |
|
|
idNumber: idNumber, |
|
|
createdDate: createdDate, |
|
|
createdDate: createdDate, |
|
@ -399,22 +385,8 @@ |
|
|
bankLocation: bankLocation, |
|
|
bankLocation: bankLocation, |
|
|
receiverAccountNumber: receiverAccountNumber, |
|
|
receiverAccountNumber: receiverAccountNumber, |
|
|
bankName: bankName, |
|
|
bankName: bankName, |
|
|
// country: country, |
|
|
|
|
|
// FirstName: FirstName, |
|
|
|
|
|
// MiddleName: MiddleName, |
|
|
|
|
|
// LastName1: LastName1, |
|
|
|
|
|
// Relationship: Relationship, |
|
|
|
|
|
// Address: Address, |
|
|
|
|
|
// State: State, |
|
|
|
|
|
// Mobile: Mobile, |
|
|
|
|
|
// Email: Email, |
|
|
|
|
|
// IdType: IdType, |
|
|
|
|
|
// IdNumber: IdNumber, |
|
|
|
|
|
// CreatedDate: CreatedDate, |
|
|
|
|
|
// IdExpairyDate: IdExpairyDate, |
|
|
|
|
|
// BankLocation: BankLocation, |
|
|
|
|
|
// ReceiverAccountNumber: ReceiverAccountNumber, |
|
|
|
|
|
// BankName: BankName, |
|
|
|
|
|
|
|
|
paymentMode: PaymentMode, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -434,18 +406,49 @@ |
|
|
EnableReceiveButton(); |
|
|
EnableReceiveButton(); |
|
|
if (response.responseCode != 0) { |
|
|
if (response.responseCode != 0) { |
|
|
ShowAlertMessage(response.responseCode, response.responseMessage); |
|
|
ShowAlertMessage(response.responseCode, response.responseMessage); |
|
|
|
|
|
//ShowAlertMessage("Receiver Successfully created") |
|
|
|
|
|
|
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
clearFields(); |
|
|
|
|
|
|
|
|
//window.location.replace("/ReceiverInformation/Success?id=" + response.ReceiverId); |
|
|
|
|
|
|
|
|
$('#Country').focus(); |
|
|
|
|
|
$('#message').text('Data successfully submitted'); |
|
|
|
|
|
// window.location.replace("/ReceiverInformation/Success?id=" + response.ReceiverId); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
error: function () { |
|
|
error: function () { |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function clearFields() { |
|
|
|
|
|
// Clear the fields you want |
|
|
|
|
|
$('#Country').val(''); |
|
|
|
|
|
$('#firstName').val(''); |
|
|
|
|
|
$('#middleName').val(''); |
|
|
|
|
|
$('#lastName1').val(''); |
|
|
|
|
|
$('#Relationship').val(''); |
|
|
|
|
|
$('#Address').val(''); |
|
|
|
|
|
$('#State').val(''); |
|
|
|
|
|
$('#Mobile').val(''); |
|
|
|
|
|
$('#Email').val(''); |
|
|
|
|
|
$('#paymentMode').val(''); |
|
|
|
|
|
$('#idType').val(''); |
|
|
|
|
|
$('#idNumber').val(''); |
|
|
|
|
|
$('#createdDate').val(''); |
|
|
|
|
|
$('#idExpairyDate').val(''); |
|
|
|
|
|
$('#bankLocation').val(''); |
|
|
|
|
|
$('#receiverAccountNumber').val(''); |
|
|
|
|
|
$('#bankName').val(''); |
|
|
|
|
|
$('#PaymentMode').val(''); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function DisableReceiveButton() { |
|
|
function DisableReceiveButton() { |
|
|
$('.btnTextReceive').hide(); |
|
|
$('.btnTextReceive').hide(); |
|
|
$('#btnReceive').css('cursor', 'not-allowed'); |
|
|
$('#btnReceive').css('cursor', 'not-allowed'); |
|
@ -462,140 +465,4 @@ |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@* <script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
|
|
(function () { |
|
|
|
|
|
'use strict' |
|
|
|
|
|
|
|
|
|
|
|
// Fetch all the forms we want to apply custom Bootstrap validation styles to |
|
|
|
|
|
var forms = document.querySelectorAll('#ReceiverForm') |
|
|
|
|
|
// Receiver(); |
|
|
|
|
|
// Loop over them and prevent submission |
|
|
|
|
|
Array.prototype.slice.call(forms) |
|
|
|
|
|
.forEach(function (form) { |
|
|
|
|
|
form.addEventListener('submit', function (event) { |
|
|
|
|
|
if (!form.checkValidity()) { |
|
|
|
|
|
event.preventDefault() |
|
|
|
|
|
event.stopPropagation() |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
event.preventDefault(); |
|
|
|
|
|
|
|
|
|
|
|
Receiver(); |
|
|
|
|
|
} |
|
|
|
|
|
form.classList.add('was-validated') |
|
|
|
|
|
}, false) |
|
|
|
|
|
}) |
|
|
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Receiver() { |
|
|
|
|
|
debugger; |
|
|
|
|
|
|
|
|
|
|
|
DisableReceiverButton(); |
|
|
|
|
|
|
|
|
|
|
|
let Country = $('#Country').val(); |
|
|
|
|
|
let ReceiverFName = $('#ReceiverFName').val(); |
|
|
|
|
|
let ReceiverMName = $('#ReceiverMName').val(); |
|
|
|
|
|
let ReceiverLName = $('#ReceiverLName').val(); |
|
|
|
|
|
let Relationship = $('#Relationship').val(); |
|
|
|
|
|
let ReceiverAddress = $('#ReceiverAddress').val(); |
|
|
|
|
|
let State = $('#State').val(); |
|
|
|
|
|
let SenderMobileNo = $('#SenderMobileNo').val(); |
|
|
|
|
|
let Email = $('#Email').val(); |
|
|
|
|
|
let zipCode = $('#zipCode').val(); |
|
|
|
|
|
let TypeId = $('#TypeId').val(); |
|
|
|
|
|
let idNumTypeValueber = $('#TypeValue').val(); |
|
|
|
|
|
let fromDate = $('#fromDate').val(); |
|
|
|
|
|
let toDate = $('#toDate').val(); |
|
|
|
|
|
let BankLocation = $('#BankLocation').val(); |
|
|
|
|
|
let BenificaryAc = $('#BenificaryAc').val(); |
|
|
|
|
|
let BankName = $('#BankName').val(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let Data = { |
|
|
|
|
|
Country: Country, |
|
|
|
|
|
ReceiverFName: ReceiverFName, |
|
|
|
|
|
ReceiverMName: ReceiverMName, |
|
|
|
|
|
ReceiverLName: ReceiverLName, |
|
|
|
|
|
Relationship: Relationship, |
|
|
|
|
|
ReceiverAddress: ReceiverAddress, |
|
|
|
|
|
State: State, |
|
|
|
|
|
SenderMobileNo: SenderMobileNo, |
|
|
|
|
|
Email: Email, |
|
|
|
|
|
TypeId: TypeId, |
|
|
|
|
|
TypeValue: TypeValue, |
|
|
|
|
|
fromDate: fromDate, |
|
|
|
|
|
toDate: toDate, |
|
|
|
|
|
BankLocation: BankLocation, |
|
|
|
|
|
BenificaryAc: BenificaryAc, |
|
|
|
|
|
BankName: BankName, |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
$.ajax( |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'POST', |
|
|
|
|
|
url: '/ReceiverInformation/AddReceiver', |
|
|
|
|
|
data: Data, |
|
|
|
|
|
processData: true, |
|
|
|
|
|
headers: { |
|
|
|
|
|
"RequestVerificationToken": |
|
|
|
|
|
$('input[name="__RequestVerificationToken"]').val() |
|
|
|
|
|
}, |
|
|
|
|
|
async: true, |
|
|
|
|
|
success: function (response) { |
|
|
|
|
|
EnableReceiverButton(); |
|
|
|
|
|
if (response.responseCode != 0) { |
|
|
|
|
|
ShowAlertMessage(response.responseCode, response.responseMessage); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
window.location.replace("/ReceiverInformation/Success?id=" + response.ReceiverId); |
|
|
|
|
|
}, |
|
|
|
|
|
error: function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function DisableReceiverButton() { |
|
|
|
|
|
$('.btnTextReceiver').hide(); |
|
|
|
|
|
$('#btnReceiver').css('cursor', 'not-allowed'); |
|
|
|
|
|
$('.loadingReceiver').show(); |
|
|
|
|
|
$('#btnReceiver').prop('disabled', true); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function EnableReceiverButton() { |
|
|
|
|
|
$('.btnTextReceiver').show(); |
|
|
|
|
|
$('#btnReceiver').css('cursor', 'pointer'); |
|
|
|
|
|
$('.loadingReceiver').hide(); |
|
|
|
|
|
$('#btnReceiver').prop('disabled', false); |
|
|
|
|
|
} |
|
|
|
|
|
</script> |
|
|
|
|
|
*@ |
|
|
|
|
|
} |
|
|
} |