26/12/2024 - 17h
parent
8d526bfa4f
commit
41873af9db
|
@ -142,5 +142,12 @@
|
||||||
<priority>1.0000</priority>
|
<priority>1.0000</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>https://www.mysy-training.com/Display-Detail-Article/comment-utiliser-un-logiciel-de-gestion-de-centre-de-formation-pour-votre-accreditation-qualiopi-7a6</loc>
|
||||||
|
<lastmod>2024-12-26T11:35:41+00:00</lastmod>
|
||||||
|
<changefreq>daily</changefreq>
|
||||||
|
<priority>1.0000</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
|
||||||
</urlset>
|
</urlset>
|
|
@ -23,6 +23,7 @@ import { useLocation } from "react-router-dom";
|
||||||
import Intranet_Factures_Client from "./Intranet_Factures_Client";
|
import Intranet_Factures_Client from "./Intranet_Factures_Client";
|
||||||
import Intranet_Tous_Documents from "./Intranet_Tous_Documents";
|
import Intranet_Tous_Documents from "./Intranet_Tous_Documents";
|
||||||
import Modules_Mes_Documents from "./Modules_Mes_Documents";
|
import Modules_Mes_Documents from "./Modules_Mes_Documents";
|
||||||
|
import Intranet_Mes_Stagiaires from "./Intranet_Mes_Stagiaires";
|
||||||
|
|
||||||
function Account() {
|
function Account() {
|
||||||
const [menu, setmenu] = useState("affichage");
|
const [menu, setmenu] = useState("affichage");
|
||||||
|
@ -179,8 +180,8 @@ function Account() {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const displayProfil_Apprenant = () => {
|
const displayProfil_Stagiaires = () => {
|
||||||
setmenu("mes_apprenants");
|
setmenu("mes_stagiaires");
|
||||||
};
|
};
|
||||||
|
|
||||||
const displayProfil_Tout_Documents = () => {
|
const displayProfil_Tout_Documents = () => {
|
||||||
|
@ -393,22 +394,30 @@ function Account() {
|
||||||
{connected_user_data && connected_user_data.type &&
|
{connected_user_data && connected_user_data.type &&
|
||||||
String(connected_user_data.type) === "user" &&
|
String(connected_user_data.type) === "user" &&
|
||||||
<div>
|
<div>
|
||||||
<div className="sousmenu" onClick={displayPersoInfo}> INFORMATIONS PERSONNELLES</div>
|
{String(menu) !== "affichage" && <div className="sousmenu" onClick={displayPersoInfo}> INFORMATIONS PERSONNELLES</div>}
|
||||||
|
{String(menu) === "affichage" && <div className="sousmenu sousmenu_selected" onClick={displayPersoInfo}> INFORMATIONS PERSONNELLES</div>}
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
<div className="sousmenu" onClick={"displayProfil_Facture"}> CATALOGUE</div>
|
{/*{String(menu) !== "affichage" && <div className="sousmenu" onClick={"displayProfil_Facture"}> CATALOGUE</div>}
|
||||||
|
{String(menu) === "affichage" && <div className="sousmenu sousmenu_selected" onClick={"displayProfil_Facture"}> CATALOGUE</div>}
|
||||||
|
<hr className="my_hr" />*/}
|
||||||
|
{String(menu) !== "mes_stagiaires" && <div className="sousmenu" onClick={displayProfil_Stagiaires}> APPRENANTS</div>}
|
||||||
|
{String(menu) === "mes_stagiaires" && <div className="sousmenu sousmenu_selected" onClick={displayProfil_Stagiaires}> APPRENANTS</div>}
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
<div className="sousmenu" onClick={displayProfil_Apprenant}> APPRENANTS</div>
|
{String(menu) !== "mes_conventions" && <div className="sousmenu" onClick={displayProfil_Convention}> CONVENTIONS </div>}
|
||||||
|
{String(menu) === "mes_conventions" && <div className="sousmenu sousmenu_selected" onClick={displayProfil_Convention}> CONVENTIONS </div>}
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
<div className="sousmenu" onClick={displayProfil_Convention}> CONVENTIONS </div>
|
{String(menu) !== "mes_convocations" && <div className="sousmenu" onClick={displayProfil_Convocation}> CONVOCATION </div>}
|
||||||
|
{String(menu) === "mes_convocations" && <div className="sousmenu sousmenu_selected" onClick={displayProfil_Convocation}> CONVOCATION </div>}
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
<div className="sousmenu" onClick={displayProfil_Convocation}> CONVOCATION </div>
|
{String(menu) !== "mes_devis" && <div className="sousmenu" onClick={displayProfil_Devis}> DEVIS</div>}
|
||||||
|
{String(menu) === "mes_devis" && <div className="sousmenu sousmenu_selected" onClick={displayProfil_Devis}> DEVIS</div>}
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
<div className="sousmenu" onClick={displayProfil_Devis}> DEVIS</div>
|
{String(menu) !== "mes_factures" && <div className="sousmenu" onClick={displayProfil_Facture}> FACTURES</div>}
|
||||||
|
{String(menu) === "mes_factures" && <div className="sousmenu sousmenu_selected" onClick={displayProfil_Facture}> FACTURES</div>}
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
<div className="sousmenu" onClick={displayProfil_Facture}> FACTURES</div>
|
|
||||||
<hr className="my_hr" />
|
{String(menu) !== "modules_mes_documents" && <div className="sousmenu" onClick={displayProfil_Modules_Mes_Documents}> TOUS LES DOCUMENTS</div>}
|
||||||
|
{String(menu) === "modules_mes_documents" && <div className="sousmenu sousmenu_selected" onClick={displayProfil_Modules_Mes_Documents}> TOUS LES DOCUMENTS</div>}
|
||||||
<div className="sousmenu" onClick={displayProfil_Modules_Mes_Documents}> MODULE TOUS DOCUMENTS</div>
|
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
<div className="sousmenu" onClick={deletemyaccount}> SUPPRIMER MON COMPTE</div>
|
<div className="sousmenu" onClick={deletemyaccount}> SUPPRIMER MON COMPTE</div>
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
|
@ -463,21 +472,55 @@ function Account() {
|
||||||
partner_owner_recid={connected_user_data.partner_owner_recid}
|
partner_owner_recid={connected_user_data.partner_owner_recid}
|
||||||
/>*/}
|
/>*/}
|
||||||
|
|
||||||
|
|
||||||
{String(menu) === String("modules_mes_documents") && connected_user_data && connected_user_data.partner_owner_recid &&
|
{String(menu) === String("modules_mes_documents") && connected_user_data && connected_user_data.partner_owner_recid &&
|
||||||
connected_user_data.partner_client_id &&
|
connected_user_data.partner_client_id &&
|
||||||
<Modules_Mes_Documents partner_client_id={connected_user_data.partner_client_id}
|
<Modules_Mes_Documents
|
||||||
partner_owner_recid={connected_user_data.partner_owner_recid}
|
partner_client_id={connected_user_data.partner_client_id}
|
||||||
|
partner_owner_recid={""}
|
||||||
my_title={"MES DOCUMENTS"}
|
my_title={"MES DOCUMENTS"}
|
||||||
|
type_user_connected={"user_account"}
|
||||||
|
type_document={"all"}
|
||||||
/>}
|
/>}
|
||||||
|
|
||||||
{String(menu) === String("mes_devis") && connected_user_data && connected_user_data.partner_owner_recid &&
|
{String(menu) === String("mes_devis") && connected_user_data && connected_user_data.partner_owner_recid &&
|
||||||
connected_user_data.partner_client_id &&
|
connected_user_data.partner_client_id &&
|
||||||
<Modules_Mes_Documents partner_client_id={connected_user_data.partner_client_id}
|
<Modules_Mes_Documents partner_client_id={connected_user_data.partner_client_id}
|
||||||
partner_owner_recid={connected_user_data.partner_owner_recid}
|
partner_owner_recid={""}
|
||||||
my_title={"MES DEVIS"}
|
my_title={"MES DEVIS"}
|
||||||
type_document={"devis"}
|
type_document={"devis"}
|
||||||
|
type_user_connected={"user_account"}
|
||||||
/>}
|
/>}
|
||||||
|
|
||||||
|
{String(menu) === String("mes_conventions") && connected_user_data && connected_user_data.partner_owner_recid &&
|
||||||
|
connected_user_data.partner_client_id &&
|
||||||
|
<Modules_Mes_Documents partner_client_id={connected_user_data.partner_client_id}
|
||||||
|
partner_owner_recid={""}
|
||||||
|
my_title={"MES CONVENTIONS"}
|
||||||
|
type_document={"convention"}
|
||||||
|
type_user_connected={"user_account"}
|
||||||
|
/>}
|
||||||
|
|
||||||
|
|
||||||
|
{String(menu) === String("mes_convocations") && connected_user_data && connected_user_data.partner_owner_recid &&
|
||||||
|
connected_user_data.partner_client_id &&
|
||||||
|
<Modules_Mes_Documents partner_client_id={connected_user_data.partner_client_id}
|
||||||
|
partner_owner_recid={""}
|
||||||
|
my_title={"MES CONVOCATIONS"}
|
||||||
|
type_document={"convocation"}
|
||||||
|
type_user_connected={"user_account"}
|
||||||
|
/>}
|
||||||
|
|
||||||
|
|
||||||
|
{String(menu) === String("mes_stagiaires") && connected_user_data && connected_user_data.partner_owner_recid &&
|
||||||
|
connected_user_data.partner_client_id &&
|
||||||
|
<Intranet_Mes_Stagiaires partner_client_id={connected_user_data.partner_client_id}
|
||||||
|
partner_owner_recid={connected_user_data.partner_owner_recid}
|
||||||
|
|
||||||
|
/>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{String(menu) === String("mes_documents") && <Profil_Objectif />}
|
{String(menu) === String("mes_documents") && <Profil_Objectif />}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,49 @@ import {
|
||||||
import * as XLSX from 'xlsx';
|
import * as XLSX from 'xlsx';
|
||||||
|
|
||||||
|
|
||||||
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
|
import Paper from '@material-ui/core/Paper';
|
||||||
|
import Draggable from 'react-draggable';
|
||||||
|
import { IconButton } from '@material-ui/core';
|
||||||
|
import AutoFixHighOutlinedIcon from '@mui/icons-material/AutoFixHighOutlined';
|
||||||
|
import CancelPresentationIcon from '@mui/icons-material/CancelPresentation';
|
||||||
|
|
||||||
|
function PaperComponent(props) {
|
||||||
|
return (
|
||||||
|
<Draggable
|
||||||
|
handle="#draggable-dialog-title"
|
||||||
|
cancel={'[class*="MuiDialogContent-root"]'}
|
||||||
|
>
|
||||||
|
<Paper {...props} />
|
||||||
|
</Draggable>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const useStyles = makeStyles((theme) => ({
|
||||||
|
|
||||||
|
dialog: {
|
||||||
|
position: 'absolute',
|
||||||
|
// left: 10,
|
||||||
|
top: 400
|
||||||
|
},
|
||||||
|
|
||||||
|
paper: {
|
||||||
|
overflowY: 'unset',
|
||||||
|
},
|
||||||
|
customizedButton: {
|
||||||
|
position: 'absolute',
|
||||||
|
left: '98%',
|
||||||
|
top: '-3%',
|
||||||
|
backgroundColor: 'lightgray',
|
||||||
|
color: 'gray',
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
const DisplayPartnerStagiaires = (props) => {
|
const DisplayPartnerStagiaires = (props) => {
|
||||||
|
|
||||||
|
const classes = useStyles();
|
||||||
|
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const [submenu, setsubmenu] = useState("");
|
const [submenu, setsubmenu] = useState("");
|
||||||
const [rowss, setRows] = useState([]);
|
const [rowss, setRows] = useState([]);
|
||||||
|
@ -109,10 +151,10 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{ field: '_id', headerName: '_id', hide: true, editable: false, Width: 0, disableExport: true, },
|
{ field: '_id', headerName: '_id', hide: true, editable: false, Width: 0, disableExport: true, },
|
||||||
{ field: 'session_id', headerName: 'session_id', hide: true, editable: false, Width: 0 , disableExport: true,},
|
{ field: 'session_id', headerName: 'session_id', hide: true, editable: false, Width: 0, disableExport: true, },
|
||||||
{ field: 'id', headerName: 'id', hide: true, Width: 0 , disableExport: true,},
|
{ field: 'id', headerName: 'id', hide: true, Width: 0, disableExport: true, },
|
||||||
{ field: 'class_id', headerName: 'class_id', hide: true, Width: 0 , disableExport: true,},
|
{ field: 'class_id', headerName: 'class_id', hide: true, Width: 0, disableExport: true, },
|
||||||
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true, editable: false, Width: 0 , disableExport: true,},
|
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true, editable: false, Width: 0, disableExport: true, },
|
||||||
|
|
||||||
{ field: 'telephone', headerName: 'Téléphone', hide: true, editable: false, Width: 0 },
|
{ field: 'telephone', headerName: 'Téléphone', hide: true, editable: false, Width: 0 },
|
||||||
{ field: 'date_naissance', headerName: 'date_naissance', hide: true, editable: false, Width: 0 },
|
{ field: 'date_naissance', headerName: 'date_naissance', hide: true, editable: false, Width: 0 },
|
||||||
|
@ -2021,7 +2063,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
const list_menu_header_names = ['detail_session_class', 'detail_client_rattachement', 'detail_facture_client_rattachement', 'detail_financeur_rattachement', 'detail_nom', 'detail_status_inscript',
|
const list_menu_header_names = ['detail_session_class', 'detail_client_rattachement', 'detail_facture_client_rattachement', 'detail_financeur_rattachement', 'detail_nom', 'detail_status_inscript',
|
||||||
'detail_opco', 'detail_prenom', 'detail_mode_financement', 'detail_mail', 'detail_naissance', 'detail_tel', 'detail_adresse', 'detail_code_postal',
|
'detail_opco', 'detail_prenom', 'detail_mode_financement', 'detail_mail', 'detail_naissance', 'detail_tel', 'detail_adresse', 'detail_code_postal',
|
||||||
'detail_ville', 'detail_pays', 'certif_date', 'detail_cout', 'detail_mode_fin', 'detail_employeur', 'date_evaluation', 'certif_date',
|
'detail_ville', 'detail_pays', 'certif_date', 'detail_cout', 'detail_mode_fin', 'detail_employeur', 'date_evaluation', 'certif_date',
|
||||||
'note_eval', 'detail_type_apprenant', 'date_evaluation', 'detail_incr_date']
|
'note_eval', 'detail_type_apprenant', 'date_evaluation', 'detail_incr_date']
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -6554,115 +6596,115 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
setdisplay_stagiaire_with_alert(event.target.checked);
|
setdisplay_stagiaire_with_alert(event.target.checked);
|
||||||
};
|
};
|
||||||
|
|
||||||
// DEBUT EXPORT EXCEL DATAGRID
|
// DEBUT EXPORT EXCEL DATAGRID
|
||||||
|
|
||||||
function CustomToolbar(props) {
|
function CustomToolbar(props) {
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<GridToolbarContainer {...props}>
|
<GridToolbarContainer {...props}>
|
||||||
|
|
||||||
<GridToolbarColumnsButton />
|
<GridToolbarColumnsButton />
|
||||||
<GridToolbarFilterButton />
|
<GridToolbarFilterButton />
|
||||||
<GridToolbarDensitySelector
|
<GridToolbarDensitySelector
|
||||||
slotProps={{ tooltip: { title: 'Change density' } }}
|
slotProps={{ tooltip: { title: 'Change density' } }}
|
||||||
/>
|
/>
|
||||||
<Box sx={{ flexGrow: 1 }} />
|
<Box sx={{ flexGrow: 1 }} />
|
||||||
<ExportButton data_colums={props.data_colums} />
|
<ExportButton data_colums={props.data_colums} />
|
||||||
|
|
||||||
|
|
||||||
</GridToolbarContainer>
|
</GridToolbarContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getExcelData(apiRef) {
|
function getExcelData(apiRef) {
|
||||||
// Select rows and columns
|
// Select rows and columns
|
||||||
const filteredSortedRowIds = gridFilteredSortedRowIdsSelector(apiRef);
|
const filteredSortedRowIds = gridFilteredSortedRowIdsSelector(apiRef);
|
||||||
const visibleColumnsField = gridVisibleColumnFieldsSelector(apiRef);
|
const visibleColumnsField = gridVisibleColumnFieldsSelector(apiRef);
|
||||||
|
|
||||||
// Format the data. Here we only keep the value
|
// Format the data. Here we only keep the value
|
||||||
const data = filteredSortedRowIds.map((id) => {
|
const data = filteredSortedRowIds.map((id) => {
|
||||||
const row = {};
|
const row = {};
|
||||||
visibleColumnsField.forEach((field) => {
|
visibleColumnsField.forEach((field) => {
|
||||||
row[field] = apiRef.current.getCellParams(id, field).value;
|
row[field] = apiRef.current.getCellParams(id, field).value;
|
||||||
|
});
|
||||||
|
return row;
|
||||||
});
|
});
|
||||||
return row;
|
|
||||||
});
|
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function ExportButton(props) {
|
function ExportButton(props) {
|
||||||
return (
|
return (
|
||||||
<GridToolbarExportContainer {...props}>
|
<GridToolbarExportContainer {...props}>
|
||||||
<ExportMenuItem data_colums={props.data_colums} />
|
<ExportMenuItem data_colums={props.data_colums} />
|
||||||
</GridToolbarExportContainer>
|
</GridToolbarExportContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleExport(apiRef, data_colums) {
|
function handleExport(apiRef, data_colums) {
|
||||||
const data = getExcelData(apiRef);
|
const data = getExcelData(apiRef);
|
||||||
const visibleColumnsField = gridVisibleColumnFieldsSelector(apiRef);
|
const visibleColumnsField = gridVisibleColumnFieldsSelector(apiRef);
|
||||||
|
|
||||||
|
|
||||||
const local_config = {
|
|
||||||
keys: visibleColumnsField,
|
|
||||||
|
|
||||||
columnNames: data_colums.filter((mydata) => (mydata).disableExport !== true).map(function (mydata) {
|
const local_config = {
|
||||||
if (mydata.headerName && visibleColumnsField.includes(mydata.field)) {
|
keys: visibleColumnsField,
|
||||||
if (mydata.headerName) {
|
|
||||||
return mydata.headerName;
|
columnNames: data_colums.filter((mydata) => (mydata).disableExport !== true).map(function (mydata) {
|
||||||
|
if (mydata.headerName && visibleColumnsField.includes(mydata.field)) {
|
||||||
|
if (mydata.headerName) {
|
||||||
|
return mydata.headerName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}),
|
||||||
|
|
||||||
|
fileName: 'data_' + String(new Date().toJSON().slice(0, 10)).replaceAll("-", "_") + '.xlsx',
|
||||||
|
sheetName: 'Export_' + String(new Date().toJSON().slice(0, 10)).replaceAll("-", "_"),
|
||||||
|
};
|
||||||
|
|
||||||
|
local_config.columnNames = local_config.columnNames.filter(function (element) {
|
||||||
|
return element !== undefined;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
const rows = data.map((row) => {
|
||||||
|
const mRow = {};
|
||||||
|
for (const key of local_config.keys) {
|
||||||
|
mRow[key] = row[key];
|
||||||
}
|
}
|
||||||
|
return mRow;
|
||||||
|
});
|
||||||
|
|
||||||
}),
|
const worksheet = XLSX.utils.json_to_sheet(rows);
|
||||||
|
XLSX.utils.sheet_add_aoa(worksheet, [[...local_config.columnNames]], {
|
||||||
|
origin: 'A1',
|
||||||
|
});
|
||||||
|
|
||||||
fileName: 'data_' + String(new Date().toJSON().slice(0, 10)).replaceAll("-", "_") + '.xlsx',
|
const workbook = XLSX.utils.book_new();
|
||||||
sheetName: 'Export_' + String(new Date().toJSON().slice(0, 10)).replaceAll("-", "_"),
|
XLSX.utils.book_append_sheet(workbook, worksheet, local_config.sheetName);
|
||||||
};
|
XLSX.writeFile(workbook, local_config.fileName, { compression: true });
|
||||||
|
}
|
||||||
|
|
||||||
local_config.columnNames = local_config.columnNames.filter(function( element ) {
|
function ExportMenuItem(props) {
|
||||||
return element !== undefined;
|
const apiRef = useGridApiContext();
|
||||||
});
|
const { hideMenu } = props;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<MenuItem
|
||||||
|
onClick={() => {
|
||||||
|
handleExport(apiRef, props.data_colums);
|
||||||
|
// Hide the export menu after the export
|
||||||
|
hideMenu?.();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Export Excel
|
||||||
|
</MenuItem>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const rows = data.map((row) => {
|
// FIN EXPORT EXCEL DATAGRID
|
||||||
const mRow = {};
|
|
||||||
for (const key of local_config.keys) {
|
|
||||||
mRow[key] = row[key];
|
|
||||||
}
|
|
||||||
return mRow;
|
|
||||||
});
|
|
||||||
|
|
||||||
const worksheet = XLSX.utils.json_to_sheet(rows);
|
|
||||||
XLSX.utils.sheet_add_aoa(worksheet, [[...local_config.columnNames]], {
|
|
||||||
origin: 'A1',
|
|
||||||
});
|
|
||||||
|
|
||||||
const workbook = XLSX.utils.book_new();
|
|
||||||
XLSX.utils.book_append_sheet(workbook, worksheet, local_config.sheetName);
|
|
||||||
XLSX.writeFile(workbook, local_config.fileName, { compression: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
function ExportMenuItem(props) {
|
|
||||||
const apiRef = useGridApiContext();
|
|
||||||
const { hideMenu } = props;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<MenuItem
|
|
||||||
onClick={() => {
|
|
||||||
handleExport(apiRef, props.data_colums);
|
|
||||||
// Hide the export menu after the export
|
|
||||||
hideMenu?.();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Export Excel
|
|
||||||
</MenuItem>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// FIN EXPORT EXCEL DATAGRID
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="displaypartnerstagiaire">
|
<div className="displaypartnerstagiaire">
|
||||||
|
@ -6671,24 +6713,37 @@ function ExportMenuItem(props) {
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ /********* Dialog redaction email */}
|
{ /********* Dialog redaction email */}
|
||||||
<Dialog
|
<Dialog
|
||||||
|
|
||||||
//onClose={Dialog_SEND_EMAIL_handleClose}
|
//onClose={Dialog_SEND_EMAIL_handleClose}
|
||||||
className="module_email_management"
|
className="module_email_management"
|
||||||
PaperProps={{
|
|
||||||
sx: {
|
|
||||||
width: "100%",
|
|
||||||
maxWidth: "920px!important",
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
open={Dialog_SEND_EMAIL_open}
|
|
||||||
static
|
static
|
||||||
onClose={() => null}
|
onClose={() => null}
|
||||||
|
|
||||||
|
PaperProps={{
|
||||||
|
|
||||||
|
|
||||||
|
className: classes.paper, // Apply the paper style
|
||||||
|
style: {
|
||||||
|
overflowY: 'unset',
|
||||||
|
position: 'absolute',
|
||||||
|
top: '7rem',
|
||||||
|
margin: "2px",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
hideBackdrop={true}
|
||||||
|
disableScrollLock
|
||||||
|
classes={{
|
||||||
|
paper: classes.dialog
|
||||||
|
}}
|
||||||
|
|
||||||
|
PaperComponent={PaperComponent}
|
||||||
|
aria-labelledby="draggable-dialog-title"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<DialogTitle style={{ cursor: 'move' }} id="draggable-dialog-title"> </DialogTitle>
|
||||||
<DialogContent >
|
<DialogContent >
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
|
|
||||||
|
@ -6701,6 +6756,22 @@ function ExportMenuItem(props) {
|
||||||
|
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|
||||||
|
<DialogActions>
|
||||||
|
|
||||||
|
<IconButton
|
||||||
|
autoFocus
|
||||||
|
onClick={Dialog_SEND_EMAIL_handleClose}
|
||||||
|
color="primary"
|
||||||
|
className={classes.customizedButton}
|
||||||
|
>
|
||||||
|
<CancelPresentationIcon />
|
||||||
|
</IconButton>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</DialogActions>
|
||||||
|
|
||||||
|
|
||||||
</Dialog>
|
</Dialog>
|
||||||
{ /********* Fin Dialog redaction email */}
|
{ /********* Fin Dialog redaction email */}
|
||||||
|
@ -6714,9 +6785,29 @@ function ExportMenuItem(props) {
|
||||||
className="displaypartnersession"
|
className="displaypartnersession"
|
||||||
static
|
static
|
||||||
onClose={() => null}
|
onClose={() => null}
|
||||||
|
|
||||||
|
PaperProps={{
|
||||||
|
|
||||||
|
|
||||||
|
className: classes.paper, // Apply the paper style
|
||||||
|
style: {
|
||||||
|
overflowY: 'unset',
|
||||||
|
position: 'absolute',
|
||||||
|
top: '7rem',
|
||||||
|
margin: "2px",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
hideBackdrop={true}
|
||||||
|
disableScrollLock
|
||||||
|
classes={{
|
||||||
|
paper: classes.dialog
|
||||||
|
}}
|
||||||
|
|
||||||
|
PaperComponent={PaperComponent}
|
||||||
|
aria-labelledby="draggable-dialog-title"
|
||||||
>
|
>
|
||||||
|
|
||||||
<DialogTitle>Info Stagiaire</DialogTitle>
|
<DialogTitle style={{ cursor: 'move' }} id="draggable-dialog-title">Info Stagiaire</DialogTitle>
|
||||||
<DialogContent className="DialogContent_width">
|
<DialogContent className="DialogContent_width">
|
||||||
|
|
||||||
<div className="div_row_dialog">
|
<div className="div_row_dialog">
|
||||||
|
@ -6860,6 +6951,17 @@ function ExportMenuItem(props) {
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
|
|
||||||
|
<IconButton
|
||||||
|
autoFocus
|
||||||
|
onClick={Dialog_stagiaire_handleClose_buton}
|
||||||
|
color="primary"
|
||||||
|
className={classes.customizedButton}
|
||||||
|
>
|
||||||
|
<CancelPresentationIcon />
|
||||||
|
</IconButton>
|
||||||
|
|
||||||
|
|
||||||
<div className="div_row">
|
<div className="div_row">
|
||||||
<div className="div_row_gauche">
|
<div className="div_row_gauche">
|
||||||
<Button onClick={Show_Detailled_stagiaire_Data} className="bton_enreg_dialog">Voir détail</Button>
|
<Button onClick={Show_Detailled_stagiaire_Data} className="bton_enreg_dialog">Voir détail</Button>
|
||||||
|
@ -6903,9 +7005,29 @@ function ExportMenuItem(props) {
|
||||||
className="displaypartnersession"
|
className="displaypartnersession"
|
||||||
static
|
static
|
||||||
onClose={() => null}
|
onClose={() => null}
|
||||||
|
|
||||||
|
PaperProps={{
|
||||||
|
|
||||||
|
|
||||||
|
className: classes.paper, // Apply the paper style
|
||||||
|
style: {
|
||||||
|
overflowY: 'unset',
|
||||||
|
position: 'absolute',
|
||||||
|
top: '7rem',
|
||||||
|
margin: "2px",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
hideBackdrop={true}
|
||||||
|
disableScrollLock
|
||||||
|
classes={{
|
||||||
|
paper: classes.dialog
|
||||||
|
}}
|
||||||
|
|
||||||
|
PaperComponent={PaperComponent}
|
||||||
|
aria-labelledby="draggable-dialog-title"
|
||||||
>
|
>
|
||||||
|
|
||||||
<DialogTitle>Tuteur {quel_tuteur}</DialogTitle>
|
<DialogTitle style={{ cursor: 'move' }} id="draggable-dialog-title">Tuteur {quel_tuteur}</DialogTitle>
|
||||||
{String(quel_tuteur) === "1" && <DialogContent className="DialogContent_width">
|
{String(quel_tuteur) === "1" && <DialogContent className="DialogContent_width">
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
{Dialog_tuteur_1_message}
|
{Dialog_tuteur_1_message}
|
||||||
|
@ -7287,6 +7409,15 @@ function ExportMenuItem(props) {
|
||||||
|
|
||||||
|
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
|
<IconButton
|
||||||
|
autoFocus
|
||||||
|
onClick={Dialog_tuteur_1_handleClose_buton}
|
||||||
|
color="primary"
|
||||||
|
className={classes.customizedButton}
|
||||||
|
>
|
||||||
|
<CancelPresentationIcon />
|
||||||
|
</IconButton>
|
||||||
|
|
||||||
<div className="div_row">
|
<div className="div_row">
|
||||||
<div className="div_row_gauche">
|
<div className="div_row_gauche">
|
||||||
|
|
||||||
|
@ -7312,9 +7443,30 @@ function ExportMenuItem(props) {
|
||||||
// onClose={Dialog_convention_handleClose}
|
// onClose={Dialog_convention_handleClose}
|
||||||
className="displaypartnersession"
|
className="displaypartnersession"
|
||||||
static
|
static
|
||||||
onClose={() => null}>
|
onClose={() => null}
|
||||||
|
|
||||||
<DialogTitle>MySy Information</DialogTitle>
|
PaperProps={{
|
||||||
|
|
||||||
|
|
||||||
|
className: classes.paper, // Apply the paper style
|
||||||
|
style: {
|
||||||
|
overflowY: 'unset',
|
||||||
|
position: 'absolute',
|
||||||
|
top: '7rem',
|
||||||
|
margin: "2px",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
hideBackdrop={true}
|
||||||
|
disableScrollLock
|
||||||
|
classes={{
|
||||||
|
paper: classes.dialog
|
||||||
|
}}
|
||||||
|
|
||||||
|
PaperComponent={PaperComponent}
|
||||||
|
aria-labelledby="draggable-dialog-title"
|
||||||
|
>
|
||||||
|
|
||||||
|
<DialogTitle style={{ cursor: 'move' }} id="draggable-dialog-title">MySy Information</DialogTitle>
|
||||||
<DialogContent className="DialogContent_width" style={{ "minHeight": "30rem" }}>
|
<DialogContent className="DialogContent_width" style={{ "minHeight": "30rem" }}>
|
||||||
|
|
||||||
|
|
||||||
|
@ -7567,6 +7719,15 @@ function ExportMenuItem(props) {
|
||||||
|
|
||||||
|
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
|
<IconButton
|
||||||
|
autoFocus
|
||||||
|
onClick={Dialog_convention_handleClose_buton}
|
||||||
|
color="primary"
|
||||||
|
className={classes.customizedButton}
|
||||||
|
>
|
||||||
|
<CancelPresentationIcon />
|
||||||
|
</IconButton>
|
||||||
|
|
||||||
<div className="div_row">
|
<div className="div_row">
|
||||||
{String(actionmass_ftion_val) !== String("convention") && <div className="div_row_gauche">
|
{String(actionmass_ftion_val) !== String("convention") && <div className="div_row_gauche">
|
||||||
{String(selected_convention_type) === "email" && <Button onClick={(e) => {
|
{String(selected_convention_type) === "email" && <Button onClick={(e) => {
|
||||||
|
@ -8238,9 +8399,9 @@ function ExportMenuItem(props) {
|
||||||
|
|
||||||
rowsPerPageOptions={[10]}
|
rowsPerPageOptions={[10]}
|
||||||
disableSelectionOnClick
|
disableSelectionOnClick
|
||||||
/* components={{
|
/* components={{
|
||||||
Toolbar: GridToolbar,
|
Toolbar: GridToolbar,
|
||||||
}}*/
|
}}*/
|
||||||
//sx={datagridSx}
|
//sx={datagridSx}
|
||||||
getCellClassName={(params) => {
|
getCellClassName={(params) => {
|
||||||
//field === 'distantiel'
|
//field === 'distantiel'
|
||||||
|
|
|
@ -3733,7 +3733,7 @@ const options_menu_vertical = [
|
||||||
}}
|
}}
|
||||||
componentsProps={{ toolbar: { data_colums: columns } }}
|
componentsProps={{ toolbar: { data_colums: columns } }}
|
||||||
|
|
||||||
checkboxSelection
|
//checkboxSelection
|
||||||
disableSelectionOnClick
|
disableSelectionOnClick
|
||||||
onSelectionModelChange={(newSelectionModel) => {
|
onSelectionModelChange={(newSelectionModel) => {
|
||||||
setSelectionModel(newSelectionModel);
|
setSelectionModel(newSelectionModel);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -210,7 +210,7 @@ const Modules_Mes_Documents = (props) => {
|
||||||
|
|
||||||
onClose={handleClose_option_button_vertical}
|
onClose={handleClose_option_button_vertical}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
slotProps={{
|
slotProps={{
|
||||||
|
@ -255,7 +255,17 @@ const Modules_Mes_Documents = (props) => {
|
||||||
const [print_file_business_object, setprint_file_business_object] = useState("");
|
const [print_file_business_object, setprint_file_business_object] = useState("");
|
||||||
|
|
||||||
function print_document_pdf(doc_id, file_extention, file_business_object) {
|
function print_document_pdf(doc_id, file_extention, file_business_object) {
|
||||||
const stored_cookie = getCookie('tokenmysych');
|
var user_cookie = getCookie('tokenmysych');
|
||||||
|
var part_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
|
||||||
|
var stored_cookie = "";
|
||||||
|
|
||||||
|
if (props.type_user_connected && String(props.type_user_connected) === "partner_account")
|
||||||
|
stored_cookie = part_cookie;
|
||||||
|
else if (props.type_user_connected && String(props.type_user_connected) === "user_account")
|
||||||
|
stored_cookie = user_cookie;
|
||||||
|
|
||||||
|
|
||||||
var nom_fichier_cmd = String(file_business_object) + "." + String(file_extention);
|
var nom_fichier_cmd = String(file_business_object) + "." + String(file_extention);
|
||||||
console.log(" nom_fichier_cmd = ", nom_fichier_cmd, " --- doc_id = ", doc_id);
|
console.log(" nom_fichier_cmd = ", nom_fichier_cmd, " --- doc_id = ", doc_id);
|
||||||
|
@ -290,19 +300,24 @@ const Modules_Mes_Documents = (props) => {
|
||||||
|
|
||||||
|
|
||||||
console.log(" ### props.type_document = ", props.type_document)
|
console.log(" ### props.type_document = ", props.type_document)
|
||||||
if (props.type_document && autorized_type_document.includes(String(props.type_document))) {
|
if (props.partner_client_id && props.type_document && autorized_type_document.includes(String(props.type_document)) &&
|
||||||
console.log(" ### iciiii ")
|
props.partner_owner_recid === "") {
|
||||||
setmyprops_type_document(props.type_document);
|
setmyprops_type_document(props.type_document);
|
||||||
|
|
||||||
setp_filtre1("filter_type_document");
|
setp_filtre1("filter_type_document");
|
||||||
setp_filtre1_value(props.type_document);
|
setp_filtre1_value(props.type_document);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Get_All_Documents_With_Filter();
|
Get_All_Documents_With_Filter();
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else if (props.partner_client_id && props.type_document && String(props.type_document) === "all" &&
|
||||||
|
props.partner_owner_recid === "") {
|
||||||
|
Get_All_Documents_With_Filter();
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (props.partner_owner_recid && props.partner_client_id === "") {
|
||||||
|
Get_All_Documents_With_Filter();
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
Get_List_Of_All_PJ();
|
Get_List_Of_All_PJ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -351,7 +366,16 @@ const Modules_Mes_Documents = (props) => {
|
||||||
|
|
||||||
|
|
||||||
function print_invoice_pdf() {
|
function print_invoice_pdf() {
|
||||||
const stored_cookie = getCookie('tokenmysych');
|
var user_cookie = getCookie('tokenmysych');
|
||||||
|
var part_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
|
||||||
|
var stored_cookie = "";
|
||||||
|
|
||||||
|
if (props.type_user_connected && String(props.type_user_connected) === "partner_account")
|
||||||
|
stored_cookie = part_cookie;
|
||||||
|
else if (props.type_user_connected && String(props.type_user_connected) === "user_account")
|
||||||
|
stored_cookie = user_cookie;
|
||||||
|
|
||||||
var nom_fichier_cmd = "Facture_" + invoice_internal_ref + ".pdf";
|
var nom_fichier_cmd = "Facture_" + invoice_internal_ref + ".pdf";
|
||||||
// console.log(" nom_fichier_cmd = ", nom_fichier_cmd, " --- selected_id = ", selected_id);
|
// console.log(" nom_fichier_cmd = ", nom_fichier_cmd, " --- selected_id = ", selected_id);
|
||||||
|
@ -641,8 +665,16 @@ const Modules_Mes_Documents = (props) => {
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|
||||||
//formData.append('token', 'K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA');
|
var user_cookie = getCookie('tokenmysych');
|
||||||
const stored_cookie = getCookie('tokenmysych');
|
var part_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
|
||||||
|
var stored_cookie = "";
|
||||||
|
|
||||||
|
if (props.type_user_connected && String(props.type_user_connected) === "partner_account")
|
||||||
|
stored_cookie = part_cookie;
|
||||||
|
else if (props.type_user_connected && String(props.type_user_connected) === "user_account")
|
||||||
|
stored_cookie = user_cookie;
|
||||||
|
|
||||||
formData.append("token", stored_cookie);
|
formData.append("token", stored_cookie);
|
||||||
formData.append("object_owner_id", props.partner_client_id);
|
formData.append("object_owner_id", props.partner_client_id);
|
||||||
|
@ -694,7 +726,16 @@ const Modules_Mes_Documents = (props) => {
|
||||||
const [Download_one_attached_document_message, setDownload_one_attached_document_message] = useState();
|
const [Download_one_attached_document_message, setDownload_one_attached_document_message] = useState();
|
||||||
const Download_one_attached_document = (event) => {
|
const Download_one_attached_document = (event) => {
|
||||||
|
|
||||||
const stored_cookie = getCookie('tokenmysych');
|
var user_cookie = getCookie('tokenmysych');
|
||||||
|
var part_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
|
||||||
|
var stored_cookie = "";
|
||||||
|
|
||||||
|
if (props.type_user_connected && String(props.type_user_connected) === "partner_account")
|
||||||
|
stored_cookie = part_cookie;
|
||||||
|
else if (props.type_user_connected && String(props.type_user_connected) === "user_account")
|
||||||
|
stored_cookie = user_cookie;
|
||||||
|
|
||||||
var nom_fiche_detaillee = "Fiche_Detaillee.pdf";
|
var nom_fiche_detaillee = "Fiche_Detaillee.pdf";
|
||||||
var token = stored_cookie;
|
var token = stored_cookie;
|
||||||
|
@ -726,8 +767,22 @@ const Modules_Mes_Documents = (props) => {
|
||||||
setgridline_id("");
|
setgridline_id("");
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
var user_cookie = getCookie('tokenmysych');
|
||||||
|
var part_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
|
||||||
|
var stored_cookie = "";
|
||||||
|
|
||||||
|
if (props.type_user_connected && String(props.type_user_connected) === "partner_account") {
|
||||||
|
stored_cookie = part_cookie;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (props.type_user_connected && String(props.type_user_connected) === "user_account") {
|
||||||
|
// vu que c'est un user, ajouter obligatorement le filtre : filter_object_owner_id
|
||||||
|
form.append("filter_object_owner_id", props.partner_client_id);
|
||||||
|
stored_cookie = user_cookie;
|
||||||
|
}
|
||||||
|
|
||||||
const stored_cookie = getCookie('tokenmysych');
|
|
||||||
form.append("token", stored_cookie);
|
form.append("token", stored_cookie);
|
||||||
|
|
||||||
// Recuperation des parametres
|
// Recuperation des parametres
|
||||||
|
@ -767,6 +822,8 @@ const Modules_Mes_Documents = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_object_owner_collection_Stored_Files_With_Filter/";
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_object_owner_collection_Stored_Files_With_Filter/";
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
|
@ -130,8 +130,9 @@ import { styled } from '@mui/material/styles';
|
||||||
import IconButton from '@mui/material/IconButton';
|
import IconButton from '@mui/material/IconButton';
|
||||||
import ShoppingCartIcon from '@mui/icons-material/ShoppingCart';
|
import ShoppingCartIcon from '@mui/icons-material/ShoppingCart';
|
||||||
|
|
||||||
|
import Modules_Mes_Documents from "./Modules_Mes_Documents";
|
||||||
|
|
||||||
|
import FolderZipIcon from '@mui/icons-material/FolderZip';
|
||||||
|
|
||||||
const Partner = (props) => {
|
const Partner = (props) => {
|
||||||
const { commingmenu, commingpack } = useParams();
|
const { commingmenu, commingpack } = useParams();
|
||||||
|
@ -476,7 +477,7 @@ const Partner = (props) => {
|
||||||
"dashbord_session", "mon_tableau_de_bord", "prix_achat", "mes_apprenants", "dashbord_ressources_humaines",
|
"dashbord_session", "mon_tableau_de_bord", "prix_achat", "mes_apprenants", "dashbord_ressources_humaines",
|
||||||
"dashbord_inscriptions", "mes_salles", "mes_opportunites", "config_formulaires", "dashbord_factures", "mes_ue",
|
"dashbord_inscriptions", "mes_salles", "mes_opportunites", "config_formulaires", "dashbord_factures", "mes_ue",
|
||||||
"domaine_categorie_metier", "config_formation_initiale", "note_evaluation", "groupe_apprenant",
|
"domaine_categorie_metier", "config_formation_initiale", "note_evaluation", "groupe_apprenant",
|
||||||
"part_produit_service", "config_document_super_admin"]
|
"part_produit_service", "config_document_super_admin", "tous_mes_document"]
|
||||||
|
|
||||||
|
|
||||||
if (action && list_menu.includes(action)) {
|
if (action && list_menu.includes(action)) {
|
||||||
|
@ -511,7 +512,8 @@ const Partner = (props) => {
|
||||||
function inactive_active_menu_header(current_menu_header) {
|
function inactive_active_menu_header(current_menu_header) {
|
||||||
const list_menu_header_names = ['my_account', 'my_class', 'my_session', 'my_apprenant', 'my_ressource', 'my_planning',
|
const list_menu_header_names = ['my_account', 'my_class', 'my_session', 'my_apprenant', 'my_ressource', 'my_planning',
|
||||||
'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd', 'my_ue', 'domaine_categorie_metier',
|
'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd', 'my_ue', 'domaine_categorie_metier',
|
||||||
'config_formation_initiale', 'note_evaluation', 'groupe_apprenant', 'part_produit_service', 'monactivite', 'mon_tableau_de_bord']
|
'config_formation_initiale', 'note_evaluation', 'groupe_apprenant', 'part_produit_service', 'monactivite', 'mon_tableau_de_bord',
|
||||||
|
'tous_mes_document']
|
||||||
for (let i = 0; i < list_menu_header_names.length; i++) {
|
for (let i = 0; i < list_menu_header_names.length; i++) {
|
||||||
if (document.getElementsByName(String(list_menu_header_names[i])) && document.getElementsByName(String(list_menu_header_names[i]))[0]) {
|
if (document.getElementsByName(String(list_menu_header_names[i])) && document.getElementsByName(String(list_menu_header_names[i]))[0]) {
|
||||||
document.getElementsByName(String(list_menu_header_names[i]))[0].style.fontWeight = "400";
|
document.getElementsByName(String(list_menu_header_names[i]))[0].style.fontWeight = "400";
|
||||||
|
@ -527,7 +529,8 @@ const Partner = (props) => {
|
||||||
function inactive_active_menu_header_from_url_action(url_action) {
|
function inactive_active_menu_header_from_url_action(url_action) {
|
||||||
const list_menu_header_names = ['my_account', 'my_class', 'my_session', 'my_apprenant', 'my_ressource', 'my_planning',
|
const list_menu_header_names = ['my_account', 'my_class', 'my_session', 'my_apprenant', 'my_ressource', 'my_planning',
|
||||||
'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd', 'my_ue', 'domaine_categorie_metier',
|
'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd', 'my_ue', 'domaine_categorie_metier',
|
||||||
'config_formation_initiale', 'note_evaluation', 'groupe_apprenant', 'part_produit_service', 'monactivite', 'mon_tableau_de_bord']
|
'config_formation_initiale', 'note_evaluation', 'groupe_apprenant', 'part_produit_service', 'monactivite', 'mon_tableau_de_bord',
|
||||||
|
'tous_mes_document']
|
||||||
for (let i = 0; i < list_menu_header_names.length; i++) {
|
for (let i = 0; i < list_menu_header_names.length; i++) {
|
||||||
if (document.getElementsByName(String(list_menu_header_names[i])) && document.getElementsByName(String(list_menu_header_names[i]))[0]) {
|
if (document.getElementsByName(String(list_menu_header_names[i])) && document.getElementsByName(String(list_menu_header_names[i]))[0]) {
|
||||||
document.getElementsByName(String(list_menu_header_names[i]))[0].style.fontWeight = "400";
|
document.getElementsByName(String(list_menu_header_names[i]))[0].style.fontWeight = "400";
|
||||||
|
@ -575,6 +578,15 @@ const Partner = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function Display_Tous_Documents(event) {
|
||||||
|
setmenu("tous_mes_document");
|
||||||
|
setapiexcelimportmessage();
|
||||||
|
setformation_file_name();
|
||||||
|
history.push("/Partner/tous_mes_document");
|
||||||
|
document.body.style.backgroundColor = "#ffffff";
|
||||||
|
inactive_active_menu_header("tous_mes_document");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function config_document_func(event) {
|
function config_document_func(event) {
|
||||||
var security_retval = check_user_acces_right("config_document", "read");
|
var security_retval = check_user_acces_right("config_document", "read");
|
||||||
|
@ -783,6 +795,11 @@ const Partner = (props) => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Abonnement_func(event) {
|
function Abonnement_func(event) {
|
||||||
var security_retval = check_user_acces_right("abonnement", "read");
|
var security_retval = check_user_acces_right("abonnement", "read");
|
||||||
if (security_retval === 1) {
|
if (security_retval === 1) {
|
||||||
|
@ -1247,6 +1264,8 @@ const Partner = (props) => {
|
||||||
|
|
||||||
const [conntected_employee_email, setconntected_employee_email] = useState("");
|
const [conntected_employee_email, setconntected_employee_email] = useState("");
|
||||||
const [conntected_employee_id, setconntected_employee_id] = useState("");
|
const [conntected_employee_id, setconntected_employee_id] = useState("");
|
||||||
|
const [conntected_account_id, setconntected_account_id] = useState("");
|
||||||
|
const [conntected_account_partner_owner_recid, setconntected_account_partner_owner_recid] = useState("");
|
||||||
|
|
||||||
|
|
||||||
const [GetPartnerNameFromToken_api_result, setGetPartnerNameFromToken_api_result] = useState();
|
const [GetPartnerNameFromToken_api_result, setGetPartnerNameFromToken_api_result] = useState();
|
||||||
|
@ -1265,7 +1284,7 @@ const Partner = (props) => {
|
||||||
if (String(res.data.status) === String("true")) {
|
if (String(res.data.status) === String("true")) {
|
||||||
setGetPartnerNameFromToken_api_result(true);
|
setGetPartnerNameFromToken_api_result(true);
|
||||||
//console.log(" In GetPartnerNameFromToken res.data.status = " + res.data.status);
|
//console.log(" In GetPartnerNameFromToken res.data.status = " + res.data.status);
|
||||||
//console.log(" In GetPartnerNameFromToken res.data.message = " + res.data.message);
|
console.log(" In GetPartnerNameFromToken res.data.message = " + res.data.message);
|
||||||
setparntername(JSON.parse(res.data.message).nom);
|
setparntername(JSON.parse(res.data.message).nom);
|
||||||
|
|
||||||
setconntected_employee_email(JSON.parse(res.data.message).email);
|
setconntected_employee_email(JSON.parse(res.data.message).email);
|
||||||
|
@ -1283,6 +1302,21 @@ const Partner = (props) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (JSON.parse(res.data.message)._id) {
|
||||||
|
setconntected_account_id(JSON.parse(res.data.message)._id);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setconntected_account_id("");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (JSON.parse(res.data.message).recid) {
|
||||||
|
setconntected_account_partner_owner_recid(JSON.parse(res.data.message).recid);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setconntected_account_partner_owner_recid("");
|
||||||
|
}
|
||||||
|
|
||||||
if (JSON.parse(res.data.message).pack_service) {
|
if (JSON.parse(res.data.message).pack_service) {
|
||||||
setpartnerPackService(JSON.parse(res.data.message).pack_service);
|
setpartnerPackService(JSON.parse(res.data.message).pack_service);
|
||||||
}
|
}
|
||||||
|
@ -1766,6 +1800,9 @@ const Partner = (props) => {
|
||||||
{String(menu) !== "facture" && <MenuItem className="sousmenu" onClick={DisplayFacure} icon={<FcFeedback className="icone_menu" />}> FACTURE MYSY</MenuItem>}
|
{String(menu) !== "facture" && <MenuItem className="sousmenu" onClick={DisplayFacure} icon={<FcFeedback className="icone_menu" />}> FACTURE MYSY</MenuItem>}
|
||||||
{String(menu) === "facture" && <MenuItem className="sousmenu_selected" onClick={DisplayFacure} icon={<FcFeedback className="icone_menu" />}>FACTURE MYSY</MenuItem>}
|
{String(menu) === "facture" && <MenuItem className="sousmenu_selected" onClick={DisplayFacure} icon={<FcFeedback className="icone_menu" />}>FACTURE MYSY</MenuItem>}
|
||||||
|
|
||||||
|
{String(menu) !== "tous_mes_document" && <MenuItem className="sousmenu" onClick={Display_Tous_Documents} icon={<FolderZipIcon className="icone_menu" />}> TOUS DOCUMENTS</MenuItem>}
|
||||||
|
{String(menu) === "tous_mes_document" && <MenuItem className="sousmenu_selected" onClick={Display_Tous_Documents} icon={<FolderZipIcon className="icone_menu" />}> TOUS DOCUMENTS</MenuItem>}
|
||||||
|
|
||||||
|
|
||||||
</SubMenu>
|
</SubMenu>
|
||||||
|
|
||||||
|
@ -2089,6 +2126,22 @@ const Partner = (props) => {
|
||||||
check_user_acces_right={check_user_acces_right} />
|
check_user_acces_right={check_user_acces_right} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
{String(menu) === "tous_mes_document" &&
|
||||||
|
<div className="div_droite">
|
||||||
|
|
||||||
|
|
||||||
|
<Modules_Mes_Documents ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id}
|
||||||
|
class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale}
|
||||||
|
check_user_acces_right={check_user_acces_right}
|
||||||
|
|
||||||
|
partner_client_id={""}
|
||||||
|
partner_owner_recid={conntected_account_partner_owner_recid}
|
||||||
|
type_user_connected={"partner_account"}
|
||||||
|
my_title={"MES DOCUMENTS"}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{String(menu) === "mes_ue" &&
|
{String(menu) === "mes_ue" &&
|
||||||
|
@ -2586,6 +2639,14 @@ const Partner = (props) => {
|
||||||
</a>
|
</a>
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
|
|
||||||
|
<Tooltip className="tooltip_css" id="tooltip_id_66" />
|
||||||
|
<a data-tooltip-id="tooltip_id_66" data-tooltip-html="TOUS DOCUMENTS">
|
||||||
|
{String(menu) !== "tous_mes_document" && <div className="sousmenu" onClick={Display_Tous_Documents} ><FolderZipIcon className="icone_menu" /> </div>}
|
||||||
|
{String(menu) === "tous_mes_document" && <div className="sousmenu_selected" onClick={Display_Tous_Documents} > <FolderZipIcon className="icone_menu" /> </div>}
|
||||||
|
</a>
|
||||||
|
<hr className="my_hr" />
|
||||||
|
|
||||||
|
|
||||||
<div> <hr /> </div>
|
<div> <hr /> </div>
|
||||||
|
|
||||||
{/* <Tooltip className="tooltip_css" id="tooltip_id_7" />
|
{/* <Tooltip className="tooltip_css" id="tooltip_id_7" />
|
||||||
|
|
|
@ -367,7 +367,7 @@ const PartnerClientActivite = (props) => {
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
//console.log(" In Get_List_Activite_Assign_To_Me res.data.status = " + res.data.status);
|
//console.log(" In Get_List_Activite_Assign_To_Me res.data.status = " + res.data.status);
|
||||||
console.log(" In Get_List_Activite_Assign_To_Me res.data.message r_class = " + res.data.message);
|
// console.log(" In Get_List_Activite_Assign_To_Me res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
if (String(res.data.status) === String("true")) {
|
if (String(res.data.status) === String("true")) {
|
||||||
setGet_List_Activite_Assign_To_Me_api("true");
|
setGet_List_Activite_Assign_To_Me_api("true");
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: #495057;
|
color: black;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
@ -389,7 +389,7 @@
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-bottom: 0.8rem;
|
margin-bottom: 0.8rem;
|
||||||
color: #c0c0c0;
|
color: black;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -409,9 +409,9 @@
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
background-color: #104277;
|
background-color: #81BC3A !important;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: white;
|
color: black;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -524,7 +524,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.div_mobile {
|
.div_mobile {
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
top: 8rem;
|
top: 8rem;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -695,7 +695,7 @@
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-bottom: 0.8rem;
|
margin-bottom: 0.8rem;
|
||||||
color: #c0c0c0;
|
color: black;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -716,9 +716,9 @@
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
background-color: #104277;
|
background-color: #81BC3A !important;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: white;
|
color: black;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -830,7 +830,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.div_mobile {
|
.div_mobile {
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
top: 8rem;
|
top: 8rem;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -1003,7 +1003,7 @@
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-bottom: 0.8rem;
|
margin-bottom: 0.8rem;
|
||||||
color: #c0c0c0;
|
color: black;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1023,9 +1023,9 @@
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
background-color: #104277;
|
background-color:#81BC3A !important;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: white;
|
color: black;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1138,7 +1138,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.div_mobile {
|
.div_mobile {
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
top: 8rem;
|
top: 8rem;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -1230,4 +1230,17 @@
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// end media
|
||||||
|
.sousmenu_selected {
|
||||||
|
font-family: "verdana", "Quicksand", "Signika", sans-serif;
|
||||||
|
color:white;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: small;
|
||||||
|
text-align: left;
|
||||||
|
padding-bottom: 0.8rem;
|
||||||
|
cursor: pointer;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
// background-color: #104277 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -310,7 +310,7 @@
|
||||||
.sub_dib_mobile {
|
.sub_dib_mobile {
|
||||||
//background: white;
|
//background: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.div_mobile {
|
.div_mobile {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 5rem;
|
top: 5rem;
|
||||||
|
|
|
@ -136,4 +136,5 @@
|
||||||
@import "./components/moduleia";
|
@import "./components/moduleia";
|
||||||
@import "./components/intranet_factures_client";
|
@import "./components/intranet_factures_client";
|
||||||
@import "./components/intranet_tous_documents";
|
@import "./components/intranet_tous_documents";
|
||||||
@import "./components/modules_mes_documents";
|
@import "./components/modules_mes_documents";
|
||||||
|
@import "./components/intranet_mes_stagiaires";
|
Loading…
Reference in New Issue