fer
This commit is contained in:
130
Js/fonctions.js
130
Js/fonctions.js
@@ -4507,7 +4507,7 @@ function creer_user_gc()
|
||||
.then((isConfirmed) => {
|
||||
if (isConfirmed) {
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxgcassureur/creerusergc/",
|
||||
url: $("#racineWeb").val()+"Ajaxuserrhclient/creerusergc/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
@@ -4538,4 +4538,132 @@ function creer_user_gc()
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function reinitpaswd_user_rh(codeUtilisateur)
|
||||
{
|
||||
v_msg="Confirmez-vous la réinitialisation?";
|
||||
v_msgEng="Do you confirm the reset?";
|
||||
|
||||
|
||||
confirm_ebene(v_msg, v_msgEng)
|
||||
.then((isConfirmed) => {
|
||||
if (isConfirmed) {
|
||||
// L'utilisateur a confirmé
|
||||
donnees = "codeUtilisateur="+codeUtilisateur;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxuserrhclient/reinitpaswd/",
|
||||
|
||||
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);
|
||||
|
||||
users_gc();
|
||||
}
|
||||
});
|
||||
return;
|
||||
} else {
|
||||
// L'utilisateur a annulé
|
||||
v_msg="Opération annulée!";
|
||||
v_msgEng="Operation canceled!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function users_rh_client()
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Usersrhclient/");
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user