24/08/23 - 12h
parent
d204058101
commit
c3ab4c755d
|
@ -187,7 +187,7 @@ const Employes = (props) => {
|
|||
setp_filtre4();
|
||||
setp_filtre4_value();
|
||||
|
||||
//Getall_TrainingParticpant_no_filter();
|
||||
Getall_Training_Employee_No_Filter();
|
||||
}
|
||||
|
||||
const myRef = useRef(null)
|
||||
|
@ -210,7 +210,7 @@ const Employes = (props) => {
|
|||
|
||||
|
||||
useEffect(() => {
|
||||
Getall_Training_Employee();
|
||||
Getall_Training_Employee_No_Filter();
|
||||
Get_List_Managers();
|
||||
Get_List_RH_Profils();
|
||||
|
||||
|
@ -538,6 +538,42 @@ const Employes = (props) => {
|
|||
}
|
||||
|
||||
|
||||
const [Getall_Training_Employee_No_Filter_api, setGetall_Training_Employee_No_Filter_api] = useState();
|
||||
const [Getall_Training_Employee_No_Filter_message, setGetall_Training_Employee_No_Filter_message] = useState();
|
||||
const [Getall_Training_Employee_No_Filter_result, setGetall_Training_Employee_No_Filter_result] = useState();
|
||||
function Getall_Training_Employee_No_Filter(event) {
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Ressource_Humaine_with_filter/";
|
||||
|
||||
|
||||
|
||||
axios.post(myurl, form).then(res => {
|
||||
|
||||
if (String(res.data.status) === String("true")) {
|
||||
//console.log(" In Getall_Training_Employee_No_Filter res.data.status = " + res.data.status);
|
||||
//console.log(" In Getall_Training_Employee_No_Filter res.data.message r_class = " + res.data.message);
|
||||
setGetall_Training_Employee_No_Filter_api("true");
|
||||
setGetall_Training_Employee_No_Filter_result(res.data.message);
|
||||
setRows(res.data.message);
|
||||
}
|
||||
else {
|
||||
setGetall_Training_Employee_No_Filter_api("false");
|
||||
setGetall_Training_Employee_No_Filter_message(res.data.message);
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
console.warn('Not good man :( Getall_Training_Employee_No_Filter = ', error);
|
||||
setGetall_Training_Employee_No_Filter_api("false");
|
||||
//setmyApimyApiMessage("")
|
||||
})
|
||||
}
|
||||
|
||||
const [session_file_name, setsession_file_name] = useState();
|
||||
|
||||
const [liste_sessions_file_change_api, setliste_sessions_file_change_api] = useState();
|
||||
|
@ -567,7 +603,7 @@ const Employes = (props) => {
|
|||
//console.log("token = " + stored_cookie);
|
||||
|
||||
fetch(
|
||||
process.env.REACT_APP_API_URL + "myclass/api/AddStagiairetoClass_mass_for_many_session/",
|
||||
process.env.REACT_APP_API_URL + "myclass/api/Add_Ressource_Humaine_mass/",
|
||||
{
|
||||
method: 'POST',
|
||||
body: formData,
|
||||
|
@ -588,7 +624,7 @@ const Employes = (props) => {
|
|||
setliste_sessions_file_change_api("true");
|
||||
|
||||
Getall_Training_Employee();
|
||||
alert(" Les stagiaires ont été correctement importés");
|
||||
alert(" Les employés ont été correctement importés");
|
||||
|
||||
}
|
||||
|
||||
|
@ -604,7 +640,7 @@ const Employes = (props) => {
|
|||
.catch((error) => {
|
||||
console.error('Error:', error);
|
||||
setliste_sessions_file_change_api("false");
|
||||
alert(" Impossible d'importer les stagiaires ");
|
||||
alert(" Impossible d'importer les employés ");
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1339,6 +1375,12 @@ const Employes = (props) => {
|
|||
}
|
||||
|
||||
|
||||
function submenu_import_employee() {
|
||||
setsession_file_name();
|
||||
setliste_sessions_file_change_api();
|
||||
hiddenFileInput_session.current.click();
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="employes">
|
||||
<Dialog
|
||||
|
@ -1379,8 +1421,7 @@ const Employes = (props) => {
|
|||
>
|
||||
<MenuItem value="email" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Email </MenuItem>
|
||||
<MenuItem value="nom" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Nom </MenuItem>
|
||||
<MenuItem value="code_session" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Code Session </MenuItem>
|
||||
<MenuItem value="class_title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
||||
|
||||
|
||||
|
||||
</TextField>
|
||||
|
@ -1459,8 +1500,6 @@ const Employes = (props) => {
|
|||
>
|
||||
<MenuItem value="email" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Email </MenuItem>
|
||||
<MenuItem value="nom" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Nom </MenuItem>
|
||||
<MenuItem value="code_session" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Code Session </MenuItem>
|
||||
<MenuItem value="class_title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
||||
|
||||
|
||||
</TextField>
|
||||
|
@ -1521,7 +1560,7 @@ const Employes = (props) => {
|
|||
|
||||
</div>
|
||||
}
|
||||
|
||||
{/*
|
||||
|
||||
{p_filtre3 &&
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
|
@ -1667,15 +1706,16 @@ const Employes = (props) => {
|
|||
|
||||
</div>
|
||||
}
|
||||
*/}
|
||||
<div className="div_row" ref={myRef_head} style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
|
||||
|
||||
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
|
||||
<Button variant="contained" className="bton_enreg" onClick={"Getall_TrainingParticipant"}>Rechercher
|
||||
<Button variant="contained" className="bton_enreg" onClick={Getall_Training_Employee}>Rechercher
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
|
||||
<Button variant="contained" className="bton_annule" onClick={"clean_all_filters"}>Annuler
|
||||
<Button variant="contained" className="bton_annule" onClick={clean_all_filters}>Annuler
|
||||
</Button>
|
||||
|
||||
</div>
|
||||
|
@ -1829,7 +1869,7 @@ const Employes = (props) => {
|
|||
|
||||
<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
|
||||
<Button variant="outlined" onClick={"submenu_import_stagiaire"} className="detail_class_submenu bton_import_excel"
|
||||
<Button variant="outlined" onClick={submenu_import_employee} className="detail_class_submenu bton_import_excel"
|
||||
id='menu_import_participant' name='menu_import_participant'>Importer des employes Excel
|
||||
<img src={excel_icone} alt="ajout csv" className="icon_excel" />
|
||||
</Button>
|
||||
|
@ -1926,7 +1966,7 @@ const Employes = (props) => {
|
|||
</div>
|
||||
|
||||
<div className="session_data" >
|
||||
employee_data_changed = {Employee_data_changed} / employee_data_edit_mode = {employee_data_edit_mode} <br />
|
||||
|
||||
<div className="session_caract"> Nom<br />
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
|
@ -2409,7 +2449,7 @@ const Employes = (props) => {
|
|||
<nav style={{ "border": "None", "fontSize": "22px", "fontWeight": "600" }}> Ajouter un Employé </nav>
|
||||
|
||||
<div className="session_data" >
|
||||
employee_data_changed = {Employee_data_changed} / employee_data_edit_mode = {employee_data_edit_mode} <br />
|
||||
|
||||
<div className="session_caract"> Nom<br />
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
|
|
|
@ -297,7 +297,7 @@ function Partner_Invoicing_Data(props) {
|
|||
|
||||
<TextField
|
||||
required
|
||||
disabled
|
||||
|
||||
label="Raison sociale"
|
||||
name="nom"
|
||||
className="texte_area"
|
||||
|
@ -316,7 +316,7 @@ function Partner_Invoicing_Data(props) {
|
|||
|
||||
<TextField
|
||||
|
||||
disabled
|
||||
|
||||
label="num TVA"
|
||||
name="vat_num"
|
||||
className="texte_area"
|
||||
|
@ -335,7 +335,7 @@ function Partner_Invoicing_Data(props) {
|
|||
|
||||
|
||||
<TextField
|
||||
disabled
|
||||
|
||||
name="telephone"
|
||||
label="Téléphone"
|
||||
className="texte_area"
|
||||
|
@ -355,7 +355,7 @@ function Partner_Invoicing_Data(props) {
|
|||
|
||||
<TextField
|
||||
name="email"
|
||||
disabled
|
||||
|
||||
label="Adresse mail"
|
||||
className="texte_area"
|
||||
sx={{ m: 1, width: '48%' }}
|
||||
|
@ -374,7 +374,7 @@ function Partner_Invoicing_Data(props) {
|
|||
|
||||
<TextField
|
||||
name="adr_street"
|
||||
disabled
|
||||
|
||||
label="Adresse"
|
||||
className="texte_area_adress"
|
||||
sx={{ m: 1, width: '96%' }}
|
||||
|
@ -392,7 +392,7 @@ function Partner_Invoicing_Data(props) {
|
|||
|
||||
<TextField
|
||||
name="adr_zip"
|
||||
disabled
|
||||
|
||||
label="Code Postal"
|
||||
className="texte_area"
|
||||
sx={{ m: 1, width: '48%' }}
|
||||
|
@ -410,7 +410,7 @@ function Partner_Invoicing_Data(props) {
|
|||
|
||||
<TextField
|
||||
name="adr_city"
|
||||
disabled
|
||||
|
||||
label="Ville"
|
||||
className="texte_area"
|
||||
sx={{ m: 1, width: '48%' }}
|
||||
|
@ -429,7 +429,7 @@ function Partner_Invoicing_Data(props) {
|
|||
<TextField
|
||||
name="adr_country"
|
||||
label="Pays"
|
||||
disabled
|
||||
|
||||
className="texte_area"
|
||||
sx={{ m: 1, width: '48%' }}
|
||||
InputProps={{
|
||||
|
|
|
@ -863,7 +863,7 @@ const Partner_Securite_Data = (props) => {
|
|||
La mise à jour été faite
|
||||
</div>
|
||||
}
|
||||
|
||||
<br />
|
||||
<TextField
|
||||
name="current_email"
|
||||
label="Adresse mail"
|
||||
|
|
|
@ -769,31 +769,34 @@
|
|||
}
|
||||
|
||||
.texte_area {
|
||||
float: left;
|
||||
width: 47% !important;
|
||||
font-size: small !important;
|
||||
font-size: x-small !important;
|
||||
font-family: "verdana", "Quicksand", "Signika", sans-serif;
|
||||
margin: 0rem !important;
|
||||
margin-right: 0.4rem !important;
|
||||
margin-top: 0.4rem !important;
|
||||
background-color: "#ECEFF1";
|
||||
background: "#ECEFF1";
|
||||
color: black;
|
||||
margin: 0.5rem !important;
|
||||
margin: 0.4rem !important;
|
||||
margin-top: 0px !important;
|
||||
margin-bottom: 1.5rem !important;
|
||||
}
|
||||
|
||||
.texte_area_adress {
|
||||
width: 96.5% !important;
|
||||
font-size: small !important;
|
||||
float: left;
|
||||
width: 95% !important;
|
||||
font-size: x-small !important;
|
||||
font-family: "verdana", "Quicksand", "Signika", sans-serif;
|
||||
margin: 0rem !important;
|
||||
margin-right: 0.4rem !important;
|
||||
margin-top: 0.4rem !important;
|
||||
background-color: "#ECEFF1";
|
||||
background: "#ECEFF1";
|
||||
color: black;
|
||||
margin: 0.5rem !important;
|
||||
margin: 0.4rem !important;
|
||||
margin-bottom: 1.5rem !important;
|
||||
}
|
||||
|
||||
.texte_area_passwd {
|
||||
float: left;
|
||||
width: 95% !important;
|
||||
font-size: x-small !important;
|
||||
font-family: "verdana", "Quicksand", "Signika", sans-serif;
|
||||
margin: 0.4rem !important;
|
||||
margin-bottom: 1.5rem !important;
|
||||
}
|
||||
|
||||
|
||||
.titre1 {
|
||||
font-family: "Quicksand", "Signika", sans-serif;
|
||||
font-size: medium;
|
||||
|
|
Loading…
Reference in New Issue