20/05/2025 - 17h
parent
30fa1d173b
commit
1df79cd52f
|
@ -1,14 +1,10 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import { MdCancel } from "react-icons/md";
|
||||
import { AiOutlineEdit } from "react-icons/ai";
|
||||
import TrainingForm from "./AddClassManual"
|
||||
import TextField from '@mui/material/TextField';
|
||||
import Button from '@mui/material/Button';
|
||||
import Select from 'react-select'
|
||||
import Autocomplete from '@mui/material/Autocomplete';
|
||||
import { getCookie } from 'react-use-cookie';
|
||||
import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
|
||||
import excel_icone from "../mysy_img/excel_icone.png";
|
||||
import Popup from 'reactjs-popup';
|
||||
import fileDownload from 'js-file-download';
|
||||
import 'reactjs-popup/dist/index.css';
|
||||
|
@ -17,22 +13,17 @@ import parse from 'html-react-parser'
|
|||
import { BsEye, BsFileText } from "react-icons/bs";
|
||||
import { useHistory } from "react-router-dom";
|
||||
import axios from "axios";
|
||||
import { CiCoffeeBean, CiDesktop, CiFileOff } from "react-icons/ci";
|
||||
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
|
||||
import { MdAddCircleOutline, MdRemoveCircleOutline } from "react-icons/md";
|
||||
import { LuScreenShare, LuScreenShareOff } from "react-icons/lu";
|
||||
import MenuItem from '@mui/material/MenuItem';
|
||||
import InputAdornment from '@mui/material/InputAdornment';
|
||||
import Box from '@mui/material/Box';
|
||||
import 'react-tooltip/dist/react-tooltip.css'
|
||||
import { Tooltip } from 'react-tooltip'
|
||||
import { FcCancel, FcApproval, FcAcceptDatabase, FcPrint } from "react-icons/fc";
|
||||
import { CiTrash } from "react-icons/ci";
|
||||
import add_plus from "../mysy_img/plus.png";
|
||||
import { FcAcceptDatabase, } from "react-icons/fc";
|
||||
import Dialog from '@mui/material/Dialog';
|
||||
import DialogActions from '@mui/material/DialogActions';
|
||||
import DialogContent from '@mui/material/DialogContent';
|
||||
import DialogContentText from '@mui/material/DialogContentText';
|
||||
import DialogTitle from '@mui/material/DialogTitle';
|
||||
import ToggleSwitch from "./ToggleSwitch";
|
||||
import SendIcon from '@mui/icons-material/Send';
|
||||
|
@ -56,7 +47,7 @@ import { useCookies } from "react-cookie";
|
|||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import Paper from '@material-ui/core/Paper';
|
||||
import Draggable from 'react-draggable';
|
||||
import AutoFixHighOutlinedIcon from '@mui/icons-material/AutoFixHighOutlined';
|
||||
|
||||
import CancelPresentationIcon from '@mui/icons-material/CancelPresentation';
|
||||
import { IconButton } from '@material-ui/core';
|
||||
|
||||
|
@ -685,7 +676,8 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
return (
|
||||
<div>
|
||||
|
||||
{(!cellValues.row.lms_class_code || String(cellValues.row.lms_class_code).length <= 2) && <nav style={{ width: '100%', 'textAlign': 'center' }}>
|
||||
{(!cellValues.row.lms_class_code || String(cellValues.row.lms_class_code).length <= 2) &&
|
||||
<nav style={{ width: '100%', 'textAlign': 'center' }}>
|
||||
<IconButton
|
||||
aria-label="more"
|
||||
id="long-button"
|
||||
|
|
|
@ -408,6 +408,7 @@ const Jury = (props) => {
|
|||
{ field: 'id', headerName: 'id', hide: true },
|
||||
|
||||
{ field: 'jury_soutenance_id', headerName: 'jury_soutenance_id', hide: true },
|
||||
{ field: 'jury_session_id', headerName: 'jury_session_id', hide: true },
|
||||
|
||||
|
||||
{ field: 'event_title', headerName: 'Titre', hide: true },
|
||||
|
@ -2841,6 +2842,7 @@ const Jury = (props) => {
|
|||
'id': String(JSON.parse(obj).soutenance_agenda_id),
|
||||
'_id': String(JSON.parse(obj).soutenance_agenda_id),
|
||||
'jury_soutenance_id': String(JSON.parse(obj)._id),
|
||||
'jury_session_id': String(JSON.parse(obj).session_id),
|
||||
'convocation_apprenant_send': String(JSON.parse(obj).convocation_apprenant_send),
|
||||
'convocation_apprenant_date_sending': String(JSON.parse(obj).convocation_apprenant_date_sending).substring(0, 10),
|
||||
|
||||
|
@ -7189,10 +7191,10 @@ const Jury = (props) => {
|
|||
event_start: (item).start,
|
||||
event_end: (item).end,
|
||||
jury_soutenance_id: (item).jury_soutenance_id,
|
||||
jury_session_id: (item).jury_session_id,
|
||||
convocation_apprenant_send: (item).convocation_apprenant_send,
|
||||
convocation_apprenant_date_sending: (item).convocation_apprenant_date_sending,
|
||||
|
||||
|
||||
}
|
||||
|
||||
))}
|
||||
|
@ -7207,9 +7209,9 @@ const Jury = (props) => {
|
|||
|
||||
setselected_jury_soutenance_id(newSelectionModel.row.jury_soutenance_id);
|
||||
|
||||
setp_detail_linked_collection_recid(newSelectionModel.row.event_linked_collection_recid);
|
||||
setp_detail_linked_collection_recid(newSelectionModel.row.jury_session_id);
|
||||
setsubmenu_detail_seance("display_jury_seance");
|
||||
GetCurrentSession(newSelectionModel.row.event_linked_collection_recid);
|
||||
GetCurrentSession(newSelectionModel.row.jury_session_id);
|
||||
|
||||
if (String(selected_jury_cible) === "soutenance") {
|
||||
Get_Jury_List_Apprenant_Soutenance(newSelectionModel.row._id);
|
||||
|
@ -7438,8 +7440,6 @@ const Jury = (props) => {
|
|||
&& GetCurrentSession_result.length > 0 &&
|
||||
<div style={{ "border": "None" }}>
|
||||
|
||||
|
||||
|
||||
<Module_Session_Notes_Classement
|
||||
conntected_employee_id={props.conntected_employee_id}
|
||||
related_collection={"session_formation"}
|
||||
|
@ -7448,6 +7448,7 @@ const Jury = (props) => {
|
|||
jury_cell_editable={true}
|
||||
jury_seance_agenda_id={selected_agenda_id}
|
||||
jury_seance_ue_id={selected_ue_id}
|
||||
jury_id={selected_id}
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -15,7 +15,7 @@ import 'moment/locale/fr';
|
|||
import Box from '@mui/material/Box';
|
||||
import { Tooltip } from 'react-tooltip'
|
||||
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
|
||||
|
||||
import TextareaAutosize from '@mui/material/TextareaAutosize';
|
||||
import Autocomplete from '@mui/material/Autocomplete';
|
||||
import { FcOpenedFolder } from "react-icons/fc";
|
||||
import { gridClasses } from '@mui/x-data-grid';
|
||||
|
@ -28,8 +28,16 @@ import InputAdornment from '@mui/material/InputAdornment';
|
|||
import { AiFillCloseCircle } from "react-icons/ai";
|
||||
import { MdAddCircleOutline, MdRemoveCircleOutline } from "react-icons/md";
|
||||
import Module_Alert_Confirmation from "./Module_Alert_Confirmation";
|
||||
import Checkbox from '@mui/material/Checkbox';
|
||||
|
||||
import Dialog from '@mui/material/Dialog';
|
||||
import DialogActions from '@mui/material/DialogActions';
|
||||
import DialogContent from '@mui/material/DialogContent';
|
||||
import DialogTitle from '@mui/material/DialogTitle';
|
||||
import DialogContentText from '@mui/material/DialogContentText';
|
||||
import CancelPresentationIcon from '@mui/icons-material/CancelPresentation';
|
||||
import { IconButton } from '@material-ui/core';
|
||||
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
||||
import Menu from '@mui/material/Menu';
|
||||
import MenuItem from '@mui/material/MenuItem';
|
||||
|
||||
function PaperComponent(props) {
|
||||
return (
|
||||
|
@ -184,7 +192,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
const columns_list_session_note_classement_final = [
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'inscription_id', headerName: 'inscription_id', hide: true },
|
||||
{ field: 'session_id', headerName: 'session_id', hide: true },
|
||||
{ field: 'class_id', headerName: 'class_id', hide: true },
|
||||
|
||||
|
@ -203,10 +210,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
{ field: 'rang_calculation_date', headerName: 'Date Calcul', minwidth: 100, flex: 1, hide: true, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
|
||||
{ field: 'jury_note', headerName: 'Note Jury', width: 200, editable: jury_cell_editable, renderCell: (params) => <ExpandableCell_50_bg_hiligt_red_color {...params} />, align: "center", },
|
||||
{ field: 'jury_comment', headerName: 'Comment Jury', width: 200, editable: jury_cell_editable, renderCell: (params) => <ExpandableCell_50_bg_hiligt_red_color {...params} />, align: "center", },
|
||||
|
||||
|
||||
|
||||
{ field: 'jury_observation', headerName: 'Observ. Jury', width: 200, editable: jury_cell_editable, renderCell: (params) => <ExpandableCell_50_bg_hiligt_red_color {...params} />, align: "center", },
|
||||
{
|
||||
field: 'jury_validation', headerName: 'Validation Jury', width: 150, hide: false, editable: jury_cell_editable,
|
||||
renderCell: (cellValues) => {
|
||||
|
@ -251,6 +255,82 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
field: 'jury_validation_champ_technique', headerName: 'Validation Jury_tech', width: 200, renderCell: (params) => <ExpandableCell_50_bg_hiligt_red_color {...params} />, align: "center",
|
||||
},
|
||||
|
||||
{
|
||||
field: 'gestion', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center",
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
<div>
|
||||
<nav style={{ width: '100%', 'textAlign': 'center' }}>
|
||||
<IconButton
|
||||
aria-label="more"
|
||||
id="long-button"
|
||||
aria-controls={open ? 'long-menu_p' : undefined}
|
||||
aria-expanded={open ? 'true' : undefined}
|
||||
aria-haspopup="true"
|
||||
// onClick={handleClick_option_button_vertical}
|
||||
onClick={(e) => {
|
||||
handleClick_option_button_vertical(e);
|
||||
setworking_cellValues(cellValues);
|
||||
|
||||
setp_detail_jury_observation(cellValues.row.jury_observation);
|
||||
setp_detail_jury_note(cellValues.row.jury_note);
|
||||
setp_detail_jury_validation(cellValues.row.jury_validation);
|
||||
setselected_inscription_id_for_jury(cellValues.row._id);
|
||||
}}
|
||||
|
||||
>
|
||||
<MoreVertIcon />
|
||||
</IconButton>
|
||||
<Menu
|
||||
id="long-menu_p"
|
||||
MenuListProps={{
|
||||
'aria-labelledby': 'long-button',
|
||||
}}
|
||||
anchorEl={anchorEl}
|
||||
open={open}
|
||||
onClose={handleClose_option_button_vertical}
|
||||
slotProps={{
|
||||
paper: {
|
||||
style: {
|
||||
maxHeight: ITEM_HEIGHT * 4.5,
|
||||
width: '20ch',
|
||||
boxShadow: "-3px 4px 0px -30px #000000",
|
||||
borderRadius: '0px !important',
|
||||
lineHeight: '3rem'
|
||||
},
|
||||
},
|
||||
}}
|
||||
>
|
||||
{options_menu_vertical.map((option) => (
|
||||
<MenuItem key={option}
|
||||
|
||||
onClick={(e) => {
|
||||
//handleClose_option_button_vertical(e, option);
|
||||
setAnchorEl(null);
|
||||
|
||||
if (option && String(option) === "Jury Edit") {
|
||||
|
||||
|
||||
setDialog_JURY_INFO_open(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}}
|
||||
>
|
||||
{option}
|
||||
</MenuItem>
|
||||
))}
|
||||
</Menu>
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
const columns_list_evaluation_detail_note_classement_final = [
|
||||
|
@ -484,6 +564,63 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
|
||||
|
||||
const [dialogOpen_push_lms, setdialogOpen_push_lms] = useState(false);
|
||||
const Dialog_menuitem_close_push_lms = () => {
|
||||
setdialogOpen_push_lms(false)
|
||||
};
|
||||
|
||||
|
||||
const [working_cellValues, setworking_cellValues] = useState(false);
|
||||
|
||||
const [dialogOpen_supp, setdialogOpen_supp] = useState(false);
|
||||
const Dialog_menuitem_close_supp = () => {
|
||||
setdialogOpen_supp(false)
|
||||
};
|
||||
|
||||
const options_menu_vertical = [
|
||||
'',
|
||||
'Jury Edit',
|
||||
];
|
||||
|
||||
|
||||
const ITEM_HEIGHT = 48;
|
||||
|
||||
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick_option_button_vertical = (event) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
const handleClose_option_button_vertical = (event, value) => {
|
||||
|
||||
|
||||
console.log("Option traitement = ", value);
|
||||
|
||||
if (value && String(value) === "Jury Edit") {
|
||||
console.log("### Jury Edit= ", value);
|
||||
|
||||
}
|
||||
|
||||
else if (value && String(value) === "Editer") {
|
||||
|
||||
}
|
||||
|
||||
else if (value && String(value) === "Pub. E-Learning") {
|
||||
|
||||
}
|
||||
|
||||
|
||||
else if (value && String(value) === "Supprimer") {
|
||||
|
||||
console.log("Option traitement 22 = ", value);
|
||||
|
||||
}
|
||||
|
||||
|
||||
setAnchorEl(null);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
const [Calcul_Note_Classement_Session_api, setCalcul_Note_Classement_Session_api] = useState();
|
||||
|
@ -557,7 +694,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
if (props.jury_seance_agenda_id)
|
||||
form.append("jury_apprenant_agenda_id", props.jury_seance_agenda_id);
|
||||
|
||||
if (props.jury_seance_ue_id)
|
||||
if (props.jury_seance_ue_id)
|
||||
form.append("tab_ue_id", props.jury_seance_ue_id);
|
||||
|
||||
// Recuperation des parametres
|
||||
|
@ -751,7 +888,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
//---
|
||||
var localid = JSON.parse(x).id;
|
||||
var local_id = JSON.parse(x)._id;
|
||||
var inscription_id = JSON.parse(x).inscription_id;
|
||||
var session_id = JSON.parse(x).session_id;
|
||||
|
||||
var class_id = JSON.parse(x).class_id;
|
||||
|
@ -763,7 +899,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
var credit_acquis = JSON.parse(x).credit_acquis;
|
||||
|
||||
var jury_note = JSON.parse(x).jury_note;
|
||||
var jury_comment = JSON.parse(x).jury_comment;
|
||||
var jury_observation = JSON.parse(x).jury_observation;
|
||||
var jury_validation = JSON.parse(x).jury_validation;
|
||||
|
||||
|
||||
|
@ -772,7 +908,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
"_id": local_id,
|
||||
"id": localid,
|
||||
"label": local_id,
|
||||
"inscription_id": inscription_id,
|
||||
"session_id": session_id,
|
||||
|
||||
"class_id": class_id,
|
||||
|
@ -784,7 +919,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
"credit_acquis": credit_acquis,
|
||||
|
||||
"jury_note": jury_note,
|
||||
"jury_comment": jury_comment,
|
||||
"jury_observation": jury_observation,
|
||||
"jury_validation": jury_validation,
|
||||
|
||||
};
|
||||
|
@ -807,7 +942,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
"credit_acquis": "",
|
||||
|
||||
"jury_note": "",
|
||||
"jury_comment": "",
|
||||
"jury_observation": "",
|
||||
"jury_validation": "",
|
||||
|
||||
};
|
||||
|
@ -816,6 +951,9 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
if (new_data2.length > 0)
|
||||
setNew_Getall_Session_Final_Note_Classement_result(new_data2);
|
||||
|
||||
console.log(" ## new_data2 = ", new_data2)
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
setGetall_Session_Final_Note_Classement_api("false");
|
||||
|
@ -1202,7 +1340,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
var tmp = {};
|
||||
tmp['id'] = (x).id;
|
||||
tmp['_id'] = (x)._id;
|
||||
tmp['inscription_id'] = (x).inscription_id;
|
||||
tmp['session_id'] = (x).session_id;
|
||||
tmp['class_id'] = (x).class_id;
|
||||
tmp['nom'] = (x).nom;
|
||||
|
@ -1216,7 +1353,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
|
||||
tmp['jury_note'] = new_value;
|
||||
tmp['jury_comment'] = (x).jury_comment;
|
||||
tmp['jury_observation'] = (x).jury_observation;
|
||||
tmp['jury_validation'] = (x).jury_validation;
|
||||
tmp['jury_validation_champ_technique'] = (x).jury_validation_champ_technique;
|
||||
|
||||
|
@ -1225,11 +1362,10 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
}
|
||||
|
||||
if (String(num_line) === String(localid) && colomn === "jury_comment") {
|
||||
if (String(num_line) === String(localid) && colomn === "jury_observation") {
|
||||
var tmp = {};
|
||||
tmp['id'] = (x).id;
|
||||
tmp['_id'] = (x)._id;
|
||||
tmp['inscription_id'] = (x).inscription_id;
|
||||
tmp['session_id'] = (x).session_id;
|
||||
tmp['class_id'] = (x).class_id;
|
||||
tmp['nom'] = (x).nom;
|
||||
|
@ -1243,7 +1379,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
|
||||
tmp['jury_note'] = (x).jury_note;
|
||||
tmp['jury_comment'] = new_value;
|
||||
tmp['jury_observation'] = new_value;
|
||||
tmp['jury_validation'] = (x).jury_validation;
|
||||
tmp['jury_validation_champ_technique'] = (x).jury_validation_champ_technique;
|
||||
|
||||
|
@ -1254,7 +1390,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
var tmp = {};
|
||||
tmp['id'] = (x).id;
|
||||
tmp['_id'] = (x)._id;
|
||||
tmp['inscription_id'] = (x).inscription_id;
|
||||
tmp['session_id'] = (x).session_id;
|
||||
tmp['class_id'] = (x).class_id;
|
||||
tmp['nom'] = (x).nom;
|
||||
|
@ -1268,7 +1403,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
|
||||
tmp['jury_note'] = (x).jury_note;
|
||||
tmp['jury_comment'] = (x).jury_comment;
|
||||
tmp['jury_observation'] = (x).jury_observation;
|
||||
tmp['jury_validation'] = new_value;
|
||||
tmp['jury_validation_champ_technique'] = (x).jury_validation_champ_technique;
|
||||
|
||||
|
@ -1280,7 +1415,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
var tmp = {};
|
||||
tmp['id'] = (x).id;
|
||||
tmp['_id'] = (x)._id;
|
||||
tmp['inscription_id'] = (x).inscription_id;
|
||||
tmp['session_id'] = (x).session_id;
|
||||
tmp['class_id'] = (x).class_id;
|
||||
tmp['nom'] = (x).nom;
|
||||
|
@ -1294,7 +1428,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
|
||||
tmp['jury_note'] = (x).jury_note;
|
||||
tmp['jury_comment'] = (x).jury_comment;
|
||||
tmp['jury_observation'] = (x).jury_observation;
|
||||
tmp['jury_validation'] = (x).jury_validation;
|
||||
tmp['jury_validation_champ_technique'] = (x).jury_validation_champ_technique;
|
||||
|
||||
|
@ -1339,7 +1473,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
var tmp = {};
|
||||
tmp['id'] = (x).id;
|
||||
tmp['_id'] = (x)._id;
|
||||
tmp['inscription_id'] = (x).inscription_id;
|
||||
tmp['session_id'] = (x).session_id;
|
||||
tmp['class_id'] = (x).class_id;
|
||||
tmp['nom'] = (x).nom;
|
||||
|
@ -1353,7 +1486,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
|
||||
tmp['jury_note'] = (x).jury_note;
|
||||
tmp['jury_comment'] = (x).jury_comment;
|
||||
tmp['jury_observation'] = (x).jury_observation;
|
||||
tmp['jury_validation'] = String(new_value);
|
||||
tmp['jury_validation_champ_technique'] = String(new_value);
|
||||
|
||||
|
@ -1365,7 +1498,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
var tmp = {};
|
||||
tmp['id'] = (x).id;
|
||||
tmp['_id'] = (x)._id;
|
||||
tmp['inscription_id'] = (x).inscription_id;
|
||||
tmp['session_id'] = (x).session_id;
|
||||
tmp['class_id'] = (x).class_id;
|
||||
tmp['nom'] = (x).nom;
|
||||
|
@ -1379,7 +1511,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
|
||||
tmp['jury_note'] = (x).jury_note;
|
||||
tmp['jury_comment'] = (x).jury_comment;
|
||||
tmp['jury_observation'] = (x).jury_observation;
|
||||
tmp['jury_validation'] = (x).jury_validation;
|
||||
tmp['jury_validation_champ_technique'] = (x).jury_validation_champ_technique;
|
||||
|
||||
|
@ -1397,6 +1529,80 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
}
|
||||
|
||||
|
||||
const [Dialog_1_message, setDialog_1_message] = React.useState(false);
|
||||
const [Dialog_JURY_INFO_open, setDialog_JURY_INFO_open] = React.useState(false);
|
||||
|
||||
const Dialog_JURY_INFO_handleClose_buton = () => {
|
||||
setDialog_JURY_INFO_open(false);
|
||||
setp_detail_jury_observation("");
|
||||
setp_detail_jury_note("");
|
||||
setp_detail_jury_validation("");
|
||||
|
||||
};
|
||||
|
||||
const [p_detail_jury_observation, setp_detail_jury_observation] = useState("");
|
||||
const [p_detail_jury_note, setp_detail_jury_note] = useState("");
|
||||
const [p_detail_jury_validation, setp_detail_jury_validation] = useState("");
|
||||
const [selected_inscription_id_for_jury, setselected_inscription_id_for_jury] = useState("");
|
||||
|
||||
const [Update_Jury_Promo_List_Inscrit_api, setUpdate_Jury_Promo_List_Inscrit_api] = useState();
|
||||
const [Update_Jury_Promo_List_Inscrit_message, setUpdate_Jury_Promo_List_Inscrit_message] = useState();
|
||||
const [Update_Jury_Promo_List_Inscrit_result, setUpdate_Jury_Promo_List_Inscrit_result] = useState([]);
|
||||
function Update_Jury_Promo_List_Inscrit() {
|
||||
var form = new FormData();
|
||||
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
|
||||
form.append("jury_id", props.jury_id);
|
||||
form.append("tab_inscriptions_ids", selected_inscription_id_for_jury);
|
||||
form.append("jury_observation", p_detail_jury_observation);
|
||||
form.append("jury_note", p_detail_jury_note);
|
||||
form.append("jury_validation", p_detail_jury_validation);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Inscrit_Juy_Promo_Decision/";
|
||||
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
//console.log(" In Update_Jury_Promo_List_Inscrit res.data.status = " + res.data.status);
|
||||
//console.log(" In Update_Jury_Promo_List_Inscrit res.data.message r_class = " + res.data.message);
|
||||
|
||||
setLoading(false);
|
||||
|
||||
if (String(res.data.status) === String("true")) {
|
||||
setUpdate_Jury_Promo_List_Inscrit_api("true");
|
||||
setUpdate_Jury_Promo_List_Inscrit_result(res.data.message);
|
||||
|
||||
Getall_Session_Final_Note_Classement();
|
||||
// alert(res.data.message);
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(res.data.message);
|
||||
setalert_type("success");
|
||||
}
|
||||
else {
|
||||
setUpdate_Jury_Promo_List_Inscrit_api("false");
|
||||
setUpdate_Jury_Promo_List_Inscrit_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 = ' + error);
|
||||
setUpdate_Jury_Promo_List_Inscrit_api("false");
|
||||
alert(" Impossible d'ajouter ou mettre à jour la décision du jury ");
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const [vue_note, setvue_note] = useState("classement");
|
||||
|
||||
return (
|
||||
<div className="module_session_note_classement">
|
||||
|
@ -1418,7 +1624,166 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
|
||||
|
||||
<div style={{ "border": "None" }}>
|
||||
|
||||
{/* Dialog pour gerer les JURY_INFO */}
|
||||
<Dialog
|
||||
open={Dialog_JURY_INFO_open}
|
||||
// onClose={Dialog_JURY_INFO_handleClose}
|
||||
// className="displaypartnersession"
|
||||
|
||||
className="displaypartnersession"
|
||||
|
||||
static
|
||||
onClose={() => 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"
|
||||
|
||||
>
|
||||
|
||||
<DialogTitle> Délibération du Jury</DialogTitle>
|
||||
<DialogContent className="DialogContent_width" style={{ "minHeight": "30rem" }}>
|
||||
<DialogContentText>
|
||||
{Dialog_1_message}
|
||||
</DialogContentText>
|
||||
|
||||
<div className="session_caract_Dialog" > <b> Observation </b> <br />
|
||||
|
||||
<TextareaAutosize
|
||||
name="detail_jury_observation"
|
||||
id="detail_jury_observation"
|
||||
aria-label="minimum height"
|
||||
minRows={3}
|
||||
maxRows={4}
|
||||
//placeholder="Minimum 3 rows"
|
||||
style={{
|
||||
border: "1px solid gainsboro", width: '99%', padding: '2px',
|
||||
maxHeight: '15rem', height: '10rem', minHeight: '10rem', marginBottom: '3rem'
|
||||
}}
|
||||
value={p_detail_jury_observation}
|
||||
onChange={(e) => {
|
||||
setp_detail_jury_observation(e.target.value);
|
||||
|
||||
}}
|
||||
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > <b> Note </b> <br />
|
||||
|
||||
<TextareaAutosize
|
||||
name="detail_jury_note"
|
||||
id="detail_jury_note"
|
||||
aria-label="minimum height"
|
||||
rows={1}
|
||||
|
||||
style={{
|
||||
border: "1px solid gainsboro", width: '99%', padding: '2px',
|
||||
maxHeight: '3rem', height: '3rem', minHeight: '3rem', marginBottom: '3rem'
|
||||
}}
|
||||
value={p_detail_jury_note}
|
||||
onChange={(e) => {
|
||||
setp_detail_jury_note(e.target.value);
|
||||
}}
|
||||
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > <b> Validation </b> <br />
|
||||
|
||||
<TextareaAutosize
|
||||
name="detail_jury_note"
|
||||
id="detail_jury_note"
|
||||
aria-label="minimum height"
|
||||
rows={1}
|
||||
|
||||
style={{
|
||||
border: "1px solid gainsboro", width: '99%', padding: '2px',
|
||||
maxHeight: '3rem', height: '3rem', minHeight: '3rem', marginBottom: '3rem'
|
||||
}}
|
||||
value={p_detail_jury_validation}
|
||||
onChange={(e) => {
|
||||
setp_detail_jury_validation(e.target.value);
|
||||
}}
|
||||
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</DialogContent>
|
||||
|
||||
<DialogActions>
|
||||
|
||||
<IconButton
|
||||
autoFocus
|
||||
onClick={Dialog_JURY_INFO_handleClose_buton}
|
||||
color="primary"
|
||||
className={classes.customizedButton}
|
||||
>
|
||||
<CancelPresentationIcon />
|
||||
</IconButton>
|
||||
|
||||
<div className="div_row">
|
||||
<div className="div_row_gauche">
|
||||
<Button
|
||||
className="bton_enreg_dialog" onClick={(e) => {
|
||||
Update_Jury_Promo_List_Inscrit();
|
||||
Dialog_JURY_INFO_handleClose_buton();
|
||||
}}
|
||||
>Mettre à jour </Button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
|
||||
<Button onClick={Dialog_JURY_INFO_handleClose_buton} className="bton_annule_dialog" >Fermer</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</DialogActions>
|
||||
|
||||
</Dialog>
|
||||
{/* FIN Dialog pour gerer les JURY_INFO */}
|
||||
|
||||
|
||||
|
||||
<div style={{ width: '100%', float: 'left' }}>
|
||||
|
||||
|
||||
<nav style={{ textAlign: 'right', width: '50%', float: 'left' }}>
|
||||
<Button variant="outlined" onClick={(e) => {
|
||||
setvue_note("classement");
|
||||
}} className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Classement Gle </Button>
|
||||
|
||||
<Button variant="outlined" onClick={(e) => {
|
||||
setvue_note("detail_note");
|
||||
}} className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Détail Notes </Button>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
{vue_note && String(vue_note) === "classement" && <div style={{ "border": "None" }}>
|
||||
|
||||
<div className="div_row" style={{ paddingRight: '10px' }}>
|
||||
|
||||
|
@ -1433,13 +1798,10 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
<nav style={{ textAlign: 'right', width: '50%', float: 'left' }}>
|
||||
<Button variant="outlined" onClick={Calcul_Note_Classement_Session} className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Calcul Moyenne </Button>
|
||||
|
||||
<Button variant="outlined" onClick={Jury_Update_Final_Session} className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Mettre à jour </Button>
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
<Box
|
||||
sx={{
|
||||
|
@ -1514,7 +1876,6 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
{
|
||||
id: index,
|
||||
_id: (item)._id,
|
||||
inscription_id: (item).inscription_id,
|
||||
session_id: (item).session_id,
|
||||
|
||||
class_id: (item).class_id,
|
||||
|
@ -1526,7 +1887,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
credit_acquis: (item).credit_acquis,
|
||||
|
||||
jury_note: (item).jury_note,
|
||||
jury_comment: (item).jury_comment,
|
||||
jury_observation: (item).jury_observation,
|
||||
jury_validation: (item).jury_validation,
|
||||
jury_validation_champ_technique: (item).jury_validation_champ_technique,
|
||||
|
||||
|
@ -1597,10 +1958,10 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>}
|
||||
|
||||
|
||||
<div style={{ "border": "None" }}>
|
||||
{vue_note && String(vue_note) === "detail_note" && <div style={{ "border": "None" }}>
|
||||
|
||||
{/***** On n'affiche les filtre que si necessaire */}
|
||||
<div className="div_row">
|
||||
|
@ -2105,10 +2466,10 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>}
|
||||
|
||||
|
||||
<div style={{ "border": "None" }}>
|
||||
{vue_note && String(vue_note) === "detail_note" && <div style={{ "border": "None" }}>
|
||||
|
||||
<div className="div_row" style={{ paddingRight: '10px' }}>
|
||||
|
||||
|
@ -2286,7 +2647,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>}
|
||||
</div >
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue