From a84d78b3d174083eca507fbf560c74fb6b435a1d Mon Sep 17 00:00:00 2001 From: cherif Date: Mon, 19 Aug 2024 16:25:05 +0200 Subject: [PATCH] 18/08/2024 - 16h55 --- src/components/AddClassManual.js | 4 +- src/components/AddPartnerClient.js | 2 +- src/components/Apprenant.js | 652 ++++++++++++++++-- src/components/DisplayPartnerSession.js | 68 +- .../DisplayPartnerUnite_Enseignement.js | 2 +- src/components/Employes.js | 2 +- .../Module_Evaluation_Positionnement.js | 2 +- .../Module_Session_Planification.js | 214 +----- src/components/Notes_Evaluation.js | 2 +- src/components/Partner.js | 2 +- src/components/Partner_Commande.js | 2 - src/components/Partner_Facture.js | 2 +- src/components/UpdateAttendeeList.js | 2 +- 13 files changed, 641 insertions(+), 315 deletions(-) diff --git a/src/components/AddClassManual.js b/src/components/AddClassManual.js index 905b42c..d0be39a 100644 --- a/src/components/AddClassManual.js +++ b/src/components/AddClassManual.js @@ -459,7 +459,7 @@ const AddClassManual = (props) => { const [Getall_Class_List_UE_api, setGetall_Class_List_UE_api] = useState(); const [Getall_Class_List_UE_message, setGetall_Class_List_UE_message] = useState(); - const [Getall_Class_List_UE_result, setGetall_Class_List_UE_result] = useState(); + const [Getall_Class_List_UE_result, setGetall_Class_List_UE_result] = useState([]); function Getall_Class_List_UE(event) { var form = new FormData(); @@ -740,7 +740,7 @@ const AddClassManual = (props) => { setLoading(false); if (String(res.data.status) === String("true")) { //console.log(" In Getall_Class_List_Evalution res.data.status = " + res.data.status); - //console.log(" In Getall_Class_List_Evalution res.data.message r_class = " + res.data.message); + console.log(" In Getall_Class_List_Evalution res.data.message r_class = " + res.data.message); setGetall_Class_List_Evalution_api("true"); setGetall_Class_List_Evalution_result(res.data.message); diff --git a/src/components/AddPartnerClient.js b/src/components/AddPartnerClient.js index 728e099..0e68ae5 100644 --- a/src/components/AddPartnerClient.js +++ b/src/components/AddPartnerClient.js @@ -3313,7 +3313,7 @@ const AddParnerClient = (props) => { - {/* zzzzz + {/* */} diff --git a/src/components/Apprenant.js b/src/components/Apprenant.js index f2941a6..235f94e 100644 --- a/src/components/Apprenant.js +++ b/src/components/Apprenant.js @@ -8,7 +8,7 @@ import { getCookie, setCookie } from 'react-use-cookie'; import { useHistory } from "react-router-dom"; 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 { FcViewDetails, FcDisapprove } from "react-icons/fc"; import 'react-tooltip/dist/react-tooltip.css' import { Tooltip } from 'react-tooltip' @@ -269,7 +269,7 @@ const Apprenant = (props) => { { field: 'distanciel', headerName: 'Distantiel', hide: false, flex: 1, minWidth: 50, maxWidth: 70 }, { field: 'class_recyclage_delai', headerName: 'Recycl. Delai', hide: false, flex: 1, minWidth: 100, }, - { field: 'class_recyclage_periodicite', headerName: 'Recycl. Perio', hide: false, flex: 1, minWidth: 100, }, + { field: 'class_recyclage_periodicite', headerName: 'Recycl. Perio', hide: false, flex: 1, minWidth: 100, }, { field: 'nb_jour_avant_recyclage', headerName: 'Jrs avant Recycl.', hide: false, flex: 1, minWidth: 100, }, @@ -451,7 +451,7 @@ const Apprenant = (props) => {
@@ -482,6 +482,71 @@ const Apprenant = (props) => { ] + function handleClick_delete_suivi_pedago(event, cellValues) { + + setsuivi_pedago_gridline_id(''); + setdisplay_given_suivi_ped(''); + setgiven_suivi_ped_changed(''); + setgiven_suivi_ped_data_edit_mode(''); + setadd_one_suivi_ped(""); + + var local_apprenant_id = cellValues.row._id; + + Delete_Suivi_Pedago_Data(local_apprenant_id); + } + + + const [Delete_Suivi_Pedago_Data_api, setDelete_Suivi_Pedago_Data_api] = useState(); + const [Delete_Suivi_Pedago_Data_message, setDelete_Suivi_Pedago_Data_message] = useState(); + const [Delete_Suivi_Pedago_Data_result, setDelete_Suivi_Pedago_Data_result] = useState(); + function Delete_Suivi_Pedago_Data(suivi_pedago_id) { + + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", suivi_pedago_id); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_Suivi_Pedagogique/"; + + setLoading(true); + + axios.post(myurl, form).then(res => { + //console.log(" In Delete_Suivi_Pedago_Data res.data.status = " + res.data.status); + //console.log(" In Delete_Suivi_Pedago_Data res.data.message r_class = " + res.data.message); + setLoading(false); + if (String(res.data.status) === String("true")) { + setDelete_Suivi_Pedago_Data_api("true"); + setDelete_Suivi_Pedago_Data_result(res.data.message); + + setselectionModel_suivi_pedagogique([]); + + setsuivi_pedago_gridline_id(''); + setdisplay_given_suivi_ped(''); + setgiven_suivi_ped_changed(''); + setgiven_suivi_ped_data_edit_mode(''); + setadd_one_suivi_ped(""); + + Get_Appenant_List_Suivi_Pedagogique(selected_apprenant_id); + + alert(res.data.message); + } + else { + setDelete_Suivi_Pedago_Data_api("false"); + setDelete_Suivi_Pedago_Data_message(res.data.message); + alert(res.data.message); + + } + + }).catch((error) => { + setLoading(false); + console.log('Delete_Suivi_Pedago_Data : Not good man :( Delete_Suivi_Pedago_Data = ' + error); + setDelete_Suivi_Pedago_Data_api("false"); + alert(" Impossible de supprimer le suivi pédagogique "); + }) + } + + function handleClick_delete_Apprenant(event, cellValues) { setgridline_id(''); @@ -1999,6 +2064,9 @@ const Apprenant = (props) => { const [gridline_id, setgridline_id] = useState(""); + + const [suivi_pedago_gridline_id, setsuivi_pedago_gridline_id] = useState(""); + const [Get_Partner_Object_Specific_Fields_apprenant_api, setGet_Partner_Object_Specific_Fields_apprenant_api] = useState(); const [Get_Partner_Object_Specific_Fields_apprenant_message, setGet_Partner_Object_Specific_Fields_apprenant_message] = useState(); const [Get_Partner_Object_Specific_Fields_apprenant_result, setGet_Partner_Object_Specific_Fields_apprenant_result] = useState(); @@ -2464,9 +2532,19 @@ const Apprenant = (props) => { form.append("session_id", p_detail_suivi_ped_session_id); form.append("date_heure_debut", p_detail_suivi_ped_eval_date_heure_debut); form.append("date_heure_fin", p_detail_suivi_ped_eval_date_heure_fin); - form.append("observation", p_detail_suivi_ped_observation); - form.append("commentaire", p_detail_suivi_ped_comment); + var observation = ""; + if (editorRef_observation.current) { + observation = editorRef_observation.current.getContent(); + } + + form.append("observation", observation); + + var commentaire = ""; + if (editorRef_comment.current) { + commentaire = editorRef_comment.current.getContent(); + } + form.append("commentaire", commentaire); var myurl = ""; @@ -2479,6 +2557,8 @@ const Apprenant = (props) => { } + //console.log(" ### form = ", form); + setLoading(true); axios.post(myurl, form).then(res => { @@ -2495,6 +2575,13 @@ const Apprenant = (props) => { Get_Appenant_List_Suivi_Pedagogique(selected_apprenant_id); + setgiven_suivi_ped_changed(""); + setgiven_suivi_ped_data_edit_mode(""); + setadd_one_suivi_ped(""); + if (!selected_suivi_pedagogique_id || String(selected_suivi_pedagogique_id).length < 5) { + setsuivi_pedago_gridline_id(""); + } + alert(res.data.message); if (document.getElementById('myRef')) { @@ -3347,6 +3434,7 @@ const Apprenant = (props) => { const myRef = useRef(null) + const myRef_detail_suivi_ped = useRef(null) /* *** ALGORITHME @@ -4484,12 +4572,6 @@ const Apprenant = (props) => { }; - - const [display_given_suivi_ped, setdisplay_given_suivi_ped] = useState(""); - const [given_suivi_ped_changed, setgiven_suivi_ped_changed] = useState(""); - const [given_suivi_ped_data_edit_mode, setgiven_suivi_ped_data_edit_mode] = useState(""); - const [add_one_suivi_ped, setadd_one_suivi_ped] = useState(""); - function add_suivi_ped_funct() { Clear_Suivi_Pedago_Field(); @@ -4580,16 +4662,16 @@ const Apprenant = (props) => { } if (mylocaltraining.observation) { - setp_detail_suivi_ped_observation(mylocaltraining.observation); + setfield_contenu_observation(mylocaltraining.observation); } else { - setp_detail_suivi_ped_observation(""); + setfield_contenu_observation(""); } if (mylocaltraining.commentaire) { - setp_detail_suivi_ped_comment(mylocaltraining.commentaire); + setfield_contenu_comment(mylocaltraining.commentaire); } else { - setp_detail_suivi_ped_comment(""); + setfield_contenu_comment(""); } @@ -4624,14 +4706,17 @@ const Apprenant = (props) => { - if (document.getElementById('detail_apprenant')) { + if (document.getElementById('myRef_detail_suivi_ped')) { // myRef.current.scrollIntoView({ behavior: "smooth" }); - var divh = document.getElementById('detail_apprenant').offsetTop; + var divh = document.getElementById('myRef_detail_suivi_ped').offsetTop; window.scrollTo({ top: divh, behavior: "smooth", }); } + + Disable_Suivi_Pedago_Fields(); + } } else if (String(res.data.status) === String("Err_Connexion")) { @@ -4657,6 +4742,70 @@ const Apprenant = (props) => { } + const [display_given_suivi_ped, setdisplay_given_suivi_ped] = useState(""); + const [given_suivi_ped_changed, setgiven_suivi_ped_changed] = useState(""); + const [given_suivi_ped_data_edit_mode, setgiven_suivi_ped_data_edit_mode] = useState(""); + const [add_one_suivi_ped, setadd_one_suivi_ped] = useState(""); + + + function Disable_Suivi_Pedago_Fields() { + setgiven_suivi_ped_data_edit_mode(""); + const list_fields = ['suivi_pedago_detail_ftion', 'suivi_pedago_detail_classe', 'suivi_pedago_detail_ue', + 'suivi_pedago_detail_debut', 'suivi_pedago_detail_fin', 'suivi_pedago_responsable', + 'suivi_pedago_observation', 'suivi_pedago_comment'] + + for (let i = 0; i < list_fields.length; i++) { + if (document.getElementsByName(String(list_fields[i])) && document.getElementsByName(String(list_fields[i]))[0]) { + document.getElementsByName(String(list_fields[i]))[0].disabled = true; + document.getElementsByName(String(list_fields[i]))[0].style.backgroundColor = "#ECEFF1"; + + } + } + + } + + function Enable_Suivi_Pedago_Fields() { + setgiven_suivi_ped_data_edit_mode("1"); + + + const list_fields = ['suivi_pedago_detail_ftion', 'suivi_pedago_detail_classe', 'suivi_pedago_detail_ue', + 'suivi_pedago_detail_debut', 'suivi_pedago_detail_fin', 'suivi_pedago_responsable', + 'suivi_pedago_observation', 'suivi_pedago_comment'] + + for (let i = 0; i < list_fields.length; i++) { + if (document.getElementsByName(String(list_fields[i])) && document.getElementsByName(String(list_fields[i]))[0]) { + document.getElementsByName(String(list_fields[i]))[0].disabled = false; + document.getElementsByName(String(list_fields[i]))[0].style.backgroundColor = "#FFFFFF"; + + } + } + } + + + + const [field_contenu_observation, setfield_contenu_observation] = useState(""); + const editorRef_observation = useRef(null); + const [editorRef_observation_limite, seteditorRef_observation_limite] = useState(800); + + function field_contenu_observation_keyup() { + setgiven_suivi_ped_changed("1"); + } + + const [field_contenu_comment, setfield_contenu_comment] = useState(""); + const editorRef_comment = useRef(null); + const [editorRef_comment_limite, seteditorRef_comment_limite] = useState(800); + + function field_contenu_comment_keyup() { + setgiven_suivi_ped_changed("1"); + } + + function cancel_edit_suivi_ped() { + setgiven_suivi_ped_data_edit_mode(""); + setgiven_suivi_ped_changed(""); + Get_Geven_Suivi_Ped_Data(selected_suivi_pedagogique_id); + + } + return (
@@ -6352,7 +6501,7 @@ const Apprenant = (props) => { }} disabled={false} className="disabled_style enable_style" - value={New_civilite.filter((data) => (data).id === String( p_detail_civilite) )[0].label} + value={New_civilite.filter((data) => (data).id === String(p_detail_civilite))[0].label} /> @@ -7351,8 +7500,10 @@ const Apprenant = (props) => {
} + {String(display_menu_suivi_pedagogique) === "1" && String(add_One_Apprenant) !== "1" && selected_apprenant_id &&
+
@@ -7365,17 +7516,6 @@ const Apprenant = (props) => { height: 500, width: '100%', paddingRight: '1px', - '& .cell--presentiel': { - backgroundColor: '#a2cf6e', - color: '#1a3e72', - fontWeight: 'bold', - }, - '& .cell--distantiel': { - backgroundColor: '#ffac33', - color: '#1a3e72', - fontWeight: 'light', - }, - @@ -7429,11 +7569,14 @@ const Apprenant = (props) => { onRowDoubleClick={(newSelectionModel) => { - setselected_suivi_pedagogique_id(newSelectionModel.row._id); + setsuivi_pedago_gridline_id(newSelectionModel.row.id); Get_Geven_Suivi_Ped_Data(newSelectionModel.row._id); setdisplay_given_suivi_ped("1"); setadd_one_suivi_ped(""); setgiven_suivi_ped_data_edit_mode(""); + setselected_suivi_pedagogique_id(newSelectionModel.row._id); + + //console.log(" setselected_suivi_pedagogique_id = ", newSelectionModel.row._id); }} @@ -7457,7 +7600,7 @@ const Apprenant = (props) => { getRowClassName={(params) => { // Pour la gestion de la couleur de zone double cliquée - if (String(params.row.id) === String(gridline_id)) { + if (String(params.row.id) === String(suivi_pedago_gridline_id)) { return 'line--statut--selected'; } else if (parseInt(String(params.row.id)) % 2 === 0) { @@ -7510,7 +7653,8 @@ const Apprenant = (props) => {
-
+
+ {String(add_one_suivi_ped) === "1" && String(display_given_suivi_ped) !== "1" &&
@@ -7745,17 +7889,442 @@ const Apprenant = (props) => { {String(add_one_suivi_ped) !== "1" && String(display_given_suivi_ped) === "1" &&
- affichage suivi Pedagogique - {String(apprenant_data_edit_mode) !== "1" &&
- en mode lecture + {String(given_suivi_ped_data_edit_mode) !== "1" &&
+ en mode lecture
+ +
Formation
+ {New_Getall_Partner_Class_Reduice_Fields_result && New_Getall_Partner_Class_Reduice_Fields_result.length > 0 && (data)._id === String(p_detail_suivi_ped_class_id))[0].label} + + + />} + + + +
+ + +
Classe
+ {New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 && (data)._id === String(p_detail_suivi_ped_session_id))[0].label} + + + />} + +
+ +
Unite D'enseignement
+ {New_Getall_Partner_List_UE_result && New_Getall_Partner_List_UE_result.length > 0 && (data)._id === String(p_detail_suivi_ped_class_eu_id))[0].label} + + />} + + + + +
+ +
Début
+ + + +
+ + + +
Fin
+ + + +
+ +
Responsable
+ {New_Getall_Training_Employee_No_Filter_result && New_Getall_Training_Employee_No_Filter_result.length > 0 && (data)._id === String(p_detail_suivi_ped_responsable_id))[0].label} + + />} + + +
+ +
+ Observation
+
+ + editorRef_observation.current = editor} + initialValue={field_contenu_observation} + onKeyUp={field_contenu_observation_keyup} + //disabled={false} + + init={{ + resize: false, + height: 300, + menubar: false, + editable_root: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> +
+
+ +
+ Commentaire
+
+ + editorRef_comment.current = editor} + initialValue={field_contenu_comment} + onKeyUp={field_contenu_comment_keyup} + //disabled={false} + + init={{ + resize: false, + height: 300, + menubar: false, + editable_root: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> +
+
+ + +
} - {String(apprenant_data_edit_mode) === "1" &&
- en mode edit + {String(given_suivi_ped_data_edit_mode) === "1" &&
+ en mode edit
+ +
Formation
+ {New_Getall_Partner_Class_Reduice_Fields_result && New_Getall_Partner_Class_Reduice_Fields_result.length > 0 && + + (data)._id === String(p_detail_suivi_ped_class_id))[0].label} + //value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_class_id))[0].label} + onChange={(event, value) => { + if (value && value._id) { + Get_List_UE_From_Class_Id(value._id); + setp_detail_suivi_ped_class_id(value._id); + setp_detail_suivi_ped_class_internal_url(value.internal_url); + + } else { + Get_List_UE_From_Class_Id(""); + setp_detail_suivi_ped_class_id(""); + setp_detail_suivi_ped_class_internal_url(""); + + } + setgiven_suivi_ped_changed("1"); + + // Quand on modifie la formation, la session et l'UE sont reinitialitées + setp_detail_suivi_ped_session_id(""); + setp_detail_suivi_ped_class_eu_id(""); + }} + + renderInput={(params) => + } + /> + + } + +
+ + +
Classe
+ {New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 && + + (data).class_internal_url === String(p_detail_suivi_ped_class_internal_url))} + value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_suivi_ped_session_id))[0].label} + onChange={(event, value) => { + if (value && value._id) { + setp_detail_suivi_ped_session_id(value._id); + + } else { + setp_detail_suivi_ped_session_id(""); + + } + setgiven_suivi_ped_changed("1"); + }} + + renderInput={(params) => + } + /> + + } + +
+ +
Unite D'enseignement
+ {New_Get_List_UE_From_Class_Id_result && + + (data).class_id === String(p_detail_suivi_ped_class_id))} + value={New_Getall_Partner_List_UE_result.filter((data) => (data)._id === String(p_detail_suivi_ped_class_eu_id))[0].label} + + // value={New_Get_List_UE_From_Class_Id_result.filter((data) => (data)._id === String(p_detail_class_eu_id))[0].label} + + onChange={(event, value) => { + if (value && value._id) { + + //console.log("### value = ", value); + setp_detail_suivi_ped_class_eu_id(value._id); + + } else { + setp_detail_suivi_ped_class_eu_id(""); + + } + setgiven_suivi_ped_changed("1"); + }} + + renderInput={(params) => + } + /> + + } + +
+ +
Début
+ { + setp_detail_suivi_ped_eval_date_heure_debut(format(date, 'dd/MM/yyyy HH:mm')); + setgiven_suivi_ped_changed("1"); + } + } + + + className="disabled_style enable_style" + locale='fr-FR' + showTimeSelect + timeFormat="HH:mm" + timeIntervals={15} + dateFormat="dd/MM/yyyy HH:mm" + is24Hour + + /> + +
+ + +
Fin
+ { + + setp_detail_suivi_ped_eval_date_heure_fin(format(date, 'dd/MM/yyyy HH:mm')); + setgiven_suivi_ped_changed("1"); + } + } + + + className="disabled_style enable_style" + locale='fr-FR' + showTimeSelect + timeFormat="HH:mm" + timeIntervals={15} + dateFormat="dd/MM/yyyy HH:mm" + is24Hour + + /> + +
+ +
Responsable
+ {New_Getall_Training_Employee_No_Filter_result && New_Getall_Training_Employee_No_Filter_result.length > 0 && + + (data)._id === String(p_detail_suivi_ped_responsable_id))[0].label} + + onChange={(event, value) => { + if (value && value._id) { + setp_detail_suivi_ped_responsable_id(value._id); + + } else { + setp_detail_suivi_ped_responsable_id(""); + + } + setgiven_suivi_ped_changed("1"); + }} + + renderInput={(params) => + } + /> + + } + +
+ + +
+ Observation
+
+ + editorRef_observation.current = editor} + initialValue={field_contenu_observation} + onKeyUp={field_contenu_observation_keyup} + //disabled={false} + + init={{ + resize: false, + height: 300, + menubar: false, + editable_root: true, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> +
+
+ +
+ Commentaire
+
+ + editorRef_comment.current = editor} + initialValue={field_contenu_comment} + onKeyUp={field_contenu_comment_keyup} + //disabled={false} + + init={{ + resize: false, + height: 300, + menubar: false, + editable_root: true, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> +
+
+ + +
} @@ -7768,15 +8337,15 @@ const Apprenant = (props) => {
- {String(given_suivi_ped_changed) === "1" && String(given_suivi_ped_data_edit_mode) === "1" &&
+ {String(given_suivi_ped_changed) === "1" &&
-
} {String(given_suivi_ped_data_edit_mode) === "1" &&
-
}
@@ -7784,7 +8353,7 @@ const Apprenant = (props) => { {String(given_suivi_ped_data_edit_mode) !== "1" &&
- @@ -7797,6 +8366,7 @@ const Apprenant = (props) => {
} + diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 9bc23eb..19f713d 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -7726,7 +7726,7 @@ const DisplayPartnerSession = (props) => { async function actionmass_ftion_Traitemet() { - // zzzzz + // var liste_session = "" if (display_session_with_alert && display_session_with_alert === true) liste_session = GetSelectedRowsSession_filtered_on_alert(); @@ -13634,24 +13634,7 @@ const DisplayPartnerSession = (props) => { />} - {/* { - setp_filtre1(e.target.value) - }} - > - - Code Session    - Code Formation (code externe)   - Titre Formation   - Date début session   - Date fin session   - - */} +
@@ -13734,26 +13717,7 @@ const DisplayPartnerSession = (props) => { /> } />} - {/* { - setp_filtre2(e.target.value) - }} - > - - Code Session    - Code Formation (code externe)   - Titre Formation   - Date début session   - Date fin session   - - - */} +
{String(p_filtre2).length > 3 && @@ -15004,31 +14968,7 @@ const DisplayPartnerSession = (props) => { } /> - {/* { - setp_session_etape(e.target.value); - IssessionChanged(); - }} - > - {Getall_Parter_OR_Default_Session_Steps_result && - Getall_Parter_OR_Default_Session_Steps_result.map((step) => ( - - {JSON.parse(step).session_step_name}  - - - ))} - */} +
} {!edit_session_form &&
Etape
diff --git a/src/components/DisplayPartnerUnite_Enseignement.js b/src/components/DisplayPartnerUnite_Enseignement.js index 5b65536..e26332f 100644 --- a/src/components/DisplayPartnerUnite_Enseignement.js +++ b/src/components/DisplayPartnerUnite_Enseignement.js @@ -1302,7 +1302,7 @@ const DisplayPartnerUnite_Enseignement = (props) => { setLoading(false); if (String(res.data.status) === String("true")) { //console.log(" In Getall_UE_Planif_data res.data.status = " + res.data.status); - console.log(" In Getall_UE_Planif_data res.data.message r_class = " + res.data.message); + //console.log(" In Getall_UE_Planif_data res.data.message r_class = " + res.data.message); setGetall_UE_Planif_data_api("true"); setGetall_UE_Planif_data_result(res.data.message); diff --git a/src/components/Employes.js b/src/components/Employes.js index 9c8e8bb..a6c3300 100644 --- a/src/components/Employes.js +++ b/src/components/Employes.js @@ -2685,7 +2685,7 @@ const Employes = (props) => { new_data2.push(node); if (new_data2.length > 0) { setNew_Get_List_RH_Profils_result(new_data2); - //console.log(" ### zzznew_data2 = ", new_data2); + //console.log(" ### new_data2 = ", new_data2); } diff --git a/src/components/Module_Evaluation_Positionnement.js b/src/components/Module_Evaluation_Positionnement.js index e1ef0ee..999058f 100644 --- a/src/components/Module_Evaluation_Positionnement.js +++ b/src/components/Module_Evaluation_Positionnement.js @@ -299,7 +299,7 @@ const Module_Evaluation_Positionnement = (props) => { form.append("sending_date", ""); - //alert(" mysession = "+mysession); zzzz + //alert(" mysession = "+mysession); var myurl = process.env.REACT_APP_API_URL + "myclass/api/Init_Survey_Tab_For_All_Session_Inscrit/"; diff --git a/src/components/Module_Session_Planification.js b/src/components/Module_Session_Planification.js index c1691f3..d6d6a07 100644 --- a/src/components/Module_Session_Planification.js +++ b/src/components/Module_Session_Planification.js @@ -378,189 +378,6 @@ const Module_Session_Planification = (props) => { { field: 'commentaire', headerName: 'Commentaire', width: 0, flex: 0, hide: true, editable: false, }, - { - field: "Detail", headerName: 'Voir detail', minWidth: 200, flex: 1, - renderCell: (cellValues) => { - return ( - - - - ); - } - }, - - { - field: "modifier", headerName: 'Modifier', minWidth: 200, flex: 1, - renderCell: (cellValues) => { - return ( - - - - ); - } - }, - - { - field: "delete", headerName: 'Supprimer', minWidth: 200, flex: 1, - renderCell: (cellValues) => { - return ( - - { - - }} - > - - - } - modal - nested - position="center center" - > - {close => ( -
- -
MySy Information
-
- {' '} - - En confirmant cette opération, la séquence sera définitivement supprimée.
- -
-
-
- - -
-
- -
-
-
- )} -
- - - ); - } - } - ] @@ -1606,7 +1423,7 @@ const Module_Session_Planification = (props) => { setLoading(false); if (String(res.data.status) === String("true")) { //console.log(" In Getall_Sequence_Of_Session res.data.status = " + res.data.status); - console.log(" In Getall_Sequence_Of_Session res.data.message r_class = " + res.data.message); + // console.log(" In Getall_Sequence_Of_Session res.data.message r_class = " + res.data.message); setGetall_Sequence_Of_Session_api("true"); setGetall_Sequence_Of_Session_result(res.data.message); @@ -3300,7 +3117,7 @@ const Module_Session_Planification = (props) => { const [Apply_Planning_To_Session_result, setApply_Planning_To_Session_result] = useState(); const Apply_Planning_To_Session = event => { - var form = new FormData(); //zzzz + var form = new FormData(); const stored_cookie = getCookie('tokenmysypart'); form.append("token", stored_cookie); @@ -3401,7 +3218,7 @@ const Module_Session_Planification = (props) => { {Dialog_RECORD_MODEL_PLANNING_message} - +
Code
{ {new_planification_lines && new_planification_lines.length > 0 &&
- ici afficher la planification nouvelle
+
+
Proposition de Nouvelle planification
{display_view && String(display_view) === "list" &&
@@ -6203,7 +6021,7 @@ const Module_Session_Planification = (props) => { > { @@ -6381,15 +6199,15 @@ const Module_Session_Planification = (props) => { @@ -6445,8 +6263,8 @@ const Module_Session_Planification = (props) => { className="detail_class_submenu bton_add_session" id='menu_import_participant' name='menu_import_participant'>Activer Modèle   - - + + } {String(active_planif_modele) === "1" && }
} - {String(active_planif_modele) === "1" &&
+ {String(active_planif_modele) === "1" &&