07/06/260-20H

branche_01062025
Cherif 2026-06-07 19:50:31 +02:00
parent df10ed1c3e
commit 5053d6b951
16 changed files with 1748 additions and 19835 deletions

View File

@ -8309,11 +8309,11 @@ const AddClassManual = (props) => {
{submenu && String(submenu) === "unite_enseignement" &&
<div>
<div style={{ height: 550, width: '100%', paddingRight: '10px', paddingLeft: '10px' }}>
<div style={{ height: 900, width: '100%', paddingRight: '10px', paddingLeft: '10px' }}>
&nbsp;
<Box
sx={{
height: 500,
height: 750,
width: '100%',
paddingRight: '5px',
paddingLeft: '5px',
@ -8387,7 +8387,7 @@ const AddClassManual = (props) => {
))}
columns={columns_list_unite_enseignement}
pageSize={10}
pageSize={20}
className="datagridclass"
onRowDoubleClick={(newSelectionModel) => {
@ -8420,7 +8420,7 @@ const AddClassManual = (props) => {
rowsPerPageOptions={[10]}
rowsPerPageOptions={[20]}
disableSelectionOnClick
components={{
Toolbar: GridToolbar,
@ -8494,11 +8494,11 @@ const AddClassManual = (props) => {
{submenu && String(submenu) === "note_evaluation" && <div>
<div style={{ height: 550, width: '100%', paddingRight: '10px', paddingLeft: '10px' }}>
<div style={{ height: 900, width: '100%', paddingRight: '10px', paddingLeft: '10px' }}>
&nbsp;
<Box
sx={{
height: 500,
height: 750,
width: '100%',
paddingRight: '5px',
paddingLeft: '5px',
@ -8557,7 +8557,7 @@ const AddClassManual = (props) => {
))}
columns={columns_list_evaluation_unite_enseignement}
pageSize={10}
pageSize={20}
className="datagridclass"
onRowDoubleClick={(newSelectionModel) => {
@ -8584,7 +8584,7 @@ const AddClassManual = (props) => {
rowsPerPageOptions={[10]}
rowsPerPageOptions={[20]}
disableSelectionOnClick
components={{
Toolbar: GridToolbar,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -731,6 +731,8 @@ const Apprenant = (props) => {
const [p_detail_handicap_detail, setp_detail_handicap_detail] = useState("");
const [p_detail_nom, setp_detail_nom] = useState("");
const [p_detail_prenom, setp_detail_prenom] = useState("");
const [p_detail_telephone, setp_detail_telephone] = useState("");
const [p_detail_employeur, setp_detail_employeur] = useState("");
@ -774,6 +776,9 @@ const Apprenant = (props) => {
const [p_one_naissance, setp_one_naissance] = useState(new Date().toLocaleDateString('fr-FR'));
const [p_one_is_handicap_detail_amenagement, setp_one_is_handicap_detail_amenagement] = useState("");
const [p_one_is_handicap, setp_one_is_handicap] = useState(false);
const [p_one_is_droit_image, setp_one_is_droit_image] = useState(false);
const [p_one_is_rgpd, setp_one_is_rgpd] = useState(false);
@ -790,6 +795,10 @@ const Apprenant = (props) => {
const [p_one_nom, setp_one_nom] = useState("");
const [p_one_nom_fille, setp_one_nom_fille] = useState();
const [p_one_prenom, setp_one_prenom] = useState("");
const [p_one_telephone, setp_one_telephone] = useState("");
const [p_one_employeur, setp_one_employeur] = useState("");
@ -1240,6 +1249,19 @@ const Apprenant = (props) => {
setp_detail_telephone_bis("");
}
if (mylocaltraining.nom_fille) {
setp_detail_nom_fille(mylocaltraining.nom_fille);
} else {
setp_detail_nom_fille("");
}
if (mylocaltraining.handicap_detail) {
setp_detail_handicap_detail(mylocaltraining.handicap_detail);
} else {
setp_detail_handicap_detail("");
}
/*
* Update 22/10/2023 :
Gestion des champs spécifiques. ils commencent tous par 'my_'
@ -1342,7 +1364,7 @@ const Apprenant = (props) => {
const formData = new FormData();
formData.append('File', file_1_name);
//formData.append('token', 'K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA');
const stored_cookie = getCookie('tokenmysypart');
const stored_cookie = getCookie('tokenmysypart');
formData.append("token", stored_cookie);
formData.append("file_business_object", p_detail_one_file_to_download_type_name);
@ -1353,7 +1375,7 @@ const Apprenant = (props) => {
formData.append("type_document", "");
if (file_date_expiration) {
if (file_date_expiration instanceof Date) {
if (file_date_expiration instanceof Date) {
const jour = String(file_date_expiration.getDate()).padStart(2, "0");
const mois = String(file_date_expiration.getMonth() + 1).padStart(2, "0");
const annee = file_date_expiration.getFullYear();
@ -1866,6 +1888,8 @@ const Apprenant = (props) => {
setp_one_naissance(new Date().toLocaleDateString('fr-FR'));
setp_one_nom('');
setp_one_nom_fille('');
setp_one_prenom('');
setp_one_telephone('');
setp_one_employeur('');
@ -2006,7 +2030,8 @@ const Apprenant = (props) => {
}
const list_champs = ["field_detail_lieu_naissance", "field_detail_departement_naissance", "field_detail_pays_naissance", "field_type_pi", "field_num_pi",
"field_type_mobilite", "field_nationalite", "field_droit_image", "field_rgpd", "field_sitation_famille", "field_num_ss", "field_matricule", "field_ine"]
"field_type_mobilite", "field_nationalite", "field_droit_image", "field_rgpd", "field_sitation_famille", "field_num_ss", "field_matricule", "field_ine",
"field_handicape_amenagement"]
for (let i = 0; i < list_champs.length; i++) {
if (document.getElementsByName(String(list_champs[i])) && document.getElementsByName(String(list_champs[i]))[0]) {
@ -2093,7 +2118,8 @@ const Apprenant = (props) => {
}
const list_champs = ["field_detail_lieu_naissance", "field_detail_departement_naissance", "field_detail_pays_naissance", "field_type_pi", "field_num_pi",
"field_type_mobilite", "field_nationalite", "field_droit_image", "field_rgpd", "field_sitation_famille", "field_num_ss", "field_matricule", "field_ine"]
"field_type_mobilite", "field_nationalite", "field_droit_image", "field_rgpd", "field_sitation_famille", "field_num_ss", "field_matricule", "field_ine",
"field_handicape_amenagement"]
for (let i = 0; i < list_champs.length; i++) {
if (document.getElementsByName(String(list_champs[i])) && document.getElementsByName(String(list_champs[i]))[0]) {
@ -2497,6 +2523,11 @@ const Apprenant = (props) => {
form.append("ine", "");
if (p_detail_handicap_detail)
form.append("handicap_detail", p_detail_handicap_detail);
else
form.append("handicap_detail", "");
/*
Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenaire
@ -5008,6 +5039,17 @@ const Apprenant = (props) => {
form.append("civilite", p_one_civilite);
form.append("date_naissance", p_one_naissance);
if (p_one_nom_fille)
form.append("nom_fille", p_one_nom_fille);
else
form.append("nom_fille", "");
if (p_one_is_handicap_detail_amenagement)
form.append("handicap_detail", p_one_is_handicap_detail_amenagement);
else
form.append("handicap_detail", "");
if (p_one_telephone)
@ -8073,7 +8115,8 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -8146,7 +8189,8 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -9031,7 +9075,7 @@ const Apprenant = (props) => {
<Button variant="outlined" onClick={submenu_inscriptions} className="detail_class_submenu" id='inscriptions' name='inscriptions'>Inscriptions </Button>
<Button variant="outlined" onClick={submenu_piece_jointe} className="detail_class_submenu" id='piece_jointe' name='piece_jointe'>Pièces Jointes </Button>
<Button variant="outlined" onClick={submenu_absence} className="detail_class_submenu" id='absences' name='absences'>Absences </Button>
{/*<Button variant="outlined" onClick={submenu_absence} className="detail_class_submenu" id='absences' name='absences'>Absences </Button>*/}
{String(props.formation_initiale) === "1" && <Button variant="outlined" onClick={submenu_notes} className="detail_class_submenu" id='notes' name='notes'>Notes </Button>}
@ -9124,6 +9168,28 @@ const Apprenant = (props) => {
</div>
{p_one_civilite !== "m" && <div className="session_caract"> <b> Nom jeune fille </b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="one_nom_jeune_fille_part"
id="one_nom_jeune_fille_part"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style enable_style"
value={p_one_nom_fille}
onChange={(e) => {
setp_one_nom_fille(e.target.value);
}
}
/>
</div>}
<div className="session_caract"> <b> Prénom </b><br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -9207,6 +9273,7 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -9274,6 +9341,7 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -9543,6 +9611,7 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -9616,6 +9685,28 @@ const Apprenant = (props) => {
/>
</div>
<div className="div_row"> &nbsp;</div>
{p_one_is_handicap && <div className="session_caract" style={{ width: '100%' }}> Aménagement handicape<br />
<TextareaAutosize
name="field_one_handicape_amenagement"
id="field_one_handicape_amenagement"
aria-label="minimum height"
minRows={3}
maxRows={5}
//placeholder="Minimum 3 rows"
style={{
border: "1px solid #e8eef6", width: '99%', padding: '2px',
maxHeight: '5rem', height: '5rem', minHeight: '5rem',
}}
value={p_one_is_handicap_detail_amenagement}
onChange={(e) => {
setp_one_is_handicap_detail_amenagement(e.target.value);
}}
/>
</div>}
</div>
@ -9642,28 +9733,28 @@ const Apprenant = (props) => {
<div className="session_caract"> {String(JSON.parse(champ_spec).is_mandatory) === "1" && <font> <b> {JSON.parse(champ_spec).field_label} </b> </font>}
{String(JSON.parse(champ_spec).is_mandatory) !== "1" && <font> {JSON.parse(champ_spec).field_label} </font>} <br />
{String(JSON.parse(champ_spec).field_type) === "float" &&
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name={JSON.parse(champ_spec).field_name}
id={JSON.parse(champ_spec).field_name}
type="number"
inputProps={{ min: "1", max: "999999", step: "1" }}
InputLabelProps={{
shrink: true,
}}
{String(JSON.parse(champ_spec).field_type) === "float" &&
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name={JSON.parse(champ_spec).field_name}
id={JSON.parse(champ_spec).field_name}
type="number"
inputProps={{ min: "1", max: "999999", step: "1" }}
InputLabelProps={{
shrink: true,
}}
className="disabled_style"
onChange={(e) => {
change_champs_spec_handle(e.target.value);
className="disabled_style"
onChange={(e) => {
change_champs_spec_handle(e.target.value);
}}
//onChange={change_champs_spec_handle}
}}
//onChange={change_champs_spec_handle}
/>}
/>}
{String(JSON.parse(champ_spec).field_type) === "string" && <TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -9790,7 +9881,7 @@ const Apprenant = (props) => {
<nav style={{
width: '30%', float: 'left', paddingTop: '10px', textAlign: 'left'
}}> Situation Handicape 011 </nav>
}}> Situation Handicape </nav>
<nav style={{ width: '60%', float: 'right', textAlign: 'left' }}>
<Checkbox
@ -10048,6 +10139,29 @@ const Apprenant = (props) => {
</div>
{p_detail_civilite !== "m" && <div className="session_caract"> Nom jeune fille <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_nom_jeune_fille"
id="detail_nom_jeune_fille"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style enable_style"
value={p_detail_nom}
onChange={(e) => {
setp_detail_nom_fille(e.target.value);
setapprenant_data_changed("1");
}
}
/>
</div>}
<div className="session_caract"> <b> Prénom </b><br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -10113,6 +10227,7 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -10216,6 +10331,31 @@ const Apprenant = (props) => {
/>
</div>
<div className="div_row"> &nbsp;</div>
{p_detail_is_handicap && <div className="session_caract" style={{ width: '100%' }}> Aménagement handicape<br />
<TextareaAutosize
name="field_handicape_amenagement"
id="field_handicape_amenagement"
aria-label="minimum height"
minRows={3}
maxRows={5}
//placeholder="Minimum 3 rows"
style={{
border: "1px solid #e8eef6", width: '99%', padding: '2px',
maxHeight: '5rem', height: '5rem', minHeight: '5rem',
}}
value={p_detail_handicap_detail}
onChange={(e) => {
setp_detail_handicap_detail(e.target.value);
setapprenant_data_changed("1");
}}
/>
</div>}
</div>
<div className="div_row" style={{ "border": "None" }}>
@ -10474,6 +10614,7 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -10642,11 +10783,11 @@ const Apprenant = (props) => {
<div className="session_data" >
<div style={{ "border": "None" }}>
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
<div style={{ height: 900, width: '100%', paddingRight: '5px' }}>
&nbsp;
<Box
sx={{
height: 500,
height: 750,
width: '100%',
paddingRight: '1px',
'& .cell--presentiel': {
@ -10709,7 +10850,7 @@ const Apprenant = (props) => {
))}
columns={columns_apprenant_inscriptions}
pageSize={10}
pageSize={20}
className="datagridclass"
onRowDoubleClick={(newSelectionModel) => {
@ -10726,7 +10867,7 @@ const Apprenant = (props) => {
rowsPerPageOptions={[10]}
rowsPerPageOptions={[20]}
disableSelectionOnClick
components={{
Toolbar: GridToolbar,
@ -12463,7 +12604,8 @@ const Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -12598,7 +12740,8 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -12643,7 +12786,8 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -12686,7 +12830,8 @@ const Apprenant = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},

View File

@ -15713,7 +15713,7 @@ const DisplayPartnerPromotion = (props) => {
setLoading(false);
if (String(res.data.status) === String("true")) {
//console.log(" In Getall_Class_List_UE res.data.status = " + res.data.status);
// console.log(" In Getall_Class_List_UE res.data.message r_class = " + res.data.message);
// console.log(" In Getall_Class_List_UE res.data.message r_class = " + res.data.message);
setGetall_Class_List_UE_api("true");
setGetall_Class_List_UE_result(res.data.message);
@ -15780,7 +15780,7 @@ const DisplayPartnerPromotion = (props) => {
setNew_Getall_Class_List_UE_result(new_data2);
// console.log(" ### new_data2 = ", new_data2)
// console.log(" ### new_data2 = ", new_data2)
}
else {
setGetall_Class_List_UE_api("false");
@ -23066,116 +23066,121 @@ const DisplayPartnerPromotion = (props) => {
<div className="div_row">
{String(props.check_user_acces_right("session", "write")) === "1" && selectionModel && selectionModel.length >= 1 && <div className="block_en_mass">
<nav >Traitement en masse </nav>
&nbsp;
<TextField
{String(props.check_user_acces_right("session", "write")) === "1" && selectionModel && selectionModel.length >= 1 &&
<div className="block_en_mass">
<nav >Traitement en masse </nav>
&nbsp;
<TextField
select
InputLabelProps={{
shrink: true,
}}
inputProps={{ min: "0", max: "1", step: "1" }}
disabled={false}
className="block_en_mass_select"
select
InputLabelProps={{
shrink: true,
}}
sx={{
backgroundColor: "#FFF",
}}
value={actionmass_ftion_val}
onChange={actionmass_ftion}
>
<MenuItem value="n/a" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Action &nbsp;&nbsp;</MenuItem>
<MenuItem value="supprimer" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Supprimer &nbsp;</MenuItem>
<MenuItem value="dupliquer" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Dupliquer &nbsp;</MenuItem>
</TextField>
inputProps={{ min: "0", max: "1", step: "1" }}
disabled={false}
className="block_en_mass_select"
value={actionmass_ftion_val}
onChange={actionmass_ftion}
>
<MenuItem value="n/a" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Action &nbsp;&nbsp;</MenuItem>
<MenuItem value="supprimer" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Supprimer &nbsp;</MenuItem>
<MenuItem value="dupliquer" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Dupliquer &nbsp;</MenuItem>
</TextField>
{actionmass_ftion_val && String(actionmass_ftion_val).length > 1 && String(actionmass_ftion_val) !== "dupliquer" &&
<nav className='block_en_mass_bton_action'>
<Popup
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
{actionmass_ftion_val && String(actionmass_ftion_val).length > 1 && String(actionmass_ftion_val) !== "dupliquer" &&
<nav className='block_en_mass_bton_action'>
<Popup
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
<FcAcceptDatabase /> Traiter
</Button>}
modal
nested
position="center center"
>
{close => (
<div>
<button className="gest_close" onClick={close}>
&times;
</button>
<div className="gest_header"> MySy Information </div>
<div className="gest_content">
{' '}
<font color="red"> Confirmer l'action <b> {actionmass_ftion_val} </b> en masse pour {selectionModel.length} lignes.
</font>
</div>
<div className="gest_actions">
<div style={{ "width": "45%", "float": "left" }}>
<button className="gest_bton_popup" onClick={(event) => {
actionmass_ftion_Traitemet();
close();
}}> Valider </button>
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
}}
>
Annuler
</button>
</div>
</div>
</div>
)}
</Popup>
</nav>
}
{actionmass_ftion_val && String(actionmass_ftion_val).length > 1 && String(actionmass_ftion_val) === "dupliquer" &&
<nav className='block_en_mass_bton_action'>
<Button className="bton_enreg" style={{ "width": "90%" }}
onClick={(e) => {
var tab_code_session_to_duplicate = []
for (var i = 0; i < selectionModel.length; i++) {
var myid = parseInt(String(selectionModel[i]));
var line = JSON.parse(rowss[myid]);
tab_code_session_to_duplicate.push(line.code_session);
}
var list_code_session_to_duplicate = tab_code_session_to_duplicate.join(", ");
setdup_list_session_code(list_code_session_to_duplicate);
if (selectionModel.length > 0) {
var myid = parseInt(String(selectionModel[0]));
var line = JSON.parse(rowss[myid]);
setdup_p_session_formateur_id(line.formateur_id);
} else {
setdup_p_session_formateur_id("");
}
setdup_p_session_etape(New_Getall_Parter_OR_Default_Session_Steps_result[0].session_step_name);
setDialog_dupliquer_open(true);
}} >
<FcAcceptDatabase /> Traiter
</Button>}
modal
nested
position="center center"
</Button>
>
{close => (
<div>
<button className="gest_close" onClick={close}>
&times;
</button>
<div className="gest_header"> MySy Information </div>
<div className="gest_content">
{' '}
<font color="red"> Confirmer l'action <b> {actionmass_ftion_val} </b> en masse pour {selectionModel.length} lignes.
</font>
</div>
<div className="gest_actions">
<div style={{ "width": "45%", "float": "left" }}>
<button className="gest_bton_popup" onClick={(event) => {
actionmass_ftion_Traitemet();
close();
}}> Valider </button>
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
}}
>
Annuler
</button>
</div>
</div>
</div>
)}
</Popup>
</nav>
}
{actionmass_ftion_val && String(actionmass_ftion_val).length > 1 && String(actionmass_ftion_val) === "dupliquer" &&
<nav className='block_en_mass_bton_action'>
<Button className="bton_enreg" style={{ "width": "90%" }}
onClick={(e) => {
var tab_code_session_to_duplicate = []
for (var i = 0; i < selectionModel.length; i++) {
var myid = parseInt(String(selectionModel[i]));
var line = JSON.parse(rowss[myid]);
tab_code_session_to_duplicate.push(line.code_session);
}
var list_code_session_to_duplicate = tab_code_session_to_duplicate.join(", ");
setdup_list_session_code(list_code_session_to_duplicate);
</nav>
}
if (selectionModel.length > 0) {
var myid = parseInt(String(selectionModel[0]));
var line = JSON.parse(rowss[myid]);
setdup_p_session_formateur_id(line.formateur_id);
} else {
setdup_p_session_formateur_id("");
}
setdup_p_session_etape(New_Getall_Parter_OR_Default_Session_Steps_result[0].session_step_name);
setDialog_dupliquer_open(true);
}} >
<FcAcceptDatabase /> Traiter
</Button>
</nav>
}
</div>}
</div>}
</div>
</div>
@ -24940,7 +24945,7 @@ const DisplayPartnerPromotion = (props) => {
/>
</div>
<div className="session_caract"> Prix Scolarité <br />
<div className="session_caract"> Frais Scolarité <br />
<TextField sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="one_prix_session"
@ -24951,45 +24956,12 @@ const DisplayPartnerPromotion = (props) => {
}}
inputProps={{ min: "1", max: "999999", step: "1" }}
disabled={false}
className="disabled_style_moitier enable_style"
className="disabled_style"
value={p_one_prix_session}
onChange={(e) => setp_one_prix_session(e.target.value)}
/>
{New_Price_by.length > 0 && <Autocomplete
disablePortal
name="detail_config_point"
id="detail_config_point"
className="disabled_style_moitier"
value={New_Price_by.filter((data) => (data).value === String(p_one_prix_session_by))[0].label}
options={New_Price_by}
onChange={(event, value) => {
if (value && value.value) {
setp_one_prix_session_by(value.value)
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>}
</div>
@ -26110,7 +26082,8 @@ const DisplayPartnerPromotion = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -26188,7 +26161,8 @@ const DisplayPartnerPromotion = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -26549,6 +26523,7 @@ const DisplayPartnerPromotion = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -27363,7 +27338,8 @@ const DisplayPartnerPromotion = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -27441,7 +27417,8 @@ const DisplayPartnerPromotion = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -27864,6 +27841,7 @@ const DisplayPartnerPromotion = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -28248,6 +28226,7 @@ const DisplayPartnerPromotion = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -28513,6 +28492,7 @@ const DisplayPartnerPromotion = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -29527,6 +29507,9 @@ const DisplayPartnerPromotion = (props) => {
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
sx={{
backgroundColor: "#FFF",
}}
options={New_Option_Emargement_Masse}
onChange={(event, value) => {
if (value && value.value) {

File diff suppressed because it is too large Load Diff

View File

@ -3966,7 +3966,7 @@ const DisplayPartnerStagiaires = (props) => {
if (String(res.data.status) === String("true")) {
//console.log(" In Get_Inscrit_Notes_Of_Evaluations res.data.status = " + res.data.status);
// console.log(" In Get_Inscrit_Notes_Of_Evaluations res.data.message r_class = " + res.data.message);
// console.log(" In Get_Inscrit_Notes_Of_Evaluations res.data.message r_class = " + res.data.message);
setGet_Inscrit_Notes_Of_Evaluations_api("true");
setGet_Inscrit_Notes_Of_Evaluations_result(res.data.message);
}
@ -10181,6 +10181,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -10221,6 +10222,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -10262,6 +10264,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -10325,6 +10328,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -10894,6 +10898,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -10948,6 +10953,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -12810,6 +12816,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -12846,6 +12853,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -12882,6 +12890,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -13019,6 +13028,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -13056,6 +13066,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -13093,6 +13104,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -13174,11 +13186,12 @@ const DisplayPartnerStagiaires = (props) => {
<div style={{ "border": "None", paddingRight: '10px' }}>
{(!display_stagiaire_with_alert || display_stagiaire_with_alert !== true) && <div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
{(!display_stagiaire_with_alert || display_stagiaire_with_alert !== true) &&
<div style={{ height: 900, width: '100%', paddingRight: '5px' }}>
&nbsp;
<Box
sx={{
height: 500,
height: 750,
width: '100%',
paddingRight: '1px',
@ -13304,7 +13317,7 @@ const DisplayPartnerStagiaires = (props) => {
))}
columns={columns}
pageSize={10}
pageSize={20}
className="datagridclass"
onRowDoubleClick={(newSelectionModel) => {
@ -13348,7 +13361,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
rowsPerPageOptions={[10]}
rowsPerPageOptions={[20]}
disableSelectionOnClick
/* components={{
Toolbar: GridToolbar,
@ -13670,6 +13683,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -13895,6 +13909,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -14166,6 +14181,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -14208,6 +14224,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -14242,6 +14259,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -14280,6 +14298,7 @@ const DisplayPartnerStagiaires = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -14347,6 +14366,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -14392,6 +14412,7 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
@ -14516,7 +14537,8 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -14559,7 +14581,8 @@ const DisplayPartnerStagiaires = (props) => {
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
@ -14831,14 +14854,14 @@ const DisplayPartnerStagiaires = (props) => {
<div className="div_row_bis" style={{ "marginBottom": "10px", "marginTop": "1rem" }} >
<div className="div_row_gauche_image">
<img class="img_class_logo" src={userimgclassprofil} /><br />
<img class="img_class_logo" src={userimgclassprofil} style={{ width: '100%' }} /><br />
</div>
<div className="div_row_droite_image">
<input type="file" id="files_img_class" accept="image/*" onChange={imglogoclasschangeHandler} style={{ opacity: "0", zIndex: "-1", maxWidth: "5px", maxHeight: "0px" }} /><br />
<nav style={{ width: '100%' }}>
<label for="files_img_class" className="bton_image_class">Charger une photo</label><br />
<label for="files_img_class" className="bton_image_class" style={{ width: '100%' }}>Charger une photo</label><br />
{String(userimgclassprofilchanged) === "1" &&
<nav className="bton_image_class" onClick={record_Stagiaire_Image} style={{ width: '100%' }}>Enregistrer la photo<br /> </nav>

View File

@ -4104,7 +4104,7 @@ const DisplayPartnerUnite_Enseignement_ARG = (props) => {
{/**** Ajout d'une UE */}
{display_ue && String(display_ue) !== "1" && String(add_one_ue) === "1" && <div className="session_data" >
--------------
<div className="div_row" >
<div className="Grid_2_col" >
@ -4553,7 +4553,6 @@ const DisplayPartnerUnite_Enseignement_ARG = (props) => {
</div>
-----------
{/*<div className="div_row">

View File

@ -1007,7 +1007,7 @@ const Groupe_Apprenant = (props) => {
if (String(res.data.status) === String("true")) {
//console.log(" In Getall_Partner_Groupe_Inscrit res.data.status = " + res.data.status);
//console.log(" In Getall_Partner_Groupe_Inscrit res.data.message r_class = " + res.data.message);
console.log(" In Getall_Partner_Groupe_Inscrit res.data.message r_class = " + res.data.message);
setGetall_Partner_Groupe_Inscrit_api("true");
setGetall_Partner_Groupe_Inscrit_result(res.data.message);
@ -1072,7 +1072,11 @@ const Groupe_Apprenant = (props) => {
}).catch((error) => {
console.warn('Not good man :( Getall_Partner_Groupe_Inscrit = ', error);
setGetall_Partner_Groupe_Inscrit_api("false");
alert(" Impossible de recuperer la liste des groupes d'inscrits");
setdisplay_alert_mysy("1");
setalert_message(" Impossible de recuperer la liste des groupes d'inscrits");
setalert_type("error");
//setmyApimyApiMessage("")
})
}
@ -3027,7 +3031,8 @@ const Groupe_Apprenant = (props) => {
style: {
overflowY: 'unset',
position: 'absolute',
top: '10rem'
top: '10rem',
maxWidth: 'unset',
},
}}
hideBackdrop={true}
@ -3055,181 +3060,186 @@ const Groupe_Apprenant = (props) => {
name='dialog_detail_seq_ressource'>M.A.J Membres</Button>
</div>}
<div className="session_caract_Dialog" > <b>Formation </b> <br />
{New_Getall_Partner_Class_Reduice_Fields_result && New_Getall_Partner_Class_Reduice_Fields_result.length > 0 &&
<Autocomplete
disablePortal
name="detail_ftion"
id="detail_ftion"
//className="disabled_style"
fullWidth
//className="disabled_style enable_style"
options={New_Getall_Partner_Class_Reduice_Fields_result}
value={New_Getall_Partner_Class_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_class_id_auto))[0].label}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_class_id_auto(value._id);
setp_detail_class_internal_url_auto(value.internal_url);
setgrp_apprenant_data_changed("1");
} else {
<div style={{ width: '100%' }}>
<div className="session_caract_Dialog" style={{ width: '50%', float: 'left' }}> <b>Formation </b> <br />
{New_Getall_Partner_Class_Reduice_Fields_result && New_Getall_Partner_Class_Reduice_Fields_result.length > 0 &&
<Autocomplete
disablePortal
name="detail_ftion"
id="detail_ftion"
//className="disabled_style"
fullWidth
//className="disabled_style enable_style"
options={New_Getall_Partner_Class_Reduice_Fields_result}
value={New_Getall_Partner_Class_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_class_id_auto))[0].label}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_class_id_auto(value._id);
setp_detail_class_internal_url_auto(value.internal_url);
setgrp_apprenant_data_changed("1");
} else {
setp_detail_class_id_auto("");
setp_detail_class_internal_url_auto("");
setgrp_apprenant_data_changed("1");
setp_detail_class_id_auto("");
setp_detail_class_internal_url_auto("");
setgrp_apprenant_data_changed("1");
}
setp_detail_session_id("");
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
setp_detail_session_id("");
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
}
</div>
<div className="session_caract_Dialog" ><b> Promotion </b> <br />
{New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 &&
<Autocomplete
disablePortal
name="detail_classe"
id="detail_classe"
fullWidth
options={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data).class_internal_url === String(p_detail_class_internal_url_auto))}
value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id_auto))[0].label}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_session_id_auto(value._id);
setgrp_apprenant_data_changed("1");
} else {
setp_detail_session_id_auto("");
setgrp_apprenant_data_changed("1");
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
}
</div>
<div className="session_caract_Dialog" ><b>Type de Groupe </b> <br />
{New_Getall_Groupe_Apprenant_Type_result && New_Getall_Groupe_Apprenant_Type_result.length > 0 &&
<Autocomplete
disablePortal
name="detail_type_grp"
id="detail_type_grp"
fullWidth
options={New_Getall_Groupe_Apprenant_Type_result}
value={New_Getall_Groupe_Apprenant_Type_result.filter((data) => (data).code === String(p_detail_type_groupe_code_auto))[0].label}
onChange={(event, value) => {
if (value && value.code) {
setp_detail_type_groupe_code_auto(value.code);
setgrp_apprenant_data_changed("1");
setp_detail_type_groupe_id_auto(value._id);
} else {
setp_detail_type_groupe_code_auto("");
setgrp_apprenant_data_changed("1");
setp_detail_type_groupe_id_auto("");
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
}
</div>
<div className="session_caract_Dialog" > <b> Grouper les inscrits par </b>
<Autocomplete
disablePortal
name="event_dialog_type_ressource"
id="event_dialog_type_ressource"
fullWidth
options={New_Option_Groupe_By}
onChange={(event, value) => {
if (value.value)
setp_detail_split_type_auto(value.value);
else
setp_detail_split_type_auto("");
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>
</div>
<div className="session_caract_Dialog" style={{ width: '50%', float: 'left' }}><b> Promotion </b> <br />
{New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 &&
<Autocomplete
disablePortal
name="detail_classe"
id="detail_classe"
fullWidth
options={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data).class_internal_url === String(p_detail_class_internal_url_auto))}
value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id_auto))[0].label}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_session_id_auto(value._id);
setgrp_apprenant_data_changed("1");
} else {
setp_detail_session_id_auto("");
setgrp_apprenant_data_changed("1");
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
}
</div>
</div>
<div style={{ width: '100%' }}>
<div className="session_caract_Dialog" style={{ width: '50%', float: 'left' }}><b>Type de Groupe </b> <br />
{New_Getall_Groupe_Apprenant_Type_result && New_Getall_Groupe_Apprenant_Type_result.length > 0 &&
<Autocomplete
disablePortal
name="detail_type_grp"
id="detail_type_grp"
fullWidth
options={New_Getall_Groupe_Apprenant_Type_result}
value={New_Getall_Groupe_Apprenant_Type_result.filter((data) => (data).code === String(p_detail_type_groupe_code_auto))[0].label}
onChange={(event, value) => {
if (value && value.code) {
setp_detail_type_groupe_code_auto(value.code);
setgrp_apprenant_data_changed("1");
setp_detail_type_groupe_id_auto(value._id);
} else {
setp_detail_type_groupe_code_auto("");
setgrp_apprenant_data_changed("1");
setp_detail_type_groupe_id_auto("");
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
}
</div>
<div className="session_caract_Dialog" style={{ width: '50%', float: 'left' }}> <b> Grouper les inscrits par </b>
<Autocomplete
disablePortal
name="event_dialog_type_ressource"
id="event_dialog_type_ressource"
fullWidth
options={New_Option_Groupe_By}
onChange={(event, value) => {
if (value.value)
setp_detail_split_type_auto(value.value);
else
setp_detail_split_type_auto("");
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>
</div>
</div>
{String(submenu_grp_dialog) === "create" && <div>
<div className="session_caract_Dialog" > <b> Nombre de Groupe </b>
<div className="session_caract_Dialog" > <b> Nombre de Groupes </b>
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -3362,19 +3372,19 @@ const Groupe_Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -3460,19 +3470,19 @@ const Groupe_Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -3558,19 +3568,19 @@ const Groupe_Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -3804,7 +3814,7 @@ const Groupe_Apprenant = (props) => {
</div>
<div className="div_row">
<div className="div_row" style={{ marginLeft: '10px' }}>
{selectionModel_grp_apprenant && selectionModel_grp_apprenant.length >= 1 && <div className="block_en_mass">
<nav >Traitement en masse </nav>
@ -3831,20 +3841,20 @@ const Groupe_Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background:'#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -4213,19 +4223,19 @@ const Groupe_Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -4260,19 +4270,19 @@ const Groupe_Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -4312,19 +4322,19 @@ const Groupe_Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -5031,20 +5041,20 @@ const Groupe_Apprenant = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background:'#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
}}
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>

View File

@ -1187,6 +1187,9 @@ const Module_Attestation_Formation = (props) => {
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
sx={{
backgroundColor: "#FFF",
}}
options={New_Option_attestation_Masse}
onChange={(event, value) => {
if (value && value.value) {

View File

@ -2758,7 +2758,7 @@ const Module_Intranet_Client_Internal_Email_Management = (props) => {
<div className="div_row_droite" style={{ "textAlign": 'right' }}>
<Button onClick={(e) => {
Delete_New_Empty_Email();
}} className="bton_annule_dialog" >annuler new mail</Button>
}} className="bton_annule_dialog" >annuler mail</Button>
</div>
</div>
</div>

View File

@ -57,7 +57,7 @@ const Module_Session_Evaluation = (props) => {
return (
<nav>
{value && <div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all", paddingTop:'5px' }}>
{value && <div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all", paddingTop: '5px' }}>
{expanded ? value : String(value).slice(0, 50)}&nbsp;
{value.length > 50 && (
@ -557,7 +557,7 @@ const Module_Session_Evaluation = (props) => {
var node = {
"_id": local_id,
"id": localid,
"label": local_nom ,
"label": local_nom,
"nom": local_nom,
"raison_sociale": local_raison_sociale,
"invoice_condition_paiement_id": local_cond_paiement_id,
@ -2635,7 +2635,7 @@ const Module_Session_Evaluation = (props) => {
setLoading(false);
console.warn('Not good man :( Get_Class_Default_Document_id = ', error);
setGet_Class_Default_Document_id_api("false");
// alert("Impossible de récupérer le document par défaut");
// alert("Impossible de récupérer le document par défaut");
//setmyApimyApiMessage("")
})
}
@ -2736,19 +2736,19 @@ const Module_Session_Evaluation = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -2762,7 +2762,7 @@ const Module_Session_Evaluation = (props) => {
&& selected_formulaire_type === "client_eval" &&
<div className="session_caract_Dialog"> <b> Choisir client ou financeur </b>
<Autocomplete
disablePortal
name="event_dialog_formateur"
@ -2785,19 +2785,19 @@ const Module_Session_Evaluation = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -2908,19 +2908,19 @@ const Module_Session_Evaluation = (props) => {
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
@ -3278,7 +3278,7 @@ const Module_Session_Evaluation = (props) => {
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: "#0a2a4d",
color: "#0a2a4d",
},
@ -3288,13 +3288,13 @@ const Module_Session_Evaluation = (props) => {
'& .line--positionnement_envoye': {
backgroundColor: '#F9E79F',
color: "#0a2a4d",
color: "#0a2a4d",
},
'& .line--positionnement_repondu': {
backgroundColor: '#ABEBC6',
color: "#0a2a4d",
color: "#0a2a4d",
fontWeight: '600',
},
@ -3388,6 +3388,9 @@ const Module_Session_Evaluation = (props) => {
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
sx={{
backgroundColor: "#FFF",
}}
options={New_Option_Evaluation_Masse}
onChange={(event, value) => {
if (value && value.value) {
@ -3579,7 +3582,7 @@ const Module_Session_Evaluation = (props) => {
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: "#0a2a4d",
color: "#0a2a4d",
},
@ -3589,13 +3592,13 @@ const Module_Session_Evaluation = (props) => {
'& .line--positionnement_envoye': {
backgroundColor: '#F9E79F',
color: "#0a2a4d",
color: "#0a2a4d",
},
'& .line--positionnement_repondu': {
backgroundColor: '#ABEBC6',
color: "#0a2a4d",
color: "#0a2a4d",
fontWeight: '600',
},
@ -3690,6 +3693,9 @@ const Module_Session_Evaluation = (props) => {
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
sx={{
backgroundColor: "#FFF",
}}
options={New_Option_Evaluation_Masse}
onChange={(event, value) => {
if (value && value.value) {
@ -3888,7 +3894,7 @@ const Module_Session_Evaluation = (props) => {
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: "#0a2a4d",
color: "#0a2a4d",
},
@ -3898,13 +3904,13 @@ const Module_Session_Evaluation = (props) => {
'& .line--positionnement_envoye': {
backgroundColor: '#F9E79F',
color: "#0a2a4d",
color: "#0a2a4d",
},
'& .line--positionnement_repondu': {
backgroundColor: '#ABEBC6',
color: "#0a2a4d",
color: "#0a2a4d",
fontWeight: '600',
},
@ -3996,6 +4002,9 @@ const Module_Session_Evaluation = (props) => {
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
sx={{
backgroundColor: "#FFF",
}}
options={New_Option_Evaluation_Masse}
onChange={(event, value) => {
if (value && value.value) {
@ -4278,7 +4287,7 @@ const Module_Session_Evaluation = (props) => {
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: "#0a2a4d",
color: "#0a2a4d",
},
@ -4288,13 +4297,13 @@ const Module_Session_Evaluation = (props) => {
'& .line--positionnement_envoye': {
backgroundColor: '#F9E79F',
color: "#0a2a4d",
color: "#0a2a4d",
},
'& .line--positionnement_repondu': {
backgroundColor: '#ABEBC6',
color: "#0a2a4d",
color: "#0a2a4d",
fontWeight: '600',
},
@ -4390,6 +4399,9 @@ const Module_Session_Evaluation = (props) => {
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
sx={{
backgroundColor: "#FFF",
}}
options={New_Option_Evaluation_Masse}
onChange={(event, value) => {
if (value && value.value) {
@ -4633,7 +4645,7 @@ const Module_Session_Evaluation = (props) => {
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: "#0a2a4d",
color: "#0a2a4d",
},
@ -4643,13 +4655,13 @@ const Module_Session_Evaluation = (props) => {
'& .line--positionnement_envoye': {
backgroundColor: '#F9E79F',
color: "#0a2a4d",
color: "#0a2a4d",
},
'& .line--positionnement_repondu': {
backgroundColor: '#ABEBC6',
color: "#0a2a4d",
color: "#0a2a4d",
fontWeight: '600',
},
@ -4745,6 +4757,9 @@ const Module_Session_Evaluation = (props) => {
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
sx={{
backgroundColor: "#FFF",
}}
options={New_Option_Evaluation_Masse}
onChange={(event, value) => {
if (value && value.value) {
@ -4987,7 +5002,7 @@ const Module_Session_Evaluation = (props) => {
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: "#0a2a4d",
color: "#0a2a4d",
},
@ -4997,13 +5012,13 @@ const Module_Session_Evaluation = (props) => {
'& .line--positionnement_envoye': {
backgroundColor: '#F9E79F',
color: "#0a2a4d",
color: "#0a2a4d",
},
'& .line--positionnement_repondu': {
backgroundColor: '#ABEBC6',
color: "#0a2a4d",
color: "#0a2a4d",
fontWeight: '600',
},
@ -5098,6 +5113,9 @@ const Module_Session_Evaluation = (props) => {
id="combo-box-demo"
className="block_en_mass_select"
fullWidth
sx={{
backgroundColor: "#FFF",
}}
options={New_Option_Evaluation_Masse}
onChange={(event, value) => {
if (value && value.value) {

View File

@ -242,10 +242,10 @@ const Module_Session_Notes_Classement = (props) => {
{ field: 'absence_deplace_seuil', headerName: 'absence_deplace_seuil', hide: true },
{ field: 'domaine_competence_seuil_absence', headerName: 'do_comp_seuil_absence', hide: true },
{ field: 'diplome_id_code', headerName: 'Diplome', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'diplome_id_code', headerName: 'Diplome', width: 200, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{
field: 'pourcentage_absence_non_justifed', headerName: '%Abs. NJ', align: "center", flex: 1, minWidth: 100, maxWidth: 150, flex: 1,
field: 'pourcentage_absence_non_justifed', headerName: '%Abs. NJ', align: "center", Width: 150,
align: "left",
renderCell: (params) => {
return (
@ -296,36 +296,36 @@ const Module_Session_Notes_Classement = (props) => {
},
{ field: 'domaine_competence_id_code', headerName: 'Dom. compét.', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'domaine_competence_id_code', headerName: 'Dom. compét.', width: 250, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'semestre', headerName: 'Sem.', width: 80, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'inscription_id_nom', headerName: 'Nom', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'inscription_id_prenom', headerName: 'Prenom', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'inscription_id_nom', headerName: 'Nom', width: 200, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'inscription_id_prenom', headerName: 'Prenom', width: 200, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'ue_id_code', headerName: 'UE', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'ue_id_code', headerName: 'UE', width: 250, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{
field: 'moyenne_avant_coef', headerName: 'Moyenne', minwidth: 100, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />,
field: 'moyenne_avant_coef', headerName: 'Moyenne', width: 150, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />,
},
{
field: 'coef', headerName: 'Coef', minwidth: 100, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />,
field: 'coef', headerName: 'Coef', width: 150, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />,
},
{
field: 'moyenne_apres_coef', headerName: 'Moyenne (avec Coef)', minwidth: 100, flex: 1, hide: true, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />,
field: 'moyenne_apres_coef', headerName: 'Moyenne (avec Coef)', width: 150, hide: true, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />,
},
{ field: 'ue_credit_ects', headerName: 'ECTS', minwidth: 100, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'ue_credit_ects', headerName: 'ECTS', width: 150, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'ue_seuil_validation', headerName: 'Seuil. V', minwidth: 100, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'ue_seuil_validation', headerName: 'Seuil. V', width: 150, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{
field: 'is_eu_validated', headerName: 'Validé', maxWidth: 100, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />,
field: 'is_eu_validated', headerName: 'Validé', Width: 100, renderCell: (params) => <ExpandableCell_50 {...params} />,
renderCell: (cellValues) => {
return (
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all" }}>
@ -339,9 +339,9 @@ const Module_Session_Notes_Classement = (props) => {
},
{ field: 'jury_note', headerName: 'Note Jury', width: 100, editable: false, renderCell: (params) => <ExpandableCell_50_bg_hiligt_red_color {...params} />, align: "center", },
{ field: 'jury_observation', headerName: 'Observ. Jury', minwidth: 200, flex: 1, editable: false, renderCell: (params) => <ExpandableCell_50_bg_hiligt_red_color {...params} />, align: "left", },
{ field: 'jury_observation', headerName: 'Observ. Jury', width: 200, editable: false, renderCell: (params) => <ExpandableCell_50_bg_hiligt_red_color {...params} />, align: "left", },
{
field: 'jury_validation', headerName: 'Valid. Jury', width: 100, flex: 1, hide: false, editable: false,
field: 'jury_validation', headerName: 'Valid. Jury', width: 100, hide: false, editable: false,
renderCell: (cellValues) => {
return (
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all", color: 'red', }}>
@ -1695,6 +1695,8 @@ const Module_Session_Notes_Classement = (props) => {
Getall_Partner_Domaine_Competence();
Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE();
}, [])
@ -2970,11 +2972,11 @@ const Module_Session_Notes_Classement = (props) => {
var tab_diplome = []
var tab_inscrit_ids = []
for (var i = 0; i < selectionModel_note_Session_classement.length; i++) {
var myid = parseInt(String(selectionModel_note_Session_classement[i]));
var line = New_Getall_Session_Final_Note_Classement_By_BC_Diplome_UE_result[myid];
for (var i = 0; i < selectionModel_note_Session_classement_simple.length; i++) {
var myid = parseInt(String(selectionModel_note_Session_classement_simple[i]));
var line = New_Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE_result[myid];
//console.log(" ### line = ", line);
// console.log(" ### line = ", line);
if (!tab_inscrit_ids.includes(line.inscrit_id)) {
@ -2982,15 +2984,27 @@ const Module_Session_Notes_Classement = (props) => {
}
if (!tab_semestre.includes(line.semestre)) {
tab_semestre.push(line.semestre);
}
if (!tab_diplome.includes(line.diplome_id)) {
tab_diplome.push(line.diplome_id);
}
}
for (var i = 0; i < scope_semestre.length; i++) {
if (scope_semestre[i].id) {
var local_semestre = scope_semestre[i].id
if (!tab_semestre.includes(local_semestre)) {
tab_semestre.push(local_semestre);
}
}
}
if (tab_diplome.length > 1) {
setdisplay_alert_mysy("1");
setalert_message(" Vous ne devez sélectionner d'un seule diplome. ");
@ -3010,21 +3024,28 @@ const Module_Session_Notes_Classement = (props) => {
var url = process.env.REACT_APP_API_URL + "myclass/api/Prepare_and_Send_Inscrit_Bulletin_Note_By_PDF/" + stored_cookie + "/" + tab_inscrit_ids + "/" + diplome_id + "/" + final_semestre_data;
console.log(" ## url bulletin = ", url);
//console.log(" ## url bulletin = ", url);
setLoading(true);
axios.get(url, { responseType: 'blob', },)
.then((res) => {
setactionmass_ftion_val("");
Dialog_SETUP_BULLETIN_NOTE_Close_buton();
setLoading(false);
//console.log(" In Download_Stagiaire_Conventions_PDF res.data = " + res.data);
if (String(res.data) === String("false")) {
alert("Impossible de télécharger les bulletins (2) ");
setdisplay_alert_mysy("1");
setalert_message("Impossible de télécharger les bulletins (2) ");
setalert_type("error");
} else {
fileDownload(res.data, nom_fichier_cmd);
setactionmass_ftion_val("");
}
}).catch((error) => {
setactionmass_ftion_val("");
Dialog_SETUP_BULLETIN_NOTE_Close_buton();
setLoading(false);
console.error('Error:', error);
@ -4012,6 +4033,28 @@ const Module_Session_Notes_Classement = (props) => {
}
const [Dialog_SETUP_BULLETIN_NOTE_open, setDialog_SETUP_BULLETIN_NOTE_open] = React.useState(false);
const Dialog_SETUP_BULLETIN_NOTE_Close_buton = () => {
setDialog_SETUP_BULLETIN_NOTE_open(false);
};
const fixedVal_scope_semestre = [];
const [scope_semestre, setscope_semestre] = useState([...fixedVal_scope_semestre]);
const New_Option_Semestre = [
{ "id": "1", "label": "1", "value": "1" },
{ "id": "2", "label": "2", "value": "2" },
{ "id": "3", "label": "3", "value": "3" },
{ "id": "4", "label": "4", "value": "4" },
{ "id": "5", "label": "5", "value": "5" },
{ "id": "6", "label": "6", "value": "6" },
{ "id": "", "label": "", "value": "" },
]
return (
<div className="module_session_note_classement">
@ -4030,6 +4073,127 @@ const Module_Session_Notes_Classement = (props) => {
}
{/*** FIN Affichage des messages d'alerte*/}
{/* Dialog pour gerer l'impression du bulletin de note */}
<Dialog
open={Dialog_SETUP_BULLETIN_NOTE_open}
// onClose={Dialog_JURY_INFO_handleClose}
// className="displaypartnersession"
className="displaypartnersession"
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
top: '10rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> Impression bulletin note</DialogTitle>
<DialogContent className="DialogContent_width" style={{ "minHeight": "20rem" }}>
<div className="session_caract_Dialog" > <b>Semestre </b> <br />
<Autocomplete
disablePortal
name="semestre"
id="semestre"
className="disabled_style enable_style disabled_style_no_border"
options={New_Option_Semestre}
multiple
onChange={(event, newValue) => {
if (newValue) {
setscope_semestre([
...fixedVal_scope_semestre,
...newValue.filter((i) => fixedVal_scope_semestre.indexOf(i) === -1),
]);
}
}}
value={scope_semestre}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>
</DialogContent>
<DialogActions>
<IconButton
autoFocus
onClick={Dialog_SETUP_BULLETIN_NOTE_Close_buton}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
<div className="div_row">
<div className="div_row_gauche">
<Button
className="bton_enreg_dialog" onClick={(e) => {
Download_Bulletins_Notes();
}}
>Imprimer </Button>
</div>
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
<Button onClick={Dialog_SETUP_BULLETIN_NOTE_Close_buton} className="bton_annule_dialog" >Fermer</Button>
</div>
</div>
</DialogActions>
</Dialog>
{/* FIN Dialog pour gerer l'impression du bulletin de note **/}
{/* Dialog pour gerer les CALCUL_NOTE */}
<Dialog
open={Dialog_CALCUL_NOTE_open}
@ -4657,7 +4821,7 @@ const Module_Session_Notes_Classement = (props) => {
id="filtre1"
value={New_Option_Valisation_Jury.filter((data) => (data).value === String(p_detail_jury_validation_bc))[0].label}
value={New_Option_Valisation_Jury.filter((data) => (data).value === String(p_detail_jury_validation_bc))[0].label}
options={New_Option_Valisation_Jury}
onChange={(event, value) => {
if (value && value.value) {
@ -4893,9 +5057,9 @@ const Module_Session_Notes_Classement = (props) => {
{vue_note && String(vue_note) === "classement" && <div style={{ "border": "None" }}>
{/***** On n'affiche les filtre que si necessaire */}
<div className="div_row">
<div className="div_row" style={{ borderRadius:'10px', background:'#FFF', paddingRight:'20px'}}>
<div className="div_row" style={{ textAlign: 'center' }}> Filtre Classement général
<div className="div_row" style={{ textAlign: 'center', fontFamily:'DM Sans', fontWeight:'700' }}> Filtre Classement général
</div>
<div className="div_row" style={{ "marginBottom": "5px" }}>
@ -5448,6 +5612,7 @@ const Module_Session_Notes_Classement = (props) => {
onClick={(event) => {
Getall_Session_Final_Note_Classement_By_BC_Diplome_UE("1");
Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE("1");
}} >
Appliquer
@ -5460,6 +5625,7 @@ const Module_Session_Notes_Classement = (props) => {
clean_all_filters_classement();
Getall_Session_Final_Note_Classement_By_BC_Diplome_UE();
Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE();
}}
>Annuler
</Button>
@ -5500,21 +5666,21 @@ const Module_Session_Notes_Classement = (props) => {
setDialog_CALCUL_NOTE_open(true);
}}
className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Calcul Moyenne V2 </Button>
className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Calcul Moyenne </Button>
<Button variant="outlined" onClick={Calcul_Note_Classement_Session} className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Calcul Moyenne </Button>
{/* <Button variant="outlined" onClick={Calcul_Note_Classement_Session} className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Calcul Moyenne </Button>
<Button variant="outlined" onClick={Jury_Update_Final_Session} className="detail_class_submenu" id='calcul_moyenne' name='calcul_moyenne'> Mettre à jour </Button>
*/}
<Button variant="outlined" onClick={(e) => {
setclassement_wiew_mode("simple");
Getall_SIMPLE_VIEW_Session_Final_Note_Classement_By_BC_Diplome_UE("1");
}} className="detail_class_submenu" id='vue_simple' name='vue_simple'> Vue simplife</Button>
}} className="detail_class_submenu" id='vue_simple' name='vue_simple'> Vue simplife</Button>
<Button variant="outlined" onClick={(e) => {
setclassement_wiew_mode("detail");
Getall_Session_Final_Note_Classement_By_BC_Diplome_UE("1");
}} className="detail_class_submenu" id='vue_detaille' name='vue_detaille'> Vue Detail </Button>
}} className="detail_class_submenu" id='vue_detaille' name='vue_detaille'> Vue Détaillée </Button>
</nav>
@ -5522,9 +5688,9 @@ const Module_Session_Notes_Classement = (props) => {
<br />
{/** La V2 du calcul */} Calcul V222
{/** La V2 du calcul */}
{classement_wiew_mode && classement_wiew_mode === "simple" && <Box
{classement_wiew_mode && classement_wiew_mode !== "detail" && <Box
sx={{
height: 750,
width: '100%',
@ -5848,76 +6014,78 @@ const Module_Session_Notes_Classement = (props) => {
<div className="div_row">
{selectionModel_note_Session_classement && selectionModel_note_Session_classement.length >= 1 && <div className="block_en_mass">
<nav >Traitement en masse </nav>
&nbsp;
<Autocomplete
disablePortal
id="combo-box-demo"
className="block_en_mass_select"
{classement_wiew_mode && classement_wiew_mode === "simple" &&
selectionModel_note_Session_classement_simple && selectionModel_note_Session_classement_simple.length >= 1 && <div className="block_en_mass">
<nav >Traitement en masse </nav>
&nbsp;
<Autocomplete
disablePortal
id="combo-box-demo"
className="block_en_mass_select"
options={New_Option}
onChange={(event, value) => {
if (value && value.value) {
if (String(value.value) === "inscription"
|| String(value.value) === "print_bulletin") {
setactionmass_ftion_val(value.value);
}
else {
setactionmass_ftion_val("");
}
options={New_Option}
onChange={(event, value) => {
if (value && value.value) {
if (String(value.value) === "inscription"
|| String(value.value) === "print_bulletin") {
setactionmass_ftion_val(value.value);
}
else {
setactionmass_ftion_val("");
}
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
background: '#FFF',
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
}
/>
{actionmass_ftion_val && String(actionmass_ftion_val) === "inscription" && <nav className='block_en_mass_bton_action'>
<Button className="bton_enreg" style={{ "width": "90%" }} onClick={(event) => {
{actionmass_ftion_val && String(actionmass_ftion_val) === "inscription" && <nav className='block_en_mass_bton_action'>
<Button className="bton_enreg" style={{ "width": "90%" }} onClick={(event) => {
setNew_Reinscription_Getall_Class_List_UE_Given_Class_result([]);
settab_selected_list_ue([]);
setDialog_add_inscription_open(true);
}}>
<FcAcceptDatabase /> Traiter
</Button>
setNew_Reinscription_Getall_Class_List_UE_Given_Class_result([]);
settab_selected_list_ue([]);
setDialog_add_inscription_open(true);
}}>
<FcAcceptDatabase /> Traiter
</Button>
</nav>}
</nav>}
{actionmass_ftion_val && String(actionmass_ftion_val) === "print_bulletin" && <nav className='block_en_mass_bton_action'>
<Button className="bton_enreg" style={{ "width": "90%" }} onClick={(event) => {
{actionmass_ftion_val && String(actionmass_ftion_val) === "print_bulletin" && <nav className='block_en_mass_bton_action'>
<Button className="bton_enreg" style={{ "width": "90%" }} onClick={(event) => {
Download_Bulletins_Notes();
}}>
<FcAcceptDatabase /> Traiter
</Button>
setscope_semestre([]);
setDialog_SETUP_BULLETIN_NOTE_open(true);
}}>
<FcAcceptDatabase /> Traiter
</Button>
</nav>}
</nav>}
</div>}
</div>}
</div>
@ -5931,11 +6099,12 @@ const Module_Session_Notes_Classement = (props) => {
{vue_note && String(vue_note) === "detail_note" && <div style={{ "border": "None" }}>
{vue_note && String(vue_note) === "detail_note" &&
<div style={{ "border": "None" }} >
{/***** On n'affiche les filtre que si necessaire */}
<div className="div_row">
<div className="div_row" style={{ textAlign: 'center' }}> Filtre Detail note
<div className="div_row" style={{ borderRadius:'10px', background:'#FFF', paddingRight:'20px'}}>
<div className="div_row" style={{ textAlign: 'center', fontFamily:'DM Sans', fontWeight:'700' }}> Filtre Détail notes
</div>
<div className="div_row" style={{ "marginBottom": "5px" }}>
@ -6530,7 +6699,7 @@ const Module_Session_Notes_Classement = (props) => {
<div style={{ height: 900, width: '100%', paddingRight: '5px' }}>
&nbsp;
<nav style={{ textAlign: 'center' }}>zzzzzz detail note uu</nav>
<nav style={{ textAlign: 'center' }}> Détail notes</nav>
<Box
sx={{
height: 750,
@ -6720,7 +6889,6 @@ const Module_Session_Notes_Classement = (props) => {
<div className="div_row">
-----------
</div>

View File

@ -3824,7 +3824,7 @@ const Module_Session_Planification = (props) => {
var node_distinct = {
"_id": local_id,
"id": localid,
"label": local_code + " - " + String(local_titre).substring(0, 20),
"label": local_code + " - " + String(local_titre).substring(0, 50),
"code": local_code,
"titre": local_titre,
"credit": local_credit,
@ -7341,7 +7341,8 @@ const Module_Session_Planification = (props) => {
<div className="session_caract_Dialog" style={{ width: '50%' }}> Groupe apprenants
{New_Getall_Partner_Groupe_Inscrit_result && New_Getall_Partner_Groupe_Inscrit_result.length > 0 && <Autocomplete
{New_Getall_Partner_Groupe_Inscrit_result && New_Getall_Partner_Groupe_Inscrit_result.length > 0 &&
<Autocomplete
disablePortal
name="event_dialog_grp_apprenant"
id="event_dialog_grp_apprenant"

View File

@ -2460,881 +2460,7 @@ const PartnerClientActivite = (props) => {
</div>
{/*<div className="div_row">
{String(show_all_activite_list) === "1" && String(showactivite_detail) !== "1" && String(add_one_activite) !== "1" &&
<div className="div_row" style={{ "marginLeft": "5px", "marginRight": "5px" }}>
<div className="div_row" onClick={Add_Activite} style={{ "cursor": "pointer" }}> <AiOutlinePlusCircle /> Ajouter une activité </div>
<div className="div_row" style={{ "border": "None" }}>
<div className="titre1" > Activité(s) qui me sont Assignée(s) </div>
</div>
<div className="div_row">
<DndProvider backend={HTML5Backend}>
<section style={classes.board}>
{activite_status_list_pave_affiche.map((channel, index) => (
<KanbanColumn
key={channel.id}
status={channel.id}
changeTaskStatus={changeTaskStatus}
channel={channel}
>
{String(index) === "0" && <div style={classes.column_first_left}>
<div className="kanban_header_css">{Opportunite_chanel_label[channel.id]} </div>
<div style={{ overflowY: 'auto', height: '95%' }}>
{Get_List_Activite_Assign_To_Me_result && Get_List_Activite_Assign_To_Me_result.length > 0 &&
Get_List_Activite_Assign_To_Me_result.filter(item => JSON.parse(item).status === channel.id)
.map(item => (
<KanbanItem key={JSON.parse(item)._id} id={JSON.parse(item)._id} actvite_recid={JSON.parse(item).recid}>
<br />
<div className="kanban_item_css" id={JSON.parse(item)._id}
>
{String(String(JSON.parse(item).status)) === "1" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
<i>FAIT </i> <br />
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
{String(String(JSON.parse(item).status)) === "0" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
{JSON.parse(item).employee_assigned_view_statut && String(JSON.parse(item).employee_assigned_view_statut) !== "1" &&
<nav style={{ marginRight: "10px", textAlign: "right" }}> <FiberNewIcon style={{ color: 'red', }} /> </nav>}
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
{parseInt(String(JSON.parse(item).retard)) < 0 && <i style={{ "color": "red", }}> RETARD de {String(JSON.parse(item).retard)} jours <br /></i>}
{parseInt(String(JSON.parse(item).retard)) > 0 && <i> DANS {String(JSON.parse(item).retard)} jours <br /></i>}
{parseInt(String(JSON.parse(item).retard)) == 0 && <i style={{ "color": "orange" }}> AUJOURD'HUI <br /></i>}
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
{String(String(JSON.parse(item).status)) === "-1" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
<i>ANNULE </i> <br />
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
</div>
</KanbanItem>
))}
</div>
</div>}
{String(index) !== "0" && <div style={classes.column_right_solid_border}>
<div className="kanban_header_css">{Opportunite_chanel_label[channel.id]} </div>
<div style={{ overflowY: 'auto', height: '95%' }}>
{Get_List_Activite_Assign_To_Me_result && Get_List_Activite_Assign_To_Me_result.length > 0 &&
Get_List_Activite_Assign_To_Me_result.filter(item => JSON.parse(item).status === channel.id)
.map(item => (
<KanbanItem key={JSON.parse(item)._id} id={JSON.parse(item)._id} actvite_recid={JSON.parse(item).recid}>
<br />
<div className="kanban_item_css" id={JSON.parse(item)._id}
>
{String(String(JSON.parse(item).status)) === "1" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
<i>FAIT </i> <br />
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
{String(String(JSON.parse(item).status)) === "0" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
{JSON.parse(item).employee_assigned_view_statut && String(JSON.parse(item).employee_assigned_view_statut) !== "1" &&
<nav style={{ marginRight: "10px", textAlign: "right" }}> <FiberNewIcon style={{ color: 'red', }} /> </nav>}
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
{parseInt(String(JSON.parse(item).retard)) < 0 && <i style={{ "color": "red", }}> RETARD de {String(JSON.parse(item).retard)} jours <br /></i>}
{parseInt(String(JSON.parse(item).retard)) > 0 && <i> DANS {String(JSON.parse(item).retard)} jours <br /></i>}
{parseInt(String(JSON.parse(item).retard)) == 0 && <i style={{ "color": "orange" }}> AUJOURD'HUI <br /></i>}
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
{String(String(JSON.parse(item).status)) === "-1" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
<i>ANNULE </i> <br />
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
</div>
</KanbanItem>
))}
</div>
</div>}
</KanbanColumn>
))}
</section>
</DndProvider>
<div className="div_row"> &nbsp;</div>
</div>
<div className="div_row" style={{ "border": "None" }}>
<hr className="hr_break" />
<div className="titre1" > Activté(s) que j'ai créée(s) </div>
</div>
<div className="div_row">
<DndProvider backend={HTML5Backend}>
<section style={classes.board}>
{activite_status_list_pave_affiche.map((channel, index) => (
<KanbanColumn
key={channel.id}
status={channel.id}
changeTaskStatus={changeTaskStatus}
theme={channel.theme}
>
{String(index) === "0" && <div style={classes.column_first_left}>
<div style={classes.columnHead}>{Opportunite_chanel_label[channel.id]}</div>
<div style={{ overflowY: 'auto', height: '95%' }}>
{Get_List_Activite_Of_client_Part_result && Get_List_Activite_Of_client_Part_result.length > 0 &&
Get_List_Activite_Of_client_Part_result.filter(item => JSON.parse(item).status === channel.id)
.map(item => (
<KanbanItem key={JSON.parse(item)._id} id={JSON.parse(item)._id} actvite_recid={JSON.parse(item).recid}>
<br />
<div className="kanban_item_css" id={JSON.parse(item)._id}
>
{String(String(JSON.parse(item).status)) === "1" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
<i>FAIT </i> <br />
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
{String(String(JSON.parse(item).status)) === "0" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
{JSON.parse(item).employee_assigned_view_statut && String(JSON.parse(item).employee_assigned_view_statut) !== "1" &&
<nav style={{ marginRight: "10px", textAlign: "right" }}> <FiberNewIcon style={{ color: 'red', }} /> </nav>}
{parseInt(String(JSON.parse(item).retard)) < 0 && <i style={{ "color": "red" }}> RETARD de {String(JSON.parse(item).retard)} jours <br /></i>}
{parseInt(String(JSON.parse(item).retard)) > 0 && <i> DANS {String(JSON.parse(item).retard)} jours <br /></i>}
{parseInt(String(JSON.parse(item).retard)) == 0 && <i style={{ "color": "orange" }}> AUJOURD'HUI <br /></i>}
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
{String(String(JSON.parse(item).status)) === "-1" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
<i>ANNULE </i> <br />
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
</div>
</KanbanItem>
))}
</div>
</div>}
{String(index) !== "0" && <div style={classes.column_right_solid_border}>
<div style={classes.columnHead}>{Opportunite_chanel_label[channel.id]}</div>
<div style={{ overflowY: 'auto', height: '95%' }}>
{Get_List_Activite_Of_client_Part_result && Get_List_Activite_Of_client_Part_result.length > 0 &&
Get_List_Activite_Of_client_Part_result.filter(item => JSON.parse(item).status === channel.id)
.map(item => (
<KanbanItem key={JSON.parse(item)._id} id={JSON.parse(item)._id} actvite_recid={JSON.parse(item).recid}>
<br />
<div className="kanban_item_css" id={JSON.parse(item)._id}
>
{String(String(JSON.parse(item).status)) === "1" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
<i>FAIT </i> <br />
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
{String(String(JSON.parse(item).status)) === "0" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
{JSON.parse(item).employee_assigned_view_statut && String(JSON.parse(item).employee_assigned_view_statut) !== "1" &&
<nav style={{ marginRight: "10px", textAlign: "right" }}> <FiberNewIcon style={{ color: 'red', }} /> </nav>}
{parseInt(String(JSON.parse(item).retard)) < 0 && <i style={{ "color": "red" }}> RETARD de {String(JSON.parse(item).retard)} jours <br /></i>}
{parseInt(String(JSON.parse(item).retard)) > 0 && <i> DANS {String(JSON.parse(item).retard)} jours <br /></i>}
{parseInt(String(JSON.parse(item).retard)) == 0 && <i style={{ "color": "orange" }}> AUJOURD'HUI <br /></i>}
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
{String(String(JSON.parse(item).status)) === "-1" &&
<nav recid={String(JSON.parse(item).recid)}
onClick={(event) => {
Display_Given_Activite_From_Activite_Recid(String(JSON.parse(item).recid));
setDialog_ACTIVITE_open(true);
}}
className="detail_activite">
<nav className="detail_header" recid={String(JSON.parse(item).recid)} > {String(JSON.parse(item).deadline)} : {String(JSON.parse(item).type)}</nav>
<nav recid={String(JSON.parse(item).recid)} >
<i>ANNULE </i> <br />
{(JSON.parse(item).description).substring(0, 50)}<br />
{(JSON.parse(item).detail).substring(0, 50)}<br />
</nav>
</nav>}
</div>
</KanbanItem>
))}
</div>
</div>}
</KanbanColumn>
))}
</section>
</DndProvider>
<div className="div_row"> &nbsp;</div>
</div>
</div>}
{String(showactivite_detail) === "ttt1" && <div className="div_row" style={{ "marginLeft": "5px", "marginRight": "5px" }} onChange={DataUpdated_Activite_Data}>
<div className="training_caract"> Description <br />
<TextField
required
name="activite_description"
//label="Description"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_activite_description}
onChange={(e) => setp_activite_description(e.target.value)}
/>
</div>
{String(formedit_mode_activite) === "1" && <div className="training_caract">
Date souhaitée 01 <br />
<DatePicker
name="activite_deadline"
id="activite_deadline"
selected={p_activite_deadline}
onChange={(date) => {
setp_activite_deadline(date);
setdatamodification_activite("1");
}
}
locale={'fr'}
showTimeSelect
timeFormat="HH:mm"
timeIntervals={15}
dateFormat="dd/MM/yyyy HH:mm"
is24Hour
className="disabled_style enable_style"
/>
</div>}
{String(formedit_mode_activite) === "0" && <div className="training_caract">
Date souhaitée 02<br />
<TextField
required
name="activite_deadline"
//label="Date souhaitée"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_activite_deadline_label}
/>
</div>}
{String(formedit_mode_activite) === "1" && type_activite_list && type_activite_list.length > 0 && <div className="training_caract">
Type d'activité <br />
<Autocomplete
disablePortal
name="activite_type"
id="activite_type"
className="disabled_style"
options={type_activite_list}
value={type_activite_list.filter((data) => (data).id === String(p_activite_type))[0].label}
onChange={(event, value) => {
if (value && value.value) {
setp_activite_type(value.value);
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>}
{String(formedit_mode_activite) === "0" && <div className="training_caract">
Type d'activité <br />
<TextField
required
name="activite_type"
//label="Type d'activité"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_activite_type}
onChange={(e) => setp_activite_type(e.target.value)} >
</TextField>
</div>}
{String(formedit_mode_activite) === "1" && activite_status_list && activite_status_list.length > 0 &&
<div className="training_caract">
Statut <br />
<Autocomplete
disablePortal
name="activite_status"
id="activite_status"
className="disabled_style"
options={activite_status_list}
value={activite_status_list.filter((data) => (data).id === String(p_activite_status))[0].label}
onChange={(event, value) => {
if (value && value.value) {
setp_activite_status(value.value);
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>}
{String(formedit_mode_activite) === "0" && <div className="training_caract">
Statut <br />
<TextField
required
name="activite_status"
//label="Statut"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_activite_status_label}
onChange={(e) => setp_activite_status(e.target.value)} >
</TextField>
</div>}
{New_Getall_Training_Employee_No_Filter_result && New_Getall_Training_Employee_No_Filter_result.length > 0 &&
String(formedit_mode_activite) === "1" && <div className="training_caract" > Assigné à (employé)<br />
<Autocomplete
disablePortal
id="activite_assigned_to"
name="activite_assigned_to"
className="disabled_style"
options={New_Getall_Training_Employee_No_Filter_result}
//value={New_Getall_Training_Employee_No_Filter_result.filter((data) => (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) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>}
{String(formedit_mode_activite) !== "1" && <div className="training_caract" > Assigné à (employé) <br />
<TextField
margin="dense"
id="activite_assigned_to"
name="activite_assigned_to"
className="disabled_style"
fullWidth
value={p_activite_employee_assigned_nom_prenom}
/>
</div>}
<div className="training_caract" >
Détail <br />
<TextareaAutosize
name="activite_detail"
id="activite_detail"
aria-label="minimum height"
minRows={3}
maxRows={5}
//placeholder="Minimum 3 rows"
style={{
border: "1px solid #e8eef6", width: '90%', padding: '2px',
maxHeight: '10rem', height: '5rem', minHeight: '5rem', marginBottom: '3rem',
fontFamily: 'DM Sans'
}}
value={p_activite_detail}
onChange={(e) => {
setp_activite_detail(e.target.value);
}}
/>
</div>
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>
{String(datamodification_activite) === "1" && <div className="div_row">
<div className="koUpdateData" style={{ "color": "orange", "textAlign": "center" }}> /!\ Pensez à enregistrer les modifications</div></div>}
{String(formedit_mode_activite) === "1" && <div className="div_row">
<div className="div_row_gauche">
<Button variant="contained" color="success" className="bton_enreg " onClick={recordPartnerClient_Activite_Data}>Enregistrer &nbsp; <AiTwotoneSave /> </Button>
</div>
<div className="div_row_droite" style={{ "textAlign": "right" }}>
<Button variant="contained" color="success" className="bton_annule" onClick={retour_liste_Activite}>Annuler</Button>
</div>
</div>
}
{String(formedit_mode_activite) !== "1" && <div className="div_row">
<div className="div_row_gauche">
<Button variant="contained" color="success" className="bton_enreg " onClick={retour_liste_Activite}>Liste Activités &nbsp; <GrOrderedList /> </Button>
</div>
<div className="div_row_droite" style={{ "textAlign": "right" }}>
<Button variant="contained" color="success" className="bton_edit" onClick={DataEditMode_Activite_Data}> Modifier</Button>
</div>
</div>
}
</div>}
{String(add_one_activite) === "1" && <div className="div_row" style={{ "marginLeft": "5px", "marginRight": "5px" }} >
<div className="training_caract"> Description <br />
<TextField
required
name="activite_description"
//label="Description"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={one_activite_description}
onChange={(e) => setone_activite_description(e.target.value)}
/>
</div>
<div className="training_caract">
Date souhaitée 03 <br />
<DatePicker
name="activite_deadline"
id="activite_deadline"
selected={new Date(moment(one_activite_deadline, "DD/MM/YYYY HH:mm:ss"))}
onChange={(date) => {
setone_activite_deadline(format(date, 'dd/MM/yyyy HH:mm:ss'));
}
}
locale={'fr'}
showTimeSelect
timeFormat="HH:mm"
timeIntervals={15}
dateFormat="dd/MM/yyyy HH:mm"
is24Hour
className="disabled_style enable_style"
/>
</div>
<div className="training_caract"> Type d'activité <br />
<Autocomplete
disablePortal
name="activite_type"
id="activite_type"
className="disabled_style"
options={type_activite_list}
onChange={(event, value) => {
if (value && value.value) {
setone_activite_type(value.value);
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>
<div className="training_caract"> Statut <br />
<Autocomplete
disablePortal
name="activite_status"
id="activite_status"
className="disabled_style"
options={activite_status_list}
onChange={(event, value) => {
if (value && value.value) {
setone_activite_status(value.value);
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>
<div className="training_caract"> Assigné à (employé) <br />
<Autocomplete
disablePortal
id="activite_assigned_to"
name="activite_assigned_to"
className="disabled_style"
options={New_Getall_Training_Employee_No_Filter_result}
//value={p_formateur_label}
onChange={(event, value) => {
if (value && value._id) {
setp_activite_employee_assigned_id(value._id);
}
}}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
sx={{
"& .MuiOutlinedInput-root": {
"& fieldset": {
border: "solid #e8eef6 1px;",
},
"&:hover fieldset": {
border: "solid #e8eef6 1px;",
},
"&.Mui-focused fieldset": {
border: "solid #e8eef6 1px;",
},
},
}}
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>
</div>
<div className="training_caract"> Détail <br />
<TextareaAutosize
name="activite_detail"
id="activite_detail"
aria-label="minimum height"
minRows={3}
maxRows={5}
//placeholder="Minimum 3 rows"
style={{
border: "1px solid #e8eef6", width: '90%', padding: '2px',
maxHeight: '10rem', height: '5rem', minHeight: '5rem', marginBottom: '3rem',
fontFamily: 'DM Sans'
}}
value={one_activite_detail}
onChange={(e) => {
setone_activite_detail(e.target.value);
}}
/>
</div>
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>
<div className="div_row">
<div className="div_row_gauche">
<Button variant="contained" color="success" className="bton_enreg " onClick={record_One_PartnerClient_Activite_Data}>Enregistrer &nbsp; <AiTwotoneSave /> </Button>
</div>
<div className="div_row_droite" style={{ "textAlign": "right" }}>
<Button variant="contained" color="success" className="bton_annule" onClick={Close_add_one_activite}>Annuler</Button>
</div>
</div>
</div>}
<div className="div_row" style={{ "border": "None" }}>
<Button variant="outlined" onClick={Add_Activite} style={{ "width": '20rem' }}
className="detail_class_submenu bton_add_session"
id='menu_import_participant' name='menu_import_participant'>Ajout 1 Activité &nbsp;
<IoAddCircleOutline style={{ "fontSize": "x-large", "color": "green" }} />
</Button>
</div>
<div className="div_row"> &nbsp;</div>
</div>*/}
<style>{local_css}</style>
</div >
)

View File

@ -243,4 +243,21 @@
.css-ka7ti6-MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input {
color: #0a2a4d !important;
}
.css-igs3ac {
color: #0a2a4d !important;
font-size: small !important;
font-family: "DM Sans" !important;
border: solid #e8eef6 1px !important;
}
.css-r01yff-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline{
color: #0a2a4d !important;
font-size: small !important;
font-family: "DM Sans" !important;
border: solid #e8eef6 1px !important;
}