diff --git a/public/img/blocnotes.png b/public/img/blocnotes.png new file mode 100644 index 0000000..2db3916 Binary files /dev/null and b/public/img/blocnotes.png differ diff --git a/public/img/remarques.png b/public/img/remarques.png new file mode 100644 index 0000000..2359164 Binary files /dev/null and b/public/img/remarques.png differ diff --git a/public/img/ruban.png b/public/img/ruban.png new file mode 100644 index 0000000..794b0a8 Binary files /dev/null and b/public/img/ruban.png differ diff --git a/src/components/Apprenant.js b/src/components/Apprenant.js index a970a51..c0ac222 100644 --- a/src/components/Apprenant.js +++ b/src/components/Apprenant.js @@ -5902,7 +5902,7 @@ const Apprenant = (props) => { }, { value: 'entreprise', - label: 'Votre entreprise', + label: 'Mon entreprise', }, { diff --git a/src/components/Apprenant_ARG.js b/src/components/Apprenant_ARG.js index c453c33..aaffe7f 100644 --- a/src/components/Apprenant_ARG.js +++ b/src/components/Apprenant_ARG.js @@ -5336,7 +5336,7 @@ const Apprenant_ARG = (props) => { }, { value: 'entreprise', - label: 'Votre entreprise', + label: 'Mon entreprise', }, { diff --git a/src/components/DisplayPartnerPromotion.js b/src/components/DisplayPartnerPromotion.js index 8e89344..e306eb7 100644 --- a/src/components/DisplayPartnerPromotion.js +++ b/src/components/DisplayPartnerPromotion.js @@ -246,6 +246,56 @@ const DisplayPartnerPromotion = (props) => { ); } + function local_format_monetaire(local_amount) { + return new Intl.NumberFormat('fr-FR', { + style: 'currency', + currency: 'EUR', + }).format(Number(local_amount)); + } + + function local_format_monetaire_v2(local_amount) { + if (isNaN(parseFloat(local_amount))) { + return "—" + } else { + return new Intl.NumberFormat('fr-FR', { + minimumFractionDigits: 0, + maximumFractionDigits: 0, + }).format(parseFloat(local_amount)); + } + } + + + function ExpandableCell_String_to_monetaire({ value }) { + const [expanded, setExpanded] = React.useState(false); + + const number = parseFloat(value); + var new_value = "" + if (isNaN(number)) { + new_value = "—" + } else { + new_value = new Intl.NumberFormat('fr-FR', { + minimumFractionDigits: 0, + maximumFractionDigits: 0, + }).format(number); + } + + + + return ( + + ); + } + + const [datagrid_columns_size_model1, setdatagrid_columns_size_model1] = useState(200); const [datagrid_columns_size_model2, setdatagrid_columns_size_model2] = useState(100); @@ -388,10 +438,10 @@ const DisplayPartnerPromotion = (props) => { }, }, { field: 'nb_inscrit', headerName: 'Insc', minWidth: 20, align: "center", hide: true, hideable: true, renderCell: (params) => , }, - { field: 'nb_preinscrit', headerName: 'Preinsc.', minWidth: 20, align: "center", hide: false, hideable: true, renderCell: (params) => , }, + { field: 'nb_preinscrit', headerName: 'Preinsc.', minWidth: 20, align: "center", hide: true, hideable: true, renderCell: (params) => , }, { - field: 'prix_session', headerName: 'Prix', minWidth: 20, align: "center", hide: false, - renderCell: (params) => , + field: 'prix_session', headerName: 'Scolarité', minWidth: 50, align: "center", hide: false, + renderCell: (params) => , }, { field: 'title', headerName: 'Formation', minWidth: 250, flex: 1, align: "center", hide: true, hideable: true, renderCell: (params) => , }, { field: 'domaine', headerName: 'Domaine', minWidth: datagrid_columns_size_model1, align: "center", hide: true, renderCell: (params) => , }, @@ -727,11 +777,13 @@ const DisplayPartnerPromotion = (props) => { { field: 'nom', headerName: 'nom', minWidth: 200, flex: 1, hide: false, editable: true, renderCell: (params) => , }, { field: 'prenom', headerName: 'prenom', minWidth: 200, flex: 1, hide: false, editable: true, renderCell: (params) => , }, { field: 'email', headerName: 'email', minWidth: 200, flex: 1, flex: 1, renderCell: (params) => , }, + { field: 'telephone', headerName: 'telephone', minWidth: 150, flex: 1, flex: 1, renderCell: (params) => , }, + { field: 'client_rattachement_nom', headerName: 'Client', minWidth: 150, flex: 1, hide: false, editable: false, renderCell: (params) => , }, { field: 'client_rattachement_id', headerName: 'Client_id', Width: 0, hide: true, editable: false, }, { - field: 'client_facture', headerName: 'Client Fact.', minWidth: 200, flex: 1, hide: false, editable: false, + field: 'client_facture', headerName: 'Client Fact.', minWidth: 200, flex: 1, hide: true, editable: false, renderCell: (cellValues) => { return ( @@ -1278,8 +1330,11 @@ const DisplayPartnerPromotion = (props) => { renderCell: (params) => , }, { field: 'prenom', headerName: 'prenom', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, - { field: 'email', headerName: 'email', minWidth: 200, flex: 1, renderCell: (params) => , }, - { field: 'client_rattachement_nom', headerName: 'Client', minWidth: 150, flex: 1, maxWidth: 200, hide: false, editable: false, renderCell: (params) => , }, + { field: 'email', headerName: 'email', minWidth: 250, flex: 1, renderCell: (params) => , }, + { field: 'telephone', headerName: 'telephone', minWidth: 150, flex: 1, renderCell: (params) => , }, + + + { field: 'client_rattachement_nom', headerName: 'Client', minWidth: 150, flex: 1, maxWidth: 200, hide: true, editable: false, renderCell: (params) => , }, { field: 'client_rattachement_id', headerName: 'Client_id', Width: 0, hide: true, editable: false, }, @@ -1304,7 +1359,7 @@ const DisplayPartnerPromotion = (props) => { { field: 'amount', headerName: 'Prix', minWidth: 100, flex: 1, maxWidth: 100, type: 'number', flex: 1, editable: true }, { - field: 'invoiced', headerName: 'Facturé', minWidth: 100, flex: 1, maxWidth: 100, hide: false, editable: false, + field: 'invoiced', headerName: 'Facturé', minWidth: 100, flex: 1, maxWidth: 100, hide: true, editable: false, valueFormatter: (params) => { if (String(params.value) === "1") return "Oui"; @@ -1312,53 +1367,9 @@ const DisplayPartnerPromotion = (props) => { return "Non"; }, }, - { field: 'invoiced_ref', headerName: 'Num Fact.', minWidth: 100, flex: 1, maxWidth: 150, flex: 1, editable: false, hide: false, flex: 1, renderCell: (params) => , }, + { field: 'invoiced_ref', headerName: 'Num Fact.', minWidth: 100, flex: 1, maxWidth: 150, flex: 1, editable: false, hide: true, flex: 1, renderCell: (params) => , }, { field: 'invoiced_date', headerName: 'Date Fact.', minWidth: 100, flex: 1, maxWidth: 150, flex: 1, editable: false, hide: true, flex: 1, renderCell: (params) => , }, - { - field: "split_invoice", headerName: 'Eclat. Fact', - renderCell: (cellValues) => { - return ( - <> - {String(props.check_user_acces_right("session", "write")) === "1" && } - - - - ); - } - }, - - - { field: 'bton_vertif', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", renderCell: (cellValues) => { @@ -4760,11 +4771,11 @@ const DisplayPartnerPromotion = (props) => { const [p_one_detail_financeur_rattachement_id, setp_one_detail_financeur_rattachement_id] = useState(); const [p_one_detail_financeur_rattachement_nom, setp_one_detail_financeur_rattachement_nom] = useState(); - - const [p_one_detail_type_apprenant, setp_one_detail_type_apprenant] = useState(); + const [p_one_detail_type_apprenant_id, setp_one_detail_type_apprenant_id] = useState(); const [p_one_detail_modefinancement, setp_one_detail_modefinancement] = useState(); + const [p_one_detail_modefinancement_id, setp_one_detail_modefinancement_id] = useState(); const [One_Create_Participant_api, setOne_Create_Participant_api] = useState(); @@ -4922,6 +4933,9 @@ const DisplayPartnerPromotion = (props) => { else form.append("type_apprenant", "0"); + form.append("modefinancement_id", p_one_detail_modefinancement_id); + form.append("type_apprenant_id", p_one_detail_type_apprenant_id); + /* Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenaire */ @@ -6911,7 +6925,7 @@ const DisplayPartnerPromotion = (props) => { if (document.getElementById("one_nb_participant") && document.getElementById("one_nb_participant").value != "") { nb_participant = document.getElementById("one_nb_participant").value; } - + if (nb_participant.trim() == "") { const response = window.confirm("Le nombre de participants est vide. Par défaut, 1. Continuer ?"); if (!response) { @@ -7393,7 +7407,7 @@ const DisplayPartnerPromotion = (props) => { if (mylocaltraining.price_by) setp_prix_session_by(mylocaltraining.price_by); else - setp_prix_session_by(""); + setp_prix_session_by("perstagiaire"); if (mylocaltraining.distantiel) { @@ -7618,7 +7632,7 @@ const DisplayPartnerPromotion = (props) => { const [p_lms_class_code, setp_lms_class_code] = useState(""); const [p_nb_participant, setp_nb_participant] = useState(""); const [p_prix_session, setp_prix_session] = useState(""); - const [p_prix_session_by, setp_prix_session_by] = useState(""); + const [p_prix_session_by, setp_prix_session_by] = useState("perstagiaire"); const [p_one_myclass_title, setp_one_myclass_title] = useState(""); @@ -7844,7 +7858,7 @@ const DisplayPartnerPromotion = (props) => { form.append("token", stored_cookie); form.append("archive", "0"); - form.append("is_ftion_initiale", "1"); + form.append("is_ftion_initiale", "1"); var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_class/"; @@ -8218,6 +8232,11 @@ const DisplayPartnerPromotion = (props) => { const [p_one_status_part, setp_one_status_part] = useState(); const [p_one_status_part_lable, setp_one_status_part_lable] = useState(); + const [p_one_adresse_part, setp_one_adresse_part] = useState(); + const [p_one_cp_part, setp_one_cp_part] = useState(); + const [p_one_ville_part, setp_one_ville_part] = useState(); + const [p_one_pays_part, setp_one_pays_part] = useState(); + /* Envoi de l'envoi de l'email de confirmation de la validation de l'inscription */ function handleClick_resend_conf_mail(event, cellValues) { @@ -14172,7 +14191,7 @@ const DisplayPartnerPromotion = (props) => { }, { value: 'entreprise', - label: 'Votre entreprise', + label: 'Mon entreprise', }, { @@ -15876,6 +15895,170 @@ const DisplayPartnerPromotion = (props) => { }) } + const [New_Get_List_Mode_Financement_result, setNew_Get_List_Mode_Financement_result] = useState([]); + + const [Get_List_Mode_Financement_api, setGet_List_Mode_Financement_api] = useState(); + const [Get_List_Mode_Financement_message, setGet_List_Mode_Financement_message] = useState(); + const [Get_List_Mode_Financement_result, setGet_List_Mode_Financement_result] = useState([]); + function Get_List_Mode_Financement() { + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + + //console.log("### form = ", form); + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Financement_Mode/"; + + setLoading(true); + axios.post(myurl, form).then(res => { + //console.log(" In Get_List_Mode_Financement res.data.status = " + res.data.status); + //console.log(" In Get_List_Mode_Financement res.data.message r_class = " + res.data.message); + + setLoading(false); + if (String(res.data.status) === String("true")) { + setGet_List_Mode_Financement_api("true"); + setGet_List_Mode_Financement_message(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 code = JSON.parse(x).code; + var description = JSON.parse(x).description; + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": code, + "code": code, + "description": description, + + }; + new_data2.push(node); + }); + + var node = { + "_id": "", + "id": "", + "label": "", + "code": "", + "description": "", + + }; + new_data2.push(node); + + setNew_Get_List_Mode_Financement_result(new_data2); + + + } + else { + setGet_List_Mode_Financement_api("false"); + setGet_List_Mode_Financement_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.warn('Get_List_Mode_Financement : Not good man :( Get_List_Mode_Financement = ' + error); + setGet_List_Mode_Financement_api("false"); + setdisplay_alert_mysy("1"); + setalert_message(" Impossible de récuperer la liste des modes de financement "); + setalert_type("error"); + }) + + + } + + + const [New_Get_List_Type_Apprenant_result, setNew_Get_List_Type_Apprenant_result] = useState([]); + + const [Get_List_Type_Apprenant_api, setGet_List_Type_Apprenant_api] = useState(); + const [Get_List_Type_Apprenant_message, setGet_List_Type_Apprenant_message] = useState(); + const [Get_List_Type_Apprenant_result, setGet_List_Type_Apprenant_result] = useState([]); + function Get_List_Type_Apprenant() { + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + + //console.log("### form = ", form); + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Type_Apprenant/"; + + setLoading(true); + axios.post(myurl, form).then(res => { + //console.log(" In Get_List_Type_Apprenant res.data.status = " + res.data.status); + //console.log(" In Get_List_Type_Apprenant res.data.message r_class = " + res.data.message); + + setLoading(false); + if (String(res.data.status) === String("true")) { + setGet_List_Type_Apprenant_api("true"); + setGet_List_Type_Apprenant_message(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 code = JSON.parse(x).code; + var description = JSON.parse(x).description; + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": code, + "code": code, + "description": description, + + }; + new_data2.push(node); + }); + + var node = { + "_id": "", + "id": "", + "label": "", + "code": "", + "description": "", + + }; + new_data2.push(node); + + setNew_Get_List_Type_Apprenant_result(new_data2); + + } + else { + setGet_List_Type_Apprenant_api("false"); + setGet_List_Type_Apprenant_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.warn('Get_List_Type_Apprenant : Not good man :( Get_List_Type_Apprenant = ' + error); + setGet_List_Type_Apprenant_api("false"); + setdisplay_alert_mysy("1"); + setalert_message(" Impossible de récuperer la liste des types d'apprenants "); + setalert_type("error"); + }) + + + } + return (
@@ -15982,13 +16165,13 @@ const DisplayPartnerPromotion = (props) => { disablePortal name="eu_formateur_id" id="eu_formateur_id" - + options={New_Getall_Training_Employee_No_Filter_result} value={New_Getall_Training_Employee_No_Filter_result.filter((data) => (data)._id === String(selected_ue_formateur_id))[0].label} fullWidth onChange={(event, value) => { - setselected_ue_changed("1"); + setselected_ue_changed("1"); if (value && value._id) { setselected_ue_formateur_id(value._id); @@ -17104,7 +17287,12 @@ const DisplayPartnerPromotion = (props) => { {Dialog_1_message} - {New_Get_List_Partner_Clients_result && New_Get_List_Partner_Clients_result.length > 0 &&
Client
+ {New_Get_List_Partner_Clients_result && New_Get_List_Partner_Clients_result.length > 0 &&
+ + + Client   + +
{ } />
-
Prix Inscription
+
Frais Scolarité
{ }} inputProps={{ min: "1", max: "999999", step: "1" }} disabled={!edit_session_form} - className="disabled_style_moitier" + className="disabled_style" value={p_prix_session} onChange={(e) => { setp_prix_session(e.target.value); IssessionChanged(); }} /> - - - {!edit_session_form && (data).value === String(p_prix_session_by))[0].label} - onChange={(e) => { - setp_prix_session(e.target.value); - IssessionChanged(); - }} - />} - - - {edit_session_form && (data).value === String(p_prix_session_by))[0].label} - disabled={!edit_session_form} - options={New_Price_by} - onChange={(event, value) => { - if (value && value.value) { - - setp_prix_session_by(value.value); - IssessionChanged(); - } - - }} - - renderInput={(params) => - } - />} +
@@ -25052,350 +25197,562 @@ const DisplayPartnerPromotion = (props) => { {String(addOneParticipant) === "1" &&
-
Ajout d'un nouveau participant à {selected_code_session} de la formation {selected_class_title}
- -
Civilité
- - {New_civilite.length > 0 && (data).id === String(p_one_civilite_part))[0].label} - options={New_civilite} - onChange={(event, value) => { - if (value && value.value) { - setp_one_civilite_part(value.value); - } - }} - renderInput={(params) => - } - />} - - -
- -
Nom
- { - setp_one_nom_part(e.target.value); - } - } - /> -
- - -
Prénom
- { - setp_one_prenom_part(e.target.value); - } - } - /> -
- -
Email
- { - setp_one_email_part(e.target.value); - } - } - /> -
- -
Date Naissance
- { - setp_one_naissance_part(format(date, 'd/MM/yyyy')); - - } - } - showTimeSelect={false} - dateFormat="dd/MM/yyyy" - className="disabled_style enable_style" - locale={'fr'} - - /> - -
- - -
téléphone
- { - setp_one_phone_part(e.target.value); - } - } - /> -
- -
Statut Inscription
- - (data).value === String(myinscript_status))[0].label} - onChange={(event, value) => { - if (value && value.value) { - setmyinscript_status(value.value); - } else { - setmyinscript_status(""); - alert(" Vous devez choisir un statut d'inscription") - } - }} - renderInput={(params) => - } - /> - - -
- - - -
Client
- { - if (value && value._id) { - setp_one_detail_client_rattachement_id(value._id); - setp_one_detail_client_rattachement_nom(value.nom); - Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant. Pensez à mettre à jour le client à facturer s'il est différent du client principal"); - setp_one_detail_facture_client_rattachement_id(value._id); - - } else { - setp_one_detail_client_rattachement_id(""); - setp_one_detail_client_rattachement_nom(""); - Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant. Pensez à mettre à jour le client à facturer s'il est différent du client principal"); - setp_one_detail_facture_client_rattachement_id(""); - - } - }} - value={p_one_detail_client_rattachement_nom} - - renderInput={(params) => - } - /> -
- -
A Facturer
- - (data)._id === String(p_one_detail_facture_client_rattachement_id))[0].label} - - onChange={(event, value) => { - if (value && value._id) { - setp_one_detail_facture_client_rattachement_id(value._id); - } else { - setp_one_detail_facture_client_rattachement_id(''); - } - }} - - renderInput={(params) => - } - /> - -
- - {New_Get_List_Partner_Financeurs_result && New_Get_List_Partner_Financeurs_result.length > 0 && -
Financeur
- - { - if (value && value._id) { - setp_one_detail_financeur_rattachement_id(value._id); - setp_one_detail_financeur_rattachement_nom(value.nom); - - } else { - setp_one_detail_financeur_rattachement_id(""); - setp_one_detail_financeur_rattachement_nom(""); - } - }} - - renderInput={(params) => - } - /> - -
} - -
Type apprenant
- { - if (value && value._id) { - setp_one_detail_type_apprenant(value._id); - - } else { - setp_one_detail_type_apprenant(""); - } - }} - - renderInput={(params) => - } - /> - - -
- -
Mode Financement
- { - if (value && value.value) { - setp_one_detail_modefinancement(value.value); - - } else { - setp_one_detail_modefinancement(""); - } - }} - - renderInput={(params) => - } - /> - - -
- - {/* -- début champs specifiques **/} -
-
-
-
Vos champs spécifiques
- - {rows_champs_specifics_stagiaire && - rows_champs_specifics_stagiaire.map((champ_spec) => ( - -
{JSON.parse(champ_spec).field_label}
- - { - change_champs_spec_handle_stagiaire(e.target.value); - setparticipant_data_changed("1"); - }} - //onChange={change_champs_spec_handle} - - - /> +
Nouveau preinscrit à la promotion {selected_code_session} de la formation {selected_class_title}
+ + +
+
+ +
+
+ +
+ Informations personnelles +
+ +
+ +
Civilité
+ + + {New_civilite.length > 0 && (data).value === String(p_one_civilite_part))[0].label} + options={New_civilite} + onChange={(event, value) => { + if (value && value.value) { + setp_one_civilite_part(value.value); + } else { + setp_one_civilite_part(""); + } + + //console.log(" ## value.value = ", value.value) + + }} + renderInput={(params) => + } + />} + + +
+ +
Nom
+ { + setp_one_nom_part(e.target.value); + } + } + /> +
+ + +
Prénom
+ { + setp_one_prenom_part(e.target.value); + } + } + /> +
+ +
Email
+ { + setp_one_email_part(e.target.value); + } + } + /> +
+ +
Date Naissance
+ { + setp_one_naissance_part(format(date, 'd/MM/yyyy')); + + } + } + showTimeSelect={false} + dateFormat="dd/MM/yyyy" + className="disabled_style enable_style" + locale={'fr'} + + /> + +
+ + +
téléphone
+ { + setp_one_phone_part(e.target.value); + } + } + /> +
+ +
Statut Inscription
+ + (data).value === String(myinscript_status))[0].label} + onChange={(event, value) => { + if (value && value.value) { + setmyinscript_status(value.value); + } else { + setmyinscript_status(""); + alert(" Vous devez choisir un statut d'inscription") + } + }} + renderInput={(params) => + } + /> + + +
+ +
- ))} +
-
+
+
+
+ Détail Inscription & Financement +
+ +
+ +
+ + + Client   + +
+ { + if (value && value._id) { + setp_one_detail_client_rattachement_id(value._id); + setp_one_detail_client_rattachement_nom(value.nom); + Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant. Pensez à mettre à jour le client à facturer s'il est différent du client principal"); + setp_one_detail_facture_client_rattachement_id(value._id); + + } else { + setp_one_detail_client_rattachement_id(""); + setp_one_detail_client_rattachement_nom(""); + Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant. Pensez à mettre à jour le client à facturer s'il est différent du client principal"); + setp_one_detail_facture_client_rattachement_id(""); + + } + }} + value={p_one_detail_client_rattachement_nom} + + renderInput={(params) => + } + /> +
+ +
+ + Client Facturé   +
+ + (data)._id === String(p_one_detail_facture_client_rattachement_id))[0].label} + + onChange={(event, value) => { + if (value && value._id) { + setp_one_detail_facture_client_rattachement_id(value._id); + } else { + setp_one_detail_facture_client_rattachement_id(''); + } + }} + + renderInput={(params) => + } + /> + +
+ + {New_Get_List_Partner_Financeurs_result && New_Get_List_Partner_Financeurs_result.length > 0 && +
Financeur
+ + { + if (value && value._id) { + setp_one_detail_financeur_rattachement_id(value._id); + setp_one_detail_financeur_rattachement_nom(value.nom); + + } else { + setp_one_detail_financeur_rattachement_id(""); + setp_one_detail_financeur_rattachement_nom(""); + } + }} + + renderInput={(params) => + } + /> + +
} + + {/*
Type apprenant
+ { + if (value && value._id) { + setp_one_detail_type_apprenant(value._id); + + } else { + setp_one_detail_type_apprenant(""); + } + }} + + renderInput={(params) => + } + /> + + +
*/} + +
Type apprenant
+ { + if (value && value._id) { + setp_one_detail_type_apprenant_id(value._id); + + } else { + setp_one_detail_type_apprenant_id(""); + } + }} + + renderInput={(params) => + } + /> + + +
+ + {/*
Mode Financement
+ { + if (value && value.value) { + setp_one_detail_modefinancement(value.value); + + } else { + setp_one_detail_modefinancement(""); + } + }} + + renderInput={(params) => + } + /> + + +
*/} + +
Mode Financement
+ { + if (value && value._id) { + setp_one_detail_modefinancement_id(value._id); + + } else { + setp_one_detail_modefinancement_id(""); + } + }} + + renderInput={(params) => + } + /> + + +
+ +
+
+
+ + + +
- {/* -- end champs specifiques **/} -
-   +
+
+ +
+
+ +
+ Coordonnées +
+ +
+ +
Adresse
+ { + setp_one_adresse_part(e.target.value); + } + } + /> +
+ +
Code postal
+ { + setp_one_cp_part(e.target.value); + } + } + /> +
+ +
Ville
+ { + setp_one_ville_part(e.target.value); + } + } + /> +
+ + +
Pays
+ { + setp_one_pays_part(e.target.value); + } + } + /> +
+ + +
+
+
+ +
+
+ +
+ Vos champs spécifiques +
+ +
+ + {rows_champs_specifics_stagiaire && + rows_champs_specifics_stagiaire.map((champ_spec) => ( + +
{JSON.parse(champ_spec).field_label}
+ + { + change_champs_spec_handle_stagiaire(e.target.value); + setparticipant_data_changed("1"); + }} + //onChange={change_champs_spec_handle} + + + /> +
+ ))} + +
+
+
+
+ + + {
-
@@ -25475,6 +25832,7 @@ const DisplayPartnerPromotion = (props) => { client_rattachement_id: JSON.parse(item).client_rattachement_id, client_facture: JSON.parse(item).facture_client_rattachement_id, + telephone: JSON.parse(item).telephone, @@ -25738,7 +26096,7 @@ const DisplayPartnerPromotion = (props) => { {String(addOneParticipant) !== "1" && selected_code_session && selected_internal_url &&
{String(addOneParticipant) === "1" &&
-
Ajout d'un nouveau participant
+
Ajout d'un Nouvelle appenant
Civilité
{
}
} - {String(addOneParticipant) === "1" &&
-
Ajout d'un nouveau participant à {selected_code_session} de la formation {selected_class_title}
- -
Civilité
- - {New_civilite.length > 0 && (data).id === String(p_one_civilite_part))[0].label} - options={New_civilite} - onChange={(event, value) => { - if (value && value.value) { - setp_one_civilite_part(value.value); - } - }} - renderInput={(params) => - } - />} - - -
- - - -
Nom
- { - setp_one_nom_part(e.target.value); - } - } - /> -
- - -
Prénom
- { - setp_one_prenom_part(e.target.value); - } - } - /> -
- -
Email
- { - setp_one_email_part(e.target.value); - } - } - /> -
- -
Date Naissance
- { - setp_one_naissance_part(format(date, 'd/MM/yyyy')); - - } - } - showTimeSelect={false} - dateFormat="dd/MM/yyyy" - className="disabled_style enable_style" - locale={'fr'} - - /> - -
- -
Téléphone
- { - setp_one_phone_part(e.target.value); - } - } - /> -
- -
Statut Inscription
- (data).value === String(myinscript_status))[0].label} - onChange={(event, value) => { - if (value && value.value) { - setmyinscript_status(value.value); - - } else { - setmyinscript_status(""); - - alert(" Vous devez choisir un statut d'inscription") - - } - }} - renderInput={(params) => - } - /> - - -
- -
Client
- { - if (value && value._id) { - setp_one_detail_client_rattachement_id(value._id); - setp_one_detail_client_rattachement_nom(value.nom); - - } else { - setp_one_detail_client_rattachement_id(""); - setp_one_detail_client_rattachement_nom(""); - } - }} - value={p_one_detail_client_rattachement_nom} - - renderInput={(params) => - } - /> -
- -
A Facturer
- - (data)._id === String(p_one_detail_facture_client_rattachement_id))[0].label} - - onChange={(event, value) => { - if (value && value._id) { - setp_one_detail_facture_client_rattachement_id(value._id); - - } - }} - - renderInput={(params) => - } - /> - -
- - {New_Get_List_Partner_Financeurs_result && New_Get_List_Partner_Financeurs_result.length > 0 && -
Financeur
- - { - if (value && value._id) { - setp_one_detail_financeur_rattachement_id(value._id); - setp_one_detail_financeur_rattachement_nom(value.nom); - - } else { - setp_one_detail_financeur_rattachement_id(""); - setp_one_detail_financeur_rattachement_nom(""); - } - }} - - renderInput={(params) => - } - /> - -
} - - -
Type apprenant
- { - if (value && value._id) { - setp_one_detail_type_apprenant(value._id); - - - } else { - setp_one_detail_type_apprenant(""); - - } - }} - - renderInput={(params) => - } - /> - - - -
- -
Mode Financement
- { - if (value && value.value) { - setp_one_detail_modefinancement(value.value); - - - } else { - setp_one_detail_modefinancement(""); - - } - }} - - renderInput={(params) => - } - /> - - - -
- - - - {/* -- début champs specifiques **/} -
-
-
-
Vos champs spécifiques
- - {rows_champs_specifics_stagiaire && - rows_champs_specifics_stagiaire.map((champ_spec) => ( - -
{JSON.parse(champ_spec).field_label}
- - { - change_champs_spec_handle_stagiaire(e.target.value); - setparticipant_data_changed("1"); - }} - //onChange={change_champs_spec_handle} - - - /> + {String(addOneParticipant) === "1" &&
+
Nouvel inscrit à la promotion {selected_code_session} de la formation {selected_class_title}
+ + +
+
+ +
+
+ +
+ Informations personnelles +
+ +
+
Civilité
+ + {New_civilite.length > 0 && (data).value === String(p_one_civilite_part))[0].label} + options={New_civilite} + onChange={(event, value) => { + if (value && value.value) { + setp_one_civilite_part(value.value); + } else { + setp_one_civilite_part(""); + } + }} + renderInput={(params) => + } + />} + + +
+ + +
Nom
+ { + setp_one_nom_part(e.target.value); + } + } + /> +
+ + +
Prénom
+ { + setp_one_prenom_part(e.target.value); + } + } + /> +
+ +
Email
+ { + setp_one_email_part(e.target.value); + } + } + /> +
+ +
Date Naissance
+ { + setp_one_naissance_part(format(date, 'd/MM/yyyy')); + + } + } + showTimeSelect={false} + dateFormat="dd/MM/yyyy" + className="disabled_style enable_style" + locale={'fr'} + + /> + +
+ +
Téléphone
+ { + setp_one_phone_part(e.target.value); + } + } + /> +
+ +
Statut Inscription
+ (data).value === String(myinscript_status))[0].label} + + onChange={(event, value) => { + if (value && value.value) { + setmyinscript_status(value.value); + + } else { + setmyinscript_status(""); + + alert(" Vous devez choisir un statut d'inscription") + + } + }} + renderInput={(params) => + } + /> + + +
+ +
- ))} +
-
+
+
+
+ Détail Inscription & Financement +
+ +
+ +
+ + + Client   + +
+ { + if (value && value._id) { + setp_one_detail_client_rattachement_id(value._id); + setp_one_detail_client_rattachement_nom(value.nom); + Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant. Pensez à mettre à jour le client à facturer s'il est différent du client principal"); + setp_one_detail_facture_client_rattachement_id(value._id); + + } else { + setp_one_detail_client_rattachement_id(""); + setp_one_detail_client_rattachement_nom(""); + Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant. Pensez à mettre à jour le client à facturer s'il est différent du client principal"); + setp_one_detail_facture_client_rattachement_id(""); + + } + }} + value={p_one_detail_client_rattachement_nom} + + renderInput={(params) => + } + /> +
+ +
+ + + Client Facturé   +
+ + (data)._id === String(p_one_detail_facture_client_rattachement_id))[0].label} + + onChange={(event, value) => { + if (value && value._id) { + setp_one_detail_facture_client_rattachement_id(value._id); + } else { + setp_one_detail_facture_client_rattachement_id(''); + } + }} + + renderInput={(params) => + } + /> + +
+ + {New_Get_List_Partner_Financeurs_result && New_Get_List_Partner_Financeurs_result.length > 0 && +
Financeur
+ + { + if (value && value._id) { + setp_one_detail_financeur_rattachement_id(value._id); + setp_one_detail_financeur_rattachement_nom(value.nom); + + } else { + setp_one_detail_financeur_rattachement_id(""); + setp_one_detail_financeur_rattachement_nom(""); + } + }} + + renderInput={(params) => + } + /> + +
} + + {/*
Type apprenant
+ { + if (value && value._id) { + setp_one_detail_type_apprenant(value._id); + + } else { + setp_one_detail_type_apprenant(""); + } + }} + + renderInput={(params) => + } + /> + + +
*/} + +
Type apprenant
+ { + if (value && value._id) { + setp_one_detail_type_apprenant_id(value._id); + + } else { + setp_one_detail_type_apprenant_id(""); + } + }} + + renderInput={(params) => + } + /> + + +
+ + {/*
Mode Financement
+ { + if (value && value.value) { + setp_one_detail_modefinancement(value.value); + + } else { + setp_one_detail_modefinancement(""); + } + }} + + renderInput={(params) => + } + /> + + +
*/} + +
Mode Financement
+ { + if (value && value._id) { + setp_one_detail_modefinancement_id(value._id); + + } else { + setp_one_detail_modefinancement_id(""); + } + }} + + renderInput={(params) => + } + /> + + +
+ +
+
+
+ + + +
+ +
+
+ +
+
+ +
+ Coordonnées +
+ +
+ +
Adresse
+ { + setp_one_adresse_part(e.target.value); + } + } + /> +
+ +
Code postal
+ { + setp_one_cp_part(e.target.value); + } + } + /> +
+ +
Ville
+ { + setp_one_ville_part(e.target.value); + } + } + /> +
+ + +
Pays
+ { + setp_one_pays_part(e.target.value); + } + } + /> +
+ + +
+
+
+ +
+
+ +
+ Vos champs spécifiques +
+ +
+ + {rows_champs_specifics_stagiaire && + rows_champs_specifics_stagiaire.map((champ_spec) => ( + +
{JSON.parse(champ_spec).field_label}
+ + { + change_champs_spec_handle_stagiaire(e.target.value); + setparticipant_data_changed("1"); + }} + //onChange={change_champs_spec_handle} + + + /> +
+ ))} + +
+
+
+
+
+ + + {/* -- end champs specifiques **/}
@@ -26292,7 +26862,7 @@ const DisplayPartnerPromotion = (props) => { {
-
@@ -26387,6 +26957,7 @@ const DisplayPartnerPromotion = (props) => { lms_class_code: JSON.parse(item).lms_class_code, lms_user_id: JSON.parse(item).lms_user_id, lms_account_expiration_date: JSON.parse(item).lms_account_expiration_date, + telephone: JSON.parse(item).telephone, } @@ -26863,7 +27434,10 @@ const DisplayPartnerPromotion = (props) => { {New_Get_List_Partner_Clients_result && New_Get_List_Partner_Clients_result.length > 0 && - String(participant_data_edit_mode) === "1" &&
A Facturer
+ String(participant_data_edit_mode) === "1" &&
+ + Client Facturé   +
{ {New_Get_List_Partner_Clients_result && New_Get_List_Partner_Clients_result.length > 0 && String(participant_data_edit_mode) !== "1" && -
A Facturer
+
+ + Client Facturé   +
- - - ); -} - - -const useStyles = makeStyles((theme) => ({ - - dialog: { - position: 'absolute', - // left: 10, - top: 400 - }, - - paper: { - overflowY: 'unset', - }, - customizedButton: { - position: 'absolute', - left: '98%', - top: '-3%', - backgroundColor: 'lightgray', - color: 'gray', - }, -})); - - -const DisplayPartnerPromotion_ARG = (props) => { - registerLocale('fr', fr); - const stored_cookie_session_display_view = getCookie('mysy_session_display_view'); - const stored_cookie_session_data_row_grouped_by = getCookie('mysy_promotion_data_row_grouped_by'); - - const classes = useStyles(); - - const history = useHistory(); - const [submenu, setsubmenu] = useState(""); - const [rowss, setRows] = useState([]); - - const [actionmass_preinsc_val, setactionmass_preinsc_val] = useState(); - const [one_SessionstartDateInscription, setone_SessionstartDateInscription] = useState(); - const [one_SessionendDateInscription, setone_SessionendDateInscription] = useState(); - const [one_SessionendDate, setone_SessionendDate] = useState(); - const [one_SessionstartDate, setone_SessionstartDate] = useState(); - const [one_urlpreview_certif, setone_urlpreview_certif] = useState(); - const [one_field_contenu_ftion, setone_field_contenu_ftion] = useState(""); - - const filters = [ - { value: 'code_session', label: 'Code Promotion' }, - { value: 'class_title', label: 'Titre Formation' }, - { value: 'certif', label: 'Certification' } - ] - - const [selectedfilt1, setselectedfilt1] = useState(""); - const [selectedfilt2, setselectedfilt2] = useState(""); - const [selectedfilt3, setselectedfilt3] = useState(""); - const [reftrainingtoupdate, setreftrainingtoupdate] = useState(); - const [externalcodetraining_toupdate, setexternalcodetraining_toupdate] = useState(); - - - const [is_recherche, setis_recherche] = useState("0"); - - - const [selectedtraining, setselectedtraining] = useState([]) - - const BorderLinearProgress = styled(LinearProgress)(() => ({ - height: "20px", - width: "60px", - borderRadius: "2px", - backgroundColor: " #ebf5fb", - "& .MuiLinearProgress-bar": { - backgroundColor: "#1bd900", - transition: "none", - transformOrigin: "left", - }, - })); - - function ExpandableCell_50({ value }) { - const [expanded, setExpanded] = React.useState(false); - - return ( - - ); - } - - - - function Display_Colunm_text({ value }) { - - return ( -
- {value}  - -
- ); - } - - - const [datagrid_columns_size_model1, setdatagrid_columns_size_model1] = useState(200); - const [datagrid_columns_size_model2, setdatagrid_columns_size_model2] = useState(100); - - - const ITEM_HEIGHT_PROMO = 48; - const ITEM_HEIGHT = 48; - - - const [anchorEl_promo, setanchorEl_promo] = React.useState(null); - const [anchorEl, setAnchorEl] = React.useState(null); - - const open_promo = Boolean(anchorEl_promo); - const open = Boolean(anchorEl); - - const options_menu_vertical_promotion = [ - 'Décaler', - 'Archiver/Désarch.', - 'Supprimer', - ]; - - const options_menu_vertical = [ - 'Renvoyer Conf.', - 'Mémo & Comment.', - 'Annuler Insc.', - ]; - - - - const handleClick_option_button_vertical_promo = (event) => { - setanchorEl_promo(event.currentTarget); - }; - const handleClick_option_button_vertical = (event) => { - setAnchorEl(event.currentTarget); - }; - - - const handleClose_option_button_vertical_promo = (event, value) => { - setanchorEl_promo(null); - }; - const handleClose_option_button_vertical = (event, value) => { - setAnchorEl(null); - }; - - - - const columns = [ - { field: 'id', headerName: 'id', hide: true, disableExport: true, }, - { field: '_id', headerName: '_id', hide: true, disableExport: true, }, - { field: 'class_id', headerName: 'class_id', hide: true, disableExport: true, }, - { field: 'class_lms_class_code', headerName: 'class_lms_class_code', hide: true, disableExport: true, }, - { field: 'is_bpf', headerName: 'is_bpf', hide: true, }, - - { field: 'session_alert_message', headerName: 'session_alert_message', hide: true }, - { field: 'class_internal_url', headerName: 'class_internal_url', hide: true }, - - { - field: 'is_session_alert', headerName: '', hide: false, Width: 50, flex: 1, - renderCell: (cellValues) => { - return ( -
- {cellValues.row.is_session_alert && String(cellValues.row.is_session_alert) === "1" && } - {cellValues.row.is_session_alert && String(cellValues.row.is_session_alert) !== "1" && ""} - -
- - ); - } - - }, - - { field: 'entre_scolaire', headerName: 'Entrée Scol.', hide: false, minWidth: 150, flex: 1, renderCell: (params) => , }, - - { field: 'code_session', headerName: 'Code Promo', hide: false, minWidth: 200, flex: 1, renderCell: (params) => , }, - { field: 'session_title', headerName: 'Titre', hide: false, flex: 1, minWidth: 250, renderCell: (params) => , }, - - { - field: 'statut', headerName: 'Statut', hide: true, width: datagrid_columns_size_model2, - renderCell: (cellValues) => { - return ( - -
- {String(cellValues.row.statut) === "1" && "Actif"}  - {String(cellValues.row.statut) !== "1" && "Inactif"}  -
- - ); - }, - - }, - - { - field: 'etape', headerName: 'Etape', hide: false, width: datagrid_columns_size_model2, renderCell: (params) => , - - }, - - { - field: 'archive', headerName: 'Archivé', hide: true, Width: 50, editable: false, renderCell: (cellValues) => { - return ( -
- {String(cellValues.row.archive) === "1" && "Oui"}  - {String(cellValues.row.archive) !== "1" && "Non"}  - -
- - ); - }, - }, - - - - { field: 'class_external_code', headerName: 'Code Formation', align: "center", hideable: true, flex: 1, hide: true, minWidth: 150, renderCell: (params) => , }, - { field: 'date_debut', headerName: 'Debut', hide: false, minWidth: 150, renderCell: (params) => , }, - { field: 'date_fin', headerName: 'Fin', minWidth: 150, renderCell: (params) => , }, - - { - field: 'mode_animation', headerName: 'Mode', width: datagrid_columns_size_model2, - renderCell: (cellValues) => { - return ( - -
- {String(cellValues.row.mode_animation) === "0" && "Prés."}  - {String(cellValues.row.mode_animation) === "1" && "Dist."}  - {String(cellValues.row.mode_animation) === "2" && "Hybr."}  - -
- - ); - }, - }, - - - { field: 'formateur', headerName: 'Formateur', minWidth: datagrid_columns_size_model1, hide: true, hideable: true, renderCell: (params) => , }, - { field: 'nb_participant', headerName: 'Nb Parti.', minWidth: datagrid_columns_size_model2, align: "center", hide: false, renderCell: (params) => , }, - { - field: 'taux_remplissage', headerName: 'Remplissage', align: "center", flex: 1, minWidth: 100, maxWidth: 150, flex: 1, - align: "left", - renderCell: (params) => { - return ( - <> - - {`${(params?.row.taux_remplissage * 100).toFixed(0)}%`} - - ); - }, - }, - { field: 'nb_inscrit', headerName: 'Insc', minWidth: 20, align: "center", hide: true, hideable: true, renderCell: (params) => , }, - { field: 'nb_preinscrit', headerName: 'Preinsc.', minWidth: 20, align: "center", hide: false, hideable: true, renderCell: (params) => , }, - { - field: 'prix_session', headerName: 'Prix', minWidth: 20, align: "center", hide: false, - renderCell: (params) => , - }, - { field: 'title', headerName: 'Formation', minWidth: 250, flex: 1, align: "center", hide: true, hideable: true, renderCell: (params) => , }, - { field: 'domaine', headerName: 'Domaine', minWidth: datagrid_columns_size_model1, align: "center", hide: true, renderCell: (params) => , }, - { field: 'published', headerName: 'publié', minWidth: datagrid_columns_size_model1, align: "center", hide: true, renderCell: (params) => , }, - - { field: 'site_formation_id', headerName: 'site_formation_id', with: 0, align: "center", hide: true, disableExport: true, }, - - - { field: 'qty_in_quotation', headerName: 'Place Non validé ', with: 150, align: "center", hide: true, renderCell: (params) => , }, - { field: 'qty_in_quotation_list_quotation', headerName: 'List Devis ', with: 150, align: "center", hide: true, renderCell: (params) => , }, - - { field: 'site_formation_nom', headerName: 'Site Ftion', with: 150, align: "center", hide: true, renderCell: (params) => , }, - - { - field: 'invoiced_statut', headerName: 'Facturé', minWidth: 100, flex: 1, maxWidth: 150, hide: true, editable: false, - renderCell: (cellValues) => { - return ( -
- {String(cellValues.row.invoiced_statut) === "2" && "Oui"} - {String(cellValues.row.invoiced_statut) === "1" && "Part."} - {String(cellValues.row.invoiced_statut) !== "1" && String(cellValues.row.invoiced_statut) !== "2" && "Non"} -
- ); - }, - }, - - { field: 'duration', headerName: 'Durée', minWidth: datagrid_columns_size_model2, align: "center", hide: true, renderCell: (params) => , }, - - { - field: 'bton_vertif', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", - renderCell: (cellValues) => { - return ( -
- - {String(props.check_user_acces_right("session", "write")) === "1" && } -
- ); - }, - }, - ] - - const [session_debut_for_decalage, setsession_debut_for_decalage] = React.useState(''); - const [session_fin_for_decalage, setsession_fin_for_decalage] = React.useState(''); - - const [session_new_debut_for_decalage, setsession_new_debut_for_decalage] = React.useState(''); - const [session_id_for_decalage, setsession_id_for_decalage] = React.useState(''); - - const [promo_archive_status, setpromo_archive_status] = React.useState(''); - - const [working_cellValues_promo, setworking_cellValues_promo] = useState(false); - const [dialogOpen_supp_promo, setdialogOpen_supp_promo] = useState(false); - const Dialog_menuitem_close_supp_prmo = () => { - setdialogOpen_supp_promo(false) - }; - - - const [dialogOpen_archive, setdialogOpen_archive] = useState(false); - const Dialog_menuitem_close_archive = () => { - setdialogOpen_archive(false) - }; - - const options_menu_vertical_preinsc = [ - '', - 'Mise à jour', - 'Mémo & Comment.', - 'Valider Insc.', - 'Refuser Insc.', - 'Supprimer', - - ]; - const [working_cellValues_preisnc, setworking_cellValues_preisnc] = useState(false); - const [anchorEl_preinsc, setAnchorEl_preinsc] = React.useState(null); - const open_preinsc = Boolean(anchorEl_preinsc); - const handleClick_option_button_vertical_preinsc = (event) => { - setAnchorEl_preinsc(event.currentTarget); - }; - const handleClose_option_button_vertical_preinsc = (event, value) => { - setAnchorEl_preinsc(null); - }; - - - const [dialogOpen_refus_inscription, setdialogOpen_refus_inscription] = useState(false); - const Dialog_menuitem_close_refus_inscription = () => { - setdialogOpen_refus_inscription(false) - }; - - - const [dialogOpen_suppr_preinscription, setdialogOpen_suppr_preinscription] = useState(false); - const Dialog_menuitem_suppr_preinscription = () => { - setdialogOpen_suppr_preinscription(false) - }; - - const columns_preinscrit = [ - { field: 'id', headerName: 'id', hide: true }, - { field: '_id', headerName: '_id', hide: true }, - - { - field: 'civilite', headerName: 'Civ.', minWidth: 90, flex: 1, maxWidth: 100, hide: false, editable: false, editable: false, - - renderCell: (cellValues) => { - return ( - -
- {New_civilite && New_civilite.length > 0 && cellValues.row.civilite && - - } - -
- - ); - }, - }, - - { field: 'nom', headerName: 'nom', minWidth: 200, flex: 1, hide: false, editable: true, renderCell: (params) => , }, - { field: 'prenom', headerName: 'prenom', minWidth: 200, flex: 1, hide: false, editable: true, renderCell: (params) => , }, - { field: 'email', headerName: 'email', minWidth: 200, flex: 1, flex: 1, renderCell: (params) => , }, - { field: 'client_rattachement_nom', headerName: 'Client', minWidth: 150, flex: 1, hide: false, editable: false, renderCell: (params) => , }, - { field: 'client_rattachement_id', headerName: 'Client_id', Width: 0, hide: true, editable: false, }, - - { - field: 'client_facture', headerName: 'Client Fact.', minWidth: 200, flex: 1, hide: false, editable: false, - - renderCell: (cellValues) => { - return ( -
- {New_Get_List_Partner_Clients_result && New_Get_List_Partner_Clients_result.length > 0 && } -
- - ); - } - }, - - { field: 'employeur', headerName: 'Employeur', minWidth: 150, flex: 1, maxWidth: 200, hide: true, editable: true, renderCell: (params) => , }, - { field: 'opco', headerName: 'Centre Opco', minWidth: 100, flex: 1, maxWidth: 150, hide: true, editable: false }, - { - field: 'modefinancement', headerName: 'Financement', minWidth: 100, flex: 1, maxWidth: 150, hide: true, editable: false, - renderCell: (cellValues) => { - return ( - -
- {New_Financement && New_Financement.length > 0 && cellValues.row.modefinancement && - - } - -
- - ); - }, - }, - { field: 'amount', headerName: 'Montant Formation', minWidth: 100, flex: 1, maxWidth: 150, type: 'number', flex: 1, editable: true, renderCell: (params) => , }, - { - field: "update", headerName: 'Mise à jour', - renderCell: (cellValues) => { - return ( - - <> - {String(props.check_user_acces_right("session", "write")) === "1" && { - handleClick_accept(event, cellValues); - }} - > - - - } - modal - nested - position="center center" - > - {close => ( -
- -
MySy Information
-
- {' '} - - Confirmer la mise à jour des informations du stagiaire -
-
-
- - -
-
- -
-
-
- )} -
} - - - - ); - } - }, - - - { - field: 'bton_vertif', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", - renderCell: (cellValues) => { - return ( -
- - {String(props.check_user_acces_right("session", "write")) === "1" &&