fdh
This commit is contained in:
parent
79373a8ada
commit
1461a5c617
111
Js/fonctions.js
111
Js/fonctions.js
|
|
@ -86913,79 +86913,58 @@ function changer_entite_portail()
|
|||
}
|
||||
|
||||
|
||||
function filtreproduitbareme(){
|
||||
|
||||
|
||||
var codeGcAssureur = $('#codeGcAssureur').val();
|
||||
|
||||
if(codeGcAssureur<=" "){
|
||||
$('#div_bareme').html("");
|
||||
}
|
||||
|
||||
donnees = 'codeGcAssureur='+codeGcAssureur;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxfiltreproduitbareme/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData){
|
||||
//alert("Erreur : "+errorData);
|
||||
},
|
||||
success: function(data) {
|
||||
//alert("Success : "+data);
|
||||
//
|
||||
$('#div_produit').html(data);
|
||||
|
||||
$("#codeProduit").selectpicker();
|
||||
},
|
||||
complete: function() {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
function filtreproduitbareme() {
|
||||
const codeGcAssureur = $('#codeGcAssureur').val();
|
||||
|
||||
if (!codeGcAssureur || codeGcAssureur.trim() === "") {
|
||||
$('#div_bareme').html("");
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val() + "Ajaxfiltreproduitbareme/",
|
||||
type: 'post',
|
||||
data: { codeGcAssureur: codeGcAssureur },
|
||||
success: function(data) {
|
||||
$('#div_produit').html(data);
|
||||
actualiserSelectPicker('#codeProduit', true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function afficher_bareme_produit()
|
||||
{
|
||||
|
||||
|
||||
codeGcAssureur = $("#codeGcAssureur").val();
|
||||
codeProduit = $("#codeProduit").val();
|
||||
function afficher_bareme_produit() {
|
||||
const codeGcAssureur = $("#codeGcAssureur").val();
|
||||
const codeProduit = $("#codeProduit").val();
|
||||
|
||||
if (codeProduit<=" ")
|
||||
{
|
||||
v_msg="Veuillez sélectionner un produit!";
|
||||
v_msgEng="Please select a category!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$('#div_bareme').html("");
|
||||
if (!codeProduit || codeProduit.trim() === "") {
|
||||
alert_ebene("Veuillez sélectionner un produit!", "Please select a product!");
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
const loader = `
|
||||
<div class="d-flex justify-content-center align-items-center p-5">
|
||||
<div class="text-center">
|
||||
<div class="spinner-border text-primary" role="status" style="width: 3.5rem; height: 3.5rem;"></div>
|
||||
<div class="mt-3 text-primary fw-bold small animate__pulse animate__animated animate__infinite">
|
||||
${($("#codeLangue").val() === 'en_US') ? 'Fetching scales...' : 'Récupération des barèmes...'}
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
$('#div_bareme').html(loader);
|
||||
|
||||
donnees = 'codeGcAssureur='+codeGcAssureur+'&codeProduit='+codeProduit;
|
||||
|
||||
var div_attente = $('#div_bareme');
|
||||
|
||||
div_attente.html('<div style="padding-top:80px; text-align:center; font-size:14px; color: #0088cf; "><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxbaremeproduit/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
div_attente.html(data);
|
||||
appliquerDataTable();
|
||||
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val() + "Ajaxbaremeproduit/",
|
||||
type: 'post',
|
||||
data: { codeGcAssureur: codeGcAssureur, codeProduit: codeProduit },
|
||||
success: function(data) {
|
||||
$('#div_bareme').hide().html(data).fadeIn(400);
|
||||
if (typeof appliquerDataTable === 'function') appliquerDataTable();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function changer_langue_connexion()
|
||||
{
|
||||
codeLangue = $("#langue").val();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user