From 3353e9df618b1fe75de49853a088773ca0f90ebe Mon Sep 17 00:00:00 2001 From: cherif Date: Wed, 25 Dec 2024 14:17:48 +0100 Subject: [PATCH] 25/12/2024 - 14h --- .../DisplayPartnerTrainingsPagination.js | 14 +- src/components/Module_Editique.js | 2 +- src/components/Modules_Mes_Documents.js | 262 +++++++++++++++--- 3 files changed, 240 insertions(+), 38 deletions(-) diff --git a/src/components/DisplayPartnerTrainingsPagination.js b/src/components/DisplayPartnerTrainingsPagination.js index 92a704b..a0f2582 100644 --- a/src/components/DisplayPartnerTrainingsPagination.js +++ b/src/components/DisplayPartnerTrainingsPagination.js @@ -760,7 +760,13 @@ const DistplayPartnerTraningsPage = (props) => { aria-controls={open ? 'long-menu' : undefined} aria-expanded={open ? 'true' : undefined} aria-haspopup="true" - onClick={handleClick_option_button_vertical} + // onClick={handleClick_option_button_vertical} + onClick={(e) => { + handleClick_option_button_vertical(e); + setworking_cellValues(cellValues); + + }} + > @@ -796,7 +802,7 @@ const DistplayPartnerTraningsPage = (props) => { } else if (option && String(option) === "Editer") { - handleClick(e, cellValues); + handleClick(e, working_cellValues); } else if (option && String(option) === "Pub. E-Learning") { @@ -804,7 +810,7 @@ const DistplayPartnerTraningsPage = (props) => { } else if (option && String(option) === "Visualiser") { - Visualiser(e, cellValues); + Visualiser(e, working_cellValues); } }} @@ -963,6 +969,8 @@ const DistplayPartnerTraningsPage = (props) => { }, ] + const [working_cellValues, setworking_cellValues] = useState(false); + const [dialogOpen_supp, setdialogOpen_supp] = useState(false); const Dialog_menuitem_close_supp = () => { setdialogOpen_supp(false) diff --git a/src/components/Module_Editique.js b/src/components/Module_Editique.js index 989a426..8c52a34 100644 --- a/src/components/Module_Editique.js +++ b/src/components/Module_Editique.js @@ -1552,7 +1552,7 @@ const Module_Editique = (props) => { - {(String(selected_convention_type) === "email" || String(selected_convention_type) === "pdf") &&
Choisir une convention + {(String(selected_convention_type) === "email" || String(selected_convention_type) === "pdf") &&
Choisir une convocation { const columns = [ - { field: '_id', headerName: '_id', Width: 100, hide: false, editable: false, }, - { field: 'id', headerName: 'id',Width: 100, hide: false, editable: false, }, - { field: 'file_extention', headerName: 'file_extention', Width: 100, hide: false, editable: false, }, + { field: '_id', headerName: '_id', hide: true, editable: false }, + { field: 'id', headerName: 'id', hide: true, editable: false }, + { field: 'file_extention', hide: true, editable: false }, { field: 'file_name', headerName: 'file_name', hide: true, disableExport: true }, - { field: 'file_business_object', headerName: 'file_business_object', minWidth: 200, flex: 1, hide: false, editable: false, }, - { field: 'object_owner_collection', headerName: 'object_owner_collection', minWidth: 200,flex: 1, hide: false, editable: false }, - { field: 'type_document', headerName: 'type_document', minWidth: 200,flex: 1, hide: false, editable: false }, { - field: 'bton_vertif', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", + field: 'created_date', headerName: 'Date Creation', Width: 100, flex: 1, hide: false, editable: false, renderCell: (cellValues) => { + return ( + + ) + }, + + }, + { field: 'file_business_object', headerName: 'file_business_object', minWidth: 200, flex: 1, hide: false, editable: false, }, + { field: 'object_owner_collection', headerName: 'object_owner_collection', minWidth: 200, flex: 1, hide: false, editable: false }, + { field: 'client_raison_sociale', headerName: 'client_raison_sociale', minWidth: 200, flex: 1, hide: false, editable: false }, + { field: 'client_nom', headerName: 'client_nom', minWidth: 150, flex: 1, hide: false, editable: false }, + { + field: 'type_document', headerName: 'type_document', minWidth: 100, flex: 1, hide: false, editable: false, + renderCell: (cellValues) => { + return ( + + ) + }, + + }, + { + field: 'bton_vertif', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", + renderCell: (cellValues,) => { return (
- {p_filtre1 && + {p_filtre1 && String(p_filtre1) !== "filter_type_document" && { /> } + + {p_filtre1 && String(p_filtre1) === "filter_type_document" && + { + if (value && value.value) { + setp_filtre1_value(value.value); + } else { + setp_filtre1_value(""); + } + + }} + + renderInput={(params) => + } + /> + } +
+ {p_filtre1 &&
@@ -763,7 +907,6 @@ const Modules_Mes_Documents = (props) => { onChange={(event, value) => { if (value && value.value) { setp_filtre2(value.value); - } }} @@ -776,7 +919,7 @@ const Modules_Mes_Documents = (props) => { />}
- {String(p_filtre2).length > 2 && + {String(p_filtre2).length > 2 && String(p_filtre2) !== "filter_type_document" && { }} />} + + {String(p_filtre2).length > 2 && String(p_filtre2) === "filter_type_document" && + { + if (value && value.value) { + setp_filtre2_value(value.value); + } else { + setp_filtre2_value(""); + } + + }} + + renderInput={(params) => + } + />} +
{String(p_filtre2).length > 2 &&
@@ -859,7 +1026,8 @@ const Modules_Mes_Documents = (props) => { />}
- {String(p_filtre3).length > 2 && + + {String(p_filtre3).length > 2 && String(p_filtre3) !== "filter_type_document" && { }} />} + + {String(p_filtre3).length > 2 && String(p_filtre3) === "filter_type_document" && + { + if (value && value.value) { + setp_filtre3_value(value.value); + } else { + setp_filtre3_value(""); + } + + }} + + renderInput={(params) => + } + />} +
{String(p_filtre2).length > 2 &&
@@ -916,7 +1108,7 @@ const Modules_Mes_Documents = (props) => {
-
@@ -935,7 +1127,7 @@ const Modules_Mes_Documents = (props) => {
- +
  @@ -1019,7 +1211,7 @@ const Modules_Mes_Documents = (props) => { onRowDoubleClick={(newSelectionModel) => { setgridline_id(newSelectionModel.row.id); - // setp_detail_header_client_nom_id(newSelectionModel.row.order_header_client_id); + // setp_detail_header_client_nom_id(newSelectionModel.row.order_header_client_id); // handleClick_edit_invoice_From_Line(newSelectionModel.row.id); } } @@ -1035,7 +1227,9 @@ const Modules_Mes_Documents = (props) => { object_owner_collection: JSON.parse(item).object_owner_collection, type_document: JSON.parse(item).type_document, file_extention: JSON.parse(item).file_extention, - + client_raison_sociale: JSON.parse(item).client_raison_sociale, + client_nom: JSON.parse(item).client_nom, + created_date: JSON.parse(item).created_date, } ))} @@ -1082,7 +1276,7 @@ const Modules_Mes_Documents = (props) => {
 
- {/*
+ {/*
{Get_List_Of_All_PJ_result &&