+ {value &&
{expanded ? value : String(value).slice(0, 50)}
{value.length > 50 && (
@@ -421,7 +421,8 @@ const AddClassManual = (props) => {
{ field: 'ponderation_type_eval', headerName: 'Poids. Type Eval.', minWidth: 150, flex: 1, renderCell: (params) => , },
- { field: 'max_note', headerName: 'max_note', minWidth: 150, flex: 1, renderCell: (params) => , },
+ { field: 'max_note', headerName: 'Note Maxi', minWidth: 150, flex: 1, renderCell: (params) => , },
+ { field: 'type_notation', headerName: 'Type Notation', minWidth: 150, flex: 1, renderCell: (params) => , },
{
field: "delete", headerName: 'Supprimer',
@@ -520,6 +521,7 @@ const AddClassManual = (props) => {
setselected_eu_evalution_id("");
setsetgridline_evaluation_ue_id("");
setp_detail_max_note("");
+ setp_detail_type_notation("num");
setp_detail_ponderation_type_eval("");
setclass_unite_enseignement_type_evaluation_id("");
@@ -1380,6 +1382,12 @@ const AddClassManual = (props) => {
value: 'mois',
label: 'Mois',
},
+
+ {
+ value: 'annee',
+ label: 'Années',
+ },
+
{
value: 'user_rythme',
label: 'Rythme stagiaire',
@@ -2549,7 +2557,7 @@ const AddClassManual = (props) => {
formData.append('contenu_attestation', contenu_attestation);
- console.log(" ### formData = ", formData)
+ // console.log(" ### formData = ", formData)
/*
Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenaire
*/
@@ -3415,6 +3423,23 @@ const AddClassManual = (props) => {
seteditor_tochange("1");
}
+
+ const type_notation = [
+ {
+ value: 'num', label: 'Numérique',
+ },
+ {
+ value: 'alpha', label: 'Alphanumérique',
+ },
+
+ {
+ value: '', label: '',
+ },
+
+ ];
+
+
+
const cpf = [
{
value: '1',
@@ -3441,10 +3466,12 @@ const AddClassManual = (props) => {
];
function retourList() {
+ props.GetAllClass_new();
props.closeTrainingForm();
}
+
const [isLoading, setLoading] = useState();
// Gestion champs specifiques
@@ -4501,6 +4528,7 @@ const AddClassManual = (props) => {
form.append("max_note", p_detail_max_note);
form.append("ponderation_type_eval", p_detail_ponderation_type_eval);
+ form.append("type_notation", p_detail_type_notation);
var myurl = "";
@@ -4533,6 +4561,7 @@ const AddClassManual = (props) => {
setselected_eu_evalution_id("");
setsetgridline_evaluation_ue_id("");
setp_detail_max_note("");
+ setp_detail_type_notation("num");
setp_detail_ponderation_type_eval("");
setclass_unite_enseignement_type_evaluation_id("");
Getall_Class_List_Evalution();
@@ -4616,6 +4645,8 @@ const AddClassManual = (props) => {
const [p_detail_max_note, setp_detail_max_note] = React.useState("");
+ 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("");
@@ -7203,6 +7234,33 @@ const AddClassManual = (props) => {
+
Type notation : Numérique ou alphanumérique
+ {type_notation && type_notation.length > 0 &&
(data).value === String(p_detail_type_notation))[0].label}
+
+ fullWidth
+
+ options={type_notation}
+ onChange={(event, value) => {
+ if (value && value.value) {
+ setp_detail_type_notation(value.value);
+ } else {
+ setp_detail_type_notation("");
+ }
+ }}
+ renderInput={(params) =>
+ }
+ />}
+
+
+
+
@@ -7266,13 +7324,21 @@ const AddClassManual = (props) => {