From f97248e89fc6e8ed501ce8b609853551d15a89a0 Mon Sep 17 00:00:00 2001 From: cherif Date: Sun, 1 Sep 2024 20:00:28 +0200 Subject: [PATCH] 01/09/2024 - 20:00 --- src/components/DisplayPartnerSession.js | 30 +++++++++++++++---- .../Module_Session_Planification.js | 12 ++++++-- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 2b2078d..ee61628 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -481,7 +481,25 @@ const DisplayPartnerSession = (props) => { { field: 'employeur', headerName: 'Employeur', minWidth: 150, flex: 1, maxWidth: 200, hide: true, editable: true, renderCell: (params) => , }, { field: 'opco', headerName: 'Centre Opco', minWidth: 100, flex: 1, maxWidth: 150, hide: true, editable: true }, - { field: 'modefinancement', headerName: 'Financement', minWidth: 100, flex: 1, maxWidth: 150, hide: true, editable: true }, + { + field: 'modefinancement', headerName: 'Financement', minWidth: 100, flex: 1, maxWidth: 150, hide: true, editable: true, + renderCell: (cellValues) => { + return ( + +
+ {New_Financement && New_Financement.length > 0 && cellValues.row.modefinancement && + + } + +
+ + ); + }, + }, { field: 'amount', headerName: 'Montant Formation', minWidth: 100, flex: 1, maxWidth: 150, type: 'number', flex: 1, editable: true, renderCell: (params) => , }, { field: "update", headerName: 'Mise à jour', @@ -1410,7 +1428,7 @@ const DisplayPartnerSession = (props) => { if (String(res.data.status) === String("true")) { //console.log(" In Getall_TrainingSession res.data.status = " + res.data.status); - // console.log(" In Getall_TrainingSession res.data.message r_class = " + res.data.message); + // console.log(" In Getall_TrainingSession res.data.message r_class = " + res.data.message); setGetall_TrainingSession_api("true"); setGetall_TrainingSession_result(res.data.message); setRows(res.data.message); @@ -11220,7 +11238,7 @@ const DisplayPartnerSession = (props) => { const [selected_row_data_json, setselected_row_data_json] = useState([]); - + const New_Financement = [ { value: 'cpf', @@ -17246,7 +17264,7 @@ const DisplayPartnerSession = (props) => { options={New_Financement} onChange={(event, value) => { if (value && value.value) { - setp_one_detail_modefinancement(value.value); + setp_one_detail_modefinancement(value.value); } else { setp_one_detail_modefinancement(""); @@ -18061,7 +18079,7 @@ const DisplayPartnerSession = (props) => { /> - +
Mode Financement
@@ -18090,7 +18108,7 @@ const DisplayPartnerSession = (props) => { /> - +
diff --git a/src/components/Module_Session_Planification.js b/src/components/Module_Session_Planification.js index d6d6a07..67c435a 100644 --- a/src/components/Module_Session_Planification.js +++ b/src/components/Module_Session_Planification.js @@ -857,6 +857,8 @@ const Module_Session_Planification = (props) => { } + setactionmass_sequence_val(""); + } @@ -957,7 +959,9 @@ const Module_Session_Planification = (props) => { setDialog_seq_ressource_1_selected_type_ressource(""); setDialog_seq_ressource_1_selected_ressource_id(""); setDialog_seq_ressource_1_selected_ressource_poste(""); - + setAdd_One_Sequence_Session_mass(); + settab_selected_sequence_id([]); + setselectionModel_sequence([]); alert(res.data.message); Dialog_seq_ressource_1_handleClose_buton(); } @@ -1378,6 +1382,7 @@ const Module_Session_Planification = (props) => { setAdd_One_Sequence_Session_mass(); settab_selected_sequence_id([]); + setselectionModel_sequence([]); alert(res.data.message); Dialog_seq_ressource_1_handleClose_buton(); @@ -5870,6 +5875,7 @@ const Module_Session_Planification = (props) => { {selectionModel_sequence && selectionModel_sequence.length > 1 &&
+