24/04/26 - 19h
parent
584045cb71
commit
81f33d4875
|
|
@ -1093,6 +1093,7 @@ const Employes = (props) => {
|
|||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("archive", "0");
|
||||
form.append("is_ftion_initiale", "2");
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_class_Without_Scope_Action/";
|
||||
|
||||
|
|
|
|||
|
|
@ -730,6 +730,7 @@ const Intranet_Commande_Devis = (props) => {
|
|||
const stored_cookie = getCookie('tokenmysych');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("archive", "0");
|
||||
form.append("is_ftion_initiale", "2");
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_class/";
|
||||
|
||||
|
|
|
|||
|
|
@ -4170,6 +4170,7 @@ registerLocale('fr', fr);
|
|||
const stored_cookie = getCookie('tokenmysych');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("archive", "0");
|
||||
form.append("is_ftion_initiale", "2");
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_class/";
|
||||
setLoading(true);
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ const useStyles = makeStyles((theme) => ({
|
|||
color: 'gray',
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
const Module_Ent_Mes_Formations = (props) => {
|
||||
registerLocale('fr', fr);
|
||||
const classes = useStyles();
|
||||
|
|
@ -419,88 +419,93 @@ const Module_Ent_Mes_Formations = (props) => {
|
|||
const [Get_List_Ent_Formation_api, setGet_List_Ent_Formation_api] = useState();
|
||||
const [Get_List_Ent_Formation_message, setGet_List_Ent_Formation_message] = useState();
|
||||
const [Get_List_Ent_Formation_result, setGet_List_Ent_Formation_result] = useState();
|
||||
function Get_List_Ent_Formation(local_apprenant_id) {
|
||||
|
||||
var form = new FormData();
|
||||
const stored_cookie = getCookie('tokenmysych');
|
||||
|
||||
form.append("token", stored_cookie);
|
||||
form.append("apprenant_id", local_apprenant_id);
|
||||
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Ent_Student_List_Class/";
|
||||
async function Get_List_Ent_Formation(local_apprenant_id) {
|
||||
try {
|
||||
var form = new FormData();
|
||||
const stored_cookie = getCookie("tokenmysych");
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
//console.log(" In Get_List_Ent_Formation res.data.status = " + res.data.status);
|
||||
//console.log(" In Get_List_Ent_Formation res.data.message r_class = " + res.data.message);
|
||||
form.append("token", stored_cookie);
|
||||
form.append("apprenant_id", local_apprenant_id);
|
||||
|
||||
var myurl =
|
||||
process.env.REACT_APP_API_URL + "myclass/api/Get_Ent_Student_List_Class/";
|
||||
|
||||
setLoading(true);
|
||||
|
||||
const response = await fetch(myurl, {
|
||||
method: "POST",
|
||||
body: form,
|
||||
});
|
||||
|
||||
const res = await response.json();
|
||||
|
||||
setLoading(false);
|
||||
|
||||
if (String(res.data.status) === String("true")) {
|
||||
// console.log(" In Get_List_Ent_Formation res.status = " + res.status);
|
||||
// console.log(" In Get_List_Ent_Formation res.message = " + res.message);
|
||||
|
||||
if (String(res.status) === "true") {
|
||||
setGet_List_Ent_Formation_api("true");
|
||||
setGet_List_Ent_Formation_result(res.data.message);
|
||||
setGet_List_Ent_Formation_result(res.message);
|
||||
|
||||
var new_data2 = [];
|
||||
const new_data = res.data.message.map((x) => {
|
||||
|
||||
//---
|
||||
var localid = JSON.parse(x).id;
|
||||
var local_id = JSON.parse(x)._id;
|
||||
var external_code = JSON.parse(x).external_code;
|
||||
var title = JSON.parse(x).title;
|
||||
var objectif = JSON.parse(x).objectif;
|
||||
var programme = JSON.parse(x).programme;
|
||||
var prerequis = JSON.parse(x).prerequis;
|
||||
var description = JSON.parse(x).description;
|
||||
var associated_session_id = JSON.parse(x).session_id;
|
||||
var associated_inscription_id = JSON.parse(x).inscription_id;
|
||||
res.message.map((x) => {
|
||||
const parsed = typeof x === "string" ? JSON.parse(x) : x;
|
||||
|
||||
var session_code_session = JSON.parse(x).session_code_session;
|
||||
var session_date_debut = JSON.parse(x).session_date_debut;
|
||||
var session_date_fin = JSON.parse(x).session_date_fin;
|
||||
var localid = parsed.id;
|
||||
var local_id = parsed._id;
|
||||
var external_code = parsed.external_code;
|
||||
var title = parsed.title;
|
||||
var objectif = parsed.objectif;
|
||||
var programme = parsed.programme;
|
||||
var prerequis = parsed.prerequis;
|
||||
var description = parsed.description;
|
||||
var associated_session_id = parsed.session_id;
|
||||
var associated_inscription_id = parsed.inscription_id;
|
||||
var session_code_session = parsed.session_code_session;
|
||||
var session_date_debut = parsed.session_date_debut;
|
||||
var session_date_fin = parsed.session_date_fin;
|
||||
|
||||
|
||||
//---
|
||||
var node = {
|
||||
"_id": local_id,
|
||||
"id": localid,
|
||||
"label": external_code,
|
||||
"external_code": external_code,
|
||||
"title": title,
|
||||
"objectif": objectif,
|
||||
"programme": programme,
|
||||
"prerequis": prerequis,
|
||||
"description": description,
|
||||
"associated_session_id": associated_session_id,
|
||||
"associated_inscription_id": associated_inscription_id,
|
||||
"session_code_session": session_code_session,
|
||||
"session_date_debut": session_date_debut,
|
||||
"session_date_fin": session_date_fin,
|
||||
|
||||
_id: local_id,
|
||||
id: localid,
|
||||
label: external_code,
|
||||
external_code: external_code,
|
||||
title: title,
|
||||
objectif: objectif,
|
||||
programme: programme,
|
||||
prerequis: prerequis,
|
||||
description: description,
|
||||
associated_session_id: associated_session_id,
|
||||
associated_inscription_id: associated_inscription_id,
|
||||
session_code_session: session_code_session,
|
||||
session_date_debut: session_date_debut,
|
||||
session_date_fin: session_date_fin,
|
||||
};
|
||||
|
||||
new_data2.push(node);
|
||||
});
|
||||
|
||||
if (new_data2.length > 0)
|
||||
if (new_data2.length > 0) {
|
||||
setNew_Get_List_Ent_Formation_result(new_data2);
|
||||
}
|
||||
else if (String(res.data.status) === String("Err_Connexion")) {
|
||||
alert('Erreur: ' + res.data.message);
|
||||
}
|
||||
} else if (String(res.status) === "Err_Connexion") {
|
||||
alert("Erreur: " + res.message);
|
||||
history.push("/ent_student");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
setGet_List_Ent_Formation_api("false");
|
||||
setGet_List_Ent_Formation_message(res.data.message);
|
||||
alert('Erreur: ' + res.data.message);
|
||||
setGet_List_Ent_Formation_message(res.message);
|
||||
alert("Erreur: " + res.message);
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
} catch (error) {
|
||||
setLoading(false);
|
||||
console.warn('Not good man :( Get_List_Ent_Formation = ', error);
|
||||
console.warn("Not good man :( Get_List_Ent_Formation = ", error);
|
||||
setGet_List_Ent_Formation_api("false");
|
||||
alert('Erreur: Impossible de recuperer la liste des formation');
|
||||
})
|
||||
alert("Erreur: Impossible de recuperer la liste des formation");
|
||||
}
|
||||
}
|
||||
|
||||
const [Getall_Sequence_Of_Session_result_planning_view, setGetall_Sequence_Of_Session_result_planning_view] = useState([]);
|
||||
|
|
@ -2830,7 +2835,7 @@ const Module_Ent_Mes_Formations = (props) => {
|
|||
|
||||
|
||||
{String(submenu) === "absences" && Get_Given_Class_Data_result && Get_Given_Class_Data_result.length > 0 && <div className="div_row" >
|
||||
|
||||
|
||||
|
||||
<Module_ENT_Absence attendee_email={props.email_apprenant}
|
||||
apprenant_id={props.apprenant_id}
|
||||
|
|
|
|||
|
|
@ -4785,7 +4785,7 @@ const Module_Gestion_Stage = (props) => {
|
|||
//placeholder="Minimum 3 rows"
|
||||
style={{
|
||||
border: "1px solid gainsboro", width: '99%', padding: '2px',
|
||||
maxHeight: '15rem', height: '5rem', minHeight: '5rem', marginBottom: '3rem'
|
||||
maxHeight: '15rem', height: '10rem', minHeight: '10rem', marginBottom: '3rem'
|
||||
}}
|
||||
value={p_detail_stage_contrainte}
|
||||
onChange={(e) => {
|
||||
|
|
@ -4868,7 +4868,7 @@ const Module_Gestion_Stage = (props) => {
|
|||
//placeholder="Minimum 3 rows"
|
||||
style={{
|
||||
border: "1px solid gainsboro", width: '99%', padding: '2px',
|
||||
maxHeight: '15rem', height: '5rem', minHeight: '5rem', marginBottom: '3rem'
|
||||
maxHeight: '15rem', height: '10rem', minHeight: '10rem', marginBottom: '3rem'
|
||||
}}
|
||||
value={p_detail_stage_remuneration}
|
||||
onChange={(e) => {
|
||||
|
|
@ -5030,7 +5030,7 @@ const Module_Gestion_Stage = (props) => {
|
|||
</>}
|
||||
|
||||
{stage_submenu === "stage_suivi" && <>
|
||||
<div> stage_suivi </div>
|
||||
|
||||
|
||||
<div>
|
||||
<div className="div_row" style={{ "textAlign": "right", "marginTop": "0.5rem" }}>
|
||||
|
|
|
|||
|
|
@ -7965,6 +7965,7 @@ const [p_session_mode_animation_detail_organisation, setp_session_mode_animation
|
|||
form.append("token", stored_cookie);
|
||||
|
||||
form.append("archive", "0");
|
||||
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_class/";
|
||||
|
||||
|
|
|
|||
|
|
@ -799,6 +799,7 @@ const Partner_Commande = (props) => {
|
|||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("archive", "0");
|
||||
form.append("is_ftion_initiale", "2");
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_class/";
|
||||
|
||||
|
|
@ -7241,7 +7242,7 @@ const Partner_Commande = (props) => {
|
|||
|
||||
<div className="div_row" style={{ "width": "100%", }}>
|
||||
|
||||
<div className="session_caract" style={{ "textAlign": "left", "width": "50%", "height": "5rem", "float": "left" }}>Date cmd
|
||||
<div className="session_caract" style={{ "textAlign": "left", "width": "50%", "height": "5rem", "float": "left" }}>Date cmd <br/>
|
||||
|
||||
<DatePicker
|
||||
name="date_order"
|
||||
|
|
@ -9637,10 +9638,17 @@ const Partner_Commande = (props) => {
|
|||
</div>}
|
||||
</div>
|
||||
|
||||
|
||||
<style>{local_css}</style>
|
||||
</div >
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export default Partner_Commande;
|
||||
export default Partner_Commande;
|
||||
|
||||
|
||||
const local_css = `
|
||||
.react-datepicker-wrapper{
|
||||
width: 100%;
|
||||
}
|
||||
`;
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -203,7 +203,7 @@ registerLocale('fr', fr);
|
|||
var form = new FormData();
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
|
||||
form.append("is_ftion_initiale", "2");
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_partner_class/";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ function Student_Account_Ent() {
|
|||
|
||||
var form = new FormData();
|
||||
|
||||
|
||||
|
||||
const stored_cookie = getCookie('tokenmysych');
|
||||
form.append("token", stored_cookie);
|
||||
|
||||
|
|
|
|||
|
|
@ -1843,7 +1843,7 @@
|
|||
|
||||
.session_caract_Dialog {
|
||||
font-family: 'DM Sans';
|
||||
color: #0a2a4d;
|
||||
color: #0a2a4d;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
float: left;
|
||||
|
|
@ -2342,8 +2342,9 @@
|
|||
border: none;
|
||||
}
|
||||
|
||||
.datepicker_complement {
|
||||
.datepicker_complement {
|
||||
margin: 0px !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.datagridclass {
|
||||
|
|
@ -2402,10 +2403,10 @@
|
|||
}
|
||||
|
||||
|
||||
.css-1v4ccyo {
|
||||
.css-1v4ccyo {
|
||||
height: 3.5rem !important;
|
||||
font-size: small;
|
||||
color: #0a2a4d !important;
|
||||
color: #0a2a4d !important;
|
||||
}
|
||||
|
||||
option {
|
||||
|
|
@ -2500,8 +2501,8 @@
|
|||
}
|
||||
|
||||
.css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input {
|
||||
color: #0a2a4d !important;
|
||||
|
||||
color: #0a2a4d !important;
|
||||
|
||||
font-size: small !important;
|
||||
font-family: "DM Sans" !important;
|
||||
padding-left: 5px !important;
|
||||
|
|
|
|||
Loading…
Reference in New Issue