recette2
cherif 2024-08-12 20:52:38 +02:00
parent 211326c417
commit aa3d40fff6
5 changed files with 3635 additions and 60 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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,8 +2992,8 @@ const Module_Session_Planification = (props) => {
</div>}
zzz2
{String(submenu_seq_dialog) !== "dialog_ressource" && <div>
<div className="session_caract_Dialog" >
<nav style={{ "float": "left", "width": "30%", "paddingTop": "15px" }}> Type </nav>
@ -3015,7 +3029,6 @@ const Module_Session_Planification = (props) => {
</nav>
</div>
{String(submenu_seq_dialog) !== "dialog_ressource" && <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,
}
))}
@ -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"> &nbsp;</div>
{String(display_detail_sequence) === "1" && <div className="div_row" style={{ "border": "None" }}>

View File

@ -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>}
@ -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")} />

View File

@ -2823,6 +2823,8 @@
}
.mysy_MuiPaper-root {
position: absolute !important;
// top:10rem !important;
}

View File

@ -2824,3 +2824,4 @@
.popup-overlay {
z-index: 1301 !important;
}