This commit is contained in:
2026-03-31 10:13:56 +00:00
parent 91dc975517
commit 92c4abcace
3 changed files with 94 additions and 8 deletions

View File

@@ -44750,4 +44750,92 @@ function consulter_ged_assure_mvt(idBeneficiaire){
}
});
}
}
function desactiver_user_rh_client(codeUtilisateur)
{
v_msg="Confirmez-vous la désactivation?";
v_msgEng="Do you confirm the deactivation?";
confirm_ebene(v_msg, v_msgEng)
.then((isConfirmed) => {
if (isConfirmed) {
// L'utilisateur a confirmé
donnees = "codeUtilisateur="+codeUtilisateur;
$.ajax({
url: $("#racineWeb").val()+"Ajaxuserrhclient/desactiver/",
type : 'post',
data: donnees,
error: function(errorData) {
},
success: function(data) {
},
complete: function() {
v_msg="Opération effectuée avec succès!";
v_msgEng="Operation successfully completed";
alert_ebene(v_msg, v_msgEng).then(() => {
// Ce code ne sexécute quaprès clic sur OK
users_rh_client();
});
}
});
return;
} else {
// L'utilisateur a annulé
v_msg="Opération annulée!";
v_msgEng="Operation canceled!";
alert_ebene(v_msg, v_msgEng).then(() => {
// Ce code ne sexécute quaprès clic sur OK
return;
});
}
});
}
function activer_user_rh_client(codeUtilisateur)
{
v_msg="Confirmez-vous l\'activation?";
v_msgEng="Do you confirm the activation?";
confirm_ebene(v_msg, v_msgEng)
.then((isConfirmed) => {
if (isConfirmed) {
// L'utilisateur a confirmé
donnees = "codeUtilisateur="+codeUtilisateur;
$.ajax({
url: $("#racineWeb").val()+"Ajaxuserrhclient/activer/",
type : 'post',
data: donnees,
error: function(errorData) {
},
success: function(data) {
},
complete: function() {
v_msg="Opération effectuée avec succès!";
v_msgEng="Operation successfully completed";
alert_ebene(v_msg, v_msgEng).then(() => {
// Ce code ne sexécute quaprès clic sur OK
users_rh_client();
});
}
});
return;
} else {
// L'utilisateur a annulé
v_msg="Opération annulée!";
v_msgEng="Operation canceled!";
alert_ebene(v_msg, v_msgEng).then(() => {
// Ce code ne sexécute quaprès clic sur OK
return;
});
}
});
}