diff --git a/Js/fonctions.js b/Js/fonctions.js index d61d35e..381f0ad 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -2519,3 +2519,58 @@ function init_importer_modele_assure() } }); } + +function importer_modele_assure(idAvenant) +{ + etape2=$("#etape2").val(); + + if (etape2 != "1") + { + v_msg="Etape 2 incomplète!"; + v_msgEng="Incomplete step 2!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + $('#div_form_upload').hide(); + + var div_export = $('#div_exporter_liste_assures'); + + div_export.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + + cheminFichier=$("#cheminFichier").val(); + + donnees = 'idAvenant='+idAvenant+'&cheminFichier='+cheminFichier; + + $("#div_erreur_excel").html(""); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/importermodele/", + type: 'POST', + data: donnees, + success: function(data) + { + div_export.html(''); + $("#div_erreur_excel").html(data); + + v_msg="Opération terminée avec succès!"; + v_msgEng="Operation completed successfully!"; + alert_ebene(v_msg, v_msgEng); + }, + error : function(resultat, statut, erreur) + { + }, + complete: function(data) + { + div_export.html(''); + + succes_impot_execl=$("#succes_impot_execl").val(); + + if (succes_impot_execl == "1") + { + maj_etape_3_import_assures(); + } + } + }); +} diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 6d60fe1..2565527 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +