12/04/2024 - 15h05
parent
0aa1322630
commit
ae473b80a5
|
@ -772,8 +772,8 @@ const AddClassManual = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getClassImage(mylocaltraining._id);
|
getClassImage(mylocaltraining._id);
|
||||||
/*
|
/*
|
||||||
* Update 22/10/2023 :
|
* Update 22/10/2023 :
|
||||||
Gestion des champs spécifiques. ils commencent tous par 'my_'
|
Gestion des champs spécifiques. ils commencent tous par 'my_'
|
||||||
|
@ -806,7 +806,8 @@ const AddClassManual = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
if (document.getElementById(String(field_name)))
|
||||||
|
document.getElementById(String(field_name)).value = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1155,15 +1156,15 @@ const AddClassManual = (props) => {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status'], "result['class_id'] = ", result['class_id']);
|
console.log('Success:', result['message'], "result['status'] = ", result['status'], "result['class_id'] = ", result['class_id']);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
setimportmessage(result['message']);
|
setimportmessage(result['message']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setdatamodification("0");
|
setdatamodification("0");
|
||||||
|
|
||||||
if ( String(result['status']) === "true") {
|
if (String(result['status']) === "true") {
|
||||||
|
|
||||||
var myclass_id = String(result['class_id']);
|
var myclass_id = String(result['class_id']);
|
||||||
console.log(" ####GRRRRR myclass_id = ", myclass_id);
|
console.log(" ####GRRRRR myclass_id = ", myclass_id);
|
||||||
|
|
||||||
if (String(userimgclassprofilchanged) === "1")
|
if (String(userimgclassprofilchanged) === "1")
|
||||||
|
@ -1403,7 +1404,7 @@ const AddClassManual = (props) => {
|
||||||
form.append("token", stored_cookie);
|
form.append("token", stored_cookie);
|
||||||
form.append("class_external_code", class_external_code);
|
form.append("class_external_code", class_external_code);
|
||||||
form.append("related_collection", "myclass");
|
form.append("related_collection", "myclass");
|
||||||
form.append("related_collection_recid", selected_class_id);
|
form.append("related_collection_recid", selected_class_id);
|
||||||
form.append("type", "partner");
|
form.append("type", "partner");
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
fetch(
|
fetch(
|
||||||
|
@ -1508,7 +1509,7 @@ const AddClassManual = (props) => {
|
||||||
const [myclassimage, setmyclassimage] = useState();
|
const [myclassimage, setmyclassimage] = useState();
|
||||||
const [isclassimage, setisclassimage] = useState();
|
const [isclassimage, setisclassimage] = useState();
|
||||||
|
|
||||||
function getClassImage( local_class_id) {
|
function getClassImage(local_class_id) {
|
||||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/getRecodedClassImage/";
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/getRecodedClassImage/";
|
||||||
|
|
||||||
var class_external_code = props.mytrainingclass['class_external_code'];
|
var class_external_code = props.mytrainingclass['class_external_code'];
|
||||||
|
@ -1613,7 +1614,7 @@ const AddClassManual = (props) => {
|
||||||
|
|
||||||
fillfield();
|
fillfield();
|
||||||
if (props.mytrainingclass['class_external_code']) {
|
if (props.mytrainingclass['class_external_code']) {
|
||||||
|
|
||||||
//console.log("props.mytrainingclass['plus_produit'] = " + props.mytrainingclass['plus_produit']);
|
//console.log("props.mytrainingclass['plus_produit'] = " + props.mytrainingclass['plus_produit']);
|
||||||
setplus_produit_enabled(props.mytrainingclass['plus_produit']);
|
setplus_produit_enabled(props.mytrainingclass['plus_produit']);
|
||||||
setmots_cle_enabled(props.mytrainingclass['mots_cle']);
|
setmots_cle_enabled(props.mytrainingclass['mots_cle']);
|
||||||
|
|
|
@ -635,7 +635,8 @@ const Apprenant = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
if (document.getElementById(String(field_name)))
|
||||||
|
document.getElementById(String(field_name)).value = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ import DialogContentText from '@mui/material/DialogContentText';
|
||||||
import DialogTitle from '@mui/material/DialogTitle';
|
import DialogTitle from '@mui/material/DialogTitle';
|
||||||
import { TransitionProps } from '@mui/material/transitions';
|
import { TransitionProps } from '@mui/material/transitions';
|
||||||
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
|
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
|
||||||
|
import { gridClasses } from '@mui/x-data-grid';
|
||||||
|
|
||||||
const Config_Champs_Personnalise = (props) => {
|
const Config_Champs_Personnalise = (props) => {
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
@ -49,9 +50,9 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
const columns = [
|
const columns = [
|
||||||
{ field: '_id', headerName: '_id', hide: true },
|
{ field: '_id', headerName: '_id', hide: true },
|
||||||
{ field: 'id', headerName: 'id', hide: true },
|
{ field: 'id', headerName: 'id', hide: true },
|
||||||
{ field: 'field_name', headerName: 'Nom champ', flex: 1 },
|
{ field: 'field_name', headerName: 'Nom champ', flex: 1 },
|
||||||
{ field: 'field_label', headerName: 'label', flex: 1 },
|
{ field: 'field_label', headerName: 'label', flex: 1 },
|
||||||
{ field: 'related_collection', headerName: 'Entité metier', width: 150, },
|
{ field: 'related_collection', headerName: 'Entité metier', width: 150, },
|
||||||
{
|
{
|
||||||
field: 'is_displayed', headerName: 'Affichable', width: 150, hide: false, editable: false,
|
field: 'is_displayed', headerName: 'Affichable', width: 150, hide: false, editable: false,
|
||||||
valueFormatter: (params) => {
|
valueFormatter: (params) => {
|
||||||
|
@ -396,6 +397,8 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
|
|
||||||
setSelectionModel([]);
|
setSelectionModel([]);
|
||||||
|
|
||||||
|
setgridline_id("");
|
||||||
|
|
||||||
alert(" Le document a été correctement supprimé.");
|
alert(" Le document a été correctement supprimé.");
|
||||||
//myRef_head.current.scrollIntoView({ behavior: "smooth" });
|
//myRef_head.current.scrollIntoView({ behavior: "smooth" });
|
||||||
if (document.getElementById('myRef_head')) {
|
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() {
|
function clear_one_detail_fields() {
|
||||||
setp_one_detail_field_name("");
|
setp_one_detail_field_name("");
|
||||||
setp_one_detail_field_label();
|
setp_one_detail_field_label();
|
||||||
|
@ -897,6 +902,7 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
setpersonal_field_data_changed("0");
|
setpersonal_field_data_changed("0");
|
||||||
Getall_Partner_Personalised_Fields_No_filter();
|
Getall_Partner_Personalised_Fields_No_filter();
|
||||||
Get_Given_Specific_Fields(selected_id);
|
Get_Given_Specific_Fields(selected_id);
|
||||||
|
setgridline_id("");
|
||||||
alert(res.data.message);
|
alert(res.data.message);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1015,6 +1021,7 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
clear_one_detail_fields();
|
clear_one_detail_fields();
|
||||||
setdisplay_personalised_field();
|
setdisplay_personalised_field();
|
||||||
setadd_one_personal_field();
|
setadd_one_personal_field();
|
||||||
|
setgridline_id("");
|
||||||
alert(res.data.message);
|
alert(res.data.message);
|
||||||
if (document.getElementById('myRef_head')) {
|
if (document.getElementById('myRef_head')) {
|
||||||
var divh = document.getElementById('myRef_head').offsetTop;
|
var divh = document.getElementById('myRef_head').offsetTop;
|
||||||
|
@ -1243,7 +1250,7 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="div_row" style={{paddingRight: '10px' }}>
|
<div className="div_row" style={{ paddingRight: '10px' }}>
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
@ -1255,52 +1262,36 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
paddingRight: '1px',
|
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": {
|
"& .MuiDataGrid-columnHeaders": {
|
||||||
backgroundColor: "#c8cfd5",
|
backgroundColor: "#c8cfd5",
|
||||||
color: "black",
|
color: "black",
|
||||||
fontSize: 14
|
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
|
<DataGrid
|
||||||
checkboxSelection
|
checkboxSelection
|
||||||
onSelectionModelChange={(newSelectionModel) => {
|
onSelectionModelChange={(newSelectionModel) => {
|
||||||
setSelectionModel(newSelectionModel);
|
setSelectionModel(newSelectionModel);
|
||||||
if (newSelectionModel.length === 1)
|
/*if (newSelectionModel.length === 1)
|
||||||
handleClick_display_personal_field(newSelectionModel);
|
handleClick_display_personal_field(newSelectionModel);*/
|
||||||
if (newSelectionModel.length !== 1) {
|
if (newSelectionModel.length !== 1) {
|
||||||
setpersonal_field_data_edit_mode();
|
setpersonal_field_data_edit_mode();
|
||||||
setpersonal_field_data_changed();
|
setpersonal_field_data_changed();
|
||||||
|
@ -1332,6 +1323,11 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
pageSize={10}
|
pageSize={10}
|
||||||
className="datagridclass"
|
className="datagridclass"
|
||||||
|
|
||||||
|
onRowDoubleClick={(newSelectionModel) => {
|
||||||
|
setgridline_id(newSelectionModel.row.id);
|
||||||
|
handleClick_display_personal_field(newSelectionModel.row.id);
|
||||||
|
}}
|
||||||
|
|
||||||
rowsPerPageOptions={[10]}
|
rowsPerPageOptions={[10]}
|
||||||
//disableSelectionOnClick
|
//disableSelectionOnClick
|
||||||
components={{
|
components={{
|
||||||
|
@ -1363,6 +1359,16 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
|
|
||||||
}}
|
}}
|
||||||
getRowClassName={(params) => {
|
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") {
|
if (String(params.row.status) === "-1") {
|
||||||
return 'line--statut--annule';
|
return 'line--statut--annule';
|
||||||
|
@ -1375,6 +1381,15 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
getEstimatedRowHeight={() => 200}
|
||||||
|
getRowHeight={() => "auto"}
|
||||||
|
sx={{
|
||||||
|
"& .MuiDataGrid-cellContent": {
|
||||||
|
minHeight: 50,
|
||||||
|
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
|
@ -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} />, },
|
{ 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 {
|
} 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();
|
Getall_Survey_hot_evaluation_By_Session();
|
||||||
|
|
||||||
setSelectionModel_evaluation([]);
|
setSelectionModel_evaluation([]);
|
||||||
|
setactionmass_eval_val("");
|
||||||
alert(res.data.message);
|
alert(res.data.message);
|
||||||
|
|
||||||
} else if (String(res.data.status) === String("Err_Connexion")) {
|
} else if (String(res.data.status) === String("Err_Connexion")) {
|
||||||
|
@ -12274,7 +12276,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
</TextField>
|
</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
|
<Popup
|
||||||
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
||||||
|
|
||||||
|
@ -14678,7 +14680,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
{actionmass_sequence_val &&
|
{actionmass_sequence_val && String(actionmass_sequence_val).length > 1 &&
|
||||||
<Popup
|
<Popup
|
||||||
trigger={<Button className="bton_traiter_en_mass" >
|
trigger={<Button className="bton_traiter_en_mass" >
|
||||||
<FcAcceptDatabase /> Traiter
|
<FcAcceptDatabase /> Traiter
|
||||||
|
@ -15399,7 +15401,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{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
|
<Popup
|
||||||
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
||||||
<FcAcceptDatabase /> Traiter
|
<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
|
<Popup
|
||||||
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
||||||
<FcAcceptDatabase /> Traiter
|
<FcAcceptDatabase /> Traiter
|
||||||
|
@ -17603,7 +17605,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
|
|
||||||
</select>*/}
|
</select>*/}
|
||||||
|
|
||||||
{actionmass_emarg_val &&
|
{actionmass_emarg_val && String(actionmass_emarg_val).length > 1 &&
|
||||||
<Popup
|
<Popup
|
||||||
trigger={<Button className="bton_enreg" >
|
trigger={<Button className="bton_enreg" >
|
||||||
<FcAcceptDatabase /> Traiter
|
<FcAcceptDatabase /> Traiter
|
||||||
|
@ -17766,10 +17768,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
},
|
},
|
||||||
|
|
||||||
'& .line--statut--selected': {
|
|
||||||
backgroundColor: '#FBF2EF',
|
|
||||||
color: 'black',
|
|
||||||
},
|
|
||||||
'& .line--statut--pair': {
|
'& .line--statut--pair': {
|
||||||
backgroundColor: 'rgba(235, 235, 235, .7)',
|
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||||
color: 'black',
|
color: 'black',
|
||||||
|
@ -17841,11 +17840,8 @@ const DisplayPartnerSession = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pour la gestion de la couleur de zone double cliquée
|
// Pour la gestion de la couleur de zone double cliquée
|
||||||
if (String(params.row.id) === String(gridline_id)) {
|
|
||||||
|
if (parseInt(String(params.row.id)) % 2 === 0) {
|
||||||
return 'line--statut--selected';
|
|
||||||
}
|
|
||||||
else if (parseInt(String(params.row.id)) % 2 === 0) {
|
|
||||||
return 'line--statut--pair';
|
return 'line--statut--pair';
|
||||||
}
|
}
|
||||||
else if (parseInt(String(params.row.id)) % 2 !== 0) {
|
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
|
<Popup
|
||||||
trigger={<Button className="bton_enreg" >
|
trigger={<Button className="bton_enreg" >
|
||||||
<FcAcceptDatabase /> Traiter
|
<FcAcceptDatabase /> Traiter
|
||||||
|
|
|
@ -2872,7 +2872,8 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
if (document.getElementById(String(field_name)))
|
||||||
|
document.getElementById(String(field_name)).value = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,9 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
|
|
||||||
|
|
||||||
const changeHandler2 = (event) => {
|
const changeHandler2 = (event) => {
|
||||||
|
|
||||||
|
|
||||||
|
setformation_file_name();
|
||||||
Closecreatetraining();
|
Closecreatetraining();
|
||||||
setapiexcelimportmessage();
|
setapiexcelimportmessage();
|
||||||
setformation_file_name();
|
setformation_file_name();
|
||||||
|
@ -150,6 +153,8 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
behavior: "smooth",
|
behavior: "smooth",
|
||||||
});
|
});
|
||||||
alert(result['message']);
|
alert(result['message']);
|
||||||
|
setformation_file_name("");
|
||||||
|
|
||||||
console.log(" 000000000000000&")
|
console.log(" 000000000000000&")
|
||||||
|
|
||||||
|
|
||||||
|
@ -2235,6 +2240,8 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
style={{ display: 'none' }}
|
style={{ display: 'none' }}
|
||||||
name="liste_formation_file"
|
name="liste_formation_file"
|
||||||
onChange={handleSubmission}
|
onChange={handleSubmission}
|
||||||
|
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Button variant="outlined" onClick={Createtraining}
|
<Button variant="outlined" onClick={Createtraining}
|
||||||
|
|
|
@ -1256,7 +1256,7 @@ const Employes = (props) => {
|
||||||
* Update 22/10/2023 :
|
* Update 22/10/2023 :
|
||||||
Gestion des champs spécifiques. ils commencent tous par 'my_'
|
Gestion des champs spécifiques. ils commencent tous par 'my_'
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
for (let i = 0; i < rows_champs_specifics.length; i++) {
|
for (let i = 0; i < rows_champs_specifics.length; i++) {
|
||||||
|
|
||||||
|
@ -1284,6 +1284,9 @@ const Employes = (props) => {
|
||||||
|
|
||||||
} else {
|
} 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";
|
document.getElementsByName("detail_nom")[0].style.backgroundColor = "#FFFFFF";
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementsByName("detail_prenom")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_prenom")[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";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_mail")[0].disabled = false;
|
if (document.getElementsByName("detail_naissance") && document.getElementsByName("detail_naissance")[0]) {
|
||||||
document.getElementsByName("detail_mail")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_naissance")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_naissance")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementsByName("detail_naissance")[0].disabled = false;
|
if (document.getElementsByName("detail_tel") && document.getElementsByName("detail_tel")[0]) {
|
||||||
document.getElementsByName("detail_naissance")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_tel")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_tel")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_tel")[0].disabled = false;
|
if (document.getElementsByName("detail_adresse") && document.getElementsByName("detail_adresse")[0]) {
|
||||||
document.getElementsByName("detail_tel")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_adresse")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_adresse")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_adresse")[0].disabled = false;
|
if (document.getElementsByName("detail_code_postal") && document.getElementsByName("detail_code_postal")[0]) {
|
||||||
document.getElementsByName("detail_adresse")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_code_postal")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_code_postal")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementsByName("detail_code_postal")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_code_postal")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_ville")[0].disabled = false;
|
if (document.getElementsByName("detail_ville") && document.getElementsByName("detail_ville")[0]) {
|
||||||
document.getElementsByName("detail_ville")[0].style.backgroundColor = "#FFFFFF";
|
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]) {
|
if (document.getElementsByName("detail_civilite") && document.getElementsByName("detail_civilite")[0]) {
|
||||||
document.getElementsByName("detail_civilite")[0].disabled = false;
|
document.getElementsByName("detail_civilite")[0].disabled = false;
|
||||||
document.getElementsByName("detail_civilite")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_civilite")[0].style.backgroundColor = "#FFFFFF";
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementsByName("detail_tel_mobile")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_tel_mobile")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_pays")[0].disabled = false;
|
if (document.getElementsByName("detail_tel_mobile") && document.getElementsByName("detail_tel_mobile")[0]) {
|
||||||
document.getElementsByName("detail_pays")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_tel_mobile")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_tel_mobile")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementsByName("detail_linkedin")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_linkedin")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_facebook")[0].disabled = false;
|
if (document.getElementsByName("detail_pays") && document.getElementsByName("detail_pays")[0]) {
|
||||||
document.getElementsByName("detail_facebook")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_pays")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_pays")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementsByName("detail_twitter")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_twitter")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_profil")[0].disabled = false;
|
if (document.getElementsByName("detail_linkedin") && document.getElementsByName("detail_linkedin")[0]) {
|
||||||
document.getElementsByName("detail_profil")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_linkedin")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_linkedin")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementsByName("detail_fonction")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_fonction")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_ismanager")[0].disabled = false;
|
if (document.getElementsByName("detail_facebook") && document.getElementsByName("detail_facebook")[0]) {
|
||||||
document.getElementsByName("detail_ismanager")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_facebook")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_facebook")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
//document.getElementsByName("detail_user_login")[0].disabled = false;
|
|
||||||
//document.getElementsByName("detail_user_login")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_resp_hierarchie_id")[0].disabled = false;
|
if (document.getElementsByName("detail_twitter") && document.getElementsByName("detail_twitter")[0]) {
|
||||||
document.getElementsByName("detail_resp_hierarchie_id")[0].style.backgroundColor = "#FFFFFF";
|
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";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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
|
// Pour les champs spécifiques
|
||||||
for (let i = 0; i < rows_champs_specifics.length; i++) {
|
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);
|
//console.log(" In Update_One_Employee_Data res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (String(res.data.status) === String("true")) {
|
if (String(res.data.status) === String("true")) {
|
||||||
setUpdate_One_Employee_Data_api("true");
|
setUpdate_One_Employee_Data_api("true");
|
||||||
setUpdate_One_Employee_Data_result(res.data.message);
|
setUpdate_One_Employee_Data_result(res.data.message);
|
||||||
|
@ -2083,7 +2134,7 @@ const Employes = (props) => {
|
||||||
setemployee_data_changed("");
|
setemployee_data_changed("");
|
||||||
setemployee_data_edit_mode("");
|
setemployee_data_edit_mode("");
|
||||||
Get_Employee_Data(selected_id);
|
Get_Employee_Data(selected_id);
|
||||||
setgridline_id('');
|
//setgridline_id('');
|
||||||
alert(" La mise à jour été correctement faite.");
|
alert(" La mise à jour été correctement faite.");
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2658,7 +2658,8 @@ function GestionAdministrative(props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
if (document.getElementById(String(field_name)))
|
||||||
|
document.getElementById(String(field_name)).value = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4292,7 +4293,8 @@ function GestionAdministrative(props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
if (document.getElementById(String(field_name)))
|
||||||
|
document.getElementById(String(field_name)).value = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2122,7 +2122,7 @@ const Module_Editique = (props) => {
|
||||||
<DialogContent className="DialogContent_width" style={{ "minHeight": "10rem" }}>
|
<DialogContent className="DialogContent_width" style={{ "minHeight": "10rem" }}>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<div style={{ "textAlign": "left" }}>
|
<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>
|
<ul>
|
||||||
|
|
||||||
<li> Choisir et envoyer les questionnaires de positionnement </li>
|
<li> Choisir et envoyer les questionnaires de positionnement </li>
|
||||||
|
@ -2309,7 +2309,7 @@ const Module_Editique = (props) => {
|
||||||
setDialog_CONF_INSCRIPTION_open(true);
|
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);
|
setDialog_EVALUATION_FORMATION_open(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
<Popup
|
||||||
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
||||||
|
|
||||||
|
|
|
@ -162,6 +162,7 @@ const Partner = (props) => {
|
||||||
|
|
||||||
const handleSubmission = event => {
|
const handleSubmission = event => {
|
||||||
|
|
||||||
|
|
||||||
const fileUploaded = event.target.files[0];
|
const fileUploaded = event.target.files[0];
|
||||||
let file_size = event.target.files[0].size;
|
let file_size = event.target.files[0].size;
|
||||||
let file_type = event.target.files[0].type;
|
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 |
|
@ -16,7 +16,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
.employes {
|
.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 {
|
.tooltip_css {
|
||||||
background: #81BC3A;
|
background: #81BC3A;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
|
|
@ -2511,7 +2511,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
|
left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
|
|
|
@ -2660,7 +2660,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 80%;
|
opacity: 80%;
|
||||||
}
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
|
|
Loading…
Reference in New Issue