qse
This commit is contained in:
parent
3314909f4d
commit
5714bca00e
190
Js/fonctions.js
190
Js/fonctions.js
|
|
@ -44757,43 +44757,29 @@ function desactiver_user_rh_client(codeUtilisateur)
|
||||||
v_msg="Confirmez-vous la désactivation?";
|
v_msg="Confirmez-vous la désactivation?";
|
||||||
v_msgEng="Do you confirm the deactivation?";
|
v_msgEng="Do you confirm the deactivation?";
|
||||||
|
|
||||||
confirm_ebene(v_msg, v_msgEng)
|
if(confirm_ebene(v_msg, v_msgEng))
|
||||||
.then((isConfirmed) => {
|
{
|
||||||
if (isConfirmed) {
|
donnees = "codeUtilisateur="+codeUtilisateur;
|
||||||
// L'utilisateur a confirmé
|
|
||||||
donnees = "codeUtilisateur="+codeUtilisateur;
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $("#racineWeb").val()+"Ajaxuserrhclient/desactiver/",
|
url: $("#racineWeb").val()+"Ajaxuserrhclient/desactiver/",
|
||||||
type : 'post',
|
type : 'post',
|
||||||
data: donnees,
|
data: donnees,
|
||||||
error: function(errorData) {
|
error: function(errorData) {
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
},
|
},
|
||||||
complete: function() {
|
complete: function() {
|
||||||
v_msg="Opération effectuée avec succès!";
|
v_msg="Opération effectuée avec succès!";
|
||||||
v_msgEng="Operation successfully completed";
|
v_msgEng="Operation successfully completed";
|
||||||
|
|
||||||
alert_ebene(v_msg, v_msgEng).then(() => {
|
alert_ebene(v_msg, v_msgEng);
|
||||||
// Ce code ne s’exécute qu’après clic sur OK
|
|
||||||
users_rh_client();
|
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 s’exécute qu’après clic sur OK
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function activer_user_rh_client(codeUtilisateur)
|
function activer_user_rh_client(codeUtilisateur)
|
||||||
|
|
@ -44801,43 +44787,28 @@ function activer_user_rh_client(codeUtilisateur)
|
||||||
v_msg="Confirmez-vous l\'activation?";
|
v_msg="Confirmez-vous l\'activation?";
|
||||||
v_msgEng="Do you confirm the activation?";
|
v_msgEng="Do you confirm the activation?";
|
||||||
|
|
||||||
confirm_ebene(v_msg, v_msgEng)
|
if(confirm_ebene(v_msg, v_msgEng))
|
||||||
.then((isConfirmed) => {
|
{
|
||||||
if (isConfirmed) {
|
donnees = "codeUtilisateur="+codeUtilisateur;
|
||||||
// L'utilisateur a confirmé
|
|
||||||
donnees = "codeUtilisateur="+codeUtilisateur;
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $("#racineWeb").val()+"Ajaxuserrhclient/activer/",
|
url: $("#racineWeb").val()+"Ajaxuserrhclient/activer/",
|
||||||
type : 'post',
|
type : 'post',
|
||||||
data: donnees,
|
data: donnees,
|
||||||
error: function(errorData) {
|
error: function(errorData) {
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
},
|
},
|
||||||
complete: function() {
|
complete: function() {
|
||||||
v_msg="Opération effectuée avec succès!";
|
v_msg="Opération effectuée avec succès!";
|
||||||
v_msgEng="Operation successfully completed";
|
v_msgEng="Operation successfully completed";
|
||||||
|
|
||||||
alert_ebene(v_msg, v_msgEng).then(() => {
|
alert_ebene(v_msg, v_msgEng);
|
||||||
// Ce code ne s’exécute qu’aprè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(() => {
|
users_rh_client();
|
||||||
// Ce code ne s’exécute qu’après clic sur OK
|
}
|
||||||
return;
|
});
|
||||||
});
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function afficher_users_client_id(idUtilisateur)
|
function afficher_users_client_id(idUtilisateur)
|
||||||
|
|
@ -44865,48 +44836,23 @@ function enregistrer_modif_user_rh()
|
||||||
|
|
||||||
codeProfil = $("#codeProfil").val();
|
codeProfil = $("#codeProfil").val();
|
||||||
|
|
||||||
|
|
||||||
if (nom<=" ")
|
if (nom<=" ")
|
||||||
{
|
{
|
||||||
v_msg="Veuillez saisir le nom!";
|
v_msg="Veuillez saisir le nom!";
|
||||||
v_msgEng="Please enter the name!";
|
v_msgEng="Please enter the name!";
|
||||||
|
|
||||||
alert_ebene(v_msg, v_msgEng).then(() => {
|
alert_ebene(v_msg, v_msgEng);
|
||||||
// Ce code ne s’exécute qu’après clic sur OK
|
|
||||||
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
$("#nom").focus();
|
$("#nom").focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actif<=" ")
|
|
||||||
{
|
|
||||||
v_msg="Utilisateur actif oui ou non?";
|
|
||||||
v_msgEng="Is the user active yes or no?";
|
|
||||||
|
|
||||||
alert_ebene(v_msg, v_msgEng).then(() => {
|
|
||||||
// Ce code ne s’exécute qu’après clic sur OK
|
|
||||||
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#actif").focus();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(codeLangue<=" ")
|
if(codeLangue<=" ")
|
||||||
{
|
{
|
||||||
v_msg="Veuillez indiquer la langue!";
|
v_msg="Veuillez indiquer la langue!";
|
||||||
v_msgEng="Please select the language";
|
v_msgEng="Please select the language";
|
||||||
|
|
||||||
alert_ebene(v_msg, v_msgEng).then(() => {
|
alert_ebene(v_msg, v_msgEng);
|
||||||
// Ce code ne s’exécute qu’après clic sur OK
|
|
||||||
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#codeLangueUser").focus();
|
$("#codeLangueUser").focus();
|
||||||
return;
|
return;
|
||||||
|
|
@ -44918,11 +44864,7 @@ function enregistrer_modif_user_rh()
|
||||||
v_msg="Le profil utilisateur est obligatoire!";
|
v_msg="Le profil utilisateur est obligatoire!";
|
||||||
v_msgEng="The user profile is required!";
|
v_msgEng="The user profile is required!";
|
||||||
|
|
||||||
alert_ebene(v_msg, v_msgEng).then(() => {
|
alert_ebene(v_msg, v_msgEng);
|
||||||
// Ce code ne s’exécute qu’après clic sur OK
|
|
||||||
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#codeProfil").focus();
|
$("#codeProfil").focus();
|
||||||
return;
|
return;
|
||||||
|
|
@ -44934,11 +44876,7 @@ function enregistrer_modif_user_rh()
|
||||||
v_msg="Veuillez revoir l'adresse mail!";
|
v_msg="Veuillez revoir l'adresse mail!";
|
||||||
v_msgEng="Please review the email address!";
|
v_msgEng="Please review the email address!";
|
||||||
|
|
||||||
alert_ebene(v_msg, v_msgEng).then(() => {
|
alert_ebene(v_msg, v_msgEng);
|
||||||
// Ce code ne s’exécute qu’après clic sur OK
|
|
||||||
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#email").focus();
|
$("#email").focus();
|
||||||
return;
|
return;
|
||||||
|
|
@ -44957,28 +44895,20 @@ function enregistrer_modif_user_rh()
|
||||||
v_msg="Confirmez-vous ces modifications?";
|
v_msg="Confirmez-vous ces modifications?";
|
||||||
v_msgEng="Do you confirm these modifications?";
|
v_msgEng="Do you confirm these modifications?";
|
||||||
|
|
||||||
|
if(confirm_ebene(v_msg, v_msgEng))
|
||||||
confirm_ebene(v_msg, v_msgEng)
|
{
|
||||||
.then((isConfirmed) => {
|
$.ajax({
|
||||||
if (isConfirmed) {
|
url: $("#racineWeb").val()+"Ajaxuserrhclient/enregistrermodifuser/",
|
||||||
// L'utilisateur a confirmé
|
type : 'post',
|
||||||
$.ajax({
|
data: donnees,
|
||||||
url: $("#racineWeb").val()+"Ajaxuserrhclient/enregistrermodifuser/",
|
error: function(errorData) {
|
||||||
type : 'post',
|
},
|
||||||
data: donnees,
|
success: function(data) {
|
||||||
error: function(errorData) {
|
//$('#div_test_gabarit').html(data);
|
||||||
},
|
},
|
||||||
success: function(data) {
|
complete: function() {
|
||||||
//$('#div_test_gabarit').html(data);
|
retour_a_users_rh_client();
|
||||||
},
|
}
|
||||||
complete: function() {
|
});
|
||||||
retour_a_users_rh_client();
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// L'utilisateur a annulé
|
|
||||||
console.log("Confirmation refusée");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -263,7 +263,7 @@ controlerPlafondBeneficiaire : <?= $_SESSION['controlerPlafondBeneficiaire'] ?>
|
||||||
<script src="Js/datepicker-fr.js"></script>
|
<script src="Js/datepicker-fr.js"></script>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<script src="Js/fonctions.js?ver=2026.03.09.06"></script>
|
<script src="Js/fonctions.js?ver=2026.03.09.07"></script>
|
||||||
|
|
||||||
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js' ?>" > </script>
|
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js' ?>" > </script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user