18/02/2026 - 18h
parent
b53cfb9156
commit
bf8ffd9332
|
|
@ -20968,7 +20968,7 @@ const DisplayPartnerPromotion = (props) => {
|
|||
backgroundColor: '#FFFFFF',
|
||||
color: '#0a2a4d',
|
||||
},
|
||||
[`& .${gridClasses.cell}`]: {
|
||||
[`& .${gridClasses.cell}`]: {
|
||||
py: 1,
|
||||
},
|
||||
|
||||
|
|
@ -25651,7 +25651,7 @@ const DisplayPartnerPromotion = (props) => {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
submenu_import_participant()
|
||||
|
||||
}
|
||||
|
||||
else if (selected_session_invoiced_statut === "2") {
|
||||
|
|
@ -25659,10 +25659,10 @@ const DisplayPartnerPromotion = (props) => {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
submenu_import_participant()
|
||||
|
||||
}
|
||||
|
||||
|
||||
submenu_import_participant()
|
||||
}}
|
||||
|
||||
className="detail_class_submenu bton_import_excel" style={{
|
||||
|
|
@ -26619,7 +26619,7 @@ const DisplayPartnerPromotion = (props) => {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
submenu_import_participant()
|
||||
|
||||
}
|
||||
|
||||
else if (selected_session_invoiced_statut === "2") {
|
||||
|
|
@ -28696,7 +28696,7 @@ const DisplayPartnerPromotion = (props) => {
|
|||
{String(props.check_user_acces_right("session", "write")) === "1" && <div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
<Button variant="outlined" onClick={(e) => {
|
||||
Getall_Class_List_UE();
|
||||
setDialog_Unite_Enseignement_open(true);
|
||||
setDialog_Unite_Enseignement_open(true);
|
||||
}}
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Ajout 1 UE
|
||||
|
|
|
|||
|
|
@ -6020,7 +6020,7 @@ const DisplayPartnerSession = (props) => {
|
|||
|
||||
setedit_session_form(false);
|
||||
|
||||
await sleep(10);
|
||||
await sleep(10);
|
||||
|
||||
if (document.getElementsByName("myclass_title") && document.getElementsByName("myclass_title")[0]) {
|
||||
document.getElementsByName("myclass_title")[0].disabled = true;
|
||||
|
|
@ -25461,7 +25461,7 @@ const DisplayPartnerSession = (props) => {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
submenu_import_participant()
|
||||
|
||||
}
|
||||
|
||||
else if (selected_session_invoiced_statut === "2") {
|
||||
|
|
@ -25469,9 +25469,9 @@ const DisplayPartnerSession = (props) => {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
submenu_import_participant()
|
||||
}
|
||||
|
||||
}
|
||||
submenu_import_participant()
|
||||
|
||||
}}
|
||||
|
||||
|
|
@ -25487,31 +25487,25 @@ const DisplayPartnerSession = (props) => {
|
|||
<Button variant="outlined"
|
||||
onClick={(event) => {
|
||||
setp_one_civilite_part("neutre");
|
||||
/* if (String(selected_session_invoiced_statut) === "1") {
|
||||
alert(" La session est en cours de facturation ")
|
||||
} else if (String(selected_session_invoiced_statut) === "2") {
|
||||
alert(" La session est déjà facturée ")
|
||||
} else {
|
||||
setmyinscript_status("0")
|
||||
submenu_add_one_participant()
|
||||
}*/
|
||||
|
||||
|
||||
if (selected_session_invoiced_statut === "1") {
|
||||
const response = window.confirm("Cette session est déjà en cours de facturation. Toute modification peut avoir un impact. Souhaitez-vous continuer ?");
|
||||
if (!response) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (selected_session_invoiced_statut === "2") {
|
||||
const response = window.confirm("Cette session est déjà entièrement facturée. Toute modification peut avoir un impact. Souhaitez-vous continuer ?");
|
||||
if (!response) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setmyinscript_status("0")
|
||||
submenu_add_one_participant()
|
||||
|
||||
setmyinscript_status("0")
|
||||
submenu_add_one_participant()
|
||||
|
||||
}}
|
||||
|
||||
|
|
@ -26442,7 +26436,7 @@ const DisplayPartnerSession = (props) => {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
submenu_import_participant()
|
||||
|
||||
}
|
||||
|
||||
else if (selected_session_invoiced_statut === "2") {
|
||||
|
|
@ -26450,9 +26444,11 @@ const DisplayPartnerSession = (props) => {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
submenu_import_participant()
|
||||
|
||||
}
|
||||
|
||||
submenu_import_participant()
|
||||
|
||||
}}
|
||||
|
||||
|
||||
|
|
@ -26468,23 +26464,13 @@ const DisplayPartnerSession = (props) => {
|
|||
onClick={(event) => {
|
||||
|
||||
setp_one_civilite_part("neutre");
|
||||
|
||||
/* if (String(selected_session_invoiced_statut) === "1") {
|
||||
alert(" La session est en cours de facturation ")
|
||||
} else if (String(selected_session_invoiced_statut) === "2") {
|
||||
alert(" La session est déjà facturée ")
|
||||
} else {
|
||||
setmyinscript_status("1");
|
||||
submenu_add_one_participant()
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
if (selected_session_invoiced_statut === "1") {
|
||||
const response = window.confirm("Cette session est déjà en cours de facturation. Toute modification peut avoir un impact. Souhaitez-vous continuer ?");
|
||||
if (!response) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
else if (selected_session_invoiced_statut === "2") {
|
||||
|
|
@ -26492,10 +26478,10 @@ const DisplayPartnerSession = (props) => {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
setmyinscript_status("1");
|
||||
submenu_add_one_participant()
|
||||
setmyinscript_status("1");
|
||||
submenu_add_one_participant()
|
||||
|
||||
}}
|
||||
|
||||
|
|
|
|||
|
|
@ -3774,6 +3774,99 @@ const Notes_Evaluation = (props) => {
|
|||
{ "id": "", "label": "", "value": "" },
|
||||
]
|
||||
|
||||
const [participant_file_note, setparticipant_file_note] = useState();
|
||||
const hiddenFileInput_notes = React.useRef(null);
|
||||
|
||||
function submenu_import_note_participant() {
|
||||
setparticipant_file_note();
|
||||
setliste_participants_note_file_change_api();
|
||||
hiddenFileInput_notes.current.click();
|
||||
}
|
||||
|
||||
const [liste_participants_note_file_change_api, setliste_participants_note_file_change_api] = useState();
|
||||
const [liste_participants_note_file_change_result, setliste_participants_note_file_change_result] = useState();
|
||||
const [liste_participants_note_file_change_message, setliste_participants_note_file_change_message] = useState();
|
||||
const liste_participants_note_file_change = event => {
|
||||
const fileUploaded = event.target.files[0];
|
||||
let file_size = event.target.files[0].size;
|
||||
let file_type = event.target.files[0].type;
|
||||
|
||||
//console.log("file_size = ",file_size," file_type = ",file_type);
|
||||
if (file_size > 10000000) {
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message("Le fichier ne doit pas dépasser un 1 Méga octets");
|
||||
setalert_type("error");
|
||||
return;
|
||||
}
|
||||
|
||||
setparticipant_file_note(event.target.files[0].name);
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append('File', fileUploaded);
|
||||
//formData.append('token', 'K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA');
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
|
||||
formData.append("token", stored_cookie);
|
||||
formData.append("evaluation_id", selected_id);
|
||||
formData.append("max_note", p_detail_max_note);
|
||||
formData.append("type_notation", p_detail_type_notation);
|
||||
|
||||
setLoading(true);
|
||||
|
||||
fetch(
|
||||
process.env.REACT_APP_API_URL + "myclass/api/Import_Evaluation_Notes_mass/",
|
||||
{
|
||||
method: 'POST',
|
||||
body: formData,
|
||||
}
|
||||
)
|
||||
.then((response) => response.json())
|
||||
.then((result) => {
|
||||
if (String(result['status']) === String("true")) {
|
||||
setLoading(false);
|
||||
//console.log('Success:', result['message']);
|
||||
setliste_participants_note_file_change_result(result['message']);
|
||||
setliste_participants_note_file_change_api("true");
|
||||
|
||||
if (selected_id && String(selected_id).length > 5) {
|
||||
Getall_Evaluation_Participant_List(selected_id);
|
||||
}
|
||||
|
||||
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(result['message']);
|
||||
setalert_type("success");
|
||||
|
||||
|
||||
|
||||
} else if (String(result['status']) === String("Err_Connexion")) {
|
||||
setLoading(false);
|
||||
// alert('Erreur: ' + result['message']);
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(result['message']);
|
||||
setalert_type("error");
|
||||
history.push("/Connexion");
|
||||
}
|
||||
|
||||
else {
|
||||
setLoading(false);
|
||||
setliste_participants_note_file_change_message(result['message']);
|
||||
setliste_participants_note_file_change_api("false");
|
||||
// alert(result['message']);
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(result['message']);
|
||||
setalert_type("error");
|
||||
}
|
||||
|
||||
})
|
||||
.catch((error) => {
|
||||
setLoading(false);
|
||||
console.error('Error:', error);
|
||||
setliste_participants_note_file_change_api("false");
|
||||
alert(" Impossible d'importer les notes");
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
|
|
@ -4557,7 +4650,7 @@ const Notes_Evaluation = (props) => {
|
|||
}}
|
||||
>
|
||||
<DataGrid
|
||||
// checkboxSelection
|
||||
// checkboxSelection
|
||||
onSelectionModelChange={(newSelectionModel) => {
|
||||
setselectionModel_evalutions(newSelectionModel);
|
||||
/*if (newSelectionModel.length === 1)
|
||||
|
|
@ -6118,9 +6211,19 @@ const Notes_Evaluation = (props) => {
|
|||
|
||||
<Button className="bton_emarge" onClick={(event) => {
|
||||
Export_evaluation_note_exel();
|
||||
}}>Export excel</Button><br />
|
||||
}}>Export excel</Button>
|
||||
|
||||
<Button className="bton_emarge" onClick={(event) => {
|
||||
submenu_import_note_participant();
|
||||
}}>Import csv</Button><br />
|
||||
|
||||
<input type="file"
|
||||
accept=".csv"
|
||||
ref={hiddenFileInput_notes}
|
||||
style={{ display: 'none' }}
|
||||
name="liste_sessions_file"
|
||||
onChange={liste_participants_note_file_change}
|
||||
/>
|
||||
|
||||
</div>}
|
||||
<div style={{ height: 650, width: '100%', paddingRight: '5px' }}>
|
||||
|
|
@ -6440,6 +6543,8 @@ const Notes_Evaluation = (props) => {
|
|||
|
||||
</div>}
|
||||
|
||||
|
||||
|
||||
<div className="div_row"> </div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7046,7 +7046,7 @@ const Partner_Commande = (props) => {
|
|||
aria-labelledby="draggable-dialog-title"
|
||||
>
|
||||
|
||||
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> {Dialog_1_message} - tt</DialogTitle>
|
||||
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> {Dialog_1_message} </DialogTitle>
|
||||
<DialogContent>
|
||||
|
||||
<div className="session_caract_Dialog" > <b>Client </b>
|
||||
|
|
|
|||
Loading…
Reference in New Issue