18/12/2023 - 22:00
parent
8c9fbc8f9e
commit
3c495a2327
|
@ -1812,7 +1812,7 @@ const AddParnerClient = (props) => {
|
|||
// Données de contact du client du partner
|
||||
var contact_email = ""
|
||||
if (document.getElementsByName("contact_email")) {
|
||||
contact_email = String(document.getElementsByName("contact_email")[0].value).trim();
|
||||
contact_email = String(document.getElementsByName("contact_email")[0].value).trim();
|
||||
}
|
||||
|
||||
// Pour activier la fontion de "include com", le contact foit avoir une adresse email
|
||||
|
@ -2235,7 +2235,9 @@ const AddParnerClient = (props) => {
|
|||
|
||||
}}
|
||||
>
|
||||
|
||||
<MenuItem key="" value="" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>
|
||||
|
||||
</MenuItem>
|
||||
{Get_List_Client_Type_result &&
|
||||
Get_List_Client_Type_result.map((myclass) => (
|
||||
<MenuItem key={JSON.parse(myclass)._id} value={JSON.parse(myclass)._id} style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>
|
||||
|
@ -2244,6 +2246,7 @@ const AddParnerClient = (props) => {
|
|||
</MenuItem>
|
||||
))}
|
||||
|
||||
|
||||
</TextField>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -7717,6 +7717,8 @@ const DisplayPartnerSession = (props) => {
|
|||
const [selected_convention_email_test, setselected_convention_email_test] = useState("");
|
||||
|
||||
|
||||
const [New_Get_List_Stagiaire_Conventions_result, setNew_Get_List_Stagiaire_Conventions_result] = useState([]);
|
||||
|
||||
const [Get_List_Stagiaire_Conventions_api, setGet_List_Stagiaire_Conventions_api] = useState();
|
||||
const [Get_List_Stagiaire_Conventions_message, setGet_List_Stagiaire_Conventions_message] = useState();
|
||||
const [Get_List_Stagiaire_Conventions_result, setGet_List_Stagiaire_Conventions_result] = useState();
|
||||
|
@ -7738,6 +7740,68 @@ const DisplayPartnerSession = (props) => {
|
|||
//console.log(" In Get_List_Stagiaire_Conventions res.data.message r_class = " + res.data.message);
|
||||
setGet_List_Stagiaire_Conventions_api("true");
|
||||
setGet_List_Stagiaire_Conventions_result(res.data.message);
|
||||
|
||||
var new_data2 = [];
|
||||
var node = {
|
||||
"_id": "default_pdf",
|
||||
"id": "default_pdf",
|
||||
"label": "PDF par default",
|
||||
"ref_interne": "",
|
||||
"nom": "",
|
||||
"sujet": "",
|
||||
"type_doc": "",
|
||||
"cible": "",
|
||||
"joint_pdf": "",
|
||||
|
||||
};
|
||||
new_data2.push(node);
|
||||
|
||||
var node2 = {
|
||||
"_id": "default_mail",
|
||||
"id": "default_mail",
|
||||
"label": "Email par default",
|
||||
"ref_interne": "",
|
||||
"nom": "",
|
||||
"sujet": "",
|
||||
"type_doc": "",
|
||||
"cible": "",
|
||||
"joint_pdf": "",
|
||||
|
||||
};
|
||||
new_data2.push(node2);
|
||||
const new_data = res.data.message.map((x) => {
|
||||
|
||||
//---
|
||||
var localid = JSON.parse(x).id;
|
||||
var local_id = JSON.parse(x)._id;
|
||||
var local_ref_interne = JSON.parse(x).ref_interne;
|
||||
var local_nom = JSON.parse(x).nom;
|
||||
var local_sujet = JSON.parse(x).sujet;
|
||||
var local_type_doc = JSON.parse(x).type_doc;
|
||||
var local_cible = JSON.parse(x).cible;
|
||||
var local_joint_pdf = JSON.parse(x).joint_pdf;
|
||||
|
||||
|
||||
|
||||
//---
|
||||
var node = {
|
||||
"_id": local_id,
|
||||
"id": localid,
|
||||
"label": local_nom,
|
||||
"ref_interne": local_ref_interne,
|
||||
"nom": local_nom,
|
||||
"sujet": local_sujet,
|
||||
"type_doc": local_type_doc,
|
||||
"cible": local_cible,
|
||||
"joint_pdf": local_joint_pdf,
|
||||
|
||||
};
|
||||
new_data2.push(node);
|
||||
});
|
||||
|
||||
if (new_data2.length > 0)
|
||||
setNew_Get_List_Stagiaire_Conventions_result(new_data2);
|
||||
|
||||
}
|
||||
else {
|
||||
setGet_List_Stagiaire_Conventions_api("false");
|
||||
|
@ -8507,13 +8571,13 @@ const DisplayPartnerSession = (props) => {
|
|||
<Dialog
|
||||
open={Dialog_convention_open}
|
||||
onClose={Dialog_convention_handleClose}
|
||||
className="displaypartnersession"
|
||||
className="displaypartnersession"
|
||||
>
|
||||
|
||||
<DialogTitle>MySy Information</DialogTitle>
|
||||
<DialogContent className="DialogContent_width">
|
||||
<DialogContent className="DialogContent_width" style={{"minHeight":"30rem"}}>
|
||||
|
||||
<div className="session_caract_Dialog" > Choisir une convention
|
||||
{/*<div className="session_caract_Dialog" > Choisir une convention
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
|
||||
|
@ -8564,8 +8628,49 @@ const DisplayPartnerSession = (props) => {
|
|||
|
||||
</TextField>
|
||||
|
||||
</div>*/}
|
||||
|
||||
|
||||
<div className="session_caract_Dialog" > Choisir une convention
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
name="event_dialog_version_convention"
|
||||
id="event_dialog_version_convention"
|
||||
fullWidth
|
||||
//className="disabled_style enable_style"
|
||||
options={New_Get_List_Stagiaire_Conventions_result}
|
||||
|
||||
onChange={(event, value) => {
|
||||
if (value && value._id) {
|
||||
|
||||
setselected_convention_id(value._id);
|
||||
console.log(" €€ value = ", value);
|
||||
console.log(" €€ value._id = ", value._id);
|
||||
|
||||
if (String(value._id) === "default_mail") {
|
||||
setselected_convention_type("email");
|
||||
}
|
||||
else if (String(value._id) === "default_pdf") {
|
||||
setselected_convention_type("pdf");
|
||||
} else {
|
||||
var result2 = Get_List_Stagiaire_Conventions_result.filter((local_mymanager) => JSON.parse(local_mymanager)._id === String(value._id))
|
||||
setselected_convention_type(JSON.parse(result2).type_doc);
|
||||
|
||||
console.log(" ### JSON.parse(result2).type_doc = ", JSON.parse(result2).type_doc);
|
||||
}
|
||||
settab_convention_pieces_jointes_result([]);
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" />
|
||||
}
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{String(selected_convention_type) === "email" && <div className="session_caract_Dialog" > Type Document<br />
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, width: '75%' }}
|
||||
|
@ -9339,7 +9444,7 @@ const DisplayPartnerSession = (props) => {
|
|||
|
||||
|
||||
<div className="div_row" style={{ "marginTop": "1rem", "marginBottom": "1rem" }}>
|
||||
|
||||
|
||||
<div className="div_row_gauche">
|
||||
|
||||
</div>
|
||||
|
@ -11438,6 +11543,10 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
|
||||
>
|
||||
<MenuItem key="" value=""
|
||||
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||
|
||||
</MenuItem>
|
||||
{Get_List_Partner_Clients_result &&
|
||||
Get_List_Partner_Clients_result.map((myclient) => (
|
||||
<MenuItem key={JSON.parse(myclient)._id} value={JSON.parse(myclient)._id}
|
||||
|
@ -11446,11 +11555,7 @@ const DisplayPartnerSession = (props) => {
|
|||
|
||||
</MenuItem>
|
||||
))}
|
||||
<MenuItem key="" value=""
|
||||
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||
|
||||
|
||||
</MenuItem>
|
||||
</TextField>
|
||||
</div>
|
||||
|
||||
|
@ -11988,6 +12093,10 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
|
||||
>
|
||||
<MenuItem key="" value=""
|
||||
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||
|
||||
</MenuItem>
|
||||
{Get_List_Partner_Clients_result &&
|
||||
Get_List_Partner_Clients_result.map((myclient) => (
|
||||
<MenuItem key={JSON.parse(myclient)._id} value={JSON.parse(myclient)._id}
|
||||
|
@ -11996,11 +12105,7 @@ const DisplayPartnerSession = (props) => {
|
|||
|
||||
</MenuItem>
|
||||
))}
|
||||
<MenuItem key="" value=""
|
||||
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||
|
||||
|
||||
</MenuItem>
|
||||
</TextField>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -6069,14 +6069,14 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
|
||||
<Button variant="outlined" onClick={submenu_import_stagiaire} className="detail_class_submenu bton_import_excel"
|
||||
id='menu_import_participant' name='menu_import_participant'>Importer des Stagiaires Excel
|
||||
id='menu_import_participant' name='menu_import_participant'>Importer des participants excel
|
||||
<img src={excel_icone} alt="ajout csv" className="icon_excel" />
|
||||
</Button>
|
||||
|
||||
|
||||
<Button variant="outlined" onClick={submenu_add_one_stagiaire}
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Ajout 1 Stagiaire
|
||||
id='menu_import_participant' name='menu_import_participant'>Ajouter 1 participant
|
||||
<img src={add_plus} alt="ajout session" className="icon_plus" />
|
||||
</Button>
|
||||
|
||||
|
@ -6099,17 +6099,17 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<div className="div_row" ref={myRef_details} id="myRef_details"> </div>
|
||||
|
||||
{((selected_id && String(selected_id).length > 2) || (String(addOneParticipant) === "1")) && <div className="div_row">
|
||||
<Button variant="outlined" ref={myRef} onClick={submenu_detail_stagaire} className="detail_class_submenu" id='detail_session' name='detail_session'>Détail Stagiaire</Button>
|
||||
<Button variant="outlined" ref={myRef} onClick={submenu_detail_stagaire} className="detail_class_submenu" id='detail_session' name='detail_session'>Détail Participant</Button>
|
||||
<Button variant="outlined" onClick={submenu_sessions} className="detail_class_submenu" id='preinscrit' name='preinscrit'>Détail Session </Button>
|
||||
<Button variant="outlined" onClick={submenu_absence} className="detail_class_submenu" id='absence' name='absence'>Absence </Button>
|
||||
<Button variant="outlined" onClick={submenu_historique} className="detail_class_submenu" id='historique' name='historique'>Historique </Button>
|
||||
|
||||
</div>}
|
||||
|
||||
|
||||
|
||||
|
||||
{String(addOneParticipant) === "1" && <div className="div_row session_data" style={{ "border": "None", "backgroundColor": "#F0F0F0" }}>
|
||||
<nav style={{ "border": "None", "fontSize": "22px", "fontWeight": "600" }}> Ajouter un nouveau stagiaire </nav>
|
||||
<nav style={{ "border": "None", "fontSize": "22px", "fontWeight": "600" }}>Ajout d'un nouveau participant </nav>
|
||||
|
||||
{/*<div className="session_caract"> Formation <br />
|
||||
<TextField
|
||||
|
@ -6455,6 +6455,10 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
}
|
||||
|
||||
>
|
||||
<MenuItem key="" value=""
|
||||
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||
|
||||
</MenuItem>
|
||||
{Get_List_Partner_Clients_result &&
|
||||
Get_List_Partner_Clients_result.map((myclient) => (
|
||||
<MenuItem key={JSON.parse(myclient)._id} value={JSON.parse(myclient)._id}
|
||||
|
@ -6463,11 +6467,7 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
|
||||
</MenuItem>
|
||||
))}
|
||||
<MenuItem key="" value=""
|
||||
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||
|
||||
|
||||
</MenuItem>
|
||||
</TextField>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4424,6 +4424,11 @@ const Employes = (props) => {
|
|||
}
|
||||
}
|
||||
>
|
||||
<MenuItem key="" value=""
|
||||
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>
|
||||
|
||||
</MenuItem>
|
||||
|
||||
{Get_Partner_Purchase_Prices_result &&
|
||||
Get_Partner_Purchase_Prices_result.map((myclient) => (
|
||||
<MenuItem key={JSON.parse(myclient)._id} value={JSON.parse(myclient)._id}
|
||||
|
@ -4433,11 +4438,7 @@ const Employes = (props) => {
|
|||
</MenuItem>
|
||||
|
||||
))}
|
||||
<MenuItem key="" value=""
|
||||
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>
|
||||
Autre
|
||||
|
||||
</MenuItem>
|
||||
|
||||
|
||||
</TextField>
|
||||
</div>
|
||||
|
|
|
@ -281,6 +281,11 @@ const Partner_Client = (props) => {
|
|||
setgridline_id("");
|
||||
setEdite_Client("0");
|
||||
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
.displaypartnersession {
|
||||
|
||||
.css-1bp1ao6{
|
||||
height: 3.5rem !important;
|
||||
}
|
||||
|
||||
.loader-container {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
|
|
Loading…
Reference in New Issue