04/02/2024 - 21h

recette2
cherif 2024-02-04 19:52:19 +01:00
parent 712deda0c4
commit 1308c82827
7 changed files with 4021 additions and 19 deletions

View File

@ -53,7 +53,7 @@ import { gridClasses } from '@mui/x-data-grid';
import Link from '@mui/material/Link';
import { PiDotsThree } from "react-icons/pi";
import Module_Editique from "./Module_Editique";
import Module_Attestation_Formation from "./Module_Attestation_Formation";
const DisplayPartnerSession = (props) => {
const history = useHistory();
@ -1636,6 +1636,12 @@ const DisplayPartnerSession = (props) => {
document.getElementById("detail_session").style.fontWeight = "normal";
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#d8edfc";
document.getElementById("attestation").style.color = "black";
document.getElementById("attestation").style.fontWeight = "black";
}
if (document.getElementById("inscrit")) {
document.getElementById("inscrit").style.backgroundColor = "#d8edfc";
document.getElementById("inscrit").style.color = "black";
@ -1706,6 +1712,12 @@ const DisplayPartnerSession = (props) => {
document.getElementById("evaluation").style.fontWeight = "normal";
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#d8edfc";
document.getElementById("attestation").style.color = "black";
document.getElementById("attestation").style.fontWeight = "black";
}
}
async function submenu_detail_session() {
@ -1722,6 +1734,12 @@ const DisplayPartnerSession = (props) => {
document.getElementById("detail_session").style.fontWeight = "bold";
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#d8edfc";
document.getElementById("attestation").style.color = "black";
document.getElementById("attestation").style.fontWeight = "black";
}
if (document.getElementById("editique")) {
document.getElementById("editique").style.backgroundColor = "#d8edfc";
document.getElementById("editique").style.color = "black";
@ -1785,6 +1803,12 @@ const DisplayPartnerSession = (props) => {
document.getElementById("editique").style.fontWeight = "normal";
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#d8edfc";
document.getElementById("attestation").style.color = "black";
document.getElementById("attestation").style.fontWeight = "black";
}
if (document.getElementById("detail_session")) {
document.getElementById("detail_session").style.backgroundColor = "#d8edfc";
document.getElementById("detail_session").style.color = "black";
@ -1882,6 +1906,12 @@ const DisplayPartnerSession = (props) => {
document.getElementById("historique").style.fontWeight = "normal";
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#d8edfc";
document.getElementById("attestation").style.color = "black";
document.getElementById("attestation").style.fontWeight = "black";
}
}
async function submenu_historique() {
@ -1899,6 +1929,12 @@ const DisplayPartnerSession = (props) => {
document.getElementById("historique").style.fontWeight = "bold";
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#d8edfc";
document.getElementById("attestation").style.color = "black";
document.getElementById("attestation").style.fontWeight = "black";
}
if (document.getElementById("evaluation")) {
document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
document.getElementById("evaluation").style.color = "black";
@ -1967,6 +2003,12 @@ const DisplayPartnerSession = (props) => {
document.getElementById("inscrit").style.fontWeight = "normal";
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#d8edfc";
document.getElementById("attestation").style.color = "black";
document.getElementById("attestation").style.fontWeight = "black";
}
if (document.getElementById("evaluation")) {
document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
document.getElementById("evaluation").style.color = "black";
@ -2022,7 +2064,13 @@ const DisplayPartnerSession = (props) => {
if (document.getElementById("emargement")) {
document.getElementById("emargement").style.backgroundColor = "#d8edfc";
document.getElementById("emargement").style.color = "black";
document.getElementById("emargement").style.fontWeight = "normal";
document.getElementById("emargement").style.fontWeight = "black";
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#d8edfc";
document.getElementById("attestation").style.color = "black";
document.getElementById("attestation").style.fontWeight = "black";
}
if (document.getElementById("editique")) {
@ -2068,6 +2116,75 @@ const DisplayPartnerSession = (props) => {
}
async function submenu_attestation() {
setsubmenu("attestation");
//await sleep(5);
if (!edit_session_form) {
desableSessionFields();
}
if (document.getElementById("attestation")) {
document.getElementById("attestation").style.backgroundColor = "#104277";
document.getElementById("attestation").style.color = "white";
document.getElementById("attestation").style.fontWeight = "bold";
}
if (document.getElementById("evaluation")) {
document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
document.getElementById("evaluation").style.color = "black";
document.getElementById("evaluation").style.fontWeight = "normal";
}
if (document.getElementById("emargement")) {
document.getElementById("emargement").style.backgroundColor = "#d8edfc";
document.getElementById("emargement").style.color = "black";
document.getElementById("emargement").style.fontWeight = "normal";
}
if (document.getElementById("editique")) {
document.getElementById("editique").style.backgroundColor = "#d8edfc";
document.getElementById("editique").style.color = "black";
document.getElementById("editique").style.fontWeight = "normal";
}
if (document.getElementById("sequence_session")) {
document.getElementById("sequence_session").style.backgroundColor = "#d8edfc";
document.getElementById("sequence_session").style.color = "black";
document.getElementById("sequence_session").style.fontWeight = "normal";
}
if (document.getElementById("detail_session")) {
document.getElementById("detail_session").style.backgroundColor = "#d8edfc";
document.getElementById("detail_session").style.color = "black";
document.getElementById("detail_session").style.fontWeight = "normal";
}
if (document.getElementById("inscrit")) {
document.getElementById("inscrit").style.backgroundColor = "#d8edfc";
document.getElementById("inscrit").style.color = "black";
document.getElementById("inscrit").style.fontWeight = "normal";
}
if (document.getElementById("preinscrit")) {
document.getElementById("preinscrit").style.backgroundColor = "#d8edfc";
document.getElementById("preinscrit").style.color = "black";
document.getElementById("preinscrit").style.fontWeight = "normal";
}
if (document.getElementById("historique")) {
document.getElementById("historique").style.backgroundColor = "#d8edfc";
document.getElementById("historique").style.color = "black";
document.getElementById("historique").style.fontWeight = "normal";
}
GetListeEvaluation(selected_session_id);
}
function handleClickSessionManagement(event, cellValues) {
var code_session = cellValues.row.code_session;
setselected_code_session(cellValues.row.code_session);
@ -10509,7 +10626,8 @@ const DisplayPartnerSession = (props) => {
<Button variant="outlined" onClick={submenu_editique} className="detail_class_submenu" id='editique' name='editique'>Gestion </Button>
<Button variant="outlined" onClick={submenu_emargement} className="detail_class_submenu" id='emargement' name='emargement'>Emargement </Button>
<Button variant="outlined" onClick={submenu_evaluation} className="detail_class_submenu" id='menu_eval' name='menu_eval'>Les avis</Button>
<Button variant="outlined" onClick={submenu_historique} className="detail_class_submenu" id='historique' name='historique'>Historique </Button>
<Button variant="outlined" onClick={submenu_attestation} className="detail_class_submenu" id='menu_eval' name='menu_eval'>Attestation</Button>
<Button variant="outlined" onClick={submenu_historique} className="detail_class_submenu" id='historique' name='historique'>Historique </Button>
</div>}
@ -15357,6 +15475,13 @@ const DisplayPartnerSession = (props) => {
</div>}
{String(submenu) === String("attestation") && <div style={{ "border": "None" }}>
<Module_Attestation_Formation conntected_employee_id={props.conntected_employee_id} related_collection={"session_formation"}
related_collection_recid={selected_session_id} />
</div>}
</div>

View File

@ -2270,7 +2270,7 @@ const DisplayPartnerStagiaires = (props) => {
});
}
}, [])
const [addOneParticipant, setaddOneParticipant] = useState("");
@ -2441,7 +2441,7 @@ const DisplayPartnerStagiaires = (props) => {
}
if (mylocalattendee.code_session){
if (mylocalattendee.code_session) {
setp_detail_session_class(mylocalattendee.code_session);
setworking_session_code(mylocalattendee.code_session);
}
@ -7487,7 +7487,7 @@ const DisplayPartnerStagiaires = (props) => {
</div>}
{String(participant_data_edit_mode) === "1" && <div className="session_caract"> <b> Session </b> <br />
<Autocomplete
@ -8652,7 +8652,7 @@ const DisplayPartnerStagiaires = (props) => {
</div>
</div>}
<div className="div_row" style={{ "border": "None" }}>
{/*<div className="div_row" style={{ "border": "None" }}>
<hr className="hr_break" />
</div>
@ -8730,6 +8730,7 @@ const DisplayPartnerStagiaires = (props) => {
</div>
</div>}
*/}
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,6 @@ import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
import { Editor } from '@tinymce/tinymce-react';
import parse from 'html-react-parser';
import 'react-tooltip/dist/react-tooltip.css'
import { Tooltip } from 'react-tooltip'
import add_plus from "../mysy_img/plus.png";
@ -276,7 +275,7 @@ const Module_Editique = (props) => {
var nom_fichier_cmd = "Convention.zip";
if (!selected_convention_id || String(selected_convention_id).trim() === "") {
if (!selected_convention_id || String(selected_convention_id).trim() === "") {
alert(" Vous devez choisir un modèle de document ");
return;
}
@ -899,6 +898,17 @@ const Module_Editique = (props) => {
};
const [Dialog_ATTESTATION_FORMATION_open, setDialog_ATTESTATION_FORMATION_open] = React.useState(false);
const Dialog_ATTESTATION_FORMATION_handleClose = () => {
//alert(" Utiliser le bouton 'fermer' ");
//setOpen(false);
};
const Dialog_ATTESTATION_FORMATION_handleClose_buton = () => {
setDialog_ATTESTATION_FORMATION_open(false);
};
const [Dialog_CONF_INSCRIPTION_open, setDialog_CONF_INSCRIPTION_open] = React.useState(false);
const Dialog_CONF_INSCRIPTION_handleClose = () => {
//alert(" Utiliser le bouton 'fermer' ");
@ -1078,7 +1088,48 @@ const Module_Editique = (props) => {
{/* FIN Dialog pour gerer les EMARGEMENT_FORMATION */}
{/* Dialog pour gerer les EVALUATION_FORMATION */}
{/* Dialog pour gerer les ATTESTATION_FORMATION */}
<Dialog
open={Dialog_ATTESTATION_FORMATION_open}
onClose={Dialog_ATTESTATION_FORMATION_handleClose}
className="displaypartnersession"
>
<DialogTitle>MySy Information</DialogTitle>
<DialogContent className="DialogContent_width" style={{ "minHeight": "10rem" }}>
<DialogContentText>
<div style={{ "textAlign": "left" }}>
Cliquez sur l'onglet 'ATTESTATION' pour la gestion des attestations de formation :<br />
<ul>
<li> Initialisation </li>
<li> Envoyer par email </li>
<li> etc </li>
</ul>
</div>
</DialogContentText>
</DialogContent>
<DialogActions>
<div className="div_row">
<div className="div_row_gauche">
&nbsp;
</div>
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
<Button onClick={Dialog_ATTESTATION_FORMATION_handleClose_buton} className="bton_annule_dialog" >Fermer</Button>
</div>
</div>
</DialogActions>
</Dialog>
{/* FIN Dialog pour gerer les ATTESTATION_FORMATION */}
{/* Dialog pour gerer les EVALUATION_FORMATION */}
<Dialog
open={Dialog_EVALUATION_FORMATION_open}
onClose={Dialog_EVALUATION_FORMATION_handleClose}
@ -1091,7 +1142,7 @@ const Module_Editique = (props) => {
<div style={{ "textAlign": "left" }}>
Cliquez sur l'onglet 'LES AVIS' pour la gestion des évaluations :<br />
<ul>
<li> Envoyer les demandes d'évaluation </li>
<li> Visualiser et exporter les évaluations </li>
<li> etc </li>
@ -1116,7 +1167,7 @@ const Module_Editique = (props) => {
</Dialog>
{/* FIN Dialog pour gerer les EVALUATION_FORMATION */}
{/* FIN Dialog pour gerer les EVALUATION_FORMATION */}
{/* Dialog pour gerer les CONVOCATION_STAGIAIRE */}
@ -1129,7 +1180,7 @@ const Module_Editique = (props) => {
<DialogTitle>MySy Information</DialogTitle>
<DialogContent className="DialogContent_width" style={{ "minHeight": "30rem" }}>
<DialogContentText>
{Dialog_1_message}
{Dialog_1_message}
</DialogContentText>
@ -1456,7 +1507,7 @@ const Module_Editique = (props) => {
<DialogTitle>MySy Information</DialogTitle>
<DialogContent className="DialogContent_width" style={{ "minHeight": "30rem" }}>
<DialogContentText>
{Dialog_1_message}
{Dialog_1_message}
</DialogContentText>
<div className="session_caract_Dialog" > Type Document<br />
@ -1768,11 +1819,11 @@ const Module_Editique = (props) => {
</Dialog>
{/* FIN Dialog pour gerer les conventions */}
<div className="div_row" style={{ "background": "#e8e6e6", "marginLeft": "5px", "marginRight": "5px" }}>
<div style={{ "width": "58%", "float": "left", "marginLeft": "5px", "marginRight": "5px", }}>
<div style={{ "width": "58%", "float": "left", "marginLeft": "5px", "marginRight": "5px", }}>
Action Editique <br />
<div style={{ "width": "100%", "float": "left" }}>
{Getall_Editable_Document_By_Partner_By_Collection_result &&
@ -1781,6 +1832,7 @@ const Module_Editique = (props) => {
<div className="div_row" style={{ "height": "3rem", "marginLeft": "5px", "marginRight": "5px" }}>
<div className="bton_action_server" style={{ width: "45%", float: "left", height: "2.5rem", paddingTop: "10px" }} onClick={(e) => {
setaction_server_to_run(String(JSON.parse(document).server_action_name))
//setaction_server_type_doc(String(JSON.parse(document).courrier_template_type_doc))
setaction_server_nom_doc(String(JSON.parse(document).courrier_template_nom))
@ -1799,8 +1851,13 @@ const Module_Editique = (props) => {
else if (String(JSON.parse(document).courrier_template_ref_interne) === "EMARGEMENT_FORMATION") {
setDialog_EMARGEMENT_FORMATION_open(true);
}
else if (String(JSON.parse(document).courrier_template_ref_interne) === "ATTESTATION_FORMATION") {
setDialog_ATTESTATION_FORMATION_open(true);
}
else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVOCATION_STAGIAIRE") {
Get_List_Stagiaire_Convocations(String(JSON.parse(document).courrier_template_ref_interne), String(JSON.parse(document).courrier_template_nom), String(JSON.parse(document).courrier_template_type_doc)
);
setDialog_CONVOCATION_STAGIAIRE_open(true);
@ -1815,7 +1872,7 @@ const Module_Editique = (props) => {
}
}}>
{(JSON.parse(document).courrier_template_nom)}
{(JSON.parse(document).courrier_template_nom)}
</div>
{String(JSON.parse(document).has_history_event) === "1" &&
@ -1845,7 +1902,7 @@ const Module_Editique = (props) => {
</div>
<div style={{ "width": "40%", "float": "right", "padding": "10px", "borderLeft": "3mm ridge rgba(211, 220, 50, .6)"}}>
<div style={{ "width": "40%", "float": "right", "padding": "10px", "borderLeft": "3mm ridge rgba(211, 220, 50, .6)" }}>
Détail <Button onClick={handleExpandClick}>
{expanded.length === 0 ? 'Voir tout' : 'Réduire'}
</Button>

View File

@ -36,6 +36,7 @@ import DialogTitle from '@mui/material/DialogTitle';
import Typography from '@mui/material/Typography';
import Menu from '@mui/material/Menu';
import Module_Editique from "./Module_Editique";
import Module_Attestation_Formation from "./Module_Attestation_Formation";
const locales = {
'en-US': enUS,
@ -606,6 +607,10 @@ const TestUrl_New = (props) => {
parametres courseid = {courseid}, tabid = {tabid}
<br />
<h2> Module attestation </h2>
<Module_Attestation_Formation conntected_employee_id={"1234"} related_collection={"session_formation"} related_collection_recid={"65b378562f89e592bf0e4b78"}/>
<h2> Module Ediditique </h2>
<Module_Editique conntected_employee_id={"1234"} related_collection={"session_formation"} related_collection_recid={"65b378562f89e592bf0e4b78"}/>

File diff suppressed because it is too large Load Diff

View File

@ -97,3 +97,4 @@
@import "./components/quisommesnous_v3";
@import "./components/module_editique";
@import "./components/toggleswitch2_mysy";
@import "./components/module_attestation_formation";