From df10ed1c3ec90258df3f639e61674e6bbe4dd948 Mon Sep 17 00:00:00 2001 From: Cherif Date: Sat, 6 Jun 2026 20:55:03 +0200 Subject: [PATCH] 06/06/2026 - 21h --- .../Module_Session_Notes_Classement.js | 2073 ++++++++++++++--- 1 file changed, 1810 insertions(+), 263 deletions(-) diff --git a/src/components/Module_Session_Notes_Classement.js b/src/components/Module_Session_Notes_Classement.js index 241b43a..0492484 100644 --- a/src/components/Module_Session_Notes_Classement.js +++ b/src/components/Module_Session_Notes_Classement.js @@ -51,6 +51,8 @@ import { } from '@mui/x-data-grid'; import * as XLSX from 'xlsx'; import { FcInfo } from "react-icons/fc"; +import { Typography, LinearProgress } from '@mui/material'; +import styled from 'styled-components'; import { FcAcceptDatabase, FcPlanner } from "react-icons/fc"; @@ -99,6 +101,31 @@ const Module_Session_Notes_Classement = (props) => { const [isLoading, setLoading] = useState(); + const BorderLinearProgress = styled(LinearProgress)(() => ({ + height: "20px", + width: "60px", + borderRadius: "2px", + backgroundColor: " #ebf5fb", + "& .MuiLinearProgress-bar": { + backgroundColor: "#1bd900", + transition: "none", + transformOrigin: "left", + }, + })); + + const BorderLinearProgress_Red = styled(LinearProgress)(() => ({ + height: "20px", + width: "60px", + borderRadius: "2px", + backgroundColor: " #ebf5fb", + "& .MuiLinearProgress-bar": { + backgroundColor: "#d90024", + transition: "none", + transformOrigin: "left", + }, + })); + + function ExpandableCell_50({ value }) { const [expanded, setExpanded] = React.useState(false); @@ -212,9 +239,48 @@ const Module_Session_Notes_Classement = (props) => { { field: 'domaine_competence_id', headerName: 'domaine_competence_id', hide: true }, { field: 'class_id', headerName: 'class_id', hide: true }, { field: 'ue_id', headerName: 'ue_id', hide: true }, + { field: 'absence_deplace_seuil', headerName: 'absence_deplace_seuil', hide: true }, + { field: 'domaine_competence_seuil_absence', headerName: 'do_comp_seuil_absence', hide: true }, { field: 'diplome_id_code', headerName: 'Diplome', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, + { + field: 'pourcentage_absence_non_justifed', headerName: '%Abs. NJ', align: "center", flex: 1, minWidth: 100, maxWidth: 150, flex: 1, + align: "left", + renderCell: (params) => { + return ( + <> + {params.row.absence_deplace_seuil !== "1" && params.row.absence_deplace_seuil && <> + + {`${(params?.row.pourcentage_absence_non_justifed)}%`} + } + {params.row.absence_deplace_seuil === "1" && params.row.absence_deplace_seuil && <> + + {`${(params?.row.pourcentage_absence_non_justifed)}%`} + } + + ); + }, + }, + { field: 'is_domaine_competence_validated', headerName: 'Val Dom_Compt.', maxWidth: 100, flex: 1, renderCell: (params) => , renderCell: (cellValues) => { @@ -374,6 +440,185 @@ const Module_Session_Notes_Classement = (props) => { ] + const columns_simplied_list_session_note_classement_final_BC_Diplome_UE = [ + { field: 'id', headerName: 'id', hide: true }, + { field: '_id', headerName: '_id', hide: true }, + { field: 'session_id', headerName: 'session_id', hide: true }, + { field: 'inscrit_id', headerName: 'inscrit_id', hide: true }, + { field: 'diplome_id', headerName: 'diplome_id', hide: true }, + { field: 'domaine_competence_id', headerName: 'domaine_competence_id', hide: true }, + { field: 'class_id', headerName: 'class_id', hide: true }, + { field: 'absence_deplace_seuil', headerName: 'absence_deplace_seuil', hide: true }, + { field: 'domaine_competence_seuil_absence', headerName: 'do_comp_seuil_absence', hide: true }, + + { field: 'diplome_id_code', headerName: 'Diplome', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, + + { + field: 'pourcentage_absence_non_justifed', headerName: '%Abs. NJ', align: "center", flex: 1, minWidth: 100, maxWidth: 150, flex: 1, + align: "left", + renderCell: (params) => { + return ( + <> + {params.row.absence_deplace_seuil !== "1" && params.row.absence_deplace_seuil && <> + + {`${(params?.row.pourcentage_absence_non_justifed)}%`} + } + {params.row.absence_deplace_seuil === "1" && params.row.absence_deplace_seuil && <> + + {`${(params?.row.pourcentage_absence_non_justifed)}%`} + } + + ); + }, + }, + + { + field: 'is_domaine_competence_validated', headerName: 'Val Dom_Compt.', maxWidth: 100, flex: 1, renderCell: (params) => , + renderCell: (cellValues) => { + return ( +
+ {cellValues.row.is_domaine_competence_validated && String(cellValues.row.is_domaine_competence_validated) === "1" && } + {cellValues.row.is_domaine_competence_validated && String(cellValues.row.is_domaine_competence_validated) !== "1" && ""} + +
+ + ); + } + }, + + + { field: 'domaine_competence_id_code', headerName: 'Dom. compét.', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, + + + { field: 'inscription_id_nom', headerName: 'Nom', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, + { field: 'inscription_id_prenom', headerName: 'Prenom', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, + + { field: 'jury_observation_dom_compet', headerName: 'Observ. Jury', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, + + { field: 'jury_note_dom_compet', headerName: 'Note Jury', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, + + { + field: 'jury_validation_dom_compet', headerName: 'Valid. Jury.', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , + renderCell: (cellValues) => { + return ( +
+ {cellValues.row.jury_validation_dom_compet && String(cellValues.row.jury_validation_dom_compet) === "1" && "Oui"} + {cellValues.row.jury_validation_dom_compet && String(cellValues.row.jury_validation_dom_compet) === "0" && "Non"} + +
+ + ); + } + }, + + + + { + field: 'gestion', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", + renderCell: (cellValues) => { + return ( +
+ {props.jury_id && String(props.jury_id).length > 5 && } + + {(!props.jury_id || String(props.jury_id).length <= 5) && } +
+ ); + }, + } + + ] + const columns_list_session_note_classement_final = [ { field: 'id', headerName: 'id', hide: true }, { field: '_id', headerName: '_id', hide: true }, @@ -878,6 +1123,8 @@ const Module_Session_Notes_Classement = (props) => { setdialogOpen_push_lms(false) }; + const [working_simply_cellValues, setworking_simply_cellValues] = useState(false); + const [working_cellValues, setworking_cellValues] = useState(false); @@ -1446,6 +1693,8 @@ const Module_Session_Notes_Classement = (props) => { Getall_Detail_Note_of_BC_Diplome_UE(); + Getall_Partner_Domaine_Competence(); + }, []) @@ -1853,6 +2102,8 @@ const Module_Session_Notes_Classement = (props) => { const [gridline_session_inscrit_id, setgridline_session_inscrit_id] = useState(""); const [selectionModel_note_Session_classement, setselectionModel_note_Session_classement] = React.useState([]); + const [selectionModel_note_Session_classement_simple, setselectionModel_note_Session_classement_simple] = React.useState([]); + const [gridline_id, setgridline_id] = useState(""); const [selectionModel_note_UE_classement, setselectionModel_note_UE_classement] = React.useState([]); @@ -1877,6 +2128,37 @@ const Module_Session_Notes_Classement = (props) => { + + const [p_filtre1_classement, setp_filtre1_classement] = useState(""); + const [p_filtre1_value_classement, setp_filtre1_value_classement] = useState(""); + + const [p_filtre2_classement, setp_filtre2_classement] = useState(""); + const [p_filtre2_value_classement, setp_filtre2_value_classement] = useState(""); + + const [p_filtre3_classement, setp_filtre3_classement] = useState(""); + const [p_filtre3_value_classement, setp_filtre3_value_classement] = useState(""); + + const [p_filtre4_classement, setp_filtre4_classement] = useState(""); + const [p_filtre4_value_classement, setp_filtre4_value_classement] = useState(""); + + function clean_all_filters_classement() { + + setp_filtre1_classement(""); + setp_filtre1_value_classement(""); + + setp_filtre2_classement(""); + setp_filtre2_value_classement(""); + + setp_filtre3_classement(""); + setp_filtre3_value_classement(""); + + setp_filtre4_classement(""); + setp_filtre4_value_classement(""); + + + } + + const [p_filtre1, setp_filtre1] = useState(""); const [p_filtre1_value, setp_filtre1_value] = useState(""); @@ -1919,7 +2201,16 @@ const Module_Session_Notes_Classement = (props) => { const New_Option_Filter = [ { "id": "ue_id", "label": "UE/matière", "value": "ue_id" }, - { "id": "inscrit_id", "label": "Apprenant ", "value": "inscrit_id" }, + { "id": "inscrit_id", "label": "Etudiant ", "value": "inscrit_id" }, + { "id": "semestre", "label": "Semestre ", "value": "semestre" }, + { "id": "", "label": "", "value": "" }, + { "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres. + ] + + + const New_Option_Filter_classement_final = [ + { "id": "domaine_competence_id", "label": "Bloc Compétence ", "value": "domaine_competence_id" }, + { "id": "inscrit_id", "label": "Etudiant ", "value": "inscrit_id" }, { "id": "semestre", "label": "Semestre ", "value": "semestre" }, { "id": "", "label": "", "value": "" }, { "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres. @@ -2178,10 +2469,25 @@ const Module_Session_Notes_Classement = (props) => { }; + const [p_detail_jury_observation_bc, setp_detail_jury_observation_bc] = useState(""); + const [p_detail_jury_note_bc, setp_detail_jury_note_bc] = useState(""); + const [p_detail_jury_validation_bc, setp_detail_jury_validation_bc] = useState(""); + + const [Dialog_JURY_INFO_BC_open, setDialog_JURY_INFO_BC_open] = React.useState(false); + + const Dialog_JURY_INFO_handleClose_buton_BC = () => { + setDialog_JURY_INFO_BC_open(false); + setp_detail_jury_observation_bc(""); + setp_detail_jury_note_bc(""); + setp_detail_jury_validation_bc(""); + }; + + const [p_detail_jury_ue_observation, setp_detail_jury_ue_observation] = useState(""); const [p_detail_jury_ue_note, setp_detail_jury_ue_note] = useState(""); const [p_detail_jury_ue_validation, setp_detail_jury_ue_validation] = useState(""); + const [selected_jury_type_for_observation, setselected_jury_type_for_observation] = useState(""); const [session_formation_final_note_classement_id, setsession_formation_final_note_classement_id] = useState(""); @@ -2252,6 +2558,74 @@ const Module_Session_Notes_Classement = (props) => { }) } + + const [Update_Jury_Promo_List_Inscrit_for_BC_api, setUpdate_Jury_Promo_List_Inscrit_for_BC_api] = useState(); + const [Update_Jury_Promo_List_Inscrit_for_BC_message, setUpdate_Jury_Promo_List_Inscrit_for_BC_message] = useState(); + const [Update_Jury_Promo_List_Inscrit_for_BC_result, setUpdate_Jury_Promo_List_Inscrit_for_BC_result] = useState([]); + function Update_Jury_Promo_List_Inscrit_for_BC() { + var form = new FormData(); + //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA"); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + + form.append("inscrit_id", working_simply_cellValues.row.inscrit_id); + form.append("domaine_competence_id", working_simply_cellValues.row.domaine_competence_id); + form.append("diplome_id", working_simply_cellValues.row.diplome_id); + + + form.append("jury_observation_dom_compet", p_detail_jury_observation_bc); + form.append("jury_note_dom_compet", p_detail_jury_note_bc); + form.append("jury_validation_dom_compet", p_detail_jury_validation_bc); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Update_BC_Observation_work_calcul_moyenne_by_ue_bc"; + + + setLoading(true); + axios.post(myurl, form).then(res => { + //console.log(" In Update_Jury_Promo_List_Inscrit_for_BC res.data.status = " + res.data.status); + //console.log(" In Update_Jury_Promo_List_Inscrit_for_BC res.data.message r_class = " + res.data.message); + + setLoading(false); + + if (String(res.data.status) === String("true")) { + setUpdate_Jury_Promo_List_Inscrit_for_BC_api("true"); + setUpdate_Jury_Promo_List_Inscrit_for_BC_result(res.data.message); + + Dialog_JURY_INFO_handleClose_buton_BC(); + // Getall_Session_Final_Note_Classement(); + Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE("1"); + + // alert(res.data.message); + setdisplay_alert_mysy("1"); + setalert_message(res.data.message); + setalert_type("success"); + } + else { + setUpdate_Jury_Promo_List_Inscrit_for_BC_api("false"); + setUpdate_Jury_Promo_List_Inscrit_for_BC_message(res.data.message); + // alert(res.data.message); + setdisplay_alert_mysy("1"); + setalert_message(res.data.message); + setalert_type("error"); + } + + }).catch((error) => { + setLoading(false); + + console.log('UpdateStagiaireData : Not good man :( Update_Jury_Promo_List_Inscrit_for_BC = ' + error); + setUpdate_Jury_Promo_List_Inscrit_for_BC_api("false"); + + setdisplay_alert_mysy("1"); + setalert_message(" Impossible d'ajouter ou mettre à jour la décision du jury "); + setalert_type("error"); + + }) + } + + const [Update_Jury_UE_List_Inscrit_api, setUpdate_Jury_UE_List_Inscrit_api] = useState(); const [Update_Jury_UE_List_Inscrit_message, setUpdate_Jury_UE_List_Inscrit_message] = useState(); const [Update_Jury_UE_List_Inscrit_result, setUpdate_Jury_UE_List_Inscrit_result] = useState([]); @@ -2551,14 +2925,21 @@ const Module_Session_Notes_Classement = (props) => { else { setAdd_Inscription_Apprenant_api("false"); setAdd_Inscription_Apprenant_message(res.data.message); - alert(res.data.message); + setdisplay_alert_mysy("1"); + setalert_message(res.data.message); + setalert_type("error"); + // alert(res.data.message); } }).catch((error) => { setLoading(false); console.warn('Add_Inscription_Apprenant : Not good man :( Add_Inscription_Apprenant = ' + error); setAdd_Inscription_Apprenant_api("false"); - alert(" Impossible d'ajouter l'inscription "); + // alert(" Impossible d'ajouter l'inscription "); + + setdisplay_alert_mysy("1"); + setalert_message(" Impossible d'ajouter l'inscription "); + setalert_type("error"); }) } @@ -2585,20 +2966,51 @@ const Module_Session_Notes_Classement = (props) => { var nom_fichier_cmd = "Bulletin.zip"; + var tab_semestre = []; + var tab_diplome = [] var tab_inscrit_ids = [] for (var i = 0; i < selectionModel_note_Session_classement.length; i++) { var myid = parseInt(String(selectionModel_note_Session_classement[i])); - var line = New_Getall_Session_Final_Note_Classement_result[myid]; - tab_inscrit_ids.push(line._id); - //console.log(rowss[myid]['external_code']); + var line = New_Getall_Session_Final_Note_Classement_By_BC_Diplome_UE_result[myid]; + + //console.log(" ### line = ", line); + + + if (!tab_inscrit_ids.includes(line.inscrit_id)) { + tab_inscrit_ids.push(line.inscrit_id); + } + + + if (!tab_semestre.includes(line.semestre)) { + tab_semestre.push(line.semestre); + } + + if (!tab_diplome.includes(line.diplome_id)) { + tab_diplome.push(line.diplome_id); + } + } + + if (tab_diplome.length > 1) { + setdisplay_alert_mysy("1"); + setalert_message(" Vous ne devez sélectionner d'un seule diplome. "); + setalert_type("error"); + return; + } + + var diplome_id = tab_diplome["0"] + + var final_semestre_data = tab_semestre; + if (tab_semestre.length <= 0) { + final_semestre_data = "-" } // console.log(" ### tab_inscrit_ids = ", tab_inscrit_ids) - var url = process.env.REACT_APP_API_URL + "myclass/api/Prepare_and_Send_Inscrit_Bulletin_Note_By_PDF/" + stored_cookie + "/" + tab_inscrit_ids; - console.log(" ## url = ", url); + var url = process.env.REACT_APP_API_URL + "myclass/api/Prepare_and_Send_Inscrit_Bulletin_Note_By_PDF/" + stored_cookie + "/" + tab_inscrit_ids + "/" + diplome_id + "/" + final_semestre_data; + + console.log(" ## url bulletin = ", url); setLoading(true); axios.get(url, { responseType: 'blob', },) @@ -3005,12 +3417,16 @@ const Module_Session_Notes_Classement = (props) => { + + const [classement_wiew_mode, setclassement_wiew_mode] = useState("simple"); + + const [New_Getall_Session_Final_Note_Classement_By_BC_Diplome_UE_result, setNew_Getall_Session_Final_Note_Classement_By_BC_Diplome_UE_result] = useState([]); const [Getall_Session_Final_Note_Classement_By_BC_Diplome_UE_api, setGetall_Session_Final_Note_Classement_By_BC_Diplome_UE_api] = useState(); const [Getall_Session_Final_Note_Classement_By_BC_Diplome_UE_message, setGetall_Session_Final_Note_Classement_By_BC_Diplome_UE_message] = useState(); const [Getall_Session_Final_Note_Classement_By_BC_Diplome_UE_result, setGetall_Session_Final_Note_Classement_By_BC_Diplome_UE_result] = useState([]); - function Getall_Session_Final_Note_Classement_By_BC_Diplome_UE(event) { + function Getall_Session_Final_Note_Classement_By_BC_Diplome_UE(local_use_filter = "") { var form = new FormData(); @@ -3020,6 +3436,70 @@ const Module_Session_Notes_Classement = (props) => { form.append("tab_session_id", props.related_collection_recid); + if (local_use_filter && local_use_filter === "1") { + // Recuperation des parametres + var filtre1 = p_filtre1; + var filtre2 = p_filtre2; + var filtre3 = p_filtre3; + + + var filtre1_value = ""; + var filtre2_value = ""; + var filtre3_value = ""; + + // Recuperation des valeurs de filtres + + if (p_filtre1_value_classement && String(p_filtre1_classement) === "inscrit_id") { + filtre1_value = p_filtre1_value_classement; + form.append("tab_inscrit_id", filtre1_value); + } + + else if (p_filtre1_value_classement && String(p_filtre1_classement) === "semestre") { + filtre1_value = p_filtre1_value_classement; + form.append("semestre", filtre1_value); + } + + else if (p_filtre1_value_classement && String(p_filtre1_classement) === "domaine_competence_id") { + filtre1_value = p_filtre1_value_classement; + form.append("tab_domaine_competence_id", filtre1_value); + } + + + if (p_filtre2_value_classement && String(p_filtre2_classement) === "inscrit_id") { + filtre2_value = p_filtre2_value_classement; + form.append("tab_inscrit_id", filtre2_value); + } + + else if (p_filtre2_value_classement && String(p_filtre2_classement) === "semestre") { + filtre2_value = p_filtre2_value_classement; + form.append("semestre", filtre2_value); + } + + else if (p_filtre2_value_classement && String(p_filtre2_classement) === "domaine_competence_id") { + filtre2_value = p_filtre2_value_classement; + form.append("tab_domaine_competence_id", filtre2_value); + } + + + + //--- + if (p_filtre3_value_classement && String(p_filtre3_classement) === "inscrit_id") { + filtre3_value = p_filtre3_value_classement; + form.append("tab_inscrit_id", filtre3_value); + } + + else if (p_filtre3_value_classement && String(p_filtre3_classement) === "semestre") { + filtre3_value = p_filtre3_value_classement; + form.append("semestre", filtre3_value); + } + + else if (p_filtre3_value_classement && String(p_filtre3_classement) === "domaine_competence_id") { + filtre3_value = p_filtre3_value_classement; + form.append("tab_domaine_competence_id", filtre3_value); + } + + + } var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Evaluation_by_ue_bc_diplome_session_semestre_With_Filter"; axios.post(myurl, form).then(res => { @@ -3066,6 +3546,14 @@ const Module_Session_Notes_Classement = (props) => { var jury_observation = JSON.parse(x).jury_observation; var jury_validation = JSON.parse(x).jury_validation; + var pourcentage_absence_non_justifed = JSON.parse(x).pourcentage_absence_non_justifed; + var total_heure_absence_non_justifie = JSON.parse(x).total_heure_absence_non_justifie; + var domaine_competence_total_heure = JSON.parse(x).domaine_competence_total_heure; + + var absence_deplace_seuil = JSON.parse(x).absence_deplace_seuil; + var domaine_competence_seuil_absence = JSON.parse(x).domaine_competence_seuil_absence; + + //--- var node = { @@ -3100,8 +3588,16 @@ const Module_Session_Notes_Classement = (props) => { "jury_observation": jury_observation, "jury_validation": jury_validation, + "pourcentage_absence_non_justifed": pourcentage_absence_non_justifed, + "total_heure_absence_non_justifie": total_heure_absence_non_justifie, + "domaine_competence_total_heure": domaine_competence_total_heure, + + "absence_deplace_seuil": absence_deplace_seuil, + "domaine_competence_seuil_absence": domaine_competence_seuil_absence, + }; new_data2.push(node); + // console.log(" ### node == ", node); }); @@ -3133,12 +3629,13 @@ const Module_Session_Notes_Classement = (props) => { - const [New_Getall_Detail_Note_of_BC_Diplome_UE_result, setNew_Getall_Detail_Note_of_BC_Diplome_UE_result] = useState([]); - const [Getall_Detail_Note_of_BC_Diplome_UE_api, setGetall_Detail_Note_of_BC_Diplome_UE_api] = useState(); - const [Getall_Detail_Note_of_BC_Diplome_UE_message, setGetall_Detail_Note_of_BC_Diplome_UE_message] = useState(); - const [Getall_Detail_Note_of_BC_Diplome_UE_result, setGetall_Detail_Note_of_BC_Diplome_UE_result] = useState([]); - function Getall_Detail_Note_of_BC_Diplome_UE(event) { + const [New_Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_result, setNew_Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_result] = useState([]); + + const [Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_api, setGetall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_api] = useState(); + const [Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_message, setGetall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_message] = useState(); + const [Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_result, setGetall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_result] = useState([]); + function Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE(local_use_filter = "") { var form = new FormData(); @@ -3147,45 +3644,273 @@ const Module_Session_Notes_Classement = (props) => { form.append("token", stored_cookie); form.append("tab_session_id", props.related_collection_recid); - // Recuperation des parametres - var filtre1 = p_filtre1; - var filtre2 = p_filtre2; + + if (local_use_filter && local_use_filter === "1") { + // Recuperation des parametres + var filtre1 = p_filtre1; + var filtre2 = p_filtre2; + var filtre3 = p_filtre3; - var filtre1_value = ""; - var filtre2_value = ""; + var filtre1_value = ""; + var filtre2_value = ""; + var filtre3_value = ""; + + // Recuperation des valeurs de filtres + + if (p_filtre1_value_classement && String(p_filtre1_classement) === "inscrit_id") { + filtre1_value = p_filtre1_value_classement; + form.append("tab_inscrit_id", filtre1_value); + } + + + else if (p_filtre1_value_classement && String(p_filtre1_classement) === "domaine_competence_id") { + filtre1_value = p_filtre1_value_classement; + form.append("tab_domaine_competence_id", filtre1_value); + } + + + if (p_filtre2_value_classement && String(p_filtre2_classement) === "inscrit_id") { + filtre2_value = p_filtre2_value_classement; + form.append("tab_inscrit_id", filtre2_value); + } + + + + else if (p_filtre2_value_classement && String(p_filtre2_classement) === "domaine_competence_id") { + filtre2_value = p_filtre2_value_classement; + form.append("tab_domaine_competence_id", filtre2_value); + } + + + + //--- + if (p_filtre3_value_classement && String(p_filtre3_classement) === "inscrit_id") { + filtre3_value = p_filtre3_value_classement; + form.append("tab_inscrit_id", filtre3_value); + } + + + + else if (p_filtre3_value_classement && String(p_filtre3_classement) === "domaine_competence_id") { + filtre3_value = p_filtre3_value_classement; + form.append("tab_domaine_competence_id", filtre3_value); + } - // Recuperation des valeurs de filtres - if (p_filtre1_value && String(p_filtre1) === "ue_id") { - filtre1_value = p_filtre1_value; - form.append("tab_ue_id", filtre1_value); - } - else if (p_filtre1_value && String(p_filtre1) === "inscrit_id") { - filtre1_value = p_filtre1_value; - form.append("tab_inscrit_id", filtre1_value); } + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Evaluation_Simple_wiew_by_ue_bc_diplome_session_semestre_With_Filter"; - else if (p_filtre1_value && String(p_filtre1) === "semestre") { - filtre1_value = p_filtre1_value; - form.append("semestre", filtre1_value); - } + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + // console.log(" In Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE res.data.status = " + res.data.status); + //console.log(" In Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE res.data.message r_class = " + res.data.message); + setGetall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_api("true"); + setGetall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_result(res.data.message); - if (p_filtre2_value && String(p_filtre2) === "ue_id") { - filtre2_value = p_filtre2_value; - form.append("tab_ue_id", filtre2_value); - } - else if (p_filtre2_value && String(p_filtre2) === "inscrit_id") { - filtre2_value = p_filtre2_value; - form.append("tab_inscrit_id", filtre2_value); - } + var new_data2 = []; + const new_data = res.data.message.map((x) => { - else if (p_filtre2_value && String(p_filtre2) === "semestre") { - filtre2_value = p_filtre2_value; - form.append("semestre", filtre2_value); - } + //--- + var localid = JSON.parse(x).id; + var local_id = JSON.parse(x)._id; + var session_id = JSON.parse(x).session_id; + var inscrit_id = JSON.parse(x).inscrit_id; + var diplome_id = JSON.parse(x).diplome_id; + var domaine_competence_id = JSON.parse(x).domaine_competence_id; + var class_id = JSON.parse(x).class_id; + var ue_id = JSON.parse(x).ue_id; + var inscription_id_nom = JSON.parse(x).inscription_id_nom; + var inscription_id_prenom = JSON.parse(x).inscription_id_prenom; + var inscription_id_mail = JSON.parse(x).inscription_id_mail; + var diplome_id_code = JSON.parse(x).diplome_id_code; + var domaine_competence_id_code = JSON.parse(x).domaine_competence_id_code; + var ue_id_code = JSON.parse(x).ue_id_code; + var semestre = JSON.parse(x).semestre; + + var moyenne_avant_coef = JSON.parse(x).moyenne_avant_coef; + var coef = JSON.parse(x).coef; + var moyenne_apres_coef = JSON.parse(x).moyenne_apres_coef; + var ue_credit_ects = JSON.parse(x).ue_credit_ects; + var ue_seuil_validation = JSON.parse(x).ue_seuil_validation; + var is_eu_validated = JSON.parse(x).is_eu_validated; + + var is_domaine_competence_validated = JSON.parse(x).is_domaine_competence_validated; + + + var jury_note = JSON.parse(x).jury_note; + var jury_observation = JSON.parse(x).jury_observation; + var jury_validation = JSON.parse(x).jury_validation; + + var pourcentage_absence_non_justifed = JSON.parse(x).pourcentage_absence_non_justifed; + var total_heure_absence_non_justifie = JSON.parse(x).total_heure_absence_non_justifie; + var domaine_competence_total_heure = JSON.parse(x).domaine_competence_total_heure; + + var absence_deplace_seuil = JSON.parse(x).absence_deplace_seuil; + var domaine_competence_seuil_absence = JSON.parse(x).domaine_competence_seuil_absence; + + var jury_observation_dom_compet = JSON.parse(x).jury_observation_dom_compet; + var jury_note_dom_compet = JSON.parse(x).jury_note_dom_compet; + var jury_validation_dom_compet = JSON.parse(x).jury_validation_dom_compet; + + + + + //--- + var node = { + "_id": local_id, + "id": localid, + "session_id": session_id, + "label": local_id, + "inscrit_id": inscrit_id, + + "diplome_id": diplome_id, + "domaine_competence_id": domaine_competence_id, + "class_id": class_id, + "ue_id": ue_id, + "inscription_id_nom": inscription_id_nom, + "inscription_id_prenom": inscription_id_prenom, + "inscription_id_mail": inscription_id_mail, + "diplome_id_code": diplome_id_code, + + "domaine_competence_id_code": domaine_competence_id_code, + "ue_id_code": ue_id_code, + "moyenne_avant_coef": moyenne_avant_coef, + "coef": coef, + + "moyenne_apres_coef": moyenne_apres_coef, + "ue_credit_ects": ue_credit_ects, + "ue_seuil_validation": ue_seuil_validation, + "is_eu_validated": is_eu_validated, + "is_domaine_competence_validated": is_domaine_competence_validated, + "semestre": semestre, + + "jury_note": jury_note, + "jury_observation": jury_observation, + "jury_validation": jury_validation, + + "pourcentage_absence_non_justifed": pourcentage_absence_non_justifed, + "total_heure_absence_non_justifie": total_heure_absence_non_justifie, + "domaine_competence_total_heure": domaine_competence_total_heure, + + "absence_deplace_seuil": absence_deplace_seuil, + "domaine_competence_seuil_absence": domaine_competence_seuil_absence, + + "jury_observation_dom_compet": jury_observation_dom_compet, + "jury_note_dom_compet": jury_note_dom_compet, + "jury_validation_dom_compet": jury_validation_dom_compet, + + + }; + new_data2.push(node); + // console.log(" ### node == ", node); + }); + + + + setNew_Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_result(new_data2); + // console.log(" ## new_data2 = ", new_data2) + + + } + else { + setGetall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_api("false"); + setGetall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_message(res.data.message); + // alert(res.data.message) + setdisplay_alert_mysy("1"); + setalert_message(res.data.message); + setalert_type("error"); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE = ', error); + setGetall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_api("false"); + // alert(" Impossible de recuperer la liste des évaluations"); + setdisplay_alert_mysy("1"); + setalert_message(" Impossible de recuperer les notes calculées "); + setalert_type("error"); + //setmyApimyApiMessage("") + }) + } + + + const [New_Getall_Detail_Note_of_BC_Diplome_UE_result, setNew_Getall_Detail_Note_of_BC_Diplome_UE_result] = useState([]); + + const [Getall_Detail_Note_of_BC_Diplome_UE_api, setGetall_Detail_Note_of_BC_Diplome_UE_api] = useState(); + const [Getall_Detail_Note_of_BC_Diplome_UE_message, setGetall_Detail_Note_of_BC_Diplome_UE_message] = useState(); + const [Getall_Detail_Note_of_BC_Diplome_UE_result, setGetall_Detail_Note_of_BC_Diplome_UE_result] = useState([]); + function Getall_Detail_Note_of_BC_Diplome_UE(local_use_filter) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("tab_session_id", props.related_collection_recid); + + if (local_use_filter && local_use_filter === "1") { + // Recuperation des parametres + var filtre1 = p_filtre1; + var filtre2 = p_filtre2; + var filtre3 = p_filtre3; + + + var filtre1_value = ""; + var filtre2_value = ""; + var filtre3_value = ""; + + // Recuperation des valeurs de filtres + + if (p_filtre1_value && String(p_filtre1) === "ue_id") { + filtre1_value = p_filtre1_value; + form.append("tab_ue_id", filtre1_value); + } + else if (p_filtre1_value && String(p_filtre1) === "inscrit_id") { + filtre1_value = p_filtre1_value; + form.append("tab_inscrit_id", filtre1_value); + } + + else if (p_filtre1_value && String(p_filtre1) === "semestre") { + filtre1_value = p_filtre1_value; + form.append("semestre", filtre1_value); + } + + + if (p_filtre2_value && String(p_filtre2) === "ue_id") { + filtre2_value = p_filtre2_value; + form.append("tab_ue_id", filtre2_value); + } + else if (p_filtre2_value && String(p_filtre2) === "inscrit_id") { + filtre2_value = p_filtre2_value; + form.append("tab_inscrit_id", filtre2_value); + } + + else if (p_filtre2_value && String(p_filtre2) === "semestre") { + filtre2_value = p_filtre2_value; + form.append("semestre", filtre2_value); + } + + + + if (p_filtre3_value && String(p_filtre3) === "ue_id") { + filtre3_value = p_filtre3_value; + form.append("tab_ue_id", filtre3_value); + } + else if (p_filtre3_value && String(p_filtre3) === "inscrit_id") { + filtre3_value = p_filtre3_value; + form.append("tab_inscrit_id", filtre3_value); + } + + else if (p_filtre3_value && String(p_filtre3) === "semestre") { + filtre3_value = p_filtre3_value; + form.append("semestre", filtre3_value); + } + + + } var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Detailled_Note_After_UE_Calculation_With_Filter"; @@ -3838,6 +4563,158 @@ const Module_Session_Notes_Classement = (props) => { {/*** Fin Dialog pour reinscrire un apprenant à une session */} + + {/* Dialog pour gerer les JURY_INFO Pour BC */} + 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" + + > + + Observation pour BC + + + +
Observation BC
+ + { + setp_detail_jury_observation_bc(e.target.value); + + }} + + /> + +
+ +
Note BC
+ + { + setp_detail_jury_note_bc(e.target.value); + }} + + /> + +
+ +
Validation
+ {New_Option_Valisation_Jury && New_Option_Valisation_Jury.length > 0 && jury_cell_editable === true && (data).value === String(p_detail_jury_validation_bc))[0].label} + options={New_Option_Valisation_Jury} + onChange={(event, value) => { + if (value && value.value) { + setp_detail_jury_validation_bc(value.value) + } + + }} + + renderInput={(params) => + } + />} + + +
+ + + +
+ + + + + + + +
+
+ + +
+ + +
+ +
+
+ +
+ +
+ {/* FIN Dialog pour gerer les JURY_INFO Pour BC **/} + + + {/* Dialog pour gerer les JURY_INFO */} { + + {/*** Affiche les filtre du BC/UE...*/} {vue_note && String(vue_note) === "classement" &&
+ {/***** On n'affiche les filtre que si necessaire */} +
+ +
Filtre Classement général +
+ +
+
+ + {New_Option_Filter_classement_final && New_Option_Filter_classement_final.length > 0 && (data).value === String(p_filtre1_classement))[0].label} + options={New_Option_Filter_classement_final} + onChange={(event, value) => { + if (value && value.value) { + setp_filtre1_classement(value.value); + + } + + }} + + renderInput={(params) => + } + />} + + +
+ + + +
+ + {p_filtre1_classement && String(p_filtre1_classement) === "inscrit_id" && New_GetListeInscrit_result.length > 0 && + (data)._id === String(p_filtre1_value))[0].label} + options={New_GetListeInscrit_result} + onChange={(event, value) => { + if (value && value._id) { + setp_filtre1_value_classement(value._id); + } + }} + + renderInput={(params) => + } + /> + } + + {p_filtre1_classement && String(p_filtre1_classement) === "domaine_competence_id" && New_Getall_Partner_Domaine_Competence_result.length > 0 && + (data)._id === String(p_filtre1_value))[0].label} + options={New_Getall_Partner_Domaine_Competence_result} + onChange={(event, value) => { + if (value && value._id) { + setp_filtre1_value_classement(value._id); + } + }} + + renderInput={(params) => + } + /> + } + + {p_filtre1_classement && String(p_filtre1_classement) === "semestre" && + { + setp_filtre1_value_classement(e.target.value); + + }} + + renderInput={(params) => + } + />} + + +
+ {p_filtre1_classement && } + {p_filtre1_classement && } + + +
+ + {p_filtre2_classement && +
+
+ + {New_Option_Filter_classement_final && New_Option_Filter_classement_final.length > 0 && (data).value === String(p_filtre2_classement))[0].label} + options={New_Option_Filter_classement_final} + onChange={(event, value) => { + if (value && value.value) { + setp_filtre2_classement(value.value); + + } + + }} + + renderInput={(params) => + } + />} + +
+
+ {String(p_filtre2_classement).length > 2 && String(p_filtre2_classement) === "inscrit_id" && New_GetListeInscrit_result.length > 0 && + (data)._id === String(p_filtre1_value))[0].label} + options={New_GetListeInscrit_result} + onChange={(event, value) => { + if (value && value._id) { + setp_filtre2_value_classement(value._id); + } + }} + + renderInput={(params) => + } + /> + } + + + {String(p_filtre2_classement).length > 2 && String(p_filtre2_classement) === "domaine_competence_id" && New_Getall_Partner_Domaine_Competence_result.length > 0 && + (data)._id === String(p_filtre1_value))[0].label} + options={New_Getall_Partner_Domaine_Competence_result} + onChange={(event, value) => { + if (value && value._id) { + setp_filtre2_value_classement(value._id); + } + }} + + renderInput={(params) => + } + /> + } + + {p_filtre2_classement && String(p_filtre2_classement) === "semestre" && + { + setp_filtre2_value_classement(e.target.value); + + }} + + renderInput={(params) => + } + />} + + + + +
+ + {String(p_filtre2_classement).length > 2 && } + + {String(p_filtre2_classement).length > 2 && } + +
+ } + + + {p_filtre3_classement && +
+
+ + {New_Option_Filter_classement_final && New_Option_Filter_classement_final.length > 0 && (data).value === String(p_filtre3_classement))[0].label} + options={New_Option_Filter_classement_final} + onChange={(event, value) => { + if (value && value.value) { + setp_filtre3_classement(value.value); + + } + + }} + + renderInput={(params) => + } + />} + + +
+ +
+ {String(p_filtre3_classement).length > 2 && String(p_filtre3_classement) === "inscrit_id" && New_GetListeInscrit_result.length > 0 && + (data)._id === String(p_filtre1_value))[0].label} + options={New_GetListeInscrit_result} + onChange={(event, value) => { + if (value && value._id) { + setp_filtre3_value_classement(value._id); + } + }} + + renderInput={(params) => + } + /> + } + + + {String(p_filtre3_classement).length > 2 && String(p_filtre3_classement) === "domaine_competence_id" && + New_Getall_Partner_Domaine_Competence_result.length > 0 && + (data)._id === String(p_filtre1_value))[0].label} + options={New_Getall_Partner_Domaine_Competence_result} + onChange={(event, value) => { + if (value && value._id) { + setp_filtre3_value_classement(value._id); + } + }} + + renderInput={(params) => + } + /> + } + + {p_filtre3_classement && String(p_filtre3_classement) === "semestre" && + { + setp_filtre3_value_classement(e.target.value); + + }} + + renderInput={(params) => + } + />} + + + + +
+ + + {String(p_filtre3_classement).length > 2 &&
+ + +   + +
} + + {String(p_filtre3_classement).length > 2 && } +
+ } + + +
+ +
+ +
+ +
+ + +
+ +
+ +
+
+ + {/******* End filtre */} + +
} + + + + {vue_note && String(vue_note) === "classement" &&
+ + +
@@ -4037,6 +5505,17 @@ const Module_Session_Notes_Classement = (props) => { + + + +
@@ -4045,7 +5524,164 @@ const Module_Session_Notes_Classement = (props) => { {/** La V2 du calcul */} Calcul V222 - + { + setselectionModel_note_Session_classement_simple(newSelectionModel); + /*if (newSelectionModel.length === 1) + handleClick_edit_employee_From_Line(newSelectionModel);*/ + if (newSelectionModel.length !== 1) { + /* setsubmenu(); + setdisplay_detail_employe(); + setadd_One_Employee();*/ + } + }} + + selectionModel={selectionModel_note_Session_classement_simple} + + localeText={frFR.components.MuiDataGrid.defaultProps.localeText} + rows={New_Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_result.map((item, index) => ( + { + id: index, + _id: (item)._id, + session_id: (item).session_id, + inscrit_id: (item).inscrit_id, + diplome_id: (item).diplome_id, + domaine_competence_id: (item).domaine_competence_id, + class_id: (item).class_id, + + inscription_id_nom: (item).inscription_id_nom, + inscription_id_prenom: (item).inscription_id_prenom, + inscription_id_mail: (item).inscription_id_mail, + diplome_id_code: (item).diplome_id_code, + + domaine_competence_id_code: (item).domaine_competence_id_code, + is_domaine_competence_validated: (item).is_domaine_competence_validated, + + + pourcentage_absence_non_justifed: (item).pourcentage_absence_non_justifed, + total_heure_absence_non_justifie: (item).total_heure_absence_non_justifie, + domaine_competence_total_heure: (item).domaine_competence_total_heure, + + absence_deplace_seuil: (item).absence_deplace_seuil, + domaine_competence_seuil_absence: (item).domaine_competence_seuil_absence, + + jury_observation_dom_compet: (item).jury_observation_dom_compet, + jury_note_dom_compet: (item).jury_note_dom_compet, + jury_validation_dom_compet: (item).jury_validation_dom_compet, + + + } + ))} + + columns={columns_simplied_list_session_note_classement_final_BC_Diplome_UE} + pageSize={20} + className="datagridclass" + + onRowDoubleClick={(newSelectionModel) => { + + }} + + rowsPerPageOptions={[20]} + disableSelectionOnClick + /* components={{ + Toolbar: GridToolbar, + }}*/ + + components={{ + Toolbar: CustomToolbar + }} + componentsProps={{ toolbar: { data_colums: columns_list_session_note_classement_final } }} + //sx={datagridSx} + + + getCellClassName={(params) => { + + // Traitement des cellules du jury (note, commentaire, validation) + /* if (String(params.field).startsWith("jury")) { + return 'cell--jury'; + }*/ + + }} + getRowClassName={(params) => { + // Pour la gestion de la couleur de zone double cliquée + if (String(params.row.is_eu_validated) === "1") { + return 'line--statut--isvalide'; + } + + if (String(params.row.id) === String(gridline_id)) { + return 'line--statut--selected'; + } + else if (parseInt(String(params.row.id)) % 2 === 0) { + return 'line--statut--pair'; + } + else if (parseInt(String(params.row.id)) % 2 !== 0) { + return 'line--statut--impair'; + } + + + }} + getEstimatedRowHeight={() => 200} + getRowHeight={() => "auto"} + sx={{ + "& .MuiDataGrid-cellContent": { + minHeight: 50, + + } + }} + + /> + } + + + {classement_wiew_mode && classement_wiew_mode === "detail" && { jury_observation: (item).jury_observation, jury_validation: (item).jury_validation, + pourcentage_absence_non_justifed: (item).pourcentage_absence_non_justifed, + total_heure_absence_non_justifie: (item).total_heure_absence_non_justifie, + domaine_competence_total_heure: (item).domaine_competence_total_heure, + + absence_deplace_seuil: (item).absence_deplace_seuil, + domaine_competence_seuil_absence: (item).domaine_competence_seuil_absence, } ))} @@ -4200,8 +5842,7 @@ const Module_Session_Notes_Classement = (props) => { }} /> - - + }
@@ -4289,10 +5930,13 @@ const Module_Session_Notes_Classement = (props) => {
} + {vue_note && String(vue_note) === "detail_note" &&
{/***** On n'affiche les filtre que si necessaire */}
+
Filtre Detail note +
@@ -4698,45 +6342,132 @@ const Module_Session_Notes_Classement = (props) => {
-
- {String(p_filtre3).length > 2 && + + + +
+ {p_filtre3 && String(p_filtre3) === "ue_id" && New_Getall_Class_List_UE_result.length > 0 && + + (data)._id === String(p_filtre1_value))[0].label} + options={New_Getall_Class_List_UE_result} + onChange={(event, value) => { + if (value && value._id) { + setp_filtre3_value(value._id); + } + }} + + renderInput={(params) => + } + /> + + } + + {p_filtre3 && String(p_filtre3) === "inscrit_id" && New_GetListeInscrit_result.length > 0 && + + (data)._id === String(p_filtre1_value))[0].label} + options={New_GetListeInscrit_result} + onChange={(event, value) => { + if (value && value._id) { + setp_filtre3_value(value._id); + } + }} + + renderInput={(params) => + } + /> + + } + + {p_filtre3 && String(p_filtre3) === "semestre" && setp_filtre3_value(e.target.value)} - InputProps={{ - endAdornment: ( - - { - setp_filtre3_value(""); - }} /> - - ), + onChange={(e) => { + setp_filtre3_value(e.target.value); + }} + renderInput={(params) => + } />} + +
+ + {String(p_filtre2).length > 2 && } @@ -4759,10 +6490,7 @@ const Module_Session_Notes_Classement = (props) => {
-
@@ -4782,197 +6515,11 @@ const Module_Session_Notes_Classement = (props) => { {/******* End filtre */} - - {/*}
- -
-
- -
- -   - - - { - setselectionModel_note_UE_classement(newSelectionModel); - - if (newSelectionModel.length !== 1) { - - } - }} - selectionModel={selectionModel_note_UE_classement} - - localeText={frFR.components.MuiDataGrid.defaultProps.localeText} - rows={Getall_Session_UE_Final_Note_Classement_result.map((item, index) => ( - { - id: index, - _id: JSON.parse(item)._id, - inscription_id: JSON.parse(item).inscription_id, - session_id: JSON.parse(item).session_id, - type_eval: JSON.parse(item).type_eval, - ue_id: JSON.parse(item).ue_id, - class_id: JSON.parse(item).class_id, - note_td: JSON.parse(item).note_td, - note_tp: JSON.parse(item).note_tp, - note_examen: JSON.parse(item).note_examen, - note_finale: JSON.parse(item).note_finale, - rang: JSON.parse(item).rang, - credit: JSON.parse(item).credit, - - regle_calcul: JSON.parse(item).regle_calcul, - seuil_validation: JSON.parse(item).seuil_validation, - ue_coefficient: JSON.parse(item).ue_coefficient, - ue_validation: JSON.parse(item).ue_validation, - - ue_id_code: JSON.parse(item).ue_id_code, - class_id_external_code: JSON.parse(item).class_id_external_code, - inscription_id_mail: JSON.parse(item).inscription_id_mail, - inscription_id_nom: JSON.parse(item).inscription_id_nom, - inscription_id_prenom: JSON.parse(item).inscription_id_prenom, - - jury_note: JSON.parse(item).jury_note, - jury_observation: JSON.parse(item).jury_observation, - jury_validation: JSON.parse(item).jury_validation, - - moyenne_session_ue: JSON.parse(item).moyenne_session_ue, - } - ))} - - columns={columns_list_evaluation_note_classement_final} - pageSize={10} - className="datagridclass" - - onRowDoubleClick={(newSelectionModel) => { - - - - }} - - rowsPerPageOptions={[10]} - disableSelectionOnClick - - - components={{ - Toolbar: CustomToolbar - }} - componentsProps={{ toolbar: { data_colums: columns_list_evaluation_note_classement_final } }} - //sx={datagridSx} - getCellClassName={(params) => { - - - - }} - getRowClassName={(params) => { - // Pour la gestion de la couleur de zone double cliquée - if (String(params.row.ue_validation) === "1") { - return 'line--statut--isvalide'; - } - - if (String(params.row.id) === String(gridline_id)) { - return 'line--statut--selected'; - } - else if (parseInt(String(params.row.id)) % 2 === 0) { - return 'line--statut--pair'; - } - else if (parseInt(String(params.row.id)) % 2 !== 0) { - return 'line--statut--impair'; - } - - - }} - getEstimatedRowHeight={() => 200} - getRowHeight={() => "auto"} - sx={{ - "& .MuiDataGrid-cellContent": { - minHeight: 50, - - } - }} - - /> - -
- -
- - -
-
- - -
*/} -
} + + {vue_note && String(vue_note) === "detail_note" &&