@@ -7430,13 +7672,14 @@ const Module_Session_Planification = (props) => {
className="action_mass">
{actionmass_sequence_val && String(actionmass_sequence_val).length > 1 &&
- String(actionmass_sequence_val) === "supprimer" &&
+ (String(actionmass_sequence_val) === "supprimer" || String(actionmass_sequence_val) === "valide_sequence") &&
Traiter
@@ -7458,7 +7701,13 @@ const Module_Session_Planification = (props) => {
{String(actionmass_sequence_val) === "supprimer" &&
{' '}
- Confirmer l'action de suppression en masse.
+ Confirmer l'action de suppression en masse de {String(selectionModel_sequence).length} ligne(s).
+
}
+
+ {String(actionmass_sequence_val) === "valide_sequence" &&
+ {' '}
+
+ Confirmer l'action de validation en masse de {String(selectionModel_sequence).length} ligne(s).
}
@@ -7568,7 +7817,7 @@ const Module_Session_Planification = (props) => {
Proposition de Nouvelle planification
{display_view && String(display_view) === "list" &&
-
+
{
}}
renderInput={(params) =>
diff --git a/src/components/Modules_ENT_Mes_Documents.js b/src/components/Modules_ENT_Mes_Documents.js
index daa4b54..78e0f45 100644
--- a/src/components/Modules_ENT_Mes_Documents.js
+++ b/src/components/Modules_ENT_Mes_Documents.js
@@ -1273,6 +1273,19 @@ const Modules_ENT_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1331,6 +1344,19 @@ const Modules_ENT_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1435,6 +1461,19 @@ const Modules_ENT_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1487,6 +1526,19 @@ const Modules_ENT_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1542,6 +1594,19 @@ const Modules_ENT_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1595,6 +1660,19 @@ const Modules_ENT_Mes_Documents = (props) => {
}}
renderInput={(params) =>
diff --git a/src/components/Modules_Mes_Documents.js b/src/components/Modules_Mes_Documents.js
index a1cd57b..a469c15 100644
--- a/src/components/Modules_Mes_Documents.js
+++ b/src/components/Modules_Mes_Documents.js
@@ -1384,6 +1384,19 @@ const Modules_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1442,6 +1455,19 @@ const Modules_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1540,6 +1566,19 @@ const Modules_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1592,6 +1631,19 @@ const Modules_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1647,6 +1699,19 @@ const Modules_Mes_Documents = (props) => {
}}
renderInput={(params) =>
@@ -1700,6 +1765,19 @@ const Modules_Mes_Documents = (props) => {
}}
renderInput={(params) =>
diff --git a/src/components/Modules_Mes_Documents_old.js b/src/components/Modules_Mes_Documents_old.js
index 2d31e68..5daf28c 100644
--- a/src/components/Modules_Mes_Documents_old.js
+++ b/src/components/Modules_Mes_Documents_old.js
@@ -951,6 +951,19 @@ const Modules_Mes_Documents_old = (props) => {
}}
renderInput={(params) =>
@@ -1009,6 +1022,19 @@ const Modules_Mes_Documents_old = (props) => {
}}
renderInput={(params) =>
@@ -1107,6 +1133,19 @@ const Modules_Mes_Documents_old = (props) => {
}}
renderInput={(params) =>
@@ -1159,6 +1198,19 @@ const Modules_Mes_Documents_old = (props) => {
}}
renderInput={(params) =>
@@ -1214,6 +1266,19 @@ const Modules_Mes_Documents_old = (props) => {
}}
renderInput={(params) =>
@@ -1267,6 +1332,19 @@ const Modules_Mes_Documents_old = (props) => {
}}
renderInput={(params) =>
@@ -1345,6 +1423,19 @@ const Modules_Mes_Documents_old = (props) => {
}}
renderInput={(params) =>
diff --git a/src/components/Mon_Tableau_De_Bord.js b/src/components/Mon_Tableau_De_Bord.js
index 54bc86e..50a3c46 100644
--- a/src/components/Mon_Tableau_De_Bord.js
+++ b/src/components/Mon_Tableau_De_Bord.js
@@ -1737,6 +1737,19 @@ const Mon_Tableau_De_Bord = (props) => {
}}
renderInput={(params) =>
diff --git a/src/components/Notes_Evaluation.js b/src/components/Notes_Evaluation.js
index 40d4f6f..fbd568a 100644
--- a/src/components/Notes_Evaluation.js
+++ b/src/components/Notes_Evaluation.js
@@ -4,6 +4,7 @@ import Module_Historique_Action from "./Module_Historique_Action";
import 'react-confirm-alert/src/react-confirm-alert.css'; // Import css
import Button from '@mui/material/Button';
import axios from "axios";
+import { MdOutlineManageHistory } from "react-icons/md";
import { getCookie, setCookie } from 'react-use-cookie';
import { useHistory } from "react-router-dom";
import TextareaAutosize from '@mui/material/TextareaAutosize';
@@ -14,8 +15,11 @@ import { FcInfo } from "react-icons/fc";
import 'react-tooltip/dist/react-tooltip.css'
import { Tooltip } from 'react-tooltip'
import fileDownload from 'js-file-download';
+import Chip from "@mui/material/Chip";
import Popup from 'reactjs-popup';
import 'reactjs-popup/dist/index.css';
+import { FcRating } from "react-icons/fc";
+import { FlagTriangleRight } from 'lucide-react';
import { FcCancel, FcApproval, FcAcceptDatabase, } from "react-icons/fc";
import fr from 'date-fns/locale/fr';
import { registerLocale } from 'react-datepicker';
@@ -54,6 +58,7 @@ import Paper from '@material-ui/core/Paper';
import Draggable from 'react-draggable';
import { makeStyles } from "@material-ui/core/styles";
import { IconButton } from '@material-ui/core';
+import { ConsoleView } from "react-device-detect";
function PaperComponent(props) {
return (
@@ -111,6 +116,7 @@ const Notes_Evaluation = (props) => {
const [p_filtre4, setp_filtre4] = useState("");
const [p_filtre4_value, setp_filtre4_value] = useState("");
+ const [history_securite_read, sethistory_securite_read] = useState("");
function ExpandableCell_50({ value }) {
const [expanded, setExpanded] = React.useState(false);
@@ -178,6 +184,21 @@ const Notes_Evaluation = (props) => {
{ field: '_id', headerName: '_id', hide: true, Width: 0 },
{ field: 'id', headerName: 'id', hide: true, Width: 0 },
+ {
+ field: 'rattrapage', headerName: 'Rat.', hide: false, Width: 100, renderCell: (params) => ,
+ renderCell: (cellValues) => {
+ return (
+
+ {cellValues.row.rattrapage && String(cellValues.row.rattrapage) === "1" && }
+
+
+
+
+ );
+ }
+ },
+
+
{ field: 'code', headerName: 'code', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , },
{ field: 'titre', headerName: 'titre', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , },
{ field: 'class_id', headerName: 'class_id', hide: true, Width: 0 },
@@ -510,6 +531,7 @@ const Notes_Evaluation = (props) => {
setevaluation_data_changed("");
setevaluation_data_edit_mode("");
setgridline_id("");
+ setselected_id("");
// alert(res.data.message)
setdisplay_alert_mysy("1");
@@ -543,12 +565,13 @@ const Notes_Evaluation = (props) => {
{ field: '_id', headerName: '_id', hide: true, Width: 0 },
{ field: 'id', headerName: 'id', hide: true, Width: 0 },
{ field: 'note_changed', headerName: 'note_changed', hide: true, Width: 0 },
+ { field: 'has_history', headerName: 'has_history', hide: true, Width: 0 },
{ field: 'nom', headerName: 'nom', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , },
{ field: 'prenom', headerName: 'prenom', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , },
- { field: 'email', headerName: 'email', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , },
- { field: 'groupe', headerName: 'groupe', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , },
- { field: 'note', headerName: 'Note', width: 200, editable: Boolean(props.check_user_acces_right("note_evaluation", "write")), renderCell: (params) => , align: "center", },
+ { field: 'email', headerName: 'email', flex: 1, hide: false, minWidth: 250, renderCell: (params) => , },
+ { field: 'groupe', headerName: 'groupe', flex: 1, hide: true, minWidth: 180, renderCell: (params) => , },
+ { field: 'note', headerName: 'Note', width: 100, editable: Boolean(props.check_user_acces_right("note_evaluation", "write")), renderCell: (params) => , align: "center", },
{
field: 'is_validated', headerName: 'Validé', width: 100, hide: false, editable: false, type: 'boolean',
@@ -559,10 +582,46 @@ const Notes_Evaluation = (props) => {
field: 'publish', headerName: 'Publié (ENT)', width: 100, hide: false, editable: false, type: 'boolean',
},
+ {
+ field: 'publish_date', headerName: 'Date Pub. ENT', minwidth: 150, flex: 1, hide: false, editable: false,
+ renderCell: (cellValues) => {
+ return (
+
+ {cellValues.row.publish_date && String(cellValues.row.publish_date).length > 9 && <> {String(cellValues.row.publish_date).substring(0, 16)}>}
+ {!cellValues.row.publish_date || String(cellValues.row.publish_date).length <= 9 && "-"}
+
+
+ );
+ }
+
+ },
- { field: 'convocation_send_date', headerName: 'Conv. Envoyé', width: 200, editable: false, renderCell: (params) => , align: "center", },
- { field: 'convocation_send_type', headerName: 'Conv. Par', width: 200, editable: false, renderCell: (params) => , align: "center", },
+ { field: 'convocation_send_date', headerName: 'Conv. Env.', width: 100, editable: false, renderCell: (params) => , align: "center", },
+ { field: 'convocation_send_type', headerName: 'Conv. Par', width: 100, editable: false, hide: true, renderCell: (params) => , align: "center", },
+ { field: 'is_validated_date', headerName: 'Valid. Date', width: 150, editable: false, hide: true, renderCell: (params) => , align: "center", },
+
+ {
+ field: 'history', headerName: 'Hist.', width: 100, editable: false, hide: String(history_securite_read) !== "1", headerAlign: 'center',
+ renderCell: (cellValues) => {
+ return (
+
+ {String(history_securite_read) === "1" && cellValues.row.has_history !== "0" &&
+ }
+ {String(history_securite_read) !== "1" && }
+
+
+ );
+ }
+
+ },
{
@@ -755,6 +814,8 @@ const Notes_Evaluation = (props) => {
if (res.data.message.length > 0) {
var mylocal_evaluation = JSON.parse(res.data.message);
+ console.log(" ### mylocal_evaluation = ", mylocal_evaluation)
+
if (mylocal_evaluation.code)
setp_detail_code(mylocal_evaluation.code);
else
@@ -806,6 +867,33 @@ const Notes_Evaluation = (props) => {
setp_detail_mode_animation("");
}
+ if (mylocal_evaluation.rattrapage) {
+ setp_detail_rattrapage(mylocal_evaluation.rattrapage);
+ } else {
+ setp_detail_rattrapage("");
+ }
+
+ // iiiiiii
+ if (mylocal_evaluation.tab_all_ue_diplome) {
+ setNew_Get_List_UE_From_Session_Id_Diplome_result(mylocal_evaluation.tab_all_ue_diplome);
+ } else {
+ setNew_Get_List_UE_From_Session_Id_Diplome_result([{
+ "_id": "",
+ "code": "",
+ "label": "",
+ "ue_id": ""
+ }]);
+ }
+
+ if (mylocal_evaluation.tab_evaluation_selected_diplome) {
+ setscope_diplome(mylocal_evaluation.tab_evaluation_selected_diplome);
+ } else {
+ setscope_diplome([]);
+ }
+
+ //iii
+
+
if (mylocal_evaluation.type_eval_id) {
setp_detail_type_eval_id(mylocal_evaluation.type_eval_id);
} else {
@@ -854,6 +942,8 @@ const Notes_Evaluation = (props) => {
}
+
+
if (mylocal_evaluation.responsable_id) {
setp_detail_responsable_id(mylocal_evaluation.responsable_id);
} else {
@@ -918,6 +1008,7 @@ const Notes_Evaluation = (props) => {
{ "id": "class_external_code", "label": "Lié a la Formation (code externe) ", "value": "class_external_code" },
{ "id": "code_session", "label": "Lié a la Promotion(code Classe) ", "value": "code_session" },
{ "id": "code_ue", "label": "Lié a l'UE (code UE) ", "value": "code_ue" },
+ { "id": "rattrapage", "label": "Rattrapage", "value": "rattrapage" },
{ "id": "", "label": "", "value": "" },
{ "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres.
]
@@ -1107,7 +1198,7 @@ const Notes_Evaluation = (props) => {
if (String(res.data.status) === String("true")) {
//console.log(" In Getall_Evaluation_Participant_List res.data.status = " + res.data.status);
- //console.log(" In Getall_Evaluation_Participant_List res.data.message r_class = " + res.data.message);
+ // console.log(" In Getall_Evaluation_Participant_List res.data.message r_class = " + res.data.message);
setGetall_Evaluation_Participant_List_api("true");
setGetall_Evaluation_Participant_List_result(res.data.message);
setRows(res.data.message);
@@ -1132,6 +1223,13 @@ const Notes_Evaluation = (props) => {
var local_convocation_send_date = JSON.parse(x).convocation_send_date;
var local_convocation_send_type = JSON.parse(x).convocation_send_type;
+ var local_publish_by = JSON.parse(x).publish_by;
+ var local_publish_date = JSON.parse(x).publish_date;
+ var local_is_validated_date = JSON.parse(x).is_validated_date;
+
+ var local_has_history = JSON.parse(x).has_history;
+
+
//---
var node = {
@@ -1149,6 +1247,11 @@ const Notes_Evaluation = (props) => {
"group_inscription_id": local_group_inscription_id,
"convocation_send_date": String(local_convocation_send_date).substring(0, 10),
"convocation_send_type": String(local_convocation_send_type).substring(0, 10),
+ "publish_by": local_publish_by,
+ "publish_date": local_publish_date,
+ "is_validated_date": local_is_validated_date,
+ "has_history": local_has_history,
+
};
new_data2.push(node);
@@ -1555,6 +1658,17 @@ const Notes_Evaluation = (props) => {
const [New_Get_List_UE_From_Class_Id_result, setNew_Get_List_UE_From_Class_Id_result] = useState([]);
+ const [Distinct_UE_New_Get_List_UE_From_Class_Id_result, setDistinct_UE_New_Get_List_UE_From_Class_Id_result] = useState([{
+ "_id": "",
+ "id": "",
+ "label": "",
+ "code": "",
+ "titre": "",
+ "class_id": "",
+ "internal_url": "",
+ }]);
+
+
const [Get_List_UE_From_Class_Id_api, setGet_List_UE_From_Class_Id_api] = useState();
const [Get_List_UE_From_Class_Id_message, setGet_List_UE_From_Class_Id_message] = useState();
const [Get_List_UE_From_Class_Id_result, setGet_List_UE_From_Class_Id_result] = useState();
@@ -1581,7 +1695,10 @@ const Notes_Evaluation = (props) => {
setGet_List_UE_From_Class_Id_api("true");
setGet_List_UE_From_Class_Id_result(res.data.message);
+
+ var tab_tmp_storage_ue_id = []
var new_data2 = [];
+ var new_data2_Distinct_UE = [];
const new_data = res.data.message.map((x) => {
//---
@@ -1593,20 +1710,40 @@ const Notes_Evaluation = (props) => {
var local_class_id = JSON.parse(x).class_id;
var local_internal_url = JSON.parse(x).internal_url;
-
+ var local_diplome_id = JSON.parse(x).diplome_id;
+ var local_diplome_code = JSON.parse(x).diplome_code;
//---
var node = {
"_id": local_id,
"id": localid,
- "label": local_code + " - " + String(local_titre).substring(0, 20),
+ "label": local_code + " - " + String(local_diplome_code).substring(0, 20),
"code": local_code,
"titre": local_titre,
"class_id": local_class_id,
"internal_url": local_internal_url,
+ "diplome_id": local_diplome_id,
+ "diplome_code": local_diplome_code,
};
+
+
+ if (!tab_tmp_storage_ue_id.includes(local_id)) {
+
+ var node_distinct = {
+ "_id": local_id,
+ "id": localid,
+ "label": local_code + " - " + String(local_diplome_code).substring(0, 20),
+ "code": local_code,
+ "titre": local_titre,
+ "class_id": local_class_id,
+ "internal_url": local_internal_url,
+ };
+ tab_tmp_storage_ue_id.push(local_id)
+ new_data2_Distinct_UE.push(node_distinct)
+ }
+
new_data2.push(node);
});
@@ -1620,11 +1757,30 @@ const Notes_Evaluation = (props) => {
"class_id": "",
"internal_url": "",
+ "diplome_id": "",
+ "diplome_code": "",
};
new_data2.push(node);
- if (new_data2.length > 0)
- setNew_Get_List_UE_From_Class_Id_result(new_data2);
+
+ var node_distinct = {
+ "_id": "",
+ "id": "",
+ "label": "",
+ "code": "",
+ "titre": "",
+ "class_id": "",
+ "internal_url": "",
+ };
+ new_data2_Distinct_UE.push(node_distinct)
+
+ setNew_Get_List_UE_From_Class_Id_result(new_data2);
+ setDistinct_UE_New_Get_List_UE_From_Class_Id_result(new_data2_Distinct_UE);
+
+ console.log(" ========== CMP ======")
+ console.log(" new_data2_Distinct_UE = ", new_data2_Distinct_UE);
+ console.log(" new_data2 = ", new_data2);
+
}
else {
setGet_List_UE_From_Class_Id_api("false");
@@ -1651,6 +1807,14 @@ const Notes_Evaluation = (props) => {
const [New_Get_List_UE_From_Session_Id_result, setNew_Get_List_UE_From_Session_Id_result] = useState([]);
+ const [New_Get_List_UE_From_Session_Id_Diplome_result, setNew_Get_List_UE_From_Session_Id_Diplome_result] = useState([{
+ '_id': '',
+ 'code': '',
+ 'label': '',
+ 'ue_id': '',
+ }]
+ );
+
const [Get_List_UE_From_Session_Id_api, setGet_List_UE_From_Session_Id_api] = useState();
const [Get_List_UE_From_Session_Id_message, setGet_List_UE_From_Session_Id_message] = useState();
const [Get_List_UE_From_Session_Id_result, setGet_List_UE_From_Session_Id_result] = useState();
@@ -1674,9 +1838,12 @@ const Notes_Evaluation = (props) => {
if (String(res.data.status) === String("true")) {
//console.log(" In Get_List_UE_From_Session_Id res.data.status = " + res.data.status);
//console.log(" In Get_List_UE_From_Session_Id res.data.message r_class = " + res.data.message);
+ console.log(" In Get_List_UE_From_Session_Id res.data.diplomediplome r_class = " + res.data.diplome);
setGet_List_UE_From_Session_Id_api("true");
setGet_List_UE_From_Session_Id_result(res.data.message);
+ var new_data2_diplome = [];
+
var new_data2 = [];
const new_data = res.data.message.map((x) => {
@@ -1689,7 +1856,15 @@ const Notes_Evaluation = (props) => {
var local_class_id = JSON.parse(x).class_id;
var local_internal_url = JSON.parse(x).internal_url;
+ var local_diplome_id = JSON.parse(x).diplome_id;
+ var local_diplome_code = JSON.parse(x).diplome_code;
+ var node_diplome = {
+ '_id': local_diplome_id,
+ 'code': local_diplome_code,
+ 'label': local_diplome_code,
+ 'ue_id': local_id,
+ }
//---
@@ -1701,9 +1876,12 @@ const Notes_Evaluation = (props) => {
"titre": local_titre,
"class_id": local_class_id,
"internal_url": local_internal_url,
+ "diplome_id": local_diplome_id,
+ "diplome_code": local_diplome_code,
};
new_data2.push(node);
+ new_data2_diplome.push(node_diplome)
});
//---
@@ -1715,13 +1893,35 @@ const Notes_Evaluation = (props) => {
"titre": "",
"class_id": "",
"internal_url": "",
+ "diplome_id": "",
+ "diplome_code": "",
};
new_data2.push(node);
+
+ var node_diplome = {
+ '_id': '',
+ 'code': '',
+ 'label': '',
+ 'ue_id': '',
+ }
+ new_data2_diplome.push(node_diplome)
+
+
if (new_data2.length > 0) {
setNew_Get_List_UE_From_Session_Id_result(new_data2);
setNew_Get_List_UE_From_Class_Id_result(new_data2);
+ setNew_Get_List_UE_From_Session_Id_Diplome_result(new_data2_diplome);
+
+ console.log(" ## new_data2_diplome = ", new_data2_diplome);
+
+ console.log(" ## new_data2 = ", new_data2);
+
+ } else {
+ setNew_Get_List_UE_From_Session_Id_result([]);
+ setNew_Get_List_UE_From_Class_Id_result([]);
+ setNew_Get_List_UE_From_Session_Id_Diplome_result([]);
}
}
else {
@@ -1833,7 +2033,7 @@ const Notes_Evaluation = (props) => {
})
}
- const [history_securite_read, sethistory_securite_read] = useState("");
+
useEffect(() => {
@@ -2025,6 +2225,16 @@ const Notes_Evaluation = (props) => {
form.append("type_eval_id", p_detail_type_eval_id);
form.append("mode_animation", p_detail_mode_animation);
+ form.append("rattrapage", p_detail_rattrapage);
+
+ // console.log(" ### scope_diplome == ", scope_diplome)
+
+ var tab_scope_diplome_id = []
+ for (var i = 0; i < scope_diplome.length; i++) {
+ tab_scope_diplome_id.push(scope_diplome[i]._id)
+ }
+ form.append("tab_diplome_ids", tab_scope_diplome_id);
+
var new_p_detail_eval_date_heure_debut = "";
if (typeof p_detail_eval_date_heure_debut == "object") {
@@ -2066,7 +2276,7 @@ const Notes_Evaluation = (props) => {
}
-
+ console.log(" ### form = ", form)
setLoading(true);
axios.post(myurl, form).then(res => {
//console.log(" In Add_Update_Evaluation_Data res.data.status = " + res.data.status);
@@ -2232,6 +2442,11 @@ const Notes_Evaluation = (props) => {
}
+ const New_Option_Oui_Non = [
+ { "id": "1", "label": "Oui", "value": "1" },
+ { "id": "0", "label": "Non", "value": "0" },
+ { "id": "", "label": "", "value": "" },
+ ]
const [p_detail_type_notation, setp_detail_type_notation] = React.useState("");
const [p_detail_max_note, setp_detail_max_note] = React.useState("");
@@ -2261,6 +2476,11 @@ const Notes_Evaluation = (props) => {
const [p_detail_responsable_id, setp_detail_responsable_id] = React.useState("");
const [p_detail_session_id, setp_detail_session_id] = React.useState("");
+ const [p_detail_rattrapage, setp_detail_rattrapage] = React.useState("0");
+
+
+ const [p_detail_eval_note_publication_deplication_date_heure, setp_detail_eval_note_publication_deplication_date_heure] = useState(new Date());
+
function clear_DetailFieds() {
setp_detail_code("");
@@ -2271,6 +2491,8 @@ const Notes_Evaluation = (props) => {
setp_detail_class_eu_id("");
setp_detail_type_eval_id("");
+ setp_detail_rattrapage("0");
+
setp_detail_type_notation("");
setp_detail_max_note("");
@@ -2293,7 +2515,7 @@ const Notes_Evaluation = (props) => {
var liste_champs = ['detail_code', 'detail_titre', 'detail_description', 'detail_classe',
'detail_ftion', 'detail_ue', 'detail_type_eval', 'detail_debut', 'detail_fin', 'detail_adresse',
- 'detail_cp', 'detail_ville', 'detail_pays', 'detail_responsable', 'detail_mode_animation']
+ 'detail_cp', 'detail_ville', 'detail_pays', 'detail_responsable', 'detail_mode_animation', 'detail_rattrapage']
for (let i = 0; i < liste_champs.length; i++) {
if (document.getElementsByName(String(liste_champs[i])) && document.getElementsByName(String(liste_champs[i]))[0]) {
@@ -2316,7 +2538,7 @@ const Notes_Evaluation = (props) => {
var liste_champs = ['detail_code', 'detail_titre', 'detail_description', 'detail_classe',
'detail_ftion', 'detail_ue', 'detail_type_eval', 'detail_debut', 'detail_fin', 'detail_adresse',
- 'detail_cp', 'detail_ville', 'detail_pays', 'detail_responsable', 'detail_titre_01', 'detail_mode_animation']
+ 'detail_cp', 'detail_ville', 'detail_pays', 'detail_responsable', 'detail_titre_01', 'detail_mode_animation', 'detail_rattrapage']
for (let i = 0; i < liste_champs.length; i++) {
@@ -2601,6 +2823,15 @@ const Notes_Evaluation = (props) => {
form.append("tab_inscription_id", selected_note_lines_id);
form.append("publish_status", local_publish_status);
+ var new_publish_unpublish_date_heure_debut = "";
+ if (typeof p_detail_eval_note_publication_deplication_date_heure == "object") {
+ var act_deadline = format(p_detail_eval_note_publication_deplication_date_heure, 'dd/MM/yyyy HH:mm');
+ new_publish_unpublish_date_heure_debut = act_deadline;
+ } else {
+ new_publish_unpublish_date_heure_debut = p_detail_eval_note_publication_deplication_date_heure;
+ }
+ form.append("action_date_time", new_publish_unpublish_date_heure_debut);
+
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Publish_Unpublish_Participant_Evaluation_Note/";
@@ -2620,7 +2851,7 @@ const Notes_Evaluation = (props) => {
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
setalert_type("success");
-
+ setp_detail_eval_note_publication_deplication_date_heure(new Date());
}
else {
@@ -4049,6 +4280,97 @@ const Notes_Evaluation = (props) => {
};
+ const [NewGet_Historique_Note_Change_result, setNewGet_Historique_Note_Change_result] = useState([]);
+
+ const [Get_Historique_Note_Change_api, setGet_Historique_Note_Change_api] = useState();
+ const [Get_Historique_Note_Change_message, setGet_Historique_Note_Change_message] = useState();
+ const [Get_Historique_Note_Change_result, setGet_Historique_Note_Change_result] = useState([]);
+ function Get_Historique_Note_Change(local_note_id) {
+
+ var form = new FormData();
+
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("note_evaluation_participant_id", local_note_id);
+
+ //console.log(" ### Get_Historique_Note_Change form = ", form)
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Given_Participant_Notes_Change_History/";
+
+
+ setLoading(true);
+ axios.post(myurl, form).then(res => {
+
+ setLoading(false);
+ if (String(res.data.status) === String("true")) {
+ setLoading(false);
+ //console.log(" In Get_Historique_Note_Change res.data.status = " + res.data.status);
+ // console.log(" In Get_Historique_Note_Change res.data.message r_class = " + res.data.message);
+ setGet_Historique_Note_Change_api("true");
+ setGet_Historique_Note_Change_result(res.data.message);
+
+ if (res.data.message.length > 0) {
+ var local_json = JSON.parse(res.data.message[0]);
+
+
+ var new_data2 = [];
+ const new_data = local_json.map((x) => {
+ new_data2.push(x)
+
+ });
+ if (new_data2.length > 0)
+ setNewGet_Historique_Note_Change_result(new_data2);
+
+ else
+ setNewGet_Historique_Note_Change_result([])
+ } else {
+ setNewGet_Historique_Note_Change_result([])
+ }
+
+ }
+ else {
+ setLoading(false);
+ setGet_Historique_Note_Change_api("false");
+ setGet_Historique_Note_Change_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.warn('Not good man :( Get_Historique_Note_Change = ', error);
+ setGet_Historique_Note_Change_api("false");
+ setdisplay_alert_mysy("1");
+ setalert_message(" Impossible de récuperer l'historique ");
+ setalert_type("error");
+
+ })
+ }
+
+
+
+
+ const [Dialog_Historique_Note_Change_open, setDialog_Historique_Note_Change_open] = useState(false);
+
+ const Close_Dialog_Historique_Note_Change_open = () => {
+ // clean_order_detail_fields();
+ setDialog_Historique_Note_Change_open(false);
+ };
+
+ const fixedVal_scope_diplome = [];
+ const [scope_diplome, setscope_diplome] = useState([...fixedVal_scope_diplome]);
+ const CustomChip = (chipVal, getTagProps) => {
+ return chipVal.map((item, index) => (
+
+ ));
+ };
+
return (
{isLoading &&
@@ -4066,6 +4388,122 @@ const Notes_Evaluation = (props) => {
}
{/*** FIN Affichage des messages d'alerte*/}
+
+
+
+ {/********** Dialog pour Historique_Note_Change */}
+
+
+ {/********** FIN Dialog pour Historique_Note_Change */}
+
+
+
{/* Dialog pour gerer les CONVOCATION_EVAL */}
{p_filtre1 &&
- {String(p_filtre2).length > 2 &&
+ {String(p_filtre2).length > 2 && p_filtre2 !== "rattrapage" &&
{
}}
/>}
+
+ {String(p_filtre2).length > 2 && p_filtre2 === "rattrapage" && New_Option_Oui_Non && New_Option_Oui_Non.length > 0 &&
+ (data).value === String(p_filtre2_value))[0].label}
+ onChange={(event, value) => {
+ if (value && value.value) {
+ setp_filtre2_value(value.value);
+ } else {
+ setp_filtre2_value("");
+ }
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+ }
+
+
{String(p_filtre2).length > 2 &&
@@ -4666,14 +5233,27 @@ const Notes_Evaluation = (props) => {
value={New_Option_Filter.filter((data) => (data).value === String(p_filtre3))[0].label}
options={New_Option_Filter}
onChange={(event, value) => {
+ setp_filtre3_value("");
if (value && value.value) {
setp_filtre3(value.value);
-
}
}}
renderInput={(params) =>
@@ -4683,7 +5263,7 @@ const Notes_Evaluation = (props) => {
- {String(p_filtre3).length > 2 &&
+ {String(p_filtre3).length > 2 && p_filtre3 !== "rattrapage" &&
{
}}
/>}
+
+ {String(p_filtre3).length > 2 && p_filtre3 === "rattrapage" && New_Option_Oui_Non && New_Option_Oui_Non.length > 0 &&
+ (data).value === String(p_filtre3_value))[0].label}
+ onChange={(event, value) => {
+ if (value && value.value) {
+ setp_filtre3_value(value.value);
+ } else {
+ setp_filtre3_value("");
+ }
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+ }
{String(p_filtre2).length > 2 &&
@@ -4860,6 +5477,7 @@ const Notes_Evaluation = (props) => {
max_note: JSON.parse(item).max_note,
type_notation: JSON.parse(item).type_notation,
+ rattrapage: JSON.parse(item).rattrapage,
}
@@ -5128,7 +5746,7 @@ const Notes_Evaluation = (props) => {
-
Unite D'enseignement
+
Unite d'enseignement
{New_Getall_Partner_List_UE_result && New_Getall_Partner_List_UE_result.length > 0 && {
-
Type d'évaluation
+
Type d'évaluation 01
{New_Getall_Partner_Type_Evalution_List_result && New_Getall_Partner_Type_Evalution_List_result.length > 0 && {
+
Rattrapage
+ {New_Option_Oui_Non && New_Option_Oui_Non.length > 0 && (data).value === String(p_detail_rattrapage))[0].label}
+
+ />}
+
+
+
+
Diplome 002
+
+ {New_Get_List_UE_From_Session_Id_Diplome_result && New_Get_List_UE_From_Session_Id_Diplome_result.length > 0 &&
+
(data).ue_id === String(p_detail_class_eu_id))}
+ multiple
+
+ disabled={true}
+ value={scope_diplome}
+
+ renderInput={(params) =>
+ }
+ />}
+
+
+
@@ -5443,6 +6116,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -5529,6 +6215,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -5567,6 +6266,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -5579,7 +6291,7 @@ const Notes_Evaluation = (props) => {
- Unite D'enseignement
+
Unite d'enseignement
{New_Getall_Partner_List_UE_result && New_Getall_Partner_List_UE_result.length > 0 &&
{
}}
renderInput={(params) =>
@@ -5613,7 +6338,7 @@ const Notes_Evaluation = (props) => {
-
Type d'évaluation
+
Type d'évaluation 02
{New_Getall_Partner_Type_Evalution_List_result && New_Getall_Partner_Type_Evalution_List_result.length > 0 &&
{
}}
renderInput={(params) =>
@@ -5645,6 +6383,95 @@ const Notes_Evaluation = (props) => {
+
Rattrapage 01
+ {New_Option_Oui_Non && New_Option_Oui_Non.length > 0 &&
+
(data).value === String(p_detail_rattrapage))[0].label}
+
+ onChange={(event, value) => {
+ if (value && value.value) {
+ setp_detail_rattrapage(value.value);
+ setevaluation_data_changed("1");
+ } else {
+ setp_detail_rattrapage("");
+ setevaluation_data_changed("1");
+ }
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+
+ }
+
+
+
+
Diplome 002
+
+ {New_Get_List_UE_From_Session_Id_Diplome_result && New_Get_List_UE_From_Session_Id_Diplome_result.length > 0 &&
+
(data).ue_id === String(p_detail_class_eu_id))}
+ multiple
+ onChange={(event, newValue) => {
+ setevaluation_data_changed("1");
+ console.log(" ## == newValue EDIIIT =", newValue)
+ setscope_diplome([
+ ...fixedVal_scope_diplome,
+ ...newValue.filter((i) => fixedVal_scope_diplome.indexOf(i) === -1),
+ ]);
+
+ }}
+ value={scope_diplome}
+
+ renderInput={(params) =>
+ }
+ />}
+
+
+
@@ -5746,6 +6573,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -5933,7 +6773,7 @@ const Notes_Evaluation = (props) => {
- Infos Générales
+ Infos générales 001
{
-
Type d'évaluation
- {New_Getall_Partner_Type_Evalution_List_result && New_Getall_Partner_Type_Evalution_List_result.length > 0 &&
-
(data)._id === String(p_detail_type_eval_id))[0].label}
- onChange={(event, value) => {
- if (value && value._id) {
- setp_detail_type_eval_id(value._id);
- setevaluation_data_changed("1");
- } else {
- setp_detail_type_eval_id("");
- setevaluation_data_changed("1");
- }
- }}
- renderInput={(params) =>
- }
- />
-
- }
-
-
Responsable
@@ -6041,6 +6853,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -6130,6 +6955,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -6166,6 +7004,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -6176,8 +7027,8 @@ const Notes_Evaluation = (props) => {
-
Unite D'enseignement
- {New_Get_List_UE_From_Class_Id_result &&
+
Unite d'enseignement
+ {Distinct_UE_New_Get_List_UE_From_Class_Id_result && Distinct_UE_New_Get_List_UE_From_Class_Id_result.length > 0 &&
{
id="detail_ue"
className="disabled_style"
//className="disabled_style enable_style"
- options={New_Get_List_UE_From_Class_Id_result.filter((data) => (data).class_id === String(p_detail_class_id))}
- value={New_Getall_Partner_List_UE_result.filter((data) => (data)._id === String(p_detail_class_eu_id))[0].label}
+ options={Distinct_UE_New_Get_List_UE_From_Class_Id_result.filter((data) => (data).class_id === String(p_detail_class_id))}
+ value={Distinct_UE_New_Get_List_UE_From_Class_Id_result.filter((data) => (data)._id === String(p_detail_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}
@@ -6201,6 +7052,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -6211,6 +7075,138 @@ const Notes_Evaluation = (props) => {
+
Type d'évaluation
+ {New_Getall_Partner_Type_Evalution_List_result && New_Getall_Partner_Type_Evalution_List_result.length > 0 &&
+
(data)._id === String(p_detail_type_eval_id))[0].label}
+
+ onChange={(event, value) => {
+ if (value && value._id) {
+ setp_detail_type_eval_id(value._id);
+ setevaluation_data_changed("1");
+ } else {
+ setp_detail_type_eval_id("");
+ setevaluation_data_changed("1");
+ }
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+
+ }
+
+
+
+
+
Rattrapage
+ {New_Option_Oui_Non && New_Option_Oui_Non.length > 0 &&
+
(data).value === String(p_detail_rattrapage))[0].label}
+
+ onChange={(event, value) => {
+ if (value && value.value) {
+ setp_detail_rattrapage(value.value);
+ setevaluation_data_changed("1");
+ } else {
+ setp_detail_rattrapage("");
+ setevaluation_data_changed("1");
+ }
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+
+ }
+
+
+
+
Diplome 001
+ {New_Get_List_UE_From_Session_Id_Diplome_result && New_Get_List_UE_From_Session_Id_Diplome_result.length > 0 &&
+
(data).ue_id === String(p_detail_class_eu_id))}
+ multiple
+ onChange={(event, newValue) => {
+ console.log(" ## == newValue =", newValue)
+ setscope_diplome([
+ ...fixedVal_scope_diplome,
+ ...newValue.filter((i) => fixedVal_scope_diplome.indexOf(i) === -1),
+ ]);
+
+ }}
+ //value={scope_diplome.code}
+
+ renderInput={(params) =>
+ }
+ />}
+
+
@@ -6305,6 +7301,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -6433,444 +7442,7 @@ const Notes_Evaluation = (props) => {
- {/*}
-
-
-
-
Code
- {
- setp_detail_code(e.target.value);
- setevaluation_data_changed("1");
- }
- }
- />
-
-
-
-
Titre
- {
- setp_detail_titre(e.target.value);
- setevaluation_data_changed("1");
- }
- }
- />
-
-
-
-
Description
- {
- setp_detail_description(e.target.value);
- setevaluation_data_changed("1");
- }
- }
- />
-
-
-
-
-
-
Formation
- {New_Getall_Partner_Class_Reduice_Fields_result && New_Getall_Partner_Class_Reduice_Fields_result.length > 0 &&
-
-
(data)._id === String(p_detail_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_class_id(value._id);
- setp_detail_class_internal_url(value.internal_url);
- setevaluation_data_changed("1");
- } else {
- Get_List_UE_From_Class_Id("");
-
- setp_detail_class_id("");
- setp_detail_class_internal_url("");
- setevaluation_data_changed("1");
- }
-
- // Quand on modifie la formation, la session et l'UE sont reinitialitées
- setp_detail_session_id("");
- setp_detail_class_eu_id("");
- }}
-
- renderInput={(params) =>
- }
- />
-
- }
-
-
-
-
-
Promotion
- {New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 &&
-
-
(data).class_internal_url === String(p_detail_class_internal_url))}
- value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id))[0].label}
- onChange={(event, value) => {
- if (value && value._id) {
- setp_detail_session_id(value._id);
- setevaluation_data_changed("1");
- } else {
- setp_detail_session_id("");
- setevaluation_data_changed("1");
- }
- }}
-
- renderInput={(params) =>
- }
- />
-
- }
-
-
-
-
Unite D'enseignement
- {New_Get_List_UE_From_Class_Id_result &&
-
-
(data).class_id === String(p_detail_class_id))}
- value={New_Getall_Partner_List_UE_result.filter((data) => (data)._id === String(p_detail_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) {
- setp_detail_class_eu_id(value._id);
- setevaluation_data_changed("1");
- } else {
- setp_detail_class_eu_id("");
- setevaluation_data_changed("1");
- }
- }}
-
- renderInput={(params) =>
- }
- />
-
- }
-
-
-
-
Type d'évaluation
- {New_Getall_Partner_Type_Evalution_List_result && New_Getall_Partner_Type_Evalution_List_result.length > 0 &&
-
(data)._id === String(p_detail_type_eval_id))[0].label}
-
- onChange={(event, value) => {
- if (value && value._id) {
- setp_detail_type_eval_id(value._id);
- setevaluation_data_changed("1");
- } else {
- setp_detail_type_eval_id("");
- setevaluation_data_changed("1");
- }
- }}
-
- renderInput={(params) =>
- }
- />
-
- }
-
-
-
-
Mode Animation
- {New_Option_mode_animation && New_Option_mode_animation.length > 0 &&
(data).value === String(p_detail_mode_animation))[0].label}
- onChange={(event, value) => {
- if (value && value.value) {
- setp_detail_mode_animation(value.value);
-
- } else {
- setp_detail_mode_animation("");
- }
-
-
- }}
-
- renderInput={(params) =>
- }
- />}
-
-
-
-
-
Début
- {
- setp_detail_eval_date_heure_debut(format(date, 'dd/MM/yyyy HH:mm'));
- setevaluation_data_changed("1");
- }
- }
-
-
- className="disabled_style enable_style"
- locale={'fr'}
- showTimeSelect
- timeFormat="HH:mm"
- timeIntervals={15}
- dateFormat="dd/MM/yyyy HH:mm"
- is24Hour
-
- />
-
-
-
-
-
-
Fin
- {
-
- setp_detail_eval_date_heure_fin(format(date, 'dd/MM/yyyy HH:mm'));
- setevaluation_data_changed("1");
- }
- }
-
-
- className="disabled_style enable_style"
- locale={'fr'}
- showTimeSelect
- timeFormat="HH:mm"
- timeIntervals={15}
- dateFormat="dd/MM/yyyy HH:mm"
- is24Hour
-
- />
-
-
-
-
-
-
Adresse
- {
- setp_detail_adress(e.target.value);
- setevaluation_data_changed("1");
- }
- }
- />
-
-
-
-
Code postal
- {
- setp_detail_cp(e.target.value);
- setevaluation_data_changed("1");
- }
- }
- />
-
-
-
-
-
Ville
- {
- setp_detail_ville(e.target.value);
- setevaluation_data_changed("1");
- }
- }
- />
-
-
-
-
-
-
Pays
- {
- setp_detail_pays(e.target.value);
- setevaluation_data_changed("1");
- }
- }
- />
-
-
-
-
-
-
-
Responsable
- {New_Getall_Training_Employee_No_Filter_result && New_Getall_Training_Employee_No_Filter_result.length > 0 &&
-
-
(data)._id === String(p_detail_responsable_id))[0].label}
-
- onChange={(event, value) => {
- if (value && value._id) {
- setp_detail_responsable_id(value._id);
- setevaluation_data_changed("1");
- } else {
- setp_detail_responsable_id("");
- setevaluation_data_changed("1");
- }
- }}
-
- renderInput={(params) =>
- }
- />
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-*/}
@@ -7016,6 +7588,13 @@ const Notes_Evaluation = (props) => {
note_changed: (item).note_changed,
convocation_send_date: (item).convocation_send_date,
convocation_send_type: (item).convocation_send_type,
+
+ publish_by: (item).publish_by,
+ publish_date: (item).publish_date,
+ is_validated_date: (item).is_validated_date,
+
+ has_history: (item).has_history,
+
}
))}
@@ -7094,6 +7673,8 @@ const Notes_Evaluation = (props) => {
fullWidth
options={New_Option_PreInscription}
onChange={(event, value) => {
+ setp_detail_eval_note_publication_deplication_date_heure(new Date());
+
if (value && value.value) {
if (String(value.value) === "delete_inscr" || String(value.value) === "send_convocation"
|| String(value.value) === "publish_note"
@@ -7112,6 +7693,19 @@ const Notes_Evaluation = (props) => {
}}
renderInput={(params) =>
@@ -7152,10 +7746,74 @@ const Notes_Evaluation = (props) => {
{String(actionmass_eval_inscr_val) === "publish_note" &&
Confirmer la publication des notes sur l'ENT en masse pour {selectionModel_evalutions_participant.length} lignes.
+
+
+
+
Date Publication
+
+
+ {
+ setp_detail_eval_note_publication_deplication_date_heure(format(date, 'dd/MM/yyyy HH:mm'));
+
+ }
+ }
+
+
+ className="disabled_style enable_style"
+ locale={'fr'}
+ showTimeSelect
+ timeFormat="HH:mm"
+ timeIntervals={15}
+ dateFormat="dd/MM/yyyy HH:mm"
+ is24Hour
+
+ />
+
+
+
+
+
+
}
{String(actionmass_eval_inscr_val) === "un_publish_note" &&
Confirmer la DE-publication des notes sur l'ENT en masse pour {selectionModel_evalutions_participant.length} lignes.
+
+
+
+
+
Date dépublication
+
+
+ {
+ setp_detail_eval_note_publication_deplication_date_heure(format(date, 'dd/MM/yyyy HH:mm'));
+
+ }
+ }
+
+
+ className="disabled_style enable_style"
+ locale={'fr'}
+ showTimeSelect
+ timeFormat="HH:mm"
+ timeIntervals={15}
+ dateFormat="dd/MM/yyyy HH:mm"
+ is24Hour
+
+ />
+
+
+
+
+
}
{String(actionmass_eval_inscr_val) === "valide_note" &&
@@ -7174,7 +7832,7 @@ const Notes_Evaluation = (props) => {