-
-
MySy Information
-
- {' '}
+ {close => (
+
+
+
MySy Information
+
+ {' '}
- Confirmez la (ré)initialisation de la liste d'émargement.
- /!\ Si un tableau d'émargement existe pour cette session, il sera supprimé et récréé
-
+ Confirmez la (ré)initialisation de la liste d'émargement.
+ /!\ Si un tableau d'émargement existe pour cette session, il sera supprimé et récréé
+
-
-
-
-
-
-
-
-
- )}
-
+ )}
+ }
{
@@ -19819,7 +19887,7 @@ const DisplayPartnerSession = (props) => {
Initialiser la demande
+
Initialiser la demande
}
modal
nested
@@ -20268,7 +20336,7 @@ const DisplayPartnerSession = (props) => {
+ SessionendDate={new Date(moment(SessionendDate, "DD/MM/YYYY"))} selected_session_invoiced_statut={selected_session_invoiced_statut} />
}
@@ -20279,7 +20347,9 @@ const DisplayPartnerSession = (props) => {
+ SessionendDate={new Date(moment(SessionendDate, "DD/MM/YYYY"))} session_formateur_id={p_formateur_id}
+ session_class_id={p_detail_session_class_id}
+ selected_session_invoiced_statut={selected_session_invoiced_statut} />
}
diff --git a/src/components/Employes.js b/src/components/Employes.js
index 26d938b..e5803b9 100644
--- a/src/components/Employes.js
+++ b/src/components/Employes.js
@@ -432,6 +432,50 @@ const Employes = (props) => {
]
+ const columns_list_evaluation_enseignant = [
+ { field: 'id', headerName: 'id', hide: true },
+ { field: '_id', headerName: '_id', hide: true },
+ { field: 'form_code', headerName: 'Form. Code', hide: true, minwidth: 200, flex: 1, hideable: true, resizable: true, renderCell: (params) =>
, },
+ { field: 'email', headerName: 'email', minwidth: 300, flex: 1, hideable: true, resizable: true, renderCell: (params) =>
, },
+ { field: 'nom', headerName: 'nom', minwidth: 300, flex: 1, hide: false, editable: true, renderCell: (params) =>
, },
+ { field: 'prenom', headerName: 'prenom', minwidth: 300, flex: 1, hide: false, editable: false, renderCell: (params) =>
, },
+ {
+ field: 'status', headerName: 'Statut', width: 100, editable: false, flex: true,
+ valueFormatter: (params) => {
+ if (String(params.value) === "0")
+ return "Init.";
+ else if (String(params.value) === "1")
+ return "Env.";
+ else if (String(params.value) === "2")
+ return "Rép.";
+ else
+ 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_reponse', headerName: 'Date Réponse', width: 150, editable: false,
+ valueFormatter: (params) => {
+ if (params.value)
+ return String(params.value).substring(0, 16)
+ else
+ return ""
+
+ },
+ },
+
+ ]
+
const [tabledata, settabledata] = useState([]);
const [rows_acces_right_v2, setrows_acces_right_v2] = useState([]);
@@ -793,7 +837,52 @@ const Employes = (props) => {
}
+ const [selectionModel_evaluation_formateur, setselectionModel_evaluation_formateur] = React.useState([]);
+ const [rowss_evaluation_formateur, setRows_evaluation_formateur] = useState([]);
+ const [Getall_Survey_formateur_evaluation_By_Session_api, setGetall_Survey_formateur_evaluation_By_Session_api] = useState();
+ const [Getall_Survey_formateur_evaluation_By_Session_message, setGetall_Survey_formateur_evaluation_By_Session_message] = useState();
+ const [Getall_Survey_formateur_evaluation_By_Session_result, setGetall_Survey_formateur_evaluation_By_Session_result] = useState([]);
+ function Getall_Survey_formateur_evaluation_By_Session(event) {
+
+ setselectionModel_evaluation_formateur([])
+
+ var form = new FormData();
+
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("related_collection", "ressource_humaine");
+ form.append("related_collection_id", selected_id);
+ form.append("formulaire_type", "human_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_formateur_evaluation_By_Session res.data.status = " + res.data.status);
+ //console.log(" In Getall_Survey_formateur_evaluation_By_Session res.data.message r_class = " + res.data.message);
+ setGetall_Survey_formateur_evaluation_By_Session_api("true");
+ setGetall_Survey_formateur_evaluation_By_Session_result(res.data.message);
+ setRows_evaluation_formateur(res.data.message);
+
+ }
+ else {
+ setGetall_Survey_formateur_evaluation_By_Session_api("false");
+ setGetall_Survey_formateur_evaluation_By_Session_message(res.data.message);
+ }
+
+ }).catch((error) => {
+ setLoading(false);
+ console.warn('Not good man :( Getall_Survey_formateur_evaluation_By_Session = ', error);
+ setGetall_Survey_formateur_evaluation_By_Session_api("false");
+ //setmyApimyApiMessage("")
+ })
+ }
useEffect(() => {
Getall_Training_Employee_No_Filter();
@@ -804,6 +893,8 @@ const Employes = (props) => {
Get_Partner_Object_Specific_Fields("ressource_humaine");
+ Getall_Survey_formateur_evaluation_By_Session();
+
window.scrollTo({
top: 0,
behavior: "smooth",
@@ -1256,7 +1347,7 @@ const Employes = (props) => {
* Update 22/10/2023 :
Gestion des champs spécifiques. ils commencent tous par 'my_'
*/
-
+
for (let i = 0; i < rows_champs_specifics.length; i++) {
@@ -1943,7 +2034,7 @@ const Employes = (props) => {
}
-
+
// Pour les champs spécifiques
@@ -3003,6 +3094,11 @@ const Employes = (props) => {
document.getElementById("piece_jointe").style.color = "black";
}
+
+ if (document.getElementById("evaluation")) {
+ document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
+ document.getElementById("evaluation").style.color = "black";
+ }
//console.log(" ### employee_data_edit_mode = ", employee_data_edit_mode);
if (String(employee_data_edit_mode) !== "1")
disable_Employee_DetailFields();
@@ -3055,6 +3151,11 @@ const Employes = (props) => {
document.getElementById("piece_jointe").style.backgroundColor = "#d8edfc";
document.getElementById("piece_jointe").style.color = "black";
}
+
+ if (document.getElementById("evaluation")) {
+ document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
+ document.getElementById("evaluation").style.color = "black";
+ }
}
async function submenu_contrat() {
@@ -3088,6 +3189,55 @@ const Employes = (props) => {
}
+ if (document.getElementById("piece_jointe")) {
+ document.getElementById("piece_jointe").style.backgroundColor = "#d8edfc";
+ document.getElementById("piece_jointe").style.color = "black";
+ }
+
+ if (document.getElementById("evaluation")) {
+ document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
+ document.getElementById("evaluation").style.color = "black";
+ }
+
+ }
+
+
+ async function submenu_evaluation() {
+ setsubmenu("evaluation");
+
+ await sleep(5);
+ if (document.getElementById("evaluation")) {
+ document.getElementById("evaluation").style.backgroundColor = "#104277";
+ document.getElementById("evaluation").style.color = "white";
+ }
+
+ if (document.getElementById("contrat")) {
+ document.getElementById("contrat").style.backgroundColor = "#d8edfc";
+ document.getElementById("contrat").style.color = "black";
+ }
+
+ if (document.getElementById("affectation")) {
+ document.getElementById("affectation").style.backgroundColor = "#d8edfc";
+ document.getElementById("affectation").style.color = "black";
+ }
+
+ if (document.getElementById("detail_employe")) {
+ document.getElementById("detail_employe").style.backgroundColor = "#d8edfc";
+ document.getElementById("detail_employe").style.color = "black";
+ }
+
+ if (document.getElementById("droit_acces")) {
+ document.getElementById("droit_acces").style.backgroundColor = "#d8edfc";
+ document.getElementById("droit_acces").style.color = "black";
+ }
+
+
+ if (document.getElementById("competence")) {
+ document.getElementById("competence").style.backgroundColor = "#d8edfc";
+ document.getElementById("competence").style.color = "black";
+ }
+
+
if (document.getElementById("piece_jointe")) {
document.getElementById("piece_jointe").style.backgroundColor = "#d8edfc";
document.getElementById("piece_jointe").style.color = "black";
@@ -3134,6 +3284,11 @@ const Employes = (props) => {
document.getElementById("piece_jointe").style.color = "black";
}
+ if (document.getElementById("evaluation")) {
+ document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
+ document.getElementById("evaluation").style.color = "black";
+ }
+
setSelectionModel_affectations([]);
setdisplay_affectation("0");
setAdd_new_affectation("");
@@ -3216,6 +3371,11 @@ const Employes = (props) => {
document.getElementById("droit_acces").style.color = "black";
}
+ if (document.getElementById("evaluation")) {
+ document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
+ document.getElementById("evaluation").style.color = "black";
+ }
+
}
@@ -3256,6 +3416,12 @@ const Employes = (props) => {
document.getElementById("affectation").style.backgroundColor = "#d8edfc";
document.getElementById("affectation").style.color = "black";
}
+
+ if (document.getElementById("evaluation")) {
+ document.getElementById("evaluation").style.backgroundColor = "#d8edfc";
+ document.getElementById("evaluation").style.color = "black";
+ }
+
setSelectionModel_affectations([]);
setdisplay_affectation("0");
setAdd_new_affectation("");
@@ -6016,7 +6182,7 @@ const Employes = (props) => {
}
/>}
-
+
@@ -6629,6 +6795,7 @@ const Employes = (props) => {