diff --git a/src/components/Config_Champs_Personnalise.js b/src/components/Config_Champs_Personnalise.js index 4746c51..ab40f18 100644 --- a/src/components/Config_Champs_Personnalise.js +++ b/src/components/Config_Champs_Personnalise.js @@ -1242,7 +1242,7 @@ const Config_Champs_Personnalise = (props) => {
-
+
diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index db523ce..c4366e3 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -8365,11 +8365,6 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair {Dialog_tuteur_1_message} - - - - - @@ -8841,7 +8836,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
-
+
@@ -10707,7 +10702,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
Gestion séquences
-
+
diff --git a/src/components/DisplayPartnerStagiaires.js b/src/components/DisplayPartnerStagiaires.js index 9bacec7..4dbde60 100644 --- a/src/components/DisplayPartnerStagiaires.js +++ b/src/components/DisplayPartnerStagiaires.js @@ -5617,10 +5617,10 @@ const DisplayPartnerStagiaires = (props) => {
-
+
-
+
  diff --git a/src/components/DisplayPartnerTrainingsPagination.js b/src/components/DisplayPartnerTrainingsPagination.js index 53ad77d..01cb27b 100644 --- a/src/components/DisplayPartnerTrainingsPagination.js +++ b/src/components/DisplayPartnerTrainingsPagination.js @@ -1468,7 +1468,7 @@ const DistplayPartnerTraningsPage = (props) => { {String(myApiResponse) === "True" && -
+
  {/*!createtraining &&
@@ -1480,7 +1480,7 @@ const DistplayPartnerTraningsPage = (props) => {
*/}
-
+
{
-
+
@@ -5606,7 +5606,7 @@ const Employes = (props) => { - {String(submenu) === "affectation" &&
+ {String(submenu) === "affectation" &&
diff --git a/src/components/Partner_Client.js b/src/components/Partner_Client.js index 8a5116d..993b130 100644 --- a/src/components/Partner_Client.js +++ b/src/components/Partner_Client.js @@ -618,7 +618,7 @@ const Partner_Client = (props) => {
-
+
  diff --git a/src/components/Partner_Config_Technique.js b/src/components/Partner_Config_Technique.js index 4fe1a0f..18f59e8 100644 --- a/src/components/Partner_Config_Technique.js +++ b/src/components/Partner_Config_Technique.js @@ -42,12 +42,14 @@ import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif"; const Partner_Configuration_Technique = (props) => { - + const history = useHistory(); const [submenu, setsubmenu] = useState(""); const [rowss, setRows] = useState([]); const [selectionModel, setSelectionModel] = React.useState([]); + const [selectionModel_type_client, setselectionModel_type_client] = React.useState([]); + const [rows_order_lines, setrows_order_lines] = useState([]); const [selectionModel_order_lines, setselectionModel_order_lines] = React.useState([]); @@ -75,17 +77,81 @@ const Partner_Configuration_Technique = (props) => { { field: 'config_value', headerName: 'Valeur config', flex: 1, hide: false, editable: false }, - /* { + /* { + field: "delete", headerName: 'Supprimer', + renderCell: (cellValues) => { + return ( + + { + // handleClick_delete(event, cellValues); + }} + > + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + En confirmant cette opération, le document sera définitivement supprimé.
+ +
+
+
+ + +
+
+ +
+
+
+ )} +
+ + + ); + } + }*/ + + ] + + const columns_type_client = [ + { field: '_id', headerName: '_id', hide: true }, + { field: 'id', headerName: 'id', hide: true }, + { field: 'code', headerName: 'Nom Configuration', flex: 1, hide: false, editable: false }, + { field: 'description', headerName: 'Valeur config', flex: 1, hide: false, editable: false }, + { field: "delete", headerName: 'Supprimer', renderCell: (cellValues) => { return ( { - // handleClick_delete(event, cellValues); - }} > @@ -103,13 +169,13 @@ const Partner_Configuration_Technique = (props) => {
{' '} - En confirmant cette opération, le document sera définitivement supprimé.
+ En confirmant cette opération, le type de client sera définitivement supprimé.
@@ -134,25 +200,25 @@ const Partner_Configuration_Technique = (props) => { ); } - }*/ + } + ] - - const myRef = useRef(null) useEffect(() => { Getall_Parter_config_Points(); + Getall_Parter_type_client(); - if ( document.getElementById('myRef_head')) { + if (document.getElementById('myRef_head')) { var divh = document.getElementById('myRef_head').offsetTop; - window.scrollTo({ - top: divh, - behavior: "smooth", - }); - } + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } }, []) @@ -169,7 +235,9 @@ const Partner_Configuration_Technique = (props) => { var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Partner_Basic_Setup/"; + setLoading(true); axios.post(myurl, form).then(res => { + setLoading(false); if (String(res.data.status) === String("true")) { //console.log(" In Getall_Parter_config_Points res.data.status = " + res.data.status); @@ -185,6 +253,7 @@ const Partner_Configuration_Technique = (props) => { } }).catch((error) => { + setLoading(false); console.warn('Not good man :( Getall_Parter_config_Points = ', error); setGetall_Parter_config_Points_api("false"); alert(" Impossible de recuperer la liste des points de configuration"); @@ -192,6 +261,42 @@ const Partner_Configuration_Technique = (props) => { }) } + const [Getall_Parter_type_client_api, setGetall_Parter_type_client_api] = useState(); + const [Getall_Parter_type_client_message, setGetall_Parter_type_client_message] = useState(); + const [Getall_Parter_type_client_result, setGetall_Parter_type_client_result] = useState([]); + function Getall_Parter_type_client(event) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Client_Type_List/"; + setLoading(true); + axios.post(myurl, form).then(res => { + setLoading(false); + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Parter_type_client res.data.status = " + res.data.status); + //console.log(" In Getall_Parter_type_client res.data.message r_class = " + res.data.message); + setGetall_Parter_type_client_api("true"); + setGetall_Parter_type_client_result(res.data.message); + + } + else { + setGetall_Parter_type_client_api("false"); + setGetall_Parter_type_client_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + setLoading(false); + console.warn('Not good man :( Getall_Parter_type_client = ', error); + setGetall_Parter_type_client_api("false"); + alert(" Impossible de recuperer la liste des types de client"); + //setmyApimyApiMessage("") + }) + } const [display_detail_config, setdisplay_detail_config] = React.useState(); const [selected_row_id_val, setselected_row_id_val] = React.useState(); @@ -217,13 +322,13 @@ const Partner_Configuration_Technique = (props) => { Disable_Config_DetailFields(); - if ( document.getElementById('myRef')) { + if (document.getElementById('myRef')) { var divh = document.getElementById('myRef').offsetTop; - window.scrollTo({ - top: divh, - behavior: "smooth", - }); - } + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } } @@ -248,17 +353,19 @@ const Partner_Configuration_Technique = (props) => { Disable_Config_DetailFields(); - if ( document.getElementById('myRef')) { + if (document.getElementById('myRef')) { var divh = document.getElementById('myRef').offsetTop; - window.scrollTo({ - top: divh, - behavior: "smooth", - }); - } + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } } const myRef_head = useRef(null); + const myRef_type_client = useRef(null); + const [selected_id, setselected_id] = useState(""); @@ -333,9 +440,10 @@ const Partner_Configuration_Technique = (props) => { //console.log(" form == ", form); var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Partner_Basic_Setup/"; - + setLoading(true); axios.post(myurl, form).then(res => { + setLoading(false); //console.log(" In Update_One_Config_Data res.data.status = " + res.data.status); //console.log(" In Update_One_Config_Data res.data.message r_class = " + res.data.message); @@ -352,13 +460,13 @@ const Partner_Configuration_Technique = (props) => { setdisplay_detail_config(); alert(res.data.message); - if ( document.getElementById('myRef_head')) { + if (document.getElementById('myRef_head')) { var divh = document.getElementById('myRef_head').offsetTop; - window.scrollTo({ - top: divh, - behavior: "smooth", - }); - } + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } } else { @@ -368,7 +476,7 @@ const Partner_Configuration_Technique = (props) => { } }).catch((error) => { - + setLoading(false); console.warn('UpdateStagiaireData : Not good man :( Update_One_Config_Data = ' + error); setUpdate_One_Config_Data_api("false"); alert(" Impossible de mettre à jour le paramétrage "); @@ -377,6 +485,158 @@ const Partner_Configuration_Technique = (props) => { } const [gridline_id, setgridline_id] = useState(""); + + const [display_detail_type_client, setdisplay_detail_type_client] = React.useState(); + + function handleClick_edit_config_From_Client_Type(selected_row_id) { + + var line = JSON.parse(Getall_Parter_type_client_result[selected_row_id]); + + setdisplay_detail_type_client("1"); + + + setselected_type_client_id(line._id); + + setp_type_client_code(line.code); + setp_type_client_desc(line.description); + setDialog_type_client_1_open(true); + + } + + const [Dialog_type_client_1_message, setDialog_type_client_1_message] = React.useState(false); + const [Dialog_type_client_1_open, setDialog_type_client_1_open] = React.useState(false); + + function Dialog_1_handle_change_type_client(message) { + setDialog_type_client_1_message(message); + setDialog_type_client_1_open(true); + } + + const Dialog_type_client_1_handleClose = () => { + //alert(" Utiliser le bouton 'fermer' "); + //setOpen(false); + }; + + const Dialog_type_client_1_handleClose_buton = () => { + setp_type_client_code(""); + setp_type_client_desc(""); + setselected_type_client_id(""); + setDialog_type_client_1_open(false); + }; + + + const [p_type_client_code, setp_type_client_code] = useState(""); + const [p_type_client_desc, setp_type_client_desc] = useState(""); + + const [selected_type_client_id, setselected_type_client_id] = useState(""); + + const [Add_Update_Client_Type_api, setAdd_Update_Client_Type_api] = useState(); + const [Add_Update_Client_Type_message, setAdd_Update_Client_Type_message] = useState(); + const [Add_Update_Client_Type_result, setAdd_Update_Client_Type_result] = useState(); + function Add_Update_Client_Type(event) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + + var myurl = ""; + + if (String(selected_type_client_id).trim().length > 2) { + // Il s'agit d'une mise à jour + myurl = process.env.REACT_APP_API_URL + "myclass/api/Update_Client_Type/"; + form.append("_id", selected_type_client_id); + form.append("code", p_type_client_code); + form.append("description", p_type_client_desc); + + + } else { + // Il s'agit d'une creation + myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Client_Type/"; + form.append("code", p_type_client_code); + form.append("description", p_type_client_desc); + + } + + setLoading(true); + axios.post(myurl, form).then(res => { + setLoading(false); + + if (String(res.data.status) === String("true")) { + //console.log(" In Add_Update_Client_Type res.data.status = " + res.data.status); + //console.log(" In Add_Update_Client_Type res.data.message r_class = " + res.data.message); + setAdd_Update_Client_Type_api("true"); + setAdd_Update_Client_Type_result(res.data.message); + Dialog_type_client_1_handleClose_buton(); + Getall_Parter_type_client(); + alert(res.data.message); + } + else { + setAdd_Update_Client_Type_api("false"); + setAdd_Update_Client_Type_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + + setLoading(false); + console.warn('Not good man :( Add_Update_Client_Type = ', error); + setAdd_Update_Client_Type_api("false"); + alert(" Impossible d'ajouter / mettre à jour les types de client"); + //setmyApimyApiMessage("") + }) + } + + + const [handleClick_delete_Type_Client_api, sethandleClick_delete_Type_Client_api] = useState(); + const [handleClick_delete_Type_Client_message, sethandleClick_delete_Type_Client_message] = useState(); + const [handleClick_delete_Type_Client_result, sethandleClick_delete_Type_Client_result] = useState(); + function handleClick_delete_Type_Client(event, cellValues) { + + var type_client_id = cellValues.row._id; + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", type_client_id); + + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_Client_Type/"; + + setLoading(true); + axios.post(myurl, form).then(res => { + + setLoading(false); + if (String(res.data.status) === String("true")) { + //console.log(" In handleClick_delete_Type_Client res.data.status = " + res.data.status); + //console.log(" In handleClick_delete_Type_Client res.data.message r_class = " + res.data.message); + sethandleClick_delete_Type_Client_api("true"); + sethandleClick_delete_Type_Client_result(res.data.message); + Dialog_type_client_1_handleClose_buton(); + Getall_Parter_type_client(); + alert(res.data.message); + + } + else { + sethandleClick_delete_Type_Client_api("false"); + sethandleClick_delete_Type_Client_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + setLoading(false); + console.warn('Not good man :( handleClick_delete_Type_Client = ', error); + sethandleClick_delete_Type_Client_api("false"); + alert(" Impossible de supprimer le type de client"); + //setmyApimyApiMessage("") + }) + } + + return (
{isLoading &&
@@ -403,6 +663,79 @@ const Partner_Configuration_Technique = (props) => { + + + + Type de client + + + {Dialog_type_client_1_message} + + + +
code + { + setp_type_client_code(e.target.value); + } + } + /> + +
+ +
Description + { + setp_type_client_desc(e.target.value); + } + } + /> + +
+ +
+ + + +
+
+ + {String(selected_type_client_id).trim().length > 2 && } + {String(selected_type_client_id).trim() === "" && } +
+ +
+ +
+
+ +
+ + +
+

Votre configuration technique

Utilisez les filtres !
@@ -499,304 +832,472 @@ const Partner_Configuration_Technique = (props) => {
-
-
-
+
+
+
+
+
+   + -   - - { - setSelectionModel(newSelectionModel); - /*if (newSelectionModel.length === 1) - handleClick_edit_config_From_Line(newSelectionModel);*/ - if (newSelectionModel.length !== 1) { - setp_detail_config_valeur(); - setp_detail_config_point(); - setConfig_data_changed(); - setconfig_data_edit_mode(); - setdisplay_detail_config(); - - - } - }} - selectionModel={selectionModel} - - localeText={frFR.components.MuiDataGrid.defaultProps.localeText} - rows={rowss.map((item, index) => ( - { - id: index, - _id: JSON.parse(item)._id, - config_name: JSON.parse(item).config_name, - config_value: JSON.parse(item).config_value, - } - ))} - - columns={columns} - pageSize={10} - className="datagridclass" - - onRowDoubleClick={(newSelectionModel) => { - setgridline_id(newSelectionModel.row.id); - - handleClick_edit_config_From_Line(newSelectionModel.row.id); + '& .line--statut--selected': { + backgroundColor: '#FBF2EF', + color: 'black', + }, + '& .line--statut--pair': { + backgroundColor: 'rgba(235, 235, 235, .7)', + color: 'black', + }, + '& .line--statut--impair': { + backgroundColor: '#FFFFFF', + color: 'black', + }, }} + > + { + setSelectionModel(newSelectionModel); + /*if (newSelectionModel.length === 1) + handleClick_edit_config_From_Line(newSelectionModel);*/ + if (newSelectionModel.length !== 1) { + setp_detail_config_valeur(); + setp_detail_config_point(); + setConfig_data_changed(); + setconfig_data_edit_mode(); + setdisplay_detail_config(); - rowsPerPageOptions={[10]} - //disableSelectionOnClick - components={{ - Toolbar: GridToolbar, - }} - //sx={datagridSx} - getCellClassName={(params) => { + } + }} + selectionModel={selectionModel} + + localeText={frFR.components.MuiDataGrid.defaultProps.localeText} + rows={rowss.map((item, index) => ( + { + id: index, + _id: JSON.parse(item)._id, + config_name: JSON.parse(item).config_name, + config_value: JSON.parse(item).config_value, + } + ))} + + columns={columns} + pageSize={10} + className="datagridclass" + + onRowDoubleClick={(newSelectionModel) => { + setgridline_id(newSelectionModel.row.id); + + handleClick_edit_config_From_Line(newSelectionModel.row.id); + + }} - //field === "order_header_status" - if (params.field === "order_header_status" && String(params.value) == "0") { - return 'cell--status--brouillon'; - } - - if (params.field === "order_header_status" && String(params.value) == "1") { - - return 'cell--status--encours'; - } - - if (params.field === "order_header_status" && String(params.value) == "2") { - return 'cell--status--traite'; - } - - if (params.field === "order_header_status" && String(params.value) == "3") { - return 'cell--status--facture'; - } - - }} - getRowClassName={(params) => { - - if (String(params.row.status) === "-1") { - return 'line--statut--annule'; - } - if (String(params.row.status) === "0") { - return 'line--statut--preinscrit'; - } - if (String(params.row.status) === "1") { - return 'line--statut--inscrit'; - } - - // Pour la gestion de la couleur de zone double cliquée - if (String(params.row.id) === String(gridline_id)) { - return 'line--statut--selected'; - } - else if (parseInt(String(params.row.id)) % 2 === 0) { - return 'line--statut--pair'; - } - else if (parseInt(String(params.row.id)) % 2 !== 0) { - return 'line--statut--impair'; - } - }} + rowsPerPageOptions={[10]} + //disableSelectionOnClick + components={{ + Toolbar: GridToolbar, + }} + //sx={datagridSx} + getCellClassName={(params) => { - /> - -
+ //field === "order_header_status" + if (params.field === "order_header_status" && String(params.value) == "0") { + return 'cell--status--brouillon'; + } + + if (params.field === "order_header_status" && String(params.value) == "1") { + + return 'cell--status--encours'; + } + + if (params.field === "order_header_status" && String(params.value) == "2") { + return 'cell--status--traite'; + } + + if (params.field === "order_header_status" && String(params.value) == "3") { + return 'cell--status--facture'; + } + + }} + getRowClassName={(params) => { + + if (String(params.row.status) === "-1") { + return 'line--statut--annule'; + } + if (String(params.row.status) === "0") { + return 'line--statut--preinscrit'; + } + if (String(params.row.status) === "1") { + return 'line--statut--inscrit'; + } + + // Pour la gestion de la couleur de zone double cliquée + if (String(params.row.id) === String(gridline_id)) { + return 'line--statut--selected'; + } + else if (parseInt(String(params.row.id)) % 2 === 0) { + return 'line--statut--pair'; + } + else if (parseInt(String(params.row.id)) % 2 !== 0) { + return 'line--statut--impair'; + } + }} + + + /> +
+
+ +
+
-
-
- -
- +
+ +
+
 
-
 
-
- {String(display_detail_config) === "1" &&
- {String(config_data_edit_mode) === "1" && -
Point de configuration
+ {String(display_detail_config) === "1" &&
+ {String(config_data_edit_mode) === "1" && +
Point de configuration
+ { + setp_detail_config_point(e.target.value); + setConfig_data_changed("1"); + } + } + + > + tva + smtp_server   + smtp_user   + smtp_user_pwd   + smtp_count_from_name + smtp_count_port + partner_smtp + + Nb Heure par jour + + + +
} + {String(config_data_edit_mode) !== "1" && +
Point de configuration
+ + + +
} + + {String(config_data_edit_mode) === "1" &&
Valeur de configuration
{ - setp_detail_config_point(e.target.value); + setp_detail_config_valeur(e.target.value); setConfig_data_changed("1"); } } - - > - tva - smtp_server   - smtp_user   - smtp_user_pwd   - smtp_count_from_name - smtp_count_port - partner_smtp - - Nb Heure par jour - - - + />
} - {String(config_data_edit_mode) !== "1" && -
Point de configuration
+ + {String(config_data_edit_mode) !== "1" &&
Valeur de configuration
- -
} - {String(config_data_edit_mode) === "1" &&
Valeur de configuration
- +
+   +
+ {String(Config_data_changed) === "1" && String(config_data_edit_mode) === "1" &&
+ /!\ Pensez à enregistrer les modifications +
} +
- InputLabelProps={{ - shrink: true, - }} - disabled={false} - className="disabled_style" - value={p_detail_config_valeur} - onChange={(e) => { - setp_detail_config_valeur(e.target.value); - setConfig_data_changed("1"); - } - } - /> -
} + {String(config_data_edit_mode) === "1" && String(Config_data_changed) === "1" &&
- {String(config_data_edit_mode) !== "1" &&
Valeur de configuration
- Enregistrer les modifications + - InputLabelProps={{ - shrink: true, - }} - disabled={false} - className="disabled_style" - value={p_detail_config_valeur} +
} - /> -
} + {String(config_data_edit_mode) === "1" &&
+ +
} +
-
-
-   -
- {String(Config_data_changed) === "1" && String(config_data_edit_mode) === "1" &&
- /!\ Pensez à enregistrer les modifications -
} -
- {String(config_data_edit_mode) === "1" && String(Config_data_changed) === "1" &&
+ {String(config_data_edit_mode) !== "1" &&
-
} - - {String(config_data_edit_mode) === "1" &&
- -
} +
+   +
+
+ } +
- {String(config_data_edit_mode) !== "1" &&
+
+
+
+
- +
+   + } + // Gestion des cellule "statut" + '& .cell--status--encours': { + backgroundColor: '#E6F7C8', + color: '#1a3e72', + fontWeight: 'light', + }, + '& .cell--status--traite': { + backgroundColor: '#E6CEAA', + color: '#F9E79F', + fontWeight: 'light', + }, + + + + + /*"& .MuiDataGrid-virtualScrollerRenderZone": { + "& .MuiDataGrid-row": { + "&:nth-child(2n)": { backgroundColor: "rgba(235, 235, 235, .7)" } + } + },*/ + "& .MuiDataGrid-columnHeaders": { + backgroundColor: "#c8cfd5", + color: "black", + fontSize: 14 + }, + + '& .line--statut--selected': { + backgroundColor: '#FBF2EF', + color: 'black', + }, + '& .line--statut--pair': { + backgroundColor: 'rgba(235, 235, 235, .7)', + color: 'black', + }, + '& .line--statut--impair': { + backgroundColor: '#FFFFFF', + color: 'black', + }, + + }} + > + { + setselectionModel_type_client(newSelectionModel); + + }} + selectionModel={selectionModel_type_client} + + localeText={frFR.components.MuiDataGrid.defaultProps.localeText} + rows={Getall_Parter_type_client_result.map((item, index) => ( + { + id: index, + _id: JSON.parse(item)._id, + code: JSON.parse(item).code, + description: JSON.parse(item).description, + } + ))} + + columns={columns_type_client} + pageSize={10} + className="datagridclass" + + onRowDoubleClick={(newSelectionModel) => { + //setgridline_id(newSelectionModel.row.id); + handleClick_edit_config_From_Client_Type(newSelectionModel.row.id); + + }} + + + rowsPerPageOptions={[10]} + //disableSelectionOnClick + components={{ + Toolbar: GridToolbar, + }} + //sx={datagridSx} + getCellClassName={(params) => { + + + //field === "order_header_status" + if (params.field === "order_header_status" && String(params.value) == "0") { + return 'cell--status--brouillon'; + } + + if (params.field === "order_header_status" && String(params.value) == "1") { + + return 'cell--status--encours'; + } + + if (params.field === "order_header_status" && String(params.value) == "2") { + return 'cell--status--traite'; + } + + if (params.field === "order_header_status" && String(params.value) == "3") { + return 'cell--status--facture'; + } + + }} + getRowClassName={(params) => { + + if (String(params.row.status) === "-1") { + return 'line--statut--annule'; + } + if (String(params.row.status) === "0") { + return 'line--statut--preinscrit'; + } + if (String(params.row.status) === "1") { + return 'line--statut--inscrit'; + } + + // Pour la gestion de la couleur de zone double cliquée + if (String(params.row.id) === String(gridline_id)) { + return 'line--statut--selected'; + } + else if (parseInt(String(params.row.id)) % 2 === 0) { + return 'line--statut--pair'; + } + else if (parseInt(String(params.row.id)) % 2 !== 0) { + return 'line--statut--impair'; + } + }} + + + /> + +
+ +
+ +
+ +
-   + +
+ +
+
 
- }
) }