11/11/2023 - 17h
parent
48db31afe1
commit
fcb1cf08bf
|
@ -6088,7 +6088,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
selected={one_SessionstartDate}
|
selected={one_SessionstartDate}
|
||||||
onChange={(date) => {
|
onChange={(date) => {
|
||||||
setone_SessionstartDate(date);
|
setone_SessionstartDate(date);
|
||||||
setsessionChanged(true);
|
setsessionChanged(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
showTimeSelect={false}
|
showTimeSelect={false}
|
||||||
|
|
|
@ -0,0 +1,908 @@
|
||||||
|
import React, { useRef, useState, useEffect } from "react";
|
||||||
|
import TextField from '@mui/material/TextField';
|
||||||
|
import MenuItem from '@mui/material/MenuItem';
|
||||||
|
import 'react-confirm-alert/src/react-confirm-alert.css'; // Import css
|
||||||
|
import Button from '@mui/material/Button';
|
||||||
|
import axios from "axios";
|
||||||
|
import { getCookie, setCookie } from 'react-use-cookie';
|
||||||
|
import { useHistory } from "react-router-dom";
|
||||||
|
import CheckOut from "./CheckOut";
|
||||||
|
import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
|
||||||
|
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
|
||||||
|
import { Editor } from '@tinymce/tinymce-react';
|
||||||
|
import parse from 'html-react-parser';
|
||||||
|
import { FcViewDetails, FcDisapprove } from "react-icons/fc";
|
||||||
|
import 'react-tooltip/dist/react-tooltip.css'
|
||||||
|
import { Tooltip } from 'react-tooltip'
|
||||||
|
import add_plus from "../mysy_img/plus.png";
|
||||||
|
import excel_icone from "../mysy_img/excel_icone.png";
|
||||||
|
import participants from "../mysy_img/participants.png";
|
||||||
|
import fileDownload from 'js-file-download'
|
||||||
|
import Popup from 'reactjs-popup';
|
||||||
|
import 'reactjs-popup/dist/index.css';
|
||||||
|
import { FcCancel, FcApproval, FcAcceptDatabase, FcPrint } from "react-icons/fc";
|
||||||
|
import DatePicker from "react-datepicker";
|
||||||
|
import "react-datepicker/dist/react-datepicker.css";
|
||||||
|
import { format } from 'date-fns'
|
||||||
|
import moment from "moment";
|
||||||
|
import InputAdornment from '@mui/material/InputAdornment';
|
||||||
|
import { AiFillCloseCircle } from "react-icons/ai";
|
||||||
|
import Box from '@mui/material/Box';
|
||||||
|
import { Typography, LinearProgress, sliderClasses } from '@mui/material';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
import { CiTrash } from "react-icons/ci";
|
||||||
|
import { MdAddCircleOutline, MdRemoveCircleOutline } from "react-icons/md";
|
||||||
|
import Dialog from '@mui/material/Dialog';
|
||||||
|
import DialogActions from '@mui/material/DialogActions';
|
||||||
|
import DialogContent from '@mui/material/DialogContent';
|
||||||
|
import DialogContentText from '@mui/material/DialogContentText';
|
||||||
|
import DialogTitle from '@mui/material/DialogTitle';
|
||||||
|
import { TransitionProps } from '@mui/material/transitions';
|
||||||
|
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
|
||||||
|
import FullCalendar from "@fullcalendar/react";
|
||||||
|
import daygridPlugin from "@fullcalendar/daygrid";
|
||||||
|
import interactionPlugin from "@fullcalendar/interaction";
|
||||||
|
import timeGridPlugin from "@fullcalendar/timegrid";
|
||||||
|
import { v4 as uuid } from "uuid";
|
||||||
|
import allLocales from '@fullcalendar/core/locales-all'
|
||||||
|
import { RepeatOnRounded } from "@mui/icons-material";
|
||||||
|
import { alignPropType } from "react-bootstrap/esm/types";
|
||||||
|
|
||||||
|
const Module_Agenda = (props) => {
|
||||||
|
|
||||||
|
const myconntected_employee_id = props.conntected_employee_id;
|
||||||
|
|
||||||
|
const [selected_employee_id, setselected_employee_id] = useState(props.conntected_employee_id);
|
||||||
|
|
||||||
|
const history = useHistory();
|
||||||
|
const [isLoading, setLoading] = useState();
|
||||||
|
|
||||||
|
const [p_filtre1, setp_filtre1] = useState("ressource_humaine");
|
||||||
|
const [p_filtre1_value, setp_filtre1_value] = useState("ressource_humaine");
|
||||||
|
|
||||||
|
const [p_filtre2, setp_filtre2] = useState();
|
||||||
|
const [p_filtre2_value, setp_filtre2_value] = useState();
|
||||||
|
|
||||||
|
|
||||||
|
const [Dialog_1_message, setDialog_1_message] = React.useState(false);
|
||||||
|
const [Dialog_1_open, setDialog_1_open] = React.useState(false);
|
||||||
|
function Dialog_1_handle_change_participant_session(message) {
|
||||||
|
setDialog_1_message(message);
|
||||||
|
setDialog_1_open(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
const Dialog_1_handleClose = () => {
|
||||||
|
//alert(" Utiliser le bouton 'fermer' ");
|
||||||
|
//setOpen(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
const Dialog_1_handleClose_buton = () => {
|
||||||
|
setDialog_1_open(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
const [mysy_events, setmysy_events] = useState();
|
||||||
|
|
||||||
|
const [Get_List_Agenda_Events_api, setGet_List_Agenda_Events_api] = useState();
|
||||||
|
const [Get_List_Agenda_Events_message, setGet_List_Agenda_Events_message] = useState();
|
||||||
|
const [Get_List_Agenda_Events_result, setGet_List_Agenda_Events_result] = useState();
|
||||||
|
function Get_List_Agenda_Events(event) {
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("related_collection", "ressource_humaine");
|
||||||
|
form.append("related_collection_recid", selected_employee_id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_Agenda_Event_List/";
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
//console.log(" In Get_List_Agenda_Events res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Get_List_Agenda_Events res.data.message r_class = " + res.data.message);
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
setGet_List_Agenda_Events_api("true");
|
||||||
|
setGet_List_Agenda_Events_result(res.data.message);
|
||||||
|
|
||||||
|
var tab_event = []
|
||||||
|
var filtre2 = res.data.message.map(obj => {
|
||||||
|
|
||||||
|
var local_val = {}
|
||||||
|
if (JSON.parse(obj).comment) {
|
||||||
|
local_val = {
|
||||||
|
'title': String(JSON.parse(obj).event_title),
|
||||||
|
'start': String(JSON.parse(obj).event_start),
|
||||||
|
'end': String(JSON.parse(obj).event_end),
|
||||||
|
'id': String(JSON.parse(obj)._id),
|
||||||
|
'comment': String(JSON.parse(obj).comment),
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
local_val = {
|
||||||
|
'title': String(JSON.parse(obj).event_title),
|
||||||
|
'start': String(JSON.parse(obj).event_start),
|
||||||
|
'end': String(JSON.parse(obj).event_end),
|
||||||
|
'id': String(JSON.parse(obj)._id),
|
||||||
|
'comment': "",
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
tab_event.push(local_val);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
setmysy_events(tab_event);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (String(res.data.status) === String("Err_Connexion")) {
|
||||||
|
alert('Erreur: ' + res.data.message);
|
||||||
|
history.push("/Connexion");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGet_List_Agenda_Events_api("false");
|
||||||
|
setGet_List_Agenda_Events_message(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Not good man :( Get_List_Agenda_Events = ', error);
|
||||||
|
setGet_List_Agenda_Events_api("false");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const [Get_Connected_User_List_Agenda_Events_api, setGet_Connected_User_List_Agenda_Events_api] = useState();
|
||||||
|
const [Get_Connected_User_List_Agenda_Events_message, setGet_Connected_User_List_Agenda_Events_message] = useState();
|
||||||
|
const [Get_Connected_User_List_Agenda_Events_result, setGet_Connected_User_List_Agenda_Events_result] = useState();
|
||||||
|
function Get_Connected_User_List_Agenda_Events(event) {
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("related_collection", "ressource_humaine");
|
||||||
|
form.append("related_collection_recid", myconntected_employee_id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_Agenda_Event_List/";
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
//console.log(" In Get_Connected_User_List_Agenda_Events res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Get_Connected_User_List_Agenda_Events res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
setGet_Connected_User_List_Agenda_Events_api("true");
|
||||||
|
setGet_Connected_User_List_Agenda_Events_result(res.data.message);
|
||||||
|
|
||||||
|
var tab_event = []
|
||||||
|
var filtre2 = res.data.message.map(obj => {
|
||||||
|
|
||||||
|
var local_val = {}
|
||||||
|
if (JSON.parse(obj).comment) {
|
||||||
|
local_val = {
|
||||||
|
'title': String(JSON.parse(obj).event_title),
|
||||||
|
'start': String(JSON.parse(obj).event_start),
|
||||||
|
'end': String(JSON.parse(obj).event_end),
|
||||||
|
'id': String(JSON.parse(obj)._id),
|
||||||
|
'comment': String(JSON.parse(obj).comment),
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
local_val = {
|
||||||
|
'title': String(JSON.parse(obj).event_title),
|
||||||
|
'start': String(JSON.parse(obj).event_start),
|
||||||
|
'end': String(JSON.parse(obj).event_end),
|
||||||
|
'id': String(JSON.parse(obj)._id),
|
||||||
|
'comment': "",
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
tab_event.push(local_val);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
setmysy_events(tab_event);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (String(res.data.status) === String("Err_Connexion")) {
|
||||||
|
alert('Erreur: ' + res.data.message);
|
||||||
|
history.push("/Connexion");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGet_Connected_User_List_Agenda_Events_api("false");
|
||||||
|
setGet_Connected_User_List_Agenda_Events_message(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Not good man :( Get_Connected_User_List_Agenda_Events = ', error);
|
||||||
|
setGet_Connected_User_List_Agenda_Events_api("false");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const [Get_List_Agenda_Events_For_Given_User_api, setGet_List_Agenda_Events_For_Given_User_api] = useState();
|
||||||
|
const [Get_List_Agenda_Events_For_Given_User_message, setGet_List_Agenda_Events_For_Given_User_message] = useState();
|
||||||
|
const [Get_List_Agenda_Events_For_Given_User_result, setGet_List_Agenda_Events_For_Given_User_result] = useState();
|
||||||
|
function Get_List_Agenda_Events_For_Given_User(local_selected_id) {
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("related_collection", "ressource_humaine");
|
||||||
|
form.append("related_collection_recid", local_selected_id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_Agenda_Event_List/";
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
//console.log(" In Get_List_Agenda_Events_For_Given_User res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Get_List_Agenda_Events_For_Given_User res.data.message r_class = " + res.data.message);
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
setGet_List_Agenda_Events_For_Given_User_api("true");
|
||||||
|
setGet_List_Agenda_Events_For_Given_User_result(res.data.message);
|
||||||
|
|
||||||
|
var tab_event = []
|
||||||
|
var filtre2 = res.data.message.map(obj => {
|
||||||
|
|
||||||
|
var local_val = {}
|
||||||
|
if (JSON.parse(obj).comment) {
|
||||||
|
local_val = {
|
||||||
|
'title': String(JSON.parse(obj).event_title),
|
||||||
|
'start': String(JSON.parse(obj).event_start),
|
||||||
|
'end': String(JSON.parse(obj).event_end),
|
||||||
|
'id': String(JSON.parse(obj)._id),
|
||||||
|
'comment': String(JSON.parse(obj).comment),
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
local_val = {
|
||||||
|
'title': String(JSON.parse(obj).event_title),
|
||||||
|
'start': String(JSON.parse(obj).event_start),
|
||||||
|
'end': String(JSON.parse(obj).event_end),
|
||||||
|
'id': String(JSON.parse(obj)._id),
|
||||||
|
'comment': "",
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
tab_event.push(local_val);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
setmysy_events(tab_event);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (String(res.data.status) === String("Err_Connexion")) {
|
||||||
|
alert('Erreur: ' + res.data.message);
|
||||||
|
history.push("/Connexion");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGet_List_Agenda_Events_For_Given_User_api("false");
|
||||||
|
setGet_List_Agenda_Events_For_Given_User_message(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Not good man :( Get_List_Agenda_Events_For_Given_User = ', error);
|
||||||
|
setGet_List_Agenda_Events_For_Given_User_api("false");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const myEventsList = []
|
||||||
|
const [events, setEvents] = useState([]);
|
||||||
|
const handleSelect = (info) => {
|
||||||
|
|
||||||
|
setp_detail_title("Nouvelle")
|
||||||
|
setp_detail_start(info.start)
|
||||||
|
setp_detail_end(info.end)
|
||||||
|
setp_detail_comment("");
|
||||||
|
setp_detail_event_id("");
|
||||||
|
|
||||||
|
setStartDate(info.start);
|
||||||
|
setendDate(info.end);
|
||||||
|
setDialog_1_open(true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*const { start, end } = info;
|
||||||
|
const eventNamePrompt = prompt("Enter, Nom evenment");
|
||||||
|
if (eventNamePrompt) {
|
||||||
|
|
||||||
|
setEvents([
|
||||||
|
...events,
|
||||||
|
{
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
title: eventNamePrompt,
|
||||||
|
id: uuid(),
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
}*/
|
||||||
|
};
|
||||||
|
|
||||||
|
const renderEventContent = (eventInfo) => {
|
||||||
|
//console.log(eventInfo);
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<b>{eventInfo.timeText}</b><br />
|
||||||
|
<i>{eventInfo.event.title}</i>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleEventClick = (arg) => {
|
||||||
|
setp_detail_title(arg.event.title)
|
||||||
|
setp_detail_start(arg.event.start)
|
||||||
|
setp_detail_end(arg.event.end)
|
||||||
|
setp_detail_event_id(arg.event.id);
|
||||||
|
if (arg.event.extendedProps.comment) {
|
||||||
|
setp_detail_comment(arg.event.extendedProps.comment);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
setp_detail_comment("");
|
||||||
|
|
||||||
|
setStartDate(arg.event.start);
|
||||||
|
setendDate(arg.event.end);
|
||||||
|
setDialog_1_open(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function Close_Dialog_Detail_Event_open() {
|
||||||
|
setDialog_1_open(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const [Getall_Training_Employee_No_Filter_api, setGetall_Training_Employee_No_Filter_api] = useState();
|
||||||
|
const [Getall_Training_Employee_No_Filter_message, setGetall_Training_Employee_No_Filter_message] = useState();
|
||||||
|
const [Getall_Training_Employee_No_Filter_result, setGetall_Training_Employee_No_Filter_result] = useState();
|
||||||
|
function Getall_Training_Employee_No_Filter(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_List_Ressource_Humaine_no_filter/";
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
//console.log(" In Getall_Training_Employee_No_Filter res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Getall_Training_Employee_No_Filter res.data.message r_class = " + res.data.message);
|
||||||
|
setGetall_Training_Employee_No_Filter_api("true");
|
||||||
|
setGetall_Training_Employee_No_Filter_result(res.data.message);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGetall_Training_Employee_No_Filter_api("false");
|
||||||
|
setGetall_Training_Employee_No_Filter_message(res.data.message);
|
||||||
|
alert(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Not good man :( Getall_Training_Employee_No_Filter = ', error);
|
||||||
|
setGetall_Training_Employee_No_Filter_api("false");
|
||||||
|
alert(" Impossible de recuperer la liste des employés");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
Get_Connected_User_List_Agenda_Events();
|
||||||
|
setselected_employee_id(myconntected_employee_id);
|
||||||
|
Getall_Training_Employee_No_Filter();
|
||||||
|
Getall_Training_Materiel_No_Filter();
|
||||||
|
|
||||||
|
}, [myconntected_employee_id])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const [p_detail_event_id, setp_detail_event_id] = useState();
|
||||||
|
const [p_detail_title, setp_detail_title] = useState();
|
||||||
|
const [p_detail_start, setp_detail_start] = useState();
|
||||||
|
const [p_detail_end, setp_detail_end] = useState();
|
||||||
|
const [p_detail_comment, setp_detail_comment] = useState();
|
||||||
|
|
||||||
|
const [startDate, setStartDate] = useState(new Date());
|
||||||
|
const [endDate, setendDate] = useState(new Date());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const [Update_One_Agenda_Event_api, setUpdate_One_Agenda_Event_api] = useState();
|
||||||
|
const [Update_One_Agenda_Event_message, setUpdate_One_Agenda_Event_message] = useState();
|
||||||
|
const [Update_One_Agenda_Event_result, setUpdate_One_Agenda_Event_result] = useState();
|
||||||
|
function Update_One_Agenda_Event() {
|
||||||
|
|
||||||
|
if (moment(endDate) <= moment(startDate)) {
|
||||||
|
alert(" Les dates de début et de fin sont incohérentes");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var new_title = p_detail_title;
|
||||||
|
var new_start_date = moment(startDate).format();
|
||||||
|
var new_end_date = moment(endDate).format();
|
||||||
|
var event_id = p_detail_event_id
|
||||||
|
|
||||||
|
//console.log(" ### new event = ", new_title, " -- ", new_start_date, " --- ", new_end_date, " : setp_detail_event_id = ", p_detail_event_id);
|
||||||
|
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
|
|
||||||
|
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("_id", p_detail_event_id);
|
||||||
|
form.append("related_collection", "ressource_humaine");
|
||||||
|
|
||||||
|
form.append("event_title", new_title);
|
||||||
|
form.append("event_start", new_start_date);
|
||||||
|
form.append("event_end", new_end_date);
|
||||||
|
form.append("related_collection_recid", selected_employee_id);
|
||||||
|
form.append("comment", p_detail_comment);
|
||||||
|
|
||||||
|
|
||||||
|
//console.log(" form == ", form);
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Agenda_Event/";
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
//console.log(" In Update_One_Agenda_Event res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Update_One_Agenda_Event res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
setUpdate_One_Agenda_Event_api("true");
|
||||||
|
setUpdate_One_Agenda_Event_result(res.data.message);
|
||||||
|
|
||||||
|
Get_List_Agenda_Events();
|
||||||
|
|
||||||
|
setp_detail_event_id();
|
||||||
|
setp_detail_title();
|
||||||
|
setp_detail_start();
|
||||||
|
setp_detail_end();
|
||||||
|
setp_detail_comment();
|
||||||
|
|
||||||
|
|
||||||
|
alert(res.data.message);
|
||||||
|
Close_Dialog_Detail_Event_open();
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setUpdate_One_Agenda_Event_api("false");
|
||||||
|
setUpdate_One_Agenda_Event_message(res.data.message);
|
||||||
|
alert(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('UpdateStagiaireData : Not good man :( Update_One_Agenda_Event = ' + error);
|
||||||
|
setUpdate_One_Agenda_Event_api("false");
|
||||||
|
alert(" Impossible de mettre à jour l'événement ");
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const [Delete_One_Agenda_Event_api, setDelete_One_Agenda_Event_api] = useState();
|
||||||
|
const [Delete_One_Agenda_Event_message, setDelete_One_Agenda_Event_message] = useState();
|
||||||
|
const [Delete_One_Agenda_Event_result, setDelete_One_Agenda_Event_result] = useState();
|
||||||
|
function Delete_One_Agenda_Event() {
|
||||||
|
|
||||||
|
|
||||||
|
var event_id = p_detail_event_id
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
|
|
||||||
|
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("_id", p_detail_event_id);
|
||||||
|
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_Agenda_Event/";
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
//console.log(" In Delete_One_Agenda_Event res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Delete_One_Agenda_Event res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
setDelete_One_Agenda_Event_api("true");
|
||||||
|
setDelete_One_Agenda_Event_result(res.data.message);
|
||||||
|
|
||||||
|
Get_List_Agenda_Events();
|
||||||
|
|
||||||
|
setp_detail_event_id();
|
||||||
|
setp_detail_title();
|
||||||
|
setp_detail_start();
|
||||||
|
setp_detail_end();
|
||||||
|
setp_detail_comment();
|
||||||
|
|
||||||
|
|
||||||
|
alert(res.data.message);
|
||||||
|
Close_Dialog_Detail_Event_open();
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setDelete_One_Agenda_Event_api("false");
|
||||||
|
setDelete_One_Agenda_Event_message(res.data.message);
|
||||||
|
alert(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
|
||||||
|
console.warn('UpdateStagiaireData : Not good man :( Delete_One_Agenda_Event = ' + error);
|
||||||
|
setDelete_One_Agenda_Event_api("false");
|
||||||
|
alert(" Impossible de supprimer l'événement ");
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const [Getall_Training_Materiel_No_Filter_api, setGetall_Training_Materiel_No_Filter_api] = useState();
|
||||||
|
const [Getall_Training_Materiel_No_Filter_message, setGetall_Training_Materiel_No_Filter_message] = useState();
|
||||||
|
const [Getall_Training_Materiel_No_Filter_result, setGetall_Training_Materiel_No_Filter_result] = useState();
|
||||||
|
function Getall_Training_Materiel_No_Filter(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_List_Ressource_Materielle_no_filter/";
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
//console.log(" In Getall_Training_Materiel_No_Filter res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Getall_Training_Materiel_No_Filter res.data.message r_class = " + res.data.message);
|
||||||
|
setGetall_Training_Materiel_No_Filter_api("true");
|
||||||
|
setGetall_Training_Materiel_No_Filter_result(res.data.message);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGetall_Training_Materiel_No_Filter_api("false");
|
||||||
|
setGetall_Training_Materiel_No_Filter_message(res.data.message);
|
||||||
|
alert(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Not good man :( Getall_Training_Materiel_No_Filter = ', error);
|
||||||
|
setGetall_Training_Materiel_No_Filter_api("false");
|
||||||
|
alert(" Impossible de recuperer la liste du materiel");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="module_agenda">
|
||||||
|
{isLoading && <div className="loader-container">
|
||||||
|
<div className="mysy_spinner"> <img src={img_loading_spin} /> </div>
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
<Dialog
|
||||||
|
open={Dialog_1_open}
|
||||||
|
onClose={Dialog_1_handleClose}
|
||||||
|
|
||||||
|
className="module_agenda"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
<DialogTitle>MySy Information</DialogTitle>
|
||||||
|
<DialogContent className="DialogContent_width">
|
||||||
|
<DialogContentText>
|
||||||
|
{Dialog_1_message}
|
||||||
|
</DialogContentText>
|
||||||
|
|
||||||
|
<div className="session_caract_Dialog" > Titre
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
|
||||||
|
name="event_dialog_title"
|
||||||
|
id="event_dialog_title"
|
||||||
|
|
||||||
|
fullWidth
|
||||||
|
|
||||||
|
value={p_detail_title}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_detail_title(e.target.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract_Dialog" > Debut
|
||||||
|
<DatePicker
|
||||||
|
name="event_dialog_start"
|
||||||
|
id="event_dialog_start"
|
||||||
|
selected={startDate}
|
||||||
|
onChange={(date) => setStartDate(date)}
|
||||||
|
className="disabled_style enable_style"
|
||||||
|
locale='fr-FR'
|
||||||
|
showTimeSelect
|
||||||
|
timeFormat="HH:mm"
|
||||||
|
timeIntervals={15}
|
||||||
|
dateFormat="dd/MM/yyyy HH:mm"
|
||||||
|
is24Hour
|
||||||
|
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="session_caract_Dialog" > Fin
|
||||||
|
<DatePicker
|
||||||
|
name="event_dialog_end"
|
||||||
|
id="event_dialog_end"
|
||||||
|
selected={endDate}
|
||||||
|
onChange={(date) => setendDate(date)}
|
||||||
|
className="disabled_style enable_style"
|
||||||
|
locale='fr-FR'
|
||||||
|
showTimeSelect
|
||||||
|
timeFormat="HH:mm"
|
||||||
|
timeIntervals={15}
|
||||||
|
dateFormat="dd/MM/yyyy HH:mm"
|
||||||
|
is24Hour
|
||||||
|
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract_Dialog_comment_2_lines" > Commentaire
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
|
||||||
|
name="event_dialog_comment"
|
||||||
|
id="event_dialog_comment"
|
||||||
|
|
||||||
|
fullWidth
|
||||||
|
|
||||||
|
value={p_detail_comment}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_detail_comment(e.target.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
multiline
|
||||||
|
minRows={2}
|
||||||
|
maxRows={2}
|
||||||
|
rows={2}
|
||||||
|
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</DialogContent>
|
||||||
|
|
||||||
|
<DialogActions>
|
||||||
|
<div className="div_row">
|
||||||
|
<div className="div_row_gauche">
|
||||||
|
{p_detail_event_id && String(p_detail_event_id) !== "" && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Mettre à jour</Button>}
|
||||||
|
{(!p_detail_event_id || String(p_detail_event_id) === "") && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Ajouter</Button>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
|
||||||
|
<Button onClick={Close_Dialog_Detail_Event_open} className="bton_annule_dialog" >Fermer</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</DialogActions>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{p_detail_event_id && String(p_detail_event_id) !== "" && <DialogActions>
|
||||||
|
<div className="div_row" style={{ "textAlign": "center" }}>
|
||||||
|
<Button onClick={(e) => {
|
||||||
|
const response = window.confirm("Confirmez-vous la suppression de l'événement ?");
|
||||||
|
if (!response) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Delete_One_Agenda_Event();
|
||||||
|
}
|
||||||
|
} className="bton_supprime_dialog">Supprimer l'événement</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</DialogActions>}
|
||||||
|
|
||||||
|
</Dialog>
|
||||||
|
|
||||||
|
<h3> Agenda et Planning </h3>
|
||||||
|
|
||||||
|
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||||
|
<div className="div_row_gauche texte_area_filter" >
|
||||||
|
<TextField
|
||||||
|
name="filtre1"
|
||||||
|
label="Choisir un champ"
|
||||||
|
select
|
||||||
|
sx={{ m: 1, width: '100%' }}
|
||||||
|
value={p_filtre1}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_filtre1(e.target.value);
|
||||||
|
setselected_employee_id("");
|
||||||
|
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<MenuItem value="ressource_humaine" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Employé </MenuItem>
|
||||||
|
<MenuItem value="ressource_materielle" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Materiel </MenuItem>
|
||||||
|
|
||||||
|
|
||||||
|
</TextField>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{p_filtre1 && String(p_filtre1) === "ressource_humaine" && <div className="div_row_droite texte_area_filter_value" >
|
||||||
|
|
||||||
|
selected_employee_id = {selected_employee_id}
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="filtre1_value"
|
||||||
|
id="filtre1_value"
|
||||||
|
select
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={selected_employee_id}
|
||||||
|
onChange={(e) => {
|
||||||
|
setselected_employee_id(e.target.value);
|
||||||
|
Get_List_Agenda_Events_For_Given_User(e.target.value);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{Getall_Training_Employee_No_Filter_result &&
|
||||||
|
Getall_Training_Employee_No_Filter_result.map((myclient) => (
|
||||||
|
<MenuItem key={JSON.parse(myclient)._id} value={JSON.parse(myclient)._id}
|
||||||
|
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>
|
||||||
|
{JSON.parse(myclient)._id} - {JSON.parse(myclient).nom} {JSON.parse(myclient).prenom}
|
||||||
|
|
||||||
|
</MenuItem>
|
||||||
|
))}
|
||||||
|
|
||||||
|
</TextField>
|
||||||
|
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{p_filtre1 && String(p_filtre1) === "ressource_materielle" && <div className="div_row_droite texte_area_filter_value" >
|
||||||
|
|
||||||
|
selected_employee_id = {selected_employee_id}
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="filtre1_value"
|
||||||
|
id="filtre1_value"
|
||||||
|
select
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={selected_employee_id}
|
||||||
|
onChange={(e) => { setselected_employee_id(e.target.value); }}
|
||||||
|
>
|
||||||
|
{Getall_Training_Materiel_No_Filter_result &&
|
||||||
|
Getall_Training_Materiel_No_Filter_result.map((myclient) => (
|
||||||
|
<MenuItem key={JSON.parse(myclient)._id} value={JSON.parse(myclient)._id}
|
||||||
|
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>
|
||||||
|
{JSON.parse(myclient).nom}
|
||||||
|
|
||||||
|
</MenuItem>
|
||||||
|
))}
|
||||||
|
|
||||||
|
</TextField>
|
||||||
|
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{p_filtre1 && <div className='filter_bton_add'>
|
||||||
|
<Tooltip id="my-tooltip01" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="my-tooltip01" data-tooltip-content="Ajouter une nouvelle ligne de filtre">
|
||||||
|
<MdAddCircleOutline onClick={(e) => {
|
||||||
|
setp_filtre2("1");
|
||||||
|
setp_filtre2_value("");
|
||||||
|
}} />
|
||||||
|
</a>
|
||||||
|
</div>}
|
||||||
|
{p_filtre1 && <div className='filter_bton_add'>
|
||||||
|
<Tooltip id="my-tooltip02" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="my-tooltip02" data-tooltip-content="Supprimer cette ligne de filtre">
|
||||||
|
<MdRemoveCircleOutline onClick={(e) => {
|
||||||
|
setp_filtre1();
|
||||||
|
setp_filtre1_value();
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style={{ "width": "90%", "marginLeft": "1%" }}>
|
||||||
|
<FullCalendar
|
||||||
|
locales={allLocales}
|
||||||
|
locale={'fr'}
|
||||||
|
editable
|
||||||
|
selectable
|
||||||
|
//events={events}
|
||||||
|
events={mysy_events}
|
||||||
|
|
||||||
|
select={handleSelect}
|
||||||
|
headerToolbar={{
|
||||||
|
start: "today prev next",
|
||||||
|
end: "dayGridMonth dayGridWeek dayGridDay",
|
||||||
|
}}
|
||||||
|
//eventContent={(info) => <EventItem info={info} />}
|
||||||
|
//plugins={[timeGridPlugin]}
|
||||||
|
plugins={[timeGridPlugin, daygridPlugin, interactionPlugin]}
|
||||||
|
views={["dayGridMonth", "dayGridWeek", "dayGridDay"]}
|
||||||
|
slotMinTime="07:00"
|
||||||
|
slotMaxTime="20:00"
|
||||||
|
scrollTime='08:00'
|
||||||
|
displayEventEnd={true}
|
||||||
|
eventContent={renderEventContent}
|
||||||
|
eventClick={handleEventClick}
|
||||||
|
|
||||||
|
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export default Module_Agenda;
|
|
@ -52,6 +52,7 @@ import Config_Documents from "./Config_Document";
|
||||||
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";
|
||||||
|
import Module_Agenda from "./Module_Agenda";
|
||||||
|
|
||||||
|
|
||||||
import Dialog from '@mui/material/Dialog';
|
import Dialog from '@mui/material/Dialog';
|
||||||
|
@ -306,7 +307,7 @@ const Partner = (props) => {
|
||||||
var list_menu = ['creation', 'infopartner', 'statistique', 'abonnement', 'affichage', 'ordervalide',
|
var list_menu = ['creation', 'infopartner', 'statistique', 'abonnement', 'affichage', 'ordervalide',
|
||||||
'mes_sessions', 'setuplms', 'facture', 'pricing', 'mes_clients', 'mes_devis', 'mes_cmd',
|
'mes_sessions', 'setuplms', 'facture', 'pricing', 'mes_clients', 'mes_devis', 'mes_cmd',
|
||||||
'mes_stagiaires', 'mes_employes', 'mon_materiel', 'config_document', 'factures_client', "config_technique",
|
'mes_stagiaires', 'mes_employes', 'mon_materiel', 'config_document', 'factures_client', "config_technique",
|
||||||
"config_champ_specific"]
|
"config_champ_specific", "module_agenda"]
|
||||||
|
|
||||||
|
|
||||||
if (action && list_menu.includes(action)) {
|
if (action && list_menu.includes(action)) {
|
||||||
|
@ -381,6 +382,18 @@ const Partner = (props) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function module_agenda_func(event) {
|
||||||
|
var security_retval = check_user_acces_right("config_document", "read");
|
||||||
|
if (security_retval === 1) {
|
||||||
|
setmenu("module_agenda");
|
||||||
|
setapiexcelimportmessage();
|
||||||
|
setformation_file_name();
|
||||||
|
history.push("/Partner/module_agenda");
|
||||||
|
} else {
|
||||||
|
Dialog_1_handle_acces_insuffisant("Vos droits ne sont pas suffisants pour acceder à la gestion des documents");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function config_technique_func(event) {
|
function config_technique_func(event) {
|
||||||
|
@ -999,6 +1012,11 @@ const Partner = (props) => {
|
||||||
{String(menu) === "infopartner" && <div className="sousmenu_selected" onClick={PersonnalData} > <FcHome className="icone_menu" /> MES INFORMATIONS</div>}
|
{String(menu) === "infopartner" && <div className="sousmenu_selected" onClick={PersonnalData} > <FcHome className="icone_menu" /> MES INFORMATIONS</div>}
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
|
|
||||||
|
|
||||||
|
{String(menu) !== "infopartner" && <div className="sousmenu" onClick={module_agenda_func}> <FcHome className="icone_menu" /> AGENDA & PLANNING </div>}
|
||||||
|
{String(menu) === "infopartner" && <div className="sousmenu_selected" onClick={module_agenda_func} > <FcHome className="icone_menu" /> AGENDA & PLANNING</div>}
|
||||||
|
<hr className="my_hr" />
|
||||||
|
|
||||||
{String(menu) !== "abonnement" && <div className="sousmenu" onClick={Abonnement_func} > <FcKey className="icone_menu" /> ABONNEMENT </div>}
|
{String(menu) !== "abonnement" && <div className="sousmenu" onClick={Abonnement_func} > <FcKey className="icone_menu" /> ABONNEMENT </div>}
|
||||||
{String(menu) === "abonnement" && <div className="sousmenu_selected" onClick={Abonnement_func} > <FcKey className="icone_menu" /> ABONNEMENT </div>}
|
{String(menu) === "abonnement" && <div className="sousmenu_selected" onClick={Abonnement_func} > <FcKey className="icone_menu" /> ABONNEMENT </div>}
|
||||||
<hr className="my_hr" />
|
<hr className="my_hr" />
|
||||||
|
@ -1380,6 +1398,13 @@ const Partner = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{String(menu) === "module_agenda" && <div className="div_droite">
|
||||||
|
|
||||||
|
<Module_Agenda conntected_employee_id={conntected_employee_id} />
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div className="pieddepage">
|
<div className="pieddepage">
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|
|
@ -42,7 +42,7 @@ import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
|
||||||
|
|
||||||
|
|
||||||
const Partner_Configuration_Technique = (props) => {
|
const Partner_Configuration_Technique = (props) => {
|
||||||
|
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const [submenu, setsubmenu] = useState("");
|
const [submenu, setsubmenu] = useState("");
|
||||||
const [rowss, setRows] = useState([]);
|
const [rowss, setRows] = useState([]);
|
||||||
|
@ -481,9 +481,6 @@ const Partner_Configuration_Technique = (props) => {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div className="div_row" ref={myRef_head} id="myRef_head" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
|
<div className="div_row" ref={myRef_head} id="myRef_head" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
|
||||||
|
|
||||||
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
|
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
|
||||||
|
|
|
@ -167,7 +167,7 @@ function SignIn() {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
var val = result['status'];
|
var val = result['status'];
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -83,4 +83,5 @@
|
||||||
@import "./components/partner_facture";
|
@import "./components/partner_facture";
|
||||||
@import "./components/partner_configuration_technique";
|
@import "./components/partner_configuration_technique";
|
||||||
@import "./components/config_champs_personnalise";
|
@import "./components/config_champs_personnalise";
|
||||||
|
@import "./components/module_agenda.scss";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue