09/04/2024 - 23h50
parent
aff1b876c6
commit
fbb2896a06
|
@ -865,55 +865,44 @@ const DisplayPartnerSession = (props) => {
|
||||||
const columns_list_evaluation = [
|
const columns_list_evaluation = [
|
||||||
{ field: 'id', headerName: 'id', hide: true },
|
{ field: 'id', headerName: 'id', hide: true },
|
||||||
{ field: '_id', headerName: '_id', hide: true },
|
{ field: '_id', headerName: '_id', hide: true },
|
||||||
{ field: 'email', headerName: 'email', miniWidth: 300, flex: 1, hideable: true, resizable: true, renderCell: (params) => <ExpandableCell_50 {...params} /> },
|
{ field: 'form_code', headerName: 'Form. Code', hide: true, minwidth: 200, flex: 1, hideable: true, resizable: true, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||||
{ field: 'nom', headerName: 'nom', miniWidth: 200, hide: false, flex: 1, editable: true, renderCell: (params) => <ExpandableCell_50 {...params} /> },
|
{ field: 'email', headerName: 'email', minwidth: 300, flex: 1, hideable: true, resizable: true, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||||
{ field: 'prenom', headerName: 'prenom', miniWidth: 200, hide: false, flex: 1, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} /> },
|
{ field: 'nom', headerName: 'nom', minwidth: 300, flex: 1, hide: false, editable: true, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||||
|
{ field: 'prenom', headerName: 'prenom', minwidth: 300, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||||
{
|
{
|
||||||
field: 'eval_status', headerName: 'Statut', width: 100, editable: false, flex: true,
|
field: 'status', headerName: 'Statut', width: 100, editable: false, flex: true,
|
||||||
valueFormatter: (params) => {
|
valueFormatter: (params) => {
|
||||||
if (String(params.value) === "0")
|
if (String(params.value) === "0")
|
||||||
return "Envoyé";
|
return "Init.";
|
||||||
else if (String(params.value) === "1")
|
else if (String(params.value) === "1")
|
||||||
return "Evalué";
|
return "Env.";
|
||||||
|
else if (String(params.value) === "2")
|
||||||
|
return "Rép.";
|
||||||
else
|
else
|
||||||
return "A envoyer";
|
return " ?";
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
field: 'date_envoie', headerName: 'Date Envoi', width: 150, editable: false,
|
||||||
|
valueFormatter: (params) => {
|
||||||
|
if (params.value)
|
||||||
|
return String(params.value).substring(0, 16)
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'date_demande_eval', headerName: 'Date demande', width: 150, editable: false,
|
field: 'date_reponse', headerName: 'Date Réponse', width: 150, editable: false,
|
||||||
valueFormatter: (params) => {
|
valueFormatter: (params) => {
|
||||||
|
if (params.value)
|
||||||
return String(params.value).substring(0, 16)
|
return String(params.value).substring(0, 16)
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ field: 'eval_eval', headerName: 'Evaluation', width: 100, editable: false, flex: true, renderCell: (params) => <ExpandableCell_50 {...params} /> },
|
|
||||||
{ field: 'eval_note', headerName: 'Note', width: 100, editable: false, },
|
|
||||||
{ field: 'eval_pedagogie', headerName: 'Pédagogie', width: 100, editable: false, },
|
|
||||||
{
|
|
||||||
field: 'eval_date', headerName: 'Date evalution', width: 100, editable: false,
|
|
||||||
valueFormatter: (params) => {
|
|
||||||
return String(params.value).substring(0, 16)
|
|
||||||
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{/*
|
|
||||||
field: "valide", headerName: 'Valider',
|
|
||||||
renderCell: (cellValues) => {
|
|
||||||
return (
|
|
||||||
|
|
||||||
<Button
|
|
||||||
|
|
||||||
onClick={(event) => {
|
|
||||||
handleClick_valide_emargement(event, cellValues);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<FcApproval />
|
|
||||||
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
);
|
|
||||||
}
|
|
||||||
*/},
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2341,7 +2330,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
if (!edit_session_form) {
|
if (!edit_session_form) {
|
||||||
desableSessionFields();
|
desableSessionFields();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|
||||||
if (document.getElementById("historique")) {
|
if (document.getElementById("historique")) {
|
||||||
document.getElementById("historique").style.backgroundColor = "#104277";
|
document.getElementById("historique").style.backgroundColor = "#104277";
|
||||||
|
@ -2514,6 +2503,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
setsubmenu("evaluation");
|
setsubmenu("evaluation");
|
||||||
|
|
||||||
submenu_color_management("evaluation");
|
submenu_color_management("evaluation");
|
||||||
|
Getall_Survey_hot_evaluation_By_Session();
|
||||||
/*
|
/*
|
||||||
//await sleep(5);
|
//await sleep(5);
|
||||||
if (!edit_session_form) {
|
if (!edit_session_form) {
|
||||||
|
@ -10072,6 +10062,9 @@ const DisplayPartnerSession = (props) => {
|
||||||
const [GetListePreinscrit_evaluation_meassage, setGetListePreinscrit_evaluation_meassage] = useState();
|
const [GetListePreinscrit_evaluation_meassage, setGetListePreinscrit_evaluation_meassage] = useState();
|
||||||
const [GetListePreinscrit_evaluation_result, setGetListePreinscrit_evaluation_result] = useState([])
|
const [GetListePreinscrit_evaluation_result, setGetListePreinscrit_evaluation_result] = useState([])
|
||||||
function GetListeEvaluation(localsessionid) {
|
function GetListeEvaluation(localsessionid) {
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
clean_old_messages();
|
clean_old_messages();
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
|
@ -10172,11 +10165,62 @@ const DisplayPartnerSession = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SendEvaluationEmail_Many_Ids(tab_ids_inscription);
|
//SendEvaluationEmail_Many_Ids(tab_ids_inscription);
|
||||||
|
Send_Survey_By_Email_For_Ids(tab_ids_inscription);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const [Send_Survey_By_Email_For_Ids_api, setSend_Survey_By_Email_For_Ids_api] = useState();
|
||||||
|
const [Send_Survey_By_Email_For_Ids_message, setSend_Survey_By_Email_For_Ids_message] = useState();
|
||||||
|
const [Send_Survey_By_Email_For_Ids_result, setSend_Survey_By_Email_For_Ids_result] = useState();
|
||||||
|
function Send_Survey_By_Email_For_Ids(tab_survey) {
|
||||||
|
var form = new FormData();
|
||||||
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("tab_ids", tab_survey);
|
||||||
|
|
||||||
|
|
||||||
|
//alert(" mysession = "+mysession);
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Send_Survey_TabIds/";
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
//console.log(" In UpdateStagiaireData res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In UpdateStagiaireData res.data.message r_class = " + res.data.message);
|
||||||
|
setSend_Survey_By_Email_For_Ids_api("true");
|
||||||
|
setSend_Survey_By_Email_For_Ids_result(res.data.message);
|
||||||
|
Getall_Survey_hot_evaluation_By_Session();
|
||||||
|
|
||||||
|
setSelectionModel_evaluation([]);
|
||||||
|
alert(res.data.message);
|
||||||
|
|
||||||
|
} else if (String(res.data.status) === String("Err_Connexion")) {
|
||||||
|
alert('Erreur: ' + res.data.message);
|
||||||
|
history.push("/Connexion");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setSend_Survey_By_Email_For_Ids_api("false");
|
||||||
|
setSend_Survey_By_Email_For_Ids_message(res.data.message);
|
||||||
|
alert(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Send_Survey_By_Email_For_Ids : Not good man :( mysearchtext = ' + error);
|
||||||
|
setSend_Survey_By_Email_For_Ids_api("false");
|
||||||
|
alert(" Impossible d'envoyer les demandes");
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function PrintEvaluationDetail() {
|
function PrintEvaluationDetail() {
|
||||||
|
|
||||||
var filedetail = "detail_evaluation.xlsx"
|
var filedetail = "detail_evaluation.xlsx"
|
||||||
|
@ -10377,6 +10421,216 @@ const DisplayPartnerSession = (props) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const [Dialog_LIST_HOT_EVALUATION_QUESTION_open, setDialog_LIST_HOT_EVALUATION_QUESTION_open] = React.useState(false);
|
||||||
|
const Dialog_LIST_HOT_EVALUATION_QUESTION_handleClose = () => {
|
||||||
|
//alert(" Utiliser le bouton 'fermer' ");
|
||||||
|
//setOpen(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
const Dialog_LIST_HOT_EVALUATION_QUESTION_handleClose_buton = () => {
|
||||||
|
setDialog_LIST_HOT_EVALUATION_QUESTION_open(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
const [selected_formulaire_id, setselected_formulaire_id] = useState();
|
||||||
|
|
||||||
|
const [New_Getall_Partner_Formulaires_hot_evaluation_with_Filter, setNew_Getall_Partner_Formulaires_hot_evaluation_with_Filter] = useState([]);
|
||||||
|
|
||||||
|
const [Getall_Partner_Formulaires_hot_evaluation_with_Filter_api, setGetall_Partner_Formulaires_hot_evaluation_with_Filter_api] = useState();
|
||||||
|
const [Getall_Partner_Formulaires_hot_evaluation_with_Filter_message, setGetall_Partner_Formulaires_hot_evaluation_with_Filter_message] = useState();
|
||||||
|
const [Getall_Partner_Formulaires_hot_evaluation_with_Filter_result, setGetall_Partner_Formulaires_hot_evaluation_with_Filter_result] = useState([]);
|
||||||
|
function Getall_Partner_Formulaires_hot_evaluation_with_Filter(event) {
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("type", "hot_eval");
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Formulaire_with_filter/";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
setLoading(false);
|
||||||
|
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
//console.log(" In Getall_Partner_Formulaires_hot_evaluation_with_Filter res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Getall_Partner_Formulaires_hot_evaluation_with_Filter res.data.message r_class = " + res.data.message);
|
||||||
|
setGetall_Partner_Formulaires_hot_evaluation_with_Filter_api("true");
|
||||||
|
setGetall_Partner_Formulaires_hot_evaluation_with_Filter_result(res.data.message);
|
||||||
|
|
||||||
|
var new_data2 = [];
|
||||||
|
const new_data = res.data.message.map((x) => {
|
||||||
|
|
||||||
|
//---
|
||||||
|
var localid = JSON.parse(x).id;
|
||||||
|
var local_id = JSON.parse(x)._id;
|
||||||
|
var local_code = JSON.parse(x).code;
|
||||||
|
var local_nom = JSON.parse(x).nom;
|
||||||
|
|
||||||
|
|
||||||
|
//---
|
||||||
|
var node = {
|
||||||
|
"_id": local_id,
|
||||||
|
"id": localid,
|
||||||
|
"label": local_code + " " + local_nom,
|
||||||
|
"nom": local_nom,
|
||||||
|
"code": local_code,
|
||||||
|
};
|
||||||
|
new_data2.push(node);
|
||||||
|
});
|
||||||
|
|
||||||
|
var node = {
|
||||||
|
"_id": "",
|
||||||
|
"id": "",
|
||||||
|
"label": "",
|
||||||
|
"nom": "",
|
||||||
|
"code": "",
|
||||||
|
|
||||||
|
};
|
||||||
|
new_data2.push(node);
|
||||||
|
|
||||||
|
if (new_data2.length > 0)
|
||||||
|
setNew_Getall_Partner_Formulaires_hot_evaluation_with_Filter(new_data2);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGetall_Partner_Formulaires_hot_evaluation_with_Filter_api("false");
|
||||||
|
setGetall_Partner_Formulaires_hot_evaluation_with_Filter_message(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Not good man :( Getall_Partner_Formulaires_hot_evaluation_with_Filter = ', error);
|
||||||
|
setGetall_Partner_Formulaires_hot_evaluation_with_Filter_api("false");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const [Getall_Survey_hot_evaluation_By_Session_api, setGetall_Survey_hot_evaluation_By_Session_api] = useState();
|
||||||
|
const [Getall_Survey_hot_evaluation_By_Session_message, setGetall_Survey_hot_evaluation_By_Session_message] = useState();
|
||||||
|
const [Getall_Survey_hot_evaluation_By_Session_result, setGetall_Survey_hot_evaluation_By_Session_result] = useState([]);
|
||||||
|
function Getall_Survey_hot_evaluation_By_Session(event) {
|
||||||
|
|
||||||
|
setSelectionModel_evaluation([])
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("session_id", selected_session_id);
|
||||||
|
form.append("formulaire_type", "hot_eval");
|
||||||
|
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Survey_with_filter/";
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
// console.log(" In Getall_Survey_hot_evaluation_By_Session res.data.status = " + res.data.status);
|
||||||
|
console.log(" In Getall_Survey_hot_evaluation_By_Session res.data.message r_class = " + res.data.message);
|
||||||
|
setGetall_Survey_hot_evaluation_By_Session_api("true");
|
||||||
|
setGetall_Survey_hot_evaluation_By_Session_result(res.data.message);
|
||||||
|
setRows_evaluation(res.data.message);
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGetall_Survey_hot_evaluation_By_Session_api("false");
|
||||||
|
setGetall_Survey_hot_evaluation_By_Session_message(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Not good man :( Getall_Survey_hot_evaluation_By_Session = ', error);
|
||||||
|
setGetall_Survey_hot_evaluation_By_Session_api("false");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const [Create_List_Survey_hot_eval_For_Session_For_Inscrit_api, setCreate_List_Survey_hot_eval_For_Session_For_Inscrit_api] = useState();
|
||||||
|
const [Create_List_Survey_hot_eval_For_Session_For_Inscrit_message, setCreate_List_Survey_hot_eval_For_Session_For_Inscrit_message] = useState();
|
||||||
|
const [Create_List_Survey_hot_eval_For_Session_For_Inscrit_result, setCreate_List_Survey_hot_eval_For_Session_For_Inscrit_result] = useState();
|
||||||
|
function Create_List_Survey_hot_eval_For_Session_For_Inscrit() {
|
||||||
|
var form = new FormData();
|
||||||
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("session_id", selected_session_id);
|
||||||
|
form.append("formulaire_id", selected_formulaire_id);
|
||||||
|
form.append("survey_type", "hot_eval");
|
||||||
|
|
||||||
|
|
||||||
|
//alert(" mysession = "+mysession); zzzz
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Init_Survey_Tab_For_All_Session_Inscrit/";
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
//console.log(" In UpdateStagiaireData res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In UpdateStagiaireData res.data.message r_class = " + res.data.message);
|
||||||
|
setCreate_List_Survey_hot_eval_For_Session_For_Inscrit_api("true");
|
||||||
|
setCreate_List_Survey_hot_eval_For_Session_For_Inscrit_result(res.data.message);
|
||||||
|
Getall_Survey_hot_evaluation_By_Session();
|
||||||
|
alert(res.data.message);
|
||||||
|
|
||||||
|
} else if (String(res.data.status) === String("Err_Connexion")) {
|
||||||
|
alert('Erreur: ' + res.data.message);
|
||||||
|
history.push("/Connexion");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setCreate_List_Survey_hot_eval_For_Session_For_Inscrit_api("false");
|
||||||
|
setCreate_List_Survey_hot_eval_For_Session_For_Inscrit_message(res.data.message);
|
||||||
|
alert(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Create_List_Survey_hot_eval_For_Session_For_Inscrit : Not good man :( mysearchtext = ' + error);
|
||||||
|
setCreate_List_Survey_hot_eval_For_Session_For_Inscrit_api("false");
|
||||||
|
alert(" Impossible d'initialiser la liste des enquête de positionnement ");
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function Export_survey_hot_eval_datatab_class() {
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
var nom_fichier_cmd = "export_reponses.xlsx";
|
||||||
|
|
||||||
|
var url = process.env.REACT_APP_API_URL + "myclass/api/Export_To_Excel_Survey_with_filter/" + stored_cookie + "/" + selected_session_id+"/hot_eval/";
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
axios.get(url, { responseType: 'blob', },)
|
||||||
|
.then((res) => {
|
||||||
|
setLoading(false);
|
||||||
|
//console.log(" In Export_Dashbord_to_CSV res.data = " + res.data);
|
||||||
|
if (String(res.data) === String("false")) {
|
||||||
|
alert("Impossible d'exporter les réponses (2) ");
|
||||||
|
} else {
|
||||||
|
fileDownload(res.data, nom_fichier_cmd)
|
||||||
|
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.error('Error:', error);
|
||||||
|
alert(" Impossible d'exporter les réponses ")
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="displaypartnersession">
|
<div className="displaypartnersession">
|
||||||
|
|
||||||
|
@ -10385,6 +10639,90 @@ const DisplayPartnerSession = (props) => {
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{/* Dialog pour gerer les LIST_HOT_EVALUATION_QUESTION */}
|
||||||
|
<Dialog
|
||||||
|
open={Dialog_LIST_HOT_EVALUATION_QUESTION_open}
|
||||||
|
onClose={Dialog_LIST_HOT_EVALUATION_QUESTION_handleClose}
|
||||||
|
className="displaypartnersession"
|
||||||
|
>
|
||||||
|
|
||||||
|
<DialogTitle>MySy Information</DialogTitle>
|
||||||
|
<DialogContent className="DialogContent_width" style={{ "minHeight": "30rem" }}>
|
||||||
|
<DialogContentText>
|
||||||
|
{Dialog_1_message}
|
||||||
|
</DialogContentText>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="session_caract_Dialog" > Choisir un questionnaire d'évaluation a chaud
|
||||||
|
<Autocomplete
|
||||||
|
disablePortal
|
||||||
|
name="event_dialog_version_q_hot_evaluation"
|
||||||
|
id="event_dialog_version_q_hot_evaluation"
|
||||||
|
fullWidth
|
||||||
|
//className="disabled_style enable_style"
|
||||||
|
options={New_Getall_Partner_Formulaires_hot_evaluation_with_Filter}
|
||||||
|
|
||||||
|
onChange={(event, value) => {
|
||||||
|
if (value && value._id) {
|
||||||
|
|
||||||
|
setselected_formulaire_id(value._id);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
setselected_formulaire_id("");
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
|
||||||
|
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||||
|
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||||
|
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</DialogContent>
|
||||||
|
|
||||||
|
<DialogActions>
|
||||||
|
<div className="div_row">
|
||||||
|
<div className="div_row_gauche">
|
||||||
|
<Button onClick={(e) => {
|
||||||
|
|
||||||
|
var tab_ids_inscription = []
|
||||||
|
for (var i = 0; i < selectionModel_evaluation.length; i++) {
|
||||||
|
var myid = parseInt(String(selectionModel_evaluation[i]));
|
||||||
|
var line = JSON.parse(selectionModel_evaluation[myid]);
|
||||||
|
var line_id = JSON.parse(selectionModel_evaluation[myid])._id;
|
||||||
|
tab_ids_inscription.push(line_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Create_List_Survey_hot_eval_For_Session_For_Inscrit();
|
||||||
|
Dialog_LIST_HOT_EVALUATION_QUESTION_handleClose_buton();
|
||||||
|
|
||||||
|
}}
|
||||||
|
className="bton_enreg_dialog">Initialiser la liste </Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
|
||||||
|
<Button onClick={Dialog_LIST_HOT_EVALUATION_QUESTION_handleClose_buton} className="bton_annule_dialog" >Fermer</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</DialogActions>
|
||||||
|
|
||||||
|
</Dialog>
|
||||||
|
{/* FIN Dialog pour gerer les LIST_HOT_EVALUATION_QUESTION */}
|
||||||
|
|
||||||
|
|
||||||
{/* Dialog pour gerer les EMARGEMENT */}
|
{/* Dialog pour gerer les EMARGEMENT */}
|
||||||
<Dialog
|
<Dialog
|
||||||
open={Dialog_EMARGEMENT_open}
|
open={Dialog_EMARGEMENT_open}
|
||||||
|
@ -17343,37 +17681,111 @@ const DisplayPartnerSession = (props) => {
|
||||||
{String(submenu) === String("evaluation") && <div style={{ "border": "None" }}>
|
{String(submenu) === String("evaluation") && <div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div className="div_row" style={{ "textAlign": "right", "marginTop": "0.5rem" }}>
|
<div className="div_row" style={{ "textAlign": "right", "marginTop": "0.5rem" }}>
|
||||||
<Button className="bton_emarge" onClick={PrintEvaluationDetail}>Exporter (excel)</Button>
|
|
||||||
|
<Popup
|
||||||
|
trigger={
|
||||||
|
<Button className="bton_emarge">Initialiser la demande</Button>
|
||||||
|
}
|
||||||
|
modal
|
||||||
|
nested
|
||||||
|
position="center center"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
{close => (
|
||||||
|
<div>
|
||||||
|
<button className="gest_close" onClick={close}>
|
||||||
|
×
|
||||||
|
</button>
|
||||||
|
<div className="gest_header"> MySy Information </div>
|
||||||
|
<div className="gest_content">
|
||||||
|
{' '}
|
||||||
|
|
||||||
|
|
||||||
|
<font> Confirmez la (ré)initialisation de la demande. <br />
|
||||||
|
<font color="red"> /!\ Si une demande d'évaluation existe pour cette session, elle sera supprimée et récréée </font>
|
||||||
|
</font>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className="gest_actions">
|
||||||
|
<div style={{ "width": "45%", "float": "left" }}>
|
||||||
|
<button className="gest_bton_popup" onClick={(event) => {
|
||||||
|
Getall_Partner_Formulaires_hot_evaluation_with_Filter();
|
||||||
|
setDialog_LIST_HOT_EVALUATION_QUESTION_open(true);
|
||||||
|
close();
|
||||||
|
}}> Valider </button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div style={{ "width": "45%", "float": "right" }}>
|
||||||
|
<button
|
||||||
|
className="gest_bton_popup"
|
||||||
|
onClick={() => {
|
||||||
|
//console.log('modal closed ');
|
||||||
|
close();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Annuler
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</Popup>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Button className="bton_emarge" onClick={(event) => {
|
<Button className="bton_emarge" onClick={(event) => {
|
||||||
GetListeEvaluation(selected_session_id);
|
Getall_Survey_hot_evaluation_By_Session();
|
||||||
}}>Actualiser la liste</Button><br />
|
}}>Actualiser la liste</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button className="bton_emarge"onClick={(event) => {
|
||||||
|
Export_survey_hot_eval_datatab_class();
|
||||||
|
}}>Exporter (excel)</Button>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div style={{ height: "750px", width: '100%', padding: "10px" }} className="session_data">
|
<div style={{ height: "750px", width: '100%', padding: "10px" }} className="session_data">
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
height: "500px",
|
height: 500,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
paddingRight: '2px',
|
paddingRight: '1px',
|
||||||
|
|
||||||
|
|
||||||
"& .MuiDataGrid-columnHeaders": {
|
"& .MuiDataGrid-columnHeaders": {
|
||||||
backgroundColor: "#c8cfd5",
|
backgroundColor: "#c8cfd5",
|
||||||
color: "black",
|
color: "black",
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
},
|
},
|
||||||
|
|
||||||
'& .line--eval_envoye': {
|
'& .line--statut--selected': {
|
||||||
backgroundColor: '#ffffcc',
|
backgroundColor: '#FBF2EF',
|
||||||
|
color: 'black',
|
||||||
|
},
|
||||||
|
'& .line--statut--pair': {
|
||||||
|
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||||
color: 'black',
|
color: 'black',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
'& .line--eval_fait': {
|
[`& .${gridClasses.cell}`]: {
|
||||||
backgroundColor: '#ccffcc',
|
py: 1,
|
||||||
|
},
|
||||||
|
|
||||||
|
'& .line--positionnement_envoye': {
|
||||||
|
backgroundColor: '#F9E79F',
|
||||||
|
color: 'black',
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
'& .line--positionnement_repondu': {
|
||||||
|
backgroundColor: '#ABEBC6',
|
||||||
color: 'black',
|
color: 'black',
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
|
@ -17391,15 +17803,13 @@ const DisplayPartnerSession = (props) => {
|
||||||
{
|
{
|
||||||
id: index,
|
id: index,
|
||||||
_id: JSON.parse(item)._id,
|
_id: JSON.parse(item)._id,
|
||||||
|
email: JSON.parse(item).email,
|
||||||
nom: JSON.parse(item).nom,
|
nom: JSON.parse(item).nom,
|
||||||
prenom: JSON.parse(item).prenom,
|
prenom: JSON.parse(item).prenom,
|
||||||
email: JSON.parse(item).email,
|
status: JSON.parse(item).statut,
|
||||||
eval_date: String(JSON.parse(item).eval_date).substring(0, 10),
|
form_code: JSON.parse(item).formulaire.code,
|
||||||
eval_eval: parse(String(JSON.parse(item).eval_eval).replace(/(<([^>]+)>)/ig, '')),
|
date_envoie: JSON.parse(item).date_envoi,
|
||||||
eval_note: JSON.parse(item).eval_note,
|
date_reponse: JSON.parse(item).date_reponse,
|
||||||
eval_status: JSON.parse(item).eval_status,
|
|
||||||
eval_pedagogie: JSON.parse(item).eval_pedagogie,
|
|
||||||
date_demande_eval: JSON.parse(item).date_demande_eval,
|
|
||||||
|
|
||||||
}
|
}
|
||||||
))}
|
))}
|
||||||
|
@ -17416,16 +17826,37 @@ const DisplayPartnerSession = (props) => {
|
||||||
|
|
||||||
getRowClassName={(params) => {
|
getRowClassName={(params) => {
|
||||||
|
|
||||||
if (String(params.row.eval_status) === "0") {
|
if (String(params.row.status) === "1") {
|
||||||
|
return 'line--positionnement_envoye';
|
||||||
return 'line--eval_envoye';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (String(params.row.eval_status) === "1") {
|
if (String(params.row.status) === "2") {
|
||||||
|
return 'line--positionnement_repondu';
|
||||||
return 'line--eval_fait';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pour la gestion de la couleur de zone double cliquée
|
||||||
|
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,
|
||||||
|
|
||||||
|
},
|
||||||
|
[`& .${gridClasses.cell}`]: {
|
||||||
|
py: 1,
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -30,6 +30,7 @@ import { gridClasses } from '@mui/x-data-grid';
|
||||||
import Link from '@mui/material/Link';
|
import Link from '@mui/material/Link';
|
||||||
import { PiDotsThree } from "react-icons/pi";
|
import { PiDotsThree } from "react-icons/pi";
|
||||||
|
|
||||||
|
|
||||||
const Module_Evaluation_Positionnement = (props) => {
|
const Module_Evaluation_Positionnement = (props) => {
|
||||||
|
|
||||||
const myconntected_employee_id = props.conntected_employee_id;
|
const myconntected_employee_id = props.conntected_employee_id;
|
||||||
|
|
Loading…
Reference in New Issue