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: '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: '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_start', headerName: 'Debut', minWidth: 200, flex: 1, hide: false, editable: false },
{ field: 'sequence_end', headerName: 'Fin', minWidth: 200, flex: 1, hide: false, editable: false }, { field: 'sequence_end', headerName: 'Fin', minWidth: 200, flex: 1, hide: false, editable: false },
@ -234,7 +235,7 @@ const Module_Session_Planification = (props) => {
setsequence_endDate(date_au); setsequence_endDate(date_au);
setsubmenu_seq_dialog("dialog_detail"); setsubmenu_seq_dialog("dialog_detail");
setselectionModel_sequence([]); setselectionModel_sequence([]);
Getall_List_Sequence_Ressource(cellValues.row._id); Getall_List_Sequence_Ressource(cellValues.row._id);
@ -472,11 +473,14 @@ const Module_Session_Planification = (props) => {
const renderEventContent = (eventInfo) => { const renderEventContent = (eventInfo) => {
//console.log(eventInfo);
//console.log(eventInfo.event);
return ( return (
<> <>
<b>{eventInfo.timeText}</b><br /> <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_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_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, "title": local_title,
"start": local_start, "start": local_start,
"end": local_end, "end": local_end,
"grp_code": local_session_grp_code,
"color": local_session_color,
"local_agenda": local_agenda, "local_agenda": local_agenda,
"local_objectif": local_objectif, "local_objectif": local_objectif,
"local_comment": local_session_comment, "local_comment": local_session_comment,
@ -1318,6 +1326,7 @@ const Module_Session_Planification = (props) => {
"local_ue_id": local_session_ue_id, "local_ue_id": local_session_ue_id,
"local_grp_apprenant_id": local_session_grp_apprenant_id, "local_grp_apprenant_id": local_session_grp_apprenant_id,
"local_ue_planif_line_id": local_session_ue_planif_line_id, "local_ue_planif_line_id": local_session_ue_planif_line_id,
}; };
new_data2.push(node); new_data2.push(node);
}); });
@ -1520,7 +1529,7 @@ const Module_Session_Planification = (props) => {
//setp_detail_event_id(""); //setp_detail_event_id("");
setp_detail_sequence_event_type_semaine_objectif(""); setp_detail_sequence_event_type_semaine_objectif("");
setp_detail_sequence_event_type_semaine_comment(""); setp_detail_sequence_event_type_semaine_comment("");
setDialog_EVENT_SEMAINE_TYPE_open(true); setDialog_EVENT_SEMAINE_TYPE_open(true);
}; };
@ -1802,7 +1811,7 @@ const Module_Session_Planification = (props) => {
setsequence_endDate(arg.event.end) setsequence_endDate(arg.event.end)
setp_detail_event_id(arg.event.id); setp_detail_event_id(arg.event.id);
setsubmenu_seq_dialog("dialog_detail"); setsubmenu_seq_dialog("dialog_detail");
setGetall_List_Sequence_Ressource_result([]); setGetall_List_Sequence_Ressource_result([]);
setselectionModel_sequence([]); setselectionModel_sequence([]);
@ -1892,8 +1901,6 @@ const Module_Session_Planification = (props) => {
} }
setDialog_DIALOG_AGENDA_open(true); setDialog_DIALOG_AGENDA_open(true);
} }
@ -2248,7 +2255,7 @@ const Module_Session_Planification = (props) => {
setp_detail_sequence_objectif(""); setp_detail_sequence_objectif("");
setp_detail_sequence_comment(""); setp_detail_sequence_comment("");
setsubmenu_seq_dialog("dialog_detail"); setsubmenu_seq_dialog("dialog_detail");
setGetall_List_Sequence_Ressource_result([]); setGetall_List_Sequence_Ressource_result([]);
setselectionModel_sequence([]); setselectionModel_sequence([]);
setDialog_DIALOG_AGENDA_open(true); setDialog_DIALOG_AGENDA_open(true);
@ -2531,6 +2538,7 @@ const Module_Session_Planification = (props) => {
} }
const [default_h, setdefault_h] = useState('50rem');
useEffect(() => { useEffect(() => {
@ -2545,6 +2553,12 @@ const Module_Session_Planification = (props) => {
Getall_Class_List_UE(); Getall_Class_List_UE();
Getall_Partner_Groupe_Inscrit(); 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); const [SessionendDate, setSessionendDate] = useState(props.SessionendDate);
@ -2682,8 +2696,8 @@ const Module_Session_Planification = (props) => {
className: classes.paper, // Apply the paper style className: classes.paper, // Apply the paper style
style: { style: {
overflowY: 'unset', overflowY: 'unset',
position: 'absolute', //position: 'absolute',
//top: '5rem' top: default_h
}, },
}} }}
hideBackdrop={true} hideBackdrop={true}
@ -2978,44 +2992,43 @@ const Module_Session_Planification = (props) => {
</div>} </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> {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 <div className="session_caract_Dialog" > Unité d'enseignement
@ -3176,7 +3189,6 @@ const Module_Session_Planification = (props) => {
selected={sequence_endDate} selected={sequence_endDate}
onChange={(date) => { onChange={(date) => {
return setsequence_endDate(date); return setsequence_endDate(date);
} }
} }
@ -4206,7 +4218,7 @@ const Module_Session_Planification = (props) => {
open={Dialog_DIALOG_AGENDA_open} open={Dialog_DIALOG_AGENDA_open}
// onClose={Dialog_DIALOG_AGENDA_handleClose} // onClose={Dialog_DIALOG_AGENDA_handleClose}
static static
onClose={() => null} onClose={() => null}
PaperProps={{ PaperProps={{
@ -4215,8 +4227,8 @@ const Module_Session_Planification = (props) => {
className: classes.paper, // Apply the paper style className: classes.paper, // Apply the paper style
style: { style: {
overflowY: 'unset', overflowY: 'unset',
position: 'absolute', //position: 'absolute',
//top: '5rem' top: default_h
}, },
}} }}
hideBackdrop={true} hideBackdrop={true}
@ -4233,10 +4245,8 @@ const Module_Session_Planification = (props) => {
<DialogContentText> <DialogContentText>
{Dialog_DIALOG_AGENDA_message} {Dialog_DIALOG_AGENDA_message}
</DialogContentText> </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' }} > {<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="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' }}> <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> <nav className="mode_affichage" onClick={func_display_list_view}> <CiBoxList /> Liste </nav>
</div> </div>
@ -4977,6 +4990,10 @@ const Module_Session_Planification = (props) => {
unite_enseignement_planif_id: JSON.parse(item).unite_enseignement_planif_id, unite_enseignement_planif_id: JSON.parse(item).unite_enseignement_planif_id,
type: JSON.parse(item).type, 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> <h3> Affichage planning</h3>
&nbsp; &nbsp;
<div style={{ "width": "98%", "marginLeft": "5px", }}> <div style={{ "width": "98%", "marginLeft": "5px", }} >
<FullCalendar <FullCalendar
height={550} height={550}
@ -5236,6 +5253,12 @@ const Module_Session_Planification = (props) => {
</div> </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>
<div className="div_row" ref={myRef_seq_ressource} id="myRef_seq_ressource"> &nbsp;</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" }}> {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 Materiels from "./Materiels";
import Partner_Commande from "./Partner_Commande"; import Partner_Commande from "./Partner_Commande";
import Config_Documents from "./Config_Document"; import Config_Documents from "./Config_Document";
import Config_Documents_Super_Admin from "./Config_Document_Super_Admin";
import Factures_Client from "./Partner_Facture"; import Factures_Client from "./Partner_Facture";
import Configuration_Technique from "./Partner_Config_Technique"; import Configuration_Technique from "./Partner_Config_Technique";
import Config_Champs_Personnalise from "./Config_Champs_Personnalise"; 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", "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_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",
"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)) { 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) { function config_ftion_initale_general_func(event) {
var security_retval = check_user_acces_right("config_document", "read"); var security_retval = check_user_acces_right("config_document", "read");
if (security_retval === 1) { if (security_retval === 1) {
@ -1168,6 +1179,7 @@ const Partner = (props) => {
const [formation_initiale, setformation_initiale] = useState(""); const [formation_initiale, setformation_initiale] = useState("");
const [document_super_admin, setdocument_super_admin] = useState("");
const [conntected_employee_id, setconntected_employee_id] = useState(""); const [conntected_employee_id, setconntected_employee_id] = useState("");
function GetPartnerNameFromToken(event) { function GetPartnerNameFromToken(event) {
@ -1216,6 +1228,12 @@ const Partner = (props) => {
setformation_initiale(""); 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"; 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" 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(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" 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>} {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" && {String(menu) === "groupe_apprenant" &&
<div className="div_droite"> <div className="div_droite">
zzzz zzzz
<Groupe_Apprenant ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id} <Groupe_Apprenant ispending={partnerstatus} currentpack={partnerPackService} conntected_employee_id={conntected_employee_id}
class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale} /> class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale} />
</div> </div>
@ -2225,6 +2249,13 @@ zzzz
</div> </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"> {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")} /> <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 { .mysy_MuiPaper-root {
position: absolute !important; position: absolute !important;
// top:10rem !important;
} }

View File

@ -4,7 +4,7 @@
background: #81BC3A; background: #81BC3A;
z-index: 9999; z-index: 9999;
} }
.css-1bp1ao6{ .css-1bp1ao6{
height: 3.5rem !important; height: 3.5rem !important;
@ -2823,4 +2823,5 @@
.popup-overlay { .popup-overlay {
z-index: 1301 !important; z-index: 1301 !important;
} }