28/02/26 - 22h

branche_01062025
Cherif 2026-02-28 21:43:03 +01:00
parent c3bdb9c8e1
commit d9c2b6d856
7 changed files with 2306 additions and 1536 deletions

View File

@ -191,25 +191,25 @@ const AddClassManual = (props) => {
const columns_list_unite_enseignement = [
{ field: 'id', headerName: 'id', hide: true },
{ field: '_id', headerName: '_id', hide: true },
{ field: 'code', headerName: 'Code', minWidth: 150, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'code', headerName: 'Code', maxWidth: 250, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'titre', headerName: 'Titre', minWidth: 150, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'credit', headerName: 'Credit', minWidth: 100, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'coefficient', headerName: 'Coef.', minWidth: 100, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'credit', headerName: 'Credit', maxWidth: 100, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'coefficient', headerName: 'Coef.', maxWidth: 100, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{
field: 'pres_dist_hyp', headerName: 'Animation', minWidth: 150, flex: 1,
field: 'pres_dist_hyp', headerName: 'Animation', maxWidth: 180,
renderCell: (cellValues) => {
return (
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all" }}>
{cellValues.row.pres_dist_hyp && String(cellValues.row.pres_dist_hyp) === "1" && "Distanciel"}
{cellValues.row.pres_dist_hyp && String(cellValues.row.pres_dist_hyp) === "0" && "Présentiel"}
{cellValues.row.pres_dist_hyp && String(cellValues.row.pres_dist_hyp) === "2" && "Hybride"}
{cellValues.row.pres_dist_hyp && String(cellValues.row.pres_dist_hyp) === "1" && "Dist."}
{cellValues.row.pres_dist_hyp && String(cellValues.row.pres_dist_hyp) === "0" && "Prés."}
{cellValues.row.pres_dist_hyp && String(cellValues.row.pres_dist_hyp) === "2" && "Hybr."}
</div>
);
}
},
{
field: 'is_noted', headerName: 'Evalué', minWidth: 100, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />,
field: 'is_noted', headerName: 'Evalué', maxWidth: 100, renderCell: (params) => <ExpandableCell_50 {...params} />,
renderCell: (cellValues) => {
return (
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all" }}>
@ -221,12 +221,12 @@ const AddClassManual = (props) => {
);
}
},
{ field: 'seuil_validation', headerName: 'Seuil val.', minWidth: 100, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'seuil_validation', headerName: 'Seuil val.', maxWidth: 100, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'duration_concat', headerName: 'Durée', minWidth: 100, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'duration', headerName: 'Durée', minWidth: 150, hide: true, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'duration_unite', headerName: 'Unit.', minWidth: 150, hide: true, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'duration_concat', headerName: 'Durée', maxidth: 100, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'duration', headerName: 'Durée', maxWidth: 150, hide: true, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'duration_unite', headerName: 'Unit.', maxWidth: 150, hide: true, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{
field: "delete", headerName: 'Supprimer',
@ -521,9 +521,9 @@ const AddClassManual = (props) => {
setselected_ue_id("");
setselected_eu_evalution_id("");
setsetgridline_evaluation_ue_id("");
setp_detail_max_note("");
setp_detail_max_note("20");
setp_detail_type_notation("num");
setp_detail_ponderation_type_eval("");
setp_detail_ponderation_type_eval("1");
setclass_unite_enseignement_type_evaluation_id("");
}
@ -583,6 +583,7 @@ const AddClassManual = (props) => {
setDelete_Given_UE_From_Class_api("true");
setDelete_Given_UE_From_Class_result(res.data.message);
Getall_Class_List_UE();
Getall_Class_List_Evalution();
// alert(res.data.message)
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
@ -4394,9 +4395,9 @@ const AddClassManual = (props) => {
const [selected_ue_id, setselected_ue_id] = useState("");
const [selected_ue_credit_ects, setselected_ue_credit_ects] = useState("");
const [selected_ue_is_noted, setselected_ue_is_noted] = useState("");
const [selected_ue_pres_dist_hyp, setselected_ue_pres_dist_hyp] = useState("");
const [selected_ue_coefficient, setselected_ue_coefficient] = useState("");
const [selected_ue_is_noted, setselected_ue_is_noted] = useState("1");
const [selected_ue_pres_dist_hyp, setselected_ue_pres_dist_hyp] = useState("0");
const [selected_ue_coefficient, setselected_ue_coefficient] = useState("1");
const [selected_ue_seuil_validation, setselected_ue_seuil_validation] = useState("");
@ -4425,10 +4426,10 @@ const AddClassManual = (props) => {
setDialog_Unite_Enseignement_open(false);
setselected_ue_id("");
setselected_ue_credit_ects("");
setselected_ue_is_noted("");
setselected_ue_pres_dist_hyp("");
setselected_ue_is_noted("1");
setselected_ue_pres_dist_hyp("0");
setadd_one_eu_to_class("");
setselected_ue_coefficient("");
setselected_ue_coefficient("1");
setselected_ue_seuil_validation("");
};
@ -4438,10 +4439,10 @@ const AddClassManual = (props) => {
setselected_ue_id("");
setselected_ue_credit_ects("");
setselected_ue_seuil_validation("");
setselected_ue_is_noted("");
setselected_ue_pres_dist_hyp("");
setselected_ue_is_noted("1");
setselected_ue_pres_dist_hyp("0");
setadd_one_eu_to_class("");
setselected_ue_coefficient("");
setselected_ue_coefficient("1");
}
@ -4450,10 +4451,10 @@ const AddClassManual = (props) => {
setselected_ue_id("");
setselected_ue_credit_ects("");
setselected_ue_seuil_validation("");
setselected_ue_is_noted("");
setselected_ue_pres_dist_hyp("");
setselected_ue_is_noted("1");
setselected_ue_pres_dist_hyp("0");
setadd_one_eu_to_class("");
setselected_ue_coefficient("");
setselected_ue_coefficient("1");
};
const [Dialog_1_message, setDialog_1_message] = React.useState(false);
@ -4572,9 +4573,9 @@ const AddClassManual = (props) => {
setselected_ue_id("");
setselected_eu_evalution_id("");
setsetgridline_evaluation_ue_id("");
setp_detail_max_note("");
setp_detail_max_note("20");
setp_detail_type_notation("num");
setp_detail_ponderation_type_eval("");
setp_detail_ponderation_type_eval("1");
setclass_unite_enseignement_type_evaluation_id("");
Getall_Class_List_Evalution();
@ -4655,11 +4656,11 @@ const AddClassManual = (props) => {
const [class_unite_enseignement_type_evaluation_id, setclass_unite_enseignement_type_evaluation_id] = React.useState("");
const [p_detail_max_note, setp_detail_max_note] = React.useState("");
const [p_detail_max_note, setp_detail_max_note] = React.useState("20");
const [p_detail_type_notation, setp_detail_type_notation] = React.useState("num");
const [p_detail_ponderation_type_eval, setp_detail_ponderation_type_eval] = React.useState("");
const [p_detail_ponderation_type_eval, setp_detail_ponderation_type_eval] = React.useState("1");
const [add_ue_evalution, setadd_ue_evalution] = React.useState("");
@ -7618,7 +7619,6 @@ const AddClassManual = (props) => {
type_evaluation_id: JSON.parse(item).type_evaluation_id,
max_note: JSON.parse(item).max_note,
type_notation: JSON.parse(item).type_notation,
ponderation_type_eval: JSON.parse(item).ponderation_type_eval,
}
))}
@ -7972,7 +7972,7 @@ const AddClassManual = (props) => {
<TextField
required
name="title"
label="Titre (max 90 caractères) "
label="Titre (max 90 caractères)"
InputLabelProps={{
shrink: true,
}}
@ -7992,6 +7992,7 @@ const AddClassManual = (props) => {
disablePortal
name="formateur_id"
id="formateur_id"
className="disabled_style"
options={New_Getall_Training_Employee_No_Filter_result}
value={p_formateur_label}
@ -8009,7 +8010,7 @@ const AddClassManual = (props) => {
}
}}
renderInput={(params) => <TextField {...params} label="Formateur" />
renderInput={(params) => <TextField {...params} label="Responsable" />
}
/>

View File

@ -302,25 +302,7 @@ const DisplayPartnerPromotion = (props) => {
{ field: 'session_alert_message', headerName: 'session_alert_message', hide: true },
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true },
{
field: 'is_session_alert', headerName: '', hide: false, Width: 50, flex: 1,
renderCell: (cellValues) => {
return (
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all", fontFamily: 'DM Sans', }}>
{cellValues.row.is_session_alert && String(cellValues.row.is_session_alert) === "1" && <nav>
<Tooltip className="tooltip_css" id="my_tooltip_alert_1" />
<a data-tooltip-id="my_tooltip_alert_1" data-tooltip-html={`${cellValues.row.session_alert_message}`}>
<FcExpired />
</a>
</nav>}
{cellValues.row.is_session_alert && String(cellValues.row.is_session_alert) !== "1" && ""}
</div>
);
}
},
{ field: 'entre_scolaire', headerName: 'Entrée Scol.', hide: false, minWidth: 150, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
@ -2294,7 +2276,7 @@ const DisplayPartnerPromotion = (props) => {
var local_date_debut = JSON.parse(x).date_debut;
var local_date_fin = JSON.parse(x).date_fin;
var local_session_etape = JSON.parse(x).session_etape;
var local_is_session_alert = JSON.parse(x).is_session_alert;
var local_invoiced_statut = JSON.parse(x).invoiced_statut;
var local_session_alert_message = JSON.parse(x).session_alert_message;
var local_session_class_id = JSON.parse(x).class_id;
@ -2320,7 +2302,7 @@ const DisplayPartnerPromotion = (props) => {
"date_debut": local_date_debut,
"date_fin": local_date_fin,
"session_etape": local_session_etape,
"is_session_alert": local_is_session_alert,
"invoiced_statut": local_invoiced_statut,
"session_alert_message": local_session_alert_message,
"class_id": local_session_class_id,
@ -2339,7 +2321,7 @@ const DisplayPartnerPromotion = (props) => {
var node_timeline_grp = {
'id': local_id,
'title': local_code_session,
'is_session_alert': local_is_session_alert
}
timeline_grp.push(node_timeline_grp);
@ -2366,7 +2348,7 @@ const DisplayPartnerPromotion = (props) => {
"session_etape": local_session_etape,
"archive": local_archive,
"entre_scolaire": local_entre_scolaire,
"is_session_alert": local_is_session_alert,
"invoiced_statut": local_invoiced_statut,
"session_alert_message": local_session_alert_message,
"class_id": local_session_class_id,
@ -2395,7 +2377,7 @@ const DisplayPartnerPromotion = (props) => {
"date_debut": "",
"date_fin": "",
"session_etape": "",
"is_session_alert": "",
"invoiced_statut": "",
"session_alert_message": "",
"class_id": "",
@ -2470,7 +2452,7 @@ const DisplayPartnerPromotion = (props) => {
var local_date_debut = JSON.parse(x).date_debut;
var local_date_fin = JSON.parse(x).date_fin;
var local_session_etape = JSON.parse(x).session_etape;
var local_is_session_alert = JSON.parse(x).is_session_alert;
var local_invoiced_statut = JSON.parse(x).invoiced_statut;
var local_session_alert_message = JSON.parse(x).session_alert_message;
var local_session_class_id = JSON.parse(x).class_id;
@ -2494,7 +2476,7 @@ const DisplayPartnerPromotion = (props) => {
"date_debut": local_date_debut,
"date_fin": local_date_fin,
"session_etape": local_session_etape,
"is_session_alert": local_is_session_alert,
"invoiced_statut": local_invoiced_statut,
"session_alert_message": local_session_alert_message,
"class_id": local_session_class_id,
@ -2512,7 +2494,7 @@ const DisplayPartnerPromotion = (props) => {
var node_timeline_grp = {
'id': local_id,
'title': local_code_session,
'is_session_alert': local_is_session_alert
}
timeline_grp.push(node_timeline_grp);
@ -2538,7 +2520,7 @@ const DisplayPartnerPromotion = (props) => {
"date_fin": local_date_fin,
"session_etape": local_session_etape,
"archive": local_archive,
"is_session_alert": local_is_session_alert,
"invoiced_statut": local_invoiced_statut,
"session_alert_message": local_session_alert_message,
"class_id": local_session_class_id,
@ -2567,7 +2549,7 @@ const DisplayPartnerPromotion = (props) => {
"date_debut": "",
"date_fin": "",
"session_etape": "",
"is_session_alert": "",
"invoiced_statut": "",
"session_alert_message": "",
"class_id": "",
@ -2765,7 +2747,7 @@ const DisplayPartnerPromotion = (props) => {
var local_date_debut = JSON.parse(x).date_debut;
var local_date_fin = JSON.parse(x).date_fin;
var local_session_etape = JSON.parse(x).session_etape;
var local_is_session_alert = JSON.parse(x).is_session_alert;
var local_invoiced_statut = JSON.parse(x).invoiced_statut;
var local_session_alert_message = JSON.parse(x).session_alert_message;
var local_session_class_id = JSON.parse(x).class_id;
@ -2787,7 +2769,7 @@ const DisplayPartnerPromotion = (props) => {
"date_debut": local_date_debut,
"date_fin": local_date_fin,
"session_etape": local_session_etape,
"is_session_alert": local_is_session_alert,
"invoiced_statut": local_invoiced_statut,
"session_alert_message": local_session_alert_message,
"class_id": local_session_class_id,
@ -2831,7 +2813,7 @@ const DisplayPartnerPromotion = (props) => {
"date_debut": local_date_debut,
"date_fin": local_date_fin,
"session_etape": local_session_etape,
"is_session_alert": local_is_session_alert,
"archive": local_archive,
"invoiced_statut": local_invoiced_statut,
"session_alert_message": local_session_alert_message,
@ -2860,7 +2842,7 @@ const DisplayPartnerPromotion = (props) => {
"date_debut": "",
"date_fin": "",
"session_etape": "",
"is_session_alert": "",
"invoiced_statut": "",
"session_alert_message": "",
"class_id": "",
@ -13160,7 +13142,7 @@ const DisplayPartnerPromotion = (props) => {
const New_Option_Filter = [
{ "id": "code_session", "label": "Code Promotion", "value": "code_session" },
{ "id": "class_external_code", "label": "Ref. Interne", "value": "class_external_code" },
{ "id": "class_external_code", "label": "Ftion. Ref. Interne", "value": "class_external_code" },
{ "id": "class_title", "label": "Titre Formation", "value": "class_title" },
{ "id": "session_start_date", "label": "Date début session", "value": "session_start_date" },
{ "id": "session_end_date", "label": "Date fin session", "value": "session_end_date" },
@ -20828,17 +20810,7 @@ const DisplayPartnerPromotion = (props) => {
<div className="session_data">
{(!data_row_grouped_by || String(data_row_grouped_by) === "") && <div style={{ textAlign: "right", "width": '100%', 'float': 'left' }}>
<div style={{ width: "100%", float: "right" }}>
<nav style={{ width: '10%', float: 'right' }}>
<FormGroup style={{ float: 'right' }}>
<FormControlLabel control={<Checkbox
checked={display_session_with_alert}
onChange={handleChange_display_session_with_alert}
inputProps={{ 'aria-label': 'controlled' }}
/>} label="Alerte" style={{ color: 'red', fontSize: "10px", fontStyle: 'italic' }} />
</FormGroup>
</nav>
<nav style={{ width: '80%', float: 'right', textAlign: "right", marginTop: "10px" }}>
{session_display_view && String(session_display_view) === "timeline" && <nav className="mode_affichage mode_affichage_selected" onClick={func_session_display_timeline_view}> <FcTimeline /> Line </nav>}
@ -21031,7 +21003,7 @@ const DisplayPartnerPromotion = (props) => {
qty_in_quotation: JSON.parse(item).qty_in_quotation,
qty_in_quotation_list_quotation: JSON.parse(item).qty_in_quotation_list_quotation,
is_session_alert: JSON.parse(item).is_session_alert,
session_alert_message: JSON.parse(item).session_alert_message,
is_bpf: JSON.parse(item).is_bpf,
class_id: JSON.parse(item).class_id,
@ -21332,11 +21304,7 @@ const DisplayPartnerPromotion = (props) => {
setDialog_2_open(true);
}}
>
{String(item.is_session_alert) === "1" && <nav style={{ 'fontWeight': '700', wordBreak: 'break-all', fontFamily: 'DM Sans', marginLeft: "40%" }} > <Tooltip className="tooltip_css" id="my_tooltip_alert_1_kanban" />
<a data-tooltip-id="my_tooltip_alert_1_kanban" data-tooltip-html={`${item.session_alert_message}`}>
<FcExpired />
</a>
</nav>}
{String(item.code_session).length > 30 && <nav style={{ 'fontWeight': '700', wordBreak: 'break-all' }} > {String(item.code_session).substring(0, 26)}... </nav>}
{String(item.code_session).length <= 30 && <nav style={{ 'fontWeight': '700', wordBreak: 'break-all' }} > {String(item.code_session).substring(0, 30)} </nav>}
@ -21757,7 +21725,7 @@ const DisplayPartnerPromotion = (props) => {
qty_in_quotation: JSON.parse(item).qty_in_quotation,
qty_in_quotation_list_quotation: JSON.parse(item).qty_in_quotation_list_quotation,
is_session_alert: JSON.parse(item).is_session_alert,
session_alert_message: JSON.parse(item).session_alert_message,
is_bpf: JSON.parse(item).is_bpf,
class_id: JSON.parse(item).class_id,
@ -22062,7 +22030,7 @@ const DisplayPartnerPromotion = (props) => {
qty_in_quotation: JSON.parse(item).qty_in_quotation,
qty_in_quotation_list_quotation: JSON.parse(item).qty_in_quotation_list_quotation,
is_session_alert: JSON.parse(item).is_session_alert,
session_alert_message: JSON.parse(item).session_alert_message,
class_id: JSON.parse(item).class_id,
@ -22349,11 +22317,7 @@ const DisplayPartnerPromotion = (props) => {
setDialog_2_open(true);
}}
>
{String(item.is_session_alert) === "1" && <nav style={{ 'fontWeight': '700', wordBreak: 'break-all', fontFamily: 'DM Sans', marginLeft: "40%" }} > <Tooltip className="tooltip_css" id="my_tooltip_alert_1_kanban" />
<a data-tooltip-id="my_tooltip_alert_1_kanban" data-tooltip-html={`${item.session_alert_message}`}>
<FcExpired />
</a>
</nav>}
{String(item.code_session).length > 30 && <nav style={{ 'fontWeight': '700', wordBreak: 'break-all' }} > {String(item.code_session).substring(0, 26)}... </nav>}
{String(item.code_session).length <= 30 && <nav style={{ 'fontWeight': '700', wordBreak: 'break-all' }} > {String(item.code_session).substring(0, 30)} </nav>}

View File

@ -13451,7 +13451,7 @@ const DisplayPartnerSession = (props) => {
const New_Option_Filter = [
{ "id": "code_session", "label": "Code Session", "value": "code_session" },
{ "id": "class_external_code", "label": "Ref. Interne", "value": "class_external_code" },
{ "id": "class_external_code", "label": "Ftion. Ref. Interne", "value": "class_external_code" },
{ "id": "class_title", "label": "Titre Formation", "value": "class_title" },
{ "id": "session_start_date", "label": "Date début session", "value": "session_start_date" },
{ "id": "session_end_date", "label": "Date fin session", "value": "session_end_date" },

View File

@ -194,11 +194,7 @@ const DisplayPartnerStagiaires = (props) => {
{ field: 'telephone', headerName: 'Téléphone', hide: true, editable: false, Width: 0 },
{ field: 'date_naissance', headerName: 'date_naissance', hide: true, editable: false, Width: 0 },
{ field: 'adresse', headerName: 'adresse', hide: true, editable: false, Width: 0 },
{ field: 'code_postal', headerName: 'code_postal', hide: true, editable: false, Width: 0 },
{ field: 'ville', headerName: 'ville', hide: true, editable: false, Width: 0 },
{ field: 'pays', headerName: 'pays', hide: true, editable: false, Width: 0 },
{
field: 'warning_recyclage_alert', headerName: 'Alert', hide: false, Width: 150,
@ -306,8 +302,7 @@ const DisplayPartnerStagiaires = (props) => {
},
},
{ field: 'domaine', headerName: 'Domaine', minWidth: datagrid_columns_size_model2, align: "center", hide: true, hideable: true, editable: false },
{ field: 'date_debut', headerName: 'Du', minWidth: 90, maxWidth: 100, flex: 1, hideable: true, editable: false, hide: true },
{ field: 'date_debut', headerName: 'Du', minWidth: 90, maxWidth: 100, flex: 1, hideable: true, editable: false, hide: true },
{ field: 'date_fin', headerName: 'Au', minWidth: 90, maxWidth: 100, flex: 1, hideable: true, editable: false, hide: true },
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true, editable: false },
@ -10716,7 +10711,7 @@ const DisplayPartnerStagiaires = (props) => {
title: JSON.parse(item).title,
distantiel: JSON.parse(item).distantiel,
presentiel: JSON.parse(item).presentiel,
domaine: JSON.parse(item).domaine,
date_debut: JSON.parse(item).date_du,
date_fin: JSON.parse(item).date_au,
class_internal_url: JSON.parse(item).class_internal_url,
@ -10724,11 +10719,7 @@ const DisplayPartnerStagiaires = (props) => {
telephone: JSON.parse(item).telephone,
date_naissance: JSON.parse(item).date_naissance,
adresse: JSON.parse(item).adresse,
civilcode_postalite: JSON.parse(item).code_postal,
ville: JSON.parse(item).ville,
pays: JSON.parse(item).pays,
invoiced: JSON.parse(item).invoiced,
invoiced_ref: JSON.parse(item).invoiced_ref,
invoiced_date: JSON.parse(item).invoiced_date,

View File

@ -38,7 +38,7 @@ const Module_Selection_Evaluation_Apprenants = (props) => {
const [p_filtre1, setp_filtre1] = useState("Inscrit ");
const [p_filtre1_value, setp_filtre1_value] = useState("");
const [p_filtre1_value, setp_filtre1_value] = useState("user");
const [p_filtre2, setp_filtre2] = useState("Type de groupe");
const [p_filtre2_value, setp_filtre2_value] = useState("");

View File

@ -283,7 +283,7 @@ const Notes_Evaluation = (props) => {
<div className="gest_content">
{' '}
En confirmant cette opération, l'évaluation sera <i> duppliquée </i>. <br />
En confirmant cette opération, l'évaluation sera <i> dupliquée </i>. <br />
</div>
<div className="gest_actions">