15/12/2022 - 22h00
parent
9be4012c6b
commit
248c7c1aef
|
@ -280,24 +280,19 @@ function GestionAdministrative(props) {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: "refuse", headerName: 'Refuser',
|
field: "Detail", headerName: 'Voir detail',
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<Popup trigger={<Button
|
<Button
|
||||||
|
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
handleClick_refuse(event, cellValues);
|
Display_Detail_Inscription(event, cellValues);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FcCancel />
|
<FcApproval />
|
||||||
|
|
||||||
</Button>}
|
</Button>
|
||||||
position="center" >
|
|
||||||
<div style={{ "width": "5rem", "height": "5rem" }}>
|
|
||||||
lksqmkdsmkdsm
|
|
||||||
</div>
|
|
||||||
</Popup>
|
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -688,8 +683,8 @@ function GestionAdministrative(props) {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (res.data.status != "false") {
|
if (res.data.status != "false") {
|
||||||
console.log(" In GetCurrentClass_trainingsession res.data.status = " + res.data.status);
|
//console.log(" In GetCurrentClass_trainingsession res.data.status = " + res.data.status);
|
||||||
console.log(" In GetCurrentClass_trainingsession res.data.message r_class = " + res.data.message);
|
//console.log(" In GetCurrentClass_trainingsession res.data.message r_class = " + res.data.message);
|
||||||
setGetCurrentClass_trainingsession_api("true");
|
setGetCurrentClass_trainingsession_api("true");
|
||||||
setGetCurrentClass_trainingsession_result(res.data.message);
|
setGetCurrentClass_trainingsession_result(res.data.message);
|
||||||
}
|
}
|
||||||
|
@ -1564,6 +1559,54 @@ function GestionAdministrative(props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const [display_detail_insc, setdisplay_detail_insc] = React.useState();
|
||||||
|
function Display_Detail_Inscription(event, cellValues) {
|
||||||
|
|
||||||
|
setdisplay_detail_insc("1")
|
||||||
|
var montant = String(cellValues.row.amount);
|
||||||
|
var nom = cellValues.row.nom;
|
||||||
|
var email = cellValues.row.email;
|
||||||
|
var prenom = cellValues.row.prenom;
|
||||||
|
GetAttendee_Data(email, mysession);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Cette fonction remplit la zone detail de la personne inscrite
|
||||||
|
const [GetAttendee_api, setGetAttendee_api] = useState();
|
||||||
|
const [GetAttendee_message, setGetAttendee_message] = useState();
|
||||||
|
const [GetAttendee_result, setGetAttendee_result] = useState();
|
||||||
|
function GetAttendee_Data(attendee_email, session_id) {
|
||||||
|
var form = new FormData();
|
||||||
|
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("session_id", session_id);
|
||||||
|
form.append("attendee_email", attendee_email);
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/GetAttendeeDetail_perSession/";
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
if (res.data.status != "false") {
|
||||||
|
console.log(" In GetAttendee res.data.status = " + res.data.status);
|
||||||
|
console.log(" In GetAttendee res.data.message r_class = " + res.data.message);
|
||||||
|
setGetAttendee_api("true");
|
||||||
|
setGetAttendee_result(res.data.message);
|
||||||
|
var mylocalattendee = JSON.parse(res.data.message);
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGetAttendee_api("false");
|
||||||
|
setGetAttendee_message(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
console.warn('Not good man :( GetAttendee = ', error);
|
||||||
|
setGetAttendee_api("false");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='gestionadministrative'>
|
<div className='gestionadministrative'>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
|
@ -2125,6 +2168,368 @@ function GestionAdministrative(props) {
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
{String(display_detail_insc) === "1" && mysession && <div className="div_row" style={{ "border": "None", "background": '#F8F9F9', "padding": '5px' }}>
|
||||||
|
Detail inscription
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
<div className="session_data" >
|
||||||
|
|
||||||
|
<div className="session_caract"> Nom<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_nom"
|
||||||
|
id="detail_nom"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Prenom<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_prenom"
|
||||||
|
id="detail_prenom"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Email<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_mail"
|
||||||
|
id="detail_mail"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Téléphone <br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_tel"
|
||||||
|
id="detail_tel"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="session_caract"> Adresse<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_adresse"
|
||||||
|
id="detail_adresse"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="session_caract"> Code postal<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_code_postal"
|
||||||
|
id="detail_code_postal"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="session_caract"> Ville<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_ville"
|
||||||
|
id="detail_ville"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="session_caract">
|
||||||
|
Date Inscription
|
||||||
|
<DatePicker
|
||||||
|
name="detail_incr_date"
|
||||||
|
id="detail_incr_date"
|
||||||
|
selected={SessionstartDate}
|
||||||
|
onChange={(date) => {
|
||||||
|
setSessionstartDate(date);
|
||||||
|
setsessionChanged(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
showTimeSelect
|
||||||
|
filterTime={filterPassedTime_start}
|
||||||
|
dateFormat="dd/MM/yyyy HH:mm"
|
||||||
|
className="disabled_style"
|
||||||
|
locale='fr-FR'
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="session_caract"> Cout <br />
|
||||||
|
<TextField sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_cout"
|
||||||
|
id="detail_cout"
|
||||||
|
type="number"
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
inputProps={{ min: "1", max: "999999", step: "1" }}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div className="session_caract"> Mode Financement<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_mode_fin"
|
||||||
|
id="detail_mode_fin"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="session_caract"> Employeur<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_employeur"
|
||||||
|
id="detail_employeur"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
Evaluation
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
<div className="session_caract">
|
||||||
|
Date Evaluation
|
||||||
|
<DatePicker
|
||||||
|
name="date_evaluation"
|
||||||
|
id="date_evaluation"
|
||||||
|
selected={SessionstartDate}
|
||||||
|
onChange={(date) => {
|
||||||
|
setSessionstartDate(date);
|
||||||
|
setsessionChanged(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
showTimeSelect
|
||||||
|
filterTime={filterPassedTime_start}
|
||||||
|
dateFormat="dd/MM/yyyy HH:mm"
|
||||||
|
className="disabled_style"
|
||||||
|
locale='fr-FR'
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Note Evaluation<br />
|
||||||
|
<TextField sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="note_eval"
|
||||||
|
id="note_eval"
|
||||||
|
type="number"
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
inputProps={{ min: "0", max: "5", step: "1" }}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Evaluation<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_evalution"
|
||||||
|
id="detail_evalution"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
maxRows={4}
|
||||||
|
rows={4}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{<div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
|
||||||
|
|
||||||
|
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
|
||||||
|
|
||||||
|
|
||||||
|
<Button variant="contained" className="bton_envoyer" onClick={"CreateSessionFormation"}>Envoi demande evaluation
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
|
||||||
|
|
||||||
|
<Button variant="contained" className="bton_fermer" onClick={"enableSessionFields"}>Imprimer fiche
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
certificat / Attestation
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
<div className="session_caract">
|
||||||
|
Date certification
|
||||||
|
<DatePicker
|
||||||
|
name="certif_date"
|
||||||
|
id="certif_date"
|
||||||
|
selected={SessionstartDate}
|
||||||
|
onChange={(date) => {
|
||||||
|
setSessionstartDate(date);
|
||||||
|
setsessionChanged(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
showTimeSelect
|
||||||
|
filterTime={filterPassedTime_start}
|
||||||
|
dateFormat="dd/MM/yyyy HH:mm"
|
||||||
|
className="disabled_style"
|
||||||
|
locale='fr-FR'
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{sessionChanged && <div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
|
||||||
|
/!\ Pensez à enregistrer les modifications
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{!sessionChanged && String(CreateSessionFormation_api) === "true" &&
|
||||||
|
<div className="div_row okUpdateData" style={{ "textAlign": "center" }}>
|
||||||
|
La session de formation à été bien mise à jour.
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{!sessionChanged && String(CreateSessionFormation_api) === "false" &&
|
||||||
|
<div className="div_row koUpdateData" style={{ "textAlign": "center" }}>
|
||||||
|
{CreateSessionFormation_message}
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
{<div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
|
||||||
|
|
||||||
|
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Button variant="contained" className="bton_envoyer" onClick={CreateSessionFormation}>Delivrer certificat
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
|
||||||
|
|
||||||
|
<Button variant="contained" className="bton_fermer" onClick={enableSessionFields}>Imprimer certificat
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
-----
|
||||||
</div>
|
</div>
|
||||||
<div className="pieddepage">
|
<div className="pieddepage">
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|
|
@ -308,6 +308,8 @@ const Partner = (props) => {
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
|
||||||
|
console.log(" GetPartnerNameFromToken stored_cookie = ",stored_cookie);
|
||||||
|
|
||||||
form.append("token", stored_cookie);
|
form.append("token", stored_cookie);
|
||||||
|
|
||||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_account/";
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_account/";
|
||||||
|
|
Loading…
Reference in New Issue