sds
parent
f7844e1d9a
commit
820874c5ec
|
@ -703,6 +703,7 @@ const Module_Session_Evaluation = (props) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const [actionmass_eval_froid, setactionmass_eval_froid] = useState();
|
||||||
|
|
||||||
const [actionmass_eval_val, setactionmass_eval_val] = useState();
|
const [actionmass_eval_val, setactionmass_eval_val] = useState();
|
||||||
const actionmass_evaluation = (event) => {
|
const actionmass_evaluation = (event) => {
|
||||||
|
@ -754,6 +755,36 @@ const Module_Session_Evaluation = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function GetSelectedRows_Evaluation_Ids_cold() {
|
||||||
|
|
||||||
|
var tab_tmp = []
|
||||||
|
for (var i = 0; i < selectionModel_evaluation_cold.length; i++) {
|
||||||
|
var myid = parseInt(String(selectionModel_evaluation_cold[i]));
|
||||||
|
//var line = JSON.parse(rowss[myid]);
|
||||||
|
tab_tmp.push(myid);
|
||||||
|
}
|
||||||
|
return tab_tmp;
|
||||||
|
|
||||||
|
}
|
||||||
|
async function actionmass_Evaluation_Traitemet_cold() {
|
||||||
|
var liste_formation = GetSelectedRows_Evaluation_Ids_cold();
|
||||||
|
|
||||||
|
|
||||||
|
var tab_ids_inscription = []
|
||||||
|
for (var i = 0; i < selectionModel_evaluation_cold.length; i++) {
|
||||||
|
var myid = parseInt(String(selectionModel_evaluation_cold[i]));
|
||||||
|
var line = JSON.parse(rowss_evaluation_cold[myid]);
|
||||||
|
var line_id = JSON.parse(rowss_evaluation_cold[myid])._id;
|
||||||
|
|
||||||
|
tab_ids_inscription.push(line_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//SendEvaluationEmail_Many_Ids(tab_ids_inscription);
|
||||||
|
Send_Survey_By_Email_For_Ids(tab_ids_inscription);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const [Send_Survey_By_Email_For_Ids_api, setSend_Survey_By_Email_For_Ids_api] = useState();
|
const [Send_Survey_By_Email_For_Ids_api, setSend_Survey_By_Email_For_Ids_api] = useState();
|
||||||
const [Send_Survey_By_Email_For_Ids_message, setSend_Survey_By_Email_For_Ids_message] = useState();
|
const [Send_Survey_By_Email_For_Ids_message, setSend_Survey_By_Email_For_Ids_message] = useState();
|
||||||
const [Send_Survey_By_Email_For_Ids_result, setSend_Survey_By_Email_For_Ids_result] = useState();
|
const [Send_Survey_By_Email_For_Ids_result, setSend_Survey_By_Email_For_Ids_result] = useState();
|
||||||
|
@ -779,10 +810,17 @@ const Module_Session_Evaluation = (props) => {
|
||||||
//console.log(" In UpdateStagiaireData res.data.message r_class = " + res.data.message);
|
//console.log(" In UpdateStagiaireData res.data.message r_class = " + res.data.message);
|
||||||
setSend_Survey_By_Email_For_Ids_api("true");
|
setSend_Survey_By_Email_For_Ids_api("true");
|
||||||
setSend_Survey_By_Email_For_Ids_result(res.data.message);
|
setSend_Survey_By_Email_For_Ids_result(res.data.message);
|
||||||
|
|
||||||
Getall_Survey_hot_evaluation_By_Session();
|
Getall_Survey_hot_evaluation_By_Session();
|
||||||
|
Getall_Survey_cold_evaluation_By_Session();
|
||||||
|
|
||||||
|
|
||||||
setSelectionModel_evaluation([]);
|
setSelectionModel_evaluation([]);
|
||||||
|
setSelectionModel_evaluation_cold([]);
|
||||||
|
|
||||||
setactionmass_eval_val("");
|
setactionmass_eval_val("");
|
||||||
|
setactionmass_eval_froid("");
|
||||||
|
|
||||||
alert(res.data.message);
|
alert(res.data.message);
|
||||||
|
|
||||||
} else if (String(res.data.status) === String("Err_Connexion")) {
|
} else if (String(res.data.status) === String("Err_Connexion")) {
|
||||||
|
@ -1327,7 +1365,7 @@ const Module_Session_Evaluation = (props) => {
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{selectionModel_evaluation && selectionModel_evaluation.length >= 1 &&
|
{selectionModel_evaluation && String(selectionModel_evaluation) !== "" && selectionModel_evaluation.length >= 0 &&
|
||||||
<div className="block_en_mass">
|
<div className="block_en_mass">
|
||||||
|
|
||||||
<nav >Traitement en masse / Evaluation</nav>
|
<nav >Traitement en masse / Evaluation</nav>
|
||||||
|
@ -1620,7 +1658,7 @@ const Module_Session_Evaluation = (props) => {
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{selectionModel_evaluation_cold && selectionModel_evaluation_cold.length >= 1 &&
|
{selectionModel_evaluation_cold && selectionModel_evaluation_cold.length >= 0 &&
|
||||||
<div className="block_en_mass">
|
<div className="block_en_mass">
|
||||||
<nav >Traitement en masse / Evaluation froid</nav>
|
<nav >Traitement en masse / Evaluation froid</nav>
|
||||||
|
|
||||||
|
@ -1636,16 +1674,16 @@ const Module_Session_Evaluation = (props) => {
|
||||||
if (value && value.value) {
|
if (value && value.value) {
|
||||||
if (String(value.value) === "demande evaluation") {
|
if (String(value.value) === "demande evaluation") {
|
||||||
|
|
||||||
setactionmass_eval_val(value.value);
|
setactionmass_eval_froid(value.value);
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setactionmass_eval_val("");
|
setactionmass_eval_froid("");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setactionmass_eval_val("");
|
setactionmass_eval_froid("");
|
||||||
}
|
}
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
@ -1655,7 +1693,7 @@ const Module_Session_Evaluation = (props) => {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
{actionmass_eval_val && String(actionmass_eval_val).length > 1 &&
|
{actionmass_Evaluation_Traitemet_cold && String(actionmass_Evaluation_Traitemet_cold) !== "" && String(actionmass_eval_froid).length > 1 &&
|
||||||
<Popup
|
<Popup
|
||||||
trigger={<Button className="bton_enreg" >
|
trigger={<Button className="bton_enreg" >
|
||||||
<FcAcceptDatabase /> Traiter
|
<FcAcceptDatabase /> Traiter
|
||||||
|
@ -1675,12 +1713,12 @@ const Module_Session_Evaluation = (props) => {
|
||||||
<div className="gest_content">
|
<div className="gest_content">
|
||||||
{' '}
|
{' '}
|
||||||
|
|
||||||
Confirmer l'action <b> {actionmass_eval_val} </b> en masse.
|
Confirmer l'action <b> {actionmass_eval_froid} </b> en masse.
|
||||||
</div>
|
</div>
|
||||||
<div className="gest_actions">
|
<div className="gest_actions">
|
||||||
<div style={{ "width": "45%", "float": "left" }}>
|
<div style={{ "width": "45%", "float": "left" }}>
|
||||||
<button className="gest_bton_popup" onClick={(event) => {
|
<button className="gest_bton_popup" onClick={(event) => {
|
||||||
actionmass_Evaluation_Traitemet();
|
actionmass_Evaluation_Traitemet_cold();
|
||||||
close();
|
close();
|
||||||
}}> Valider </button>
|
}}> Valider </button>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import 'reactjs-popup/dist/index.css';
|
||||||
import { FcSearch } from "react-icons/fc";
|
import { FcSearch } from "react-icons/fc";
|
||||||
import { FcAlarmClock, FcMultipleSmartphones, FcWorkflow } from "react-icons/fc";
|
import { FcAlarmClock, FcMultipleSmartphones, FcWorkflow } from "react-icons/fc";
|
||||||
import DatePicker from "react-datepicker";
|
import DatePicker from "react-datepicker";
|
||||||
import "react-datepicker/dist/react-datepicker.css";
|
import "react-datepicker/dist/react-datepicker.css";
|
||||||
import { format } from 'date-fns'
|
import { format } from 'date-fns'
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import 'moment/locale/fr';
|
import 'moment/locale/fr';
|
||||||
|
@ -628,7 +628,7 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const [Dialog_seq_choix_model_emargement_message, setDialog_seq_choix_model_emargement_message] = React.useState(false);
|
const [Dialog_seq_choix_model_emargement_message, setDialog_seq_choix_model_emargement_message] = React.useState(false);
|
||||||
const [Dialog_seq_choix_model_emargement_open, setDialog_seq_choix_model_emargement_open] = React.useState(false);
|
const [Dialog_seq_choix_model_emargement_open, setDialog_seq_choix_model_emargement_open] = React.useState(false);
|
||||||
|
|
||||||
|
@ -845,7 +845,7 @@ const Module_Session_Planification = (props) => {
|
||||||
alert(res.data.message);
|
alert(res.data.message);
|
||||||
Close_Dialog_Detail_seq_open();
|
Close_Dialog_Detail_seq_open();
|
||||||
Dialog_DIALOG_AGENDA_handleClose_buton();
|
Dialog_DIALOG_AGENDA_handleClose_buton();
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setAdd_One_Sequence_Session_api("false");
|
setAdd_One_Sequence_Session_api("false");
|
||||||
|
@ -1478,6 +1478,7 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
|
|
||||||
function submenu_add_one_Ressource() {
|
function submenu_add_one_Ressource() {
|
||||||
|
setGet_Ressource_Avabilities_avability_check("");
|
||||||
setDialog_seq_ressource_1_open(true);
|
setDialog_seq_ressource_1_open(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1534,6 +1535,7 @@ const Module_Session_Planification = (props) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const Dialog_seq_ressource_1_handleClose_buton = () => {
|
const Dialog_seq_ressource_1_handleClose_buton = () => {
|
||||||
|
setGet_Ressource_Avabilities_avability_check("");
|
||||||
setDialog_seq_ressource_1_open(false);
|
setDialog_seq_ressource_1_open(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1806,7 +1808,7 @@ const Module_Session_Planification = (props) => {
|
||||||
setDialog_seq_planif_periode_type("");
|
setDialog_seq_planif_periode_type("");
|
||||||
|
|
||||||
alert(res.data.message);
|
alert(res.data.message);
|
||||||
|
|
||||||
Close_Dialog_Detail_seq_open();
|
Close_Dialog_Detail_seq_open();
|
||||||
Dialog_seq_CREATION_SEMAINE_TYPE_handleClose_buton();
|
Dialog_seq_CREATION_SEMAINE_TYPE_handleClose_buton();
|
||||||
Dialog_EVENT_SEMAINE_TYPE_handleClose_buton();
|
Dialog_EVENT_SEMAINE_TYPE_handleClose_buton();
|
||||||
|
@ -1858,12 +1860,12 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
//console.log(" In Add_Automatic_Sequence_Session_From_Month_Model res.data.status = " + res.data.status);
|
//console.log(" In Add_Automatic_Sequence_Session_From_Month_Model res.data.status = " + res.data.status);
|
||||||
//console.log(" In Add_Automatic_Sequence_Session_From_Month_Model res.data.message r_class = " + res.data.message);
|
//console.log(" In Add_Automatic_Sequence_Session_From_Month_Model res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
if (String(res.data.status) === String("true")) {
|
if (String(res.data.status) === String("true")) {
|
||||||
setAdd_Automatic_Sequence_Session_From_Month_Model_api("true");
|
setAdd_Automatic_Sequence_Session_From_Month_Model_api("true");
|
||||||
setAdd_Automatic_Sequence_Session_From_Month_Model_result(res.data.message);
|
setAdd_Automatic_Sequence_Session_From_Month_Model_result(res.data.message);
|
||||||
|
@ -1888,7 +1890,7 @@ const Module_Session_Planification = (props) => {
|
||||||
Dialog_EVENT_SEMAINE_TYPE_handleClose_buton();
|
Dialog_EVENT_SEMAINE_TYPE_handleClose_buton();
|
||||||
Dialog_seq_CREATION_SEMAINE_TYPE_handleClose_buton();
|
Dialog_seq_CREATION_SEMAINE_TYPE_handleClose_buton();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1955,7 +1957,71 @@ const Module_Session_Planification = (props) => {
|
||||||
//setOpen(false);
|
//setOpen(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const [Get_Ressource_Avabilities_avability_check, setGet_Ressource_Avabilities_avability_check] = useState("");
|
||||||
|
|
||||||
|
const [Get_Ressource_Avabilities_api, setGet_Ressource_Avabilities_api] = useState();
|
||||||
|
const [Get_Ressource_Avabilities_message, setGet_Ressource_Avabilities_message] = useState();
|
||||||
|
const [Get_Ressource_Avabilities_result, setGet_Ressource_Avabilities_result] = useState([]);
|
||||||
|
function Get_Ressource_Avabilities(local_related_collection_recid) {
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
|
||||||
|
|
||||||
|
var event_start = String(selected_sequence_startDate);
|
||||||
|
var event_end = String(selected_sequence_endDate);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//var event_start = format(String(line[0].eval_date_heure_debut), 'dd/MM/yyyy HH:mm');
|
||||||
|
//var event_end = format(String(line[0].eval_date_heure_fin), 'dd/MM/yyyy HH:mm');
|
||||||
|
|
||||||
|
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("related_collection", Dialog_seq_ressource_1_selected_type_ressource);
|
||||||
|
form.append("related_collection_recid", local_related_collection_recid);
|
||||||
|
form.append("event_start", String(event_start));
|
||||||
|
form.append("event_end", String(event_end));
|
||||||
|
|
||||||
|
//console.log(" ### form = ", form)
|
||||||
|
|
||||||
|
//return;
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Is_Ressource_Available/";
|
||||||
|
|
||||||
|
setLoading(true);
|
||||||
|
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
setLoading(false);
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
/*console.log(" In Get_Ressource_Avabilities res.data.status = " + res.data.status);
|
||||||
|
console.log(" In Get_Ressource_Avabilities res.data.message r_class = " + res.data.message);
|
||||||
|
console.log(" In Get_Ressource_Avabilities res.data.avability_check r_class = " + res.data.avability_check);
|
||||||
|
*/
|
||||||
|
|
||||||
|
setGet_Ressource_Avabilities_api("true");
|
||||||
|
setGet_Ressource_Avabilities_result(res.data.message);
|
||||||
|
setGet_Ressource_Avabilities_avability_check(res.data.avability_check);
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGet_Ressource_Avabilities_api("false");
|
||||||
|
setGet_Ressource_Avabilities_message(res.data.message);
|
||||||
|
alert(res.data.message)
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
setLoading(false);
|
||||||
|
console.warn('Not good man :( Get_Ressource_Avabilities = ', error);
|
||||||
|
setGet_Ressource_Avabilities_api("false");
|
||||||
|
alert("Impossible de récuperer la liste des ressources de la sequence")
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="modulesessionplanification">
|
<div className="modulesessionplanification">
|
||||||
|
@ -2169,7 +2235,7 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<DialogTitle>Ajout ressource </DialogTitle>
|
<DialogTitle>Ajout ressource : <font size="3"> <i>{selected_sequence_startDate} au {selected_sequence_endDate} </i> </font> </DialogTitle>
|
||||||
<DialogContent className="DialogContent_width">
|
<DialogContent className="DialogContent_width">
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
{Dialog_seq_ressource_1_message}
|
{Dialog_seq_ressource_1_message}
|
||||||
|
@ -2186,10 +2252,15 @@ const Module_Session_Planification = (props) => {
|
||||||
options={New_Option_Type_Ressource}
|
options={New_Option_Type_Ressource}
|
||||||
onChange={(event, value) => {
|
onChange={(event, value) => {
|
||||||
if (value && value.value) {
|
if (value && value.value) {
|
||||||
|
|
||||||
setDialog_seq_ressource_1_selected_type_ressource(value.value);
|
setDialog_seq_ressource_1_selected_type_ressource(value.value);
|
||||||
|
|
||||||
|
}else{
|
||||||
|
setDialog_seq_ressource_1_selected_type_ressource("");
|
||||||
|
setGet_Ressource_Avabilities_avability_check("");
|
||||||
|
setDialog_seq_ressource_1_selected_ressource_id("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setGet_Ressource_Avabilities_avability_check("");
|
||||||
}}
|
}}
|
||||||
|
|
||||||
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
|
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
|
||||||
|
@ -2213,14 +2284,34 @@ const Module_Session_Planification = (props) => {
|
||||||
onChange={(event, value) => {
|
onChange={(event, value) => {
|
||||||
if (value && value._id) {
|
if (value && value._id) {
|
||||||
setDialog_seq_ressource_1_selected_ressource_id(value._id);
|
setDialog_seq_ressource_1_selected_ressource_id(value._id);
|
||||||
|
Get_Ressource_Avabilities(value._id);
|
||||||
|
} else {
|
||||||
|
setGet_Ressource_Avabilities_avability_check("");
|
||||||
|
setDialog_seq_ressource_1_selected_ressource_id("");
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
|
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "0" &&
|
||||||
|
<div className="session_caract_Dialog koUpdateData">
|
||||||
|
<Tooltip className="tooltip_css" id="ressource_indispo_01" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="ressource_indispo_01" data-tooltip-html="Cette ressource n'est pas disponible sur ce créneau. Verifiez son agenda">
|
||||||
|
<FcCancel /><FcInfo /> <font size="10px" color="orange"> /!\ Indisponible du {selected_sequence_startDate} au {selected_sequence_endDate} </font>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "1" &&
|
||||||
|
<div className="session_caract_Dialog okUpdateData" >
|
||||||
|
<Tooltip className="tooltip_css" id="ressource_indispo_02" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="ressource_indispo_02" data-tooltip-html="Disponible de la ressource est ok">
|
||||||
|
|
||||||
|
<FcApproval /> Disponible
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -2238,9 +2329,12 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
onChange={(event, value) => {
|
onChange={(event, value) => {
|
||||||
if (value && value._id) {
|
if (value && value._id) {
|
||||||
setDialog_seq_ressource_1_selected_ressource_id(value._id);
|
setDialog_seq_ressource_1_selected_ressource_id(value._id);
|
||||||
|
Get_Ressource_Avabilities(value._id);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
setGet_Ressource_Avabilities_avability_check("");
|
||||||
|
setDialog_seq_ressource_1_selected_ressource_id("");
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -2248,7 +2342,24 @@ const Module_Session_Planification = (props) => {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "0" &&
|
||||||
|
<div className="session_caract_Dialog koUpdateData">
|
||||||
|
<Tooltip className="tooltip_css" id="ressource_indispo_01" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="ressource_indispo_01" data-tooltip-html="Cette ressource n'est pas disponible sur ce créneau. Verifiez son agenda">
|
||||||
|
<FcCancel /><FcInfo /> <font size="10px" color="orange"> /!\ Indisponible du {selected_sequence_startDate} au {selected_sequence_endDate} </font>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "1" &&
|
||||||
|
<div className="session_caract_Dialog okUpdateData" >
|
||||||
|
<Tooltip className="tooltip_css" id="ressource_indispo_02" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="ressource_indispo_02" data-tooltip-html="Disponible de la ressource est ok">
|
||||||
|
|
||||||
|
<FcApproval /> Disponible
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2300,9 +2411,9 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
{/*** Fin ajout ressource */}
|
{/*** Fin ajout ressource */}
|
||||||
|
|
||||||
{/**** Dialogue pour EVENT SEMAINE TYPE */}
|
{/**** Dialogue pour EVENT SEMAINE TYPE */}
|
||||||
|
|
||||||
<Dialog
|
<Dialog
|
||||||
open={Dialog_EVENT_SEMAINE_TYPE_open}
|
open={Dialog_EVENT_SEMAINE_TYPE_open}
|
||||||
onClose={Dialog_EVENT_SEMAINE_TYPE_handleClose}
|
onClose={Dialog_EVENT_SEMAINE_TYPE_handleClose}
|
||||||
|
|
||||||
|
@ -2504,9 +2615,9 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
<div className="div_row">
|
<div className="div_row">
|
||||||
|
|
||||||
|
|
||||||
{ String(p_detail_sequence_session_id) === "" && <div className="div_row_gauche">
|
{String(p_detail_sequence_session_id) === "" && <div className="div_row_gauche">
|
||||||
{p_detail_sequence_event_type_semaine_id && String(p_detail_sequence_event_type_semaine_id) !== "" && <Button onClick={Update_event_type_semaine} className="bton_enreg_dialog">Mettre à jour</Button>}
|
{p_detail_sequence_event_type_semaine_id && String(p_detail_sequence_event_type_semaine_id) !== "" && <Button onClick={Update_event_type_semaine} className="bton_enreg_dialog">Mettre à jour</Button>}
|
||||||
|
|
||||||
{(!p_detail_sequence_event_type_semaine_id || String(p_detail_sequence_event_type_semaine_id) === "") && <Button onClick={Add_event_type_semaine} className="bton_enreg_dialog">Ajouter</Button>}
|
{(!p_detail_sequence_event_type_semaine_id || String(p_detail_sequence_event_type_semaine_id) === "") && <Button onClick={Add_event_type_semaine} className="bton_enreg_dialog">Ajouter</Button>}
|
||||||
|
@ -2623,74 +2734,74 @@ const Module_Session_Planification = (props) => {
|
||||||
<div className="div_row_dialog">
|
<div className="div_row_dialog">
|
||||||
|
|
||||||
<div style={{ "width": "98%", "marginLeft": "5px", }}>
|
<div style={{ "width": "98%", "marginLeft": "5px", }}>
|
||||||
{Dialog_seq_planif_periode_type && String(Dialog_seq_planif_periode_type) === "mois" &&
|
{Dialog_seq_planif_periode_type && String(Dialog_seq_planif_periode_type) === "mois" &&
|
||||||
<FullCalendar
|
<FullCalendar
|
||||||
height={550}
|
height={550}
|
||||||
locales={allLocales}
|
locales={allLocales}
|
||||||
locale={'fr'}
|
locale={'fr'}
|
||||||
editable
|
editable
|
||||||
selectable
|
selectable
|
||||||
//events={events}
|
//events={events}
|
||||||
events={semaine_type_event}
|
events={semaine_type_event}
|
||||||
initialDate = {SessionstartDate}
|
initialDate={SessionstartDate}
|
||||||
|
|
||||||
select={handleSelect_event_type_semaine}
|
select={handleSelect_event_type_semaine}
|
||||||
headerToolbar={{
|
headerToolbar={{
|
||||||
start: "today prev next",
|
start: "today prev next",
|
||||||
center: "title",
|
center: "title",
|
||||||
end: "dayGridMonth,timeGridWeek,timeGridDay",
|
end: "dayGridMonth,timeGridWeek,timeGridDay",
|
||||||
}}
|
}}
|
||||||
//eventContent={(info) => <EventItem info={info} />}
|
//eventContent={(info) => <EventItem info={info} />}
|
||||||
//plugins={[timeGridPlugin]}
|
//plugins={[timeGridPlugin]}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
plugins={[daygridPlugin, timeGridPlugin, interactionPlugin]}
|
plugins={[daygridPlugin, timeGridPlugin, interactionPlugin]}
|
||||||
views={["dayGridMonth", "dayGridWeek", "dayGridDay"]}
|
views={["dayGridMonth", "dayGridWeek", "dayGridDay"]}
|
||||||
slotMinTime={Partner_Debut_Journee}
|
slotMinTime={Partner_Debut_Journee}
|
||||||
slotMaxTime={Partner_Fin_Journee}
|
slotMaxTime={Partner_Fin_Journee}
|
||||||
scrollTime='08:00'
|
scrollTime='08:00'
|
||||||
displayEventEnd={true}
|
displayEventEnd={true}
|
||||||
eventContent={renderEventContent_event_type_semaine}
|
eventContent={renderEventContent_event_type_semaine}
|
||||||
eventClick={handleEventClick_event_type_semaine}
|
eventClick={handleEventClick_event_type_semaine}
|
||||||
/>}
|
/>}
|
||||||
|
|
||||||
|
|
||||||
{Dialog_seq_planif_periode_type && String(Dialog_seq_planif_periode_type) === "semaine" &&
|
{Dialog_seq_planif_periode_type && String(Dialog_seq_planif_periode_type) === "semaine" &&
|
||||||
|
|
||||||
<FullCalendar
|
|
||||||
height={550}
|
|
||||||
locales={allLocales}
|
|
||||||
locale={'fr'}
|
|
||||||
editable
|
|
||||||
selectable
|
|
||||||
//events={events}
|
|
||||||
events={semaine_type_event}
|
|
||||||
initialDate = {SessionstartDate}
|
|
||||||
|
|
||||||
|
|
||||||
select={handleSelect_event_type_semaine}
|
<FullCalendar
|
||||||
headerToolbar={{
|
height={550}
|
||||||
start: "today prev next",
|
locales={allLocales}
|
||||||
center: "title",
|
locale={'fr'}
|
||||||
end: "dayGridMonth,timeGridWeek,timeGridDay",
|
editable
|
||||||
}}
|
selectable
|
||||||
//eventContent={(info) => <EventItem info={info} />}
|
//events={events}
|
||||||
//plugins={[timeGridPlugin]}
|
events={semaine_type_event}
|
||||||
|
initialDate={SessionstartDate}
|
||||||
|
|
||||||
|
|
||||||
|
select={handleSelect_event_type_semaine}
|
||||||
|
headerToolbar={{
|
||||||
|
start: "today prev next",
|
||||||
|
center: "title",
|
||||||
|
end: "dayGridMonth,timeGridWeek,timeGridDay",
|
||||||
|
}}
|
||||||
|
//eventContent={(info) => <EventItem info={info} />}
|
||||||
|
//plugins={[timeGridPlugin]}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
plugins={[timeGridPlugin, daygridPlugin, interactionPlugin]}
|
plugins={[timeGridPlugin, daygridPlugin, interactionPlugin]}
|
||||||
views={["dayGridMonth", "dayGridWeek", "dayGridDay"]}
|
views={["dayGridMonth", "dayGridWeek", "dayGridDay"]}
|
||||||
slotMinTime={Partner_Debut_Journee}
|
slotMinTime={Partner_Debut_Journee}
|
||||||
slotMaxTime={Partner_Fin_Journee}
|
slotMaxTime={Partner_Fin_Journee}
|
||||||
scrollTime='08:00'
|
scrollTime='08:00'
|
||||||
displayEventEnd={true}
|
displayEventEnd={true}
|
||||||
eventContent={renderEventContent_event_type_semaine}
|
eventContent={renderEventContent_event_type_semaine}
|
||||||
eventClick={handleEventClick_event_type_semaine}
|
eventClick={handleEventClick_event_type_semaine}
|
||||||
/>}
|
/>}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -2992,7 +3103,7 @@ const Module_Session_Planification = (props) => {
|
||||||
<DialogTitle>MySy Information</DialogTitle>
|
<DialogTitle>MySy Information</DialogTitle>
|
||||||
<DialogContent className="DialogContent_width">
|
<DialogContent className="DialogContent_width">
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
{Dialog_DIALOG_AGENDA_message}
|
{Dialog_DIALOG_AGENDA_message}
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
|
||||||
<div className="session_caract_Dialog" >
|
<div className="session_caract_Dialog" >
|
||||||
|
@ -3182,7 +3293,7 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
<div className="div_row">
|
<div className="div_row">
|
||||||
{ String(p_detail_sequence_session_id) === "" && <div className="div_row_gauche">
|
{String(p_detail_sequence_session_id) === "" && <div className="div_row_gauche">
|
||||||
{p_detail_event_id && String(p_detail_event_id) !== "" && <Button onClick={Update_One_Sequence_Session} className="bton_enreg_dialog">Mettre à jour</Button>}
|
{p_detail_event_id && String(p_detail_event_id) !== "" && <Button onClick={Update_One_Sequence_Session} className="bton_enreg_dialog">Mettre à jour</Button>}
|
||||||
{(!p_detail_event_id || String(p_detail_event_id) === "") && <Button onClick={Add_One_Sequence_Session} className="bton_enreg_dialog">Ajouter</Button>}
|
{(!p_detail_event_id || String(p_detail_event_id) === "") && <Button onClick={Add_One_Sequence_Session} className="bton_enreg_dialog">Ajouter</Button>}
|
||||||
|
|
||||||
|
@ -3502,7 +3613,7 @@ const Module_Session_Planification = (props) => {
|
||||||
|
|
||||||
|
|
||||||
<div style={{ "width": "98%", "marginLeft": "5px", }}>
|
<div style={{ "width": "98%", "marginLeft": "5px", }}>
|
||||||
|
|
||||||
<FullCalendar
|
<FullCalendar
|
||||||
height={550}
|
height={550}
|
||||||
locales={allLocales}
|
locales={allLocales}
|
||||||
|
@ -3511,7 +3622,7 @@ const Module_Session_Planification = (props) => {
|
||||||
selectable
|
selectable
|
||||||
//events={events}
|
//events={events}
|
||||||
events={Getall_Sequence_Of_Session_result_planning_view}
|
events={Getall_Sequence_Of_Session_result_planning_view}
|
||||||
initialDate = {SessionstartDate}
|
initialDate={SessionstartDate}
|
||||||
select={handleSelect}
|
select={handleSelect}
|
||||||
headerToolbar={{
|
headerToolbar={{
|
||||||
start: "today prev next",
|
start: "today prev next",
|
||||||
|
|
|
@ -2093,7 +2093,7 @@ const Notes_Evaluation = (props) => {
|
||||||
|
|
||||||
|
|
||||||
// params = la nouvelle lignes
|
// params = la nouvelle lignes
|
||||||
//console.log(" ### zzz params = ", params);
|
|
||||||
|
|
||||||
var num_line = params.id; // ==> Id de la ligne changé
|
var num_line = params.id; // ==> Id de la ligne changé
|
||||||
var colomn = params.field; // ==> colonne de la ligne changé
|
var colomn = params.field; // ==> colonne de la ligne changé
|
||||||
|
@ -2483,6 +2483,11 @@ const Notes_Evaluation = (props) => {
|
||||||
|
|
||||||
// -- Debut gestion des ressources
|
// -- Debut gestion des ressources
|
||||||
|
|
||||||
|
|
||||||
|
const [event_start_date, setevent_start_date] = useState("");
|
||||||
|
const [event_end_date, setevent_end_date] = useState("");
|
||||||
|
|
||||||
|
|
||||||
const [Get_Ressource_Avabilities_avability_check, setGet_Ressource_Avabilities_avability_check] = useState("");
|
const [Get_Ressource_Avabilities_avability_check, setGet_Ressource_Avabilities_avability_check] = useState("");
|
||||||
|
|
||||||
const [Get_Ressource_Avabilities_api, setGet_Ressource_Avabilities_api] = useState();
|
const [Get_Ressource_Avabilities_api, setGet_Ressource_Avabilities_api] = useState();
|
||||||
|
@ -2495,7 +2500,10 @@ const Notes_Evaluation = (props) => {
|
||||||
var line = New_Getall_Partner_Evaluation_result.filter((data) => (data)._id === String(selected_id))
|
var line = New_Getall_Partner_Evaluation_result.filter((data) => (data)._id === String(selected_id))
|
||||||
|
|
||||||
var event_start = String(line[0].eval_date_heure_debut);
|
var event_start = String(line[0].eval_date_heure_debut);
|
||||||
|
setevent_start_date(String(line[0].eval_date_heure_debut));
|
||||||
|
|
||||||
var event_end = String(line[0].eval_date_heure_fin);
|
var event_end = String(line[0].eval_date_heure_fin);
|
||||||
|
setevent_end_date(String(line[0].eval_date_heure_fin));
|
||||||
|
|
||||||
|
|
||||||
//var event_start = format(String(line[0].eval_date_heure_debut), 'dd/MM/yyyy HH:mm');
|
//var event_start = format(String(line[0].eval_date_heure_debut), 'dd/MM/yyyy HH:mm');
|
||||||
|
@ -2591,6 +2599,9 @@ const Notes_Evaluation = (props) => {
|
||||||
const [selectionModel_ressource, setselectionModel_ressource] = React.useState([]);
|
const [selectionModel_ressource, setselectionModel_ressource] = React.useState([]);
|
||||||
|
|
||||||
function submenu_add_one_Ressource() {
|
function submenu_add_one_Ressource() {
|
||||||
|
setevent_start_date("");
|
||||||
|
setevent_end_date("");
|
||||||
|
|
||||||
setGet_Ressource_Avabilities_avability_check("");
|
setGet_Ressource_Avabilities_avability_check("");
|
||||||
setDialog_seq_ressource_1_open(true);
|
setDialog_seq_ressource_1_open(true);
|
||||||
}
|
}
|
||||||
|
@ -2611,6 +2622,10 @@ const Notes_Evaluation = (props) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const Dialog_seq_ressource_1_handleClose_buton = () => {
|
const Dialog_seq_ressource_1_handleClose_buton = () => {
|
||||||
|
|
||||||
|
setevent_start_date("");
|
||||||
|
setevent_end_date("");
|
||||||
|
|
||||||
setDialog_seq_ressource_1_open(false);
|
setDialog_seq_ressource_1_open(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2908,7 +2923,7 @@ const Notes_Evaluation = (props) => {
|
||||||
|
|
||||||
setDialog_seq_ressource_1_selected_type_ressource(value.value);
|
setDialog_seq_ressource_1_selected_type_ressource(value.value);
|
||||||
}
|
}
|
||||||
|
setGet_Ressource_Avabilities_avability_check("");
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -2934,7 +2949,7 @@ const Notes_Evaluation = (props) => {
|
||||||
if (value && value._id) {
|
if (value && value._id) {
|
||||||
setDialog_seq_ressource_1_selected_ressource_id(value._id);
|
setDialog_seq_ressource_1_selected_ressource_id(value._id);
|
||||||
Get_Ressource_Avabilities(value._id);
|
Get_Ressource_Avabilities(value._id);
|
||||||
}else{
|
} else {
|
||||||
Get_Ressource_Avabilities_avability_check("");
|
Get_Ressource_Avabilities_avability_check("");
|
||||||
setDialog_seq_ressource_1_selected_ressource_id("");
|
setDialog_seq_ressource_1_selected_ressource_id("");
|
||||||
}
|
}
|
||||||
|
@ -2945,20 +2960,20 @@ const Notes_Evaluation = (props) => {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "0" &&
|
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "0" &&
|
||||||
<div className="session_caract_Dialog">
|
<div className="session_caract_Dialog koUpdateData">
|
||||||
<Tooltip className="tooltip_css" id="ressource_indispo_01" style={{ "fontSize": "12px" }} />
|
<Tooltip className="tooltip_css" id="ressource_indispo_01" style={{ "fontSize": "12px" }} />
|
||||||
<a data-tooltip-id="ressource_indispo_01" data-tooltip-html="Cette ressource n'est pas disponible sur ce créneau. Verifiez son agenda">
|
<a data-tooltip-id="ressource_indispo_01" data-tooltip-html="Cette ressource n'est pas disponible sur ce créneau. Verifiez son agenda">
|
||||||
<FcCancel /><FcInfo /> /!\ Ressource Indisponible
|
<FcCancel /><FcInfo /> <font size="10px" color="orange"> /!\ Indisponible du {event_start_date} au {event_end_date} </font>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "1" &&
|
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "1" &&
|
||||||
<div className="session_caract_Dialog" >
|
<div className="session_caract_Dialog okUpdateData" >
|
||||||
<Tooltip className="tooltip_css" id="ressource_indispo_02" style={{ "fontSize": "12px" }} />
|
<Tooltip className="tooltip_css" id="ressource_indispo_02" style={{ "fontSize": "12px" }} />
|
||||||
<a data-tooltip-id="ressource_indispo_02" data-tooltip-html="Disponible de la ressource est ok">
|
<a data-tooltip-id="ressource_indispo_02" data-tooltip-html="Disponible de la ressource est ok">
|
||||||
|
|
||||||
<FcApproval /> <FcInfo />
|
<FcApproval /> Disponible
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@ -2980,7 +2995,7 @@ const Notes_Evaluation = (props) => {
|
||||||
if (value && value._id) {
|
if (value && value._id) {
|
||||||
setDialog_seq_ressource_1_selected_ressource_id(value._id);
|
setDialog_seq_ressource_1_selected_ressource_id(value._id);
|
||||||
Get_Ressource_Avabilities(value._id);
|
Get_Ressource_Avabilities(value._id);
|
||||||
}else{
|
} else {
|
||||||
Get_Ressource_Avabilities_avability_check("");
|
Get_Ressource_Avabilities_avability_check("");
|
||||||
setDialog_seq_ressource_1_selected_ressource_id("");
|
setDialog_seq_ressource_1_selected_ressource_id("");
|
||||||
}
|
}
|
||||||
|
@ -2990,20 +3005,20 @@ const Notes_Evaluation = (props) => {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "0" &&
|
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "0" &&
|
||||||
<div className="session_caract_Dialog">
|
<div className="session_caract_Dialog koUpdateData">
|
||||||
<Tooltip className="tooltip_css" id="ressource_indispo_01" style={{ "fontSize": "12px" }} />
|
<Tooltip className="tooltip_css" id="ressource_indispo_01" style={{ "fontSize": "12px" }} />
|
||||||
<a data-tooltip-id="ressource_indispo_01" data-tooltip-html="Cette ressource n'est pas disponible sur ce créneau. Verifiez son agenda">
|
<a data-tooltip-id="ressource_indispo_01" data-tooltip-html="Cette ressource n'est pas disponible sur ce créneau. Verifiez son agenda">
|
||||||
<FcCancel /><FcInfo /> /!\ Ressource Indisponible
|
<FcCancel /><FcInfo /> <font size="10px" color="orange"> /!\ Indisponible du {event_start_date} au {event_end_date} </font>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "1" &&
|
{Get_Ressource_Avabilities_avability_check && String(Get_Ressource_Avabilities_avability_check) === "1" &&
|
||||||
<div className="session_caract_Dialog" >
|
<div className="session_caract_Dialog okUpdateData" >
|
||||||
<Tooltip className="tooltip_css" id="ressource_indispo_02" style={{ "fontSize": "12px" }} />
|
<Tooltip className="tooltip_css" id="ressource_indispo_02" style={{ "fontSize": "12px" }} />
|
||||||
<a data-tooltip-id="ressource_indispo_02" data-tooltip-html="Disponible de la ressource est ok">
|
<a data-tooltip-id="ressource_indispo_02" data-tooltip-html="Disponible de la ressource est ok">
|
||||||
|
|
||||||
<FcApproval /> <FcInfo />
|
<FcApproval /> Disponible
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue