diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 27d850a..fd77c94 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -1905,6 +1905,10 @@ const DisplayPartnerSession = (props) => { setsubmenu("preinscrit"); GetListePreinscrit(selected_session_id, selected_internal_url); + submenu_color_management("preinscrit"); + + /* + if (document.getElementById("preinscrit")) { document.getElementById("preinscrit").style.backgroundColor = "#104277"; document.getElementById("preinscrit").style.color = "white"; @@ -1952,6 +1956,7 @@ const DisplayPartnerSession = (props) => { document.getElementById("piece_jointe").style.color = "black"; document.getElementById("piece_jointe").style.fontWeight = "normal"; } + */ } function submenu_inscrit() { @@ -1959,6 +1964,9 @@ const DisplayPartnerSession = (props) => { GetListeInscrit(selected_session_id, selected_internal_url); + submenu_color_management("inscrit"); + + /* if (document.getElementById("inscrit")) { document.getElementById("inscrit").style.backgroundColor = "#104277"; document.getElementById("inscrit").style.color = "white"; @@ -2018,12 +2026,15 @@ const DisplayPartnerSession = (props) => { document.getElementById("piece_jointe").style.color = "black"; document.getElementById("piece_jointe").style.fontWeight = "normal"; } + */ } async function submenu_detail_session() { setsubmenu("detail_session"); + submenu_color_management("detail_session"); + /* //await sleep(5); if (!edit_session_form) { desableSessionFields(); @@ -2089,11 +2100,15 @@ const DisplayPartnerSession = (props) => { document.getElementById("piece_jointe").style.fontWeight = "normal"; } + */ + } async function submenu_sequence_session() { setsubmenu("sequence_session"); + submenu_color_management("sequence_session"); + /* //await sleep(5); if (!edit_session_form) { desableSessionFields(); @@ -2159,14 +2174,16 @@ const DisplayPartnerSession = (props) => { document.getElementById("piece_jointe").style.color = "black"; document.getElementById("piece_jointe").style.fontWeight = "normal"; } + */ } async function submenu_emargement() { setsubmenu("emargement"); - - //await sleep(5); + submenu_color_management("emargement"); + + /* //await sleep(5); if (!edit_session_form) { desableSessionFields(); } @@ -2232,14 +2249,16 @@ const DisplayPartnerSession = (props) => { document.getElementById("piece_jointe").style.color = "black"; document.getElementById("piece_jointe").style.fontWeight = "normal"; } + */ } async function submenu_piece_jointe() { setsubmenu("piece_jointe"); - - // await sleep(5); + submenu_color_management("piece_jointe"); + + /* // await sleep(5); if (!edit_session_form) { desableSessionFields(); } @@ -2312,16 +2331,17 @@ const DisplayPartnerSession = (props) => { document.getElementById("emargement").style.color = "black"; document.getElementById("emargement").style.fontWeight = "normal"; } + */ } async function submenu_historique() { setsubmenu("historique"); - + submenu_color_management("historique"); // await sleep(5); if (!edit_session_form) { desableSessionFields(); } - +/* if (document.getElementById("historique")) { document.getElementById("historique").style.backgroundColor = "#104277"; @@ -2390,79 +2410,111 @@ const DisplayPartnerSession = (props) => { document.getElementById("piece_jointe").style.color = "black"; document.getElementById("piece_jointe").style.fontWeight = "normal"; } + */ } + + function submenu_color_management(current_menu) { + const list_sous_menu = ["historique", "attestation", "evaluation", "editique", "emargement", "sequence_session", "detail_session", "inscrit", + "preinscrit", "emargement", "piece_jointe", "q_positionnement"] + + for (let i = 0; i < list_sous_menu.length; i++) { + + var sous_menu = list_sous_menu[i]; + if (String(sous_menu) !== current_menu) { + if (document.getElementById(sous_menu)) { + document.getElementById(sous_menu).style.backgroundColor = "#d8edfc"; + document.getElementById(sous_menu).style.color = "black"; + document.getElementById(sous_menu).style.fontWeight = "normal"; + } + } + + } + + if (document.getElementById(current_menu)) { + document.getElementById(current_menu).style.backgroundColor = "#104277"; + document.getElementById(current_menu).style.color = "white"; + document.getElementById(current_menu).style.fontWeight = "bold"; + } + + } + function submenu_editique() { setsubmenu("editique"); + submenu_color_management("editique"); - if (document.getElementById("editique")) { - document.getElementById("editique").style.backgroundColor = "#104277"; - document.getElementById("editique").style.color = "white"; - document.getElementById("editique").style.fontWeight = "bold"; - - } - - 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("attestation")) { - document.getElementById("attestation").style.backgroundColor = "#d8edfc"; - document.getElementById("attestation").style.color = "black"; - document.getElementById("attestation").style.fontWeight = "normal"; - } - - 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("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("preinscrit")) { - document.getElementById("preinscrit").style.backgroundColor = "#d8edfc"; - document.getElementById("preinscrit").style.color = "black"; - document.getElementById("preinscrit").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("historique")) { - document.getElementById("historique").style.backgroundColor = "#d8edfc"; - document.getElementById("historique").style.color = "black"; - document.getElementById("historique").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("piece_jointe")) { - document.getElementById("piece_jointe").style.backgroundColor = "#d8edfc"; - document.getElementById("piece_jointe").style.color = "black"; - document.getElementById("piece_jointe").style.fontWeight = "normal"; - } + /* + if (document.getElementById("editique")) { + document.getElementById("editique").style.backgroundColor = "#104277"; + document.getElementById("editique").style.color = "white"; + document.getElementById("editique").style.fontWeight = "bold"; + + } + + 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("attestation")) { + document.getElementById("attestation").style.backgroundColor = "#d8edfc"; + document.getElementById("attestation").style.color = "black"; + document.getElementById("attestation").style.fontWeight = "normal"; + } + + 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("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("preinscrit")) { + document.getElementById("preinscrit").style.backgroundColor = "#d8edfc"; + document.getElementById("preinscrit").style.color = "black"; + document.getElementById("preinscrit").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("historique")) { + document.getElementById("historique").style.backgroundColor = "#d8edfc"; + document.getElementById("historique").style.color = "black"; + document.getElementById("historique").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("piece_jointe")) { + document.getElementById("piece_jointe").style.backgroundColor = "#d8edfc"; + document.getElementById("piece_jointe").style.color = "black"; + document.getElementById("piece_jointe").style.fontWeight = "normal"; + } + */ } async function submenu_evaluation() { setsubmenu("evaluation"); + submenu_color_management("evaluation"); + /* //await sleep(5); if (!edit_session_form) { desableSessionFields(); @@ -2530,7 +2582,7 @@ const DisplayPartnerSession = (props) => { document.getElementById("piece_jointe").style.color = "black"; document.getElementById("piece_jointe").style.fontWeight = "normal"; } - +*/ GetListeEvaluation(selected_session_id); } @@ -2615,7 +2667,8 @@ const DisplayPartnerSession = (props) => { async function submenu_q_positionnement() { setsubmenu("positionnement"); - + submenu_color_management("q_positionnement"); + /* //await sleep(5); if (!edit_session_form) { desableSessionFields(); @@ -2691,7 +2744,7 @@ const DisplayPartnerSession = (props) => { document.getElementById("piece_jointe").style.fontWeight = "normal"; } - +*/ } @@ -10013,8 +10066,8 @@ const DisplayPartnerSession = (props) => { /* Recuperation des evaluations */ const [selectionModel_evaluation, setSelectionModel_evaluation] = React.useState([]); const [rowss_evaluation, setRows_evaluation] = useState([]); - - + + const [GetListePreinscrit_evaluation_api, setGetListePreinscrit_evaluation_api] = useState(); const [GetListePreinscrit_evaluation_meassage, setGetListePreinscrit_evaluation_meassage] = useState(); const [GetListePreinscrit_evaluation_result, setGetListePreinscrit_evaluation_result] = useState([]) @@ -11979,9 +12032,9 @@ const DisplayPartnerSession = (props) => { Emargement Les avis Attestation - Positionnement + Q. Position Pièces Jointes - Historique + {/*Historique */} } diff --git a/src/components/Module_Editique.js b/src/components/Module_Editique.js index 6cfdd5b..ef27256 100644 --- a/src/components/Module_Editique.js +++ b/src/components/Module_Editique.js @@ -1137,6 +1137,17 @@ const Module_Editique = (props) => { }; + const [Dialog_Q_POSITIONNEMENT_open, setDialog_Q_POSITIONNEMENT_open] = React.useState(false); + const Dialog_Q_POSITIONNEMENT_handleClose = () => { + + }; + + const Dialog_Q_POSITIONNEMENT_handleClose_buton = () => { + setDialog_Q_POSITIONNEMENT_open(false); + }; + + + const [Dialog_FACTURATION_FORMATION_open, setDialog_FACTURATION_FORMATION_open] = React.useState(false); const Dialog_FACTURATION_FORMATION_handleClose = () => { @@ -2100,6 +2111,46 @@ const Module_Editique = (props) => { {/* FIN Dialog pour gerer les conventions */} + {/* Dialog pour gerer les Q_POSITIONNEMENT */} + + + MySy Information + + + + Cliquez sur l'onglet 'Q_POSITIONNEMENT' pour la gestion des questions de positionnement : + + + Choisir et envoyer les questionnaires de positionnement + Visualiser et exporter les resultats + etc + + + + + + + + + + + + + + Fermer + + + + + + + + {/* FIN Dialog pour gerer les Q_POSITIONNEMENT */} + {/* Dialog pour gerer les FACTURATION_FORMATION */} { setDialog_EVALUATION_FORMATION_open(true); } + else if (String(JSON.parse(document).courrier_template_ref_interne) === "QUESTION_POSITIONNEMENT") { + setDialog_Q_POSITIONNEMENT_open(true); + } + + else if (String(JSON.parse(document).courrier_template_ref_interne) === "FACTURATION_SESSION") { setDialog_FACTURATION_FORMATION_open(true);