diff --git a/Js/fonctions.js b/Js/fonctions.js index d2ea62e..f65bf11 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -2926,3 +2926,78 @@ function retirer_tous_adherent_importe_college() } } +function incorporer_assures_inmportes() +{ + nb_adh=$("#nb_adh").val(); + + if (nb_adh>"0") + { + v_msg="Veuillez revoir les collèges et relancer le calcul des primes!"; + v_msgEng="Please review the colleges and restart the premium calculation!!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + nb_ligne_ass=$("#nb_ligne_ass").val(); + + if (nb_ligne_ass=="0") + { + v_msg="Rien à importer!"; + v_msgEng="Nothing to import!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + v_msg="Avez-vous fait l\'étape 2 => calcul des primes?"; + v_msgEng="Did you do step 2 => premium calculation?"; + + if(!confirm_ebene(v_msg, v_msgEng)) + { + return; + } + + primeTtcTotal=$("#primeTtcTotal").val(); + + if (primeTtcTotal=="0") + { + v_msg="Pas de primes! souhaitez-vous recalculer les primes?"; + v_msgEng="No premiums! do you want to recalculate the premiums?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + return; + } + + v_msg="Notez que vous avez accepté l\'incorporation sans primes!"; + v_msgEng="Note that you accepted the incorporation without premium!"; + alert_ebene(v_msg, v_msgEng); + } + + v_msg="Confirmez-vous l\'incorporation de cette liste?"; + v_msgEng="Do you confirm the incorporation of this list?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + var div_attente = $('#div_liste_assure_importe'); + + div_attente.html('
' + 'Chargement en cours! Veuillez patienter...' + '