17/04/2026 -19h
parent
1135985bc2
commit
67fa423e57
|
|
@ -106,7 +106,7 @@ function App() {
|
|||
|
||||
const Intranet_Client_Account = lazy(() => import("./pages/intranet_client_account"));
|
||||
|
||||
|
||||
|
||||
|
||||
const Account = lazy(() => import("./pages/account"));
|
||||
const TestUrl = lazy(() => import("./pages/testurl"));
|
||||
|
|
|
|||
|
|
@ -100,7 +100,8 @@ const AddClassManual = (props) => {
|
|||
const [inputs, setInputs] = useState({});
|
||||
|
||||
|
||||
const [is_ftion_initiale, setis_ftion_initiale] = useState("0");
|
||||
const [is_ftion_initiale, setis_ftion_initiale] = useState(props.class_is_ftion_initiale);
|
||||
|
||||
|
||||
const [mypublished, setmypublished] = useState("0");
|
||||
const [mypublished_label, setmypublished_label] = useState("-");
|
||||
|
|
@ -7433,10 +7434,13 @@ const AddClassManual = (props) => {
|
|||
{String(props.formation_initiale) !== "1" &&
|
||||
<div className="div_row" style={{ "border": "None", "marginLeft": '10px' }} ref={myRef}>
|
||||
<Button variant="outlined" onClick={submenu_detail_formation} className="detail_class_submenu" id='detail_formation' name='detail_formation'>Détail Formation</Button>
|
||||
<Button variant="outlined" onClick={submenu_unite_enseignement} className="detail_class_submenu" id='unite_enseignement' name='unite_enseignement'>Unite Enseign. </Button>
|
||||
<Button variant="outlined" onClick={submenu_unite_enseignement} className="detail_class_submenu" id='unite_enseignement' name='unite_enseignement'> Modules </Button>
|
||||
{String(props.mytrainingclass.ref).trim() !== "" && <Button variant="outlined" onClick={submenu_piece_jointe}
|
||||
className="detail_class_submenu" id='piece_jointe' name='piece_jointe'>Pièces Jointes </Button>}
|
||||
|
||||
{String(props.mytrainingclass.ref).trim() !== "" && <Button variant="outlined" onClick={submenu_statistiques} className="detail_class_submenu" id='statistiques' name='statistiques'>Statistiques </Button>}
|
||||
{String(props.mytrainingclass.ref).trim() !== "" && <Button variant="outlined" onClick={submenu_finance} className="detail_class_submenu" id='finance' name='finance'>Finance </Button>}
|
||||
|
||||
{String(props.mytrainingclass.ref).trim() !== "" &&
|
||||
<Button variant="outlined" onClick={submenu_documents} className="detail_class_submenu" id='documents' name='documents'>Documents </Button>}
|
||||
|
||||
|
|
@ -8459,7 +8463,7 @@ const AddClassManual = (props) => {
|
|||
</div>
|
||||
|
||||
</div>}
|
||||
|
||||
|
||||
|
||||
{New_Option_is_Ftion_Initiale && New_Option_is_Ftion_Initiale.length > 0 &&
|
||||
<div className="training_caract"> <Autocomplete
|
||||
|
|
@ -8468,7 +8472,7 @@ const AddClassManual = (props) => {
|
|||
id="is_ftion_initiale"
|
||||
className="disabled_style"
|
||||
options={New_Option_is_Ftion_Initiale}
|
||||
value={New_Option_is_Ftion_Initiale.filter((data) => (data).value === String(is_ftion_initiale))[0].label}
|
||||
value={New_Option_is_Ftion_Initiale.filter((data) => (data).value === is_ftion_initiale)[0].label}
|
||||
disabled={!Boolean(props.check_user_acces_right("formation", "write"))}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
|
|
|
|||
|
|
@ -7710,7 +7710,7 @@ const Apprenant = (props) => {
|
|||
/>
|
||||
</div>}
|
||||
|
||||
<div className="session_caract_Dialog" > <b> Type apprenant </b>
|
||||
<div className="session_caract_Dialog" > Type apprenant
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
id="combo-box-demo"
|
||||
|
|
@ -7734,7 +7734,7 @@ const Apprenant = (props) => {
|
|||
|
||||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > <b> Mode Financement </b>
|
||||
<div className="session_caract_Dialog" > Mode Financement
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
id="combo-box-demo"
|
||||
|
|
|
|||
|
|
@ -6179,6 +6179,62 @@ const Conseil_Classe = (props) => {
|
|||
setequipe_data_changed("1");
|
||||
}
|
||||
|
||||
const handleEventChange = (arg) => {
|
||||
|
||||
//console.log("arg.event._def.extendedProps= ", arg.event._def.extendedProps);
|
||||
|
||||
var local_selected_sequence_id = ""
|
||||
|
||||
var new_start_date = moment(arg.event.start).format();
|
||||
var new_end_date = moment(arg.event.end).format();
|
||||
|
||||
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("_id", selected_id);
|
||||
form.append("jury_soutenance_id", arg.event.extendedProps.jury_soutenance_id);
|
||||
form.append("event_start", new_start_date);
|
||||
form.append("event_end", new_end_date);
|
||||
form.append("agenda_id", arg.event.extendedProps._id);
|
||||
|
||||
// console.log(" form == ", form);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Apprenant_To_Jury/";
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
//console.log(" In Update_One_Sequence_Session res.data.status = " + res.data.status);
|
||||
//console.log(" In Update_One_Sequence_Session res.data.message r_class = " + res.data.message);
|
||||
|
||||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
|
||||
Get_Jury_List_Apprenant_Seance(res.data.agenda_id, res.data.soutenance_id);
|
||||
Get_List_Agenda_Events_For_Given_User(selected_id);
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(res.data.message);
|
||||
setalert_type("error");
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
|
||||
|
||||
setLoading(false);
|
||||
//console.warn('UpdateStagiaireData : Not good man :( Update_One_Sequence_Session = ' + error);
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de mettre à jour la soutenance");
|
||||
setalert_type("error");
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="jurys">
|
||||
|
|
@ -11366,6 +11422,8 @@ const Conseil_Classe = (props) => {
|
|||
eventContent={renderEventContent}
|
||||
eventClick={handleEventClick}
|
||||
eventColor='#378006'
|
||||
|
||||
eventChange={handleEventChange}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -22824,7 +22824,7 @@ const DisplayPartnerPromotion_ARG = (props) => {
|
|||
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div className="session_caract"><b> Code Promo </b><br />
|
||||
|
|
|
|||
|
|
@ -23994,17 +23994,7 @@ const DisplayPartnerSession = (props) => {
|
|||
display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', width: '100%',
|
||||
paddingLeft: '10px', flexWrap: 'wrap'
|
||||
}}>
|
||||
<div className="session_caract"> Création automatique compte ENT <br />
|
||||
<Checkbox
|
||||
disabled={!edit_session_form}
|
||||
checked={ent_account_automatic}
|
||||
onChange={(event) => {
|
||||
setent_account_automatic(event.target.checked);
|
||||
}
|
||||
}
|
||||
inputProps={{ 'aria-label': 'controlled' }}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract"> Création automatique compte LMS <br />
|
||||
<Checkbox
|
||||
|
|
@ -24787,7 +24777,7 @@ const DisplayPartnerSession = (props) => {
|
|||
display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', width: '100%',
|
||||
paddingLeft: '10px', flexWrap: 'wrap'
|
||||
}}>
|
||||
<div className="session_caract"> Création automatique compte ENT <br />
|
||||
{/*<div className="session_caract"> Création automatique compte ENT <br />
|
||||
<Checkbox
|
||||
checked={ent_account_automatic}
|
||||
onChange={(event) => {
|
||||
|
|
@ -24796,7 +24786,7 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
inputProps={{ 'aria-label': 'controlled' }}
|
||||
/>
|
||||
</div>
|
||||
</div>*/}
|
||||
|
||||
<div className="session_caract"> Création automatique compte LMS <br />
|
||||
<Checkbox
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -2164,7 +2164,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
//GetAllClass();
|
||||
GetAllClass_new();
|
||||
|
||||
|
||||
|
||||
if (props.class_internal_url && props.class_external_code &&
|
||||
String(props.class_internal_url).length > 3 && String(props.class_external_code).length > 3) {
|
||||
|
||||
|
|
@ -3036,7 +3036,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
|
||||
{updatetraining && <div>
|
||||
|
||||
<div className='detail_training'>
|
||||
<div className='detail_training'>
|
||||
<TrainingForm mytrainingclass={{
|
||||
'ref': reftrainingtoupdate, 'class_external_code': externalcodetraining_toupdate,
|
||||
'class_id': classidtrainingtoupdate, 'class_internal_url': props.class_internal_url
|
||||
|
|
@ -3597,6 +3597,9 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
onRowDoubleClick={(newSelectionModel) => {
|
||||
setgridline_id(newSelectionModel.row.id);
|
||||
setselected_class_is_ftion_initiale(newSelectionModel.row.is_ftion_initiale);
|
||||
if (newSelectionModel.row.is_ftion_initiale !== "1")
|
||||
setselected_class_is_ftion_initiale("0")
|
||||
|
||||
Closecreatetraining();
|
||||
closeTrainingForm();
|
||||
|
||||
|
|
|
|||
|
|
@ -529,7 +529,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
setalert_type("error");
|
||||
|
||||
}
|
||||
|
||||
|
||||
}).catch((error) => {
|
||||
console.warn('Not good man :( Getall_Parter_Unite_Enseignement = ', error);
|
||||
setGetall_Parter_Unite_Enseignement_api("false");
|
||||
|
|
@ -2290,7 +2290,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
{/*** Fin Dialog ajout PLANIF_LINE ue */}
|
||||
|
||||
|
||||
<h3 style={{ fontFamily: 'DM Sans' }}> Gestion des Unités d'enseignement </h3>
|
||||
<h3 style={{ fontFamily: 'DM Sans' }}> Gestion des Unités d'enseignement </h3>
|
||||
<div className="div_row">
|
||||
<div className="titre1"> Utilisez les filtres !</div>
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
|
|
@ -2707,7 +2707,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
<Button variant="outlined" onClick={submenu_add_one_UE}
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Ajout 1 UE
|
||||
id='menu_import_participant' name='menu_import_participant'>Ajout 1 Module
|
||||
<IoAddCircleOutline style={{ "fontSize": "x-large", "color": "green" }} />
|
||||
</Button>
|
||||
</div>
|
||||
|
|
@ -3385,9 +3385,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
readonly: 1,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }',
|
||||
|
|
@ -3427,9 +3425,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }'
|
||||
|
|
@ -3471,9 +3467,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }'
|
||||
|
|
@ -3509,9 +3503,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }',
|
||||
|
|
@ -3556,9 +3548,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }',
|
||||
|
|
@ -3595,9 +3585,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }',
|
||||
|
|
@ -4302,9 +4290,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
readonly: 1,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }',
|
||||
|
|
@ -4344,9 +4330,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }'
|
||||
|
|
@ -4387,9 +4371,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }'
|
||||
|
|
@ -4425,9 +4407,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }',
|
||||
|
|
@ -4471,9 +4451,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }',
|
||||
|
|
@ -4488,7 +4466,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
<div style={{ width: '100%', float: 'left' }}>
|
||||
|
||||
<div className="Grid_2_col_sub_colone_header">
|
||||
Méthode Pédagogique
|
||||
Méthode Pédagogique zzz
|
||||
</div>
|
||||
|
||||
<div style={{ width: '100%', paddingRight: "5px", fontFamily: 'DM Sans', fontSize: '14px', paddingLeft: '10px', marginTop: '10px' }}>
|
||||
|
|
@ -4510,9 +4488,6 @@ const DisplayPartnerUnite_Enseignement = (props) => {
|
|||
height: 300,
|
||||
menubar: false,
|
||||
plugins: [
|
||||
'advlist autolink lists link image charmap print preview anchor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime media table paste code help wordcount'
|
||||
],
|
||||
|
||||
content_style: 'body { font-family:DM Sans,sans-serif; font-size:14px; }',
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -2044,6 +2044,7 @@ const Jury = (props) => {
|
|||
setalert_type("success");
|
||||
|
||||
settab_selected_apprenant([]);
|
||||
Dialog_Jury_Apprenant_handleClose_buton();
|
||||
}
|
||||
else {
|
||||
setAdd_Apprenant_To_Jury_api("false");
|
||||
|
|
@ -4410,6 +4411,64 @@ const Jury = (props) => {
|
|||
{ "id": "", "label": "", "value": "" },
|
||||
]
|
||||
|
||||
const handleEventChange = (arg) => {
|
||||
|
||||
//console.log("arg.event._def.extendedProps= ", arg.event._def.extendedProps);
|
||||
|
||||
var local_selected_sequence_id = ""
|
||||
|
||||
var new_start_date = moment(arg.event.start).format();
|
||||
var new_end_date = moment(arg.event.end).format();
|
||||
|
||||
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("_id", selected_id);
|
||||
form.append("jury_soutenance_id", arg.event.extendedProps.jury_soutenance_id);
|
||||
form.append("event_start", new_start_date);
|
||||
form.append("event_end", new_end_date);
|
||||
form.append("agenda_id", arg.event.extendedProps._id);
|
||||
|
||||
// console.log(" form == ", form);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Apprenant_To_Jury/";
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
//console.log(" In Update_One_Sequence_Session res.data.status = " + res.data.status);
|
||||
//console.log(" In Update_One_Sequence_Session res.data.message r_class = " + res.data.message);
|
||||
|
||||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
|
||||
Get_Jury_List_Apprenant_Seance(res.data.agenda_id, res.data.soutenance_id);
|
||||
Get_List_Agenda_Events_For_Given_User(selected_id);
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(res.data.message);
|
||||
setalert_type("error");
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
|
||||
|
||||
setLoading(false);
|
||||
//console.warn('UpdateStagiaireData : Not good man :( Update_One_Sequence_Session = ' + error);
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de mettre à jour la soutenance");
|
||||
setalert_type("error");
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div className="jurys">
|
||||
|
|
@ -8349,6 +8408,8 @@ const Jury = (props) => {
|
|||
eventContent={renderEventContent}
|
||||
eventClick={handleEventClick}
|
||||
eventColor='#378006'
|
||||
|
||||
eventChange={handleEventChange}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ import { FcSearch } from "react-icons/fc";
|
|||
import { FcViewDetails, FcDisapprove, FcInfo } from "react-icons/fc";
|
||||
import Module_Jury_Admission_Detail_Examen from "./Module_Jury_Admission_Detail_Examen";
|
||||
import { FaBullseye } from "react-icons/fa";
|
||||
import { AssignmentReturned } from "@mui/icons-material";
|
||||
|
||||
function PaperComponent(props) {
|
||||
return (
|
||||
|
|
@ -112,7 +113,7 @@ const useStyles = makeStyles((theme) => ({
|
|||
color: 'gray',
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
|
||||
const Jurys_Admission = (props) => {
|
||||
registerLocale('fr', fr);
|
||||
|
|
@ -969,6 +970,9 @@ const Jurys_Admission = (props) => {
|
|||
setalert_message(res.data.message);
|
||||
setalert_type("success");
|
||||
|
||||
setselectionModel_columns_jury_seance([]);
|
||||
setactionmass_jury_seance("")
|
||||
|
||||
}
|
||||
else {
|
||||
setDelete_Given_Jury_Seance_api("false");
|
||||
|
|
@ -983,11 +987,67 @@ const Jurys_Admission = (props) => {
|
|||
setLoading(false);
|
||||
console.warn('Delete_Given_Jury_Seance : Not good man :( mysearchtext = ' + error);
|
||||
setDelete_Given_Jury_Seance_api("false");
|
||||
alert(" Impossible de supprimer la Soutenance ");
|
||||
// alert(" Impossible de supprimer la Soutenance ");
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de supprimer la Soutenance ");
|
||||
setalert_type("error");
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const [Delete_Many_Jury_Seance_api, setDelete_Many_Jury_Seance_api] = useState();
|
||||
const [Delete_Many_Jury_Seance_message, setDelete_Many_Jury_Seance_message] = useState();
|
||||
const [Delete_Many_Jury_Seance_result, setDelete_Many_Jury_Seance_result] = useState();
|
||||
function Delete_Many_Jury_Seance(local_tab_jury_soutenance_ids) {
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("jury_id", selected_id);
|
||||
form.append("tab_jury_soutenance_ids", local_tab_jury_soutenance_ids);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_Many_Jury_Seance/";
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
//console.log(" In Delete_Many_Jury_Seance res.data.status = " + res.data.status);
|
||||
//console.log(" In Delete_Many_Jury_Seance res.data.message r_class = " + res.data.message);
|
||||
|
||||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
setDelete_Many_Jury_Seance_api("true");
|
||||
setDelete_Many_Jury_Seance_result(res.data.message);
|
||||
|
||||
Get_List_Agenda_Events_For_Given_User(selected_id);
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(res.data.message);
|
||||
setalert_type("success");
|
||||
setselectionModel_columns_jury_seance([]);
|
||||
setactionmass_jury_seance("")
|
||||
|
||||
}
|
||||
else {
|
||||
setDelete_Many_Jury_Seance_api("false");
|
||||
setDelete_Many_Jury_Seance_message(res.data.message);
|
||||
// alert(res.data.message);
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(res.data.message);
|
||||
setalert_type("error");
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
setLoading(false);
|
||||
console.warn('Delete_Many_Jury_Seance : Not good man :( mysearchtext = ' + error);
|
||||
setDelete_Many_Jury_Seance_api("false");
|
||||
|
||||
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message("Impossible de supprimer ls soutenances ");
|
||||
setalert_type("error");
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
function GetSelectedRows_Jury_Membres_Ids() {
|
||||
|
||||
|
|
@ -1153,26 +1213,39 @@ const Jurys_Admission = (props) => {
|
|||
|
||||
const [actionmass_jury_seance, setactionmass_jury_seance] = useState();
|
||||
|
||||
const func_actionmass_jury_seance = (event) => {
|
||||
const value = event.target.value;
|
||||
function func_actionmass_jury_seance() {
|
||||
const value = actionmass_jury_seance;
|
||||
|
||||
|
||||
if (String(value) === "supprimer") {
|
||||
actionmass_jury_seance(value);
|
||||
|
||||
var tab_tmp = []
|
||||
setactionmass_jury_seance(value);
|
||||
for (var i = 0; i < selectionModel_columns_jury_seance.length; i++) {
|
||||
var myid = parseInt(String(selectionModel_columns_jury_seance[i]));
|
||||
var line = JSON.parse(selectionModel_columns_jury_seance[myid]);
|
||||
|
||||
tab_tmp.push(mysy_events[line]['jury_soutenance_id']);
|
||||
|
||||
}
|
||||
|
||||
// console.log(" ## tab_tmp = ", tab_tmp);
|
||||
Delete_Many_Jury_Seance(tab_tmp)
|
||||
|
||||
}
|
||||
else if (String(value) === "convocation_apprenant") {
|
||||
actionmass_jury_seance(value);
|
||||
setactionmass_jury_seance(value);
|
||||
}
|
||||
else {
|
||||
actionmass_jury_seance();
|
||||
setactionmass_jury_seance();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const [actionmass_jury_membre, setactionmass_jury_membre] = useState();
|
||||
|
||||
const func_actionmass_jury_membre = (event) => {
|
||||
const value = event.target.value;
|
||||
function func_actionmass_jury_membre() {
|
||||
const value = actionmass_jury_seance;
|
||||
|
||||
|
||||
if (String(value) === "supprimer") {
|
||||
|
|
@ -1413,8 +1486,8 @@ const Jurys_Admission = (props) => {
|
|||
|
||||
if (String(res.data.status) === "true") {
|
||||
//console.log(" In GetCurrentSession res.data.status = " + res.data.status);
|
||||
console.log(" In GetCurrentSession res.data.message r_class = " + res.data.message);
|
||||
console.log(" In GetCurrentSession res.data.message len = " + String(res.data.message).length);
|
||||
// console.log(" In GetCurrentSession res.data.message r_class = " + res.data.message);
|
||||
///console.log(" In GetCurrentSession res.data.message len = " + String(res.data.message).length);
|
||||
|
||||
setLoading(false);
|
||||
setGetCurrentSession_api("true");
|
||||
|
|
@ -2033,6 +2106,7 @@ const Jurys_Admission = (props) => {
|
|||
setalert_type("success");
|
||||
|
||||
settab_selected_apprenant([]);
|
||||
Dialog_Jury_Apprenant_handleClose_buton();
|
||||
}
|
||||
else {
|
||||
setAdd_Apprenant_To_Jury_api("false");
|
||||
|
|
@ -2106,6 +2180,8 @@ const Jurys_Admission = (props) => {
|
|||
}
|
||||
|
||||
async function submenu_planning() {
|
||||
setactionmass_jury_seance("");
|
||||
setselectionModel_columns_jury_seance([]);
|
||||
await sleep(5);
|
||||
setsubmenu("planning");
|
||||
inactive_active_menu_header("planning");
|
||||
|
|
@ -3095,7 +3171,7 @@ const Jurys_Admission = (props) => {
|
|||
|
||||
setStartDate(arg.event.start);
|
||||
setendDate(arg.event.end);
|
||||
setDialog_1_open(true);
|
||||
// setDialog_1_open(true);
|
||||
}
|
||||
|
||||
const [Dialog_1_message, setDialog_1_message] = React.useState(false);
|
||||
|
|
@ -4396,6 +4472,65 @@ const Jurys_Admission = (props) => {
|
|||
]
|
||||
|
||||
|
||||
const handleEventChange = (arg) => {
|
||||
|
||||
//console.log("arg.event._def.extendedProps= ", arg.event._def.extendedProps);
|
||||
|
||||
var local_selected_sequence_id = ""
|
||||
|
||||
var new_start_date = moment(arg.event.start).format();
|
||||
var new_end_date = moment(arg.event.end).format();
|
||||
|
||||
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("_id", selected_id);
|
||||
form.append("jury_soutenance_id", arg.event.extendedProps.jury_soutenance_id);
|
||||
form.append("event_start", new_start_date);
|
||||
form.append("event_end", new_end_date);
|
||||
form.append("agenda_id", arg.event.extendedProps._id);
|
||||
|
||||
// console.log(" form == ", form);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Apprenant_To_Jury/";
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
//console.log(" In Update_One_Sequence_Session res.data.status = " + res.data.status);
|
||||
//console.log(" In Update_One_Sequence_Session res.data.message r_class = " + res.data.message);
|
||||
|
||||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
|
||||
Get_Jury_List_Apprenant_Seance(res.data.agenda_id, res.data.soutenance_id);
|
||||
Get_List_Agenda_Events_For_Given_User(selected_id);
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(res.data.message);
|
||||
setalert_type("error");
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
|
||||
|
||||
setLoading(false);
|
||||
//console.warn('UpdateStagiaireData : Not good man :( Update_One_Sequence_Session = ' + error);
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de mettre à jour la soutenance");
|
||||
setalert_type("error");
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div className="jurys_admission">
|
||||
{isLoading && <div className="loader-container">
|
||||
|
|
@ -5237,8 +5372,8 @@ const Jurys_Admission = (props) => {
|
|||
id="event_dialog_start"
|
||||
selected={startDate}
|
||||
onChange={(date) => {
|
||||
if (String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "")
|
||||
return setStartDate(date);
|
||||
// if (String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "")
|
||||
return setStartDate(date);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5267,8 +5402,8 @@ const Jurys_Admission = (props) => {
|
|||
selected={endDate}
|
||||
|
||||
onChange={(date) => {
|
||||
if (String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "")
|
||||
return setendDate(date);
|
||||
// if (String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "")
|
||||
return setendDate(date);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -6322,10 +6457,10 @@ const Jurys_Admission = (props) => {
|
|||
|
||||
|
||||
"& .MuiDataGrid-columnHeaders": {
|
||||
backgroundColor: "#dfe8f2",
|
||||
color: "#0a2a4d",
|
||||
fontSize: '14px',
|
||||
fontFamily:'DM Sans',
|
||||
backgroundColor: "#dfe8f2",
|
||||
color: "#0a2a4d",
|
||||
fontSize: '14px',
|
||||
fontFamily: 'DM Sans',
|
||||
},
|
||||
|
||||
'& .line--statut--selected': {
|
||||
|
|
@ -6406,7 +6541,7 @@ const Jurys_Admission = (props) => {
|
|||
setselectionModel_columns_jury_membre([]);
|
||||
setactionmass_jury_membre_val("");
|
||||
|
||||
// Get_List_UE_From_Session_Id(newSelectionModel.row.session_id);
|
||||
// Get_List_UE_From_Session_Id(newSelectionModel.row.session_id);
|
||||
|
||||
setselected_id(newSelectionModel.row._id);
|
||||
setgridline_id(newSelectionModel.row.id);
|
||||
|
|
@ -7657,10 +7792,10 @@ const Jurys_Admission = (props) => {
|
|||
},
|
||||
|
||||
"& .MuiDataGrid-columnHeaders": {
|
||||
backgroundColor: "#dfe8f2",
|
||||
color: "#0a2a4d",
|
||||
fontSize: '14px',
|
||||
fontFamily:'DM Sans',
|
||||
backgroundColor: "#dfe8f2",
|
||||
color: "#0a2a4d",
|
||||
fontSize: '14px',
|
||||
fontFamily: 'DM Sans',
|
||||
},
|
||||
|
||||
'& .line--statut--selected': {
|
||||
|
|
@ -8078,8 +8213,8 @@ const Jurys_Admission = (props) => {
|
|||
|
||||
<div className="session_data">
|
||||
<div style={{ "border": "None" }}>
|
||||
<nav style={{ "border": "None", "fontSize": "18px", padding: '10px', fontFamily: "DM Sans", textAlign: 'center' }}> Planning de soutenances </nav>
|
||||
|
||||
<nav style={{ "border": "None", "fontSize": "18px", padding: '10px', fontFamily: "DM Sans", textAlign: 'center' }}> Planning de soutenances </nav>
|
||||
|
||||
<FullCalendar
|
||||
locales={allLocales}
|
||||
locale={'fr'}
|
||||
|
|
@ -8106,6 +8241,8 @@ const Jurys_Admission = (props) => {
|
|||
eventContent={renderEventContent}
|
||||
eventClick={handleEventClick}
|
||||
eventColor='#378006'
|
||||
|
||||
eventChange={handleEventChange}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -8304,7 +8441,7 @@ const Jurys_Admission = (props) => {
|
|||
/>
|
||||
|
||||
|
||||
{actionmass_jury_seance && String(actionmass_jury_seance) === "convocation_apprenant" && <nav className='block_en_mass_bton_action'>
|
||||
{selectionModel_columns_jury_seance.length >= 1 && actionmass_jury_seance && String(actionmass_jury_seance) === "convocation_apprenant" && <nav className='block_en_mass_bton_action'>
|
||||
<Button className="bton_enreg" style={{ "width": "90%" }} onClick={(event) => {
|
||||
settab_jury_convocation_membre_pieces_jointes_result([])
|
||||
setselected_jury_convocation_apprenant_id();
|
||||
|
|
@ -8320,7 +8457,7 @@ const Jurys_Admission = (props) => {
|
|||
|
||||
</nav>}
|
||||
|
||||
{actionmass_jury_seance && String(actionmass_jury_seance) === "supprimer" && <nav className='block_en_mass_bton_action'>
|
||||
{selectionModel_columns_jury_seance.length >= 1 && actionmass_jury_seance && String(actionmass_jury_seance) === "supprimer" && <nav className='block_en_mass_bton_action'>
|
||||
<Popup
|
||||
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
|
||||
|
||||
|
|
@ -8340,11 +8477,12 @@ const Jurys_Admission = (props) => {
|
|||
<div className="gest_header"> MySy Information </div>
|
||||
<div className="gest_content">
|
||||
{' '}
|
||||
{String(actionmass_ftion_val) === "supprimer" &&
|
||||
|
||||
{String(actionmass_jury_seance) === "supprimer" &&
|
||||
<font color="red"> Confirmer la suppression de {selectionModel_columns_jury_seance.length} Soutenance(s).
|
||||
</font>}
|
||||
|
||||
{String(actionmass_ftion_val) === "convocation_apprenant" &&
|
||||
{String(actionmass_jury_seance) === "convocation_apprenant" &&
|
||||
<font> Envoyer la convocation aux candidats
|
||||
</font>}
|
||||
|
||||
|
|
@ -8352,6 +8490,7 @@ const Jurys_Admission = (props) => {
|
|||
<div className="gest_actions">
|
||||
<div style={{ "width": "45%", "float": "left" }}>
|
||||
<button className="gest_bton_popup" onClick={(event) => {
|
||||
|
||||
func_actionmass_jury_seance();
|
||||
close();
|
||||
}}> Valider </button>
|
||||
|
|
@ -8359,7 +8498,7 @@ const Jurys_Admission = (props) => {
|
|||
</div>
|
||||
<div style={{ "width": "45%", "float": "right" }}>
|
||||
<button
|
||||
className="gest_bton_popup"
|
||||
className="gest_bton_popup_annuler"
|
||||
onClick={() => {
|
||||
//console.log('modal closed ');
|
||||
close();
|
||||
|
|
|
|||
|
|
@ -2363,7 +2363,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
<DialogTitle style={{ cursor: 'move', fontFamily: "DM Sans" }} id="draggable-dialog-title" > Inscrire </DialogTitle>
|
||||
<DialogContent className="DialogContent_width">
|
||||
|
||||
{New_Getall_TrainingSession_result && <div className="session_caract_Dialog"> <b> Promotion / Session</b>
|
||||
{New_Getall_TrainingSession_result && <div className="session_caract_Dialog"> <b> Promotion</b>
|
||||
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
|
|
@ -2425,7 +2425,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
}
|
||||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > <b> Type apprenant </b>
|
||||
<div className="session_caract_Dialog" > Type apprenant
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
id="combo-box-demo"
|
||||
|
|
@ -2449,7 +2449,7 @@ const Module_Session_Notes_Classement = (props) => {
|
|||
|
||||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > <b> Mode Financement </b>
|
||||
<div className="session_caract_Dialog" > Mode Financement
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
id="combo-box-demo"
|
||||
|
|
|
|||
|
|
@ -2305,7 +2305,11 @@ const Module_Session_Planification = (props) => {
|
|||
setLoading(false);
|
||||
console.warn('UpdateStagiaireData : Not good man :( Update_One_Sequence_Session = ' + error);
|
||||
setUpdate_One_Sequence_Session_api("false");
|
||||
alert(" Impossible de mettre à jour la séquence");
|
||||
// alert(" Impossible de mettre à jour la séquence");
|
||||
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de mettre à jour la séquence");
|
||||
setalert_type("error");
|
||||
})
|
||||
|
||||
|
||||
|
|
@ -7536,7 +7540,6 @@ const Module_Session_Planification = (props) => {
|
|||
</div>}
|
||||
|
||||
|
||||
|
||||
{display_view && String(display_view) === "planning" &&
|
||||
<div style={{ "border": "None" }}>
|
||||
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ const Notes_Evaluation = (props) => {
|
|||
return (
|
||||
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all" }}>
|
||||
{New_Getall_Partner_Type_Evalution_List_result && New_Getall_Partner_Type_Evalution_List_result.length > 0 && <nav>
|
||||
{New_Getall_Partner_Type_Evalution_List_result.filter((data) => (data)._id === String(cellValues.row.type_eval_id))[0].label}
|
||||
{New_Getall_Partner_Type_Evalution_List_result.filter((data) => (data)._id === String(cellValues.row.type_eval_id))[0].label}
|
||||
</nav>}
|
||||
|
||||
|
||||
|
|
@ -1679,7 +1679,7 @@ const Notes_Evaluation = (props) => {
|
|||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
//console.log(" In Get_List_UE_From_Session_Id res.data.status = " + res.data.status);
|
||||
console.log(" In Get_List_UE_From_Session_Id res.data.message r_class = " + res.data.message);
|
||||
//console.log(" In Get_List_UE_From_Session_Id res.data.message r_class = " + res.data.message);
|
||||
setGet_List_UE_From_Session_Id_api("true");
|
||||
setGet_List_UE_From_Session_Id_result(res.data.message);
|
||||
|
||||
|
|
@ -1814,6 +1814,8 @@ const Notes_Evaluation = (props) => {
|
|||
|
||||
if (new_data2.length > 0)
|
||||
setNew_Getall_Partner_Type_Evalution_List_result(new_data2);
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
setGetall_Partner_Type_Evalution_List_api("false");
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ import CalendarMonthIcon from '@mui/icons-material/CalendarMonth';
|
|||
import CoPresentIcon from '@mui/icons-material/CoPresent';
|
||||
import LocalOfferIcon from '@mui/icons-material/LocalOffer';
|
||||
import DisplayPartnerUnite_Enseignement from "./DisplayPartnerUnite_Enseignement";
|
||||
import DisplayPartner_Module_Formation from "./DisplayPartner_Module_Formation";
|
||||
import Partner_Domaine_Categorie_Metier from "./Partner_Domaine_Categorie_Metier";
|
||||
import Partner_Config_Ftion_Initiale from "./Partner_Config_Ftion_Initiale";
|
||||
import Partner_Admission_Process_Ftion_Initiale from "./Partner_Admission_Process_Ftion_Initiale";
|
||||
|
|
@ -167,7 +168,7 @@ import {
|
|||
chevronsRight,
|
||||
ShoppingBasket,
|
||||
HandCoins,
|
||||
WalletCards
|
||||
WalletCards
|
||||
} from "lucide-react";
|
||||
|
||||
import { Presentation, CalendarDays } from "lucide-react";
|
||||
|
|
@ -292,15 +293,15 @@ const menuData_Full = [
|
|||
label: "Factures", name: "Factures", icon: CreditCard, items_color: "#dbff75",
|
||||
hasChildren: true,
|
||||
children: [
|
||||
{ label: "Devis", name: "Devis", icon: WalletCards , items_color: "#dbff75", },
|
||||
{ label: "Factures & Avoirs", name: "Factures & Avoirs", icon: HandCoins , items_color: "#dbff75" },
|
||||
{ label: "Devis", name: "Devis", icon: WalletCards, items_color: "#dbff75", },
|
||||
{ label: "Factures & Avoirs", name: "Factures & Avoirs", icon: HandCoins, items_color: "#dbff75" },
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
{ label: "Prix Achat", name: "Prix Achat", icon: Tag, items_color: "#dbff75" },
|
||||
{ label: "Produits & serv.", name: "Produits & serv.", icon: Package, items_color: "#dbff75" },
|
||||
{ label: "Opportunités", name: "Opportunités", icon: ShoppingBasket , items_color: "#dbff75" },
|
||||
{ label: "Opportunités", name: "Opportunités", icon: ShoppingBasket, items_color: "#dbff75" },
|
||||
],
|
||||
},
|
||||
|
||||
|
|
@ -446,15 +447,15 @@ const menuData_Ftion_Initiale = [
|
|||
label: "Factures", name: "Factures", icon: CreditCard, items_color: "#dbff75",
|
||||
hasChildren: true,
|
||||
children: [
|
||||
{ label: "Devis", name: "Devis", icon: WalletCards , items_color: "#dbff75", },
|
||||
{ label: "Factures & Avoirs", name: "Factures & Avoirs", icon: HandCoins , items_color: "#dbff75" },
|
||||
{ label: "Devis", name: "Devis", icon: WalletCards, items_color: "#dbff75", },
|
||||
{ label: "Factures & Avoirs", name: "Factures & Avoirs", icon: HandCoins, items_color: "#dbff75" },
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
{ label: "Prix Achat", name: "Prix Achat", icon: Tag, items_color: "#dbff75" },
|
||||
{ label: "Produits & serv.", name: "Produits & serv.", icon: Package, items_color: "#dbff75" },
|
||||
{ label: "Opportunités", name: "Opportunités", icon: ShoppingBasket , items_color: "#dbff75" },
|
||||
{ label: "Opportunités", name: "Opportunités", icon: ShoppingBasket, items_color: "#dbff75" },
|
||||
],
|
||||
},
|
||||
|
||||
|
|
@ -588,15 +589,15 @@ const menuData_Ftion_Continue = [
|
|||
label: "Factures", name: "Factures", icon: CreditCard, items_color: "#dbff75",
|
||||
hasChildren: true,
|
||||
children: [
|
||||
{ label: "Devis", name: "Devis", icon: WalletCards , items_color: "#dbff75", },
|
||||
{ label: "Factures & Avoirs", name: "Factures & Avoirs", icon: HandCoins , items_color: "#dbff75" },
|
||||
{ label: "Devis", name: "Devis", icon: WalletCards, items_color: "#dbff75", },
|
||||
{ label: "Factures & Avoirs", name: "Factures & Avoirs", icon: HandCoins, items_color: "#dbff75" },
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
{ label: "Prix Achat", name: "Prix Achat", icon: Tag, items_color: "#dbff75" },
|
||||
{ label: "Produits & serv.", name: "Produits & serv.", icon: Package, items_color: "#dbff75" },
|
||||
{ label: "Opportunités", name: "Opportunités", icon: ShoppingBasket , items_color: "#dbff75" },
|
||||
{ label: "Opportunités", name: "Opportunités", icon: ShoppingBasket, items_color: "#dbff75" },
|
||||
],
|
||||
},
|
||||
|
||||
|
|
@ -703,7 +704,7 @@ const Partner = (props) => {
|
|||
DiplayPartner_Produits_Services();
|
||||
} else if (local_menu.toLocaleLowerCase() === "Opportunités".toLocaleLowerCase()) {
|
||||
Display_mes_opportunites_func();
|
||||
}else if (local_menu.toLocaleLowerCase() === "Sessions".toLocaleLowerCase()) {
|
||||
} else if (local_menu.toLocaleLowerCase() === "Sessions".toLocaleLowerCase()) {
|
||||
DiplaySessionList();
|
||||
// Update_Connexion_Context("mysy_last_menu_visited", String(local_menu));
|
||||
} else if (local_menu.toLocaleLowerCase() === "Promotions".toLocaleLowerCase()) {
|
||||
|
|
@ -722,7 +723,7 @@ const Partner = (props) => {
|
|||
}
|
||||
|
||||
else if (local_menu.toLocaleLowerCase() === "Modules".toLocaleLowerCase()) {
|
||||
DiplayPartner_UE();
|
||||
DiplayPartner_module_ftion();
|
||||
}
|
||||
else if (local_menu.toLocaleLowerCase() === "Caractéristiques".toLocaleLowerCase()) {
|
||||
DiplayPartner_Domaine_Categorie_Metier();
|
||||
|
|
@ -1211,7 +1212,7 @@ const Partner = (props) => {
|
|||
'mes_stagiaires', 'mes_employes', 'mon_materiel', 'config_document', 'factures_client', "setuplms", "config_technique",
|
||||
"config_champ_specific", "module_agenda", "config_session_steps", "config_jours_heures", "dashbord_formation",
|
||||
"dashbord_session", "mon_tableau_de_bord", "prix_achat", "mes_apprenants", "dashbord_ressources_humaines",
|
||||
"dashbord_inscriptions", "mes_salles", "mes_opportunites", "config_formulaires", "dashbord_factures", "mes_ue",
|
||||
"dashbord_inscriptions", "mes_salles", "mes_opportunites", "config_formulaires", "dashbord_factures", "mes_ue", "mes_module_ftion",
|
||||
"domaine_categorie_metier", "config_formation_initiale", "note_evaluation", "groupe_apprenant",
|
||||
"part_produit_service", "config_document_super_admin", "tous_mes_document", "equipe_team",
|
||||
"jurys", "mes_promotions", "autre_rh", "conseil_classe", "admission_process", "admission_session",
|
||||
|
|
@ -1293,7 +1294,7 @@ const Partner = (props) => {
|
|||
'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd', 'my_ue', 'domaine_categorie_metier',
|
||||
'config_formation_initiale', 'note_evaluation', 'groupe_apprenant', 'part_produit_service', 'monactivite', 'mon_tableau_de_bord',
|
||||
'tous_mes_document', 'equipe_team', 'conseil_class', 'autre_rh', 'jury', 'conseil_classe', 'internal_email', "admission_process",
|
||||
"admission_session", 'config_plateforme_partners', 'administration_pedagogique', 'competence_pedagogique']
|
||||
"admission_session", 'config_plateforme_partners', 'administration_pedagogique', 'competence_pedagogique', 'mes_module_ftion']
|
||||
for (let i = 0; i < list_menu_header_names.length; i++) {
|
||||
if (document.getElementsByName(String(list_menu_header_names[i])) && document.getElementsByName(String(list_menu_header_names[i]))[0]) {
|
||||
document.getElementsByName(String(list_menu_header_names[i]))[0].style.fontWeight = "400";
|
||||
|
|
@ -1791,6 +1792,24 @@ const Partner = (props) => {
|
|||
}
|
||||
|
||||
|
||||
function DiplayPartner_module_ftion(event) {
|
||||
var security_retval = check_user_acces_right("formation", "read");
|
||||
|
||||
if (security_retval === 1) {
|
||||
setmenu("mes_module_ftion");
|
||||
setapiexcelimportmessage();
|
||||
setformation_file_name();
|
||||
Update_Connexion_Context("mysy_last_menu_visited", "/Partner/mes_module_ftion");
|
||||
history.push("/Partner/mes_module_ftion");
|
||||
document.body.style.backgroundColor = "#ffffff";
|
||||
|
||||
inactive_active_menu_header("mes_module_ftion");
|
||||
} else {
|
||||
Dialog_1_handle_acces_insuffisant("Vos droits ne sont pas suffisants pour accéder à cette fonctionnalité");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function DiplayPartner_Domaine_Categorie_Metier(event) {
|
||||
var security_retval = check_user_acces_right("formation", "read");
|
||||
|
||||
|
|
@ -3088,7 +3107,7 @@ const Partner = (props) => {
|
|||
{/*section.bloc_title && <nav className="section_bloc_titre"> {section.bloc_title} </nav>*/}
|
||||
|
||||
<div className="menu-item-wrap" onClick={(e) => {
|
||||
|
||||
setopen_menu_compte(false);
|
||||
if (section.bloc_title === "Compte") {
|
||||
setopen_menu_compte(!open_menu_compte);
|
||||
}
|
||||
|
|
@ -3201,9 +3220,6 @@ const Partner = (props) => {
|
|||
</span>}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -3265,7 +3281,7 @@ const Partner = (props) => {
|
|||
{/*section.bloc_title && <nav className="section_bloc_titre"> {section.bloc_title} </nav>*/}
|
||||
|
||||
<div className="menu-item-wrap" onClick={(e) => {
|
||||
|
||||
setopen_menu_compte(false);
|
||||
if (section.bloc_title === "Compte") {
|
||||
setopen_menu_compte(!open_menu_compte);
|
||||
}
|
||||
|
|
@ -3455,7 +3471,7 @@ const Partner = (props) => {
|
|||
{/*section.bloc_title && <nav className="section_bloc_titre"> {section.bloc_title} </nav>*/}
|
||||
|
||||
<div className="menu-item-wrap" onClick={(e) => {
|
||||
|
||||
setopen_menu_compte(false);
|
||||
if (section.bloc_title === "Compte") {
|
||||
setopen_menu_compte(!open_menu_compte);
|
||||
}
|
||||
|
|
@ -3465,6 +3481,7 @@ const Partner = (props) => {
|
|||
}
|
||||
|
||||
if (section.bloc_title === "Ftion. Initiale") {
|
||||
|
||||
setopen_menu_f_initiale(!open_menu_f_initiale);
|
||||
}
|
||||
|
||||
|
|
@ -3746,7 +3763,7 @@ const Partner = (props) => {
|
|||
<div className="div_droite">
|
||||
|
||||
<PartnerTranings ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id}
|
||||
class_external_code={orderid} class_internal_url={packs} formation_initiale={""}
|
||||
class_external_code={orderid} class_internal_url={packs} formation_initiale={"0"}
|
||||
check_user_acces_right={check_user_acces_right}
|
||||
partner_lms_virtualhost_url={partner_lms_virtualhost_url}
|
||||
class_is_ftion_initiale={"0"} />
|
||||
|
|
@ -3797,6 +3814,15 @@ const Partner = (props) => {
|
|||
</div>
|
||||
}
|
||||
|
||||
|
||||
{String(menu) === "mes_module_ftion" &&
|
||||
<div className="div_droite">
|
||||
|
||||
<DisplayPartner_Module_Formation ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id}
|
||||
class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "domaine_categorie_metier" &&
|
||||
<div className="div_droite">
|
||||
|
||||
|
|
@ -3826,8 +3852,12 @@ const Partner = (props) => {
|
|||
{String(menu) === "admission_process" &&
|
||||
<div className="div_droite">
|
||||
|
||||
<Partner_Admission_Process_Ftion_Initiale ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id}
|
||||
class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale}
|
||||
<Partner_Admission_Process_Ftion_Initiale ispending={partnerstatus}
|
||||
currentpack={partnerPackService}
|
||||
conntected_employee_id={conntected_employee_id}
|
||||
object_key={orderid}
|
||||
submenu={packs}
|
||||
formation_initiale={formation_initiale}
|
||||
check_user_acces_right={check_user_acces_right} />
|
||||
</div>
|
||||
}
|
||||
|
|
@ -4220,6 +4250,7 @@ const Partner = (props) => {
|
|||
|
||||
{String(menu) === "mes_stagiaires" && <div className="div_droite">
|
||||
|
||||
|
||||
<DisplayPartnerStagiaires conntected_employee_id={conntected_employee_id} object_key={orderid} subdata={packs}
|
||||
read_access={check_user_acces_right("stagiaire", "read")} write_access={check_user_acces_right("stagiaire", "write")}
|
||||
formation_initiale={formation_initiale}
|
||||
|
|
@ -4466,6 +4497,14 @@ const Partner = (props) => {
|
|||
<hr className="my_hr" />
|
||||
|
||||
|
||||
<Tooltip className="tooltip_css" id="tooltip_id_811" />
|
||||
<a data-tooltip-id="tooltip_id_811" data-tooltip-html="MODULE ENSEIGNEMENT">
|
||||
{String(menu) !== "mes_module_ftion" && <div className="sousmenu" onClick={DiplayPartner_module_ftion} > <FcOrgUnit className="icone_menu" /> </div>}
|
||||
{String(menu) === "mes_module_ftion" && <div className="sousmenu_selected" onClick={DiplayPartner_module_ftion} ><FcOrgUnit className="icone_menu" /> </div>}
|
||||
</a>
|
||||
<hr className="my_hr" />
|
||||
|
||||
|
||||
<Tooltip className="tooltip_css" id="tooltip_id_82" />
|
||||
<a data-tooltip-id="tooltip_id_82" data-tooltip-html="CARACTERISTIQUES">
|
||||
{String(menu) !== "domaine_categorie_metier" && <div className="sousmenu" onClick={DiplayPartner_Domaine_Categorie_Metier} > <FcEngineering className="icone_menu" /> </div>}
|
||||
|
|
@ -4772,6 +4811,14 @@ const Partner = (props) => {
|
|||
}
|
||||
|
||||
|
||||
{String(menu) === "mes_module_ftion" &&
|
||||
<div className="div_droite div_droite_ralonge">
|
||||
<DisplayPartner_Module_Formation ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id}
|
||||
class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
{String(menu) === "domaine_categorie_metier" &&
|
||||
<div className="div_droite div_droite_ralonge">
|
||||
<Partner_Domaine_Categorie_Metier ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id}
|
||||
|
|
@ -4799,7 +4846,6 @@ const Partner = (props) => {
|
|||
|
||||
{String(menu) === "admission_process" &&
|
||||
<div className="div_droite div_droite_ralonge">
|
||||
|
||||
<Partner_Admission_Process_Ftion_Initiale ispending={partnerstatus} currentpack={partnerPackService}
|
||||
conntected_employee_id={conntected_employee_id}
|
||||
object_key={orderid}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ function PaperComponent(props) {
|
|||
<Paper {...props} />
|
||||
</Draggable>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
|
||||
|
|
@ -561,7 +561,11 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
setLoading(false);
|
||||
console.warn('Not good man :( Getall_Parter_config_type_evaluation = ', error);
|
||||
setGetall_Parter_config_type_evaluation_api("false");
|
||||
alert(" Impossible de recuperer la liste des points de configuration");
|
||||
// alert(" Impossible de recuperer la liste des points de configuration");
|
||||
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de recuperer la liste des points de configuration");
|
||||
setalert_type("error");
|
||||
//setmyApimyApiMessage("")
|
||||
})
|
||||
}
|
||||
|
|
@ -635,13 +639,96 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
setLoading(false);
|
||||
console.warn('Not good man :( Getall_Parter_admission_process = ', error);
|
||||
setGetall_Parter_admission_process_api("false");
|
||||
alert(" Impossible de recuperer la liste des processus d'admission");
|
||||
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de recuperer la liste des processus d'admission");
|
||||
setalert_type("error");
|
||||
|
||||
//setmyApimyApiMessage("")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
const [Getall_Given_admission_process_api, setGetall_Given_admission_process_api] = useState();
|
||||
const [Getall_Given_admission_process_message, setGetall_Given_admission_process_message] = useState();
|
||||
const [Getall_Given_admission_process_result, setGetall_Given_admission_process_result] = useState([]);
|
||||
function Getall_Given_admission_process(local_selection_id) {
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("_id", local_selection_id);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Given_Admission_Setup/";
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
setLoading(false);
|
||||
|
||||
if (String(res.data.status) === String("true")) {
|
||||
//console.log(" In Getall_Given_admission_process res.data.status = " + res.data.status);
|
||||
// console.log(" In Getall_Given_admission_process res.data.message r_class = " + res.data.message);
|
||||
setGetall_Given_admission_process_api("true");
|
||||
setGetall_Given_admission_process_result(res.data.message);
|
||||
//setRows(res.data.message);
|
||||
|
||||
var tmp = JSON.parse(res.data.message)
|
||||
|
||||
|
||||
// setgridline_process_admin_id(newSelectionModel.row.id);
|
||||
setp_detail_process_admin_code(tmp.code);
|
||||
setp_detail_process_admin_comment(tmp.comment);
|
||||
setp_detail_process_admin_description(tmp.description);
|
||||
setselected_admission_process_id(tmp._id);
|
||||
setselected_id(tmp._id);
|
||||
|
||||
|
||||
setadd_process_admin("");
|
||||
setdisplay_detail_process_admin("1");
|
||||
|
||||
setprocess_admin_edit_mode("");
|
||||
setprocess_admin_changed("");
|
||||
|
||||
Disable_process_admin_DetailFields();
|
||||
Getall_Parter_admission_Etape(tmp._id);
|
||||
Getall_Parter_admission_Document(tmp._id);
|
||||
|
||||
Getall_Parter_admission_Critere(tmp._id)
|
||||
|
||||
submenu_detail_admiss_process();
|
||||
|
||||
if (document.getElementById('myRef')) {
|
||||
var divh = document.getElementById('myRef').offsetTop;
|
||||
window.scrollTo({
|
||||
top: divh,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
setGetall_Given_admission_process_api("false");
|
||||
setGetall_Given_admission_process_message(res.data.message);
|
||||
// alert(res.data.message)
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(res.data.message);
|
||||
setalert_type("error");
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
setLoading(false);
|
||||
console.warn('Not good man :( Getall_Given_admission_process = ', error);
|
||||
setGetall_Given_admission_process_api("false");
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de récupérer les données du processus sélectionné. ");
|
||||
setalert_type("error");
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const [New_Getall_Parter_admission_Etape_result, setNew_Getall_Parter_admission_Etape_result] = useState([]);
|
||||
|
||||
const [Getall_Parter_admission_Etape_api, setGetall_Parter_admission_Etape_api] = useState();
|
||||
|
|
@ -943,14 +1030,25 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
|
||||
Getall_Parter_admission_process();
|
||||
|
||||
if (document.getElementById('myRef_head')) {
|
||||
var divh = document.getElementById('myRef_head').offsetTop;
|
||||
window.scrollTo({
|
||||
top: divh,
|
||||
behavior: "smooth",
|
||||
});
|
||||
console.log(" ### props.object_key = ", props.object_key)
|
||||
console.log(" ### props.object_key = ", props.object_key)
|
||||
if (props.object_key && String(props.object_key).length > 2) {
|
||||
|
||||
Getall_Given_admission_process(props.object_key);
|
||||
|
||||
} else {
|
||||
if (document.getElementById('myRef_head')) {
|
||||
var divh = document.getElementById('myRef_head').offsetTop;
|
||||
window.scrollTo({
|
||||
top: divh,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
|
||||
submenu_detail_admiss_process();
|
||||
}
|
||||
submenu_detail_admiss_process();
|
||||
|
||||
|
||||
//submenu_candidat();
|
||||
|
||||
|
||||
|
|
@ -2286,7 +2384,7 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
inputBackground: 'grey',
|
||||
borderColor: 'darkgrey',
|
||||
borderRadius: '8px',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
width: '100px'
|
||||
}}
|
||||
name="detail_grp_color"
|
||||
|
|
@ -2682,15 +2780,15 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
|
||||
'& .line--statut--selected': {
|
||||
backgroundColor: '#e9f7f1',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--pair': {
|
||||
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--impair': {
|
||||
backgroundColor: '#FFFFFF',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
|
||||
}}
|
||||
|
|
@ -2981,15 +3079,15 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
|
||||
'& .line--statut--selected': {
|
||||
backgroundColor: '#e9f7f1',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--pair': {
|
||||
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--impair': {
|
||||
backgroundColor: '#FFFFFF',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
|
||||
}}
|
||||
|
|
@ -3295,15 +3393,15 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
|
||||
'& .line--statut--selected': {
|
||||
backgroundColor: '#e9f7f1',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--pair': {
|
||||
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--impair': {
|
||||
backgroundColor: '#FFFFFF',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
|
||||
}}
|
||||
|
|
@ -3455,15 +3553,15 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
|
||||
'& .line--statut--selected': {
|
||||
backgroundColor: '#e9f7f1',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--pair': {
|
||||
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--impair': {
|
||||
backgroundColor: '#FFFFFF',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
|
||||
}}
|
||||
|
|
@ -3649,15 +3747,15 @@ const Partner_Admission_Process_Ftion_Initiale = (props) => {
|
|||
|
||||
'& .line--statut--selected': {
|
||||
backgroundColor: '#e9f7f1',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--pair': {
|
||||
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--impair': {
|
||||
backgroundColor: '#FFFFFF',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
|
|||
import Link from '@mui/material/Link';
|
||||
import { PiDotsThree } from "react-icons/pi";
|
||||
import Module_Alert_Confirmation from "./Module_Alert_Confirmation";
|
||||
import Autocomplete from '@mui/material/Autocomplete';
|
||||
|
||||
const Partner_Config_Ftion_Initiale = (props) => {
|
||||
|
||||
|
|
@ -36,7 +37,7 @@ const Partner_Config_Ftion_Initiale = (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)}
|
||||
{value.length > 50 && (
|
||||
|
|
@ -66,6 +67,7 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
const columns_type_evaluation = [
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'base_authorized_type_evaluation_id', headerName: 'base_authorized_type_evaluation_id', hide: true },
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: 'code', headerName: 'Code', fminWidth: 150, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
{ field: 'nom', headerName: 'Nom', minWidth: 150, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
|
|
@ -435,6 +437,87 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
})
|
||||
}
|
||||
|
||||
const [New_Getall_Default_FI_Authorized_type_evaluation_result, setNew_Getall_Default_FI_Authorized_type_evaluation_result] = useState([]);
|
||||
|
||||
const [Getall_Default_FI_Authorized_type_evaluation_api, setGetall_Default_FI_Authorized_type_evaluation_api] = useState();
|
||||
const [Getall_Default_FI_Authorized_type_evaluation_message, setGetall_Default_FI_Authorized_type_evaluation_message] = useState();
|
||||
const [Getall_Default_FI_Authorized_type_evaluation_result, setGetall_Default_FI_Authorized_type_evaluation_result] = useState([]);
|
||||
function Getall_Default_FI_Authorized_type_evaluation(event) {
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_FI_base_authorized_type_evaluation/";
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
setLoading(false);
|
||||
|
||||
if (String(res.data.status) === String("true")) {
|
||||
//console.log(" In Getall_Default_FI_Authorized_type_evaluation res.data.status = " + res.data.status);
|
||||
console.log(" In Getall_Default_FI_Authorized_type_evaluation res.data.message r_class = " + res.data.message);
|
||||
setGetall_Default_FI_Authorized_type_evaluation_api("true");
|
||||
setGetall_Default_FI_Authorized_type_evaluation_result(res.data.message);
|
||||
//setRows(res.data.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 local_code = JSON.parse(x).code;
|
||||
|
||||
|
||||
//---
|
||||
var node = {
|
||||
"_id": local_id,
|
||||
"id": localid,
|
||||
"label": local_code,
|
||||
"code": local_code,
|
||||
|
||||
};
|
||||
new_data2.push(node);
|
||||
});
|
||||
|
||||
//---
|
||||
var node = {
|
||||
"_id": "",
|
||||
"id": "",
|
||||
"label": "",
|
||||
"code": "",
|
||||
|
||||
};
|
||||
new_data2.push(node);
|
||||
|
||||
if (new_data2.length > 0)
|
||||
setNew_Getall_Default_FI_Authorized_type_evaluation_result(new_data2);
|
||||
|
||||
}
|
||||
else {
|
||||
setGetall_Default_FI_Authorized_type_evaluation_api("false");
|
||||
setGetall_Default_FI_Authorized_type_evaluation_message(res.data.message);
|
||||
// alert(res.data.message)
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(res.data.message);
|
||||
setalert_type("error");
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
setLoading(false);
|
||||
console.warn('Not good man :( Getall_Default_FI_Authorized_type_evaluation = ', error);
|
||||
setGetall_Default_FI_Authorized_type_evaluation_api("false");
|
||||
// alert(" Impossible de recuperer la default_FI_Authorized_type_evaluation");
|
||||
setdisplay_alert_mysy("1");
|
||||
setalert_message(" Impossible de recuperer la default_FI_Authorized_type_evaluation");
|
||||
setalert_type("error");
|
||||
//setmyApimyApiMessage("")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const [New_Getall_Parter_referentiel_padagogique_result, setNew_Getall_Parter_referentiel_padagogique_result] = useState([]);
|
||||
|
||||
|
|
@ -557,8 +640,6 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (document.getElementById(current_menu)) {
|
||||
|
|
@ -582,6 +663,7 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
useEffect(() => {
|
||||
|
||||
Getall_Parter_config_type_evaluation();
|
||||
Getall_Default_FI_Authorized_type_evaluation();
|
||||
|
||||
if (document.getElementById('myRef_head')) {
|
||||
var divh = document.getElementById('myRef_head').offsetTop;
|
||||
|
|
@ -599,6 +681,8 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
const [p_one_detail_config_nom, setp_one_detail_config_nom] = useState("");
|
||||
const [p_one_detail_config_description, setp_one_detail_config_description] = useState("");
|
||||
|
||||
const [p_detail_type_eval_base_authorized_type_evaluation_id, setp_detail_type_eval_base_authorized_type_evaluation_id] = useState("");
|
||||
|
||||
|
||||
const [p_detail_config_code, setp_detail_config_code] = useState("");
|
||||
const [p_detail_config_nom, setp_detail_config_nom] = useState("");
|
||||
|
|
@ -791,16 +875,24 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
function Annule_Add_Type_Eval_DetailFields() {
|
||||
|
||||
var line = JSON.parse(Getall_Parter_config_type_evaluation_result[selected_type_eval_id]);
|
||||
|
||||
setdisplay_detail_type_eval("");
|
||||
setadd_config_type_eval("");
|
||||
|
||||
setp_detail_config_code(line.code);
|
||||
setp_detail_config_nom(line.nom);
|
||||
setp_detail_config_description(line.description);
|
||||
|
||||
|
||||
if (selected_type_eval_id && selected_type_eval_id > 0) {
|
||||
|
||||
var line = JSON.parse(Getall_Parter_config_type_evaluation_result[selected_type_eval_id]);
|
||||
|
||||
setdisplay_detail_type_eval("");
|
||||
setadd_config_type_eval("");
|
||||
|
||||
setp_detail_config_code(line.code);
|
||||
setp_detail_config_nom(line.nom);
|
||||
setp_detail_config_description(line.description);
|
||||
|
||||
} else {
|
||||
|
||||
setdisplay_detail_type_eval("");
|
||||
setadd_config_type_eval("")
|
||||
}
|
||||
Disable_Config_Type_Eval_DetailFields();
|
||||
|
||||
if (document.getElementById('myRef_head')) {
|
||||
|
|
@ -813,6 +905,7 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
}
|
||||
|
||||
|
||||
function Annule_Add_Ref_Ped_DetailFields() {
|
||||
|
||||
var line = JSON.parse(Getall_Parter_referentiel_padagogique_result[selected_ref_ped_id]);
|
||||
|
|
@ -851,7 +944,7 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("code", p_one_detail_config_code);
|
||||
form.append("base_authorized_type_evaluation_id", p_one_detail_config_code);
|
||||
form.append("nom", p_one_detail_config_nom);
|
||||
form.append("description", p_one_detail_config_description);
|
||||
|
||||
|
|
@ -1002,7 +1095,8 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("code", p_detail_config_code);
|
||||
// form.append("code", p_detail_config_code);
|
||||
form.append("base_authorized_type_evaluation_id", p_detail_config_code);
|
||||
form.append("nom", p_detail_config_nom);
|
||||
form.append("description", p_detail_config_description);
|
||||
form.append("_id", selected_type_eval_id);
|
||||
|
|
@ -1244,15 +1338,15 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
'& .line--statut--selected': {
|
||||
backgroundColor: '#e9f7f1',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--pair': {
|
||||
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--impair': {
|
||||
backgroundColor: '#FFFFFF',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
|
||||
}}
|
||||
|
|
@ -1284,6 +1378,7 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
code: JSON.parse(item).code,
|
||||
nom: JSON.parse(item).nom,
|
||||
description: JSON.parse(item).description,
|
||||
base_authorized_type_evaluation_id: JSON.parse(item).base_authorized_type_evaluation_id,
|
||||
}
|
||||
))}
|
||||
|
||||
|
|
@ -1297,6 +1392,7 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
setp_detail_config_nom(newSelectionModel.row.nom);
|
||||
setp_detail_config_description(newSelectionModel.row.description);
|
||||
setselected_type_eval_id(newSelectionModel.row._id);
|
||||
setp_detail_type_eval_base_authorized_type_evaluation_id(newSelectionModel.row.base_authorized_type_evaluation_id);
|
||||
|
||||
setadd_config_type_eval("");
|
||||
setdisplay_detail_type_eval("1");
|
||||
|
|
@ -1350,7 +1446,13 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
<div className="div_row" style={{ "border": "None" }}>
|
||||
|
||||
<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
<Button variant="outlined" onClick={add_one_eval}
|
||||
<Button variant="outlined"
|
||||
onClick={(e) => {
|
||||
Getall_Default_FI_Authorized_type_evaluation();
|
||||
add_one_eval();
|
||||
|
||||
}}
|
||||
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Ajout 1 Type Eval
|
||||
<IoAddCircleOutline style={{ "fontSize": "x-large", "color": "green" }} />
|
||||
|
|
@ -1368,8 +1470,11 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
{String(config_type_eval_edit_mode) !== "1" && <div>
|
||||
|
||||
<div className="session_caract"> Code <br />
|
||||
<TextField
|
||||
<div className="session_caract"> Code 11<br />
|
||||
|
||||
|
||||
|
||||
{New_Getall_Default_FI_Authorized_type_evaluation_result && New_Getall_Default_FI_Authorized_type_evaluation_result.length > 0 && <TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="detail_config_code"
|
||||
|
|
@ -1380,9 +1485,10 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
}}
|
||||
disabled={false}
|
||||
className="disabled_style"
|
||||
value={p_detail_config_code}
|
||||
|
||||
/>
|
||||
value={New_Getall_Default_FI_Authorized_type_evaluation_result.filter((data) => (data)._id === String(p_detail_type_eval_base_authorized_type_evaluation_id))[0].label}
|
||||
|
||||
/>}
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -1429,25 +1535,32 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
{String(config_type_eval_edit_mode) === "1" && <div>
|
||||
|
||||
<div className="session_caract"> Code <br />
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
<div className="session_caract"> Code 02 <br />
|
||||
|
||||
|
||||
{New_Getall_Default_FI_Authorized_type_evaluation_result && New_Getall_Default_FI_Authorized_type_evaluation_result.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="detail_config_code"
|
||||
id="detail_config_code"
|
||||
|
||||
InputLabelProps={{
|
||||
shrink: true,
|
||||
}}
|
||||
disabled={false}
|
||||
className="disabled_style"
|
||||
value={p_detail_config_code}
|
||||
onChange={(e) => {
|
||||
setp_detail_config_code(e.target.value);
|
||||
setconfig_type_eval_changed("1");
|
||||
value={New_Getall_Default_FI_Authorized_type_evaluation_result.filter((data) => (data)._id === String(p_detail_type_eval_base_authorized_type_evaluation_id))[0].label}
|
||||
options={New_Getall_Default_FI_Authorized_type_evaluation_result}
|
||||
onChange={(event, value) => {
|
||||
if (value && value._id) {
|
||||
setp_detail_config_code(value._id);
|
||||
}
|
||||
else {
|
||||
setp_detail_config_code("");
|
||||
}
|
||||
}}
|
||||
|
||||
/>
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -1517,7 +1630,7 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
</div>}
|
||||
|
||||
{String(config_type_eval_edit_mode) === "1" && <div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }} >
|
||||
<Button variant="contained" className="bton_annule" onClick={Annule_Ref_Ped_DetailFields}>Annuler
|
||||
<Button variant="contained" className="bton_annule" onClick={Annule_Add_Type_Eval_DetailFields}>Annuler
|
||||
</Button>
|
||||
</div>}
|
||||
</div>
|
||||
|
|
@ -1543,8 +1656,8 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
<div>
|
||||
|
||||
<div className="session_caract"> Code <br />
|
||||
<TextField
|
||||
<div className="session_caract"> Code d <br />
|
||||
{/* <TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="detail_config_code"
|
||||
|
|
@ -1561,7 +1674,30 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
}}
|
||||
|
||||
/>
|
||||
/>*/}
|
||||
|
||||
{New_Getall_Default_FI_Authorized_type_evaluation_result && New_Getall_Default_FI_Authorized_type_evaluation_result.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="event_dialog_admis_type"
|
||||
id="event_dialog_admis_type"
|
||||
className="disabled_style"
|
||||
value={New_Getall_Default_FI_Authorized_type_evaluation_result.filter((data) => (data)._id === String(p_one_detail_config_code))[0].label}
|
||||
options={New_Getall_Default_FI_Authorized_type_evaluation_result}
|
||||
onChange={(event, value) => {
|
||||
if (value && value._id) {
|
||||
setp_one_detail_config_code(value._id);
|
||||
}
|
||||
else {
|
||||
setp_one_detail_config_code("");
|
||||
}
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -1707,15 +1843,15 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
'& .line--statut--selected': {
|
||||
backgroundColor: '#e9f7f1',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--pair': {
|
||||
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
'& .line--statut--impair': {
|
||||
backgroundColor: '#FFFFFF',
|
||||
color: "#0a2a4d",
|
||||
color: "#0a2a4d",
|
||||
},
|
||||
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -5503,7 +5503,7 @@ const Partner_Facture = (props) => {
|
|||
|
||||
<div className="div_row" style={{ "width": "100%", }}>
|
||||
|
||||
<div className="session_caract" style={{ "textAlign": "left", "width": "50%", "height": "5rem", "float": "left" }}>Date Order
|
||||
<div className="session_caract" style={{ "textAlign": "left", "width": "50%", "height": "5rem", "float": "left" }}>Date Order <br/>
|
||||
|
||||
<DatePicker
|
||||
name="order_date"
|
||||
|
|
@ -10183,4 +10183,9 @@ width: 100%;
|
|||
border: unset;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.react-datepicker-wrapper{
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
`;
|
||||
|
|
@ -4804,7 +4804,7 @@ const Session_Admission_FI = (props) => {
|
|||
shrink: true,
|
||||
}}
|
||||
disabled={false}
|
||||
className="disabled_style enable_style"
|
||||
className="disabled_style enable_style disabled_style_left_text_with_visualiser_icone"
|
||||
|
||||
value={New_Getall_Admiss_Process_result.filter((data) => (data)._id === String(p_detail_process_inscription))[0].label}
|
||||
|
||||
|
|
@ -4815,7 +4815,7 @@ const Session_Admission_FI = (props) => {
|
|||
|
||||
if (p_detail_process_inscription && String(p_detail_process_inscription).length > 2) {
|
||||
window.open(
|
||||
process.env.REACT_APP_FRONT_URL + "Partner/affichage/" + String("xxx") + "/" + String('xxxx'),
|
||||
process.env.REACT_APP_FRONT_URL + "Partner/admission_process/" + String(p_detail_process_inscription),
|
||||
'_blank'
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue