From 78de0e0028f511da17595792038b7c6a57bf8f96 Mon Sep 17 00:00:00 2001 From: cherif Date: Thu, 7 Mar 2024 22:42:41 +0100 Subject: [PATCH] 07/03/2024 - 22h30 --- src/components/DisplayPartnerSession.js | 405 +++++++++++++++--------- 1 file changed, 251 insertions(+), 154 deletions(-) diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 8cbb157..01ac0da 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -267,6 +267,19 @@ const DisplayPartnerSession = (props) => { { field: 'site_formation_nom', headerName: 'Site Ftion', with: 150, align: "center", hide: false, renderCell: (params) => , }, + { + field: 'invoiced_statut', headerName: 'Facturé', minWidth: 100, flex: 1, maxWidth: 150, hide: false, editable: false, + valueFormatter: (params) => { + if (String(params.value) === "2") + return "Oui"; + else if (String(params.value) === "1") + return "Part."; + else + return "Non"; + }, + }, + + { field: 'duration', headerName: 'Durée', minWidth: datagrid_columns_size_model2, align: "center", hide: true, renderCell: (params) => , }, { @@ -1780,6 +1793,8 @@ const DisplayPartnerSession = (props) => { function submenu_inscrit() { setsubmenu("inscrit"); + GetListeInscrit(selected_session_id, selected_internal_url); + if (document.getElementById("inscrit")) { document.getElementById("inscrit").style.backgroundColor = "#104277"; document.getElementById("inscrit").style.color = "white"; @@ -3246,10 +3261,7 @@ const DisplayPartnerSession = (props) => { if (String(actionmass_insc_val) === "facturer") { - - setDialog_FACTURATION_FORMATION_open(true); - GetListeInscrit(selected_session_id, selected_internal_url); } else { @@ -3301,10 +3313,10 @@ const DisplayPartnerSession = (props) => { for (var i = 0; i < selectionModel_insc.length; i++) { //console.log(" ### SelectionModel_insc[i] = ", selectionModel_insc[i]); - var local_id = parseInt(selectionModel_insc[i]); + var local_id = parseInt(selectionModel_insc[i]); //console.log(" ### local_id = ",local_id); - var myid = JSON.parse(String(rowss_insc[local_id])); + var myid = JSON.parse(String(rowss_insc[local_id])); //var line = JSON.parse(rowss[myid]); //console.log(" ### myid = ",myid); @@ -3312,7 +3324,7 @@ const DisplayPartnerSession = (props) => { tab_my_inscription_ids.push(myid['_id']); } - + const stored_cookie = getCookie('tokenmysypart'); form.append("token", stored_cookie); @@ -3323,7 +3335,7 @@ const DisplayPartnerSession = (props) => { form.append("email_test", ""); form.append("email_production", ""); - console.log(" #### form = ", form); + //console.log(" #### form = ", form); @@ -3339,7 +3351,8 @@ const DisplayPartnerSession = (props) => { //console.log(" In Invoice_Session_Formation_By_Selected_Inscrit res.data.message r_class = " + res.data.message); setInvoice_Session_Formation_By_Selected_Inscrit_api("true"); setInvoice_Session_Formation_By_Selected_Inscrit_result(res.data.message); - + GetListeInscrit(selected_session_id, selected_internal_url); + alert(res.data.message); } @@ -9574,7 +9587,12 @@ const DisplayPartnerSession = (props) => { ] - + const New_Option_Inscription = [ + { "id": "confirmation", "label": "Renvoyer une confirmation", "value": "confirmation" }, + { "id": "impression", "label": "Imprimer fiches", "value": "impression" }, + { "id": "annule inscription", "label": "Annuler inscription", "value": "annule inscription" }, + { "id": "facturer", "label": "Facturer", "value": "facturer" }, + ] const [Dialog_FACTURATION_FORMATION_open, setDialog_FACTURATION_FORMATION_open] = React.useState(false); const Dialog_FACTURATION_FORMATION_handleClose = () => { @@ -10515,13 +10533,6 @@ const DisplayPartnerSession = (props) => { } - modal - nested - position="center center" - > - {close => ( -
- -
MySy Information
-
- {' '} + } + ))} - Confirmer l'action {actionmass_insc_val} en masse. -
-
-
- + columns={columns_inscrit} + pageSize={10} + className="datagridclass" -
-
- } + modal + nested + position="center center" + > + + {close => ( +
+ +
MySy Information
+
+ {' '} + + Confirmer l'action {actionmass_insc_val} en masse. +
+
+
+ + +
+
+ +
+
-
-
- )} - + )} + + + } +
+ + +
+ } +
+ {String(addOneParticipant) !== "1" && selected_code_session && selected_internal_url &&
+ + + +
+ Télécharger un fichier modèle +
+ + {participant_file_name}
+ {String(liste_participants_file_change_api) === String("true") && } + {String(liste_participants_file_change_api) === String("false") && } + + + + +
} - } - -
- - {String(addOneParticipant) !== "1" && selected_code_session && selected_internal_url &&
- - - - -
- Télécharger un fichier modèle -
- - {participant_file_name}
- {String(liste_participants_file_change_api) === String("true") && } - {String(liste_participants_file_change_api) === String("false") && } - - - -
} - } - - {String(addOneParticipant) !== "1" && String(display_detail_insc) === "1" && selected_code_session &&
{String(GetAttendee_api) === "true" &&