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 (
+