25/06/2025 - 18h

branche_01062025
Cherif 2025-06-25 18:09:01 +02:00
parent a6baa4cbfe
commit 2a770120e8
3 changed files with 33 additions and 8 deletions

View File

@ -118,6 +118,10 @@ import Timeline, {
import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';
import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew';
import CircularProgress, {
CircularProgressProps,
} from '@mui/material/CircularProgress';
import randomColor from "randomcolor";
@ -2096,6 +2100,8 @@ const DisplayPartnerSession = (props) => {
const [Getall_TrainingSession_result, setGetall_TrainingSession_result] = useState();
function Getall_TrainingSession(event) {
setloading_datagrid(true);
var form = new FormData();
@ -2271,10 +2277,9 @@ const DisplayPartnerSession = (props) => {
setNew_Getall_TrainingSession_result(new_data2);
setNew_Getall_TrainingSession_result_Timeline_Item(timeline_item);
setNew_Getall_TrainingSession_result_Timeline_Group(timeline_grp);
}
setloading_datagrid(false);
}
else {
setGetall_TrainingSession_api("false");
@ -2283,6 +2288,7 @@ const DisplayPartnerSession = (props) => {
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
setalert_type("error");
setloading_datagrid(false);
}
setLoading(false);
@ -2291,6 +2297,7 @@ const DisplayPartnerSession = (props) => {
console.warn('Not good man :( Getall_TrainingSession = ', error);
setGetall_TrainingSession_api("false");
alert("Impossible de lancer la recherche");
setloading_datagrid(false);
//setmyApimyApiMessage("")
})
}
@ -2299,6 +2306,7 @@ const DisplayPartnerSession = (props) => {
function Getall_TrainingSession_no_filter(event) {
setloading_datagrid(true);
var form = new FormData();
const stored_cookie = getCookie('tokenmysypart');
@ -2308,7 +2316,6 @@ const DisplayPartnerSession = (props) => {
var myurl = process.env.REACT_APP_API_URL + "myclass/api/GetAllValideSessionPartner_List/";
axios.post(myurl, form).then(res => {
if (String(res.data.status) === String("true")) {
@ -2446,15 +2453,19 @@ const DisplayPartnerSession = (props) => {
}
setloading_datagrid(false)
}
else {
setGetall_TrainingSession_api("false");
setGetall_TrainingSession_message(res.data.message);
setloading_datagrid(false)
}
}).catch((error) => {
console.warn('Not good man :( Getall_TrainingSession = ', error);
setGetall_TrainingSession_api("false");
setloading_datagrid(false)
//setmyApimyApiMessage("")
})
}
@ -9307,6 +9318,8 @@ const DisplayPartnerSession = (props) => {
const [isLoading, setLoading] = useState();
const [loading_datagrid, setloading_datagrid] = useState(true);
// -- Gestion pièces jointes
@ -19021,8 +19034,6 @@ const DisplayPartnerSession = (props) => {
</div>}
<div style={{ "border": "None" }}>
{(!display_session_with_alert || display_session_with_alert !== true) &&
<div style={{ height: 850, width: '100%', paddingRight: '5px' }}>
@ -19138,6 +19149,10 @@ const DisplayPartnerSession = (props) => {
}}
>
<DataGrid
loading={loading_datagrid}
checkboxSelection
components={{
Toolbar: CustomToolbar
@ -26712,7 +26727,7 @@ const DisplayPartnerSession = (props) => {
{Get_List_Of_All_PJ_For_Session_result && Get_List_Of_All_PJ_For_Session_result.map((val) => (
<div className="div_row_list_pj" >
<nav style={{ "color": "green", "cursor": "pointer" }} onClick={Download_one_attached_document} name={(JSON.parse(val).file_name)} id={(JSON.parse(val).file_name)}> Télécharger &nbsp;<i> {(JSON.parse(val).file_business_object)}</i> </nav> <br />
{String(props.check_user_acces_right("session", "write")) === "1" && <Popup
{String(props.check_user_acces_right("session", "write")) === "1" && <Popup
trigger={
<nav style={{ "color": "red", "cursor": "pointer" }} > Supprimer</nav>

View File

@ -57,6 +57,7 @@ import Menu from '@mui/material/Menu';
import MoreVertIcon from '@mui/icons-material/MoreVert';
import Module_Alert_Confirmation from "./Module_Alert_Confirmation";
import { TbRuler2 } from 'react-icons/tb';
function PaperComponent(props) {
return (
@ -390,6 +391,8 @@ const DistplayPartnerTraningsPage = (props) => {
function GetAllClass_new(event) {
setloading_datagrid(true);
var form = new FormData();
// Recuperation des parametres
@ -435,6 +438,7 @@ const DistplayPartnerTraningsPage = (props) => {
// console.log(" String(data['status'] = ", String(data['status']));
setTableData(data['message']);
setRows(data['message']);
setloading_datagrid(false);
if (String(data['status']) === String("false")) {
//console.log("erreur rrrr:" + data['status'])
setmyApiResponse("False");
@ -447,6 +451,7 @@ const DistplayPartnerTraningsPage = (props) => {
}).catch((error) => {
console.error('Error:', error);
setmyApiResponse("false");
setloading_datagrid(false);
});
}
@ -2066,6 +2071,8 @@ const DistplayPartnerTraningsPage = (props) => {
const [ismobilephone, setismobilephone] = useState();
const [loading_datagrid, setloading_datagrid] = useState(true);
useEffect(() => {
Get_List_Domaines();
@ -3411,6 +3418,8 @@ const DistplayPartnerTraningsPage = (props) => {
New_Get_List_Categorie_result.length > 0 &&
<DataGrid
loading={loading_datagrid}
checkboxSelection
components={{
Toolbar: CustomToolbar
@ -3718,7 +3727,7 @@ const DistplayPartnerTraningsPage = (props) => {
<div className="div_row"> &nbsp; </div>
{String(props.check_user_acces_right("formation", "write")) === "1" && <div className="div_row">
{String(props.check_user_acces_right("formation", "write")) === "1" && <div className="div_row">
{selectionModel && selectionModel.length >= 1 && <div className="block_en_mass">
<nav >Traitement en masse </nav>
&nbsp;<br />

View File

@ -3830,7 +3830,8 @@ const Partner_Configuration_Technique = (props) => {
{display_detail_config && String(display_detail_config) === "1" && <div className="div_row">
<div className="session_caract"> Point de configuration<br />
<div className="session_caract"> Point de configuration <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required