21/11/2023 17h15
parent
e51827410e
commit
454e955727
|
@ -808,7 +808,7 @@ const DisplayPartnerSession = (props) => {
|
|||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'related_target_collection_id', headerName: 'related_target_collection_id', minWidth: 200, hide: true, flex: 1, minWidth: 150, maxWidth: 300 },
|
||||
{ field: 'related_target_collection', headerName: 'related_target_collection', minWidth: 150, hide: true, editable: false, resizable: true },
|
||||
{ field: 'type_ressource', headerName: 'Type', minWidth: 150, hide: false, editable: false },
|
||||
{ field: 'type_ressource', headerName: 'Type', minWidth: 150, hide: true, editable: false },
|
||||
{ field: 'related_target_collection_object', headerName: 'object', minWidth: 200, hide: false, editable: false, resizable: true, flex: 1, },
|
||||
{ field: 'related_target_collection_id_nom', headerName: 'nom', minWidth: 200, hide: false, editable: false, resizable: true, flex: 1, },
|
||||
{ field: 'poste', headerName: 'Poste', minWidth: 200, hide: false, editable: false, flex: 1, },
|
||||
|
@ -2081,6 +2081,19 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
|
||||
|
||||
const [actionmass_sequence_val, setactionmass_sequence_val] = useState();
|
||||
const actionmass_sequence = (event) => {
|
||||
const value = event.target.value;
|
||||
|
||||
|
||||
if (String(value) === "ajout_ressource" || String(value) === "supprimer" ) {
|
||||
setactionmass_sequence_val(value);
|
||||
}
|
||||
else {
|
||||
setactionmass_sequence_val();
|
||||
}
|
||||
}
|
||||
|
||||
function GetSelectedRows_Insc_Ids() {
|
||||
|
||||
|
||||
|
@ -2143,6 +2156,51 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function GetSelectedRows_Sequence_Ids() {
|
||||
|
||||
|
||||
var tab_tmp = []
|
||||
for (var i = 0; i < selectionModel_sequence.length; i++) {
|
||||
//console.log(" ### selectionModel_insc[i] = ", selectionModel_insc[i]);
|
||||
var myid = parseInt(String(selectionModel_sequence[i]));
|
||||
//var line = JSON.parse(rowss[myid]);
|
||||
tab_tmp.push(myid);
|
||||
}
|
||||
return tab_tmp;
|
||||
|
||||
}
|
||||
|
||||
async function actionmass_sequence_Traitement() {
|
||||
|
||||
var liste_formation = GetSelectedRows_Sequence_Ids();
|
||||
for (var i = 0; i < liste_formation.length; i++) {
|
||||
|
||||
|
||||
var line = JSON.parse(rowss_insc[liste_formation[i]]);
|
||||
//console.log(" line = ", line);
|
||||
var email = line.email;
|
||||
//console.log(" Traitement de email = ", email);
|
||||
if (String(actionmass_insc_val) === "ajout_ressource") {
|
||||
|
||||
alert(" Action Ajout Ressource en cours de dev");
|
||||
|
||||
} else if (String(actionmass_insc_val) === "supprimer") {
|
||||
|
||||
alert(" Action supprimer sequence en cours de dev");
|
||||
|
||||
}
|
||||
await sleep(5);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
async function actionmass_insc_Traitemet() {
|
||||
|
||||
var liste_formation = GetSelectedRows_Insc_Ids();
|
||||
|
@ -6313,6 +6371,68 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
}
|
||||
|
||||
|
||||
|
||||
const [Add_Automatic_Sequence_Session_api, setAdd_Automatic_Sequence_Session_api] = useState();
|
||||
const [Add_Automatic_Sequence_Session_message, setAdd_Automatic_Sequence_Session_message] = useState();
|
||||
const [Add_Automatic_Sequence_Session_result, setAdd_Automatic_Sequence_Session_result] = useState();
|
||||
const Add_Automatic_Sequence_Session = event => {
|
||||
|
||||
var new_title = p_detail_sequence_title;
|
||||
var new_start_date = moment(sequence_startDate).format("DD/MM/YYYY HH:mm");
|
||||
var new_end_date = moment(sequence_endDate).format("DD/MM/YYYY HH:mm");
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
form.append("token", stored_cookie);
|
||||
form.append("session_id", selected_session_id);
|
||||
form.append("jounree_modele_id", "");
|
||||
|
||||
|
||||
//console.log(" form == ", form);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Create_Automatic_Sequence/";
|
||||
|
||||
setLoading(true);
|
||||
axios.post(myurl, form).then(res => {
|
||||
//console.log(" In Add_Automatic_Sequence_Session res.data.status = " + res.data.status);
|
||||
//console.log(" In Add_Automatic_Sequence_Session res.data.message r_class = " + res.data.message);
|
||||
|
||||
setLoading(false);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
setAdd_Automatic_Sequence_Session_api("true");
|
||||
setAdd_Automatic_Sequence_Session_result(res.data.message);
|
||||
|
||||
Getall_Sequence_Of_Session(selected_session_id);
|
||||
|
||||
setp_detail_sequence_title();
|
||||
setp_detail_sequence_comment();
|
||||
setsequence_startDate();
|
||||
setsequence_endDate();
|
||||
|
||||
|
||||
|
||||
alert(res.data.message);
|
||||
Close_Dialog_Detail_seq_open();
|
||||
}
|
||||
else {
|
||||
setAdd_Automatic_Sequence_Session_api("false");
|
||||
setAdd_Automatic_Sequence_Session_message(res.data.message);
|
||||
alert(res.data.message);
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
|
||||
|
||||
setLoading(false);
|
||||
console.warn('UpdateStagiaireData : Not good man :( Add_Automatic_Sequence_Session = ' + error);
|
||||
setAdd_Automatic_Sequence_Session_api("false");
|
||||
alert(" Impossible de créer automatiquement les séquences");
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
const [Update_One_Sequence_Session_api, setUpdate_One_Sequence_Session_api] = useState();
|
||||
const [Update_One_Sequence_Session_message, setUpdate_One_Sequence_Session_message] = useState();
|
||||
const [Update_One_Sequence_Session_result, setUpdate_One_Sequence_Session_result] = useState();
|
||||
|
@ -9076,7 +9196,8 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
}}
|
||||
>
|
||||
<DataGrid
|
||||
checkboxSelection
|
||||
checkboxSelection = {true}
|
||||
disableRowSelectionOnClick
|
||||
onSelectionModelChange={(newSelectionModel) => {
|
||||
setselectionModel_sequence(newSelectionModel);
|
||||
/*if (newSelectionModel.length === 1)
|
||||
|
@ -9085,7 +9206,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
|
||||
}
|
||||
}}
|
||||
selectionModel={selectionModel}
|
||||
selectionModel={selectionModel_sequence}
|
||||
|
||||
localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
|
||||
rows={Getall_Sequence_Of_Session_result.map((item, index) => (
|
||||
|
@ -9105,7 +9226,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
columns={columns_sequence}
|
||||
pageSize={10}
|
||||
className="datagridclass"
|
||||
|
||||
|
||||
onRowDoubleClick={(newSelectionModel) => {
|
||||
|
||||
setselected_detail_sequence_title(newSelectionModel.row.sequence_title);
|
||||
|
@ -9127,10 +9248,10 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
|
||||
}}
|
||||
|
||||
|
||||
|
||||
|
||||
rowsPerPageOptions={[10]}
|
||||
disableSelectionOnClick
|
||||
//disableSelectionOnClick
|
||||
components={{
|
||||
Toolbar: GridToolbar,
|
||||
}}
|
||||
|
@ -9175,11 +9296,78 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
|
||||
/>
|
||||
</Box>
|
||||
|
||||
|
||||
{selectionModel_sequence && selectionModel_sequence.length > 1 &&
|
||||
<div className="block_en_mass">
|
||||
<nav className='traitement_mass'>Traitement en masse / Séquence</nav>
|
||||
<select
|
||||
id={"actionmassinscr"} name={"actionmassinscr"}
|
||||
onChange={actionmass_sequence}
|
||||
className="action_mass">
|
||||
<option selected value="n/a">Choisir une action</option>
|
||||
<option value="ajout_ressource">Ajouter Ressource</option>
|
||||
<option value="supprimer">Supprimer</option>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
{actionmass_sequence_val &&
|
||||
<Popup
|
||||
trigger={<Button className="bton_traiter_en_mass" >
|
||||
<FcAcceptDatabase /> Traiter
|
||||
|
||||
</Button>}
|
||||
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">
|
||||
{' '}
|
||||
|
||||
Confirmer l'action <b> {actionmass_sequence_val} </b> en masse.
|
||||
</div>
|
||||
<div className="gest_actions">
|
||||
<div style={{ "width": "45%", "float": "left" }}>
|
||||
<button className="gest_bton_popup" onClick={(event) => {
|
||||
actionmass_sequence_Traitement();
|
||||
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>
|
||||
}
|
||||
<br />
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
}
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -9193,15 +9381,11 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
</Button>
|
||||
|
||||
|
||||
<Button variant="outlined" onClick={submenu_add_automatic_sequence}
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Création automatique 0
|
||||
<FcMultipleSmartphones />
|
||||
</Button>
|
||||
|
||||
|
||||
<Popup
|
||||
trigger={
|
||||
<Button variant="outlined"
|
||||
<Button variant="outlined"
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Création automatique
|
||||
<FcMultipleSmartphones />
|
||||
|
@ -9222,13 +9406,13 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
<div className="gest_content">
|
||||
{' '}
|
||||
|
||||
<font color="red"> Confirmer l'action <b> {actionmass_preinsc_val} </b> en masse. <br />
|
||||
/!\ : Toutes les séquences de cette session seront supprimées. </font>
|
||||
<font color="red"> Confirmer l'action <b> {actionmass_preinsc_val} </b> en masse. <br />
|
||||
/!\ : Toutes les séquences de cette session seront supprimées. </font>
|
||||
</div>
|
||||
<div className="gest_actions">
|
||||
<div style={{ "width": "45%", "float": "left" }}>
|
||||
<button className="gest_bton_popup" onClick={(event) => {
|
||||
submenu_add_automatic_sequence();
|
||||
Add_Automatic_Sequence_Session();
|
||||
close();
|
||||
}}> Valider </button>
|
||||
|
||||
|
|
|
@ -1028,7 +1028,7 @@ const Module_Absence = (props) => {
|
|||
}
|
||||
|
||||
|
||||
className="disabled_style enable_style"
|
||||
className="disabled_style session_caract_Dialog_DatePicker"
|
||||
locale='fr-FR'
|
||||
showTimeSelect
|
||||
timeFormat="HH:mm"
|
||||
|
@ -1054,7 +1054,7 @@ const Module_Absence = (props) => {
|
|||
}
|
||||
|
||||
|
||||
className="disabled_style enable_style"
|
||||
className="disabled_style session_caract_Dialog_DatePicker"
|
||||
locale='fr-FR'
|
||||
showTimeSelect
|
||||
timeFormat="HH:mm"
|
||||
|
|
|
@ -94,8 +94,6 @@ const Module_Agenda = (props) => {
|
|||
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);
|
||||
|
@ -111,25 +109,33 @@ const Module_Agenda = (props) => {
|
|||
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': "",
|
||||
}
|
||||
var local_val = {};
|
||||
|
||||
var local_comment = "";
|
||||
if (JSON.parse(obj).comment) {
|
||||
local_comment = String(JSON.parse(obj).comment);
|
||||
}
|
||||
|
||||
|
||||
var bg_color = "";
|
||||
var local_sequence_session_id = "";
|
||||
if (JSON.parse(obj).sequence_session_id) {
|
||||
local_sequence_session_id = String(JSON.parse(obj).sequence_session_id);
|
||||
bg_color = "Olive"
|
||||
}
|
||||
|
||||
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(local_comment),
|
||||
'sequence_session_id': String(local_sequence_session_id),
|
||||
'backgroundColor':bg_color,
|
||||
|
||||
}
|
||||
|
||||
|
||||
tab_event.push(local_val);
|
||||
|
||||
|
||||
|
@ -170,7 +176,6 @@ const Module_Agenda = (props) => {
|
|||
form.append("related_collection_recid", myconntected_employee_id);
|
||||
|
||||
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_Agenda_Event_List/";
|
||||
|
||||
setLoading(true);
|
||||
|
@ -187,25 +192,32 @@ const Module_Agenda = (props) => {
|
|||
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': "",
|
||||
}
|
||||
var local_val = {};
|
||||
|
||||
var local_comment = "";
|
||||
if (JSON.parse(obj).comment) {
|
||||
local_comment = String(JSON.parse(obj).comment);
|
||||
}
|
||||
|
||||
|
||||
var bg_color = "";
|
||||
var local_sequence_session_id = "";
|
||||
if (JSON.parse(obj).sequence_session_id) {
|
||||
local_sequence_session_id = String(JSON.parse(obj).sequence_session_id);
|
||||
bg_color = "Olive"
|
||||
}
|
||||
|
||||
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(local_comment),
|
||||
'sequence_session_id': String(local_sequence_session_id),
|
||||
'backgroundColor':bg_color,
|
||||
|
||||
}
|
||||
|
||||
tab_event.push(local_val);
|
||||
|
||||
|
||||
|
@ -249,6 +261,7 @@ const Module_Agenda = (props) => {
|
|||
form.append("related_collection_recid", local_selected_id);
|
||||
|
||||
|
||||
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_Agenda_Event_List/";
|
||||
|
||||
|
@ -265,31 +278,39 @@ const Module_Agenda = (props) => {
|
|||
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': "",
|
||||
}
|
||||
var local_val = {};
|
||||
|
||||
var local_comment = "";
|
||||
if (JSON.parse(obj).comment) {
|
||||
local_comment = String(JSON.parse(obj).comment);
|
||||
}
|
||||
|
||||
|
||||
var bg_color = "";
|
||||
var local_sequence_session_id = "";
|
||||
if (JSON.parse(obj).sequence_session_id) {
|
||||
local_sequence_session_id = String(JSON.parse(obj).sequence_session_id);
|
||||
bg_color = "Olive"
|
||||
}
|
||||
|
||||
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(local_comment),
|
||||
'sequence_session_id': String(local_sequence_session_id),
|
||||
'backgroundColor':bg_color,
|
||||
|
||||
}
|
||||
|
||||
tab_event.push(local_val);
|
||||
|
||||
|
||||
|
||||
});
|
||||
setmysy_events(tab_event);
|
||||
console.log(" ### tab_event = ", tab_event);
|
||||
|
||||
|
||||
}
|
||||
|
@ -326,7 +347,6 @@ const Module_Agenda = (props) => {
|
|||
form.append("related_collection_recid", local_selected_id);
|
||||
|
||||
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_Agenda_Event_List/";
|
||||
|
||||
setLoading(true);
|
||||
|
@ -342,25 +362,32 @@ const Module_Agenda = (props) => {
|
|||
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': "",
|
||||
}
|
||||
var local_val = {};
|
||||
|
||||
var local_comment = "";
|
||||
if (JSON.parse(obj).comment) {
|
||||
local_comment = String(JSON.parse(obj).comment);
|
||||
}
|
||||
|
||||
|
||||
var bg_color = "";
|
||||
var local_sequence_session_id = "";
|
||||
if (JSON.parse(obj).sequence_session_id) {
|
||||
local_sequence_session_id = String(JSON.parse(obj).sequence_session_id);
|
||||
bg_color = "Olive"
|
||||
}
|
||||
|
||||
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(local_comment),
|
||||
'sequence_session_id': String(local_sequence_session_id),
|
||||
'backgroundColor':bg_color,
|
||||
|
||||
}
|
||||
|
||||
tab_event.push(local_val);
|
||||
|
||||
|
||||
|
@ -459,28 +486,30 @@ const Module_Agenda = (props) => {
|
|||
const [events, setEvents] = useState([]);
|
||||
const handleSelect = (info) => {
|
||||
|
||||
if( String(selected_employee_id).length < 2 ){
|
||||
if (String(selected_employee_id).length < 2) {
|
||||
alert(" Vous devez choisir un employé ou un materiel");
|
||||
return;
|
||||
return;
|
||||
}
|
||||
if (String(props.write_access) !== "1") {
|
||||
// Pas d'acces en ecriture.
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
setp_detail_title("Nouvelle")
|
||||
setp_detail_start(info.start)
|
||||
setp_detail_end(info.end)
|
||||
setp_detail_comment("");
|
||||
setp_detail_sequence_session_id("");
|
||||
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) {
|
||||
|
@ -509,15 +538,16 @@ const Module_Agenda = (props) => {
|
|||
|
||||
const handleEventClick = (arg) => {
|
||||
|
||||
if( String(selected_employee_id).length < 2 ){
|
||||
if (String(selected_employee_id).length < 2) {
|
||||
alert(" Vous devez choisir un employé ou un materiel");
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
|
@ -525,6 +555,15 @@ const Module_Agenda = (props) => {
|
|||
else
|
||||
setp_detail_comment("");
|
||||
|
||||
if (arg.event.extendedProps.sequence_session_id) {
|
||||
setp_detail_sequence_session_id(arg.event.extendedProps.sequence_session_id);
|
||||
|
||||
}
|
||||
else
|
||||
setp_detail_sequence_session_id("");
|
||||
|
||||
|
||||
|
||||
setStartDate(arg.event.start);
|
||||
setendDate(arg.event.end);
|
||||
setDialog_1_open(true);
|
||||
|
@ -591,6 +630,7 @@ const Module_Agenda = (props) => {
|
|||
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 [p_detail_sequence_session_id, setp_detail_sequence_session_id] = useState("");
|
||||
|
||||
const [startDate, setStartDate] = useState(new Date());
|
||||
const [endDate, setendDate] = useState(new Date());
|
||||
|
@ -606,9 +646,9 @@ const Module_Agenda = (props) => {
|
|||
|
||||
var local_related_collection = p_filtre1;
|
||||
|
||||
if( String(selected_employee_id).length < 2 ){
|
||||
if (String(selected_employee_id).length < 2) {
|
||||
alert(" Vous devez choisir un employé ou un materiel");
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
if (moment(endDate) <= moment(startDate)) {
|
||||
|
@ -660,6 +700,7 @@ const Module_Agenda = (props) => {
|
|||
setp_detail_start();
|
||||
setp_detail_end();
|
||||
setp_detail_comment();
|
||||
setp_detail_sequence_session_id("");
|
||||
|
||||
|
||||
alert(res.data.message);
|
||||
|
@ -715,13 +756,14 @@ const Module_Agenda = (props) => {
|
|||
setDelete_One_Agenda_Event_api("true");
|
||||
setDelete_One_Agenda_Event_result(res.data.message);
|
||||
|
||||
Get_List_Agenda_Events();
|
||||
Get_List_Agenda_Events_For_Given_User(selected_employee_id);
|
||||
|
||||
setp_detail_event_id();
|
||||
setp_detail_title();
|
||||
setp_detail_start();
|
||||
setp_detail_end();
|
||||
setp_detail_comment();
|
||||
setp_detail_sequence_session_id("");
|
||||
|
||||
|
||||
alert(res.data.message);
|
||||
|
@ -837,7 +879,7 @@ const Module_Agenda = (props) => {
|
|||
|
||||
value={p_detail_title}
|
||||
onChange={(e) => {
|
||||
if (String(props.write_access) === "1")
|
||||
if (String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "")
|
||||
setp_detail_title(e.target.value);
|
||||
}
|
||||
}
|
||||
|
@ -852,13 +894,13 @@ const Module_Agenda = (props) => {
|
|||
id="event_dialog_start"
|
||||
selected={startDate}
|
||||
onChange={(date) => {
|
||||
if (String(props.write_access) === "1")
|
||||
if (String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" )
|
||||
return setStartDate(date);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
className="disabled_style enable_style"
|
||||
|
||||
className="disabled_style session_caract_Dialog_DatePicker"
|
||||
locale='fr-FR'
|
||||
showTimeSelect
|
||||
timeFormat="HH:mm"
|
||||
|
@ -878,13 +920,13 @@ const Module_Agenda = (props) => {
|
|||
selected={endDate}
|
||||
|
||||
onChange={(date) => {
|
||||
if (String(props.write_access) === "1")
|
||||
if (String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "")
|
||||
return setendDate(date);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
className="disabled_style enable_style"
|
||||
|
||||
className="disabled_style session_caract_Dialog_DatePicker"
|
||||
locale='fr-FR'
|
||||
showTimeSelect
|
||||
timeFormat="HH:mm"
|
||||
|
@ -907,7 +949,9 @@ const Module_Agenda = (props) => {
|
|||
|
||||
value={p_detail_comment}
|
||||
onChange={(e) => {
|
||||
if (String(props.write_access) === "1")
|
||||
|
||||
console.log( " dans comment p_detail_sequence_session_id = ", p_detail_sequence_session_id);
|
||||
if (String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "")
|
||||
setp_detail_comment(e.target.value);
|
||||
}
|
||||
}
|
||||
|
@ -927,7 +971,7 @@ const Module_Agenda = (props) => {
|
|||
|
||||
<DialogActions>
|
||||
<div className="div_row">
|
||||
{String(props.write_access) === "1" && <div className="div_row_gauche">
|
||||
{String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && <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>}
|
||||
|
||||
|
@ -944,7 +988,7 @@ const Module_Agenda = (props) => {
|
|||
|
||||
|
||||
|
||||
{String(props.write_access) === "1" && p_detail_event_id && String(p_detail_event_id) !== "" && <DialogActions>
|
||||
{String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && 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 ?");
|
||||
|
@ -1116,6 +1160,7 @@ const Module_Agenda = (props) => {
|
|||
displayEventEnd={true}
|
||||
eventContent={renderEventContent}
|
||||
eventClick={handleEventClick}
|
||||
eventColor= '#378006'
|
||||
|
||||
|
||||
/>
|
||||
|
|
|
@ -54,6 +54,7 @@ import Configuration_Technique from "./Partner_Config_Technique";
|
|||
import Config_Champs_Personnalise from "./Config_Champs_Personnalise";
|
||||
import Module_Agenda from "./Module_Agenda";
|
||||
import Partner_Configuration_Session_Steps from "./Partner_Config_Session_Steps";
|
||||
import Partner_Configuration_Jours_Travail from "./Partner_Config_Jours_Travail";
|
||||
|
||||
import Dialog from '@mui/material/Dialog';
|
||||
import DialogActions from '@mui/material/DialogActions';
|
||||
|
@ -307,7 +308,7 @@ const Partner = (props) => {
|
|||
var list_menu = ['creation', 'infopartner', 'statistique', 'abonnement', 'affichage', 'ordervalide',
|
||||
'mes_sessions', 'setuplms', 'facture', 'pricing', 'mes_clients', 'mes_devis', 'mes_cmd',
|
||||
'mes_stagiaires', 'mes_employes', 'mon_materiel', 'config_document', 'factures_client', "config_technique",
|
||||
"config_champ_specific", "module_agenda", "config_session_steps"]
|
||||
"config_champ_specific", "module_agenda", "config_session_steps", "config_jours_heures"]
|
||||
|
||||
|
||||
if (action && list_menu.includes(action)) {
|
||||
|
@ -421,6 +422,19 @@ const Partner = (props) => {
|
|||
}
|
||||
|
||||
|
||||
function config_jours_travaille_func(event) {
|
||||
var security_retval = check_user_acces_right("config_document", "read");
|
||||
if (security_retval === 1) {
|
||||
setmenu("config_jours_heures");
|
||||
setapiexcelimportmessage();
|
||||
setformation_file_name();
|
||||
history.push("/Partner/config_jours_heures");
|
||||
} else {
|
||||
Dialog_1_handle_acces_insuffisant("Vos droits ne sont pas suffisants pour acceder à la gestion des documents");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function mes_factures_client_func(event) {
|
||||
//var security_retval = check_user_acces_right("facture_client", "read");
|
||||
//if (security_retval === 1) {
|
||||
|
@ -1144,6 +1158,12 @@ const Partner = (props) => {
|
|||
{String(menu) === "config_session_steps" && <div className="sousmenu_selected" onClick={config_session_steps_func}> <FcFinePrint className="icone_menu" /> SESSION ETAPE</div>}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<hr className="my_hr" />
|
||||
{String(menu) !== "config_jours_heures" && <div className="sousmenu" onClick={config_jours_travaille_func}> <FcFinePrint className="icone_menu" /> JOURS & HEURES</div>}
|
||||
{String(menu) === "config_jours_heures" && <div className="sousmenu_selected" onClick={config_jours_travaille_func}> <FcFinePrint className="icone_menu" /> JOURS & HEURES</div>}
|
||||
</div>
|
||||
|
||||
<hr className="my_hr" />
|
||||
</div>
|
||||
|
||||
|
@ -1378,7 +1398,7 @@ const Partner = (props) => {
|
|||
|
||||
{String(menu) === "mes_stagiaires" && <div className="div_droite">
|
||||
|
||||
<DisplayPartnerStagiaires conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("module_agenda", "read")} write_access={check_user_acces_right("module_agenda", "write")}/>
|
||||
<DisplayPartnerStagiaires conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("module_agenda", "read")} write_access={check_user_acces_right("module_agenda", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
@ -1419,6 +1439,13 @@ const Partner = (props) => {
|
|||
}
|
||||
|
||||
|
||||
|
||||
{String(menu) === "config_jours_heures" && <div className="div_droite">
|
||||
|
||||
<Partner_Configuration_Jours_Travail />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "config_champ_specific" && <div className="div_droite">
|
||||
|
||||
<Config_Champs_Personnalise />
|
||||
|
|
|
@ -0,0 +1,409 @@
|
|||
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";
|
||||
|
||||
|
||||
const Partner_Configuration_Jours_Travail = (props) => {
|
||||
|
||||
const history = useHistory();
|
||||
const [submenu, setsubmenu] = useState("");
|
||||
const [rowss, setRows] = useState([]);
|
||||
const [selectionModel, setSelectionModel] = React.useState([]);
|
||||
|
||||
var date_today_90j = new Date();
|
||||
date_today_90j.setDate(date_today_90j.getDate() + 90);
|
||||
|
||||
const [p_filtre1, setp_filtre1] = useState();
|
||||
const [p_filtre1_value, setp_filtre1_value] = useState();
|
||||
|
||||
const [p_filtre2, setp_filtre2] = useState();
|
||||
const [p_filtre2_value, setp_filtre2_value] = useState();
|
||||
|
||||
const [isLoading, setLoading] = useState();
|
||||
|
||||
const columns = [
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: 'config_name', headerName: 'Nom étape', flex: 1, hide: false, editable: false },
|
||||
{ field: 'config_value', headerName: 'Sequence', flex: 1, hide: false, editable: false },
|
||||
{ field: 'config_comment', headerName: 'Sequence', flex: 1, hide: true, editable: false },
|
||||
|
||||
|
||||
{
|
||||
field: "delete", headerName: 'Supprimer',
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
|
||||
<Popup
|
||||
trigger={<Button
|
||||
|
||||
onClick={(event) => {
|
||||
// handleClick_delete(event, cellValues);
|
||||
}}
|
||||
>
|
||||
<CiTrash />
|
||||
|
||||
</Button>}
|
||||
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 document sera <i><font color="red"> définitivement supprimé</font></i>. <br />
|
||||
|
||||
</div>
|
||||
<div className="gest_actions">
|
||||
<div style={{ "width": "45%", "float": "left" }}>
|
||||
<button className="gest_bton_popup" onClick={(event) => {
|
||||
//handleClick_delete(event, cellValues);
|
||||
//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>
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
|
||||
|
||||
const myRef = useRef(null)
|
||||
|
||||
|
||||
const myRef_head = useRef(null);
|
||||
const [selected_id, setselected_id] = 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);
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<div className="partner_configuration_jours_travail">
|
||||
{isLoading && <div className="loader-container">
|
||||
<div className="mysy_spinner"> <img src={img_loading_spin} /> </div>
|
||||
</div>}
|
||||
<h3> Votre configuration des jours et heure de travail </h3>
|
||||
|
||||
<div className="div_row">
|
||||
<div className="titre1"> Utilisez les filtres !</div>
|
||||
<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);
|
||||
|
||||
}}
|
||||
>
|
||||
<MenuItem value="config_name" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Nom du point de configuration </MenuItem>
|
||||
|
||||
|
||||
</TextField>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div className="div_row_droite texte_area_filter_value" >
|
||||
{p_filtre1 &&
|
||||
<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="filtre1_value"
|
||||
id="filtre1_value"
|
||||
|
||||
InputLabelProps={{
|
||||
shrink: true,
|
||||
}}
|
||||
disabled={false}
|
||||
className="disabled_style"
|
||||
value={p_filtre1_value}
|
||||
onChange={(e) => { setp_filtre1_value(e.target.value); }}
|
||||
InputProps={{
|
||||
endAdornment: (
|
||||
<InputAdornment position="end">
|
||||
<AiFillCloseCircle
|
||||
style={{ 'cursor': "pointer", "color": "orangered" }}
|
||||
onClick={(e) => {
|
||||
setp_filtre1_value("");
|
||||
}} />
|
||||
</InputAdornment>
|
||||
),
|
||||
}}
|
||||
|
||||
/>
|
||||
|
||||
}
|
||||
</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" ref={myRef_head} id="myRef_head" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
|
||||
|
||||
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
|
||||
<Button variant="contained" className="bton_enreg" onClick={"Getall_Parter_Invoice_With_Filter"}>Rechercher
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
|
||||
<Button variant="contained" className="bton_annule" onClick={"clean_all_filters"}>Annuler
|
||||
</Button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div className="div_row">
|
||||
<div className="session_data">
|
||||
<div style={{ "border": "None" }}>
|
||||
|
||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
height: 500,
|
||||
width: '100%',
|
||||
paddingRight: '1px',
|
||||
|
||||
// Gestion des cellule "statut"
|
||||
'& .cell--status--encours': {
|
||||
backgroundColor: '#E6F7C8',
|
||||
color: '#1a3e72',
|
||||
fontWeight: 'light',
|
||||
},
|
||||
'& .cell--status--traite': {
|
||||
backgroundColor: '#E6CEAA',
|
||||
color: '#F9E79F',
|
||||
fontWeight: 'light',
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
/*"& .MuiDataGrid-virtualScrollerRenderZone": {
|
||||
"& .MuiDataGrid-row": {
|
||||
"&:nth-child(2n)": { backgroundColor: "rgba(235, 235, 235, .7)" }
|
||||
}
|
||||
},*/
|
||||
"& .MuiDataGrid-columnHeaders": {
|
||||
backgroundColor: "#c8cfd5",
|
||||
color: "black",
|
||||
fontSize: 14
|
||||
},
|
||||
|
||||
}}
|
||||
>
|
||||
<DataGrid
|
||||
checkboxSelection
|
||||
onSelectionModelChange={(newSelectionModel) => {
|
||||
setSelectionModel(newSelectionModel);
|
||||
/* if (newSelectionModel.length === 1)
|
||||
handleClick_edit_config_From_Line(newSelectionModel);
|
||||
if (newSelectionModel.length !== 1) {
|
||||
setp_detail_config_valeur();
|
||||
setp_detail_config_point();
|
||||
setConfig_data_changed();
|
||||
setconfig_data_edit_mode();
|
||||
setdisplay_detail_config();
|
||||
|
||||
|
||||
}*/
|
||||
}}
|
||||
selectionModel={selectionModel}
|
||||
|
||||
localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
|
||||
rows={rowss.map((item, index) => (
|
||||
{
|
||||
id: index,
|
||||
_id: JSON.parse(item)._id,
|
||||
config_name: JSON.parse(item).session_step_name,
|
||||
config_value: JSON.parse(item).session_step_sequence,
|
||||
config_comment: JSON.parse(item).session_step_comment,
|
||||
}
|
||||
))}
|
||||
|
||||
columns={columns}
|
||||
pageSize={10}
|
||||
className="datagridclass"
|
||||
|
||||
onRowDoubleClick={(newSelectionModel) => {
|
||||
//handleClick_edit_config_From_Line (newSelectionModel.row.id);
|
||||
|
||||
}}
|
||||
|
||||
rowsPerPageOptions={[10]}
|
||||
//disableSelectionOnClick
|
||||
components={{
|
||||
Toolbar: GridToolbar,
|
||||
}}
|
||||
//sx={datagridSx}
|
||||
getCellClassName={(params) => {
|
||||
|
||||
|
||||
//field === "order_header_status"
|
||||
if (params.field === "order_header_status" && String(params.value) == "0") {
|
||||
return 'cell--status--brouillon';
|
||||
}
|
||||
|
||||
if (params.field === "order_header_status" && String(params.value) == "1") {
|
||||
|
||||
return 'cell--status--encours';
|
||||
}
|
||||
|
||||
if (params.field === "order_header_status" && String(params.value) == "2") {
|
||||
return 'cell--status--traite';
|
||||
}
|
||||
|
||||
if (params.field === "order_header_status" && String(params.value) == "3") {
|
||||
return 'cell--status--facture';
|
||||
}
|
||||
|
||||
}}
|
||||
getRowClassName={(params) => {
|
||||
|
||||
if (String(params.row.status) === "-1") {
|
||||
return 'line--statut--annule';
|
||||
}
|
||||
if (String(params.row.status) === "0") {
|
||||
return 'line--statut--preinscrit';
|
||||
}
|
||||
if (String(params.row.status) === "1") {
|
||||
return 'line--statut--inscrit';
|
||||
}
|
||||
}}
|
||||
|
||||
|
||||
/>
|
||||
</Box>
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div className="div_row" style={{ "border": "None" }}>
|
||||
|
||||
<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
<Button variant="outlined" onClick={"submenu_add_one_step"}
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Ajout une étape
|
||||
<img src={add_plus} alt="ajout commande" className="icon_plus" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="div_row" ref={myRef} id="myRef"> </div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export default Partner_Configuration_Jours_Travail;
|
||||
|
|
@ -2473,6 +2473,12 @@
|
|||
}
|
||||
|
||||
|
||||
.session_caract_Dialog_DatePicker {
|
||||
width: 99% !important;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
||||
.css-1v4ccyo {
|
||||
height: 3.5rem !important;
|
||||
font-size: small;
|
||||
|
|
|
@ -2473,6 +2473,12 @@
|
|||
}
|
||||
|
||||
|
||||
.session_caract_Dialog_DatePicker {
|
||||
width: 99% !important;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
||||
.css-1v4ccyo {
|
||||
height: 3.5rem !important;
|
||||
font-size: small;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -86,4 +86,5 @@
|
|||
@import "./components/module_agenda.scss";
|
||||
@import "./components/partner_configuration_session_step";
|
||||
@import "./components/module_absence";
|
||||
@import "./components/partner_configuration_jours_travail";
|
||||
|
||||
|
|
Loading…
Reference in New Issue