|
@ -309,10 +309,25 @@ |
|
|
$('#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('Receiver', 'receiverList', $(this).val(), true, ''); |
|
|
|
|
|
|
|
|
// PopulateDDL('Receiver', 'receiverList', $(this).val(), true, ''); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
$('#DeliveryMethod').empty(); |
|
|
$('#DeliveryMethod').empty(); |
|
|
|
|
|
//$('#Receiver').empty(); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#DeliveryMethod').change(function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($(this).val() != '') { |
|
|
|
|
|
|
|
|
|
|
|
PopulateReceiverListDDL(); |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
|
|
|
$('#Receiver').empty(); |
|
|
$('#Receiver').empty(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@ -745,5 +760,39 @@ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function PopulateReceiverListDDL() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let pmode = $('#DeliveryMethod option:selected').val(); |
|
|
|
|
|
let pCountryid = $('#ReceivingCountry option:selected').val(); |
|
|
|
|
|
|
|
|
|
|
|
let Data = { |
|
|
|
|
|
Flag: 'receiverListPMode', |
|
|
|
|
|
Country: pCountryid, |
|
|
|
|
|
Value: pmode, |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
$.ajax( |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'POST', |
|
|
|
|
|
url: '/Transaction/GetReceiverListDDL', |
|
|
|
|
|
data: Data, |
|
|
|
|
|
headers: { |
|
|
|
|
|
"RequestVerificationToken": |
|
|
|
|
|
$('input[name="__RequestVerificationToken"]').val() |
|
|
|
|
|
}, |
|
|
|
|
|
async: false, |
|
|
|
|
|
success: function (response) { |
|
|
|
|
|
PopulateDDLMain(response, 'Receiver', true, ''); |
|
|
|
|
|
}, |
|
|
|
|
|
error: function () { |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
} |
|
|
} |