21/11/203 - 12h30
parent
10dcfb1dde
commit
e51827410e
|
@ -20,7 +20,7 @@ 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, FcAlarmClock } from "react-icons/fc";
|
||||
import { FcCancel, FcApproval, FcAcceptDatabase, FcPrint, FcAlarmClock, FcMultipleSmartphones, FcWorkflow } from "react-icons/fc";
|
||||
import DatePicker from "react-datepicker";
|
||||
import "react-datepicker/dist/react-datepicker.css";
|
||||
import { format } from 'date-fns'
|
||||
|
@ -187,7 +187,7 @@ const DisplayPartnerSession = (props) => {
|
|||
{ field: 'nb_inscrit', headerName: 'Inscrits', width: datagrid_columns_size_model2, align: "center", hide: true, hideable: true, },
|
||||
{ field: 'nb_preinscrit', headerName: 'Preinscrits', width: datagrid_columns_size_model2, align: "center", hide: true, hideable: true, },
|
||||
{ field: 'prix_session', headerName: 'Prix', minWidth: datagrid_columns_size_model2, align: "center", },
|
||||
{ field: 'title', headerName: 'Formation', minWidth: 250, flex:1, align: "center", hide: true, hideable: true, },
|
||||
{ field: 'title', headerName: 'Formation', minWidth: 250, flex: 1, align: "center", hide: true, hideable: true, },
|
||||
{ field: 'domaine', headerName: 'Domaine', width: datagrid_columns_size_model1, align: "center", hide: true, hideable: true, },
|
||||
{ field: 'published', headerName: 'publié', width: datagrid_columns_size_model1, align: "center", hide: true, hideable: true, },
|
||||
|
||||
|
@ -670,13 +670,13 @@ const DisplayPartnerSession = (props) => {
|
|||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'session_id', headerName: 'session_id', width: 200, hide: true, flex: 1, minWidth: 150, maxWidth: 300 },
|
||||
{ field: 'sequence_title', headerName: 'Titre', minWidth: 200, flex:1, hide: false, editable: false, resizable: true },
|
||||
{ field: 'sequence_start', headerName: 'Debut', minWidth: 200, flex:1, hide: false, editable: false },
|
||||
{ field: 'sequence_end', headerName: 'Fin', minWidth: 200, flex:1, hide: false, editable: false },
|
||||
{ field: 'sequence_title', headerName: 'Titre', minWidth: 200, flex: 1, hide: false, editable: false, resizable: true },
|
||||
{ field: 'sequence_start', headerName: 'Debut', minWidth: 200, flex: 1, hide: false, editable: false },
|
||||
{ field: 'sequence_end', headerName: 'Fin', minWidth: 200, flex: 1, hide: false, editable: false },
|
||||
|
||||
|
||||
{
|
||||
field: "Detail", headerName: 'Voir detail',minWidth: 200, flex:1,
|
||||
field: "Detail", headerName: 'Voir detail', minWidth: 200, flex: 1,
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
|
||||
|
@ -684,7 +684,7 @@ const DisplayPartnerSession = (props) => {
|
|||
|
||||
onClick={(event) => {
|
||||
setselected_detail_sequence_title(cellValues.row.sequence_title);
|
||||
|
||||
|
||||
setselected_sequence_startDate(cellValues.row.sequence_start);
|
||||
setselected_sequence_endDate(cellValues.row.sequence_end);
|
||||
|
||||
|
@ -700,7 +700,7 @@ const DisplayPartnerSession = (props) => {
|
|||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}}
|
||||
>
|
||||
<FcViewDetails />
|
||||
|
@ -712,14 +712,14 @@ const DisplayPartnerSession = (props) => {
|
|||
},
|
||||
|
||||
{
|
||||
field: "modifier", headerName: 'Modifier',minWidth: 200, flex:1,
|
||||
field: "modifier", headerName: 'Modifier', minWidth: 200, flex: 1,
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
|
||||
<Button
|
||||
|
||||
onClick={(event) => {
|
||||
|
||||
|
||||
setp_detail_sequence_title(cellValues.row.sequence_title);
|
||||
setselected_sequence_id(cellValues.row._id);
|
||||
var date_du = new Date(moment(cellValues.row.sequence_start, "DD/MM/YYYY HH:mm"));
|
||||
|
@ -728,7 +728,7 @@ const DisplayPartnerSession = (props) => {
|
|||
setsequence_startDate(date_du);
|
||||
setsequence_endDate(date_au);
|
||||
setupdate_sequence("1");
|
||||
submenu_add_one_sequence();
|
||||
submenu_update_sequence();
|
||||
}}
|
||||
>
|
||||
<FcViewDetails />
|
||||
|
@ -740,7 +740,7 @@ const DisplayPartnerSession = (props) => {
|
|||
},
|
||||
|
||||
{
|
||||
field: "delete", headerName: 'Supprimer',minWidth: 200, flex:1,
|
||||
field: "delete", headerName: 'Supprimer', minWidth: 200, flex: 1,
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
|
||||
|
@ -806,12 +806,12 @@ const DisplayPartnerSession = (props) => {
|
|||
const columns_sequence_ressources_affectation = [
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'related_target_collection_id', headerName: 'related_target_collection_id', width: 200, hide: true, flex: 1, minWidth: 150, maxWidth: 300 },
|
||||
{ field: 'related_target_collection', headerName: 'related_target_collection', width: 150, hide: true, editable: false, resizable: true },
|
||||
{ field: 'type_ressource', headerName: 'Type', width: 150, hide: false, editable: false },
|
||||
{ field: 'related_target_collection_object', headerName: 'object', width: 150, hide: false, editable: false, resizable: true },
|
||||
{ field: 'related_target_collection_id_nom', headerName: 'nom', width: 150, hide: false, editable: false, resizable: true },
|
||||
{ field: 'poste', headerName: 'Poste', width: 150, hide: false, editable: false },
|
||||
{ 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: '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, },
|
||||
{ field: 'comment', headerName: 'Comment', width: 200, hide: false, editable: false },
|
||||
{
|
||||
field: "delete", headerName: 'Supprimer',
|
||||
|
@ -6245,6 +6245,13 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
setDialog_seq_1_open(true);
|
||||
}
|
||||
|
||||
|
||||
function submenu_update_sequence() {
|
||||
setupdate_sequence("1");
|
||||
|
||||
setDialog_seq_1_open(true);
|
||||
}
|
||||
|
||||
const [Add_One_Sequence_Session_api, setAdd_One_Sequence_Session_api] = useState();
|
||||
const [Add_One_Sequence_Session_message, setAdd_One_Sequence_Session_message] = useState();
|
||||
const [Add_One_Sequence_Session_result, setAdd_One_Sequence_Session_result] = useState();
|
||||
|
@ -6398,6 +6405,14 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
|
||||
Getall_Sequence_Of_Session(selected_session_id);
|
||||
|
||||
setDialog_seq_ressource_1_selected_type_ressource();
|
||||
setDialog_seq_ressource_1_selected_ressource_id();
|
||||
setDialog_seq_ressource_1_selected_ressource_poste();
|
||||
setdisplay_detail_sequence();
|
||||
setselected_sequence_id();
|
||||
setupdate_sequence();
|
||||
|
||||
|
||||
alert(res.data.message)
|
||||
}
|
||||
else {
|
||||
|
@ -6604,6 +6619,12 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
|
||||
const [update_sequence, setupdate_sequence] = useState();
|
||||
|
||||
|
||||
function submenu_add_automatic_sequence() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div className="displaypartnersession">
|
||||
|
||||
|
@ -6825,8 +6846,8 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
className="disabled_style enable_style"
|
||||
className="disabled_style session_caract_Dialog_DatePicker"
|
||||
style={{ width: "99%" }}
|
||||
locale='fr-FR'
|
||||
showTimeSelect
|
||||
timeFormat="HH:mm"
|
||||
|
@ -6852,7 +6873,8 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
}
|
||||
|
||||
|
||||
className="disabled_style enable_style"
|
||||
className="disabled_style session_caract_Dialog_DatePicker"
|
||||
style={{ width: "99%" }}
|
||||
locale='fr-FR'
|
||||
showTimeSelect
|
||||
timeFormat="HH:mm"
|
||||
|
@ -6897,12 +6919,12 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
<div className="div_row">
|
||||
<div className="div_row_gauche">
|
||||
|
||||
{String(update_sequence) !== "1" && <Button onClick={Add_One_Sequence_Session} className="bton_enreg_dialog">Ajouter</Button>}
|
||||
{String(update_sequence) === "1" && <Button onClick={Update_One_Sequence_Session} className="bton_enreg_dialog">Mettre à jour</Button>}
|
||||
{String(update_sequence) !== "1" && <Button onClick={Add_One_Sequence_Session} className="bton_enreg_dialog">Ajouter</Button>}
|
||||
{String(update_sequence) === "1" && <Button onClick={Update_One_Sequence_Session} className="bton_enreg_dialog">Mettre à jour</Button>}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
|
||||
<Button onClick={Close_Dialog_Detail_seq_open} className="bton_annule_dialog" >Fermer</Button>
|
||||
|
@ -9094,7 +9116,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
|
||||
setselected_sequence_id(newSelectionModel.row._id);
|
||||
setdisplay_detail_sequence("1");
|
||||
|
||||
|
||||
if (document.getElementById('myRef_seq_ressource')) {
|
||||
var divh = document.getElementById('myRef_seq_ressource').offsetTop;
|
||||
window.scrollTo({
|
||||
|
@ -9169,6 +9191,64 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
id='menu_import_participant' name='menu_import_participant'>Ajout 1 Séquence
|
||||
<img src={add_plus} alt="ajout session" className="icon_plus" />
|
||||
</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"
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Création automatique
|
||||
<FcMultipleSmartphones />
|
||||
</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">
|
||||
{' '}
|
||||
|
||||
<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();
|
||||
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 />
|
||||
|
||||
|
|
|
@ -2485,6 +2485,9 @@
|
|||
|
||||
// end media
|
||||
|
||||
.css-md26zr-MuiInputBase-root-MuiOutlinedInput-root{
|
||||
height: 3rem !important;
|
||||
}
|
||||
|
||||
.session_caract_Dialog {
|
||||
width: 100%;
|
||||
|
@ -2506,6 +2509,13 @@
|
|||
}
|
||||
|
||||
|
||||
.session_caract_Dialog_DatePicker {
|
||||
|
||||
width: 99% !important;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.css-1v4ccyo {
|
||||
height: 3.5rem !important;
|
||||
|
|
Loading…
Reference in New Issue