recette2
cherif 2024-01-26 21:51:22 +01:00
parent b4af27438e
commit 886cff52cf
1 changed files with 112 additions and 6 deletions

View File

@ -562,13 +562,14 @@ const Module_Editique = (props) => {
setLoading(true);
axios.post(myurl, form).then(res => {
setLoading(false);
console.log(" In Send_Stagiaire_Conventions_By_Email res.data.status = " + res.data.status);
console.log(" In Send_Stagiaire_Conventions_By_Email res.data.message r_class = " + res.data.message);
//console.log(" In Send_Stagiaire_Conventions_By_Email res.data.status = " + res.data.status);
//console.log(" In Send_Stagiaire_Conventions_By_Email res.data.message r_class = " + res.data.message);
if (String(res.data.status) === String("true")) {
setSend_Stagiaire_Conventions_By_Email_api("true");
setSend_Stagiaire_Conventions_By_Email_result(res.data.message);
Getall_Editable_Document_By_Partner_By_Collection();
alert(res.data.message);
Dialog_convention_handleClose_buton()
}
@ -592,6 +593,27 @@ const Module_Editique = (props) => {
const [action_server_nom_doc, setaction_server_nom_doc] = useState("");
const [action_server_ref_interne_doc, setaction_server_ref_interne_doc] = useState("");
const [Dialog_EMARGEMENT_FORMATION_open, setDialog_EMARGEMENT_FORMATION_open] = React.useState(false);
const Dialog_EMARGEMENT_FORMATION_handleClose = () => {
//alert(" Utiliser le bouton 'fermer' ");
//setOpen(false);
};
const Dialog_EMARGEMENT_FORMATION_handleClose_buton = () => {
setDialog_EMARGEMENT_FORMATION_open(false);
};
const [Dialog_CONF_INSCRIPTION_open, setDialog_CONF_INSCRIPTION_open] = React.useState(false);
const Dialog_CONF_INSCRIPTION_handleClose = () => {
//alert(" Utiliser le bouton 'fermer' ");
//setOpen(false);
};
const Dialog_CONF_INSCRIPTION_handleClose_buton = () => {
setDialog_CONF_INSCRIPTION_open(false);
};
return (
<div className="module_editique">
@ -654,6 +676,79 @@ const Module_Editique = (props) => {
</Dialog>
{/* Dialog pour gerer les CONF_INSCRIPTION */}
<Dialog
open={Dialog_CONF_INSCRIPTION_open}
onClose={Dialog_CONF_INSCRIPTION_handleClose}
className="displaypartnersession"
>
<DialogTitle>MySy Information</DialogTitle>
<DialogContent className="DialogContent_width" style={{ "minHeight": "30rem" }}>
<DialogContentText>
{Dialog_1_message} - {action_server_type_doc}
</DialogContentText>
</DialogContent>
<DialogActions>
<div className="div_row">
<div className="div_row_gauche">
<Button
className="bton_enreg_dialog">Envoyer mail </Button>
</div>
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
<Button onClick={Dialog_CONF_INSCRIPTION_handleClose_buton} className="bton_annule_dialog" >Fermer</Button>
</div>
</div>
</DialogActions>
</Dialog>
{/* FIN Dialog pour gerer les CONF_INSCRIPTION */}
{/* Dialog pour gerer les EMARGEMENT_FORMATION */}
<Dialog
open={Dialog_EMARGEMENT_FORMATION_open}
onClose={Dialog_EMARGEMENT_FORMATION_handleClose}
className="displaypartnersession"
>
<DialogTitle>MySy Information</DialogTitle>
<DialogContent className="DialogContent_width" style={{ "minHeight": "30rem" }}>
<DialogContentText>
{Dialog_1_message} - {action_server_type_doc}
</DialogContentText>
</DialogContent>
<DialogActions>
<div className="div_row">
<div className="div_row_gauche">
<Button
className="bton_enreg_dialog">Envoyer mail </Button>
</div>
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
<Button onClick={Dialog_EMARGEMENT_FORMATION_handleClose_buton} className="bton_annule_dialog" >Fermer</Button>
</div>
</div>
</DialogActions>
</Dialog>
{/* FIN Dialog pour gerer les EMARGEMENT_FORMATION */}
{/* Dialog pour gerer les conventions */}
<Dialog
@ -950,13 +1045,24 @@ const Module_Editique = (props) => {
setaction_server_nom_doc(String(JSON.parse(document).courrier_template_nom))
setaction_server_ref_interne_doc(String(JSON.parse(document).courrier_template_ref_interne))
Action_Server(String(JSON.parse(document).server_action_name));
setDialog_1_message(String(JSON.parse(document).courrier_template_sujet))
setDialog_1_message(String(JSON.parse(document).courrier_template_ref_interne))
Get_List_Stagiaire_Conventions(String(JSON.parse(document).courrier_template_ref_interne), String(JSON.parse(document).courrier_template_nom), String(JSON.parse(document).courrier_template_type_doc)
);
setDialog_convention_open(true);
if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVENTION_STAGIAIRE_ENTREPRISE" ||
String(JSON.parse(document).courrier_template_ref_interne) === "CONVENTION_STAGIAIRE_INDIVIDUELLE") {
setDialog_convention_open(true);
}
else if (String(JSON.parse(document).courrier_template_ref_interne) === "EMARGEMENT_FORMATION") {
setDialog_EMARGEMENT_FORMATION_open(true);
}
else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONF_INSCRIPTION") {
setDialog_CONF_INSCRIPTION_open(true);
}
}}>
{(JSON.parse(document).courrier_template_nom)} - {(JSON.parse(document).courrier_template_type_doc)}
{(JSON.parse(document).courrier_template_ref_interne)} - {(JSON.parse(document).courrier_template_type_doc)}
</div>
{String(JSON.parse(document).has_history_event) === "1" &&