|
@ -10,7 +10,6 @@ |
|
|
color: green !important; |
|
|
color: green !important; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
<div class="container"> |
|
|
<div class="container"> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<!-- Middle Panel --> |
|
|
<!-- Middle Panel --> |
|
@ -62,7 +61,6 @@ |
|
|
<div class="mb-3"> |
|
|
<div class="mb-3"> |
|
|
<div class="form-floating mb-3"> |
|
|
<div class="form-floating mb-3"> |
|
|
<input type="text" asp-for="CollectAmount" class="form-control" placeholder="00.00"> |
|
|
<input type="text" asp-for="CollectAmount" class="form-control" placeholder="00.00"> |
|
|
|
|
|
|
|
|
<label for="floatingInput">Send Amount GBP</label> |
|
|
<label for="floatingInput">Send Amount GBP</label> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -123,15 +121,16 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-md-10" id="Source"> |
|
|
|
|
|
<div class="mb-3"> |
|
|
|
|
|
<div class="form-floating mb-3"> |
|
|
|
|
|
<input type="text" asp-for="SourceOfFundOthers" class="form-control"> |
|
|
|
|
|
<label for="floatingInput">Source OF Fund Others</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-10" id="Source"> |
|
|
|
|
|
<div class="mb-3"> |
|
|
|
|
|
<div class="form-floating mb-3"> |
|
|
|
|
|
<input type="text" asp-for="SourceOfFundOthers" class="form-control"> |
|
|
|
|
|
<label for="floatingInput">Source OF Fund Others</label> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-md-10"> |
|
|
<div class="col-md-10"> |
|
|
<div class="mb-3"> |
|
|
<div class="mb-3"> |
|
@ -152,6 +151,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="mb-4"> |
|
|
<div class="mb-4"> |
|
|
<div class="form-check d-flex align-items-center"> |
|
|
<div class="form-check d-flex align-items-center"> |
|
@ -213,6 +213,7 @@ |
|
|
<strong><span id="payoutAmount">0.00 </span> <label id="pCurrency">XXX</label></strong> |
|
|
<strong><span id="payoutAmount">0.00 </span> <label id="pCurrency">XXX</label></strong> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
|
|
|
</table> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
<br /> |
|
|
<br /> |
|
@ -273,8 +274,10 @@ |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
</table> |
|
|
</table> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -296,8 +299,6 @@ |
|
|
|
|
|
|
|
|
@section Scripts{ |
|
|
@section Scripts{ |
|
|
<script type="text/javascript"> |
|
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () { |
|
|
$(document).ready(function () { |
|
|
|
|
|
|
|
|
$(document).ajaxStart(function () { |
|
|
$(document).ajaxStart(function () { |
|
@ -306,41 +307,40 @@ |
|
|
$(document).ajaxStop(function () { |
|
|
$(document).ajaxStop(function () { |
|
|
$('#waitDiv').hide(); |
|
|
$('#waitDiv').hide(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#ReceivingCountry').change(function () { |
|
|
$('#ReceivingCountry').change(function () { |
|
|
if ($(this).val() != '') { |
|
|
if ($(this).val() != '') { |
|
|
PopulateDDL('DeliveryMethod', 'pMode', $(this).val(), true, ''); |
|
|
PopulateDDL('DeliveryMethod', 'pMode', $(this).val(), true, ''); |
|
|
PopulateDDL('SchemeId', 'paymentOption', $(this).val(), true, ''); |
|
|
PopulateDDL('SchemeId', 'paymentOption', $(this).val(), true, ''); |
|
|
// PopulateDDL('Receiver', 'receiverList', $(this).val(), true, ''); |
|
|
// PopulateDDL('Receiver', 'receiverList', $(this).val(), true, ''); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
$('#DeliveryMethod').empty(); |
|
|
$('#DeliveryMethod').empty(); |
|
|
//$('#Receiver').empty(); |
|
|
//$('#Receiver').empty(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#DeliveryMethod').change(function () { |
|
|
$('#DeliveryMethod').change(function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($(this).val() != '') { |
|
|
if ($(this).val() != '') { |
|
|
|
|
|
|
|
|
PopulateReceiverListDDL(); |
|
|
PopulateReceiverListDDL(); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
|
|
|
|
|
|
$('#Receiver').empty(); |
|
|
$('#Receiver').empty(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#SchemeId').on('change', function () { |
|
|
$('#SchemeId').on('change', function () { |
|
|
var collectionAmount = $('#CollectAmount').val(); |
|
|
var collectionAmount = $('#CollectAmount').val(); |
|
|
var payoutAmount = $('#PayoutAmount').val(); |
|
|
var payoutAmount = $('#PayoutAmount').val(); |
|
|
debugger; |
|
|
debugger; |
|
|
if (isNaN(parseFloat($('#CollectAmount').val()))) |
|
|
if (isNaN(parseFloat($('#CollectAmount').val()))) |
|
|
collectionAmount = 0; |
|
|
collectionAmount = 0; |
|
|
|
|
|
|
|
|
// if (isNaN(parseFloat($('#PayoutAmount').val()))) |
|
|
// if (isNaN(parseFloat($('#PayoutAmount').val()))) |
|
|
// payoutAmount = 0; |
|
|
// payoutAmount = 0; |
|
|
|
|
|
|
|
|
if (collectionAmount > 0 | payoutAmount > 0) { |
|
|
if (collectionAmount > 0 | payoutAmount > 0) { |
|
|
$('#hdnCalcBy').val('c'); |
|
|
$('#hdnCalcBy').val('c'); |
|
|
DoCalcualtion(); |
|
|
DoCalcualtion(); |
|
@ -357,28 +357,25 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log($(this).val()); |
|
|
// console.log($(this).val()); |
|
|
|
|
|
|
|
|
// }); |
|
|
// }); |
|
|
|
|
|
|
|
|
$("#CollectAmount").blur(function () { |
|
|
$("#CollectAmount").blur(function () { |
|
|
if (!isNaN(parseFloat($(this).val())) && parseFloat($(this).val()) > 0) { |
|
|
if (!isNaN(parseFloat($(this).val())) && parseFloat($(this).val()) > 0) { |
|
|
$('#hdnCalcBy').val('c'); |
|
|
$('#hdnCalcBy').val('c'); |
|
|
DoCalcualtion(); |
|
|
|
|
|
|
|
|
DoCalcualtion(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
$("#PayoutAmount").blur(function () { |
|
|
$("#PayoutAmount").blur(function () { |
|
|
// checkdata($("#hdnCalcBy").val(), 'c'); |
|
|
// checkdata($("#hdnCalcBy").val(), 'c'); |
|
|
if (!isNaN(parseFloat($(this).val())) && parseFloat($(this).val()) > 0) { |
|
|
if (!isNaN(parseFloat($(this).val())) && parseFloat($(this).val()) > 0) { |
|
|
$('#hdnCalcBy').val('p'); |
|
|
$('#hdnCalcBy').val('p'); |
|
|
DoCalcualtion(); |
|
|
DoCalcualtion(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
$("#DiscountFee").blur(function () { |
|
|
$("#DiscountFee").blur(function () { |
|
|
DoCalcualtion(); |
|
|
DoCalcualtion(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
$('#SchemeId').on('change', function () { |
|
|
$('#SchemeId').on('change', function () { |
|
|
|
|
|
|
|
|
GetRewardDetails(); |
|
|
GetRewardDetails(); |
|
@ -386,11 +383,15 @@ |
|
|
|
|
|
|
|
|
$('#Receiver').on('change', function () { |
|
|
$('#Receiver').on('change', function () { |
|
|
var receiverId = $(this).val(); |
|
|
var receiverId = $(this).val(); |
|
|
|
|
|
|
|
|
if (receiverId != '') { |
|
|
if (receiverId != '') { |
|
|
receiverList(receiverId); |
|
|
receiverList(receiverId); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#Source").hide(); |
|
|
$("#Source").hide(); |
|
|
|
|
|
|
|
|
$("#SourceOfFund").on("change", function () { |
|
|
$("#SourceOfFund").on("change", function () { |
|
|
if ($(this).val() == '11417') |
|
|
if ($(this).val() == '11417') |
|
|
$("#Source").show(); |
|
|
$("#Source").show(); |
|
@ -398,6 +399,7 @@ |
|
|
$("#Source").hide(); |
|
|
$("#Source").hide(); |
|
|
}); |
|
|
}); |
|
|
$("#Purpose").hide(); |
|
|
$("#Purpose").hide(); |
|
|
|
|
|
|
|
|
$("#PurposeOfRemit").on("change", function () { |
|
|
$("#PurposeOfRemit").on("change", function () { |
|
|
if ($(this).val() == '11347') |
|
|
if ($(this).val() == '11347') |
|
|
$("#Purpose").show(); |
|
|
$("#Purpose").show(); |
|
@ -448,7 +450,6 @@ |
|
|
// Fetch all the forms we want to apply custom Bootstrap validation styles to |
|
|
// Fetch all the forms we want to apply custom Bootstrap validation styles to |
|
|
var forms = document.querySelectorAll('#SendMoneyForm') |
|
|
var forms = document.querySelectorAll('#SendMoneyForm') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Loop over them and prevent submission |
|
|
// Loop over them and prevent submission |
|
|
Array.prototype.slice.call(forms) |
|
|
Array.prototype.slice.call(forms) |
|
|
.forEach(function (form) { |
|
|
.forEach(function (form) { |
|
@ -541,12 +542,27 @@ |
|
|
}, |
|
|
}, |
|
|
success: function (response) { |
|
|
success: function (response) { |
|
|
|
|
|
|
|
|
|
|
|
// EnableCalculateButton(); |
|
|
|
|
|
// if (response.responseCode != 0) { |
|
|
|
|
|
// ShowAlertMessage(response.responseCode, response.responseMessage); |
|
|
|
|
|
// return; |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
EnableSendButton(); |
|
|
EnableCalculateButton(); |
|
|
EnableCalculateButton(); |
|
|
|
|
|
if (response.responseCode == 1) { |
|
|
|
|
|
DisableSendButton(); |
|
|
|
|
|
DisableCalculateButton(); |
|
|
|
|
|
} |
|
|
if (response.responseCode != 0) { |
|
|
if (response.responseCode != 0) { |
|
|
ShowAlertMessage(response.responseCode, response.responseMessage); |
|
|
ShowAlertMessage(response.responseCode, response.responseMessage); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if (response.responseCode === 0) { |
|
|
|
|
|
// $('#btnSend').show(); // Show the button if response code is 0 |
|
|
|
|
|
// } else if (response.responseCode === 1) { |
|
|
|
|
|
// $('#btnSend').hide(); // Hide the button if response code is 1 |
|
|
|
|
|
// } |
|
|
if (calcBy == 'c') { |
|
|
if (calcBy == 'c') { |
|
|
$('#PayoutAmount').val(response.pAmt); |
|
|
$('#PayoutAmount').val(response.pAmt); |
|
|
} |
|
|
} |
|
@ -571,9 +587,17 @@ |
|
|
$('#hdnForexSessionId').val(response.forexSessionId); |
|
|
$('#hdnForexSessionId').val(response.forexSessionId); |
|
|
$('#hdnProcessId').val(response.processId); |
|
|
$('#hdnProcessId').val(response.processId); |
|
|
$('#hdnTPExRate').val(response.tpExRate); |
|
|
$('#hdnTPExRate').val(response.tpExRate); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
// error: function () { |
|
|
|
|
|
// return null; |
|
|
|
|
|
// } |
|
|
error: function () { |
|
|
error: function () { |
|
|
|
|
|
EnableSendButton(); |
|
|
|
|
|
EnableCalculateButton(); |
|
|
|
|
|
if (response.responseCode == 1) { |
|
|
|
|
|
DisableSendButton(); |
|
|
|
|
|
DisableCalculateButton(); |
|
|
|
|
|
} |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@ -581,7 +605,6 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function SendMoney() { |
|
|
function SendMoney() { |
|
|
|
|
|
|
|
|
DisableSendButton(); |
|
|
DisableSendButton(); |
|
|
|
|
|
|
|
|
let receivingCountry = $('#ReceivingCountry').val(); |
|
|
let receivingCountry = $('#ReceivingCountry').val(); |
|
@ -605,7 +628,6 @@ |
|
|
let exRate = $('#hdnExRate').val(); |
|
|
let exRate = $('#hdnExRate').val(); |
|
|
let forexSessionId = $('#hdnForexSessionId').val(); |
|
|
let forexSessionId = $('#hdnForexSessionId').val(); |
|
|
let processId = $('#hdnProcessId').val(); |
|
|
let processId = $('#hdnProcessId').val(); |
|
|
|
|
|
|
|
|
let discount = $('#DiscountFee').val(); |
|
|
let discount = $('#DiscountFee').val(); |
|
|
|
|
|
|
|
|
if (calcBy == '') { |
|
|
if (calcBy == '') { |
|
@ -665,7 +687,6 @@ |
|
|
SchemeId: schemeId, |
|
|
SchemeId: schemeId, |
|
|
TpExRate: tpExRate, |
|
|
TpExRate: tpExRate, |
|
|
DiscountFee: discount |
|
|
DiscountFee: discount |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
$.ajax( |
|
|
$.ajax( |
|
@ -686,9 +707,9 @@ |
|
|
ShowAlertMessage(response.responseCode, response.responseMessage); |
|
|
ShowAlertMessage(response.responseCode, response.responseMessage); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
// window.location.replace("/Transaction/Success?id=" + response.transactionId); |
|
|
|
|
|
|
|
|
// window.location.replace("/Transaction/Success?id=" + response.transactionId); |
|
|
|
|
|
|
|
|
// window.location.replace("/Transaction/Payment?id=" + response.transactionId); |
|
|
|
|
|
|
|
|
// window.location.replace("/Transaction/Payment?id=" + response.transactionId); |
|
|
var selectedSchemeId = $('#SchemeId').val(); |
|
|
var selectedSchemeId = $('#SchemeId').val(); |
|
|
if (selectedSchemeId === 'DEBIT_CARD') { |
|
|
if (selectedSchemeId === 'DEBIT_CARD') { |
|
|
window.location.replace("/Transaction/Payment?id=" + response.transactionId + "&refid=" + response.extra4); |
|
|
window.location.replace("/Transaction/Payment?id=" + response.transactionId + "&refid=" + response.extra4); |
|
@ -729,6 +750,7 @@ |
|
|
$('.loadingSend').hide(); |
|
|
$('.loadingSend').hide(); |
|
|
$('#btnSend').prop('disabled', false); |
|
|
$('#btnSend').prop('disabled', false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function receiverList(id) { |
|
|
function receiverList(id) { |
|
|
debugger; |
|
|
debugger; |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
@ -737,6 +759,7 @@ |
|
|
url: '/Transaction/GetreceiverListDetail?id=' + id, |
|
|
url: '/Transaction/GetreceiverListDetail?id=' + id, |
|
|
success: function (response) { |
|
|
success: function (response) { |
|
|
var data = response.receiverList[0]; |
|
|
var data = response.receiverList[0]; |
|
|
|
|
|
|
|
|
$('#rName').text(data.fullName); |
|
|
$('#rName').text(data.fullName); |
|
|
$('#mNumber').text(data.mobile); |
|
|
$('#mNumber').text(data.mobile); |
|
|
$('#pmode').text(data.paymentMode); |
|
|
$('#pmode').text(data.paymentMode); |
|
@ -747,6 +770,7 @@ |
|
|
$('#acountNumber').text(data.receiverAccountNumber); |
|
|
$('#acountNumber').text(data.receiverAccountNumber); |
|
|
$('#Branch').text(data.bankLocation); |
|
|
$('#Branch').text(data.bankLocation); |
|
|
//$('#acountNumber').text(data.receiverAccountNumber); |
|
|
//$('#acountNumber').text(data.receiverAccountNumber); |
|
|
|
|
|
|
|
|
// if (data.paymentMode === '1') { |
|
|
// if (data.paymentMode === '1') { |
|
|
|
|
|
|
|
|
// $('.account-number').hide(); |
|
|
// $('.account-number').hide(); |
|
@ -756,6 +780,8 @@ |
|
|
// $('.account-number').text(data.receiverAccountNumber).show(); |
|
|
// $('.account-number').text(data.receiverAccountNumber).show(); |
|
|
// $('.branch').text(data.bankLocation).show(); |
|
|
// $('.branch').text(data.bankLocation).show(); |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (data.paymentMode === "Cash Payment") { |
|
|
if (data.paymentMode === "Cash Payment") { |
|
|
$('.account-number').hide(); |
|
|
$('.account-number').hide(); |
|
|
$('.branch').hide(); |
|
|
$('.branch').hide(); |
|
@ -764,6 +790,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.account-number').show(); |
|
|
$('.account-number').show(); |
|
|
$('.branch').show(); |
|
|
$('.branch').show(); |
|
|
|
|
|
|
|
@ -774,14 +801,20 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function PopulateReceiverListDDL() { |
|
|
function PopulateReceiverListDDL() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let pmode = $('#DeliveryMethod option:selected').val(); |
|
|
let pmode = $('#DeliveryMethod option:selected').val(); |
|
|
let pCountryid = $('#ReceivingCountry option:selected').val(); |
|
|
let pCountryid = $('#ReceivingCountry option:selected').val(); |
|
|
|
|
|
|
|
|
let Data = { |
|
|
let Data = { |
|
|
Flag: 'receiverListPMode', |
|
|
Flag: 'receiverListPMode', |
|
|
Country: pCountryid, |
|
|
Country: pCountryid, |
|
|
Value: pmode, |
|
|
Value: pmode, |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
$.ajax( |
|
|
$.ajax( |
|
|
{ |
|
|
{ |
|
|
type: 'POST', |
|
|
type: 'POST', |
|
@ -799,6 +832,9 @@ |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
} |
|
|
} |