@@ -2975,7 +3037,24 @@ const AddParnerClient = (props) => {
{String(formedit_mode_contact) === "1" &&
diff --git a/src/components/DisplayPartnerStagiaires.js b/src/components/DisplayPartnerStagiaires.js
index 3f32b18..a8817fa 100644
--- a/src/components/DisplayPartnerStagiaires.js
+++ b/src/components/DisplayPartnerStagiaires.js
@@ -101,11 +101,11 @@ const DisplayPartnerStagiaires = (props) => {
{ field: 'civilite', headerName: 'Civ.', minWidth: 70, flex: 1, maxWidth: 100, hide: false, editable: false, editable: false },
- { field: 'nom', headerName: 'Nom', minWidth: 200, flex: 1, hide: false, editable: false, editable: false, renderCell: (params) =>
, },
- { field: 'prenom', headerName: 'Prénom', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) =>
, },
- { field: 'email', headerName: 'Email', minWidth: 250, flex: 1, hideable: false, editable: false, renderCell: (params) =>
, },
+ { field: 'nom', headerName: 'Nom', minWidth: 200, flex: 1, hide: false, editable: false, editable: false, renderCell: (params) =>
, },
+ { field: 'prenom', headerName: 'Prénom', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) =>
, },
+ { field: 'email', headerName: 'Email', minWidth: 250, flex: 1, hideable: false, editable: false, renderCell: (params) =>
, },
{ field: 'employeur', headerName: 'Employeur', minWidth: 200, hide: true, editable: false },
- { field: 'client_nom', headerName: 'Client', minWidth: 200, flex: 1, hide: false, editable: false , renderCell: (params) =>
,},
+ { field: 'client_nom', headerName: 'Client', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) =>
, },
{
field: 'status', headerName: 'Statut', hide: false, width: datagrid_columns_size_model2,
valueFormatter: (params) => {
@@ -2159,7 +2159,7 @@ const DisplayPartnerStagiaires = (props) => {
}
- const [New_Getall_TrainingSession_result, setNew_Getall_TrainingSession_result] = useState();
+ const [New_Getall_TrainingSession_result, setNew_Getall_TrainingSession_result] = useState([]);
const [Getall_TrainingSession_api, setGetall_TrainingSession_api] = useState();
const [Getall_TrainingSession_message, setGetall_TrainingSession_message] = useState();
@@ -2212,10 +2212,11 @@ const DisplayPartnerStagiaires = (props) => {
});
- if (new_data2.length > 0)
+ if (new_data2.length > 0) {
setNew_Getall_TrainingSession_result(new_data2);
- //console.log(" ### new_data2 = ", new_data2)
+ console.log(" ### new_data2 = ", new_data2);
+ }
}
@@ -2269,8 +2270,7 @@ const DisplayPartnerStagiaires = (props) => {
});
}
-
-
+
}, [])
const [addOneParticipant, setaddOneParticipant] = useState("");
@@ -2441,8 +2441,10 @@ const DisplayPartnerStagiaires = (props) => {
}
- if (mylocalattendee.code_session)
+ if (mylocalattendee.code_session){
setp_detail_session_class(mylocalattendee.code_session);
+ setworking_session_code(mylocalattendee.code_session);
+ }
if (mylocalattendee.session_id)
setp_detail_session_class_id(mylocalattendee.session_id);
@@ -3060,8 +3062,8 @@ const DisplayPartnerStagiaires = (props) => {
var form = new FormData();
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
-
-
+
+
if (p_detail_session_class.length <= 0) {
alert(" Vous devez choisir une session");
return;
@@ -4959,6 +4961,9 @@ const DisplayPartnerStagiaires = (props) => {
}
+
+ const [working_session_code, setworking_session_code] = useState("");
+
const [Send_Stagiaire_Conventions_By_Email_Test_api, setSend_Stagiaire_Conventions_By_Email_Test_api] = useState();
const [Send_Stagiaire_Conventions_By_Email_Test_message, setSend_Stagiaire_Conventions_By_Email_Test_message] = useState();
const [Send_Stagiaire_Conventions_By_Email_Test_result, setSend_Stagiaire_Conventions_By_Email_Test_result] = useState();
@@ -5207,7 +5212,7 @@ const DisplayPartnerStagiaires = (props) => {
]
-
+
return (
{isLoading &&
@@ -7482,9 +7487,37 @@ const DisplayPartnerStagiaires = (props) => {
}
-
+
{String(participant_data_edit_mode) === "1" &&
Session
- (data).label === String(working_session_code))[0].label}
+ onChange={(event, value) => {
+ if (value && value._id) {
+
+ setworking_session_code(value.label);
+ setp_detail_session_class(value._id);
+ setparticipant_data_changed("1");
+ setp_detail_session_class_id(value._id);
+ Dialog_1_handle_change_participant_session(" Attention, vous allez modifier la session d'affectation du participant");
+ var xx = New_Getall_TrainingSession_result.filter((data) => (data).label === String(working_session_code))[0].label;
+ console.log(" xx == ", xx);
+
+ }
+
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+
+ {/* {
))}
-
+ */}
}
diff --git a/src/components/DisplayPartnerTrainingsPagination.js b/src/components/DisplayPartnerTrainingsPagination.js
index 42e275d..af0cc40 100644
--- a/src/components/DisplayPartnerTrainingsPagination.js
+++ b/src/components/DisplayPartnerTrainingsPagination.js
@@ -395,9 +395,9 @@ const DistplayPartnerTraningsPage = (props) => {
{ field: 'zone_diffusion', headerName: 'zone_diffusion', hide: true, maxWidth: 1, editable: false, },
{ field: 'internal_url', headerName: 'internal_url', hide: true, editable: false, },
{ field: 'external_code', headerName: 'Code Formation', hideable: false, minWidth: 150, flex: 1, maxWidth: 250, editable: false, renderCell: (params) =>
, },
- { field: 'title', headerName: 'Titre', hideable: false, minWidth: 300, flex: 1, editable: false, renderCell: (params) =>
, },
- { field: 'domain', headerName: 'Domaine', minWidth: 50, flex: 1, maxWidth: 150, hideable: true, editable: false, renderCell: (params) =>
, },
- { field: 'metier', headerName: 'Métier', minWidth: 50, flex: 1, maxWidth: 150, hideable: true, hide: true, editable: false, renderCell: (params) =>
, },
+ { field: 'title', headerName: 'Titre', hideable: false, minWidth: 300, flex: 1, editable: false, renderCell: (params) =>
, },
+ { field: 'domain', headerName: 'Domaine', minWidth: 50, flex: 1, maxWidth: 150, hideable: true, editable: false, renderCell: (params) =>
, },
+ { field: 'metier', headerName: 'Métier', minWidth: 50, flex: 1, maxWidth: 150, hideable: true, hide: true, editable: false, renderCell: (params) =>
, },
{ field: 'nb_session_formation', headerName: 'Nb Session', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", renderCell: (params) =>
, },
{ field: 'url', headerName: 'lien', minWidth: 20, hideable: true, hide: true, editable: false, },
{ field: 'description', headerName: 'Description', hide: true, resizable: true, minWidth: 250, maxWidth: 300, flex: 1, renderCell: (params) =>
, },
diff --git a/src/components/Employes.js b/src/components/Employes.js
index 4bdbab8..aeddbaa 100644
--- a/src/components/Employes.js
+++ b/src/components/Employes.js
@@ -4825,7 +4825,7 @@ const Employes = (props) => {
}
}
/>
-
+
diff --git a/src/components/Inscription_Information.js b/src/components/Inscription_Information.js
index da8bbd7..e404dc0 100644
--- a/src/components/Inscription_Information.js
+++ b/src/components/Inscription_Information.js
@@ -30,7 +30,7 @@ import SendIcon from '@mui/icons-material/Send';
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
import Rating from '@mui/material/Rating';
import parse from 'html-react-parser'
-
+import Autocomplete from '@mui/material/Autocomplete';
function Inscription_Information(props) {
@@ -40,6 +40,12 @@ function Inscription_Information(props) {
const [class_internal_url, setclass_internal_url] = useState(props.internal_url);
;
+ const New_civilite = [
+ { "id": "Mme", "label": "Mme", "value": "Mme" },
+ { "id": "M", "label": "M", "value": "M" },
+ { "id": "Neutre", "label": "Neutre", "value": "Neutre" },
+ ]
+
const modefinancement = [
{
value: 'cpf',
@@ -114,6 +120,13 @@ function Inscription_Information(props) {
return;
}
+
+ var civilite = civilite_stagiaire
+ if (String(civilite).trim().length <= 0) {
+ civilite = "Neutre"
+ }
+
+
var prenom = document.getElementsByName("prenom")[0].value;
if (String(prenom).trim().length <= 0) {
document.getElementsByName("telephone")[0].style.borderColor = "red";
@@ -168,6 +181,7 @@ function Inscription_Information(props) {
// var class_internal_url = document.getElementsByName("adr_country")[0].value;
+ formData.append('civilite', civilite);
formData.append('nom', nom);
formData.append('employeur', employeur);
formData.append('prenom', prenom);
@@ -210,6 +224,10 @@ function Inscription_Information(props) {
setRecordData_status(result['status']);
setRecordData_message(result['message']);
+ if (String(result['status']) === "true") {
+ alert("Votre demande d'inscription a bien été prise en compte. Vous allez recevoir une email de confirmation dans votre boite email. Merci.");
+ }
+
})
.catch((error) => {
console.error('Error:', error);
@@ -787,7 +805,7 @@ function Inscription_Information(props) {
}
// -- end champs specifiques
-
+ const [civilite_stagiaire, setcivilite_stagiaire] = useState("");
return (
@@ -874,6 +892,52 @@ function Inscription_Information(props) {
{mysession &&
:not(style)': { m: 1 }, width: '100%', }}>
+ {
+
+ if (value && value.value) {
+ setcivilite_stagiaire(value.value);
+ }
+
+ }}
+ renderInput={(params) =>
+
+
+ }
+
+ />
+
+ {/*
+
+
+
+
+
+ */}
+
{
const type_activite_list = [
{
+ id: 'email',
value: 'email',
label: 'Email',
},
{
+ id: 'call',
value: 'call',
label: 'Appel',
},
{
+ id: 'meeting',
value: 'meeting',
label: 'Réunion',
},
{
+ id: 'autre',
value: 'autre',
label: 'Autre',
},
{
+ id: 'cmd',
value: 'cmd',
label: 'commande',
},
{
+ id: 'devis',
value: 'devis',
label: 'devis',
},
{
+ id: 'facture',
value: 'facture',
label: 'facture',
},
@@ -149,14 +156,17 @@ const PartnerClientActivite = (props) => {
const activite_status_list = [
{
+ id: '0',
value: '0',
label: 'encours',
},
{
+ id: '1',
value: '1',
label: 'Fait',
},
{
+ id: '-1',
value: '-1',
label: 'annulé',
},
@@ -229,6 +239,8 @@ const PartnerClientActivite = (props) => {
}, []);
+ const [New_Getall_Training_Employee_No_Filter_result, setNew_Getall_Training_Employee_No_Filter_result] = useState([]);
+
const [Getall_Training_Employee_No_Filter_api, setGetall_Training_Employee_No_Filter_api] = useState();
const [Getall_Training_Employee_No_Filter_message, setGetall_Training_Employee_No_Filter_message] = useState();
const [Getall_Training_Employee_No_Filter_result, setGetall_Training_Employee_No_Filter_result] = useState();
@@ -251,6 +263,33 @@ const PartnerClientActivite = (props) => {
//console.log(" In Getall_Training_Employee_No_Filter res.data.message r_class = " + res.data.message);
setGetall_Training_Employee_No_Filter_api("true");
setGetall_Training_Employee_No_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_nom = JSON.parse(x).nom;
+ var local_prenom = JSON.parse(x).prenom;
+ var local_ismanager = JSON.parse(x).ismanager;
+
+
+ //---
+ var node = {
+ "_id": local_id,
+ "id": localid,
+ "label": local_nom + " " + local_prenom,
+ "nom": local_nom,
+ "prenom": local_prenom,
+ "ismanager": local_ismanager
+ };
+ new_data2.push(node);
+ });
+
+ if (new_data2.length > 0)
+ setNew_Getall_Training_Employee_No_Filter_result(new_data2);
+
}
else {
setGetall_Training_Employee_No_Filter_api("false");
@@ -856,7 +895,26 @@ const PartnerClientActivite = (props) => {
{String(formedit_mode_activite) === "1" &&
Type d'activité
- (data).id === String(p_activite_type))[0].label}
+ onChange={(event, value) => {
+ if (value && value.value) {
+ setp_activite_type(value.value);
+ }
+ }}
+ renderInput={(params) =>
+ }
+ />
+
+
+ {/* {
value={p_activite_type}
onChange={(e) => setp_activite_type(e.target.value)} >
{type_activite_list.map((option) => (
-
+ */}
}
@@ -898,7 +956,26 @@ const PartnerClientActivite = (props) => {
{String(formedit_mode_activite) === "1" &&
Statut
- (data).id === String(p_activite_status))[0].label}
+ onChange={(event, value) => {
+ if (value && value.value) {
+ setp_activite_status(value.value);
+ }
+ }}
+ renderInput={(params) =>
+ }
+ />
+
+
+ {/* {
{option.label}
))}
-
+ */}
}
{String(formedit_mode_activite) === "0" &&
@@ -934,15 +1011,33 @@ const PartnerClientActivite = (props) => {
}
-
- {String(formedit_mode_activite) === "1" && Assigné à (employé)
-
Assigné à (employé)
+ (data)._id === String(p_activite_employee_assigned_id))[0].label}
+ onChange={(event, value) => {
+ if (value && value._id) {
+ setp_activite_employee_assigned_id(value._id);
+
+ }
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+
+
+ {/* {
@@ -954,12 +1049,12 @@ const PartnerClientActivite = (props) => {
{Getall_Training_Employee_No_Filter_result &&
Getall_Training_Employee_No_Filter_result.map((myclient) => (
+ style={{ "width": "100%", "paddingLeft": "5px" }} >
{JSON.parse(myclient).nom} {JSON.parse(myclient).prenom}
))}
-
+ */}
}
{String(formedit_mode_activite) !== "1" && Assigné à (employé)
@@ -970,7 +1065,7 @@ const PartnerClientActivite = (props) => {
id="activite_assigned_to"
name="activite_assigned_to"
className="disabled_style"
-
+
fullWidth
value={p_activite_employee_assigned_nom_prenom}
@@ -1078,7 +1173,24 @@ const PartnerClientActivite = (props) => {
Type d'activité
- {
+ if (value && value.value) {
+ setone_activite_type(value.value);
+ }
+ }}
+ renderInput={(params) =>
+ }
+ />
+
+ {/* {
value={one_activite_type}
onChange={(e) => setone_activite_type(e.target.value)} >
{type_activite_list.map((option) => (
-
+
{option.label}
))}
-
+ */}
Statut
- {
+ if (value && value.value) {
+ setone_activite_status(value.value);
+ }
+ }}
+ renderInput={(params) =>
+ }
+ />
+
+
+ {/* {
{option.label}
))}
-
+ */}
-
Assigné à (employé)
-
Assigné à (employé)
+
+ {
+ if (value && value._id) {
+ setp_activite_employee_assigned_id(value._id);
+
+ }
+ }}
+
+ renderInput={(params) =>
+ }
+ />
+
+ {/* {
setp_activite_employee_assigned_id(e.target.value);
@@ -1140,12 +1289,12 @@ const PartnerClientActivite = (props) => {
{Getall_Training_Employee_No_Filter_result &&
Getall_Training_Employee_No_Filter_result.map((myclient) => (
+ style={{ "paddingLeft": "5px", "width": "100%" }}>
{JSON.parse(myclient).nom} {JSON.parse(myclient).prenom}
))}
-
+ */}
Détail
@@ -1166,7 +1315,7 @@ const PartnerClientActivite = (props) => {
/>
-
+
diff --git a/src/components/Partner_Client.js b/src/components/Partner_Client.js
index 71dc088..e44ebea 100644
--- a/src/components/Partner_Client.js
+++ b/src/components/Partner_Client.js
@@ -500,7 +500,7 @@ const Partner_Client = (props) => {
Dialog_client_handleClose_buton();
handleClick_edit_session_From_Line(gridline_id);
-
+
}
@@ -529,7 +529,7 @@ const Partner_Client = (props) => {
-