Browse Source

receiver agent dropdown

feature/19315_Customer-Registration-new
Dinesh 11 months ago
parent
commit
d48999ebcf
  1. 59
      CustomerOnlineV2/CustomerOnlineV2/Views/ReceiverInformation/Receiver.cshtml

59
CustomerOnlineV2/CustomerOnlineV2/Views/ReceiverInformation/Receiver.cshtml

@ -353,24 +353,24 @@
});
$('#paymentMode').change(function () {
// $('#paymentMode').change(function () {
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() != '') {
// //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();
// }
// });
// $('#paymentMode').change(function () {
@ -392,6 +392,35 @@
});
function PopulateAgentDDL(id, flag, value, parm, countryId, showSelectOption, selectedVal) {
let Data = {
Flag: flag,
Value: value,
Parm: parm,
CountryId: countryId
};
$.ajax(
{
type: 'POST',
url: '/ReceiverInformation/GetDDLAgentList',
data: Data,
headers: {
"RequestVerificationToken":
$('input[name="__RequestVerificationToken"]').val()
},
async: false,
success: function (response) {
PopulateDDLMain(response, id, showSelectOption, selectedVal);
},
error: function () {
return null;
}
});
};
function Receiver() {
debugger;

Loading…
Cancel
Save