recette2
cherif 2024-07-20 09:50:10 +02:00
parent 298402dbf2
commit 91e20eddb3
1 changed files with 6 additions and 30 deletions

View File

@ -579,7 +579,7 @@ const Employes = (props) => {
const stored_cookie = getCookie('tokenmysypart');
form.append("token", stored_cookie);
form.append("profile_name", local_profile_name);
form.append("ressource_humaine_profil_id", local_profile_name);
@ -793,7 +793,7 @@ const Employes = (props) => {
const Dialog_1_handle_OK_buton_profil_access_right = () => {
setp_user_profil(p_user_profil_tmp);
setp_user_profil_changed("1");
Getall_Profil_Acces_Right(p_user_profil_tmp);
Getall_Profil_Acces_Right(p_user_profil_tmp_id);
Enable_acces_right_datagrid();
setacces_right_data_changed("1");
setDialog_1_open_profil_access_right(false);
@ -4163,6 +4163,7 @@ const Employes = (props) => {
const [p_user_profil, setp_user_profil] = useState();
const [p_user_profil_tmp, setp_user_profil_tmp] = useState();
const [p_user_profil_tmp_id, setp_user_profil_tmp_id] = useState();
const [p_user_profil_changed, setp_user_profil_changed] = useState();
const [acces_right_data_changed, setacces_right_data_changed] = useState();
@ -9628,7 +9629,7 @@ const Employes = (props) => {
<div className="session_data" style={{ "background": warning_bg_color }}>
<div className="session_caract"> Profil<br />
<div className="session_caract"> Profil ee<br />
<Autocomplete
disablePortal
@ -9640,6 +9641,7 @@ const Employes = (props) => {
onChange={(event, value) => {
if (value && value.nom) {
setp_user_profil_tmp(value.nom);
setp_user_profil_tmp_id(value._id);
Dialog_1_handle_change_profil_access_right(" Vous êtes sur le point de mettre à jour les droits de l'utilisateur. Pensez à enregistrer pour finaliser l'opération. ", value.nom);
}
@ -9652,33 +9654,7 @@ const Employes = (props) => {
}
/>
{/* <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="one_detail_profil"
id="one_detail_profil"
select
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_user_profil}
onChange={(e) => {
setp_user_profil_tmp(e.target.value);
Dialog_1_handle_change_profil_access_right(" Vous êtes sur le point de mettre à jour les droits de l'utilisateur. Pensez à enregistrer pour finaliser l'opération. ", e.target.value);
}}
>
{Get_List_RH_Profils_result &&
Get_List_RH_Profils_result.map((myprofil) => (
<MenuItem key={JSON.parse(myprofil).profil_nom} value={JSON.parse(myprofil).profil_nom}
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
{JSON.parse(myprofil).profil_nom}&nbsp;&nbsp;
</MenuItem>
))}
</TextField>*/}
</div>
<div className="session_data" style={{ "marginLeft": "10px", "marginRight": "10px", width: '98%', }}>