diff --git a/src/components/Module_Editique.js b/src/components/Module_Editique.js index 50fbc43..5ef27f9 100644 --- a/src/components/Module_Editique.js +++ b/src/components/Module_Editique.js @@ -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 (
@@ -654,6 +676,79 @@ const Module_Editique = (props) => { + {/* Dialog pour gerer les CONF_INSCRIPTION */} + + + MySy Information + + + {Dialog_1_message} - {action_server_type_doc} + + + + + + +
+
+ + +
+ + + +
+ +
+
+ +
+ +
+ {/* FIN Dialog pour gerer les CONF_INSCRIPTION */} + + + {/* Dialog pour gerer les EMARGEMENT_FORMATION */} + + + MySy Information + + + {Dialog_1_message} - {action_server_type_doc} + + + + + + +
+
+ + +
+ + + +
+ +
+
+ +
+ +
+ {/* FIN Dialog pour gerer les EMARGEMENT_FORMATION */} + {/* Dialog pour gerer les conventions */} { 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)}
{String(JSON.parse(document).has_history_event) === "1" &&