diff --git a/src/components/Config_Document.js b/src/components/Config_Document.js
index 3ba84e0..5c24045 100644
--- a/src/components/Config_Document.js
+++ b/src/components/Config_Document.js
@@ -1984,7 +1984,7 @@ const Config_Documents = (props) => {
))}
diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js
index 37d26f6..b918462 100644
--- a/src/components/DisplayPartnerSession.js
+++ b/src/components/DisplayPartnerSession.js
@@ -120,6 +120,7 @@ const DisplayPartnerSession = (props) => {
{ field: '_id', headerName: '_id', hide: true },
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true },
{ field: 'code_session', headerName: 'Code session', hide: false, flex: 1, minWidth: 150 },
+
{
field: 'statut', headerName: 'Statut', hide: true, width: datagrid_columns_size_model2,
valueFormatter: (params) => {
@@ -663,6 +664,221 @@ const DisplayPartnerSession = (props) => {
+ ]
+
+ const columns_sequence = [
+ { field: 'id', headerName: 'id', hide: true },
+ { field: '_id', headerName: '_id', hide: true },
+ { field: 'session_id', headerName: 'session_id', width: 200, hide: true, flex: 1, minWidth: 150, maxWidth: 300 },
+ { field: 'sequence_title', headerName: 'Titre', width: 150, hide: false, editable: false, resizable: true },
+ { field: 'sequence_start', headerName: 'Debut', width: 150, hide: false, editable: false },
+ { field: 'sequence_end', headerName: 'Fin', width: 200, hide: false, editable: false },
+
+
+ {
+ field: "Detail", headerName: 'Voir detail',
+ renderCell: (cellValues) => {
+ return (
+
+
+
+ );
+ }
+ },
+
+ {
+ field: "add_ressource", headerName: 'Ajout Ressource',
+ renderCell: (cellValues) => {
+ return (
+
+
+
+ );
+ }
+ },
+
+ {
+ field: "delete", headerName: 'Supprimer',
+ renderCell: (cellValues) => {
+ return (
+
+ {
+
+ }}
+ >
+
+
+ }
+ modal
+ nested
+ position="center center"
+ >
+ {close => (
+
+
+
MySy Information
+
+ {' '}
+
+ En confirmant cette opération, la séquence sera définitivement supprimée.
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
+
+
+
+ );
+ }
+ }
+
+
+ ]
+
+ const columns_sequence_ressources_affectation = [
+ { field: 'id', headerName: 'id', hide: true },
+ { field: '_id', headerName: '_id', hide: true },
+ { field: 'related_target_collection_id', headerName: 'related_target_collection_id', width: 200, hide: true, flex: 1, minWidth: 150, maxWidth: 300 },
+ { field: 'related_target_collection', headerName: 'related_target_collection', width: 150, hide: true, editable: false, resizable: true },
+ { field: 'type_ressource', headerName: 'Type', width: 150, hide: false, editable: false },
+ { field: 'related_target_collection_object', headerName: 'object', width: 150, hide: false, editable: false, resizable: true },
+ { field: 'related_target_collection_id_nom', headerName: 'nom', width: 150, hide: false, editable: false, resizable: true },
+ { field: 'poste', headerName: 'Poste', width: 150, hide: false, editable: false },
+ { field: 'comment', headerName: 'Comment', width: 200, hide: false, editable: false },
+
+
+ {
+ field: "Detail", headerName: 'Voir detail',
+ renderCell: (cellValues) => {
+ return (
+
+
+
+ );
+ }
+ },
+
+
+
+ {
+ field: "delete", headerName: 'Supprimer',
+ renderCell: (cellValues) => {
+ return (
+
+ {
+
+ }}
+ >
+
+
+ }
+ modal
+ nested
+ position="center center"
+ >
+ {close => (
+
+
+
MySy Information
+
+ {' '}
+
+ En confirmant cette opération, la séquence sera définitivement supprimée.
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
+
+
+
+ );
+ }
+ }
+
+
]
const [Getall_TrainingSession_api, setGetall_TrainingSession_api] = useState();
@@ -818,6 +1034,8 @@ const DisplayPartnerSession = (props) => {
var session_id = line._id;
setselected_session_id(session_id);
+ Getall_Sequence_Of_Session(session_id);
+
setselected_class_title(line.title);
@@ -906,6 +1124,48 @@ const DisplayPartnerSession = (props) => {
}
+ const [Getall_Training_Materiel_No_Filter_api, setGetall_Training_Materiel_No_Filter_api] = useState();
+ const [Getall_Training_Materiel_No_Filter_message, setGetall_Training_Materiel_No_Filter_message] = useState();
+ const [Getall_Training_Materiel_No_Filter_result, setGetall_Training_Materiel_No_Filter_result] = useState();
+ function Getall_Training_Materiel_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_Materielle_no_filter/";
+
+ setLoading(true);
+
+ axios.post(myurl, form).then(res => {
+
+
+ setLoading(false);
+ if (String(res.data.status) === String("true")) {
+ //console.log(" In Getall_Training_Materiel_No_Filter res.data.status = " + res.data.status);
+ //console.log(" In Getall_Training_Materiel_No_Filter res.data.message r_class = " + res.data.message);
+ setGetall_Training_Materiel_No_Filter_api("true");
+ setGetall_Training_Materiel_No_Filter_result(res.data.message);
+ }
+ else {
+ setGetall_Training_Materiel_No_Filter_api("false");
+ setGetall_Training_Materiel_No_Filter_message(res.data.message);
+ alert(res.data.message);
+ }
+
+ }).catch((error) => {
+
+ setLoading(false);
+ console.warn('Not good man :( Getall_Training_Materiel_No_Filter = ', error);
+ setGetall_Training_Materiel_No_Filter_api("false");
+ alert(" Impossible de recuperer la liste du materiel");
+ //setmyApimyApiMessage("")
+ })
+ }
+
+
const [Getall_Parter_OR_Default_Session_Steps_api, setGetall_Parter_OR_Default_Session_Steps_api] = useState();
const [Getall_Parter_OR_Default_Session_Steps_message, setGetall_Parter_OR_Default_Session_Steps_message] = useState();
const [Getall_Parter_OR_Default_Session_Steps_result, setGetall_Parter_OR_Default_Session_Steps_result] = useState();
@@ -926,7 +1186,7 @@ const DisplayPartnerSession = (props) => {
//console.log(" In Getall_Parter_OR_Default_Session_Steps res.data.message r_class = " + res.data.message);
setGetall_Parter_OR_Default_Session_Steps_api("true");
setGetall_Parter_OR_Default_Session_Steps_result(res.data.message);
- setRows(res.data.message);
+
}
else {
setGetall_Parter_OR_Default_Session_Steps_api("false");
@@ -947,6 +1207,7 @@ const DisplayPartnerSession = (props) => {
Get_Partner_Object_Specific_Fields_stagiaire();
Getall_Training_Employee_No_Filter();
+ Getall_Training_Materiel_No_Filter();
Getall_Parter_OR_Default_Session_Steps();
@@ -975,6 +1236,8 @@ const DisplayPartnerSession = (props) => {
const [selectionModel, setSelectionModel] = React.useState([]);
+ const [selectionModel_sequence, setselectionModel_sequence] = React.useState([]);
+
const actionmass_preinsc = (event) => {
const value = event.target.value;
@@ -1004,6 +1267,11 @@ const DisplayPartnerSession = (props) => {
document.getElementById("inscrit").style.color = "black";
}
+ if (document.getElementById("sequence_session")) {
+ document.getElementById("sequence_session").style.backgroundColor = "#d8edfc";
+ document.getElementById("sequence_session").style.color = "black";
+ }
+
}
function submenu_inscrit() {
@@ -1024,6 +1292,11 @@ const DisplayPartnerSession = (props) => {
document.getElementById("preinscrit").style.color = "black";
}
+ if (document.getElementById("sequence_session")) {
+ document.getElementById("sequence_session").style.backgroundColor = "#d8edfc";
+ document.getElementById("sequence_session").style.color = "black";
+ }
+
}
async function submenu_detail_session() {
@@ -1049,9 +1322,48 @@ const DisplayPartnerSession = (props) => {
document.getElementById("preinscrit").style.color = "black";
}
+ if (document.getElementById("sequence_session")) {
+ document.getElementById("sequence_session").style.backgroundColor = "#d8edfc";
+ document.getElementById("sequence_session").style.color = "black";
+ }
}
+ async function submenu_sequence_session() {
+ setsubmenu("sequence_session");
+
+ //await sleep(5);
+ if (!edit_session_form) {
+ desableSessionFields();
+ }
+
+ if (document.getElementById("sequence_session")) {
+ document.getElementById("sequence_session").style.backgroundColor = "#104277";
+ document.getElementById("sequence_session").style.color = "white";
+ }
+
+
+ if (document.getElementById("detail_session")) {
+ document.getElementById("detail_session").style.backgroundColor = "#d8edfc";
+ document.getElementById("detail_session").style.color = "black";
+ }
+
+ if (document.getElementById("inscrit")) {
+ document.getElementById("inscrit").style.backgroundColor = "#d8edfc";
+ document.getElementById("inscrit").style.color = "black";
+ }
+
+ if (document.getElementById("preinscrit")) {
+ document.getElementById("preinscrit").style.backgroundColor = "#d8edfc";
+ document.getElementById("preinscrit").style.color = "black";
+ }
+
+
+
+
+ }
+
+
function handleClickSessionManagement(event, cellValues) {
var code_session = cellValues.row.code_session;
setselected_code_session(cellValues.row.code_session);
@@ -1201,6 +1513,49 @@ const DisplayPartnerSession = (props) => {
+ const [Getall_Sequence_Of_Session_api, setGetall_Sequence_Of_Session_api] = useState();
+ const [Getall_Sequence_Of_Session_message, setGetall_Sequence_Of_Session_message] = useState();
+ const [Getall_Sequence_Of_Session_result, setGetall_Sequence_Of_Session_result] = useState();
+ function Getall_Sequence_Of_Session(local_session_id) {
+
+ var form = new FormData();
+
+
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("session_id", local_session_id);
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Session_Sequence_List/";
+
+ setLoading(true);
+
+
+ axios.post(myurl, form).then(res => {
+
+ setLoading(false);
+ if (String(res.data.status) === String("true")) {
+ //console.log(" In Getall_Sequence_Of_Session res.data.status = " + res.data.status);
+ //console.log(" In Getall_Sequence_Of_Session res.data.message r_class = " + res.data.message);
+ setGetall_Sequence_Of_Session_api("true");
+ setGetall_Sequence_Of_Session_result(res.data.message);
+
+ }
+ else {
+ setGetall_Sequence_Of_Session_api("false");
+ setGetall_Sequence_Of_Session_message(res.data.message);
+ alert(res.data.message)
+ }
+
+ }).catch((error) => {
+ setLoading(false);
+ console.warn('Not good man :( Getall_Sequence_Of_Session = ', error);
+ setGetall_Sequence_Of_Session_api("false");
+ alert("Impossible de récuperer la liste des séquences")
+ //setmyApimyApiMessage("")
+ })
+ }
+
+
const [addOneParticipant, setaddOneParticipant] = useState();
function submenu_add_one_participant() {
@@ -5844,8 +6199,246 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
Dialog_2_handleClose_buton();
handleClick_edit_session_From_Line(session_selected_row_id);
+
+ Getall_Sequence_Of_Session(selected_session_id);
}
+ const [p_detail_sequence_title, setp_detail_sequence_title] = useState();
+ const [p_detail_sequence_comment, setp_detail_sequence_comment] = useState();
+ const [sequence_startDate, setsequence_startDate] = useState(new Date());
+ const [sequence_endDate, setsequence_endDate] = useState(new Date());
+
+
+ const [selected_detail_sequence_title, setselected_detail_sequence_title] = useState();
+ const [selected_detail_sequence_comment, setselected_detail_sequence_comment] = useState();
+ const [selected_sequence_startDate, setselected_sequence_startDate] = useState(new Date());
+ const [selected_sequence_endDate, setselected_sequence_endDate] = useState(new Date());
+
+
+ const [Dialog_seq_1_message, setDialog_seq_1_message] = React.useState(false);
+ const [Dialog_seq_1_open, setDialog_seq_1_open] = React.useState(false);
+
+ function Close_Dialog_Detail_seq_open() {
+ setDialog_seq_1_open(false);
+ }
+
+ function Dialog_1_handle_change_participant_session(message) {
+ setDialog_seq_1_message(message);
+ setDialog_seq_1_open(true);
+ }
+
+ const Dialog_seq_1_handleClose = () => {
+ //alert(" Utiliser le bouton 'fermer' ");
+ //setOpen(false);
+ };
+
+ const Dialog_seq_1_handleClose_buton = () => {
+ setDialog_seq_1_open(false);
+ };
+
+
+ function submenu_add_one_sequence() {
+ setDialog_seq_1_open(true);
+ }
+
+ const [Add_One_Sequence_Session_api, setAdd_One_Sequence_Session_api] = useState();
+ const [Add_One_Sequence_Session_message, setAdd_One_Sequence_Session_message] = useState();
+ const [Add_One_Sequence_Session_result, setAdd_One_Sequence_Session_result] = useState();
+ const Add_One_Sequence_Session = event => {
+
+ var new_title = p_detail_sequence_title;
+ var new_start_date = moment(sequence_startDate).format("DD/MM/YYYY HH:mm");
+ var new_end_date = moment(sequence_endDate).format("DD/MM/YYYY HH:mm");
+
+ var form = new FormData();
+
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("session_id", selected_session_id);
+ form.append("sequence_title", new_title);
+ form.append("sequence_start", new_start_date);
+ form.append("sequence_end", new_end_date);
+
+ //console.log(" form == ", form);
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Session_Sequence/";
+
+ setLoading(true);
+ axios.post(myurl, form).then(res => {
+ //console.log(" In Add_One_Sequence_Session res.data.status = " + res.data.status);
+ //console.log(" In Add_One_Sequence_Session res.data.message r_class = " + res.data.message);
+
+ setLoading(false);
+ if (String(res.data.status) === String("true")) {
+ setAdd_One_Sequence_Session_api("true");
+ setAdd_One_Sequence_Session_result(res.data.message);
+
+ Getall_Sequence_Of_Session(selected_session_id);
+
+ setp_detail_sequence_title();
+ setp_detail_sequence_comment();
+ setsequence_startDate();
+ setsequence_endDate();
+
+
+
+ alert(res.data.message);
+ Close_Dialog_Detail_seq_open();
+ }
+ else {
+ setAdd_One_Sequence_Session_api("false");
+ setAdd_One_Sequence_Session_message(res.data.message);
+ alert(res.data.message);
+ }
+
+ }).catch((error) => {
+
+
+ setLoading(false);
+ console.warn('UpdateStagiaireData : Not good man :( Add_One_Sequence_Session = ' + error);
+ setAdd_One_Sequence_Session_api("false");
+ alert(" Impossible d'ajouter la séquence");
+ })
+ }
+
+
+
+ const [Delete_Sequence_Session_Data_api, setDelete_Sequence_Session_Data_api] = useState();
+ const [Delete_Sequence_Session_Data_message, setDelete_Sequence_Session_Data_message] = useState();
+ const [Delete_Sequence_Session_Data_result, setDelete_Sequence_Session_Data_result] = useState();
+ function Delete_Sequence_Session_Data(local_seq_id) {
+
+
+ var form = new FormData();
+
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("_id", local_seq_id);
+
+
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_Given_Session_Sequence/";
+ setLoading(true);
+
+ axios.post(myurl, form).then(res => {
+ //console.log(" In Delete_Sequence_Session_Data res.data.status = " + res.data.status);
+ //console.log(" In Delete_Sequence_Session_Data res.data.message r_class = " + res.data.message);
+
+ setLoading(false);
+
+ if (String(res.data.status) === String("true")) {
+ setDelete_Sequence_Session_Data_api("true");
+ setDelete_Sequence_Session_Data_result(res.data.message);
+
+ Getall_Sequence_Of_Session(selected_session_id);
+
+ alert(res.data.message)
+ }
+ else {
+ setDelete_Sequence_Session_Data_api("false");
+ setDelete_Sequence_Session_Data_message(res.data.message);
+ setretval_ch("-1");
+ alert(res.data.message);
+
+ }
+
+ }).catch((error) => {
+ setLoading(false);
+ console.warn('Delete_Sequence_Session_Data : Not good man :( mysearchtext = ' + error);
+ setDelete_Sequence_Session_Data_api("false");
+ setretval_ch("-1");
+ alert(" Impossible de supprimer la sequence");
+ })
+ }
+
+
+ const [display_detail_sequence, setdisplay_detail_sequence] = useState();
+ const [selected_sequence_id, setselected_sequence_id] = useState();
+
+
+
+ const [Getall_List_Sequence_Ressource_api, setGetall_List_Sequence_Ressource_api] = useState();
+ const [Getall_List_Sequence_Ressource_message, setGetall_List_Sequence_Ressource_message] = useState();
+ const [Getall_List_Sequence_Ressource_result, setGetall_List_Sequence_Ressource_result] = useState([]);
+ function Getall_List_Sequence_Ressource(local_sequence_id) {
+
+ var form = new FormData();
+
+
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("sequence_session_id", local_sequence_id);
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Sequence_Ressource_Affectation/";
+
+ setLoading(true);
+
+
+ axios.post(myurl, form).then(res => {
+
+ setLoading(false);
+ if (String(res.data.status) === String("true")) {
+ //console.log(" In Getall_List_Sequence_Ressource res.data.status = " + res.data.status);
+ //console.log(" In Getall_List_Sequence_Ressource res.data.message r_class = " + res.data.message);
+ setGetall_List_Sequence_Ressource_api("true");
+ setGetall_List_Sequence_Ressource_result(res.data.message);
+
+ }
+ else {
+ setGetall_List_Sequence_Ressource_api("false");
+ setGetall_List_Sequence_Ressource_message(res.data.message);
+ alert(res.data.message)
+ }
+
+ }).catch((error) => {
+ setLoading(false);
+ console.warn('Not good man :( Getall_List_Sequence_Ressource = ', error);
+ setGetall_List_Sequence_Ressource_api("false");
+ alert("Impossible de récuperer la liste des ressources de la sequence")
+ //setmyApimyApiMessage("")
+ })
+ }
+
+
+ function submenu_add_one_Ressource() {
+ setDialog_seq_ressource_1_open(true);
+ }
+
+
+
+ const [Dialog_seq_ressource_1_message, setDialog_seq_ressource_1_message] = React.useState(false);
+ const [Dialog_seq_ressource_1_open, setDialog_seq_ressource_1_open] = React.useState(false);
+
+ function Close_Dialog_Detail_seq_open() {
+ setDialog_seq_ressource_1_open(false);
+ }
+
+ function Dialog_1_handle_change_participant_session(message) {
+ setDialog_seq_ressource_1_message(message);
+ setDialog_seq_ressource_1_open(true);
+ }
+
+ const Dialog_seq_ressource_1_handleClose = () => {
+ //alert(" Utiliser le bouton 'fermer' ");
+ //setOpen(false);
+ };
+
+ const Dialog_seq_ressource_1_handleClose_buton = () => {
+ setDialog_seq_ressource_1_open(false);
+ };
+
+
+ function submenu_add_one_sequence() {
+ setDialog_seq_ressource_1_open(true);
+ }
+
+
+
+
+ const [Dialog_seq_ressource_1_selected_type_ressource, setDialog_seq_ressource_1_selected_type_ressource] = React.useState();
+ const [Dialog_seq_ressource_1_selected_ressource_id, setDialog_seq_ressource_1_selected_ressource_id] = React.useState();
+ const [Dialog_seq_ressource_1_selected_ressource_poste, setDialog_seq_ressource_1_selected_ressource_poste] = React.useState();
+
return (
@@ -6019,6 +6612,286 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
+
+
+
+
+
+
Vos sessions de formation
@@ -6303,7 +7176,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
etape: JSON.parse(item).session_etape,
formateur: JSON.parse(item).formateur,
nb_participant: JSON.parse(item).nb_participant,
- title: JSON.parse(item).title,
+ title: JSON.parse(item).titre,
domaine: JSON.parse(item).domaine,
taux_remplissage: JSON.parse(item).taux_remplissage,
nb_inscrit: JSON.parse(item).nb_inscrit,
@@ -6324,6 +7197,9 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
setaddOneSession("0");
setEdite_session("0");
//handleClick_edit_session_From_Line(newSelectionModel.row.id);
+
+ setselected_session_id(newSelectionModel.row._id);
+
setsession_selected_row_id(newSelectionModel.row.id);
setDialog_2_message(String(JSON.parse(rowss[newSelectionModel.row.id]).title));
@@ -6375,34 +7251,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
}
}}
- /*getRowClassName={(params) => {
- console.log(" params.row.etape = ", params.row.etape);
- if (String(params.row.etape) === "-1") {
- console.log("annule");
- return 'line--etape--annule';
- }
- if (String(params.row.etape) === "0") {
- console.log("projet - red");
- return 'line--etape--projet';
- }
- if (String(params.row.etape) === "1") {
- console.log("planification - yellow");
- return 'line--etape--planification';
- }
- if (String(params.row.etape) === "2") {
- console.log("planifie");
- return 'line--etape--planifie';
- }
- if (String(params.row.etape) === "3") {
- console.log("termine - orange");
- return 'line--etape--termine';
- }
- if (String(params.row.etape) === "4") {
- console.log("facture");
- return 'line--etape--facture';
- }
- }}*/
/>
@@ -6527,6 +7376,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
{selected_code_session && String(selected_code_session).length > 0 &&
+
@@ -8014,6 +8864,273 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
}
+ {String(submenu) === String("sequence_session") &&
+
+
Gestion sequence sessionn
+
+
+
+
+
+
+
+
+
+ {
+ setselectionModel_sequence(newSelectionModel);
+ /*if (newSelectionModel.length === 1)
+ handleClick_edit_session_From_Line(newSelectionModel);*/
+ if (newSelectionModel.length !== 1) {
+
+ }
+ }}
+ selectionModel={selectionModel}
+
+ localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
+ rows={Getall_Sequence_Of_Session_result.map((item, index) => (
+ {
+ id: index,
+
+ _id: JSON.parse(item)._id,
+ sequence_start: JSON.parse(item).sequence_start,
+ sequence_end: JSON.parse(item).sequence_end,
+ session_id: JSON.parse(item).session_id,
+ sequence_title: JSON.parse(item).sequence_title,
+
+
+ }
+ ))}
+
+ columns={columns_sequence}
+ pageSize={10}
+ className="datagridclass"
+
+ onRowDoubleClick={(newSelectionModel) => {
+
+
+ }}
+
+
+
+ rowsPerPageOptions={[10]}
+ disableSelectionOnClick
+ components={{
+ Toolbar: GridToolbar,
+ }}
+ sx={datagridSx}
+ getCellClassName={(params) => {
+ //field === 'distantiel'
+ if (params.field === 'distantiel' && String(params.value) === "1") {
+ return 'cell--distantiel';
+ }
+ if (params.field === "presentiel" && String(params.value) == "1") {
+ return 'cell--presentiel';
+ }
+
+
+ //field === "etape"
+ if (params.field === "etape" && String(params.value) == "0") {
+ return 'cell--etape--projet';
+ }
+
+ if (params.field === "etape" && String(params.value) == "1") {
+ return 'cell--etape--planification';
+ }
+
+ if (params.field === "etape" && String(params.value) == "2") {
+ return 'cell--etape--planifie';
+ }
+
+ if (params.field === "etape" && String(params.value) == "3") {
+ return 'cell--etape--termine';
+ }
+
+ if (params.field === "etape" && String(params.value) == "4") {
+ return 'cell--etape--facture';
+ }
+
+ if (params.field === "etape" && String(params.value) == "-1") {
+ return 'cell--etape--annule';
+ }
+
+ }}
+
+
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String(display_detail_sequence) === "1" &&
+
+
Titre
+
+
+
+
Debut
+
+
+
+
Fin
+
+
+
+
+
+
+
+
+
+
+ {
+ setselectionModel_sequence(newSelectionModel);
+ /*if (newSelectionModel.length === 1)
+ handleClick_edit_session_From_Line(newSelectionModel);*/
+ if (newSelectionModel.length !== 1) {
+
+ }
+ }}
+ selectionModel={selectionModel}
+
+ localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
+ rows={Getall_List_Sequence_Ressource_result.map((item, index) => (
+ {
+ id: index,
+ _id: JSON.parse(item)._id,
+ related_target_collection_id: JSON.parse(item).related_target_collection_id,
+ related_target_collection: JSON.parse(item).related_target_collection,
+ type_ressource: JSON.parse(item).related_target_collection_object,
+ related_target_collection_object: JSON.parse(item).related_target_collection_object,
+ related_target_collection_id_nom: JSON.parse(item).related_target_collection_id_nom,
+ poste: JSON.parse(item).poste,
+ }
+ ))}
+
+ columns={columns_sequence_ressources_affectation}
+ pageSize={10}
+ className="datagridclass"
+
+ onRowDoubleClick={(newSelectionModel) => {
+
+
+ }}
+
+
+
+ rowsPerPageOptions={[10]}
+ disableSelectionOnClick
+ components={{
+ Toolbar: GridToolbar,
+ }}
+ sx={datagridSx}
+
+
+
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
}
+
+
}
+
{String(submenu) === String("preinscrit") &&