This commit is contained in:
KANE LAZENI 2026-01-03 02:43:56 +00:00
parent 95d79fd46f
commit 9c4e552761

View File

@ -1389,8 +1389,6 @@ function enregistrer_avenant()
return; return;
} }
if(codeTypeAvenant!="CHE" && codeTypeAvenant!="REN")
{
var d_effet = new Date($("#dateEffetSql").val()); var d_effet = new Date($("#dateEffetSql").val());
var d_fin = new Date($("#dateFinSql").val()); var d_fin = new Date($("#dateFinSql").val());
var d_avenant = $("#dateAvenant").datepicker("getDate"); var d_avenant = $("#dateAvenant").datepicker("getDate");
@ -1414,7 +1412,6 @@ function enregistrer_avenant()
return; return;
} }
}
motifavenant=$("#motifavenant").val(); motifavenant=$("#motifavenant").val();
@ -1430,19 +1427,27 @@ function enregistrer_avenant()
v_msg="Confirmez-vous cet avenant?"; v_msg="Confirmez-vous cet avenant?";
v_msgEng="Do you confirm this amendment to the contract?"; v_msgEng="Do you confirm this amendment to the contract?";
/*
if(confirm_ebene(v_msg, v_msgEng)) if(confirm_ebene(v_msg, v_msgEng))
{ {
var div_attente = $('#div_attente'); var div_attente = $('#div_attente');
div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/>&nbsp;&nbsp;<span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>'); div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/>&nbsp;&nbsp;<span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
$("#btn_enreg").click(); $("#btn_enreg").click();
} }
*/
confirm_ebene(v_msg, v_msgEng).then(isConfirmed => {
if (isConfirmed) {
alert("confiormé");
var div_attente = $('#div_attente');
div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/>&nbsp;&nbsp;<span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
$("#btn_enreg").click();
}
});
} }
function pop_afficher_selection_retrait() function pop_afficher_selection_retrait()
{ {
alert("pop_afficher_selection_retrait");
return;
var div_selection_assure = $('#div_selection_assure'); var div_selection_assure = $('#div_selection_assure');
div_selection_assure.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/>&nbsp;&nbsp;<span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>'); div_selection_assure.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/>&nbsp;&nbsp;<span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');