12/04/2024 - 15h05

recette2
cherif 2024-04-12 15:05:30 +02:00
parent 0aa1322630
commit ae473b80a5
24 changed files with 218 additions and 118 deletions

View File

@ -806,7 +806,8 @@ const AddClassManual = (props) => {
}
} else {
if (document.getElementById(String(field_name)))
document.getElementById(String(field_name)).value = "";
}
}

View File

@ -635,7 +635,8 @@ const Apprenant = (props) => {
}
} else {
if (document.getElementById(String(field_name)))
document.getElementById(String(field_name)).value = "";
}
}

View File

@ -39,6 +39,7 @@ import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle';
import { TransitionProps } from '@mui/material/transitions';
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
import { gridClasses } from '@mui/x-data-grid';
const Config_Champs_Personnalise = (props) => {
const history = useHistory();
@ -396,6 +397,8 @@ const Config_Champs_Personnalise = (props) => {
setSelectionModel([]);
setgridline_id("");
alert(" Le document a été correctement supprimé.");
//myRef_head.current.scrollIntoView({ behavior: "smooth" });
if (document.getElementById('myRef_head')) {
@ -770,6 +773,8 @@ const Config_Champs_Personnalise = (props) => {
}
const [gridline_id, setgridline_id] = useState("");
function clear_one_detail_fields() {
setp_one_detail_field_name("");
setp_one_detail_field_label();
@ -897,6 +902,7 @@ const Config_Champs_Personnalise = (props) => {
setpersonal_field_data_changed("0");
Getall_Partner_Personalised_Fields_No_filter();
Get_Given_Specific_Fields(selected_id);
setgridline_id("");
alert(res.data.message);
}
@ -1015,6 +1021,7 @@ const Config_Champs_Personnalise = (props) => {
clear_one_detail_fields();
setdisplay_personalised_field();
setadd_one_personal_field();
setgridline_id("");
alert(res.data.message);
if (document.getElementById('myRef_head')) {
var divh = document.getElementById('myRef_head').offsetTop;
@ -1255,52 +1262,36 @@ const Config_Champs_Personnalise = (props) => {
width: '100%',
paddingRight: '1px',
// Gestion des cellule a distance ou presentiel
'& .cell--distantiel': {
backgroundColor: '#AFE1AF',
color: 'black',
},
'& .cell--presentiel': {
backgroundColor: '#AFE1AF',
color: 'black',
},
// gestion couleur des lignes avec le statut d'inscription
'& .line--statut--annule': {
backgroundColor: '#D8D8D8',
color: 'white',
},
'& .line--statut--inscrit': {
backgroundColor: '#CEF6D8',
color: 'black',
},
'& .line--statut--preinscrit': {
backgroundColor: '#F7F2E0',
color: 'black',
},
/*"& .MuiDataGrid-virtualScrollerRenderZone": {
"& .MuiDataGrid-row": {
"&:nth-child(2n)": { backgroundColor: "rgba(235, 235, 235, .7)" }
}
},*/
"& .MuiDataGrid-columnHeaders": {
backgroundColor: "#c8cfd5",
color: "black",
fontSize: 14
},
'& .line--statut--selected': {
backgroundColor: '#FBF2EF',
color: 'black',
},
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: 'black',
},
'& .line--statut--impair': {
backgroundColor: '#FFFFFF',
color: 'black',
},
[`& .${gridClasses.cell}`]: {
py: 1,
},
}}
>
<DataGrid
checkboxSelection
onSelectionModelChange={(newSelectionModel) => {
setSelectionModel(newSelectionModel);
if (newSelectionModel.length === 1)
handleClick_display_personal_field(newSelectionModel);
/*if (newSelectionModel.length === 1)
handleClick_display_personal_field(newSelectionModel);*/
if (newSelectionModel.length !== 1) {
setpersonal_field_data_edit_mode();
setpersonal_field_data_changed();
@ -1332,6 +1323,11 @@ const Config_Champs_Personnalise = (props) => {
pageSize={10}
className="datagridclass"
onRowDoubleClick={(newSelectionModel) => {
setgridline_id(newSelectionModel.row.id);
handleClick_display_personal_field(newSelectionModel.row.id);
}}
rowsPerPageOptions={[10]}
//disableSelectionOnClick
components={{
@ -1363,6 +1359,16 @@ const Config_Champs_Personnalise = (props) => {
}}
getRowClassName={(params) => {
// Pour la gestion de la couleur de zone double cliquée
if (String(params.row.id) === String(gridline_id)) {
return 'line--statut--selected';
}
else if (parseInt(String(params.row.id)) % 2 === 0) {
return 'line--statut--pair';
}
else if (parseInt(String(params.row.id)) % 2 !== 0) {
return 'line--statut--impair';
}
if (String(params.row.status) === "-1") {
return 'line--statut--annule';
@ -1375,6 +1381,15 @@ const Config_Champs_Personnalise = (props) => {
}
}}
getEstimatedRowHeight={() => 200}
getRowHeight={() => "auto"}
sx={{
"& .MuiDataGrid-cellContent": {
minHeight: 50,
}
}}
/>
</Box>

View File

@ -195,7 +195,7 @@ const DisplayPartnerSession = (props) => {
},
{
field: 'etape', headerName: 'Etape', hide: false, width: datagrid_columns_size_model2, renderCell: (params) => <ExpandableCell_50 {...params} />,
field: 'etape', headerName: 'Etape', hide: true, width: datagrid_columns_size_model2, renderCell: (params) => <ExpandableCell_50 {...params} />,
},
{ field: 'class_external_code', headerName: 'Code Formation', align: "center", hideable: true, flex: 1, hide: true, minWidth: 150, renderCell: (params) => <ExpandableCell_50 {...params} />, },
@ -5573,7 +5573,8 @@ const DisplayPartnerSession = (props) => {
}
} else {
if (document.getElementById(String(field_name)))
document.getElementById(String(field_name)).value = "";
}
}
@ -10205,6 +10206,7 @@ const DisplayPartnerSession = (props) => {
Getall_Survey_hot_evaluation_By_Session();
setSelectionModel_evaluation([]);
setactionmass_eval_val("");
alert(res.data.message);
} else if (String(res.data.status) === String("Err_Connexion")) {
@ -12274,7 +12276,7 @@ const DisplayPartnerSession = (props) => {
</TextField>
{actionmass_ftion_val && <nav className='block_en_mass_bton_action'>
{actionmass_ftion_val && String(actionmass_ftion_val).length > 1 && <nav className='block_en_mass_bton_action'>
<Popup
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
@ -14678,7 +14680,7 @@ const DisplayPartnerSession = (props) => {
</select> &nbsp;
{actionmass_sequence_val &&
{actionmass_sequence_val && String(actionmass_sequence_val).length > 1 &&
<Popup
trigger={<Button className="bton_traiter_en_mass" >
<FcAcceptDatabase /> Traiter
@ -15399,7 +15401,7 @@ const DisplayPartnerSession = (props) => {
}
/>
&nbsp;
{actionmass_preinsc_val && <nav className='block_en_mass_bton_action'>
{actionmass_preinsc_val && String(actionmass_preinsc_val).length > 1 && <nav className='block_en_mass_bton_action'>
<Popup
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
<FcAcceptDatabase /> Traiter
@ -16216,7 +16218,7 @@ const DisplayPartnerSession = (props) => {
}
/>
{actionmass_insc_val && <nav className='block_en_mass_bton_action'>
{actionmass_insc_val && String(actionmass_insc_val).length > 1 && <nav className='block_en_mass_bton_action'>
<Popup
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
<FcAcceptDatabase /> Traiter
@ -17603,7 +17605,7 @@ const DisplayPartnerSession = (props) => {
</select>*/} &nbsp;
{actionmass_emarg_val &&
{actionmass_emarg_val && String(actionmass_emarg_val).length > 1 &&
<Popup
trigger={<Button className="bton_enreg" >
<FcAcceptDatabase /> Traiter
@ -17766,10 +17768,7 @@ const DisplayPartnerSession = (props) => {
fontSize: 14
},
'& .line--statut--selected': {
backgroundColor: '#FBF2EF',
color: 'black',
},
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: 'black',
@ -17841,11 +17840,8 @@ const DisplayPartnerSession = (props) => {
}
// Pour la gestion de la couleur de zone double cliquée
if (String(params.row.id) === String(gridline_id)) {
return 'line--statut--selected';
}
else if (parseInt(String(params.row.id)) % 2 === 0) {
if (parseInt(String(params.row.id)) % 2 === 0) {
return 'line--statut--pair';
}
else if (parseInt(String(params.row.id)) % 2 !== 0) {
@ -17908,7 +17904,7 @@ const DisplayPartnerSession = (props) => {
/>
{actionmass_eval_val &&
{actionmass_eval_val && String(actionmass_eval_val).length > 1 &&
<Popup
trigger={<Button className="bton_enreg" >
<FcAcceptDatabase /> Traiter

View File

@ -2872,7 +2872,8 @@ const DisplayPartnerStagiaires = (props) => {
}
} else {
if (document.getElementById(String(field_name)))
document.getElementById(String(field_name)).value = "";
}
}

View File

@ -62,6 +62,9 @@ const DistplayPartnerTraningsPage = (props) => {
const changeHandler2 = (event) => {
setformation_file_name();
Closecreatetraining();
setapiexcelimportmessage();
setformation_file_name();
@ -150,6 +153,8 @@ const DistplayPartnerTraningsPage = (props) => {
behavior: "smooth",
});
alert(result['message']);
setformation_file_name("");
console.log(" 000000000000000&")
@ -2235,6 +2240,8 @@ const DistplayPartnerTraningsPage = (props) => {
style={{ display: 'none' }}
name="liste_formation_file"
onChange={handleSubmission}
/>
&nbsp;
<Button variant="outlined" onClick={Createtraining}

View File

@ -1284,6 +1284,9 @@ const Employes = (props) => {
} else {
if (document.getElementById(String(field_name)))
document.getElementById(String(field_name)).value = "";
}
}
@ -1836,67 +1839,112 @@ const Employes = (props) => {
document.getElementsByName("detail_nom")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_prenom") && document.getElementsByName("detail_prenom")[0]) {
document.getElementsByName("detail_prenom")[0].disabled = false;
document.getElementsByName("detail_prenom")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_mail") && document.getElementsByName("detail_mail")[0]) {
document.getElementsByName("detail_mail")[0].disabled = false;
document.getElementsByName("detail_mail")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_naissance") && document.getElementsByName("detail_naissance")[0]) {
document.getElementsByName("detail_naissance")[0].disabled = false;
document.getElementsByName("detail_naissance")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_tel") && document.getElementsByName("detail_tel")[0]) {
document.getElementsByName("detail_tel")[0].disabled = false;
document.getElementsByName("detail_tel")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_adresse") && document.getElementsByName("detail_adresse")[0]) {
document.getElementsByName("detail_adresse")[0].disabled = false;
document.getElementsByName("detail_adresse")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_code_postal") && document.getElementsByName("detail_code_postal")[0]) {
document.getElementsByName("detail_code_postal")[0].disabled = false;
document.getElementsByName("detail_code_postal")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_ville") && document.getElementsByName("detail_ville")[0]) {
document.getElementsByName("detail_ville")[0].disabled = false;
document.getElementsByName("detail_ville")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_civilite") && document.getElementsByName("detail_civilite")[0]) {
document.getElementsByName("detail_civilite")[0].disabled = false;
document.getElementsByName("detail_civilite")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_tel_mobile") && document.getElementsByName("detail_tel_mobile")[0]) {
document.getElementsByName("detail_tel_mobile")[0].disabled = false;
document.getElementsByName("detail_tel_mobile")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_pays") && document.getElementsByName("detail_pays")[0]) {
document.getElementsByName("detail_pays")[0].disabled = false;
document.getElementsByName("detail_pays")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_linkedin") && document.getElementsByName("detail_linkedin")[0]) {
document.getElementsByName("detail_linkedin")[0].disabled = false;
document.getElementsByName("detail_linkedin")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_facebook") && document.getElementsByName("detail_facebook")[0]) {
document.getElementsByName("detail_facebook")[0].disabled = false;
document.getElementsByName("detail_facebook")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_twitter") && document.getElementsByName("detail_twitter")[0]) {
document.getElementsByName("detail_twitter")[0].disabled = false;
document.getElementsByName("detail_twitter")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_profil") && document.getElementsByName("detail_profil")[0]) {
document.getElementsByName("detail_profil")[0].disabled = false;
document.getElementsByName("detail_profil")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_fonction") && document.getElementsByName("detail_fonction")[0]) {
document.getElementsByName("detail_fonction")[0].disabled = false;
document.getElementsByName("detail_fonction")[0].style.backgroundColor = "#FFFFFF";
}
if (document.getElementsByName("detail_ismanager") && document.getElementsByName("detail_ismanager")[0]) {
document.getElementsByName("detail_ismanager")[0].disabled = false;
document.getElementsByName("detail_ismanager")[0].style.backgroundColor = "#FFFFFF";
}
//document.getElementsByName("detail_user_login")[0].disabled = false;
//document.getElementsByName("detail_user_login")[0].style.backgroundColor = "#FFFFFF";
if (document.getElementsByName("detail_resp_hierarchie_id") && document.getElementsByName("detadetail_resp_hierarchie_idil_civilite")[0]) {
document.getElementsByName("detail_resp_hierarchie_id")[0].disabled = false;
document.getElementsByName("detail_resp_hierarchie_id")[0].style.backgroundColor = "#FFFFFF";
document.getElementsByName("detail_competence")[0].disabled = false;
document.getElementsByName("detail_competence")[0].style.backgroundColor = "#FFFFFF";
}
// Pour les champs spécifiques
for (let i = 0; i < rows_champs_specifics.length; i++) {
@ -2072,6 +2120,9 @@ const Employes = (props) => {
//console.log(" In Update_One_Employee_Data res.data.message r_class = " + res.data.message);
setLoading(false);
if (String(res.data.status) === String("true")) {
setUpdate_One_Employee_Data_api("true");
setUpdate_One_Employee_Data_result(res.data.message);
@ -2083,7 +2134,7 @@ const Employes = (props) => {
setemployee_data_changed("");
setemployee_data_edit_mode("");
Get_Employee_Data(selected_id);
setgridline_id('');
//setgridline_id('');
alert(" La mise à jour été correctement faite.");

View File

@ -2658,7 +2658,8 @@ function GestionAdministrative(props) {
}
} else {
if (document.getElementById(String(field_name)))
document.getElementById(String(field_name)).value = "";
}
}
@ -4292,7 +4293,8 @@ function GestionAdministrative(props) {
}
} else {
if (document.getElementById(String(field_name)))
document.getElementById(String(field_name)).value = "";
}
}

View File

@ -2122,7 +2122,7 @@ const Module_Editique = (props) => {
<DialogContent className="DialogContent_width" style={{ "minHeight": "10rem" }}>
<DialogContentText>
<div style={{ "textAlign": "left" }}>
Cliquez sur l'onglet 'Q_POSITIONNEMENT' pour la gestion des questions de positionnement :<br />
Cliquez sur l'onglet 'Q. POSITION' pour la gestion des questions de positionnement :<br />
<ul>
<li> Choisir et envoyer les questionnaires de positionnement </li>
@ -2309,7 +2309,7 @@ const Module_Editique = (props) => {
setDialog_CONF_INSCRIPTION_open(true);
}
else if (String(JSON.parse(document).courrier_template_ref_interne) === "EVALUATIONS") {
else if (String(JSON.parse(document).courrier_template_ref_interne) === "EVAL_FORMATION") {
setDialog_EVALUATION_FORMATION_open(true);
}

View File

@ -828,7 +828,7 @@ const Module_Evaluation_Positionnement = (props) => {
{actionmass_q_position_val && <nav className='block_en_mass_bton_action'>
{actionmass_q_position_val && String(actionmass_q_position_val).length > 1 && <nav className='block_en_mass_bton_action'>
<Popup
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>

View File

@ -162,6 +162,7 @@ const Partner = (props) => {
const handleSubmission = event => {
const fileUploaded = event.target.files[0];
let file_size = event.target.files[0].size;
let file_type = event.target.files[0].type;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -16,6 +16,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.spinner {

View File

@ -22,6 +22,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.spinner {

View File

@ -22,6 +22,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.spinner {

View File

@ -22,6 +22,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.spinner {

View File

@ -18,6 +18,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.spinner {

View File

@ -1,5 +1,20 @@
.employes {
.loader-container {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
background: white;
background-color: transparent;
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.tooltip_css {
background: #81BC3A;
z-index: 9999;

View File

@ -2511,6 +2511,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}

View File

@ -16,6 +16,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.spinner {

View File

@ -12,6 +12,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.spinner {

View File

@ -16,6 +16,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}
.spinner {

View File

@ -2660,6 +2660,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
}