frt
This commit is contained in:
@@ -4226,18 +4226,40 @@ function retour_a_users_rh_client()
|
||||
window.location.assign($("#racineWeb" ).val()+"Usersrhclient/");
|
||||
}
|
||||
|
||||
function enregistrer_modif_user_gc()
|
||||
function verifMailValeur(v_mail)
|
||||
{
|
||||
if (v_mail.length==0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
var regex = /^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$/;
|
||||
if(!regex.test(v_mail))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function enregistrer_modif_user_rh()
|
||||
{
|
||||
idUtilisateur = $("#idUtilisateur").val();
|
||||
nom = $("#nom").val();
|
||||
prenoms = $("#prenoms").val();
|
||||
actif = $("#actif").val();
|
||||
actVisible = $("#actVisibleUser").val();
|
||||
actVisible = "0";
|
||||
codeLangue = $("#codeLangueUser").val();
|
||||
AffectionVisible = $("#AffectionVisibleUser").val();
|
||||
AffectionVisible = "0";
|
||||
|
||||
telephone = $("#telephone").val();
|
||||
email = $("#email").val();
|
||||
|
||||
codeProfil = $("#codeProfil").val();
|
||||
|
||||
|
||||
if (nom<=" ")
|
||||
@@ -4270,23 +4292,15 @@ function enregistrer_modif_user_gc()
|
||||
return;
|
||||
}
|
||||
|
||||
if (actVisible<=" ")
|
||||
|
||||
if (codeProfil<=" ")
|
||||
{
|
||||
v_msg="Actes visbles oui ou non?";
|
||||
v_msgEng="Acts are visible yes or no?";
|
||||
v_msg="Le profil utilisateur est obligatoire!";
|
||||
v_msgEng="The user profile is required!";
|
||||
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$("#actVisibleUser").focus();
|
||||
return;
|
||||
}
|
||||
|
||||
if (AffectionVisible<=" ")
|
||||
{
|
||||
v_msg="Affections visbles oui ou non?";
|
||||
v_msgEng="Affections are visible yes or no?";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$("#AffectionVisible").focus();
|
||||
$("#codeProfil").focus();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -4307,6 +4321,7 @@ function enregistrer_modif_user_gc()
|
||||
donnees += '&actif=' + actif;
|
||||
donnees += '&actVisible=' + actVisible;
|
||||
donnees += '&codeLangue=' + codeLangue;
|
||||
donnees += '&codeProfil=' + codeProfil;
|
||||
donnees += '&AffectionVisible=' + AffectionVisible;
|
||||
donnees += '&telephone='+telephone+'&email='+email;
|
||||
|
||||
@@ -4319,7 +4334,7 @@ function enregistrer_modif_user_gc()
|
||||
if (isConfirmed) {
|
||||
// L'utilisateur a confirmé
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxgcassureur/enregistrermodifusergc/",
|
||||
url: $("#racineWeb").val()+"Ajaxuserrhclient/enregistrermodifuser/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
|
||||
Reference in New Issue
Block a user