recette2
parent
211326c417
commit
aa3d40fff6
File diff suppressed because it is too large
Load Diff
|
@ -162,6 +162,7 @@ const Module_Session_Planification = (props) => {
|
|||
|
||||
{ field: 'session_id', headerName: 'session_id', width: 200, hide: true, flex: 1, minWidth: 150, maxWidth: 300 },
|
||||
{ field: 'sequence_title', headerName: 'Titre', minWidth: 200, flex: 1, hide: false, editable: false, resizable: true },
|
||||
{ field: 'grp_apprenant_code', headerName: 'Groupe', minWidth: 200, flex: 1, hide: false, editable: false, resizable: true },
|
||||
{ field: 'sequence_start', headerName: 'Debut', minWidth: 200, flex: 1, hide: false, editable: false },
|
||||
{ field: 'sequence_end', headerName: 'Fin', minWidth: 200, flex: 1, hide: false, editable: false },
|
||||
|
||||
|
@ -472,11 +473,14 @@ const Module_Session_Planification = (props) => {
|
|||
|
||||
|
||||
const renderEventContent = (eventInfo) => {
|
||||
//console.log(eventInfo);
|
||||
|
||||
|
||||
//console.log(eventInfo.event);
|
||||
return (
|
||||
<>
|
||||
<b>{eventInfo.timeText}</b><br />
|
||||
<i>{eventInfo.event.title}</i>
|
||||
<i>{eventInfo.event.title}</i><br />
|
||||
<i>{eventInfo.event.extendedProps.grp_code}</i>
|
||||
</>
|
||||
)
|
||||
};
|
||||
|
@ -1302,6 +1306,8 @@ const Module_Session_Planification = (props) => {
|
|||
var local_session_grp_apprenant_id = JSON.parse(x).grp_apprenant_id;
|
||||
|
||||
var local_session_ue_planif_line_id = JSON.parse(x).unite_enseignement_planif_id;
|
||||
var local_session_color = JSON.parse(x).grp_apprenant_color;
|
||||
var local_session_grp_code = JSON.parse(x).grp_apprenant_code;
|
||||
|
||||
|
||||
//---
|
||||
|
@ -1311,6 +1317,8 @@ const Module_Session_Planification = (props) => {
|
|||
"title": local_title,
|
||||
"start": local_start,
|
||||
"end": local_end,
|
||||
"grp_code": local_session_grp_code,
|
||||
"color": local_session_color,
|
||||
"local_agenda": local_agenda,
|
||||
"local_objectif": local_objectif,
|
||||
"local_comment": local_session_comment,
|
||||
|
@ -1318,6 +1326,7 @@ const Module_Session_Planification = (props) => {
|
|||
"local_ue_id": local_session_ue_id,
|
||||
"local_grp_apprenant_id": local_session_grp_apprenant_id,
|
||||
"local_ue_planif_line_id": local_session_ue_planif_line_id,
|
||||
|
||||
};
|
||||
new_data2.push(node);
|
||||
});
|
||||
|
@ -1892,8 +1901,6 @@ const Module_Session_Planification = (props) => {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
setDialog_DIALOG_AGENDA_open(true);
|
||||
|
||||
}
|
||||
|
@ -2531,6 +2538,7 @@ const Module_Session_Planification = (props) => {
|
|||
}
|
||||
|
||||
|
||||
const [default_h, setdefault_h] = useState('50rem');
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
|
@ -2545,6 +2553,12 @@ const Module_Session_Planification = (props) => {
|
|||
Getall_Class_List_UE();
|
||||
Getall_Partner_Groupe_Inscrit();
|
||||
|
||||
if (document.getElementById('menu_import_participant')) {
|
||||
setdefault_h(document.getElementById('menu_import_participant').offsetTop)
|
||||
|
||||
// console.log(" hh = ", document.getElementById('menu_import_participant').offsetTop);
|
||||
}
|
||||
|
||||
}, [])
|
||||
|
||||
const [SessionendDate, setSessionendDate] = useState(props.SessionendDate);
|
||||
|
@ -2682,8 +2696,8 @@ const Module_Session_Planification = (props) => {
|
|||
className: classes.paper, // Apply the paper style
|
||||
style: {
|
||||
overflowY: 'unset',
|
||||
position: 'absolute',
|
||||
//top: '5rem'
|
||||
//position: 'absolute',
|
||||
top: default_h
|
||||
},
|
||||
}}
|
||||
hideBackdrop={true}
|
||||
|
@ -2978,44 +2992,43 @@ const Module_Session_Planification = (props) => {
|
|||
|
||||
</div>}
|
||||
|
||||
zzz2
|
||||
|
||||
<div className="session_caract_Dialog" >
|
||||
|
||||
<nav style={{ "float": "left", "width": "30%", "paddingTop": "15px" }}> Type </nav>
|
||||
|
||||
|
||||
<nav style={{ "float": "right", "width": "65%" }}>
|
||||
{New_Option_Type_Event && New_Option_Type_Event.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="event_dialog_type"
|
||||
id="event_dialog_type"
|
||||
fullWidth
|
||||
options={New_Option_Type_Event}
|
||||
value={New_Option_Type_Event.filter((data) => (data).value === String(p_detail_event_type))[0].label}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_detail_event_type(value.value);
|
||||
|
||||
} else {
|
||||
setp_detail_event_type("");
|
||||
}
|
||||
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
{String(submenu_seq_dialog) !== "dialog_ressource" && <div>
|
||||
<div className="session_caract_Dialog" >
|
||||
|
||||
<nav style={{ "float": "left", "width": "30%", "paddingTop": "15px" }}> Type </nav>
|
||||
|
||||
|
||||
<nav style={{ "float": "right", "width": "65%" }}>
|
||||
{New_Option_Type_Event && New_Option_Type_Event.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="event_dialog_type"
|
||||
id="event_dialog_type"
|
||||
fullWidth
|
||||
options={New_Option_Type_Event}
|
||||
value={New_Option_Type_Event.filter((data) => (data).value === String(p_detail_event_type))[0].label}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_detail_event_type(value.value);
|
||||
|
||||
} else {
|
||||
setp_detail_event_type("");
|
||||
}
|
||||
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > Unité d'enseignement
|
||||
|
||||
|
||||
|
@ -3176,7 +3189,6 @@ const Module_Session_Planification = (props) => {
|
|||
selected={sequence_endDate}
|
||||
|
||||
onChange={(date) => {
|
||||
|
||||
return setsequence_endDate(date);
|
||||
}
|
||||
}
|
||||
|
@ -4215,8 +4227,8 @@ const Module_Session_Planification = (props) => {
|
|||
className: classes.paper, // Apply the paper style
|
||||
style: {
|
||||
overflowY: 'unset',
|
||||
position: 'absolute',
|
||||
//top: '5rem'
|
||||
//position: 'absolute',
|
||||
top: default_h
|
||||
},
|
||||
}}
|
||||
hideBackdrop={true}
|
||||
|
@ -4233,10 +4245,8 @@ const Module_Session_Planification = (props) => {
|
|||
<DialogContentText>
|
||||
{Dialog_DIALOG_AGENDA_message}
|
||||
</DialogContentText>
|
||||
zzz1
|
||||
|
||||
selected_sequence_id la = {selected_sequence_id} <br />
|
||||
submenu_seq_dialog = {submenu_seq_dialog} <br/>
|
||||
|
||||
|
||||
{<div className="session_caract_Dialog" style={{ textAlign: 'right' }} >
|
||||
|
||||
|
@ -4920,10 +4930,13 @@ const Module_Session_Planification = (props) => {
|
|||
<div className="div_row" style={{ "border": "None", paddingRight: '10px' }}>
|
||||
|
||||
|
||||
<div className="session_data">
|
||||
<div className="session_data" id='mysy_calendar' name="mysy_calendar">
|
||||
|
||||
|
||||
|
||||
<div style={{ "textAlign": "right", "float": "right", "width": "100%", "marginRight": '20px' }}>
|
||||
Affichage : <nav className="mode_affichage" onClick={func_display_planning_view}> <FcPlanner /> planning </nav>
|
||||
Affichage :
|
||||
<nav className="mode_affichage" onClick={func_display_planning_view}> <FcPlanner /> planning </nav>
|
||||
<nav className="mode_affichage" onClick={func_display_list_view}> <CiBoxList /> Liste </nav>
|
||||
</div>
|
||||
|
||||
|
@ -4977,6 +4990,10 @@ const Module_Session_Planification = (props) => {
|
|||
unite_enseignement_planif_id: JSON.parse(item).unite_enseignement_planif_id,
|
||||
type: JSON.parse(item).type,
|
||||
|
||||
grp_apprenant_code: JSON.parse(item).grp_apprenant_code,
|
||||
|
||||
|
||||
|
||||
}
|
||||
))}
|
||||
|
||||
|
@ -5154,7 +5171,7 @@ const Module_Session_Planification = (props) => {
|
|||
<h3> Affichage planning</h3>
|
||||
|
||||
|
||||
<div style={{ "width": "98%", "marginLeft": "5px", }}>
|
||||
<div style={{ "width": "98%", "marginLeft": "5px", }} >
|
||||
|
||||
<FullCalendar
|
||||
height={550}
|
||||
|
@ -5236,6 +5253,12 @@ const Module_Session_Planification = (props) => {
|
|||
|
||||
</div>
|
||||
|
||||
<div style={{ "textAlign": "right", "float": "right", "width": "100%", "marginRight": '20px' }}>
|
||||
Modèle :
|
||||
<nav className="mode_affichage" onClick={func_display_planning_view}> <FcPlanner /> Enregister </nav>
|
||||
<nav className="mode_affichage" onClick={func_display_list_view}> <CiBoxList /> Rappeler </nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div className="div_row" ref={myRef_seq_ressource} id="myRef_seq_ressource"> </div>
|
||||
{String(display_detail_sequence) === "1" && <div className="div_row" style={{ "border": "None" }}>
|
||||
|
|
|
@ -51,6 +51,7 @@ import Employes from "./Employes";
|
|||
import Materiels from "./Materiels";
|
||||
import Partner_Commande from "./Partner_Commande";
|
||||
import Config_Documents from "./Config_Document";
|
||||
import Config_Documents_Super_Admin from "./Config_Document_Super_Admin";
|
||||
import Factures_Client from "./Partner_Facture";
|
||||
import Configuration_Technique from "./Partner_Config_Technique";
|
||||
import Config_Champs_Personnalise from "./Config_Champs_Personnalise";
|
||||
|
@ -425,7 +426,8 @@ const Partner = (props) => {
|
|||
"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",
|
||||
"domaine_categorie_metier", "config_formation_initiale", "note_evaluation", "groupe_apprenant", "part_produit_service"]
|
||||
"domaine_categorie_metier", "config_formation_initiale", "note_evaluation", "groupe_apprenant",
|
||||
"part_produit_service", "config_document_super_admin"]
|
||||
|
||||
|
||||
if (action && list_menu.includes(action)) {
|
||||
|
@ -527,6 +529,15 @@ const Partner = (props) => {
|
|||
}
|
||||
}
|
||||
|
||||
function config_document_super_admin_func(event) {
|
||||
setmenu("config_document_super_admin");
|
||||
setapiexcelimportmessage();
|
||||
setformation_file_name();
|
||||
history.push("/Partner/config_document_super_admin");
|
||||
document.body.style.backgroundColor = "#ffffff";
|
||||
inactive_active_menu_header("my_configuration");
|
||||
}
|
||||
|
||||
function config_ftion_initale_general_func(event) {
|
||||
var security_retval = check_user_acces_right("config_document", "read");
|
||||
if (security_retval === 1) {
|
||||
|
@ -1168,6 +1179,7 @@ const Partner = (props) => {
|
|||
|
||||
|
||||
const [formation_initiale, setformation_initiale] = useState("");
|
||||
const [document_super_admin, setdocument_super_admin] = useState("");
|
||||
|
||||
const [conntected_employee_id, setconntected_employee_id] = useState("");
|
||||
function GetPartnerNameFromToken(event) {
|
||||
|
@ -1216,6 +1228,12 @@ const Partner = (props) => {
|
|||
setformation_initiale("");
|
||||
}
|
||||
|
||||
if (JSON.parse(res.data.message).document_super_admin) {
|
||||
setdocument_super_admin(JSON.parse(res.data.message).document_super_admin);
|
||||
} else {
|
||||
setdocument_super_admin("");
|
||||
}
|
||||
|
||||
|
||||
|
||||
var partner_employee_user_name = "Inconnu";
|
||||
|
@ -1821,6 +1839,12 @@ const Partner = (props) => {
|
|||
{String(menu) !== "config_document" && <MenuItem onClick={config_document_func} className="sousmenu" icon={<FcFinePrint className="icone_menu" />}> DOCUMENTS & MAILS</MenuItem>}
|
||||
{String(menu) === "config_document" && <MenuItem onClick={config_document_func} className="sousmenu_selected" icon={<FcFinePrint className="icone_menu" />}> DOCUMENTS & MAILS </MenuItem>}
|
||||
|
||||
|
||||
{String(document_super_admin) === "1" && String(menu) !== "super_admin_config_document" && <MenuItem onClick={config_document_super_admin_func} className="sousmenu" icon={<FcFinePrint className="icone_menu" />}> DOCUMENTS SUPERADMIN</MenuItem>}
|
||||
{String(document_super_admin) === "1" && String(menu) === "super_admin_config_document" && <MenuItem onClick={config_document_super_admin_func} className="sousmenu_selected" icon={<FcFinePrint className="icone_menu" />}> DOCUMENTS SUPERADMIN </MenuItem>}
|
||||
|
||||
|
||||
|
||||
{String(menu) !== "config_champ_specific" && <MenuItem onClick={config_specfic_fields_func} className="sousmenu" icon={<FcFinePrint className="icone_menu" />}> CHAMP SPECIFIQUE </MenuItem>}
|
||||
{String(menu) === "config_champ_specific" && <MenuItem onClick={config_specfic_fields_func} className="sousmenu_selected" icon={<FcFinePrint className="icone_menu" />}> CHAMP SPECIFIQUE </MenuItem>}
|
||||
|
||||
|
@ -1954,7 +1978,7 @@ const Partner = (props) => {
|
|||
|
||||
{String(menu) === "groupe_apprenant" &&
|
||||
<div className="div_droite">
|
||||
zzzz
|
||||
zzzz
|
||||
<Groupe_Apprenant ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id}
|
||||
class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale} />
|
||||
</div>
|
||||
|
@ -2225,6 +2249,13 @@ zzzz
|
|||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "config_document_super_admin" && <div className="div_droite">
|
||||
|
||||
<Config_Documents_Super_Admin conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("config_document", "read")} write_access={check_user_acces_right("config_document", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
{String(menu) === "config_technique" && <div className="div_droite">
|
||||
|
||||
<Configuration_Technique conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("config_document", "read")} write_access={check_user_acces_right("config_document", "write")} />
|
||||
|
|
|
@ -2823,6 +2823,8 @@
|
|||
}
|
||||
.mysy_MuiPaper-root {
|
||||
position: absolute !important;
|
||||
// top:10rem !important;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2824,3 +2824,4 @@
|
|||
.popup-overlay {
|
||||
z-index: 1301 !important;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue