diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js
index d8c992c..9d44a27 100644
--- a/src/components/DisplayPartnerSession.js
+++ b/src/components/DisplayPartnerSession.js
@@ -3538,7 +3538,7 @@ const DisplayPartnerSession = (props) => {
GetListeEmargement(selected_session_id, selected_internal_url);
setretval_ch("1");
- alert(" La mise à jour été correctement faite.")
+ alert(" La mise à jour a été correctement faite.")
}
else {
setDeleteStagiaireData_api("false");
@@ -3747,7 +3747,7 @@ const DisplayPartnerSession = (props) => {
setparticipant_data_changed();
setparticipant_data_edit_mode();
GetAttendee_Data(p_detail_mail, selected_session_id);
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
//myRef_head.current.scrollIntoView({ behavior: "smooth" });
@@ -4967,6 +4967,10 @@ const DisplayPartnerSession = (props) => {
const [p_session_etape_label, setp_session_etape_label] = useState();
+ const [nb_valide_inscription_entreprise, setnb_valide_inscription_entreprise] = useState("");
+ const [nb_valide_inscription_individuelle, setnb_valide_inscription_individuelle] = useState("");
+
+
const [GetCurrentSession_id, setGetCurrentSession_id] = useState();
const [GetCurrentSession_api, setGetCurrentSession_api] = useState();
@@ -4991,7 +4995,7 @@ const DisplayPartnerSession = (props) => {
if (String(res.data.status) === "true") {
//console.log(" In GetCurrentSession res.data.status = " + res.data.status);
- //console.log(" In GetCurrentSession res.data.message r_class = " + res.data.message);
+ console.log(" In GetCurrentSession res.data.message r_class = " + res.data.message);
//console.log(" In GetCurrentSession res.data.message len = " + String(res.data.message).length);
setLoading(false);
@@ -5027,6 +5031,17 @@ const DisplayPartnerSession = (props) => {
}
+ if( mylocaltraining.nb_valide_inscription_entreprise){
+ setnb_valide_inscription_entreprise(mylocaltraining.nb_valide_inscription_entreprise);
+ }else{
+ setnb_valide_inscription_entreprise("");
+ }
+
+ if( mylocaltraining.nb_valide_inscription_individuelle){
+ setnb_valide_inscription_individuelle(mylocaltraining.nb_valide_inscription_individuelle);
+ }else{
+ setnb_valide_inscription_individuelle("");
+ }
if (mylocaltraining.date_debut) {
var date_du = new Date(moment(mylocaltraining.date_debut, "DD/MM/YYYY HH:mm:ss"));
@@ -5693,7 +5708,7 @@ const DisplayPartnerSession = (props) => {
GetListeEmargement(selected_session_id, selected_internal_url);
setretval_ch("1");
- alert(" La mise à jour été correctement faite.")
+ alert(" La mise à jour a été correctement faite.")
}
else {
setUpdateStagiaireData_api("false");
@@ -19878,7 +19893,10 @@ const DisplayPartnerSession = (props) => {
submenu_emargement={submenu_emargement}
submenu_evaluation={submenu_evaluation_session}
submenu_attestation={submenu_attestation}
- submenu_q_positionnement={submenu_q_positionnement}
+ submenu_q_positionnement={submenu_q_positionnement}
+ nb_valide_inscription_entreprise = {nb_valide_inscription_entreprise}
+ nb_valide_inscription_individuelle = {nb_valide_inscription_individuelle}
+ selected_session_invoiced_statut = {selected_session_invoiced_statut}
/>
diff --git a/src/components/DisplayPartnerStagiaires.js b/src/components/DisplayPartnerStagiaires.js
index 6fc83fe..50c9c24 100644
--- a/src/components/DisplayPartnerStagiaires.js
+++ b/src/components/DisplayPartnerStagiaires.js
@@ -775,7 +775,7 @@ const DisplayPartnerStagiaires = (props) => {
setselected_code_session('');
setsubmenu('');
- alert(" La mise à jour été correctement faite.")
+ alert(" La mise à jour a été correctement faite.")
}
else {
setDeleteStagiaireData_api("false");
@@ -4072,7 +4072,7 @@ const DisplayPartnerStagiaires = (props) => {
setparticipant_data_changed();
setparticipant_data_edit_mode();
GetAttendee_Data(p_detail_mail, p_detail_session_class_id, selected_internal_url);
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
//myRef_head.current.scrollIntoView({ behavior: "smooth" });
@@ -4143,7 +4143,7 @@ const DisplayPartnerStagiaires = (props) => {
setparticipant_data_changed();
setparticipant_data_edit_mode();
GetAttendee_Data(p_detail_mail, p_detail_session_class_id, selected_internal_url);
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
//myRef_head.current.scrollIntoView({ behavior: "smooth" });
diff --git a/src/components/DisplayPartnerUnite_Enseignement.js b/src/components/DisplayPartnerUnite_Enseignement.js
index a24804c..e7e2db7 100644
--- a/src/components/DisplayPartnerUnite_Enseignement.js
+++ b/src/components/DisplayPartnerUnite_Enseignement.js
@@ -202,7 +202,7 @@ const DisplayPartnerUnite_Enseignement = (props) => {
setDelete_Given_UE_api("true");
setDelete_Given_UE_result(res.data.message);
Getall_Parter_Unite_Enseignement();
- alert(" La mise à jour été correctement faite.")
+ alert(" La mise à jour a été correctement faite.")
}
else {
setDelete_Given_UE_api("false");
diff --git a/src/components/ESign.js b/src/components/ESign.js
index b389483..fdb918c 100644
--- a/src/components/ESign.js
+++ b/src/components/ESign.js
@@ -46,6 +46,8 @@ import Header from "./Header";
import Footer from "./Fotter";
import { FcInfo } from "react-icons/fc";
import { Document, Page } from 'react-pdf'
+import SignatureCanvas from 'react-signature-canvas';
+
function ESign() {
@@ -140,14 +142,18 @@ function ESign() {
form.append("secret_key_signature", selected_e_doc_secret);
form.append("email_destinataire", selected_e_doc_email);
-
- if (isimgclassSelectedfile )
+ form.append("signature_img_selected", userimgclassprofil);
+
+
+ if (isimgclassSelectedfile)
form.append('signature_img', isimgclassSelected);
else
form.append('signature_img', "");
console.log(" isimgclassSelected #### = ", isimgclassSelected);
+
+
setLoading(true);
axios.post(myurl, form).then(res => {
@@ -263,6 +269,13 @@ function ESign() {
const [userimgclassprofil, setuserimgclassprofil] = useState();
const [userimgclassprofilchanged, setuserimgclassprofilchanged] = useState("");
+ function reader(file, callback) {
+ const fr = new FileReader();
+ fr.onload = () => callback(null, fr.result);
+ fr.onerror = (err) => callback(err);
+ fr.readAsDataURL(file);
+ }
+
const imglogoclasschangeHandler = (event) => {
@@ -284,17 +297,112 @@ function ESign() {
setisimgclassSelected(event.target.files[0]);
setisimgclassSelectedfile(true);
- setuserimgclassprofil(URL.createObjectURL(event.target.files[0]));
+ //setuserimgclassprofil(URL.createObjectURL(event.target.files[0]));
setuserimgclassprofilchanged("1");
+
+
+ reader(event.target.files[0], (err, res) => {
+ //console.log(res); // Base64 `data:image/...` String result.
+ setuserimgclassprofil(res);
+ });
+
+
+
+
};
+
const [isimgclassSaved, setisimgclassSaved] = useState("");
const [isimgclassSaved_message, setisimgclassSaved_message] = useState("");
+ const [Dialog_SIGN_MANUSCRITE_open, setDialog_SIGN_MANUSCRITE_open] = React.useState(false);
+
+
+ const Dialog_SIGN_MANUSCRITE_handleClose = () => {
+ //alert(" Utiliser le bouton 'fermer' ");
+ //setOpen(false);
+ };
+
+ const Dialog_SIGN_MANUSCRITE_handleClose_buton = () => {
+ setDialog_SIGN_MANUSCRITE_open(false);
+
+ };
+
+ const signatureCanvasRef = useRef(null);
+ // API method examples
+ const checkIfEmpty = () => {
+ const isEmpty = signatureCanvasRef.current.isEmpty();
+
+ if (signatureCanvasRef) {
+ setuserimgclassprofil(signatureCanvasRef.current.toDataURL());
+ setisimgclassSelected(signatureCanvasRef.current.toDataURL())
+ }
+
+ setuserimgclassprofilchanged("1");
+
+ Dialog_SIGN_MANUSCRITE_handleClose_buton();
+ };
+
+ const clearCanvas = () => {
+ signatureCanvasRef.current.clear();
+ };
+
+
return (
+
+ {/* POUR SIGNATURE MANUSCRITE */}
+
+
+ {/* FIN POUR SIGNATURE MANUSCRITE */}
+
+
+
{/* POUR SIGNATURE E-DOCUMENT */}
diff --git a/src/components/Emarge_QR_Code.js b/src/components/Emarge_QR_Code.js
index 06efc01..6231307 100644
--- a/src/components/Emarge_QR_Code.js
+++ b/src/components/Emarge_QR_Code.js
@@ -418,7 +418,7 @@ function Emarge_QR_Code() {
reader(event.target.files[0], (err, res) => {
- console.log(res); // Base64 `data:image/...` String result.
+ //console.log(res); // Base64 `data:image/...` String result.
setuserimgclassprofil(res);
});
@@ -717,7 +717,7 @@ function Emarge_QR_Code() {
-
+
diff --git a/src/components/Employes.js b/src/components/Employes.js
index 197dc2f..1539ad1 100644
--- a/src/components/Employes.js
+++ b/src/components/Employes.js
@@ -2240,7 +2240,7 @@ const Employes = (props) => {
setemployee_data_edit_mode("");
Get_Employee_Data(selected_id);
//setgridline_id('');
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
if (document.getElementById('myRef_head')) {
@@ -4002,7 +4002,7 @@ const Employes = (props) => {
Getall_Employee_Affectation(selected_id);
setSelectionModel_affectations([]);
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
if (document.getElementById('myRef_affectation')) {
// myRef.current.scrollIntoView({ behavior: "smooth" });
@@ -4217,7 +4217,7 @@ const Employes = (props) => {
setUpdate_user_access_right_Data_api("true");
setUpdate_user_access_right_Data_result(res.data.message);
setacces_right_data_edit_mode();
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
}
else {
diff --git a/src/components/GestionAdministrative.js b/src/components/GestionAdministrative.js
index 8f3654c..2822305 100644
--- a/src/components/GestionAdministrative.js
+++ b/src/components/GestionAdministrative.js
@@ -572,7 +572,7 @@ function GestionAdministrative(props) {
GetListePreinscrit(mysession);
setretval_ch("1");
- alert(" La mise à jour été correctement faite.")
+ alert(" La mise à jour a été correctement faite.")
}
else {
setDeleteStagiaireData_api("false");
@@ -993,7 +993,7 @@ function GestionAdministrative(props) {
GetListeEmargement(mysession);
GetListeEvaluation(mysession);
setretval_ch("1");
- alert(" La mise à jour été correctement faite.")
+ alert(" La mise à jour a été correctement faite.")
}
else {
setUpdateStagiaireData_api("false");
@@ -5562,7 +5562,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
GetAttendee_Data_from_line_id(selected_id);
GetCurrentClass_trainingsession()
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
}
else {
diff --git a/src/components/Materiel_Salle.js b/src/components/Materiel_Salle.js
index c0ef217..a7da5f3 100644
--- a/src/components/Materiel_Salle.js
+++ b/src/components/Materiel_Salle.js
@@ -2006,7 +2006,7 @@ const Materiel_Salle = (props) => {
});
}
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
}
else {
@@ -2248,7 +2248,7 @@ const Materiel_Salle = (props) => {
setSelectionModel_affectations([]);
setgridline_affectation_id('');
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
if (document.getElementById('myRef_new_affectation')) {
var divh = document.getElementById('myRef_new_affectation').offsetTop;
diff --git a/src/components/Materiels.js b/src/components/Materiels.js
index 03d6c31..4337e17 100644
--- a/src/components/Materiels.js
+++ b/src/components/Materiels.js
@@ -1724,7 +1724,7 @@ const Materiels = (props) => {
});
}
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
}
else {
@@ -1944,7 +1944,7 @@ const Materiels = (props) => {
setSelectionModel_affectations([]);
setgridline_affectation_id('');
- alert(" La mise à jour été correctement faite.");
+ alert(" La mise à jour a été correctement faite.");
if (document.getElementById('myRef_new_affectation')) {
var divh = document.getElementById('myRef_new_affectation').offsetTop;
diff --git a/src/components/Module_Editique.js b/src/components/Module_Editique.js
index 1c2cacc..37e7796 100644
--- a/src/components/Module_Editique.js
+++ b/src/components/Module_Editique.js
@@ -149,14 +149,14 @@ const Module_Editique = (props) => {
form.append("token", stored_cookie);
form.append("session_id", selected_session_id);
form.append("tab_inscription_ids", "all");
-
+
//var myurl = process.env.REACT_APP_API_URL + "myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/";
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Invoice_Inscrption_With_Split_Session_By_Inscription_Id/";
-
+
setLoading(true);
axios.post(myurl, form).then(res => {
@@ -1802,7 +1802,7 @@ const Module_Editique = (props) => {
{/* FIN Dialog pour gerer les CONVOCATION_STAGIAIRE */}
- {/* Dialog pour gerer les conventions */}
+ {/* Dialog pour gerer les CONVENTIONS */}
Choisir une convention
{
- {/* FIN Dialog pour gerer les conventions */}
+ {/* FIN Dialog pour gerer les CONVENTIONS */}
{/* Dialog pour gerer les Q_POSITIONNEMENT */}
@@ -2205,121 +2208,366 @@ const Module_Editique = (props) => {
{Getall_Editable_Document_By_Partner_By_Collection_result &&
Getall_Editable_Document_By_Partner_By_Collection_result.map((document) => (
-
{
+
+ setaction_server_to_run(String(JSON.parse(document).server_action_name))
+ //setaction_server_type_doc(String(JSON.parse(document).courrier_template_type_doc))
+ 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));
+ setaction_server_type_doc_ref_interne(JSON.parse(document).courrier_template_ref_interne);
+ setDialog_1_message(String(JSON.parse(document).courrier_template_ref_interne))
- if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVENTION_STAGIAIRE_ENTREPRISE" ||
- String(JSON.parse(document).courrier_template_ref_interne) === "CONVENTION_STAGIAIRE_INDIVIDUELLE") {
+ if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVENTION_STAGIAIRE_ENTREPRISE") {
- // Verifier que la date de la session n'est pas passée
- var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
- var diff = date_eval.getTime() - Date.now();
+ // Verifier que la date de la session n'est pas passée
+ var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
+ var diff = date_eval.getTime() - Date.now();
- if (diff <= 0) {
- setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convention")
- setDialog_MSG_INFO_open(true);
- return;
- }
+ if (diff <= 0) {
+ setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+ return;
+ }
+
+ if (String(is_session_invoiced) === "1") {
+ setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+
+ }
+ else if (String(is_session_invoiced) === "2") {
+ setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+
+ } else {
+ 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);
+
+ }
+ }
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "EMARGEMENT_FORMATION") {
+ // setDialog_EMARGEMENT_FORMATION_open(true);
+ props.submenu_emargement();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "ATTESTATION_FORMATION") {
+ //setDialog_ATTESTATION_FORMATION_open(true);
+ props.submenu_attestation();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVOCATION_STAGIAIRE") {
+
+ // Verifier que la date de la session n'est pas passée
+ var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
+ var diff = date_eval.getTime() - Date.now();
+
+ if (diff <= 0) {
+ setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+ return;
+ }
+
+
+ if (String(is_session_invoiced) === "1") {
+ setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+
+
+ }
+ else if (String(is_session_invoiced) === "2") {
+ setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+
+ } else {
+
+ Get_List_Stagiaire_Convocations(String(JSON.parse(document).courrier_template_ref_interne), String(JSON.parse(document).courrier_template_nom), String(JSON.parse(document).courrier_template_type_doc)
+ );
+
+ setDialog_CONVOCATION_STAGIAIRE_open(true);
+ }
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONF_INSCRIPTION") {
+ setDialog_CONF_INSCRIPTION_open(true);
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "EVAL_FORMATION") {
+ //setDialog_EVALUATION_FORMATION_open(true);
+ props.submenu_evaluation();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "QUESTION_POSITIONNEMENT") {
+ //setDialog_Q_POSITIONNEMENT_open(true);
+ props.submenu_q_positionnement();
+ }
+
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "FACTURATION_SESSION") {
+
+ setDialog_FACTURATION_FORMATION_open(true);
+ }
+
+
+
+ }}>
+ {(JSON.parse(document).courrier_template_nom)}
+
{
+
+ setaction_server_to_run(String(JSON.parse(document).server_action_name))
+ //setaction_server_type_doc(String(JSON.parse(document).courrier_template_type_doc))
+ 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));
+ setaction_server_type_doc_ref_interne(JSON.parse(document).courrier_template_ref_interne);
+ setDialog_1_message(String(JSON.parse(document).courrier_template_ref_interne))
+
+
+ if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVENTION_STAGIAIRE_INDIVIDUELLE") {
+
+ // Verifier que la date de la session n'est pas passée
+ var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
+ var diff = date_eval.getTime() - Date.now();
+
+ if (diff <= 0) {
+ setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+ return;
+ }
+
+ if (String(is_session_invoiced) === "1") {
+ setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+
+ }
+ else if (String(is_session_invoiced) === "2") {
+ setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+
+ } else {
+ 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);
+
+ }
+ }
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "EMARGEMENT_FORMATION") {
+ // setDialog_EMARGEMENT_FORMATION_open(true);
+ props.submenu_emargement();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "ATTESTATION_FORMATION") {
+ //setDialog_ATTESTATION_FORMATION_open(true);
+ props.submenu_attestation();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVOCATION_STAGIAIRE") {
+
+ // Verifier que la date de la session n'est pas passée
+ var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
+ var diff = date_eval.getTime() - Date.now();
+
+ if (diff <= 0) {
+ setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+ return;
+ }
+
+
+ if (String(is_session_invoiced) === "1") {
+ setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+
+
+ }
+ else if (String(is_session_invoiced) === "2") {
+ setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+
+ } else {
+
+ Get_List_Stagiaire_Convocations(String(JSON.parse(document).courrier_template_ref_interne), String(JSON.parse(document).courrier_template_nom), String(JSON.parse(document).courrier_template_type_doc)
+ );
+
+ setDialog_CONVOCATION_STAGIAIRE_open(true);
+ }
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONF_INSCRIPTION") {
+ setDialog_CONF_INSCRIPTION_open(true);
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "EVAL_FORMATION") {
+ //setDialog_EVALUATION_FORMATION_open(true);
+ props.submenu_evaluation();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "QUESTION_POSITIONNEMENT") {
+ //setDialog_Q_POSITIONNEMENT_open(true);
+ props.submenu_q_positionnement();
+ }
+
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "FACTURATION_SESSION") {
+
+ setDialog_FACTURATION_FORMATION_open(true);
+ }
+
+
+
+ }}>
+ {(JSON.parse(document).courrier_template_nom)}
+
- if (String(is_session_invoiced) === "1") {
- setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convention")
- setDialog_MSG_INFO_open(true);
+
+
- }
- else if (String(is_session_invoiced) === "2") {
- setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convention")
- setDialog_MSG_INFO_open(true);
+
}
- }
- }
- else if (String(JSON.parse(document).courrier_template_ref_interne) === "EMARGEMENT_FORMATION") {
- // setDialog_EMARGEMENT_FORMATION_open(true);
- props.submenu_emargement();
- }
-
- else if (String(JSON.parse(document).courrier_template_ref_interne) === "ATTESTATION_FORMATION") {
- //setDialog_ATTESTATION_FORMATION_open(true);
- props.submenu_attestation();
- }
-
- else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVOCATION_STAGIAIRE") {
-
- // Verifier que la date de la session n'est pas passée
- var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
- var diff = date_eval.getTime() - Date.now();
-
- if (diff <= 0) {
- setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convocation")
- setDialog_MSG_INFO_open(true);
- return;
- }
+ {String(props.selected_session_invoiced_statut) !== "1" && String(props.selected_session_invoiced_statut) !== "2" &&
+ String(props.nb_valide_inscription_entreprise) !== "0" && String(props.nb_valide_inscription_individuelle) !== "0" &&
- if (String(is_session_invoiced) === "1") {
- setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convocation")
- setDialog_MSG_INFO_open(true);
+
{
+
+ setaction_server_to_run(String(JSON.parse(document).server_action_name))
+ //setaction_server_type_doc(String(JSON.parse(document).courrier_template_type_doc))
+ 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));
+ setaction_server_type_doc_ref_interne(JSON.parse(document).courrier_template_ref_interne);
+ setDialog_1_message(String(JSON.parse(document).courrier_template_ref_interne))
- }
- else if (String(is_session_invoiced) === "2") {
- setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convocation")
- setDialog_MSG_INFO_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") {
- } else {
+ // Verifier que la date de la session n'est pas passée
+ var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
+ var diff = date_eval.getTime() - Date.now();
- Get_List_Stagiaire_Convocations(String(JSON.parse(document).courrier_template_ref_interne), String(JSON.parse(document).courrier_template_nom), String(JSON.parse(document).courrier_template_type_doc)
- );
+ if (diff <= 0) {
+ setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+ return;
+ }
- setDialog_CONVOCATION_STAGIAIRE_open(true);
- }
- }
+ if (String(is_session_invoiced) === "1") {
+ setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
- else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONF_INSCRIPTION") {
- setDialog_CONF_INSCRIPTION_open(true);
- }
+ }
+ else if (String(is_session_invoiced) === "2") {
+ setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
- else if (String(JSON.parse(document).courrier_template_ref_interne) === "EVAL_FORMATION") {
- //setDialog_EVALUATION_FORMATION_open(true);
- props.submenu_evaluation();
- }
+ } else {
+ 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);
- else if (String(JSON.parse(document).courrier_template_ref_interne) === "QUESTION_POSITIONNEMENT") {
- //setDialog_Q_POSITIONNEMENT_open(true);
- props.submenu_q_positionnement();
- }
+ }
+ }
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "EMARGEMENT_FORMATION") {
+ // setDialog_EMARGEMENT_FORMATION_open(true);
+ props.submenu_emargement();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "ATTESTATION_FORMATION") {
+ //setDialog_ATTESTATION_FORMATION_open(true);
+ props.submenu_attestation();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVOCATION_STAGIAIRE") {
+
+ // Verifier que la date de la session n'est pas passée
+ var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
+ var diff = date_eval.getTime() - Date.now();
+
+ if (diff <= 0) {
+ setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+ return;
+ }
- else if (String(JSON.parse(document).courrier_template_ref_interne) === "FACTURATION_SESSION") {
+ if (String(is_session_invoiced) === "1") {
+ setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
- setDialog_FACTURATION_FORMATION_open(true);
- }
+
+ }
+ else if (String(is_session_invoiced) === "2") {
+ setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+
+ } else {
+
+ Get_List_Stagiaire_Convocations(String(JSON.parse(document).courrier_template_ref_interne), String(JSON.parse(document).courrier_template_nom), String(JSON.parse(document).courrier_template_type_doc)
+ );
+
+ setDialog_CONVOCATION_STAGIAIRE_open(true);
+ }
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONF_INSCRIPTION") {
+ setDialog_CONF_INSCRIPTION_open(true);
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "EVAL_FORMATION") {
+ //setDialog_EVALUATION_FORMATION_open(true);
+ props.submenu_evaluation();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "QUESTION_POSITIONNEMENT") {
+ //setDialog_Q_POSITIONNEMENT_open(true);
+ props.submenu_q_positionnement();
+ }
+
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "FACTURATION_SESSION") {
+
+ setDialog_FACTURATION_FORMATION_open(true);
+ }
- }}>
- {(JSON.parse(document).courrier_template_nom)}
-
}
+
+ {/*** Cas d'une sesson facturée */}
+ {(String(props.selected_session_invoiced_statut) === "1" || String(props.selected_session_invoiced_statut) === "2") &&
+
+
+
+
{
+
+ setaction_server_to_run(String(JSON.parse(document).server_action_name))
+ //setaction_server_type_doc(String(JSON.parse(document).courrier_template_type_doc))
+ 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));
+ setaction_server_type_doc_ref_interne(JSON.parse(document).courrier_template_ref_interne);
+ setDialog_1_message(String(JSON.parse(document).courrier_template_ref_interne))
+
+
+ if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVENTION_STAGIAIRE_ENTREPRISE" ||
+ String(JSON.parse(document).courrier_template_ref_interne) === "CONVENTION_STAGIAIRE_INDIVIDUELLE") {
+
+ // Verifier que la date de la session n'est pas passée
+ var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
+ var diff = date_eval.getTime() - Date.now();
+
+ if (diff <= 0) {
+ setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+ return;
+ }
+
+ if (String(is_session_invoiced) === "1") {
+ setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+
+ }
+ else if (String(is_session_invoiced) === "2") {
+ setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convention")
+ setDialog_MSG_INFO_open(true);
+
+ } else {
+ 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);
+
+ }
+ }
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "EMARGEMENT_FORMATION") {
+ // setDialog_EMARGEMENT_FORMATION_open(true);
+ props.submenu_emargement();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "ATTESTATION_FORMATION") {
+ //setDialog_ATTESTATION_FORMATION_open(true);
+ props.submenu_attestation();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVOCATION_STAGIAIRE") {
+
+ // Verifier que la date de la session n'est pas passée
+ var date_eval = new Date(moment(session_date_debut, "DD/MM/YYYY"));
+ var diff = date_eval.getTime() - Date.now();
+
+ if (diff <= 0) {
+ setMSG_INFO_TEXT("Cette session a déjà commencé. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+ return;
+ }
+
+
+ if (String(is_session_invoiced) === "1") {
+ setMSG_INFO_TEXT("Cette session est en cours de facturation. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+
+
+ }
+ else if (String(is_session_invoiced) === "2") {
+ setMSG_INFO_TEXT("Cette session a déjà été facturée. Il n'est plus possible d'éditer une convocation")
+ setDialog_MSG_INFO_open(true);
+
+ } else {
+
+ Get_List_Stagiaire_Convocations(String(JSON.parse(document).courrier_template_ref_interne), String(JSON.parse(document).courrier_template_nom), String(JSON.parse(document).courrier_template_type_doc)
+ );
+
+ setDialog_CONVOCATION_STAGIAIRE_open(true);
+ }
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONF_INSCRIPTION") {
+ setDialog_CONF_INSCRIPTION_open(true);
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "EVAL_FORMATION") {
+ //setDialog_EVALUATION_FORMATION_open(true);
+ props.submenu_evaluation();
+ }
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "QUESTION_POSITIONNEMENT") {
+ //setDialog_Q_POSITIONNEMENT_open(true);
+ props.submenu_q_positionnement();
+ }
+
+
+ else if (String(JSON.parse(document).courrier_template_ref_interne) === "FACTURATION_SESSION") {
+
+ setDialog_FACTURATION_FORMATION_open(true);
+ }
+
+
+
+ }}>
+ {(JSON.parse(document).courrier_template_nom)}
+