01/01/2024- 18h
parent
368f43ede8
commit
a6abe58b2f
|
@ -62,8 +62,55 @@ const Dashbord_Ressources_Humaines = (props) => {
|
|||
{ field: 'agenda_event_start', headerName: 'Début', hide: false, minWidth: 150, flex: 1, maxWidth: 200 },
|
||||
{ field: 'agenda_event_end', headerName: 'Fin', hide: false, minWidth: 150, flex: 1, maxWidth: 200 },
|
||||
{ field: 'agenda_event_sequence_session_id', headerName: 'agenda_id', hide: true, maxWidth: 1 },
|
||||
]
|
||||
|
||||
|
||||
const [selectionModel_task_cost, setSelectionModel_task_cost] = React.useState([]);
|
||||
const columns_task_cost = [
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
|
||||
{ field: 'rh_civilite', headerName: 'Civ.', hide: false, minWidth: 50, flex: 1, maxWidth: 60 },
|
||||
{ field: 'rh_nom', headerName: 'Nom', hide: false, flex: 1, minWidth: 20 },
|
||||
{ field: 'rh_prenom', headerName: 'Prénom', hide: false, flex: 1, minWidth: 200 },
|
||||
{ field: 'rh_email', headerName: 'Email', hide: true, flex: 1, minWidth: 200 },
|
||||
{ field: 'rh_ismanager', headerName: 'Manager', hide: true, minWidth: 50, flex: 1, maxWidth: 100 },
|
||||
{ field: 'rh_fonction', headerName: 'Fonction', hide: false, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_telephone_mobile', headerName: 'Mobile', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_adr_adresse', headerName: 'Adesse', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_adr_code_postal', headerName: 'CP', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_adr_ville', headerName: 'Ville', hide: false, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_adr_pays', headerName: 'Pays', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
|
||||
|
||||
{ field: 'rh_contrat_date_debut', headerName: 'Ctrat Du', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_date_fin', headerName: 'Ctrat Au', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_type_contrat', headerName: 'Ctrat Type', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_type_employe', headerName: 'Ctrat Empl.', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_cout', headerName: 'Ctrat Cout', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_periodicite', headerName: 'Ctrat Périodicité', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_quantite', headerName: 'Ctrat Qte', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{ field: 'rh_contrat_groupe_prix_achat_id', headerName: 'Grp Prix ID', hide: true, Width: 0, },
|
||||
{ field: 'rh_contrat_groupe_prix_achat_code', headerName: 'Grp Prix Code', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
|
||||
{ field: 'rh_contrat_groupe_prix_achat_cout', headerName: 'Grp Prix Cout', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_groupe_prix_achat_periodicite', headerName: 'Grp Prix Périodicité', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
|
||||
|
||||
{ field: 'rh_event_planning_event_title', headerName: 'Planning Titre', hide: false, minWidth: 200, flex: 1, },
|
||||
{ field: 'rh_event_planning_even_comment', headerName: 'Planning Comment', hide: false, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_event_planning_event_type', headerName: 'Planning Type', hide: false, minWidth: 100, flex: 1, maxWidth: 100 },
|
||||
{ field: 'rh_event_planning_event_duration_hour', headerName: 'Planning Durée (h)', hide: false, minWidth: 50, flex: 1, maxWidth: 100 },
|
||||
{ field: 'rh_event_planning_agenda_date_jour', headerName: 'Planning Date', hide: false, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_event_planning_event_start', headerName: 'Planning Début', hide: false, minWidth: 150, flex: 1, maxWidth: 200 },
|
||||
{ field: 'rh_event_planning_event_end', headerName: 'Planning Fin', hide: false, minWidth: 150, flex: 1, maxWidth: 200 },
|
||||
{ field: 'rh_event_planning_event_cost', headerName: 'Planning Cout Total (HT)', hide: false, minWidth: 150, flex: 1, maxWidth: 150 },
|
||||
|
||||
]
|
||||
|
||||
|
||||
|
@ -78,7 +125,7 @@ const Dashbord_Ressources_Humaines = (props) => {
|
|||
const [tdb_title, settdb_title] = useState();
|
||||
|
||||
const [display_nb_column, setdisplay_nb_column] = useState("1");
|
||||
const [display_column_size, setdisplay_column_size] = useState("50%");
|
||||
const [display_column_size, setdisplay_column_size] = useState("100%");
|
||||
|
||||
|
||||
|
||||
|
@ -147,6 +194,71 @@ const Dashbord_Ressources_Humaines = (props) => {
|
|||
})
|
||||
}
|
||||
|
||||
const [Getall_Qry_RH_Task_Cost_Data_result_JSON, setGetall_Qry_RH_Task_Cost_Data_result_JSON] = useState([]);
|
||||
const [Getall_Qry_RH_Task_Cost_Data_api, setGetall_Qry_RH_Task_Cost_Data_api] = useState();
|
||||
const [Getall_Qry_RH_Task_Cost_Data_message, setGetall_Qry_RH_Task_Cost_Data_message] = useState();
|
||||
const [Getall_Qry_RH_Task_Cost_Data_result, setGetall_Qry_RH_Task_Cost_Data_result] = useState([]);
|
||||
function Getall_Qry_RH_Task_Cost_Data(event) {
|
||||
|
||||
var form = new FormData();
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
|
||||
var date_from = "";
|
||||
if (p_filter_date_from) {
|
||||
date_from = p_filter_date_from;
|
||||
|
||||
}
|
||||
|
||||
var date_to = "";
|
||||
if (p_filter_date_to) {
|
||||
date_to = p_filter_date_to;
|
||||
|
||||
}
|
||||
|
||||
|
||||
form.append("token", stored_cookie);
|
||||
form.append("session_start_date", date_from);
|
||||
form.append("session_end_date", date_to);
|
||||
form.append("filter_value", filter_value);
|
||||
form.append("tab_rh_id", "all");
|
||||
|
||||
form.append("event_type", filter_type_tache);
|
||||
|
||||
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Humain_Ressource_With_Planning_And_Cost/";
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
//console.log(" In Getall_Qry_RH_Task_Cost_Data res.data.status = " + res.data.status);
|
||||
//console.log(" In Getall_Qry_RH_Task_Cost_Data res.data.message r_class = " + res.data.message);
|
||||
|
||||
setGetall_Qry_RH_Task_Cost_Data_result_JSON(JSON.parse('[' + res.data.message + ']'));
|
||||
|
||||
var jsonObj = JSON.parse('[' + res.data.message + ']');
|
||||
|
||||
setGetall_Qry_RH_Task_Cost_Data_api("true");
|
||||
setGetall_Qry_RH_Task_Cost_Data_result(res.data.message);
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
setGetall_Qry_RH_Task_Cost_Data_api("false");
|
||||
setGetall_Qry_RH_Task_Cost_Data_message(res.data.message);
|
||||
alert(res.data.message)
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
setLoading(false);
|
||||
console.warn('Not good man :( Getall_Qry_RH_Task_Cost_Data = ', error);
|
||||
setGetall_Qry_RH_Task_Cost_Data_api("false");
|
||||
alert("Impossible de récuperer les données demandées")
|
||||
//setmyApimyApiMessage("")
|
||||
})
|
||||
}
|
||||
|
||||
const [dashbord_internal_code, setdashbord_internal_code] = useState("");
|
||||
const [gridline_id, setgridline_id] = useState("");
|
||||
|
||||
|
@ -233,6 +345,7 @@ const Dashbord_Ressources_Humaines = (props) => {
|
|||
|
||||
useEffect(() => {
|
||||
Getall_Qry_RH_Data();
|
||||
Getall_Qry_RH_Task_Cost_Data();
|
||||
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
|
@ -366,6 +479,7 @@ const Dashbord_Ressources_Humaines = (props) => {
|
|||
|
||||
<Button variant="contained" className="bton_enreg" onClick={(e) => {
|
||||
Getall_Qry_RH_Data();
|
||||
Getall_Qry_RH_Task_Cost_Data();
|
||||
|
||||
}}> Afficher
|
||||
</Button><br />
|
||||
|
@ -379,7 +493,7 @@ const Dashbord_Ressources_Humaines = (props) => {
|
|||
|
||||
<div style={{ "float": "left", "width": String(display_column_size), "height": "42rem", "float": "left", "paddingRight": "5px" }} >
|
||||
<div className="titre1" style={{ "float": "left", "cursor": "none" }}>
|
||||
<nav style={{ "width": "90%", "float": "left", "textAlign": "center" }}> TBD Employés </nav>
|
||||
<nav style={{ "width": "90%", "float": "left", "textAlign": "center" }}> TBD Employés - Détail Tâche </nav>
|
||||
<Tooltip className="tooltip_css" id="my-tooltip01" style={{ "fontSize": "12px" }} />
|
||||
<a data-tooltip-id="my-tooltip01" data-tooltip-html="Ajouter à ma liste de TBD">
|
||||
<nav style={{ "width": "9%", "float": "right", "textAlign": "right", "cursor": "pointer" }}>
|
||||
|
@ -487,27 +601,16 @@ const Dashbord_Ressources_Humaines = (props) => {
|
|||
))}
|
||||
|
||||
columns={columns}
|
||||
pageSize={10}
|
||||
pageSize={20}
|
||||
className="datagridclass"
|
||||
|
||||
onRowDoubleClick={(newSelectionModel) => {
|
||||
/*setgridline_id(newSelectionModel.row.id);
|
||||
setaddOneSession("0");
|
||||
setEdite_session("0");
|
||||
//handleClick_edit_session_From_Line(newSelectionModel.row.id);
|
||||
|
||||
setselected_session_id(newSelectionModel.row._id);
|
||||
|
||||
setsession_selected_row_id(newSelectionModel.row.id);
|
||||
|
||||
setDialog_2_message(String(JSON.parse(rowss[newSelectionModel.row.id]).title));
|
||||
setDialog_2_open(true);*/
|
||||
|
||||
|
||||
}}
|
||||
|
||||
|
||||
|
||||
rowsPerPageOptions={[10]}
|
||||
rowsPerPageOptions={[20]}
|
||||
disableSelectionOnClick
|
||||
components={{
|
||||
Toolbar: GridToolbar,
|
||||
|
@ -564,6 +667,206 @@ const Dashbord_Ressources_Humaines = (props) => {
|
|||
</div>
|
||||
|
||||
|
||||
<div style={{ "float": "left", "width": "100%", "paddingRight": "5px" }}>
|
||||
|
||||
|
||||
<div style={{ "float": "left", "width": String(display_column_size), "height": "42rem", "float": "left", "paddingRight": "5px" }} >
|
||||
<div className="titre1" style={{ "float": "left", "cursor": "none" }}>
|
||||
<nav style={{ "width": "90%", "float": "left", "textAlign": "center" }}> TBD Employés Détail Taches et Coût</nav>
|
||||
<Tooltip className="tooltip_css" id="my-tooltip01" style={{ "fontSize": "12px" }} />
|
||||
<a data-tooltip-id="my-tooltip01" data-tooltip-html="Ajouter à ma liste de TBD">
|
||||
<nav style={{ "width": "9%", "float": "right", "textAlign": "right", "cursor": "pointer" }}>
|
||||
<MdOutlineAddchart style={{ "cursor": "pointer", }} onClick={(e) => settdb_title("3")} />
|
||||
</nav>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{tdb_title && String(tdb_title) === "3" && <nav> Donnez un titre <TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="tdb_title"
|
||||
id="tdb_title"
|
||||
text
|
||||
|
||||
InputLabelProps={{
|
||||
shrink: true,
|
||||
}}
|
||||
disabled={false}
|
||||
className="disabled_style"
|
||||
|
||||
|
||||
/>
|
||||
<nav style={{ "textAlign": "center" }}> <button onClick={(event) => {
|
||||
setdashbord_internal_code("RESSOURCES_HUMAINES_02")
|
||||
Add_To_User_TBD("tbd_rh_02");
|
||||
|
||||
}}> Ajouter </button> <button onClick={(e) => settdb_title("0")}> Fermer </button>
|
||||
</nav>
|
||||
|
||||
</nav>}
|
||||
|
||||
<Box style={{ "color": "black", "height": "30rem" }}>
|
||||
|
||||
|
||||
<div className="session_data">
|
||||
<div style={{ "border": "None" }}>
|
||||
|
||||
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
height: 500,
|
||||
width: '100%',
|
||||
paddingRight: '1px',
|
||||
|
||||
"& .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',
|
||||
},
|
||||
|
||||
}}
|
||||
>
|
||||
<DataGrid
|
||||
checkboxSelection
|
||||
|
||||
onSelectionModelChange={(newSelectionModel) => {
|
||||
setSelectionModel_task_cost(newSelectionModel);
|
||||
/*if (newSelectionModel.length === 1)
|
||||
handleClick_edit_session_From_Line(newSelectionModel);*/
|
||||
if (newSelectionModel.length !== 1) {
|
||||
/* setaddOneParticipant();
|
||||
setdisplay_detail_insc();
|
||||
setselected_code_session();
|
||||
setsubmenu();*/
|
||||
}
|
||||
}}
|
||||
selectionModel={selectionModel_task_cost}
|
||||
|
||||
localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
|
||||
rows={Getall_Qry_RH_Task_Cost_Data_result.map((item, index) => (
|
||||
{
|
||||
id: index,
|
||||
_id: JSON.parse(item)._id,
|
||||
rh_civilite: JSON.parse(item).rh_civilite,
|
||||
rh_nom: JSON.parse(item).rh_nom,
|
||||
rh_prenom: JSON.parse(item).rh_prenom,
|
||||
rh_email: JSON.parse(item).rh_email,
|
||||
rh_ismanager: JSON.parse(item).rh_ismanager,
|
||||
rh_fonction: JSON.parse(item).rh_fonction,
|
||||
rh_telephone_mobile: JSON.parse(item).rh_telephone_mobile,
|
||||
rh_adr_adresse: JSON.parse(item).rh_adr_adresse,
|
||||
rh_adr_code_postal: JSON.parse(item).rh_adr_code_postal,
|
||||
rh_adr_ville: JSON.parse(item).rh_adr_ville,
|
||||
rh_adr_pays: JSON.parse(item).rh_adr_pays,
|
||||
rh_contrat_date_debut: JSON.parse(item).rh_contrat_date_debut,
|
||||
rh_contrat_date_fin: JSON.parse(item).rh_contrat_date_fin,
|
||||
rh_contrat_type_contrat: JSON.parse(item).rh_contrat_type_contrat,
|
||||
rh_contrat_type_employe: JSON.parse(item).rh_contrat_type_employe,
|
||||
rh_contrat_cout: JSON.parse(item).rh_contrat_cout,
|
||||
rh_contrat_periodicite: JSON.parse(item).rh_contrat_periodicite,
|
||||
rh_contrat_quantite: JSON.parse(item).rh_contrat_quantite,
|
||||
rh_contrat_groupe_prix_achat_id: JSON.parse(item).rh_contrat_groupe_prix_achat_id,
|
||||
rh_contrat_groupe_prix_achat_code: JSON.parse(item).rh_contrat_groupe_prix_achat_code,
|
||||
|
||||
|
||||
rh_contrat_groupe_prix_achat_cout: JSON.parse(item).rh_contrat_groupe_prix_achat_cout,
|
||||
rh_contrat_groupe_prix_achat_periodicite: JSON.parse(item).rh_contrat_groupe_prix_achat_periodicite,
|
||||
rh_event_planning_event_title: JSON.parse(item).rh_event_planning_event_title,
|
||||
rh_event_planning_even_comment: JSON.parse(item).rh_event_planning_even_comment,
|
||||
rh_event_planning_event_type: JSON.parse(item).rh_event_planning_event_type,
|
||||
rh_event_planning_event_duration_hour: JSON.parse(item).rh_event_planning_event_duration_hour,
|
||||
rh_event_planning_agenda_date_jour: JSON.parse(item).rh_event_planning_agenda_date_jour,
|
||||
rh_event_planning_event_start: JSON.parse(item).rh_event_planning_event_start,
|
||||
rh_event_planning_event_end: JSON.parse(item).rh_event_planning_event_end,
|
||||
rh_event_planning_event_cost: JSON.parse(item).rh_event_planning_event_cost,
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
))}
|
||||
|
||||
columns={columns_task_cost}
|
||||
pageSize={10}
|
||||
className="datagridclass"
|
||||
|
||||
onRowDoubleClick={(newSelectionModel) => {
|
||||
|
||||
}}
|
||||
|
||||
|
||||
|
||||
rowsPerPageOptions={[10]}
|
||||
disableSelectionOnClick
|
||||
components={{
|
||||
Toolbar: GridToolbar,
|
||||
}}
|
||||
//sx={datagridSx}
|
||||
getCellClassName={(params) => {
|
||||
|
||||
// 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';
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
getRowClassName={(params) => {
|
||||
|
||||
// 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';
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
|
||||
/>
|
||||
</Box>
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</Box>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>)
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,483 @@
|
|||
import React, { useRef, useState, useEffect } from "react";
|
||||
import 'react-confirm-alert/src/react-confirm-alert.css'; // Import css
|
||||
import axios from "axios";
|
||||
import { getCookie, setCookie } from 'react-use-cookie';
|
||||
import { useHistory } from "react-router-dom";
|
||||
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
|
||||
import 'react-tooltip/dist/react-tooltip.css'
|
||||
import { Tooltip } from 'react-tooltip'
|
||||
import fileDownload from 'js-file-download'
|
||||
import Popup from 'reactjs-popup';
|
||||
import 'reactjs-popup/dist/index.css';
|
||||
import "react-datepicker/dist/react-datepicker.css";
|
||||
import Box from '@mui/material/Box';
|
||||
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
|
||||
import { tokens } from "../theme";
|
||||
import { MdDeleteForever } from "react-icons/md";
|
||||
import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
|
||||
import {
|
||||
useTheme,
|
||||
} from "@mui/material";
|
||||
|
||||
import { ResponsiveBar } from "@nivo/bar";
|
||||
|
||||
import { RiFileExcel2Line } from "react-icons/ri";
|
||||
|
||||
const Dashbord_Ressources_Humaines_Tache_Couts = (props) => {
|
||||
const [gridline_id, setgridline_id] = useState("");
|
||||
const [isLoading, setLoading] = useState();
|
||||
const [selectionModel, setSelectionModel] = React.useState([]);
|
||||
const [user_dashbord_id, setuser_dashbord_id] = useState(props.user_dashbord_id);
|
||||
|
||||
var date_today_90j = new Date();
|
||||
date_today_90j.setDate(date_today_90j.getDate() - 90);
|
||||
|
||||
const [selectionModel_task_cost, setSelectionModel_task_cost] = React.useState([]);
|
||||
const columns_task_cost = [
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
|
||||
{ field: 'rh_civilite', headerName: 'Civ.', hide: false, minWidth: 50, flex: 1, maxWidth: 60 },
|
||||
{ field: 'rh_nom', headerName: 'Nom', hide: false, flex: 1, minWidth: 20 },
|
||||
{ field: 'rh_prenom', headerName: 'Prénom', hide: false, flex: 1, minWidth: 200 },
|
||||
{ field: 'rh_email', headerName: 'Email', hide: true, flex: 1, minWidth: 200 },
|
||||
{ field: 'rh_ismanager', headerName: 'Manager', hide: true, minWidth: 50, flex: 1, maxWidth: 100 },
|
||||
{ field: 'rh_fonction', headerName: 'Fonction', hide: false, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_telephone_mobile', headerName: 'Mobile', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_adr_adresse', headerName: 'Adesse', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_adr_code_postal', headerName: 'CP', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_adr_ville', headerName: 'Ville', hide: false, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_adr_pays', headerName: 'Pays', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
|
||||
|
||||
{ field: 'rh_contrat_date_debut', headerName: 'Ctrat Du', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_date_fin', headerName: 'Ctrat Au', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_type_contrat', headerName: 'Ctrat Type', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_type_employe', headerName: 'Ctrat Empl.', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_cout', headerName: 'Ctrat Cout', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_periodicite', headerName: 'Ctrat Périodicité', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_quantite', headerName: 'Ctrat Qte', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_groupe_prix_achat_id', headerName: 'Grp Prix ID', hide: true, Width: 0, },
|
||||
{ field: 'rh_contrat_groupe_prix_achat_code', headerName: 'Grp Prix Code', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_groupe_prix_achat_cout', headerName: 'Grp Prix Cout', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_contrat_groupe_prix_achat_periodicite', headerName: 'Grp Prix Périodicité', hide: true, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
|
||||
|
||||
{ field: 'rh_event_planning_event_title', headerName: 'Planning Titre', hide: false, minWidth: 200, flex: 1, },
|
||||
{ field: 'rh_event_planning_even_comment', headerName: 'Planning Comment', hide: false, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_event_planning_event_type', headerName: 'Planning Type', hide: false, minWidth: 100, flex: 1, maxWidth: 100 },
|
||||
{ field: 'rh_event_planning_event_duration_hour', headerName: 'Planning Durée (h)', hide: false, minWidth: 50, flex: 1, maxWidth: 100 },
|
||||
{ field: 'rh_event_planning_agenda_date_jour', headerName: 'Planning Date', hide: false, minWidth: 100, flex: 1, maxWidth: 150 },
|
||||
{ field: 'rh_event_planning_event_start', headerName: 'Planning Début', hide: false, minWidth: 150, flex: 1, maxWidth: 200 },
|
||||
{ field: 'rh_event_planning_event_end', headerName: 'Planning Fin', hide: false, minWidth: 150, flex: 1, maxWidth: 200 },
|
||||
{ field: 'rh_event_planning_event_cost', headerName: 'Planning Cout Total (HT)', hide: false, minWidth: 150, flex: 1, maxWidth: 150 },
|
||||
|
||||
]
|
||||
|
||||
const [p_filter_date_from, setp_filter_date_from] = useState(date_today_90j.toLocaleDateString('fr-FR'));
|
||||
const [p_filter_date_to, setp_filter_date_to] = useState(new Date().toLocaleDateString('fr-FR'));
|
||||
|
||||
|
||||
|
||||
const [event_type_filter, setevent_type_filter] = useState(props.user_dashbord_filter_type_envent);
|
||||
|
||||
const [filter_value, setfilter_value] = useState("");
|
||||
|
||||
const [Getall_Qry_RH_Task_Cost_Data_result_JSON, setGetall_Qry_RH_Task_Cost_Data_result_JSON] = useState([]);
|
||||
const [Getall_Qry_RH_Task_Cost_Data_api, setGetall_Qry_RH_Task_Cost_Data_api] = useState();
|
||||
const [Getall_Qry_RH_Task_Cost_Data_message, setGetall_Qry_RH_Task_Cost_Data_message] = useState();
|
||||
const [Getall_Qry_RH_Task_Cost_Data_result, setGetall_Qry_RH_Task_Cost_Data_result] = useState([]);
|
||||
function Getall_Qry_RH_Task_Cost_Data(event) {
|
||||
|
||||
var form = new FormData();
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
|
||||
var date_from = "";
|
||||
if (p_filter_date_from) {
|
||||
date_from = p_filter_date_from;
|
||||
|
||||
}
|
||||
|
||||
var date_to = "";
|
||||
if (p_filter_date_to) {
|
||||
date_to = p_filter_date_to;
|
||||
|
||||
}
|
||||
|
||||
|
||||
form.append("token", stored_cookie);
|
||||
form.append("session_start_date", date_from);
|
||||
form.append("session_end_date", date_to);
|
||||
form.append("filter_value", filter_value);
|
||||
form.append("tab_rh_id", "all");
|
||||
|
||||
form.append("event_type", event_type_filter);
|
||||
|
||||
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Humain_Ressource_With_Planning_And_Cost/";
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
//console.log(" In Getall_Qry_RH_Task_Cost_Data res.data.status = " + res.data.status);
|
||||
//console.log(" In Getall_Qry_RH_Task_Cost_Data res.data.message r_class = " + res.data.message);
|
||||
|
||||
setGetall_Qry_RH_Task_Cost_Data_result_JSON(JSON.parse('[' + res.data.message + ']'));
|
||||
|
||||
var jsonObj = JSON.parse('[' + res.data.message + ']');
|
||||
|
||||
setGetall_Qry_RH_Task_Cost_Data_api("true");
|
||||
setGetall_Qry_RH_Task_Cost_Data_result(res.data.message);
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
setGetall_Qry_RH_Task_Cost_Data_api("false");
|
||||
setGetall_Qry_RH_Task_Cost_Data_message(res.data.message);
|
||||
alert(res.data.message)
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
setLoading(false);
|
||||
console.warn('Not good man :( Getall_Qry_RH_Task_Cost_Data = ', error);
|
||||
setGetall_Qry_RH_Task_Cost_Data_api("false");
|
||||
alert("Impossible de récuperer les données demandées")
|
||||
//setmyApimyApiMessage("")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
const [Remove_From_User_TBD_api, setRemove_From_User_TBD_api] = useState();
|
||||
const [Remove_From_User_TBD_message, setRemove_From_User_TBD_message] = useState();
|
||||
const [Remove_From_User_TBD_result, setRemove_From_User_TBD_result] = useState();
|
||||
function Remove_From_User_TBD() {
|
||||
|
||||
var form = new FormData();
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
|
||||
|
||||
|
||||
form.append("token", stored_cookie);
|
||||
form.append("user_dashbord_id", user_dashbord_id);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_To_User_Dashbord/";
|
||||
|
||||
//console.log(" ## myurl = ", myurl);
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
//console.log(" In Remove_From_User_TBD res.data.status = " + res.data.status);
|
||||
//console.log(" In Remove_From_User_TBD res.data.message r_class = " + res.data.message);
|
||||
|
||||
setRemove_From_User_TBD_api("true");
|
||||
setRemove_From_User_TBD_result(res.data.message);
|
||||
Getall_Qry_RH_Task_Cost_Data();
|
||||
alert(res.data.message);
|
||||
window.location.reload();
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
setRemove_From_User_TBD_api("false");
|
||||
setRemove_From_User_TBD_message(res.data.message);
|
||||
alert(res.data.message)
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
setLoading(false);
|
||||
console.warn('Not good man :( Remove_From_User_TBD = ', error);
|
||||
setRemove_From_User_TBD_api("false");
|
||||
alert("Impossible de supprimer le tableau de bord de votre liste");
|
||||
//setmyApimyApiMessage("")
|
||||
})
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
setp_filter_date_from(props.user_dashbord_filter_start);
|
||||
setp_filter_date_to(props.user_dashbord_filter_end);
|
||||
setevent_type_filter(props.user_dashbord_filter_type_envent);
|
||||
|
||||
|
||||
Getall_Qry_RH_Task_Cost_Data();
|
||||
|
||||
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}, [])
|
||||
|
||||
|
||||
function Export_Dashbord_to_CSV(local_dashbord_internal_id) {
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
|
||||
var nom_fichier_cmd = "export_csv.csv";
|
||||
//console.log(" nom_fichier_cmd = ", nom_fichier_cmd, " --- local_dashbord_internal_id = ", local_dashbord_internal_id);
|
||||
|
||||
var url = process.env.REACT_APP_API_URL + "myclass/api/TBD_RH_01_Export_Dashbord_To_Csv/" + stored_cookie + "/" + local_dashbord_internal_id;
|
||||
|
||||
//console.log(" nom_fichier_cmd = ", nom_fichier_cmd, " --- selected_id = ", selected_id, " --- url =", url);
|
||||
setLoading(true);
|
||||
axios.get(url, { responseType: 'blob', },)
|
||||
.then((res) => {
|
||||
setLoading(false);
|
||||
//console.log(" In Export_Dashbord_to_CSV res.data = " + res.data);
|
||||
if (String(res.data) === String("false")) {
|
||||
alert("Impossible d'exporter les données (2) ");
|
||||
} else {
|
||||
fileDownload(res.data, nom_fichier_cmd)
|
||||
|
||||
}
|
||||
}).catch((error) => {
|
||||
setLoading(false);
|
||||
console.error('Error:', error);
|
||||
alert(" Impossible d'exporter les données ")
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="dashbord_session" style={{ "marginLeft": "1px", "marginRight": "2px" }}>
|
||||
{isLoading && <div className="loader-container">
|
||||
<div className="mysy_spinner"> <img src={img_loading_spin} /> </div>
|
||||
</div>}
|
||||
|
||||
<div style={{ "height": "40rem" }}>
|
||||
|
||||
<div className="titre1" style={{ "float": "left", "cursor": "none" }}>
|
||||
<nav style={{ "width": "80%", "float": "left", "textAlign": "center" }}> TBD : {props.user_dashbord_title} - Du : {props.user_dashbord_filter_start} au : {props.user_dashbord_filter_end}</nav>
|
||||
<Tooltip className="tooltip_css" id="my-tooltip02" style={{ "fontSize": "12px" }} />
|
||||
<a data-tooltip-id="my-tooltip02" data-tooltip-html="Supprimer de ma liste de TBD">
|
||||
<Popup
|
||||
trigger={
|
||||
<nav style={{ "width": "9%", "float": "right", "textAlign": "right", "cursor": "pointer" }}>
|
||||
<MdDeleteForever style={{ "cursor": "pointer", }} />
|
||||
</nav>
|
||||
}
|
||||
modal
|
||||
nested
|
||||
position="center center"
|
||||
>
|
||||
{close => (
|
||||
<div>
|
||||
<button className="gest_close" onClick={close}>
|
||||
×
|
||||
</button>
|
||||
<div className="gest_header"> MySy Information </div>
|
||||
<div className="gest_content">
|
||||
{' '}
|
||||
|
||||
En confirmant cette opération, le tableau sera supprimé de votre tableau de bord global.<br />
|
||||
Vous pourrez le rajouter à nouveau si besoin. <br />
|
||||
|
||||
</div>
|
||||
<div className="gest_actions">
|
||||
<div style={{ "width": "45%", "float": "left" }}>
|
||||
<button className="gest_bton_popup" onClick={(event) => {
|
||||
Remove_From_User_TBD();
|
||||
//console.log('modal closed ');
|
||||
close();
|
||||
}}> Valider </button>
|
||||
|
||||
</div>
|
||||
<div style={{ "width": "45%", "float": "right" }}>
|
||||
<button
|
||||
className="gest_bton_popup"
|
||||
onClick={() => {
|
||||
console.log('modal closed ');
|
||||
close();
|
||||
}}
|
||||
>
|
||||
Annuler
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</Popup>
|
||||
</a>
|
||||
|
||||
<Tooltip className="tooltip_css" id="my-tooltip03" style={{ "fontSize": "12px" }} />
|
||||
<a data-tooltip-id="my-tooltip03" data-tooltip-html="Export Csv/Excel">
|
||||
<nav style={{ "width": "9%", "float": "right", "textAlign": "right", "cursor": "pointer" }}>
|
||||
<RiFileExcel2Line style={{ "cursor": "pointer", }} onClick={(event) => {
|
||||
Export_Dashbord_to_CSV(props.user_dashbord_id);
|
||||
|
||||
}} />
|
||||
</nav>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<Box style={{ "color": "black", "height": "30rem" }}>
|
||||
|
||||
|
||||
<div className="session_data">
|
||||
<div style={{ "border": "None" }}>
|
||||
|
||||
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
height: 500,
|
||||
width: '100%',
|
||||
paddingRight: '1px',
|
||||
|
||||
"& .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',
|
||||
},
|
||||
|
||||
}}
|
||||
>
|
||||
<DataGrid
|
||||
checkboxSelection
|
||||
|
||||
onSelectionModelChange={(newSelectionModel) => {
|
||||
setSelectionModel_task_cost(newSelectionModel);
|
||||
/*if (newSelectionModel.length === 1)
|
||||
handleClick_edit_session_From_Line(newSelectionModel);*/
|
||||
if (newSelectionModel.length !== 1) {
|
||||
/* setaddOneParticipant();
|
||||
setdisplay_detail_insc();
|
||||
setselected_code_session();
|
||||
setsubmenu();*/
|
||||
}
|
||||
}}
|
||||
selectionModel={selectionModel_task_cost}
|
||||
|
||||
localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
|
||||
rows={Getall_Qry_RH_Task_Cost_Data_result.map((item, index) => (
|
||||
{
|
||||
id: index,
|
||||
_id: JSON.parse(item)._id,
|
||||
rh_civilite: JSON.parse(item).rh_civilite,
|
||||
rh_nom: JSON.parse(item).rh_nom,
|
||||
rh_prenom: JSON.parse(item).rh_prenom,
|
||||
rh_email: JSON.parse(item).rh_email,
|
||||
rh_ismanager: JSON.parse(item).rh_ismanager,
|
||||
rh_fonction: JSON.parse(item).rh_fonction,
|
||||
rh_telephone_mobile: JSON.parse(item).rh_telephone_mobile,
|
||||
rh_adr_adresse: JSON.parse(item).rh_adr_adresse,
|
||||
rh_adr_code_postal: JSON.parse(item).rh_adr_code_postal,
|
||||
rh_adr_ville: JSON.parse(item).rh_adr_ville,
|
||||
rh_adr_pays: JSON.parse(item).rh_adr_pays,
|
||||
rh_contrat_date_debut: JSON.parse(item).rh_contrat_date_debut,
|
||||
rh_contrat_date_fin: JSON.parse(item).rh_contrat_date_fin,
|
||||
rh_contrat_type_contrat: JSON.parse(item).rh_contrat_type_contrat,
|
||||
rh_contrat_type_employe: JSON.parse(item).rh_contrat_type_employe,
|
||||
rh_contrat_cout: JSON.parse(item).rh_contrat_cout,
|
||||
rh_contrat_periodicite: JSON.parse(item).rh_contrat_periodicite,
|
||||
rh_contrat_quantite: JSON.parse(item).rh_contrat_quantite,
|
||||
rh_contrat_groupe_prix_achat_id: JSON.parse(item).rh_contrat_groupe_prix_achat_id,
|
||||
|
||||
rh_contrat_groupe_prix_achat_code: JSON.parse(item).rh_contrat_groupe_prix_achat_code,
|
||||
rh_contrat_groupe_prix_achat_cout: JSON.parse(item).rh_contrat_groupe_prix_achat_cout,
|
||||
rh_contrat_groupe_prix_achat_periodicite: JSON.parse(item).rh_contrat_groupe_prix_achat_periodicite,
|
||||
rh_event_planning_event_title: JSON.parse(item).rh_event_planning_event_title,
|
||||
rh_event_planning_even_comment: JSON.parse(item).rh_event_planning_even_comment,
|
||||
rh_event_planning_event_type: JSON.parse(item).rh_event_planning_event_type,
|
||||
rh_event_planning_event_duration_hour: JSON.parse(item).rh_event_planning_event_duration_hour,
|
||||
rh_event_planning_agenda_date_jour: JSON.parse(item).rh_event_planning_agenda_date_jour,
|
||||
rh_event_planning_event_start: JSON.parse(item).rh_event_planning_event_start,
|
||||
rh_event_planning_event_end: JSON.parse(item).rh_event_planning_event_end,
|
||||
rh_event_planning_event_cost: JSON.parse(item).rh_event_planning_event_cost,
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
))}
|
||||
|
||||
columns={columns_task_cost}
|
||||
pageSize={10}
|
||||
className="datagridclass"
|
||||
|
||||
onRowDoubleClick={(newSelectionModel) => {
|
||||
|
||||
}}
|
||||
|
||||
|
||||
|
||||
rowsPerPageOptions={[10]}
|
||||
disableSelectionOnClick
|
||||
components={{
|
||||
Toolbar: GridToolbar,
|
||||
}}
|
||||
//sx={datagridSx}
|
||||
getCellClassName={(params) => {
|
||||
|
||||
// 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';
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
getRowClassName={(params) => {
|
||||
|
||||
// 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';
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
|
||||
/>
|
||||
</Box>
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</Box>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export default Dashbord_Ressources_Humaines_Tache_Couts;
|
|
@ -81,8 +81,9 @@ const Employes = (props) => {
|
|||
const [p_filtre4_value, setp_filtre4_value] = useState();
|
||||
|
||||
const columns = [
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: '_id', headerName: '_id', hide: true, Width: 0 },
|
||||
{ field: 'id', headerName: 'id', hide: true, Width: 0 },
|
||||
{ field: 'date_naissance', headerName: 'date_naissance', hide: true , Width: 0},
|
||||
{
|
||||
field: 'civilite', headerName: 'Civilité', minWidth: 50, flex: 1, maxWidth: 100, hide: false,
|
||||
|
||||
|
@ -109,7 +110,7 @@ const Employes = (props) => {
|
|||
{ field: 'adr_code_postal', headerName: 'Code Postal', width: 100, hide: false, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
|
||||
{ field: 'adr_ville', headerName: 'Ville', width: 100, hide: false, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
|
||||
{ field: 'adr_pays', headerName: 'Pays', width: 100, hide: true, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
|
||||
|
||||
|
||||
|
||||
|
||||
{ field: 'profil', headerName: 'profil', width: 150, hide: false, },
|
||||
|
@ -318,6 +319,7 @@ const Employes = (props) => {
|
|||
{ field: 'type_employe', headerName: 'Type Employé', flex: 1, hide: false, width: 150, },
|
||||
{ field: 'qte', headerName: 'Quanité', flex: 1, hide: true, width: 150, },
|
||||
{ field: 'cout', headerName: 'Prix', flex: 1, hide: true, width: 150, },
|
||||
{ field: 'periodicite', headerName: 'Périodicité', flex: 1, minWidth: 150, hide: false, editable: false },
|
||||
{ field: 'comment', headerName: 'Commentaire', flex: 1, hide: true, width: 150, },
|
||||
|
||||
|
||||
|
@ -847,7 +849,7 @@ const Employes = (props) => {
|
|||
setp_one_detail_ismanager_label('');
|
||||
setp_one_detail_resp_hierarchie_nom('');
|
||||
setp_one_detail_resp_hierarchie_prenom('');
|
||||
|
||||
|
||||
}
|
||||
|
||||
function handleClick_delete(event, cellValues) {
|
||||
|
@ -888,7 +890,7 @@ const Employes = (props) => {
|
|||
const [p_detail_linkedIn, setp_detail_linkedIn] = useState();
|
||||
const [p_detail_facebook, setp_detail_facebook] = useState();
|
||||
const [p_detail_twitter, setp_detail_twitter] = useState();
|
||||
const [p_detail_ismanager, setp_detail_ismanager] = useState();
|
||||
const [p_detail_ismanager, setp_detail_ismanager] = useState("0");
|
||||
const [p_detail_ismanager_label, setp_detail_ismanager_label] = useState();
|
||||
const [p_detail_resp_hierarchie_nom, setp_detail_resp_hierarchie_nom] = useState("");
|
||||
const [p_detail_resp_hierarchie_prenom, setp_detail_resp_hierarchie_prenom] = useState("");
|
||||
|
@ -920,7 +922,7 @@ const Employes = (props) => {
|
|||
const [p_one_detail_facebook, setp_one_detail_facebook] = useState();
|
||||
const [p_one_detail_twitter, setp_one_detail_twitter] = useState();
|
||||
const [p_one_detail_ismanager, setp_one_detail_ismanager] = useState();
|
||||
const [p_one_detail_ismanager_label, setp_one_detail_ismanager_label] = useState();
|
||||
const [p_one_detail_ismanager_label, setp_one_detail_ismanager_label] = useState("0");
|
||||
const [p_one_detail_resp_hierarchie_nom, setp_one_detail_resp_hierarchie_nom] = useState();
|
||||
const [p_one_detail_resp_hierarchie_prenom, setp_one_detail_resp_hierarchie_prenom] = useState();
|
||||
|
||||
|
@ -1041,7 +1043,7 @@ const Employes = (props) => {
|
|||
}
|
||||
|
||||
|
||||
|
||||
setp_detail_ismanager("0");
|
||||
if (mylocal_employe.ismanager) {
|
||||
setp_detail_ismanager(mylocal_employe.ismanager);
|
||||
if (String(mylocal_employe.ismanager) === "1")
|
||||
|
@ -1843,6 +1845,7 @@ const Employes = (props) => {
|
|||
setemployee_data_changed("");
|
||||
setemployee_data_edit_mode("");
|
||||
Get_Employee_Data(selected_id);
|
||||
setgridline_id('');
|
||||
alert(" La mise à jour été correctement faite.");
|
||||
|
||||
|
||||
|
@ -2269,6 +2272,7 @@ const Employes = (props) => {
|
|||
setdisplay_detail_employe();
|
||||
setadd_One_Employee();
|
||||
setsubmenu("");
|
||||
setgridline_id('');
|
||||
setSelectionModel([]);
|
||||
}
|
||||
|
||||
|
@ -3907,6 +3911,7 @@ const Employes = (props) => {
|
|||
setp_employe_contrat_type_employe("");
|
||||
setp_employe_contrat_cout("");
|
||||
setp_employe_contrat_comment("");
|
||||
setp_employe_contrat_periodicite("");
|
||||
setp_employe_contrat_groupe_prix_achat_id("");
|
||||
setp_employe_contrat_quantite("");
|
||||
setp_employe_contrat_date_debut(new Date().toLocaleDateString('fr-FR'));
|
||||
|
@ -3988,6 +3993,7 @@ const Employes = (props) => {
|
|||
const [p_employe_contrat_date_debut, setp_employe_contrat_date_debut] = useState(new Date().toLocaleDateString('fr-FR'));
|
||||
const [p_employe_contrat_date_fin, setp_employe_contrat_date_fin] = useState(date_today_90j.toLocaleDateString('fr-FR'));
|
||||
const [p_employe_contrat_comment, setp_employe_contrat_comment] = useState("");
|
||||
const [p_employe_contrat_periodicite, setp_employe_contrat_periodicite] = useState("");
|
||||
|
||||
const [Get_Partner_Purchase_Prices_api, setGet_Partner_Purchase_Prices_api] = useState();
|
||||
const [Get_Partner_Purchase_Prices_message, setGet_Partner_Purchase_Prices_message] = useState();
|
||||
|
@ -4045,6 +4051,8 @@ const Employes = (props) => {
|
|||
|
||||
setp_employe_contrat_comment(line.comment);
|
||||
|
||||
setp_employe_contrat_periodicite(line.periodicite);
|
||||
|
||||
|
||||
setp_employe_contrat_groupe_prix_achat_id(line.groupe_prix_achat_id);
|
||||
|
||||
|
@ -4078,20 +4086,30 @@ const Employes = (props) => {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!p_employe_contrat_date_debut || String(p_employe_contrat_date_debut).trim() === "") {
|
||||
alert(" Le début du contrat est obigatoire ");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!p_employe_contrat_groupe_prix_achat_id || String(p_employe_contrat_groupe_prix_achat_id).trim() === "") {
|
||||
if (!p_employe_contrat_cout || String(p_employe_contrat_cout).trim() === "") {
|
||||
alert(" Le prix est obigatoire ");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!p_employe_contrat_periodicite || String(p_employe_contrat_periodicite).trim() === "") {
|
||||
alert(" La périodicité est obigatoire ");
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
|
||||
|
@ -4111,6 +4129,7 @@ const Employes = (props) => {
|
|||
form.append("type_contrat", p_employe_contrat_type_contrat);
|
||||
form.append("type_employe", p_employe_contrat_type_employe);
|
||||
form.append("cout", p_employe_contrat_cout);
|
||||
form.append("periodicite", p_employe_contrat_periodicite);
|
||||
form.append("quantite", p_employe_contrat_quantite);
|
||||
form.append("groupe_prix_achat_id", p_employe_contrat_groupe_prix_achat_id);
|
||||
form.append("comment", p_employe_contrat_comment);
|
||||
|
@ -4127,6 +4146,7 @@ const Employes = (props) => {
|
|||
form.append("type_contrat", p_employe_contrat_type_contrat);
|
||||
form.append("type_employe", p_employe_contrat_type_employe);
|
||||
form.append("cout", p_employe_contrat_cout);
|
||||
form.append("periodicite", p_employe_contrat_periodicite);
|
||||
form.append("quantite", p_employe_contrat_quantite);
|
||||
form.append("groupe_prix_achat_id", p_employe_contrat_groupe_prix_achat_id);
|
||||
form.append("comment", p_employe_contrat_comment);
|
||||
|
@ -4191,13 +4211,14 @@ const Employes = (props) => {
|
|||
|
||||
setuserimgclassprofil("");
|
||||
setselected_row_data_json_age("");
|
||||
//setgridline_id('');
|
||||
|
||||
setDialog_employe_open(false);
|
||||
|
||||
setgridline_id("");
|
||||
|
||||
};
|
||||
|
||||
function Show_Detailled_employe_Data(){
|
||||
|
||||
function Show_Detailled_employe_Data() {
|
||||
|
||||
setselected_row_data_json_age("");
|
||||
setDialog_employe_open(false);
|
||||
handleClick_edit_employee_From_Line(gridline_id);
|
||||
|
@ -4236,7 +4257,7 @@ const Employes = (props) => {
|
|||
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
|
||||
Civilité
|
||||
</div>
|
||||
{Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
{String(gridline_id) !== "" && Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).civilite}
|
||||
</div>}
|
||||
|
@ -4246,7 +4267,7 @@ const Employes = (props) => {
|
|||
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
|
||||
Nom & Prénom
|
||||
</div>
|
||||
{Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
{String(gridline_id) !== "" && Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).nom.toUpperCase()} {JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).prenom.charAt(0).toUpperCase() + JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).prenom.slice(1)}
|
||||
|
@ -4259,7 +4280,7 @@ const Employes = (props) => {
|
|||
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
|
||||
E-mail
|
||||
</div>
|
||||
{Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
{String(gridline_id) !== "" && Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).email}
|
||||
</div>}
|
||||
|
@ -4270,7 +4291,7 @@ const Employes = (props) => {
|
|||
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
|
||||
Téléphone
|
||||
</div>
|
||||
{Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
{String(gridline_id) !== "" && Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).telephone}
|
||||
</div>}
|
||||
|
@ -4280,7 +4301,7 @@ const Employes = (props) => {
|
|||
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
|
||||
Age
|
||||
</div>
|
||||
{Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
{String(gridline_id) !== "" && Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||
{selected_row_data_json_age} ans - {JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).date_naissance}
|
||||
</div>}
|
||||
|
@ -4290,13 +4311,13 @@ const Employes = (props) => {
|
|||
|
||||
<div className="div_row_dialog">
|
||||
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
|
||||
Adresse postale
|
||||
Adresse postale
|
||||
</div>
|
||||
{Getall_Training_Employee_No_Filter_result && selected_id && JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).pays &&
|
||||
{String(gridline_id) !== "" && Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).adresse} <br/>
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).code_postal} {JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).ville} <br/>
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).pays.toUpperCase()}
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).adr_adresse} <br />
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).adr_code_postal} {JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).adr_ville} <br />
|
||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).adr_pays.toUpperCase()}
|
||||
</div>}
|
||||
</div>
|
||||
|
||||
|
@ -4680,9 +4701,9 @@ const Employes = (props) => {
|
|||
}
|
||||
|
||||
|
||||
{String(p_employe_contrat_groupe_prix_achat_id) === "" && <div className="session_caract_Dialog" > <b> Prix </b>
|
||||
{String(p_employe_contrat_groupe_prix_achat_id) === "" && <div className="session_caract_Dialog" > <b> Taux Horaire Brut (HT) </b>
|
||||
<Tooltip className="tooltip_css" id="tooltip_id_3" />
|
||||
<a data-tooltip-id="tooltip_id_3" data-tooltip-html=" Il s'agit du montant de rémunération (HT) du contrat ">
|
||||
<a data-tooltip-id="tooltip_id_3" data-tooltip-html=" Il s'agit du montant de rémunération (HT) du contrat par heure ">
|
||||
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
|
@ -4703,6 +4724,41 @@ const Employes = (props) => {
|
|||
</a>
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(p_employe_contrat_groupe_prix_achat_id) === "" && <div className="session_caract_Dialog" > <b> Périodicité </b>
|
||||
<Tooltip className="tooltip_css" id="tooltip_id_perodicite" />
|
||||
<a data-tooltip-id="tooltip_id_perodicite" data-tooltip-html=" A quel péridicité est appliqué le montant HT <br/> Exemple : Ce montant est appliqué : <br/>
|
||||
<li> Par heure ?</li>
|
||||
<li> En fixe, quelque soit le nombre d'heure (ex : la correction des copies) </li>
|
||||
|
||||
">
|
||||
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
|
||||
name="event_dialog_periodicite"
|
||||
id="event_dialog_periodicite"
|
||||
|
||||
select
|
||||
fullWidth
|
||||
|
||||
value={p_employe_contrat_periodicite}
|
||||
onChange={(e) => {
|
||||
setp_employe_contrat_periodicite(e.target.value);
|
||||
setdialog_contrat_data_changed("1");
|
||||
}
|
||||
}
|
||||
>
|
||||
<MenuItem value="fixe" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Fixe </MenuItem>
|
||||
<MenuItem value="heure" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par heure </MenuItem>
|
||||
{/*<MenuItem value="jour" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par jour </MenuItem>
|
||||
<MenuItem value="mois" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par mois </MenuItem>
|
||||
<MenuItem value="annee" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par année </MenuItem>*/}
|
||||
</TextField>
|
||||
</a>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div className="session_caract_Dialog" > Commentaire
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
|
@ -5178,6 +5234,7 @@ const Employes = (props) => {
|
|||
adr_code_postal: JSON.parse(item).adr_code_postal,
|
||||
adr_ville: JSON.parse(item).adr_ville,
|
||||
adr_pays: JSON.parse(item).adr_pays,
|
||||
date_naissance: JSON.parse(item).date_naissance,
|
||||
|
||||
|
||||
}
|
||||
|
@ -5195,17 +5252,20 @@ const Employes = (props) => {
|
|||
setgridline_id(newSelectionModel.row.id);
|
||||
var local_date_naissance = newSelectionModel.row.date_naissance;
|
||||
|
||||
|
||||
if (local_date_naissance) {
|
||||
var date_eval = new Date(moment(local_date_naissance, "DD/MM/YYYY"));
|
||||
var diff = Date.now() - date_eval.getTime();
|
||||
var age = new Date(diff);
|
||||
var reel_age = Math.abs(age.getUTCFullYear() - 1970);
|
||||
setselected_row_data_json_age(reel_age)
|
||||
|
||||
|
||||
|
||||
}
|
||||
setDialog_employe_open(true);
|
||||
|
||||
|
||||
|
||||
//handleClick_edit_employee_From_Line(newSelectionModel.row.id);
|
||||
|
||||
}}
|
||||
|
@ -7454,6 +7514,7 @@ const Employes = (props) => {
|
|||
qte: JSON.parse(item).quantite,
|
||||
cout: JSON.parse(item).cout,
|
||||
comment: JSON.parse(item).comment,
|
||||
periodicite: JSON.parse(item).periodicite,
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -228,7 +228,7 @@ const Module_Absence = (props) => {
|
|||
'start': String(JSON.parse(obj).event_start),
|
||||
'end': String(JSON.parse(obj).event_end),
|
||||
'id': String(JSON.parse(obj)._id),
|
||||
'type': String(JSON.parse(obj)._id),
|
||||
|
||||
'type': String(JSON.parse(obj).event_type),
|
||||
'justified': String(JSON.parse(obj).justified),
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ import { RepeatOnRounded } from "@mui/icons-material";
|
|||
import { alignPropType } from "react-bootstrap/esm/types";
|
||||
|
||||
import ToggleSwitch from "./ToggleSwitch";
|
||||
|
||||
import Autocomplete from '@mui/material/Autocomplete';
|
||||
import FullCalendar, { formatDate } from "@fullcalendar/react";
|
||||
import dayGridPlugin from "@fullcalendar/daygrid";
|
||||
import timeGridPlugin from "@fullcalendar/timegrid";
|
||||
|
@ -146,6 +146,8 @@ const Module_Agenda = (props) => {
|
|||
'comment': String(local_comment),
|
||||
'sequence_session_id': String(local_sequence_session_id),
|
||||
'backgroundColor': bg_color,
|
||||
'type': String(JSON.parse(obj).event_type),
|
||||
'justified': String(JSON.parse(obj).justified),
|
||||
|
||||
}
|
||||
|
||||
|
@ -229,6 +231,8 @@ const Module_Agenda = (props) => {
|
|||
'comment': String(local_comment),
|
||||
'sequence_session_id': String(local_sequence_session_id),
|
||||
'backgroundColor': bg_color,
|
||||
'type': String(JSON.parse(obj).event_type),
|
||||
'justified': String(JSON.parse(obj).justified),
|
||||
|
||||
}
|
||||
|
||||
|
@ -283,7 +287,7 @@ const Module_Agenda = (props) => {
|
|||
|
||||
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);
|
||||
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");
|
||||
|
@ -315,6 +319,8 @@ const Module_Agenda = (props) => {
|
|||
'comment': String(local_comment),
|
||||
'sequence_session_id': String(local_sequence_session_id),
|
||||
'backgroundColor': bg_color,
|
||||
'type': String(JSON.parse(obj).event_type),
|
||||
'justified': String(JSON.parse(obj).justified),
|
||||
|
||||
}
|
||||
|
||||
|
@ -399,6 +405,8 @@ const Module_Agenda = (props) => {
|
|||
'comment': String(local_comment),
|
||||
'sequence_session_id': String(local_sequence_session_id),
|
||||
'backgroundColor': bg_color,
|
||||
'type': String(JSON.parse(obj).event_type),
|
||||
'justified': String(JSON.parse(obj).justified),
|
||||
|
||||
}
|
||||
|
||||
|
@ -608,6 +616,8 @@ const Module_Agenda = (props) => {
|
|||
}
|
||||
|
||||
|
||||
const [New_Getall_Training_Employee_No_Filter_result, setNew_Getall_Training_Employee_No_Filter_result] = useState([]);
|
||||
|
||||
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();
|
||||
|
@ -632,6 +642,34 @@ const Module_Agenda = (props) => {
|
|||
//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);
|
||||
|
||||
var new_data2 = [];
|
||||
const new_data = res.data.message.map((x) => {
|
||||
|
||||
//---
|
||||
var localid = JSON.parse(x).id;
|
||||
var local_id = JSON.parse(x)._id;
|
||||
var local_nom = JSON.parse(x).nom;
|
||||
var local_prenom = JSON.parse(x).prenom;
|
||||
var local_ismanager = JSON.parse(x).ismanager;
|
||||
|
||||
|
||||
//---
|
||||
var node = {
|
||||
"_id": local_id,
|
||||
"id": localid,
|
||||
"label": local_nom + " " + local_prenom,
|
||||
"nom": local_nom,
|
||||
"prenom": local_prenom,
|
||||
"ismanager": local_ismanager
|
||||
};
|
||||
new_data2.push(node);
|
||||
});
|
||||
|
||||
if (new_data2.length > 0)
|
||||
setNew_Getall_Training_Employee_No_Filter_result(new_data2);
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
setGetall_Training_Employee_No_Filter_api("false");
|
||||
|
@ -1214,7 +1252,30 @@ const Module_Agenda = (props) => {
|
|||
|
||||
{p_filtre1 && String(p_filtre1) === "ressource_humaine" && <div className="div_row_droite texte_area_filter_value" >
|
||||
|
||||
<TextField
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
|
||||
|
||||
name="filtre1_value"
|
||||
id="filtre1_value"
|
||||
className="disabled_style"
|
||||
options={New_Getall_Training_Employee_No_Filter_result}
|
||||
//value={selected_employee_id}
|
||||
onChange={(event, value) => {
|
||||
if (value && value._id) {
|
||||
|
||||
Get_Ressource_Data(value._id)
|
||||
setselected_employee_id(value._id);
|
||||
Get_List_Agenda_Events_For_Given_User(value._id);
|
||||
|
||||
}
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="Cible" />
|
||||
}
|
||||
/>
|
||||
|
||||
{/*<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="filtre1_value"
|
||||
|
@ -1244,7 +1305,7 @@ const Module_Agenda = (props) => {
|
|||
</MenuItem>
|
||||
))}
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
|
||||
|
||||
</div>}
|
||||
|
|
|
@ -23,6 +23,7 @@ import Dashbord_Session_Taux_Remplissage from "./Dashbord_Session_Taux_Remplissa
|
|||
import Dashbord_Session_Repartition_Fteur from "./Dashbord_Session_Repartition_Fteur";
|
||||
import Dashbord_Formation_Evol_Session from "./Dashbord_Formation_Evol_Session";
|
||||
import Dashbord_Ressources_Humaines_Tache_by_rhid from "./Dashbord_Ressources_Humaines_Tache_by_rhid";
|
||||
import Dashbord_Ressources_Humaines_Tache_Couts from "./Dashbord_Ressources_Humaines_Tache_Couts";
|
||||
|
||||
import { TbColumns2, TbColumns1 } from "react-icons/tb";
|
||||
|
||||
|
@ -157,14 +158,36 @@ const Mon_Tableau_De_Bord = (props) => {
|
|||
user_dashbord_filter_end={String(JSON.parse(step).end_date)} />
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
))}
|
||||
</div>}
|
||||
|
||||
{display_nb_column && <div>
|
||||
{Get_Connected_User_Dashbord_result &&
|
||||
Get_Connected_User_Dashbord_result.map((step) => (
|
||||
|
||||
<div className="div_row" style={{ "width": "95%", "float": "left", "paddingRight": "2px" }}>
|
||||
|
||||
|
||||
|
||||
{String(JSON.parse(step).dashbord_internal_code) === "tbd_rh_01" &&
|
||||
|
||||
|
||||
<Dashbord_Ressources_Humaines_Tache_by_rhid user_dashbord_id={String(JSON.parse(step)._id)}
|
||||
user_dashbord_title={String(JSON.parse(step).title)}
|
||||
user_dashbord_filter_start={String(JSON.parse(step).start_date)}
|
||||
user_dashbord_filter_end={String(JSON.parse(step).end_date)}
|
||||
user_dashbord_filter_type_envent={String(JSON.parse(step).type_event) }
|
||||
user_dashbord_filter_type_envent={String(JSON.parse(step).type_event)}
|
||||
|
||||
/>
|
||||
}
|
||||
|
||||
{String(JSON.parse(step).dashbord_internal_code) === "tbd_rh_02" &&
|
||||
<Dashbord_Ressources_Humaines_Tache_Couts user_dashbord_id={String(JSON.parse(step)._id)}
|
||||
user_dashbord_title={String(JSON.parse(step).title)}
|
||||
user_dashbord_filter_start={String(JSON.parse(step).start_date)}
|
||||
user_dashbord_filter_end={String(JSON.parse(step).end_date)}
|
||||
user_dashbord_filter_type_envent={String(JSON.parse(step).type_event)}
|
||||
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -582,17 +582,17 @@ const Partner_Client = (props) => {
|
|||
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
|
||||
Adresse postale
|
||||
</div>
|
||||
{Get_List_Partner_Clients_result && selected_id && JSON.parse(Get_List_Partner_Clients_result[gridline_id]).pays &&
|
||||
{Get_List_Partner_Clients_result && selected_id &&
|
||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||
{JSON.parse(Get_List_Partner_Clients_result[gridline_id]).adresse} <br/>
|
||||
{JSON.parse(Get_List_Partner_Clients_result[gridline_id]).code_postal} {JSON.parse(Get_List_Partner_Clients_result[gridline_id]).ville} <br/>
|
||||
{JSON.parse(Get_List_Partner_Clients_result[gridline_id]).pays.toUpperCase()}
|
||||
{JSON.parse(Get_List_Partner_Clients_result[gridline_id]).adr_adresse} <br/>
|
||||
{JSON.parse(Get_List_Partner_Clients_result[gridline_id]).adr_code_postal} {JSON.parse(Get_List_Partner_Clients_result[gridline_id]).adr_pays} <br/>
|
||||
{JSON.parse(Get_List_Partner_Clients_result[gridline_id]).adr_pays.toUpperCase()}
|
||||
</div>}
|
||||
</div>
|
||||
|
||||
<div className="div_row_dialog">
|
||||
<div className="div_row_gauche_dialog_session" style={{ "textAlign": 'left' }}>
|
||||
Site Web
|
||||
Site Web
|
||||
</div>
|
||||
{Get_List_Partner_Clients_result && selected_id &&
|
||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||
|
|
|
@ -75,10 +75,11 @@ const Partner_Prix_Achat = (props) => {
|
|||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: 'code_groupe_prix', headerName: 'Code', hide: false, editable: false, flex: 1, minWidth: 150, },
|
||||
{ field: 'periodicite', headerName: 'Périodicité', flex: 1, minWidth: 150, hide: false, editable: false },
|
||||
|
||||
|
||||
{ field: 'date_debut', headerName: 'Début', flex: 1, minWidth: 150, hide: true, editable: false },
|
||||
{ field: 'date_debut', headerName: 'Début', flex: 1, minWidth: 150, hide: false, editable: false },
|
||||
{ field: 'date_fin', headerName: 'Fin', flex: 1, minWidth: 150, hideable: false, },
|
||||
{ field: 'periodicite', headerName: 'Périodicité', flex: 1, minWidth: 150, hide: false, editable: false },
|
||||
{ field: 'fournisseur', headerName: 'Fournisseur', flex: 1, minWidth: 150, hide: true, editable: false },
|
||||
{ field: 'prix', headerName: 'prix', flex: 1, minWidth: 150, hideable: false, editable: false },
|
||||
|
||||
|
@ -433,6 +434,12 @@ const Partner_Prix_Achat = (props) => {
|
|||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > Périodicité
|
||||
<Tooltip className="tooltip_css" id="tooltip_id_perodicite" />
|
||||
<a data-tooltip-id="tooltip_id_perodicite" data-tooltip-html=" A quel péridicité est appliqué le montant HT <br/> Exemple : Ce montant est appliqué : <br/>
|
||||
<li> Par heure ?</li>
|
||||
<li> En fixe, quelque soit le nombre d'heure (ex : la correction des copies) </li>
|
||||
|
||||
">
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
|
||||
|
@ -450,12 +457,13 @@ const Partner_Prix_Achat = (props) => {
|
|||
>
|
||||
<MenuItem value="fixe" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Fixe </MenuItem>
|
||||
<MenuItem value="heure" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par heure </MenuItem>
|
||||
<MenuItem value="jour" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par jour </MenuItem>
|
||||
{/*<MenuItem value="jour" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par jour </MenuItem>
|
||||
<MenuItem value="mois" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par mois </MenuItem>
|
||||
<MenuItem value="annee" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par année </MenuItem>
|
||||
<MenuItem value="annee" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Par année </MenuItem>*/}
|
||||
|
||||
|
||||
</TextField>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -501,7 +509,7 @@ const Partner_Prix_Achat = (props) => {
|
|||
|
||||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > Prix
|
||||
<div className="session_caract_Dialog" > Taux Horaire Brut (HT)
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
|
||||
|
|
|
@ -561,7 +561,7 @@
|
|||
border-radius: 5px;
|
||||
background: white;
|
||||
border: solid gainsboro 1px;
|
||||
padding-left: 5px !important;
|
||||
//padding-left: 5px !important;
|
||||
|
||||
}
|
||||
|
||||
|
@ -770,7 +770,7 @@
|
|||
border-radius: 5px;
|
||||
background: white;
|
||||
border: solid gainsboro 1px;
|
||||
padding-left: 5px !important;
|
||||
//padding-left: 5px !important;
|
||||
}
|
||||
|
||||
.training_caract {
|
||||
|
@ -1412,7 +1412,7 @@
|
|||
border-radius: 5px;
|
||||
background: white;
|
||||
border: solid gainsboro 1px;
|
||||
padding-left: 5px !important;
|
||||
//padding-left: 5px !important;
|
||||
}
|
||||
|
||||
.training_caract {
|
||||
|
@ -1933,7 +1933,7 @@
|
|||
border-radius: 5px;
|
||||
background: white;
|
||||
border: solid gainsboro 1px;
|
||||
padding-left: 5px !important;
|
||||
//padding-left: 5px !important;
|
||||
}
|
||||
|
||||
.disabled_style_Dialog {
|
||||
|
|
Loading…
Reference in New Issue