diff --git a/src/components/Employes.js b/src/components/Employes.js
index 0bb4fd3..c52da0c 100644
--- a/src/components/Employes.js
+++ b/src/components/Employes.js
@@ -72,35 +72,35 @@ import { IconButton } from '@material-ui/core';
function PaperComponent(props) {
return (
-
-
-
+
+
+
);
- }
-
-
- const useStyles = makeStyles((theme) => ({
-
+}
+
+
+const useStyles = makeStyles((theme) => ({
+
dialog: {
- position: 'absolute',
- // left: 10,
- top: 400
+ position: 'absolute',
+ // left: 10,
+ top: 400
},
-
+
paper: {
- overflowY: 'unset',
+ overflowY: 'unset',
},
customizedButton: {
- position: 'absolute',
- left: '98%',
- top: '-3%',
- backgroundColor: 'lightgray',
- color: 'gray',
+ position: 'absolute',
+ left: '98%',
+ top: '-3%',
+ backgroundColor: 'lightgray',
+ color: 'gray',
},
- }));
+}));
const Employes = (props) => {
const classes = useStyles();
@@ -6773,6 +6773,74 @@ const Employes = (props) => {
}
+ const [selectionModel_evaluation, setSelectionModel_evaluation] = React.useState([]);
+ const New_Option_Evaluation_Masse = [
+ { "id": "export_evaluation", "label": "Export Evaluation (PDF) ", "value": "export_evaluation" },
+ ]
+ const [actionmass_eval_val, setactionmass_eval_val] = useState();
+
+ async function actionmass_Evaluation_Traitemet() {
+
+ var tab_ids_inscription = [];
+ for (var i = 0; i < selectionModel_evaluation_formateur.length; i++) {
+ var myid = parseInt(String(selectionModel_evaluation_formateur[i]));
+
+ var line_id = JSON.parse(rowss_evaluation_formateur[myid])._id;
+
+ tab_ids_inscription.push(line_id);
+ }
+
+ if (String(actionmass_eval_val) === "export_evaluation")
+ Export_Selected_Survey_PDF(tab_ids_inscription, "Evaluation formateur", "chaud");
+
+ }
+
+ function Export_Selected_Survey_PDF(tab_ids_survey, type_export, used_datagrid) {
+ const stored_cookie = getCookie('tokenmysypart');
+
+ if (tab_ids_survey.length <= 0) {
+ // alert(" Aucune ligne selectionnée ");
+
+ setdisplay_alert_mysy("1");
+ setalert_message("Aucune ligne selectionnée ");
+ setalert_type("error");
+ return;
+ }
+ var nom_fichier_cmd = "export_evaluation.zip";
+
+ var url = process.env.REACT_APP_API_URL + "myclass/api/Export_To_Excel_Survey_with_filter_Tab_Survey_Id/" + stored_cookie + "/" + tab_ids_survey.toString() + "/" + String(type_export);
+
+
+ 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);
+
+ if (used_datagrid === "chaud") {
+ setselectionModel_evaluation_formateur([]);
+ setactionmass_eval_val("");
+ }
+
+ }
+ }).catch((error) => {
+ setLoading(false);
+ console.error('Error:', error);
+ alert(" Impossible d'exporter les réponses ")
+
+ });
+
+
+ setLoading(false);
+ }
+
+
+
+
return (
@@ -6821,7 +6889,7 @@ const Employes = (props) => {
aria-labelledby="draggable-dialog-title"
>
-
MySy Information
+
MySy Information
@@ -8386,7 +8454,7 @@ const Employes = (props) => {
height: 500,
width: '100%',
paddingRight: '1px',
- fontFamily:"Plus Jakarta Sans, sans-serif", color:'#EEF1F6',
+ fontFamily: "Plus Jakarta Sans, sans-serif", color: '#EEF1F6',
// Gestion des cellule a distance ou presentiel
'& .cell--distantiel': {
@@ -10275,44 +10343,8 @@ const Employes = (props) => {
components={{
Toolbar: GridToolbar,
}}
- /*//sx={datagridSx}
- getCellClassName={(params) => {
- //field === 'distantiel'
- if (params.field === 'distantiel' && String(params.value) === "1") {
- return 'cell--distantiel';
- }
- if (params.field === "presentiel" && String(params.value) == "1") {
- return 'cell--presentiel';
- }
- //field === "statut"
- if (params.field === "status" && String(params.value) == "0") {
- return 'cell--statut--preinscrit';
- }
-
- if (params.field === "status" && String(params.value) == "1") {
- return 'cell--statut--inscrit';
- }
-
- if (params.field === "status" && String(params.value) == "-1") {
- return 'cell--statut--annule';
- }
-
- }}
- getRowClassName={(params) => {
-
- if (String(params.row.status) === "-1") {
- return 'line--statut--annule';
- }
- if (String(params.row.status) === "0") {
- return 'line--statut--preinscrit';
- }
- if (String(params.row.status) === "1") {
- return 'line--statut--inscrit';
- }
- }}*/
-
/>
@@ -11408,7 +11440,7 @@ const Employes = (props) => {
checkboxSelection
onSelectionModelChange={(newSelectionModel_evaluation) => {
setselectionModel_evaluation_formateur(newSelectionModel_evaluation);
- //console.log("ch selected--" + newSelectionModel_evaluation);
+ // console.log("ch selected--" + newSelectionModel_evaluation);
}}
@@ -11474,13 +11506,99 @@ const Employes = (props) => {
/>
+ {selectionModel_evaluation_formateur && selectionModel_evaluation_formateur.length > 0 &&
+
+
+
+
+
+
{
+ if (value && value.value) {
+ if (String(value.value) === "export_evaluation") {
+ setactionmass_eval_val(value.value);
+ }
+ else {
+ setactionmass_eval_val("");
+ }
+
+ }
+ else {
+ setactionmass_eval_val("");
+ }
+
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+
+
+ {actionmass_eval_val && String(actionmass_eval_val) !== "" &&
+ selectionModel_evaluation_formateur.length > 0 &&
+
+
+ Traiter
+
+ }
+ modal
+ nested
+ position="center center"
+ >
+
+ {close => (
+
+
+
MySy Information
+
+ {' '}
+
+
+ {actionmass_eval_val && String(actionmass_eval_val) === "export_evaluation" && }
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
+
+ }
+
+
+
+
+ }
-
-
-
-
diff --git a/src/components/Module_Session_Evaluation.js b/src/components/Module_Session_Evaluation.js
index a649d34..19a95f7 100644
--- a/src/components/Module_Session_Evaluation.js
+++ b/src/components/Module_Session_Evaluation.js
@@ -1968,9 +1968,6 @@ const Module_Session_Evaluation = (props) => {
-
-
-
diff --git a/src/styles/components/_employes.scss b/src/styles/components/_employes.scss
index 65d06a9..9f02f48 100644
--- a/src/styles/components/_employes.scss
+++ b/src/styles/components/_employes.scss
@@ -25,7 +25,7 @@
padding: 0px !important;
padding-left: 5px !important;
}
-
+
@media screen and (max-width: 600px) {
.okUpdateData {
@@ -1190,6 +1190,8 @@
width: 50%;
float: left;
margin-bottom: 1rem;
+ margin-top: 15px;
+ margin-left: 0px;
}
.block_en_mass_select {
@@ -1741,7 +1743,26 @@
text-align: center;
}
- }
+ .block_en_mass {
+ width: 50%;
+ float: left;
+ margin-bottom: 1rem;
+ margin-top: 15px;
+ margin-left: 0px;
+ }
+
+ .block_en_mass_select {
+ width: 45%;
+ float: left;
+ margin-bottom: 1rem;
+ }
+
+ .block_en_mass_bton_action {
+ width: 45%;
+ float: left;
+ margin-bottom: 1rem;
+ padding-top: 0.5rem !important;
+ } }
@media only screen and (min-width: 1200px) {
.okUpdateData {
@@ -1970,11 +1991,18 @@
}
-
.block_en_mass {
width: 50%;
float: left;
margin-bottom: 1rem;
+ margin-top: 15px;
+ margin-left: 0px;
+ }
+
+ .block_en_mass_select {
+ width: 45%;
+ float: left;
+ margin-bottom: 1rem;
}
.session_open_close {
diff --git a/src/styles/components/_modulesessionevaluation.scss b/src/styles/components/_modulesessionevaluation.scss
index b21eace..0a824fc 100644
--- a/src/styles/components/_modulesessionevaluation.scss
+++ b/src/styles/components/_modulesessionevaluation.scss
@@ -5,7 +5,7 @@
z-index: 9999;
}
-
+
.css-1bp1ao6{
height: 3.5rem !important;
}