From 4083518ab378915189077ba637505b7910f116c4 Mon Sep 17 00:00:00 2001 From: Cherif Date: Fri, 6 Jun 2025 20:44:20 +0200 Subject: [PATCH] 06/06/2025 - 20h --- src/components/DisplayPartnerSession.js | 820 ++------ src/components/DisplayPartnerStagiaires.js | 2 +- .../DisplayPartnerTrainingsPagination.js | 1 - src/components/Employes.js | 4 +- src/components/Ent_Intranet.js | 18 +- .../Ent_Student_Affichage_Ftion_Grid.js | 480 +++++ src/components/Intranet_Mes_Stagiaires.js | 112 +- src/components/Jurys.js | 14 +- .../Module_Connexion_Ent_Student.js | 5 +- .../Module_Connexion_Intranet_Client.js | 3 +- src/components/Module_Ent_Mes_Formations.js | 1831 +++++++++++++++-- src/components/New_C_Formation_2025.js | 6 +- src/components/Student_Account.js | 94 +- .../new_detail_formation_2025.js | 4 +- .../new_s_detail_formation_2025.css | 2 +- .../new_marketplace_2025.js | 3 - .../_module_ent_mes_formations.scss | 262 ++- 17 files changed, 2751 insertions(+), 910 deletions(-) create mode 100644 src/components/Ent_Student_Affichage_Ftion_Grid.js diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index c36f774..9a1d647 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -83,8 +83,6 @@ import { GridToolbarFilterButton, GridToolbarDensitySelector, GridToolbarExportContainer, useGridApiContext, gridFilteredSortedRowIdsSelector, gridVisibleColumnFieldsSelector, - GridValueGetterParams, - GridPreferencePanelsValue, } from '@mui/x-data-grid'; import * as XLSX from 'xlsx'; @@ -119,7 +117,7 @@ import Timeline, { import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos'; import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew'; -import ExitToAppIcon from '@mui/icons-material/ExitToApp'; + import randomColor from "randomcolor"; @@ -186,7 +184,9 @@ const DisplayPartnerSession = (props) => { const [selectedfilt3, setselectedfilt3] = useState(""); const [reftrainingtoupdate, setreftrainingtoupdate] = useState(); const [externalcodetraining_toupdate, setexternalcodetraining_toupdate] = useState(); - const [updatetraining, setupdatetraining] = useState(false); + + + const [is_recherche, setis_recherche] = useState("0"); const [selectedtraining, setselectedtraining] = useState([]) @@ -250,8 +250,43 @@ const DisplayPartnerSession = (props) => { const ITEM_HEIGHT_PROMO = 48; + const ITEM_HEIGHT = 48; + + const [anchorEl_promo, setanchorEl_promo] = React.useState(null); + const [anchorEl, setAnchorEl] = React.useState(null); + const open_promo = Boolean(anchorEl_promo); + const open = Boolean(anchorEl); + + const options_menu_vertical_promotion = [ + 'Archiver/Désarch.', + 'Supprimer', + ]; + + const options_menu_vertical = [ + 'Renvoyer Conf.', + 'Annuler Insc.', + ]; + + + + const handleClick_option_button_vertical_promo = (event) => { + setanchorEl_promo(event.currentTarget); + }; + const handleClick_option_button_vertical = (event) => { + setAnchorEl(event.currentTarget); + }; + + + const handleClose_option_button_vertical_promo = (event, value) => { + setanchorEl_promo(null); + }; + const handleClose_option_button_vertical = (event, value) => { + setAnchorEl(null); + }; + + const columns = [ { field: 'id', headerName: 'id', hide: true, disableExport: true, }, @@ -320,6 +355,8 @@ const DisplayPartnerSession = (props) => { }, }, + + { field: 'class_external_code', headerName: 'Code Formation', align: "center", hideable: true, flex: 1, hide: true, minWidth: 150, renderCell: (params) => , }, { field: 'date_debut', headerName: 'Debut', hide: false, minWidth: 150, renderCell: (params) => , }, { field: 'date_fin', headerName: 'Fin', minWidth: 150, renderCell: (params) => , }, @@ -341,7 +378,6 @@ const DisplayPartnerSession = (props) => { }, - { field: 'formateur', headerName: 'Formateur', minWidth: datagrid_columns_size_model1, hide: true, hideable: true, renderCell: (params) => , }, { field: 'nb_participant', headerName: 'Nb Parti.', minWidth: datagrid_columns_size_model2, align: "center", hide: false, renderCell: (params) => , }, { @@ -380,136 +416,128 @@ const DisplayPartnerSession = (props) => { { field: 'qty_in_quotation', headerName: 'Place Non validé ', with: 150, align: "center", hide: false, renderCell: (params) => , }, { field: 'qty_in_quotation_list_quotation', headerName: 'List Devis ', with: 150, align: "center", hide: false, renderCell: (params) => , }, - { field: 'site_formation_nom', headerName: 'Site Ftion', with: 150, align: "center", hide: false, renderCell: (params) => , }, + { field: 'site_formation_nom', headerName: 'Site Ftion', with: 150, align: "center", hide: true, renderCell: (params) => , }, { field: 'invoiced_statut', headerName: 'Facturé', minWidth: 100, flex: 1, maxWidth: 150, hide: false, editable: false, renderCell: (cellValues) => { return ( -
{String(cellValues.row.invoiced_statut) === "2" && "Oui"} - {String(cellValues.row.invoiced_statut) === "1" && "Part."} - {String(cellValues.row.invoiced_statut) !== "1" && String(cellValues.row.invoiced_statut) !== "2" && "Non"}
- ); }, }, { field: 'duration', headerName: 'Durée', minWidth: datagrid_columns_size_model2, align: "center", hide: true, renderCell: (params) => , }, - { - field: "Detail", headerName: 'Voir détail', disableExport: true, - renderCell: (cellValues) => { - return ( + /* { + field: "Detail", headerName: 'Voir détail', disableExport: true, + renderCell: (cellValues) => { + return ( + + ); + } + },*/ - - - ); - } - }, - - { - field: "delete", headerName: 'Supprimer', disableExport: true, - renderCell: (cellValues) => { - return ( - - { - //handleClick_delete_Session_Formation(event, cellValues); - }} - > - - - } - modal - nested - position="center center" - > - {close => ( -
- -
MySy Information
-
- {' '} - - En confirmant cette opération, la session de formation sera définitivement supprimée.
- -
-
-
- - -
-
- -
-
-
- )} -
- - - ); - } - }, + /* { + field: "delete", headerName: 'Supprimer', disableExport: true, + renderCell: (cellValues) => { + return ( + + { + //handleClick_delete_Session_Formation(event, cellValues); + }} + > + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + En confirmant cette opération, la promotion de formation sera définitivement supprimée.
+ +
+
+
+ + +
+
+ +
+
+
+ )} +
+ + + ); + } + },*/ { field: 'bton_vertif', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", renderCell: (cellValues) => { return (
+
); }, }, + ] const [promo_archive_status, setpromo_archive_status] = React.useState(''); - const options_menu_vertical_promotion = [ - 'Editer', - 'Archiver/Désarchiver', - 'Supprimer', - ]; - - - const handleClick_option_button_vertical_promo = (event) => { - setanchorEl_promo(event.currentTarget); - }; - const handleClose_option_button_vertical_promo = (event, value) => { - setanchorEl_promo(null); - - }; const [working_cellValues_promo, setworking_cellValues_promo] = useState(false); const [dialogOpen_supp_promo, setdialogOpen_supp_promo] = useState(false); const Dialog_menuitem_close_supp_prmo = () => { @@ -1280,24 +1284,9 @@ const DisplayPartnerSession = (props) => { ]; - const options_menu_vertical = [ - '', - 'Renvoyer Conf.', - 'Annuler Insc.', - ]; - const ITEM_HEIGHT = 48; - const [anchorEl, setAnchorEl] = React.useState(null); - const open = Boolean(anchorEl); - const handleClick_option_button_vertical = (event) => { - setAnchorEl(event.currentTarget); - }; - const handleClose_option_button_vertical = (event, value) => { - setAnchorEl(null); - - }; const [working_cellValues, setworking_cellValues] = useState(false); const [dialogOpen_supp, setdialogOpen_supp] = useState(false); const Dialog_menuitem_close_supp = () => { @@ -1425,133 +1414,7 @@ const DisplayPartnerSession = (props) => { }, - /* { - field: "sendmail", headerName: 'Email Confirmation', - renderCell: (cellValues) => { - return ( - - - - ); - } - },*/ - /* { - field: "Detail", headerName: 'Voir détail', - renderCell: (cellValues) => { - return ( - - - - ); - } - },*/ - /* { - field: "Imprimer", headerName: 'Imprimer detail', hide: true, - renderCell: (cellValues) => { - return ( - - - - ); - } - },*/ - /* { - field: "annulation", headerName: 'Annulation', - renderCell: (cellValues) => { - return ( - - { - handleClick_refuse(event, cellValues); - }} - > - - - } - modal - nested - position="center center" - > - {close => ( -
- -
MySy Information
-
- {' '} - - En confirmant cette opération, l'inscription du stagiaire sera définitivement annulée.
- Il (le stagiaire) sera automatiquement notifié par email de l'annulation de son inscription.
-
Motif du annulation :
-