|
|
@ -193,9 +193,10 @@ |
|
|
|
<div class="col-md-3"> |
|
|
|
<div class="mb-3"> |
|
|
|
<label class="form-label">Agent/Bank</label> |
|
|
|
<select class="form-select form-control" asp-for="bankName" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("select-agent", true)"> |
|
|
|
<select class="form-select form-control" asp-for="bankName" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("rec-select-agent", true)" > |
|
|
|
|
|
|
|
@* <option selected="selected" value="">Select Bank</option> |
|
|
|
asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("rec-select-agent", true)" |
|
|
|
<option value="1163">AGRICULTURAL DEVELOPMENT BANK LTD</option> |
|
|
|
<option value="1120">APEX DEVELOPMENT BANK LTD</option> |
|
|
|
<option value="1121">ARANIKO DEVELOPMENT BANK LTD</option> |
|
|
@ -353,24 +354,21 @@ |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// $('#paymentMode').change(function () { |
|
|
|
$('#paymentMode').change(function () { |
|
|
|
|
|
|
|
debugger; |
|
|
|
|
|
|
|
|
|
|
|
// if ($(this).val() != '') { |
|
|
|
// //PopulateDDL('paymentMode', 'pMode', $(this).val(), true, ''); |
|
|
|
// //if ($(this).val()) |
|
|
|
// //PopulateDDL('Relationship', 'getRelation', $(this).val(), true, ''); |
|
|
|
// //PopulateDDL('idType', 'getIdType', $(this).val(), true, ''); |
|
|
|
// PopulateDDL('bankName', 'select-agent', $(this).val(), true, ''); |
|
|
|
// } |
|
|
|
// else { |
|
|
|
// //$('#paymentMode').empty(); |
|
|
|
// // $('#Relationship').empty(); |
|
|
|
// //$('#idType').empty(); |
|
|
|
// $('#bankName').empty(); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
if ($(this).val() != '') { |
|
|
|
|
|
|
|
PopulateAgentDDL('bankName', 'rec-select-agent', $(this).val(), true, ''); |
|
|
|
} |
|
|
|
else { |
|
|
|
//$('#paymentMode').empty(); |
|
|
|
// $('#Relationship').empty(); |
|
|
|
//$('#idType').empty(); |
|
|
|
$('#bankName').empty(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// $('#paymentMode').change(function () { |
|
|
@ -394,10 +392,11 @@ |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function PopulateAgentDDL(id, flag, value, parm, countryId, showSelectOption, selectedVal) { |
|
|
|
function PopulateAgentDDL(id, flag, pCountryid, parm, countryId, showSelectOption, selectedVal) { |
|
|
|
debugger; |
|
|
|
let Data = { |
|
|
|
Flag: flag, |
|
|
|
Value: value, |
|
|
|
pCountry: pCountryid, |
|
|
|
Parm: parm, |
|
|
|
CountryId: countryId |
|
|
|
}; |
|
|
@ -405,7 +404,7 @@ |
|
|
|
$.ajax( |
|
|
|
{ |
|
|
|
type: 'POST', |
|
|
|
url: '/ReceiverInformation/GetDDLAgentList', |
|
|
|
url: '/ReceiverInformation/GetDDLList', |
|
|
|
data: Data, |
|
|
|
headers: { |
|
|
|
"RequestVerificationToken": |
|
|
|