12/07/2025 - 12h

branche_01062025
Cherif 2025-07-12 11:17:20 +02:00
parent 49964b7400
commit df3722f624
46 changed files with 4202 additions and 7775 deletions

View File

@ -1,3 +1,2 @@
nom;raison_sociale;email;adresse;code_postal;ville;pays;siret;telephone;tva;website;invoice_adresse;invoice_code_postal;invoice_email;invoice_nom;invoice_siret;invoice_tva;invoice_ville;invoice_pays
client_test01;raison_sociale1;email-test01@mysy-training.fr;2 place du test;75001;Paris;France;Siret1;1010101;;www.client_test01.fr;invoice_adresse;invoice_code_postal;fact@mysy.fr;invoice_nom_val;invoice_siret_val;invoice_tva;invoice_ville;invoice_pays
client_test02;raison_sociale1;email_test02@mysy-training.fr;2 place du test;75001;Paris;France;Siret1;1010101;;www.client-test02.fr;invoice_adresse;invoice_code_postal;fact@mysy.fr;invoice_nom_val;invoice_siret_val;invoice_tva;invoice_ville;invoice_pays
nom;raison_sociale;email;adresse;code_postal;ville;pays;siret;telephone;tva;website;invoice_adresse;invoice_code_postal;invoice_email;invoice_nom;invoice_siret;invoice_tva;invoice_ville;invoice_pays;condition_paiement_code;is_compagnie;partner_groupe_client_code;contact_civilite;contact_nom;contact_prenom;contact_email;is_contact_communication;contact_fonction;contact_mobile;contact_phone;contact_adresse;contact_code_postal;contact_ville;contact_pays;contact_siret;contact_tva;is_fournisseur;is_client;is_financeur;client_type_code
imprt_client_01;raison_sociale1;import_mail_01@mysy-training.fr;2 place du test;75001;Paris;France;Siret1;1010101;;www.client_test01.fr;invoice_adresse;invoice_code_postal;fact@mysy.fr;invoice_nom_val;invoice_siret_val;invoice_tva;invoice_ville;invoice_pays;15JM;1;qsd;M;toto1;prenom_toto;toto@lll.fr;1;fonction;6060606;1020304;addd;45000;villllle;payssss;siret011_contact;tvz_ci;0;1;;CL_TYPE1

1 nom raison_sociale email adresse code_postal ville pays siret telephone tva website invoice_adresse invoice_code_postal invoice_email invoice_nom invoice_siret invoice_tva invoice_ville invoice_pays condition_paiement_code is_compagnie partner_groupe_client_code contact_civilite contact_nom contact_prenom contact_email is_contact_communication contact_fonction contact_mobile contact_phone contact_adresse contact_code_postal contact_ville contact_pays contact_siret contact_tva is_fournisseur is_client is_financeur client_type_code
2 client_test01 imprt_client_01 raison_sociale1 email-test01@mysy-training.fr import_mail_01@mysy-training.fr 2 place du test 75001 Paris France Siret1 1010101 www.client_test01.fr invoice_adresse invoice_code_postal fact@mysy.fr invoice_nom_val invoice_siret_val invoice_tva invoice_ville invoice_pays 15JM 1 qsd M toto1 prenom_toto toto@lll.fr 1 fonction 6060606 1020304 addd 45000 villllle payssss siret011_contact tvz_ci 0 1 CL_TYPE1
client_test02 raison_sociale1 email_test02@mysy-training.fr 2 place du test 75001 Paris France Siret1 1010101 www.client-test02.fr invoice_adresse invoice_code_postal fact@mysy.fr invoice_nom_val invoice_siret_val invoice_tva invoice_ville invoice_pays

View File

@ -5017,7 +5017,6 @@ const AddClassManual = (props) => {
{/*** GESTION IA */}
<Dialog
open={Dialog_mysy_ia_open}
@ -6127,7 +6126,7 @@ const AddClassManual = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -7215,7 +7214,7 @@ const AddClassManual = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();
@ -7321,7 +7320,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7381,7 +7380,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7443,7 +7442,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7479,7 +7478,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7516,7 +7515,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7554,7 +7553,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7614,7 +7613,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7650,7 +7649,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7686,7 +7685,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7745,7 +7744,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -7804,7 +7803,7 @@ const AddClassManual = (props) => {
init={{
resize: false,
height: 300,
menubar: false,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -8013,7 +8012,7 @@ const AddClassManual = (props) => {
{String(datamodification) !== String("1") && String(editor_tochange) !== String("1") &&
{String(datamodification) !== String("1") && String(editor_tochange) !== String("1") && String(props.check_user_acces_right("formation", "write")) === "1" &&
String(props.mytrainingclass.ref) !== "" && <div className="parter_div_filtrer_row_droite" >
<Button variant="contained" onClick={DeleteClass} startIcon={<DeleteIcon />} className="bton_suppr2"> SUPPRIMER LA FORMATION </Button>
@ -8021,7 +8020,7 @@ const AddClassManual = (props) => {
}
{(String(datamodification) === String("1") || String(editor_tochange) === String("1")) &&
{(String(datamodification) === String("1") || String(editor_tochange) === String("1")) && String(props.check_user_acces_right("formation", "write")) === "1" &&
String(props.mytrainingclass.ref) !== "" && <div className="parter_div_filtrer_row_droite" >
<Button variant="contained" onClick={UndoModif} startIcon={<IoArrowUndoCircle />} className="bton_suppr2"> ANNULER LES MODIFICATIONS </Button>
@ -8029,7 +8028,7 @@ const AddClassManual = (props) => {
</div>}
{String(props.ispending) !== String("0") && <div className="parter_div_filtrer_row">
{String(props.ispending) !== String("0") && String(props.check_user_acces_right("formation", "write")) === "1" && <div className="parter_div_filtrer_row">
{String(datamodification) === String("1") && <div className="parter_div_filtrer_row_gauche bton_enreg2" onClick={alertactivecompte} >
<AiTwotoneSave />ENREGISTRER
</div>

View File

@ -165,7 +165,7 @@ const AddParnerClient = (props) => {
const [p_contact_telephone_mobile, setp_contact_telephone_mobile] = useState("");
const [p_contact_fonction, setp_contact_fonction] = useState("");
const [p_contact_civilite, setp_contact_civilite] = useState("");
const [p_contact_civilite, setp_contact_civilite] = useState("neutre");
const [selected_contact_id, setelected_contact_id] = useState("");
@ -386,6 +386,8 @@ const AddParnerClient = (props) => {
}
function DataEditMode_Invoice_Data() {
if (String(props.check_user_acces_right("client", "write")) === "1") {
setformedit_mode_invoice("1");
Enable_invoice_fields();
@ -528,7 +530,10 @@ const AddParnerClient = (props) => {
else {
setGet_List_Client_Type_api("false");
setGet_List_Client_Type_message(res.data.message);
alert(res.data.message);
//alert(res.data.message);
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
setalert_type("error");
}
}).catch((error) => {
@ -603,7 +608,10 @@ const AddParnerClient = (props) => {
else {
setGet_List_Client_Groupe_api("false");
setGet_List_Client_Groupe_message(res.data.message);
alert(res.data.message);
//alert(res.data.message);
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
setalert_type("error");
}
}).catch((error) => {
@ -686,7 +694,10 @@ const AddParnerClient = (props) => {
else {
setGetall_Partner_Paiement_Condition_api("false");
setGetall_Partner_Paiement_Condition_message(res.data.message);
alert(res.data.message);
//alert(res.data.message);
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
setalert_type("error");
}
}).catch((error) => {
@ -841,18 +852,18 @@ const AddParnerClient = (props) => {
setp_client_type_label("");
}
if (mylocalclient.partner_groupe_client_id) {
setp_client_goupe_client_id(mylocalclient.partner_groupe_client_id);
if (mylocalclient.partner_groupe_client_id) {
setp_client_goupe_client_id(mylocalclient.partner_groupe_client_id);
} else {
setp_client_goupe_client_id("");
}
if (mylocalclient.partner_groupe_client_code) {
setp_client_goupe_client_id_label(mylocalclient.partner_groupe_client_code);
if (mylocalclient.partner_groupe_client_code) {
setp_client_goupe_client_id_label(mylocalclient.partner_groupe_client_code);
} else {
setp_client_goupe_client_id_label("");
}
if (mylocalclient.tva)
@ -1644,7 +1655,10 @@ const AddParnerClient = (props) => {
if (!client_email.match(validRegex)) {
alert("L'adresse email est invalide.");
// alert("L'adresse email est invalide.");
setdisplay_alert_mysy("1");
setalert_message("L'adresse email est invalide.");
setalert_type("error");
return;
}
@ -1657,7 +1671,10 @@ const AddParnerClient = (props) => {
}
form.append("nom", client_nom);
if (String(client_nom).trim() === "") {
alert("Le nom du client est invalide.");
// alert("Le nom du client est invalide.");
setdisplay_alert_mysy("1");
setalert_message("Le nom du client est invalide.");
setalert_type("error");
return;
}
@ -1759,7 +1776,10 @@ const AddParnerClient = (props) => {
axios.post(myurl, form).then(res => {
if (String(res.data.status) === String("true")) {
//console.log(" In Add_New_PartnerClient res.data.status = " + res.data.status);
//console.log(" In Add_New_PartnerClient res.data.message = " + res.data.message);
// console.log(" In Add_New_PartnerClient res.data.message = " + res.data.message);
props.display_child_alert_success(res.data.message);
setAdd_New_PartnerClient_api("true");
setAdd_New_PartnerClient_result(res.data.message);
setformedit_mode("0");
@ -1771,9 +1791,7 @@ const AddParnerClient = (props) => {
props.close_detail_client();
// alert(res.data.message);
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
setalert_type("success");
}
else if (String(res.data.status) === String("Err_Connexion")) {
@ -1802,6 +1820,11 @@ const AddParnerClient = (props) => {
})
}
function close_current_form() {
props.father_scroll_to_top();
props.close_detail_client();
}
const [recordPartnerClient_api, setrecordPartnerClient_api] = useState("");
const [recordPartnerClient_result, setrecordPartnerClient_result] = useState("");
const [recordPartnerClient_message, setrecordPartnerClient_message] = useState("");
@ -1951,6 +1974,7 @@ const AddParnerClient = (props) => {
if (String(res.data.status) === String("true")) {
//console.log(" In recordPartnerClient res.data.status = " + res.data.status);
//console.log(" In recordPartnerClient res.data.message = " + res.data.message);
props.Get_List_Partner_Clients();
setrecordPartnerClient_api("true");
setrecordPartnerClient_result(res.data.message);
setformedit_mode("0");
@ -1963,8 +1987,6 @@ const AddParnerClient = (props) => {
setalert_message(res.data.message);
setalert_type("success");
}
else if (String(res.data.status) === String("Err_Connexion")) {
alert('Erreur: ' + res.data.message);
@ -2196,8 +2218,10 @@ const AddParnerClient = (props) => {
}
if (document.getElementsByName("client_invoice_paiement_condition")) {
document.getElementsByName("client_invoice_paiement_condition")[0].disabled = true;
console.log(" client_invoice_paiement_condition")
// document.getElementsByName("client_invoice_paiement_condition")[0].disabled = true;
document.getElementsByName("client_invoice_paiement_condition")[0].style.backgroundColor = "#ECEFF1";
console.log(" client_invoice_paiement_condition 022")
}
if (document.getElementsByName("client_invoice_adresse")) {
@ -2253,7 +2277,7 @@ const AddParnerClient = (props) => {
}
if (document.getElementsByName("client_invoice_paiement_condition")) {
document.getElementsByName("client_invoice_paiement_condition")[0].disabled = false;
// document.getElementsByName("client_invoice_paiement_condition")[0].disabled = false;
document.getElementsByName("client_invoice_paiement_condition")[0].style.backgroundColor = "#FFFFFF";
}
@ -2308,7 +2332,7 @@ const AddParnerClient = (props) => {
setp_contact_telephone_mobile("");
setp_contact_fonction("");
setp_contact_civilite("");
setp_contact_civilite("neutre");
}
@ -2437,7 +2461,7 @@ const AddParnerClient = (props) => {
}
form.append("fonction", contact_fonction);
var contact_civilite = ""
var contact_civilite = "neutre"
if (p_contact_civilite) {
contact_civilite = p_contact_civilite;
}
@ -2671,7 +2695,7 @@ const AddParnerClient = (props) => {
if (mylocalclient_contact.civilite)
setp_contact_civilite(mylocalclient_contact.civilite);
else
setp_contact_civilite("");
setp_contact_civilite("neutre");
@ -3602,10 +3626,10 @@ const AddParnerClient = (props) => {
</div>
<div className="session_caract" >
&nbsp; <br /><br />
&nbsp; <br /> <br />
<nav style={{ "paddingLeft": "10px" }}>
<Radio
disabled={Boolean(String(props.check_user_acces_right("client", "write")))}
disabled={!Boolean(String(props.check_user_acces_right("client", "write")))}
checked={p_client_is_company === '1'}
onChange={(e) => {
DataEditMode();
@ -3621,10 +3645,11 @@ const AddParnerClient = (props) => {
},
}}
/>&nbsp;Société &nbsp;
/>&nbsp;Société &nbsp;
<Radio
checked={p_client_is_company === '0'}
disabled={!Boolean(String(props.check_user_acces_right("client", "write")))}
onChange={(e) => {
DataEditMode();
setp_client_is_company('0');
@ -3636,7 +3661,7 @@ const AddParnerClient = (props) => {
/> &nbsp; Particulier
<Radio
checked={p_client_is_company === '2'}
disabled={Boolean(String(props.check_user_acces_right("client", "write")))}
disabled={!Boolean(String(props.check_user_acces_right("client", "write")))}
onChange={(e) => {
DataEditMode();
setp_client_is_company('2');
@ -4050,7 +4075,7 @@ const AddParnerClient = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -4136,10 +4161,11 @@ const AddParnerClient = (props) => {
<div className="session_caract" >
&nbsp; <br />
<nav style={{ "paddingLeft": "10px" }}>
<Radio
checked={p_client_is_company === '1'}
disabled={!Boolean(String(props.check_user_acces_right("client", "write")))}
disabled={!Boolean(String(props.check_user_acces_right("client", "write"))) || !Boolean(parseInt(formedit_mode))}
// disabled={!Boolean(parseInt(formedit_mode))}
onChange={(e) => {
DataEditMode();
setp_client_is_company('1');
@ -4159,7 +4185,7 @@ const AddParnerClient = (props) => {
<Radio
checked={p_client_is_company === '0'}
disabled={!Boolean(String(props.check_user_acces_right("client", "write")))}
disabled={!Boolean(String(props.check_user_acces_right("client", "write"))) || !Boolean(parseInt(formedit_mode))}
onChange={(e) => {
DataEditMode();
@ -4173,7 +4199,7 @@ const AddParnerClient = (props) => {
<Radio
checked={p_client_is_company === '2'}
disabled={!Boolean(String(props.check_user_acces_right("client", "write")))}
disabled={!Boolean(String(props.check_user_acces_right("client", "write"))) || !Boolean(parseInt(formedit_mode))}
onChange={(e) => {
DataEditMode();
setp_client_is_company('2');
@ -4263,7 +4289,7 @@ const AddParnerClient = (props) => {
</div>}
{String(formedit_mode) !== "1" && <div className="session_caract"> Groupe client <br />
{String(formedit_mode) !== "1" && <div className="session_caract"> Groupe client <br />
<TextField
required
name="client_groupe_id"
@ -4669,11 +4695,15 @@ const AddParnerClient = (props) => {
}
{String(props.check_user_acces_right("client", "write")) === "1" && String(formedit_mode) !== "1" && <div className="div_row">
{String(formedit_mode) !== "1" && <div className="div_row">
<div className="div_row_droite" style={{ "textAlign": "right" }}>
<Button variant="contained" color="success" className="bton_edit" onClick={DataEditMode}> Editer </Button>
<div className="div_row_gauche">
<Button variant="contained" color="success" className="bton_annule " onClick={close_current_form}>Fermer &nbsp; </Button>
</div>
{String(props.check_user_acces_right("client", "write")) === "1" && <div className="div_row_droite" style={{ "textAlign": "right" }}>
<Button variant="contained" color="success" className="bton_edit" onClick={DataEditMode}> Editer </Button>
</div>}
</div>
}
@ -4744,8 +4774,8 @@ const AddParnerClient = (props) => {
/>
</div>
<div className="session_caract"> <b> Conditions Paiement </b><br />
{String(formedit_mode_invoice) !== "1" && <TextField
<div className="session_caract"> <b> Conditions Paiement aa </b><br />
{/*String(formedit_mode_invoice) !== "1" && <TextField
required
name="client_invoice_paiement_condition"
//label="Adresse"
@ -4755,17 +4785,19 @@ const AddParnerClient = (props) => {
disabled={false}
className="disabled_style"
value={p_client_invoice_paiement_condition_code}
onChange={(e) => setp_client_invoice_paiement_condition_code(e.target.value)}
/>}
{String(formedit_mode_invoice) === "1" && New_Getall_Partner_Paiement_Condition_result && New_Getall_Partner_Paiement_Condition_result.length > 0 &&
// onChange={(e) => setp_client_invoice_paiement_condition_code(e.target.value)}
/>*/}
{New_Getall_Partner_Paiement_Condition_result && New_Getall_Partner_Paiement_Condition_result.length > 0 &&
<Autocomplete
disablePortal
name="client_invoice_paiement_condition"
id="client_invoice_paiement_condition"
style={{ height: '3.5re' }}
disabled={!Boolean(parseInt(formedit_mode_invoice))}
value={New_Getall_Partner_Paiement_Condition_result.filter((data) => (data).label === String(p_client_invoice_paiement_condition_code))[0].label}
options={New_Getall_Partner_Paiement_Condition_result}
className="disabled_style"
onChange={(event, value) => {
if (value && value._id) {
setp_client_invoice_paiement_condition_code(value.code);
@ -4994,8 +5026,8 @@ const AddParnerClient = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup_annuler"
<button
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -5058,31 +5090,12 @@ const AddParnerClient = (props) => {
}
/>
{/*<TextField
required
name="contact_civilite"
//label="Civilité"
InputLabelProps={{
shrink: true,
}}
select
disabled={false}
className="disabled_style"
value={p_contact_civilite}
onChange={(e) => setp_contact_civilite(e.target.value)}
>
<MenuItem value="Mme" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Mme. &nbsp;</MenuItem>
<MenuItem value="M." style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >M. &nbsp;</MenuItem>
<MenuItem value="Neutre" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Neutre&nbsp;&nbsp;</MenuItem>
</TextField>*/}
</div>}
{String(formedit_mode_contact) !== "1" && <div className="session_caract">
Civilité <br />
<TextField
{New_civilite.length > 0 && <TextField
required
name="contact_civilite"
//label=""
@ -5092,10 +5105,9 @@ const AddParnerClient = (props) => {
disabled={false}
className="disabled_style"
value={p_contact_civilite}
value={New_civilite.filter((data) => (data).value === String(p_contact_civilite))[0].label}
/>
/>}
</div>}

View File

@ -277,7 +277,7 @@ const Apprenant = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -524,7 +524,7 @@ const Apprenant = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -5152,7 +5152,7 @@ const Apprenant = (props) => {
})
}
const New_Type_apprenant = [
{ "id": "0", "label": "Autre" },

View File

@ -3209,7 +3209,7 @@ const Config_Documents = (props) => {
set_field_corp_mail(one_editorRef_corp_mail.current.getContent());
setpartner_document_data_changed("1");
}}
init={{
init={{
resize: false,
height: 700,
menubar: true,

View File

@ -589,7 +589,7 @@ const Dashbord_Factures_Devis_Par_Periode = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -614,7 +614,7 @@ const Dashbord_Factures_Par_Client = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -598,7 +598,7 @@ const Dashbord_Factures_Par_Periode = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -535,7 +535,7 @@ const Dashbord_Factures_Previsionnel_Par_Periode = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -338,7 +338,7 @@ const Dashbord_Formation_Evol_Session = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -576,7 +576,7 @@ const Dashbord_Ressources_Humaines_Tache_Couts = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -553,7 +553,7 @@ const Dashbord_Ressources_Humaines_Tache_by_rhid = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -444,7 +444,7 @@ const Dashbord_Session_Par_Fteur = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -519,7 +519,7 @@ const Dashbord_Session_Repartition_Fteur = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -448,7 +448,7 @@ const Dashbord_Session_Taux_Remplissage = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
console.log('modal closed ');
close();

View File

@ -811,7 +811,7 @@ const DisplayPartnerPromotion = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -1314,7 +1314,7 @@ const DisplayPartnerPromotion = (props) => {
// alert(" Le client facturé est le même que client. Aucun partage à faire");
setdisplay_alert_mysy("1");
setalert_message("Le client facturé est le même que client. Aucun partage à faire");
setalert_type("error");
setalert_type("warning");
return;
}
setselected_inscription_id(cellValues.row._id);
@ -1907,7 +1907,7 @@ const DisplayPartnerPromotion = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -1985,7 +1985,7 @@ const DisplayPartnerPromotion = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -2072,7 +2072,7 @@ const DisplayPartnerPromotion = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -3064,6 +3064,8 @@ const DisplayPartnerPromotion = (props) => {
if (new_data2.length > 0)
setNew_Getall_Training_Materiel_No_Filter_result(new_data2);
else
setNew_Getall_Training_Materiel_No_Filter_result([])
}
else {
setGetall_Training_Materiel_No_Filter_api("false");
@ -3131,6 +3133,8 @@ const DisplayPartnerPromotion = (props) => {
if (new_data2.length > 0)
setNew_Getall_Parter_OR_Default_Session_Steps_result(new_data2);
else
setNew_Getall_Parter_OR_Default_Session_Steps_result([])
var new_data2 = [];
@ -3548,6 +3552,7 @@ const DisplayPartnerPromotion = (props) => {
GetListeInscrit(selected_session_id, selected_internal_url);
setselectionModel_preinsc([]);
setactionmass_preinsc_val();
submenu_inscrit();
// alert(res.data.message);
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
@ -4053,7 +4058,7 @@ const DisplayPartnerPromotion = (props) => {
if (String(submenu) === "inscrit")
submenu_inscrit();
else
submenu_inscrit()
submenu_preinscrit()
} else if (String(result['status']) === String("Err_Connexion")) {
setLoading(false);
@ -4216,7 +4221,8 @@ const DisplayPartnerPromotion = (props) => {
// console.log(" ### new_data2 = ", new_data2);
}
} else
setGetall_Sequence_Of_Session_result_planning_view([])
}
@ -4364,6 +4370,8 @@ const DisplayPartnerPromotion = (props) => {
if (new_data2.length > 0)
setNew_GetListePreinscrit_insc_result(new_data2);
else
setNew_GetListePreinscrit_insc_result([])
} else if (String(data['status']) === String("Err_Connexion")) {
@ -7686,6 +7694,8 @@ const DisplayPartnerPromotion = (props) => {
if (new_data2.length > 0)
setNew_GetCurrentPartnerClass_result(new_data2);
else
setNew_GetCurrentPartnerClass_result([])
} else if (String(res.data.status) === String("Err_Connexion")) {
@ -11642,6 +11652,8 @@ const DisplayPartnerPromotion = (props) => {
if (new_data2.length > 0)
setNew_Get_List_Modele_Emargement_result(new_data2);
else
setNew_Get_List_Modele_Emargement_result([])
}
else {
@ -11757,14 +11769,23 @@ const DisplayPartnerPromotion = (props) => {
const stored_cookie = getCookie('tokenmysypart');
var tab_inscrit_ids = []
for (var i = 0; i < val.length; i++) {
tab_inscrit_ids.push(val[i]._id)
}
if (tab_inscrit_ids.length <= 0)
tab_inscrit_ids = "-"
var nom_liste_emarge = "Liste_Emargement.pdf";
var url = process.env.REACT_APP_API_URL + "myclass/api/GerneratePDFEmargementList/" + stored_cookie + "/" + selected_session_id + "/" + selected_internal_url + "/" + selected_emargement_id;
var url = process.env.REACT_APP_API_URL + "myclass/api/GerneratePDFEmargementList/" + stored_cookie + "/" + selected_session_id + "/" + selected_internal_url + "/" + selected_emargement_id + "/" + tab_inscrit_ids;
setLoading(true);
axios.get(url, { responseType: 'blob', },)
.then((res) => {
setVal([]);
setLoading(false);
setselected_emargement_id("");
fileDownload(res.data, nom_liste_emarge)
@ -12145,6 +12166,8 @@ const DisplayPartnerPromotion = (props) => {
if (new_data2.length > 0)
setNew_Get_List_Stagiaire_Conventions_result(new_data2);
else
setNew_Get_List_Stagiaire_Conventions_result([])
}
else {
@ -14316,6 +14339,8 @@ const DisplayPartnerPromotion = (props) => {
if (new_data2.length > 0)
setNew_Get_List_Stagiaire_Convocations_result(new_data2);
else
setNew_Get_List_Stagiaire_Convocations_result([])
}
else {
@ -16524,8 +16549,32 @@ const DisplayPartnerPromotion = (props) => {
<Dialog
open={Dialog_COMMENT_EMARGEMENTE_open}
onClose={Dialog_COMMENT_EMARGEMENTE_handleClose}
//onClose={Dialog_COMMENT_EMARGEMENTE_handleClose}
//className="displaypartnersession"
// onClose={Dialog_COMMENT_EMARGEMENTE_handleClose}
className="displaypartnersession"
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
<DialogTitle style={{ cursor: 'move', fontFamily: "DM Sans" }} id="draggable-dialog-title" >MySy Information</DialogTitle>
@ -16568,7 +16617,7 @@ const DisplayPartnerPromotion = (props) => {
</DialogContent>
{String(selected_session_invoiced_statut) !== "1" && String(selected_session_invoiced_statut) !== "2" && <div>
<div>
<DialogActions>
<IconButton
autoFocus
@ -16582,7 +16631,7 @@ const DisplayPartnerPromotion = (props) => {
<div className="div_row_gauche">
<Popup
{String(selected_session_invoiced_statut) !== "1" && String(selected_session_invoiced_statut) !== "2" && <Popup
trigger={
<Button
className="bton_enreg_dialog"> Mettre à jour </Button>
@ -16631,7 +16680,7 @@ const DisplayPartnerPromotion = (props) => {
</div>
</div>
)}
</Popup>
</Popup>}
</div>
@ -16642,7 +16691,7 @@ const DisplayPartnerPromotion = (props) => {
</DialogActions>
</div>}
</div>
</Dialog>
@ -17753,23 +17802,43 @@ const DisplayPartnerPromotion = (props) => {
</div>
<div className="session_caract_Dialog">
<Tooltip className="tooltip_css" id="tooltip_emarge01" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="tooltip_emarge01" data-tooltip-html="Si vide, tous les apprenants sont pris en compte ">
Apprenant &nbsp; <FcInfo />
</a>
<br />
{New_GetListePreinscrit_insc_result.length > 0 && <Autocomplete
disablePortal
name="inscrit_data_list"
id="inscrit_data_list"
// value={New_Option_Type_Cout.filter((data) => (data).id === String(p_detail_fin_data_type_cout))[0].label}
{String(selected_convention_type) === "pdf" && <div className="session_caract_Dialog" > Type Document<br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 } }}
name="event_dialog_type_convention"
id="event_dialog_type_convention"
value="pdf"
fullWidth
/>
options={New_GetListePreinscrit_insc_result}
multiple
onChange={(event, newValue) => {
setVal([
...fixedVal,
...newValue.filter((i) => fixedVal.indexOf(i) === -1),
]);
}}
value={val}
</div>}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option (tout si vide)"
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>}
</div>
</DialogContent>
@ -22159,7 +22228,7 @@ const DisplayPartnerPromotion = (props) => {
id="session_ondemande"
className="disabled_style"
options={session_ondemande_tab}
value={p_detail_is_bpf_label}
value={p_session_ondemande_label}
onChange={(event, value) => {
if (value && value.value) {
setp_session_ondemande(value.value);
@ -22342,7 +22411,7 @@ const DisplayPartnerPromotion = (props) => {
</Button>}
{edit_session_form && selected_session_id &&
<Button variant="contained" className="bton_enreg" onClick={CreateSessionFormation}>Enregistrer les modifications
<Button variant="contained" className="bton_enreg" onClick={CreateSessionFormation}>Enregistrer
</Button>}
</div>
@ -22838,7 +22907,7 @@ const DisplayPartnerPromotion = (props) => {
onChange={(e) => setp_one_prix_session(e.target.value)}
/>
{New_Price_by.length > 0 && <Autocomplete
{New_Price_by.length > 0 && <Autocomplete
disablePortal
name="detail_config_point"
id="detail_config_point"
@ -25871,7 +25940,7 @@ const DisplayPartnerPromotion = (props) => {
{String(participant_data_edit_mode) === "1" &&
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
<Button variant="contained" className="bton_enreg" onClick={Update_One_StagiaireData}>Enregistrer les modifications
<Button variant="contained" className="bton_enreg" onClick={Update_One_StagiaireData}>Enregistrer
</Button>
</div>}
@ -26324,6 +26393,7 @@ const DisplayPartnerPromotion = (props) => {
<Button className="bton_emarge" onClick={(event) => {
setVal([]);
setDialog_EMARGEMENT_open(true);
Get_List_Modele_Emargement("pdf");
}}>Imprimer la liste</Button>

View File

@ -814,7 +814,7 @@ const DisplayPartnerSession = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -1317,7 +1317,7 @@ const DisplayPartnerSession = (props) => {
// alert(" Le client facturé est le même que client. Aucun partage à faire");
setdisplay_alert_mysy("1");
setalert_message("Le client facturé est le même que client. Aucun partage à faire");
setalert_type("error");
setalert_type("warning");
return;
}
setselected_inscription_id(cellValues.row._id);
@ -1705,7 +1705,6 @@ const DisplayPartnerSession = (props) => {
onClick={(event) => {
setp_detail_emargement_comment(cellValues.row.comment);
setselected_emargement_user(cellValues.row.prenom + " " + cellValues.row.nom);
@ -1906,7 +1905,7 @@ const DisplayPartnerSession = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -1981,7 +1980,7 @@ const DisplayPartnerSession = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -2065,7 +2064,7 @@ const DisplayPartnerSession = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -3067,6 +3066,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_Getall_Training_Materiel_No_Filter_result(new_data2);
else
setNew_Getall_Training_Materiel_No_Filter_result([])
}
else {
setGetall_Training_Materiel_No_Filter_api("false");
@ -3134,6 +3135,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_Getall_Parter_OR_Default_Session_Steps_result(new_data2);
else
setNew_Getall_Parter_OR_Default_Session_Steps_result([])
var new_data2 = [];
@ -3552,6 +3555,7 @@ const DisplayPartnerSession = (props) => {
setselectionModel_preinsc([]);
setactionmass_preinsc_val();
// alert(res.data.message);
submenu_inscrit();
setdisplay_alert_mysy("1");
setalert_message(res.data.message);
setalert_type("success");
@ -4056,7 +4060,7 @@ const DisplayPartnerSession = (props) => {
if (String(submenu) === "inscrit")
submenu_inscrit();
else
submenu_inscrit()
submenu_preinscrit()
} else if (String(result['status']) === String("Err_Connexion")) {
@ -4219,7 +4223,8 @@ const DisplayPartnerSession = (props) => {
// console.log(" ### new_data2 = ", new_data2);
}
} else
setGetall_Sequence_Of_Session_result_planning_view([])
}
@ -4369,6 +4374,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_GetListePreinscrit_insc_result(new_data2);
else
setNew_GetListePreinscrit_insc_result([])
} else if (String(data['status']) === String("Err_Connexion")) {
alert('Erreur: ' + data['message']);
@ -7736,6 +7743,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_GetCurrentPartnerClass_result(new_data2);
else
setNew_GetCurrentPartnerClass_result([]);
} else if (String(res.data.status) === String("Err_Connexion")) {
@ -11694,6 +11703,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_Get_List_Modele_Emargement_result(new_data2);
else
setNew_Get_List_Modele_Emargement_result([])
}
else {
@ -11803,15 +11814,26 @@ const DisplayPartnerSession = (props) => {
function DownloadListEmargement(event) {
const stored_cookie = getCookie('tokenmysypart');
var tab_inscrit_ids = []
for (var i = 0; i < val.length; i++) {
tab_inscrit_ids.push(val[i]._id)
}
if (tab_inscrit_ids.length <= 0)
tab_inscrit_ids = "-"
var nom_liste_emarge = "Liste_Emargement.pdf";
var url = process.env.REACT_APP_API_URL + "myclass/api/GerneratePDFEmargementList/" + stored_cookie + "/" + selected_session_id + "/" + selected_internal_url + "/" + selected_emargement_id;
var url = process.env.REACT_APP_API_URL + "myclass/api/GerneratePDFEmargementList/" + stored_cookie + "/" + selected_session_id + "/" + selected_internal_url + "/" + selected_emargement_id + "/" + tab_inscrit_ids;
//console.log(" ## url = ", url);
setLoading(true);
axios.get(url, { responseType: 'blob', },)
.then((res) => {
setVal([]);
setLoading(false);
setselected_emargement_id("");
fileDownload(res.data, nom_liste_emarge)
@ -12189,6 +12211,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_Get_List_Stagiaire_Conventions_result(new_data2);
else
setNew_Get_List_Stagiaire_Conventions_result([])
}
else {
@ -12831,6 +12855,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_Getall_Partner_Site_Formation_result(new_data2);
else
setNew_Getall_Partner_Site_Formation_result([])
}
@ -14357,6 +14383,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_Get_List_Stagiaire_Convocations_result(new_data2);
else
setNew_Get_List_Stagiaire_Convocations_result([])
}
else {
@ -14805,6 +14833,8 @@ const DisplayPartnerSession = (props) => {
if (new_data2.length > 0)
setNew_Getall_Class_Finance_Caracteristic_result(new_data2);
else
setNew_Getall_Class_Finance_Caracteristic_result([])
}
else {
setGetall_Class_Finance_Caracteristic_api("false");
@ -15210,7 +15240,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
// autoFocus
// // autoFocus
onClick={Dialog_Emargement_Selection_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -15450,7 +15480,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
// autoFocus
// // autoFocus
onClick={Dialog_Financial_Data_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -15635,7 +15665,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_dupliquer_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -15766,7 +15796,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_MAJ_Preinsc_Client_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -16093,7 +16123,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_convention_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -16408,7 +16438,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_CONVOCATION_STAGIAIRE_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -16528,7 +16558,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_MAJ_Acces_LMS_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -16567,8 +16597,30 @@ const DisplayPartnerSession = (props) => {
<Dialog
open={Dialog_COMMENT_EMARGEMENTE_open}
onClose={Dialog_COMMENT_EMARGEMENTE_handleClose}
// onClose={Dialog_COMMENT_EMARGEMENTE_handleClose}
className="displaypartnersession"
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
<DialogTitle style={{ cursor: 'move', fontFamily: "DM Sans" }} id="draggable-dialog-title" >MySy Information</DialogTitle>
@ -16579,7 +16631,7 @@ const DisplayPartnerSession = (props) => {
<TextField
autoFocus
// autoFocus
margin="dense"
id="emargement_comment"
name="emargement_comment"
@ -16611,10 +16663,10 @@ const DisplayPartnerSession = (props) => {
</DialogContent>
{String(selected_session_invoiced_statut) !== "1" && String(selected_session_invoiced_statut) !== "2" && <div>
<div>
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_COMMENT_EMARGEMENTE_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -16623,9 +16675,7 @@ const DisplayPartnerSession = (props) => {
</IconButton>
<div className="div_row">
<div className="div_row_gauche">
<Popup
{String(selected_session_invoiced_statut) !== "1" && String(selected_session_invoiced_statut) !== "2" && <Popup
trigger={
<Button
className="bton_enreg_dialog"> Mettre à jour </Button>
@ -16674,7 +16724,7 @@ const DisplayPartnerSession = (props) => {
</div>
</div>
)}
</Popup>
</Popup>}
</div>
@ -16685,7 +16735,7 @@ const DisplayPartnerSession = (props) => {
</DialogActions>
</div>}
</div>
</Dialog>
@ -16771,7 +16821,7 @@ const DisplayPartnerSession = (props) => {
{New_Get_List_Partner_Clients_result.filter((data) => (data)._id === String(p_detail_invoice_split_client_rattachement_id))[0].label}
</nav>}
<TextField
autoFocus
// autoFocus
margin="dense"
id="invoice_split_client_rattachement"
name="invoice_split_client_rattachement"
@ -16795,7 +16845,7 @@ const DisplayPartnerSession = (props) => {
{New_Get_List_Partner_Clients_result.filter((data) => (data)._id === String(p_detail_invoice_split_facture_client_rattachement_id))[0].label}
</nav>}
<TextField
autoFocus
// autoFocus
margin="dense"
id="invoice_split_client_rattachement"
name="invoice_split_client_rattachement"
@ -16831,7 +16881,7 @@ const DisplayPartnerSession = (props) => {
<div>
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_SPLIT_INVOICE_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -16904,7 +16954,7 @@ const DisplayPartnerSession = (props) => {
</DialogActions>
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_SPLIT_INVOICE_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -16978,7 +17028,7 @@ const DisplayPartnerSession = (props) => {
<div>
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_SPLIT_INVOICE_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -17231,7 +17281,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_EVENT_SEMAINE_TYPE_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -17261,7 +17311,7 @@ const DisplayPartnerSession = (props) => {
{p_detail_sequence_event_type_semaine_id && String(p_detail_sequence_event_type_semaine_id) !== "" &&
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_EVENT_SEMAINE_TYPE_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -17577,7 +17627,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_seq_CREATION_SEMAINE_TYPE_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -17690,7 +17740,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_LIST_HOT_EVALUATION_QUESTION_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -17770,7 +17820,7 @@ const DisplayPartnerSession = (props) => {
<div className="session_caract_Dialog" > Choisir un modèle d'émargement
<div className="session_caract_Dialog" > yyyChoisir un modèle d'émargement
<Autocomplete
disablePortal
name="event_dialog_version_emargement"
@ -17797,29 +17847,50 @@ const DisplayPartnerSession = (props) => {
</div>
<div className="session_caract_Dialog">
<Tooltip className="tooltip_css" id="tooltip_emarge01" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="tooltip_emarge01" data-tooltip-html="Si vide, tous les apprenants sont pris en compte ">
Apprenant &nbsp; <FcInfo />
</a>
<br />
{New_GetListePreinscrit_insc_result.length > 0 && <Autocomplete
disablePortal
name="inscrit_data_list"
id="inscrit_data_list"
// value={New_Option_Type_Cout.filter((data) => (data).id === String(p_detail_fin_data_type_cout))[0].label}
{String(selected_convention_type) === "pdf" && <div className="session_caract_Dialog" > Type Document<br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 } }}
name="event_dialog_type_convention"
id="event_dialog_type_convention"
value="pdf"
fullWidth
/>
options={New_GetListePreinscrit_insc_result}
multiple
onChange={(event, newValue) => {
setVal([
...fixedVal,
...newValue.filter((i) => fixedVal.indexOf(i) === -1),
]);
}}
value={val}
</div>}
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option (tout si vide)"
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
/>
}
/>}
</div>
</DialogContent>
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_EMARGEMENT_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -17949,7 +18020,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_seq_choix_model_emargement_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -18233,7 +18304,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_DIALOG_AGENDA_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -18260,7 +18331,7 @@ const DisplayPartnerSession = (props) => {
{String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && p_detail_event_id && String(p_detail_event_id) !== "" &&
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_DIALOG_AGENDA_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -18374,7 +18445,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_1_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -18565,7 +18636,7 @@ const DisplayPartnerSession = (props) => {
<IconButton
// autoFocus
// // autoFocus
onClick={Dialog_2_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -18796,7 +18867,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Close_Dialog_Detail_seq_open}
color="primary"
className={classes.customizedButton}
@ -18963,7 +19034,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_seq_ressource_1_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -19032,7 +19103,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_tuteur_1_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -19109,7 +19180,7 @@ const DisplayPartnerSession = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Dialog_FACTURATION_FORMATION_handleClose_buton}
color="primary"
className={classes.customizedButton}
@ -22206,7 +22277,7 @@ const DisplayPartnerSession = (props) => {
id="session_ondemande"
className="disabled_style"
options={session_ondemande_tab}
value={p_detail_is_bpf_label}
value={p_session_ondemande_label}
onChange={(event, value) => {
if (value && value.value) {
setp_session_ondemande(value.value);
@ -22231,7 +22302,7 @@ const DisplayPartnerSession = (props) => {
</div>}
{!edit_session_form && <div className="session_caract">Session à la demande <br />
{!edit_session_form && <div className="session_caract">Session à la demande <br />
<TextField
name="session_ondemande"
id="session_ondemande"
@ -22394,7 +22465,7 @@ const DisplayPartnerSession = (props) => {
</Button>}
{edit_session_form && selected_session_id &&
<Button variant="contained" className="bton_enreg" onClick={CreateSessionFormation}>Enregistrer les modifications
<Button variant="contained" className="bton_enreg" onClick={CreateSessionFormation}>Enregistrer
</Button>}
</div>
@ -24996,7 +25067,8 @@ const DisplayPartnerSession = (props) => {
{actionmass_insc_val && String(actionmass_insc_val).length > 1 && selectionModel_insc.length >= 1 &&
(String(actionmass_insc_val) === "convocation" ||
String(actionmass_insc_val) === "convention_entreprise" ||
String(actionmass_insc_val) === "acceslms")
String(actionmass_insc_val) === "acceslms" ||
String(actionmass_insc_val) === "facturer")
&& <nav className='block_en_mass_bton_action'>
<Button className="bton_enreg" style={{ "width": "90%" }} onClick={(event) => {
actionmass_insc_Traitemet();
@ -25008,10 +25080,12 @@ const DisplayPartnerSession = (props) => {
</nav>
}
{actionmass_insc_val && String(actionmass_insc_val).length > 1 && selectionModel_insc.length >= 1 &&
String(actionmass_insc_val) !== "convocation" &&
String(actionmass_insc_val) !== "convention_entreprise" &&
String(actionmass_insc_val) !== "acceslms" &&
String(actionmass_insc_val) !== "facturer" &&
<nav className='block_en_mass_bton_action'>
<Popup
trigger={<Button className="bton_enreg" style={{ "width": "90%" }}>
@ -25044,10 +25118,6 @@ const DisplayPartnerSession = (props) => {
Annuler l'inscription à la session de la session de formation ?
</nav>}
{String(actionmass_insc_val) === "facturer" &&
<nav>
Facturer les lignes selectionnées ?
</nav>}
{String(actionmass_insc_val) === "impression" &&
<nav>
@ -25936,7 +26006,7 @@ const DisplayPartnerSession = (props) => {
{String(participant_data_edit_mode) === "1" &&
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
<Button variant="contained" className="bton_enreg" onClick={Update_One_StagiaireData}>Enregistrer les modifications
<Button variant="contained" className="bton_enreg" onClick={Update_One_StagiaireData}>Enregistrer
</Button>
</div>}
@ -26389,6 +26459,7 @@ const DisplayPartnerSession = (props) => {
<Button className="bton_emarge" onClick={(event) => {
setVal([]);
setDialog_EMARGEMENT_open(true);
Get_List_Modele_Emargement("pdf");
}}>Imprimer la liste</Button>

View File

@ -2058,6 +2058,27 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
</div>
</div>
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", borderRadius: '10px' }}>
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", marginTop: '1rem' }}>
{DetailTraining["prerequis"] && <div className="mob_info_page_title_desc_long_txt">
<div className="mob_info_page_title_desc_title">
Pré-requis
</div>
{DetailTraining["prerequis"] && <div className="mob_info_page_title_desc_desc pourqui_block">
{parse(String(DetailTraining["prerequis"]))}
</div>
}
</div>}
</div>
</div>
<hr style={{ "width": "100%", border: "1px solid #E2E9FB", marginTop: '10px' }} />
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", borderRadius: '10px' }}>
@ -2470,6 +2491,20 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
</div>}
<br />
{DetailTraining["prerequis"] && String(DetailTraining["prerequis"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">
<div className="block_info_page_pave_title_desc_title ">
Pré-requis
</div>
{DetailTraining["prerequis"] && <div className="block_info_page_pave_title_desc_desc pourqui_block">
{parse(String(DetailTraining["prerequis"]))}
</div>
}
</div>}
<br />
{DetailTraining["plus_produit"] && String(DetailTraining["plus_produit"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">
<div className="block_info_page_pave_title_desc_title ">
Points forts

View File

@ -277,7 +277,7 @@ const Employes = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -352,7 +352,7 @@ const Employes = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -486,7 +486,7 @@ const Employes = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -1589,7 +1589,7 @@ const Employes = (props) => {
if (String(res.data.status) === "true") {
setLoading(false);
//console.log(" In Get_Employee_Data res.data.status = " + res.data.status);
//console.log(" In Get_Employee_Data res.data.message r_class = " + res.data.message);
// console.log(" In Get_Employee_Data res.data.message r_class = " + res.data.message);
setGetAttendee_api("true");
setGetAttendee_result(res.data.message);
@ -1953,7 +1953,7 @@ const Employes = (props) => {
if (String(res.data.status) === String("true")) {
//console.log(" In Getall_Training_Employee_No_Filter res.data.status = " + res.data.status);
//console.log(" In Getall_Training_Employee_No_Filter res.data.message r_class = " + res.data.message);
// console.log(" In Getall_Training_Employee_No_Filter res.data.message r_class = " + res.data.message);
setGetall_Training_Employee_No_Filter_api("true");
setGetall_Training_Employee_No_Filter_result(res.data.message);
setRows(res.data.message);
@ -8675,6 +8675,7 @@ const Employes = (props) => {
setselected_row_data_json_age("");
get_Employee_Images(newSelectionModel.row._id);
setgridline_id(newSelectionModel.row.id);
setp_detail_civilite(newSelectionModel.row.civilite);
if (newSelectionModel.row.date_naissance) {
@ -8785,7 +8786,7 @@ const Employes = (props) => {
<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
{String(props.check_user_acces_right("employe", "write")) === "1" && <Button variant="outlined" onClick={submenu_import_employee} className="detail_class_submenu bton_import_excel"
id='menu_import_participant' name='menu_import_participant'>Importer des employes Excel &nbsp;
id='menu_import_participant' name='menu_import_participant' style={{ maxWidth: '20rem' }}>Importer des employes Excel &nbsp;
<img src={excel_icone} alt="ajout csv" className="icon_excel" />
</Button>}
@ -8902,8 +8903,10 @@ const Employes = (props) => {
paddingLeft: '10px', flexWrap: 'wrap'
}}>
{String(employee_data_edit_mode) !== "1" && <div className="session_caract"> <b>Civilité </b> <br />
{p_detail_civilite && String(p_detail_civilite).length > 0 && <TextField
{String(employee_data_edit_mode) !== "1" && <div className="session_caract"> <b>Civilité</b> <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_civilite"
@ -8914,12 +8917,12 @@ const Employes = (props) => {
}}
disabled={false}
className="disabled_style"
value={String(p_detail_civilite)[0].toUpperCase() + String(p_detail_civilite).slice(1)}
/>}
value={String(p_detail_civilite)[0].toUpperCase() + String(p_detail_civilite).slice(1)}
/>
</div>}
{String(employee_data_edit_mode) === "1" && <div className="session_caract"> <b>Civilité </b><br />
<Autocomplete
@ -8947,28 +8950,6 @@ const Employes = (props) => {
}
/>
{/*<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_civilite"
id="detail_civilite"
select
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_civilite}
onChange={(e) => {
setp_detail_civilite(e.target.value);
setEmployee_data_changed("1");
}}
>
<MenuItem value="m" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>M. &nbsp;&nbsp;</MenuItem>
<MenuItem value="mme" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Mme. &nbsp;</MenuItem>
<MenuItem value="neutre" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Neutre &nbsp;</MenuItem>
</TextField>*/}
</div>}
<div className="session_caract"> <b> Nom </b> <br />
@ -9556,7 +9537,7 @@ const Employes = (props) => {
/!\ Cet utilisateur n'a pas de login & mot de passe &nbsp; <FcInfo />
</a>
</div>}
<div style={{ "paddingLeft": "10px", fontFamily: "DM Sans" }}>
<div style={{ "paddingLeft": "10px", fontFamily: "DM Sans", fontSize: '14px' }}>
<Tooltip className="tooltip_css" id="deb_inscription" style={{ "fontSize": "12px", fontFamily: "DM Sans" }} />
<a data-tooltip-id="deb_inscription" data-tooltip-html=" Après avoir créé le compte utilisateur, pensez également lui accorder les niveaux d'accès nécessaires à partir du bouton <i>'DROITS D'ACCES'</i> ">
Login Gest. Admin <FcInfo /><br />
@ -9705,10 +9686,10 @@ const Employes = (props) => {
<div style={{ "width": "45%", "float": "right" }}>
<div style={{ "paddingLeft": "10px", fontFamily: "DM Sans" }}>
<div style={{ "paddingLeft": "10px", fontFamily: "DM Sans", fontSize: '14px' }}>
{String(p_detail_user_login) === "" && <div className="div_row" style={{
"border": "None", "color": "orange", "textAlign": "center",
fontFamily: "DM Sans"
fontFamily: "DM Sans",
}}>
&nbsp;
</div>}
@ -9859,9 +9840,9 @@ const Employes = (props) => {
<div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
{String(Employee_data_changed) === "1" && String(employee_data_edit_mode) === "1" && <div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
{ String(employee_data_edit_mode) === "1" && <div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
<Button variant="contained" className="bton_enreg" onClick={Update_One_Employee_Data}>Enregistrer les modifications
<Button variant="contained" className="bton_enreg" onClick={Update_One_Employee_Data}>Enregistrer
</Button>
</div>}

View File

@ -374,7 +374,7 @@ const Groupe_Apprenant = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();

File diff suppressed because it is too large Load Diff

View File

@ -1778,6 +1778,26 @@ const JmJ_Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
</div>}
<br />
{DetailTraining["prerequis"] && <div className="mob_info_page_title_desc_long_txt">
<div className="mob_info_page_title_desc_title">
Pré-requis
</div>
{DetailTraining["prerequis"] && <div className="mob_info_page_title_desc_desc pourqui_block">
{parse(String(DetailTraining["prerequis"]))}
</div>
}
</div>}
</div>
@ -2273,6 +2293,20 @@ const JmJ_Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
</div>}
<br />
{DetailTraining["prerequis"] && String(DetailTraining["prerequis"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">
<div className="block_info_page_pave_title_desc_title ">
Pré-requis
</div>
{DetailTraining["prerequis"] && <div className="block_info_page_pave_title_desc_desc pourqui_block">
{parse(String(DetailTraining["prerequis"]))}
</div>
}
</div>}
<br />
{DetailTraining["plus_produit"] && String(DetailTraining["plus_produit"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">
<div className="block_info_page_pave_title_desc_title ">
Points forts

File diff suppressed because it is too large Load Diff

View File

@ -33,12 +33,11 @@ import img_header_jmg from "../../mysy_img2/img_jmj_modif.jpg"
import { TbArrowsDownUp } from "react-icons/tb";
let PageSize = 10;
const Jmjformation_Catalogue_Public = (props) => {
const { type, categorie } = useParams();
const { NewSearchText } = useParams();
const [v11, setv11] = useState("");
@ -2630,6 +2629,20 @@ const Jmjformation_Catalogue_Public = (props) => {
catalog_pub_contact_public_telephone = JSON.parse(x).catalog_pub_contact_public_telephone;
var catalog_pub_affiche_indicateur = ""
if (JSON.parse(x).affiche_indicateur)
catalog_pub_affiche_indicateur = JSON.parse(x).affiche_indicateur;
var catalog_pub_affiche_raison_sociale = ""
if (JSON.parse(x).affiche_raison_sociale)
catalog_pub_affiche_raison_sociale = JSON.parse(x).affiche_raison_sociale;
var catalog_pub_affiche_contact = ""
if (JSON.parse(x).affiche_contact)
catalog_pub_affiche_contact = JSON.parse(x).affiche_contact;
var catalog_pub_theme_id = JSON.parse(x).catalog_pub_theme_id;
setmy_theme_code(theme_code);
@ -2695,6 +2708,11 @@ const Jmjformation_Catalogue_Public = (props) => {
"catalog_pub_theme_id": catalog_pub_theme_id,
"theme_code": theme_code,
"affiche_indicateur": catalog_pub_affiche_indicateur,
"affiche_raison_sociale": catalog_pub_affiche_raison_sociale,
"affiche_contact": catalog_pub_affiche_contact,
};
// console.log(" --- node = ", node);
new_data2.push(node);
@ -2757,7 +2775,7 @@ const Jmjformation_Catalogue_Public = (props) => {
</Helmet>
{/******* Gestion du THEME "MySy_Theme2" */}
{/******* Gestion du THEME "MySy_Theme2" */}
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0
&& String(my_theme_code) === "MySy_Theme2" && <div>
@ -2772,7 +2790,7 @@ const Jmjformation_Catalogue_Public = (props) => {
<div className="bloc_logo_indic_model_2">
<div className="bloc_logo_indic_logo_model_2">
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} alt={New_Get_Subdomain_Partner_Data_result[0].nom} />
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} />
</div>
<div className="bloc_logo_indic_contact_model_2">
@ -2790,7 +2808,7 @@ const Jmjformation_Catalogue_Public = (props) => {
<div className="bloc_milieu_text_model_2">
<div className="bloc_milieu_text_model_2_gauche">
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_indicateur) === "1" && <div className="bloc_milieu_text_model_2_gauche">
<font className="bloc_logo_indic_indic_text"> Indicateurs </font> <br />
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0
&& New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_1_txt &&
@ -2836,8 +2854,10 @@ const Jmjformation_Catalogue_Public = (props) => {
}}> {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_4_txt}
</div>}
</div>
<div className="bloc_milieu_text_model_2_centre">
</div>}
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_raison_sociale) === "1" && <div className="bloc_milieu_text_model_2_centre">
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0 &&
<nav>
<font className='title1_nom_model_2'> {New_Get_Subdomain_Partner_Data_result[0].nom} </font> <br />
@ -2856,14 +2876,15 @@ const Jmjformation_Catalogue_Public = (props) => {
fontWeight: `${New_Get_Subdomain_Partner_Data_result[0].catalog_pub_message_2_gras}`,
}}> {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_message_2_txt} </nav>}
</div>
<div className="bloc_milieu_text_model_2_droite">
</div>}
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_contact) === "1" && <div className="bloc_milieu_text_model_2_droite">
<font className="bloc_logo_indic_contact_text_model_2"> Contact </font> <br />
Tel : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_telephone} <br />
Email : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_email}
</div>
</div>}
</div>
</div>
@ -3506,7 +3527,7 @@ const Jmjformation_Catalogue_Public = (props) => {
<div className="bloc_logo_indic">
<div className="bloc_logo_indic_logo">
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} alt={New_Get_Subdomain_Partner_Data_result[0].nom} />
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} />
</div>
<div className="bloc_logo_indic_contact">
@ -4070,7 +4091,7 @@ const Jmjformation_Catalogue_Public = (props) => {
<div className="bloc_logo_indic" style={{ position: "unset" }}>
<div className="bloc_logo_indic_logo">
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} alt={New_Get_Subdomain_Partner_Data_result[0].nom} />
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} />
</div>
<div className="bloc_logo_indic_contact">
@ -4080,7 +4101,7 @@ const Jmjformation_Catalogue_Public = (props) => {
Email : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_email}
</div>
<div className="bloc_logo_indic_indic">
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_indicateur) === "1" && <div className="bloc_logo_indic_indic">
<font className="bloc_logo_indic_indic_text"> Indicateurs </font> <br />
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0
&& New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_1_txt &&
@ -4125,20 +4146,20 @@ const Jmjformation_Catalogue_Public = (props) => {
fontWeight: `${New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_4_gras}`,
}}> {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_4_txt}
</div>}
</div>
</div>}
<div className="bloc_milieu" style={{ position: "unset" }}>
<div className="bloc_milieu_text">
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0 &&
<nav className="title1_nom" style={{marginBottom:"2rem"}}>
<nav className="title1_nom" style={{ marginBottom: "2rem" }}>
{New_Get_Subdomain_Partner_Data_result[0].nom}
</nav>}
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0 &&
<nav style={{marginBottom:"2rem"}}>
<nav style={{ marginBottom: "2rem" }}>
<font className='title1_text1' style={{
fontSize: `${New_Get_Subdomain_Partner_Data_result[0].catalog_pub_message_1_taille}` + "px",
color: `${New_Get_Subdomain_Partner_Data_result[0].catalog_pub_message_1_color}`,
@ -4391,9 +4412,9 @@ const Jmjformation_Catalogue_Public = (props) => {
{result && myApiResponse == "True" && fin == 0 && !newresult &&
result.slice(0, PageSize).map((formation) => (
<div className="block_formation" ref={inputEl} id="inputEl_element">
<Formation_Partner_Catalog_Special_JMJFormation formation={JSON.parse(formation)}
key={JSON.parse(formation).title} coeur={JSON.parse(formation).title}
partner_data={New_Get_Subdomain_Partner_Data_result[0]}/>
<Formation_Partner_Catalog_Special_JMJFormation formation={JSON.parse(formation)}
key={JSON.parse(formation).title} coeur={JSON.parse(formation).title}
partner_data={New_Get_Subdomain_Partner_Data_result[0]} />
</div>
))}
@ -4401,8 +4422,8 @@ const Jmjformation_Catalogue_Public = (props) => {
{result && myApiResponse == "True" && fin == 0 && newresult &&
newresult.slice(0, PageSize).map((formation) => (
<div className="block_formation" >
<Formation_Partner_Catalog_Special_JMJFormation formation={JSON.parse(formation)}
key={JSON.parse(formation).title} partner_data={New_Get_Subdomain_Partner_Data_result[0]}/>
<Formation_Partner_Catalog_Special_JMJFormation formation={JSON.parse(formation)}
key={JSON.parse(formation).title} partner_data={New_Get_Subdomain_Partner_Data_result[0]} />
</div>
))}
@ -4413,8 +4434,8 @@ const Jmjformation_Catalogue_Public = (props) => {
&& currentTableData2
&& currentTableData2.map((formation) => (
<div className="block_formation" >
<Formation_Partner_Catalog_Special_JMJFormation formation={JSON.parse(formation)}
key={JSON.parse(formation).title} partner_data={New_Get_Subdomain_Partner_Data_result[0]}/>
<Formation_Partner_Catalog_Special_JMJFormation formation={JSON.parse(formation)}
key={JSON.parse(formation).title} partner_data={New_Get_Subdomain_Partner_Data_result[0]} />
</div>
))}
@ -4425,7 +4446,7 @@ const Jmjformation_Catalogue_Public = (props) => {
<div className="block_formation" >
<Formation_Partner_Catalog_Special_JMJFormation formation={JSON.parse(formation)} key={JSON.parse(formation).title}
partner_data={New_Get_Subdomain_Partner_Data_result[0]} />
partner_data={New_Get_Subdomain_Partner_Data_result[0]} />
</div>
))}

View File

@ -384,7 +384,7 @@ const Jury = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -508,7 +508,7 @@ const Jury = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -690,7 +690,7 @@ const Jury = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();

View File

@ -181,7 +181,7 @@ const Materiel_Salle = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -256,7 +256,7 @@ const Materiel_Salle = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -3290,7 +3290,7 @@ const Materiel_Salle = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Close_Dialog_Detail_Event_open}
color="primary"
className={classes.customizedButton}

View File

@ -3110,7 +3110,7 @@ const Materiels = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Close_Dialog_Detail_Event_open}
color="primary"
className={classes.customizedButton}

View File

@ -695,6 +695,8 @@ const Module_Agenda = (props) => {
const handleEventClick = (arg) => {
if (String(selected_employee_id).length < 2) {
// alert(" Vous devez choisir un employé ou un materiel");
// alert(res.data.message);
@ -1174,10 +1176,52 @@ const Module_Agenda = (props) => {
function show_other_agenda() {
settab_selected_users([]);
New_Option_Type_Ressource = []
if (String(props.check_user_acces_right("agenda_employes", "read")) !== "1" && String(props.check_user_acces_right("agenda_materiel_salle", "read")) !== "1") {
setdisplay_alert_mysy("1");
setalert_message(" Vos droits ne sont pas suffisants pour accéder à cette fonctionnalité ");
setalert_type("warning");
return;
}
if (String(props.check_user_acces_right("agenda_employes", "read")) === "1" && String(props.check_user_acces_right("agenda_materiel_salle", "read")) === "1") {
New_Option_Type_Ressource = [
{ "id": "0", "label": "Employe", "value": "ressource_humaine" },
{ "id": "1", "label": "Materiel & Salle", "value": "ressource_materielle" },
]
setp_filtre1("ressource_humaine");
setp_filtre1_label("Employe");
setp_filtre1_value("ressource_humaine")
} else if (String(props.check_user_acces_right("agenda_employes", "read")) === "1") {
New_Option_Type_Ressource = [
{ "id": "0", "label": "Employe", "value": "ressource_humaine" },
]
setp_filtre1("ressource_humaine");
setp_filtre1_label("Employe");
setp_filtre1_value("ressource_humaine")
} else if (String(props.check_user_acces_right("agenda_materiel_salle", "read")) === "1") {
New_Option_Type_Ressource = [
{ "id": "0", "label": "Materiel & Salle", "value": "ressource_materielle" },
]
setp_filtre1("ressource_materielle");
setp_filtre1_label("Materiel & Salle");
setp_filtre1_value("ressource_materielle")
}
setdisplay_other_agenda("1");
}
function show_my_agenda() {
settab_selected_users([]);
setp_filtre1("ressource_humaine");
setagenda_owner_name("Mon Planning");
setselected_employee_id(myconntected_employee_id);
@ -1192,12 +1236,26 @@ const Module_Agenda = (props) => {
{ "id": "2", "label": "Autre", "value": "autre" },
]
const New_Option_Type_Ressource = [
{ "id": "0", "label": "Employe", "value": "ressource_humaine" },
{ "id": "1", "label": "Materiel & Salle", "value": "ressource_materielle" },
var New_Option_Type_Ressource = [
]
if (String(props.check_user_acces_right("agenda_employes", "read")) === "1" && String(props.check_user_acces_right("agenda_materiel_salle", "read")) === "1") {
New_Option_Type_Ressource = [
{ "id": "0", "label": "Employe", "value": "ressource_humaine" },
{ "id": "1", "label": "Materiel & Salle", "value": "ressource_materielle" },
]
} else if (String(props.check_user_acces_right("agenda_employes", "read")) === "1") {
New_Option_Type_Ressource = [
{ "id": "0", "label": "Employe", "value": "ressource_humaine" },
]
} else if (String(props.check_user_acces_right("agenda_materiel_salle", "read")) === "1") {
New_Option_Type_Ressource = [
{ "id": "0", "label": "Materiel & Salle", "value": "ressource_materielle" },
]
}
const events_test = [{
"id": 1,
"type": null,
@ -1315,7 +1373,7 @@ const Module_Agenda = (props) => {
aria-labelledby="draggable-dialog-title"
>
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily:'DM Sans'}} id="draggable-dialog-title"> MySy Information</DialogTitle>
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> MySy Information</DialogTitle>
<DialogContent className="DialogContent_width">
<DialogContentText>
{Dialog_1_message}
@ -1480,7 +1538,7 @@ const Module_Agenda = (props) => {
<DialogActions>
<IconButton
autoFocus
// autoFocus
onClick={Close_Dialog_Detail_Event_open}
color="primary"
className={classes.customizedButton}
@ -1488,8 +1546,44 @@ const Module_Agenda = (props) => {
<CancelPresentationIcon />
</IconButton>
<div className="div_row">
{String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && <div className="div_row_gauche">
{/*** Si l'agenda d'une autre personne, je dois etre autorisé à ecrire */}
{String(agenda_owner_name) !== "Mon Planning" && String(p_filtre1) === "ressource_humaine" && String(props.check_user_acces_right("agenda_employes", "write")) === "1" &&
<div className="div_row_gauche">
{p_detail_event_id && String(p_detail_event_id) !== "" && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Mettre à jour</Button>}
{(!p_detail_event_id || String(p_detail_event_id) === "") && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Ajouter</Button>}
</div>}
{/*** Si l'agenda d'un materiel, je dois etre autorisé à ecrire */}
{String(agenda_owner_name) !== "Mon Planning" && String(p_filtre1) === "ressource_materielle" && String(props.check_user_acces_right("agenda_materiel_salle", "write")) === "1" &&
<div className="div_row_gauche">
{p_detail_event_id && String(p_detail_event_id) !== "" && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Mettre à jour</Button>}
{(!p_detail_event_id || String(p_detail_event_id) === "") && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Ajouter</Button>}
</div>}
{/*** Si c'est mon agenda, j'ai tous les droit */}
{String(agenda_owner_name) === "Mon Planning" &&
<div className="div_row_gauche">
{p_detail_event_id && String(p_detail_event_id) !== "" && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Mettre à jour</Button>}
{(!p_detail_event_id || String(p_detail_event_id) === "") && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Ajouter</Button>}
</div>}
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
<Button onClick={Close_Dialog_Detail_Event_open} className="bton_annule_dialog" >Fermer</Button>
</div>
</div>
{/* <div className="div_row">
{String(setagenda_owner_name) !== "setagenda_owner_name" && String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && <div className="div_row_gauche">
{p_detail_event_id && String(p_detail_event_id) !== "" && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Mettre à jour</Button>}
{(!p_detail_event_id || String(p_detail_event_id) === "") && <Button onClick={Update_One_Agenda_Event} className="bton_enreg_dialog">Ajouter</Button>}
@ -1499,12 +1593,15 @@ const Module_Agenda = (props) => {
<div className="div_row_droite" style={{ "textAlign": 'center' }}>
<Button onClick={Close_Dialog_Detail_Event_open} className="bton_annule_dialog" >Fermer</Button>
</div>
</div>
</div>*/}
</DialogActions>
{String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && p_detail_event_id && String(p_detail_event_id) !== "" &&
String(agenda_owner_name) !== "Mon Planning" && String(p_filtre1) === "ressource_humaine" && String(props.check_user_acces_right("agenda_employes", "write")) === "1" &&
<DialogActions>
<div className="div_row" style={{ "textAlign": "center" }}>
<Button onClick={(e) => {
@ -1520,6 +1617,59 @@ const Module_Agenda = (props) => {
</DialogActions>}
{String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && p_detail_event_id && String(p_detail_event_id) !== "" &&
String(agenda_owner_name) !== "Mon Planning" && String(p_filtre1) === "ressource_materielle" && String(props.check_user_acces_right("agenda_materiel_salle", "write")) === "1" && <DialogActions>
<div className="div_row" style={{ "textAlign": "center" }}>
<Button onClick={(e) => {
const response = window.confirm("Confirmez-vous la suppression de l'événement ?");
if (!response) {
return;
}
Delete_One_Agenda_Event();
}
} className="bton_supprime_dialog">Supprimer l'événement</Button>
</div>
</DialogActions>}
{String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && p_detail_event_id && String(p_detail_event_id) !== "" &&
String(agenda_owner_name) === "Mon Planning" && <DialogActions>
<div className="div_row" style={{ "textAlign": "center" }}>
<Button onClick={(e) => {
const response = window.confirm("Confirmez-vous la suppression de l'événement ?");
if (!response) {
return;
}
Delete_One_Agenda_Event();
}
} className="bton_supprime_dialog">Supprimer l'événement</Button>
</div>
</DialogActions>}
{/*String(props.write_access) === "1" && String(p_detail_sequence_session_id) === "" && p_detail_event_id && String(p_detail_event_id) !== "" &&
<DialogActions>
<div className="div_row" style={{ "textAlign": "center" }}>
<Button onClick={(e) => {
const response = window.confirm("Confirmez-vous la suppression de l'événement ?");
if (!response) {
return;
}
Delete_One_Agenda_Event();
}
} className="bton_supprime_dialog">Supprimer l'événement</Button>
</div>
</DialogActions>*/}
</Dialog>
{/*** FIn Dialog detail eventement */}
@ -1577,7 +1727,7 @@ const Module_Agenda = (props) => {
{p_filtre1 && String(p_filtre1) === "ressource_humaine" && <div className="div_row_droite texte_area_filter_value" >
<Autocomplete
disablePortal
@ -1592,7 +1742,7 @@ const Module_Agenda = (props) => {
onChange={(event, value) => {
// console.log(" ## settab_selected_users = ", tab_selected_users)
// console.log(" ## settab_selected_users = ", tab_selected_users)
settab_selected_users([
...fixedVal,
...value.filter((i) => fixedVal.indexOf(i) === -1),
@ -1661,7 +1811,7 @@ const Module_Agenda = (props) => {
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>
{tab_selected_users.length <= 1 && <div className="div_row" style={{ "border": "None" }}>
{agenda_owner_name && String(agenda_owner_name) === "Mon Planning" && <h5> <i> {agenda_owner_name} </i> </h5>}
{agenda_owner_name && String(agenda_owner_name) !== "Mon Planning" && tab_selected_users.length === 1 && <h5> Vous êtes sur le planning de <i> {agenda_owner_name} - ({agenda_owner_type}) </i> </h5>}

View File

@ -841,7 +841,7 @@ const Module_Attestation_Formation = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();

View File

@ -1509,6 +1509,16 @@ const Module_Editique = (props) => {
{ "id": "", "label": "", "value": "" },
]
const New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL = [
{ "id": "start_session", "label": "Date Début Session", "value": "start_session" },
{ "id": "end_session", "label": "Date Fin Session", "value": "end_session" },
{ "id": "preinscription", "label": "A la pré-inscription", "value": "preinscription" },
{ "id": "inscription", "label": "A l'inscription", "value": "inscription" },
{ "id": "every_session_sequence_day", "label": "Envoyer chaque jour", "value": "every_session_sequence_day" },
{ "id": "", "label": "", "value": "" },
]
return (
<div className="module_editique">
@ -1708,9 +1718,8 @@ const Module_Editique = (props) => {
/>}
</div>
{String(p_doc_automatic_setup_action_target_date) !== "every_session_sequence_day" &&
{(String(p_doc_automatic_setup_action_target_date) === "start_session" || String(p_doc_automatic_setup_action_target_date) === "end_session") &&
<div className="session_caract_Dialog"> Nb Jours <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -3170,16 +3179,25 @@ const Module_Editique = (props) => {
}}
>
{x && String(x.actif) === "1" &&
<nav>
{x && String(x.actif) === "1" && New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL.length > 0 &&
<nav>
<Tooltip className="tooltip_css" id={x.courrier_template_type_document_id} style={{ textAlign: 'left' }} />
<a data-tooltip-id={x.courrier_template_type_document_id}
{(String(x.action_target_date) === "start_session" || String(x.action_target_date) === "end_session") && <a data-tooltip-id={x.courrier_template_type_document_id}
data-tooltip-html={" Traitement Automatique : Oui <br/> Nb Jours : " + `${x.nb_jour_action}` + " <br/>Date Cible: " + `${x.action_target_date}` + " <br/>Exécution dans : " + `${x.delta_day}` + " Jour(s)"}>
{String(x.delta_day) < "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#FFA500' }} />}
{String(x.delta_day) >= "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />}
</a>
</a>}
{String(x.action_target_date) !== "start_session" && String(x.action_target_date) !== "end_session" && <a data-tooltip-id={x.courrier_template_type_document_id}
data-tooltip-html={"Traitement Automatique : Oui <br/>Exécution : " + `${New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL.filter((data) => (data).value === String(x.action_target_date))[0].label}` }>
{String(x.delta_day) < "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#FFA500' }} />}
{String(x.delta_day) >= "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />}
</a>}
</nav>}
{x && String((x).actif) !== "1" &&
@ -3356,16 +3374,25 @@ const Module_Editique = (props) => {
}}
>
{x && String(x.actif) === "1" &&
<nav>
{x && String(x.actif) === "1" && New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL.length > 0 &&
<nav>
<Tooltip className="tooltip_css" id={x.courrier_template_type_document_id} style={{ textAlign: 'left' }} />
<a data-tooltip-id={x.courrier_template_type_document_id}
{(String(x.action_target_date) === "start_session" || String(x.action_target_date) === "end_session") && <a data-tooltip-id={x.courrier_template_type_document_id}
data-tooltip-html={" Traitement Automatique : Oui <br/> Nb Jours : " + `${x.nb_jour_action}` + " <br/>Date Cible: " + `${x.action_target_date}` + " <br/>Exécution dans : " + `${x.delta_day}` + " Jour(s)"}>
{String(x.delta_day) < "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#FFA500' }} />}
{String(x.delta_day) >= "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />}
</a>
</a>}
{String(x.action_target_date) !== "start_session" && String(x.action_target_date) !== "end_session" && <a data-tooltip-id={x.courrier_template_type_document_id}
data-tooltip-html={"Traitement Automatique : Oui <br/>Exécution : " + `${New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL.filter((data) => (data).value === String(x.action_target_date))[0].label}` }>
{String(x.delta_day) < "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#FFA500' }} />}
{String(x.delta_day) >= "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />}
</a>}
</nav>}
{x && String((x).actif) !== "1" &&
@ -3540,16 +3567,25 @@ const Module_Editique = (props) => {
}}
>
{x && String(x.actif) === "1" &&
<nav>
{x && String(x.actif) === "1" && New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL.length > 0 &&
<nav>
<Tooltip className="tooltip_css" id={x.courrier_template_type_document_id} style={{ textAlign: 'left' }} />
<a data-tooltip-id={x.courrier_template_type_document_id}
{(String(x.action_target_date) === "start_session" || String(x.action_target_date) === "end_session") && <a data-tooltip-id={x.courrier_template_type_document_id}
data-tooltip-html={" Traitement Automatique : Oui <br/> Nb Jours : " + `${x.nb_jour_action}` + " <br/>Date Cible: " + `${x.action_target_date}` + " <br/>Exécution dans : " + `${x.delta_day}` + " Jour(s)"}>
{String(x.delta_day) < "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#FFA500' }} />}
{String(x.delta_day) >= "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />}
</a>
</a>}
{String(x.action_target_date) !== "start_session" && String(x.action_target_date) !== "end_session" && <a data-tooltip-id={x.courrier_template_type_document_id}
data-tooltip-html={"Traitement Automatique : Oui <br/>Exécution : " + `${New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL.filter((data) => (data).value === String(x.action_target_date))[0].label}` }>
{String(x.delta_day) < "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#FFA500' }} />}
{String(x.delta_day) >= "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />}
</a>}
</nav>}
{x && String((x).actif) !== "1" &&
@ -3627,15 +3663,25 @@ const Module_Editique = (props) => {
}}
>
{x && String(x.actif) === "1" &&
<nav>
{x && String(x.actif) === "1" && New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL.length > 0 &&
<nav>
<Tooltip className="tooltip_css" id={x.courrier_template_type_document_id} style={{ textAlign: 'left' }} />
<a data-tooltip-id={x.courrier_template_type_document_id}
{(String(x.action_target_date) === "start_session" || String(x.action_target_date) === "end_session") && <a data-tooltip-id={x.courrier_template_type_document_id}
data-tooltip-html={" Traitement Automatique : Oui <br/> Nb Jours : " + `${x.nb_jour_action}` + " <br/>Date Cible: " + `${x.action_target_date}` + " <br/>Exécution dans : " + `${x.delta_day}` + " Jour(s)"}>
{String(x.delta_day) < "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#FFA500' }} />}
{String(x.delta_day) >= "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />}
</a>
</a>}
{String(x.action_target_date) !== "start_session" && String(x.action_target_date) !== "end_session" && <a data-tooltip-id={x.courrier_template_type_document_id}
data-tooltip-html={"Traitement Automatique : Oui <br/>Exécution : " + `${New_Option_Automatic_Doc_Action_Target_GLOBAL_FOR_ALL.filter((data) => (data).value === String(x.action_target_date))[0].label}` }>
{String(x.delta_day) < "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#FFA500' }} />}
{String(x.delta_day) >= "0" && <MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />}
</a>}
</nav>}
{x && String((x).actif) !== "1" &&

View File

@ -1091,7 +1091,7 @@ const Module_Email_Management = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();

View File

@ -346,7 +346,7 @@ const Module_Session_Planification = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();

View File

@ -2710,6 +2710,19 @@ const Mon_Catalogue_Public = (props) => {
setmy_theme_code(theme_code);
var catalog_pub_affiche_indicateur = ""
if (JSON.parse(x).affiche_indicateur)
catalog_pub_affiche_indicateur = JSON.parse(x).affiche_indicateur;
var catalog_pub_affiche_raison_sociale = ""
if (JSON.parse(x).affiche_raison_sociale)
catalog_pub_affiche_raison_sociale = JSON.parse(x).affiche_raison_sociale;
var catalog_pub_affiche_contact = ""
if (JSON.parse(x).affiche_contact)
catalog_pub_affiche_contact = JSON.parse(x).affiche_contact;
console.log(" ### setmy_theme_code = ", theme_code);
@ -2771,8 +2784,12 @@ const Mon_Catalogue_Public = (props) => {
"catalog_pub_theme_id": catalog_pub_theme_id,
"theme_code": theme_code,
"affiche_indicateur": catalog_pub_affiche_indicateur,
"affiche_raison_sociale": catalog_pub_affiche_raison_sociale,
"affiche_contact": catalog_pub_affiche_contact,
};
// console.log(" --- node = ", node);
console.log(" --- node = ", node);
new_data2.push(node);
});
@ -2847,7 +2864,7 @@ const Mon_Catalogue_Public = (props) => {
<div className="bloc_logo_indic_model_2">
<div className="bloc_logo_indic_logo_model_2">
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} alt={New_Get_Subdomain_Partner_Data_result[0].nom} />
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} />
</div>
<div className="bloc_logo_indic_contact_model_2">
@ -2865,7 +2882,7 @@ const Mon_Catalogue_Public = (props) => {
<div className="bloc_milieu_text_model_2">
<div className="bloc_milieu_text_model_2_gauche">
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_indicateur) === "1" && <div className="bloc_milieu_text_model_2_gauche">
<font className="bloc_logo_indic_indic_text"> Indicateurs </font> <br />
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0
&& New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_1_txt &&
@ -2911,8 +2928,10 @@ const Mon_Catalogue_Public = (props) => {
}}> {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_4_txt}
</div>}
</div>
<div className="bloc_milieu_text_model_2_centre">
</div>}
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_raison_sociale) === "1" && <div className="bloc_milieu_text_model_2_centre">
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0 &&
<nav>
<font className='title1_nom_model_2'> {New_Get_Subdomain_Partner_Data_result[0].nom} </font> <br />
@ -2931,14 +2950,14 @@ const Mon_Catalogue_Public = (props) => {
fontWeight: `${New_Get_Subdomain_Partner_Data_result[0].catalog_pub_message_2_gras}`,
}}> {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_message_2_txt} </nav>}
</div>
<div className="bloc_milieu_text_model_2_droite">
</div>}
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_contact) === "1" && <div className="bloc_milieu_text_model_2_droite">
<font className="bloc_logo_indic_contact_text_model_2"> Contact </font> <br />
Tel : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_telephone} <br />
Email : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_email}
</div>
</div>}
</div>
</div>
@ -3581,17 +3600,17 @@ const Mon_Catalogue_Public = (props) => {
<div className="bloc_logo_indic">
<div className="bloc_logo_indic_logo">
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} alt={New_Get_Subdomain_Partner_Data_result[0].nom} />
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} />
</div>
<div className="bloc_logo_indic_contact">
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_contact) === "1" && <div className="bloc_logo_indic_contact">
<font className="bloc_logo_indic_contact_text"> Contact </font> <br />
Tel : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_telephone} <br />
Email : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_email}
</div>
</div>}
<div className="bloc_logo_indic_indic">
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_indicateur) === "1" && <div className="bloc_logo_indic_indic">
<font className="bloc_logo_indic_indic_text"> Indicateurs </font> <br />
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0
&& New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_1_txt &&
@ -3636,11 +3655,11 @@ const Mon_Catalogue_Public = (props) => {
fontWeight: `${New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_4_gras}`,
}}> {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_4_txt}
</div>}
</div>
</div>}
</div>
<div className="bloc_milieu">
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_raison_sociale) === "1" && <div className="bloc_milieu">
<div className="bloc_milieu_text">
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0 &&
@ -3665,7 +3684,7 @@ const Mon_Catalogue_Public = (props) => {
<img style={{ width: '60%' }}
src={img_header} />
</div>
</div>
</div>}
<div className="Header_Content">
@ -4522,6 +4541,8 @@ const Mon_Catalogue_Public = (props) => {
</div>}
{/******* FIN Gestion du THEME PAR DEFAULT " */}
{/******* Gestion du THEME THEME SPECIAL JMJ Formation " */}
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0
&& String(my_theme_code) === "MySy_Theme_JMJ" &&
@ -4542,17 +4563,17 @@ const Mon_Catalogue_Public = (props) => {
<div className="bloc_logo_indic" style={{ position: "unset" }}>
<div className="bloc_logo_indic_logo">
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} alt={New_Get_Subdomain_Partner_Data_result[0].nom} />
<img src={New_Get_Subdomain_Partner_Data_result[0].catalog_pub_logo} />
</div>
<div className="bloc_logo_indic_contact">
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_contact) === "1" && <div className="bloc_logo_indic_contact">
<font className="bloc_logo_indic_contact_text"> Contact </font> <br />
Tel : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_telephone} <br />
Email : {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_contact_public_email}
</div>
</div>}
<div className="bloc_logo_indic_indic">
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_indicateur) === "1" && <div className="bloc_logo_indic_indic">
<font className="bloc_logo_indic_indic_text"> Indicateurs </font> <br />
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0
&& New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_1_txt &&
@ -4597,9 +4618,9 @@ const Mon_Catalogue_Public = (props) => {
fontWeight: `${New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_4_gras}`,
}}> {New_Get_Subdomain_Partner_Data_result[0].catalog_pub_indicateur_4_txt}
</div>}
</div>
</div>}
<div className="bloc_milieu" style={{ position: "unset" }}>
{String(New_Get_Subdomain_Partner_Data_result[0].affiche_raison_sociale) === "1" && <div className="bloc_milieu" style={{ position: "unset" }}>
<div className="bloc_milieu_text">
{New_Get_Subdomain_Partner_Data_result && New_Get_Subdomain_Partner_Data_result.length > 0 &&
@ -4635,14 +4656,14 @@ const Mon_Catalogue_Public = (props) => {
src={img_header_jmg} />
</div>
</div>
</div>}
</div>
</div>
<div className="jmj_header_droite">
<img src={img_header_jmg} style={{ width: '100%', paddingTop: '3rem' }} />
{/* <img src={img_header_jmg} style={{ width: '100%', paddingTop: '3rem' }} />*/} &nbsp;
</div>
</div>

View File

@ -47,8 +47,45 @@ import Module_Selection_Evaluation_Apprenants from "./Module_Selection_Evaluatio
import AttachFileIcon from '@mui/icons-material/AttachFile';
import { GoDuplicate } from "react-icons/go";
import Module_Alert_Confirmation from "./Module_Alert_Confirmation";
import CancelPresentationIcon from '@mui/icons-material/CancelPresentation';
import Paper from '@material-ui/core/Paper';
import Draggable from 'react-draggable';
import { makeStyles } from "@material-ui/core/styles";
import { IconButton } from '@material-ui/core';
function PaperComponent(props) {
return (
<Draggable
handle="#draggable-dialog-title"
cancel={'[class*="MuiDialogContent-root"]'}
>
<Paper {...props} />
</Draggable>
);
}
const useStyles = makeStyles((theme) => ({
dialog: {
position: 'absolute',
// left: 10,
top: 400
},
paper: {
overflowY: 'unset',
},
customizedButton: {
position: 'absolute',
left: '98%',
top: '-3%',
backgroundColor: 'lightgray',
color: 'gray',
},
}));
const Notes_Evaluation = (props) => {
const classes = useStyles();
const history = useHistory();
const [submenu, setsubmenu] = useState("");
const [rowss, setRows] = useState([]);
@ -254,7 +291,7 @@ const Notes_Evaluation = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -334,7 +371,7 @@ const Notes_Evaluation = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -414,7 +451,7 @@ const Notes_Evaluation = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -505,7 +542,7 @@ const Notes_Evaluation = (props) => {
{ field: 'prenom', headerName: 'prenom', flex: 1, hide: false, minWidth: 180, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'email', headerName: 'email', flex: 1, hide: false, minWidth: 180, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'groupe', headerName: 'groupe', flex: 1, hide: false, minWidth: 180, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'note', headerName: 'Note', width: 200, editable:Boolean(props.check_user_acces_right("note_evaluation", "write")), renderCell: (params) => <ExpandableCell_50_bg_hiligt {...params} />, align: "center", },
{ field: 'note', headerName: 'Note', width: 200, editable: Boolean(props.check_user_acces_right("note_evaluation", "write")), renderCell: (params) => <ExpandableCell_50_bg_hiligt {...params} />, align: "center", },
{ field: 'convocation_send_date', headerName: 'Conv. Envoyé', width: 200, editable: false, renderCell: (params) => <ExpandableCell_50_bg_hiligt {...params} />, align: "center", },
{ field: 'convocation_send_type', headerName: 'Conv. Par', width: 200, editable: false, renderCell: (params) => <ExpandableCell_50_bg_hiligt {...params} />, align: "center", },
@ -555,7 +592,7 @@ const Notes_Evaluation = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -3612,8 +3649,30 @@ const Notes_Evaluation = (props) => {
{/* Dialog pour gerer les CONVOCATION_EVAL */}
<Dialog
open={Dialog_CONVOCATION_EVAL_open}
onClose={Dialog_CONVOCATION_EVAL_handleClose_buton}
// onClose={Dialog_CONVOCATION_EVAL_handleClose_buton}
className="displaypartnersession"
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> MySy Information</DialogTitle>
@ -3744,6 +3803,17 @@ const Notes_Evaluation = (props) => {
</DialogContent>
<DialogActions>
<IconButton
autoFocus
onClick={Dialog_CONVOCATION_EVAL_handleClose_buton}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
<div className="div_row">
<div className="div_row_gauche">
@ -3781,9 +3851,31 @@ const Notes_Evaluation = (props) => {
<Dialog
open={Dialog_seq_ressource_1_open}
onClose={Dialog_seq_ressource_1_handleClose}
// onClose={Dialog_seq_ressource_1_handleClose}
className="displaypartnersession"
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
@ -3940,6 +4032,16 @@ const Notes_Evaluation = (props) => {
<DialogActions>
<IconButton
autoFocus
onClick={Dialog_seq_ressource_1_handleClose_buton}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
<div className="div_row">
<div className="div_row_gauche">
@ -6190,7 +6292,7 @@ const Notes_Evaluation = (props) => {
name={(JSON.parse(val).file_name)}
id={(JSON.parse(val).file_name)} onClick={Download_one_attached_document}> Télécharger &nbsp;</font></nav>
{String(props.check_user_acces_right("note_evaluation", "write")) === "1" && <Popup
{String(props.check_user_acces_right("note_evaluation", "write")) === "1" && <Popup
trigger={
<nav style={{ "color": "red", "cursor": "pointer" }} > Supprimer</nav>

View File

@ -2746,7 +2746,10 @@ const Partner = (props) => {
{String(menu) === "module_agenda" && <div className="div_droite">
<Module_Agenda conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("module_agenda", "read")} write_access={check_user_acces_right("module_agenda", "write")} />
<Module_Agenda conntected_employee_id={conntected_employee_id}
read_access={check_user_acces_right("module_agenda", "read")}
write_access={check_user_acces_right("module_agenda", "write")}
check_user_acces_right={check_user_acces_right} />
</div>
}
@ -2805,7 +2808,7 @@ const Partner = (props) => {
{/* div_gauche div_gauche_reduit */}
{
left_menu === false && <div className="sub_dib_mobile" >
<div className="div_gauche div_gauche_reduit" id="div_gauche">
<div className="div_gauche div_gauche_reduit" id="div_gauche" style={{borderRadius:'0px', margin:'0px'}}>
<nav className="not_display_mobile">
{left_menu === true && <div style={{ "cursor": "pointer", textAlign: "left" }} onClick={open_close_left_menu}>
@ -3562,7 +3565,9 @@ const Partner = (props) => {
{String(menu) === "module_agenda" && <div className="div_droite div_droite_ralonge">
<Module_Agenda conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("module_agenda", "read")} write_access={check_user_acces_right("module_agenda", "write")} />
<Module_Agenda conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("module_agenda", "read")}
write_access={check_user_acces_right("module_agenda", "write")}
check_user_acces_right={check_user_acces_right}/>
</div>
}

View File

@ -243,7 +243,7 @@ const Partner_Client = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -718,6 +718,11 @@ const Partner_Client = (props) => {
]
function display_child_alert_success(message) {
setdisplay_alert_mysy("1");
setalert_message(String(message));
setalert_type("success");
}
const [display_alert_mysy, setdisplay_alert_mysy] = useState("");
const [alert_message, setalert_message] = useState("");
@ -1241,13 +1246,13 @@ const Partner_Client = (props) => {
{String(props.check_user_acces_right("client", "write")) === "1" && <div className="div_row" ref={myRef_detail_client}>
<Button variant="outlined" onClick={submenu_import_part_client_mass} className="detail_class_submenu bton_import_excel"
id='menu_import_participant' name='menu_import_participant'>Choisir un fichier et Importer &nbsp;
id='menu_import_participant' name='menu_import_participant' style={{ maxWidth: '20rem' }}>Choisir un fichier et Importer &nbsp;
<img src={excel_icone} alt="ajout csv" className="icon_excel" />
</Button>
<Button variant="outlined" onClick={handleClick_add_new_client}
className="detail_class_submenu bton_add_session"
id='menu_one_participant' name='menu_one_participant'> Ajout 1 Client / Financeur &nbsp; <img src={participants} alt="ajout un client" className="icon_plus" /> &nbsp;
id='menu_one_participant' name='menu_one_participant' style={{ maxWidth: '20rem' }}> Ajout 1 Client / Financeur &nbsp; <img src={participants} alt="ajout un client" className="icon_plus" /> &nbsp;
</Button>
@ -1275,20 +1280,23 @@ const Partner_Client = (props) => {
{String(Edite_Client) === "1" && <div className="div_row" style={{ "paddingRight": "10px" }}>
<div className="titre1"> Detail client / Financeur : {Client_email}</div>
<div className="titre1"> Detail client / Financeur {Client_email}</div>
<AddParnerClient client_mail={Client_email} close_detail_client={close_detail_client} father_scroll_to_top={father_scroll_to_top}
client_id={selected_id} check_user_acces_right={props.check_user_acces_right} />
client_id={selected_id} check_user_acces_right={props.check_user_acces_right}
Get_List_Partner_Clients={Get_List_Partner_Clients}/>
</div>}
{String(Edite_Client) === "2" && <div className="div_row">
<div className="titre1"> Detail client / Financeur : {Client_email}</div>
<div className="titre1"> Nouveau client / financeur</div>
<div ref={myRef_add_client}> &nbsp;</div>
<AddParnerClient client_mail={Client_email} close_detail_client={close_detail_client} new_customer="1" client_id={selected_id}
Get_List_Partner_Clients={Get_List_Partner_Clients} father_scroll_to_top={father_scroll_to_top}
check_user_acces_right={props.check_user_acces_right} />
check_user_acces_right={props.check_user_acces_right}
display_child_alert_success={display_child_alert_success}
/>
</div>}

View File

@ -64,9 +64,23 @@ import {
} from '@mui/x-data-grid';
import * as XLSX from 'xlsx';
import Paper from '@material-ui/core/Paper';
import Draggable from 'react-draggable';
import Module_Alert_Confirmation from "./Module_Alert_Confirmation";
function PaperComponent(props) {
return (
<Draggable
handle="#draggable-dialog-title"
cancel={'[class*="MuiDialogContent-root"]'}
>
<Paper {...props} />
</Draggable>
);
}
const useStyles = makeStyles((theme) => ({
dialog: {
@ -81,7 +95,7 @@ const useStyles = makeStyles((theme) => ({
customizedButton: {
position: 'absolute',
left: '95%',
top: '-9%',
top: '-10px',
backgroundColor: 'lightgray',
color: 'gray',
},
@ -241,7 +255,7 @@ const Partner_Commande = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();
@ -1027,7 +1041,7 @@ const Partner_Commande = (props) => {
l'_id du client*/
Getall_Parter_Orders_With_Filter_On_Client_Id(orderid);
// console.log(" ~### 222 mes facture props action, orderid = ", action, orderid);
// console.log(" ~### 222 mes facture props action, orderid = ", action, orderid);
} else {
Getall_Parter_Orders_No_Filter();
@ -5017,7 +5031,27 @@ const Partner_Commande = (props) => {
// onClose={Dialog_order_history_handleClose}
className="displaypartnersession"
static
onClose={() => null} >
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
// top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title" >
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> MySy Information</DialogTitle>
<DialogContent className="DialogContent_width_700px" style={{ "minHeight": "20rem", width: '60rem' }}>
@ -5043,6 +5077,17 @@ const Partner_Commande = (props) => {
<DialogActions>
<IconButton
autoFocus
onClick={Dialog_order_history_handleClose_buton}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
<div className="div_row">
<div className="div_row_gauche">
&nbsp;
@ -5271,6 +5316,26 @@ const Partner_Commande = (props) => {
className="partner_commande"
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
//top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> Cloture devis <font style={{ fontWeight: "700" }}> {String(p_detail_header_ref_interne)} </font> </DialogTitle>
@ -5341,6 +5406,15 @@ const Partner_Commande = (props) => {
<DialogActions>
<IconButton
autoFocus
onClick={Close_Dialog_Cloture_Devis_open}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
<div className="div_row">
{p_new_raison_cloture && String(p_new_raison_cloture) !== "" && <div className="div_row_gauche">
@ -5367,7 +5441,28 @@ const Partner_Commande = (props) => {
// onClose={Dialog_signature_digitale_handleClose}
className="displaypartnersession"
static
onClose={() => null} >
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
// top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> MySy Information</DialogTitle>
<DialogContent className="DialogContent_width" style={{ "minHeight": "20rem" }}>
@ -5416,7 +5511,7 @@ const Partner_Commande = (props) => {
<div className="div_row" style={{ "padding": "5px" }}>
{String(props.check_user_acces_right("commande", "write")) === "1" && <div style={{ "fontSize": "12px" }}>
{String(props.check_user_acces_right("commande", "write")) === "1" && <div style={{ "fontSize": "12px" }}>
<label htmlFor="upload_convention_file">
<input
style={{ display: "none" }}
@ -5472,6 +5567,16 @@ const Partner_Commande = (props) => {
</DialogContent>
<DialogActions>
<IconButton
autoFocus
onClick={Dialog_signature_digitale_handleClose_buton}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
<div className="div_row">
<div className="div_row_gauche">
<Button onClick={(e) => {
@ -5501,7 +5606,30 @@ const Partner_Commande = (props) => {
<Dialog
open={Dialog_1_open}
onClose={Dialog_1_handleClose}
// onClose={Dialog_1_handleClose}
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
//top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
@ -5526,7 +5654,27 @@ const Partner_Commande = (props) => {
// onClose={Dialog_1_handleClose}
className="partner_commande"
static
onClose={() => null} >
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
// top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title" >
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> Edition Détail ligne <font style={{ fontWeight: "700" }}> {String(p_detail_header_type).toLocaleUpperCase()} </font> </DialogTitle>
<DialogContent>
@ -6149,6 +6297,16 @@ const Partner_Commande = (props) => {
<DialogActions>
<IconButton
// autoFocus
onClick={Close_Dialog_Detail_Article_open}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
{String(p_detail_header_statut_label).toLowerCase() !== "facturé" && <div className="div_row">
<div className="div_row_gauche">
<Button onClick={(event) => {
@ -6187,6 +6345,26 @@ const Partner_Commande = (props) => {
className="partner_commande"
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
// top: '5rem',
margin: "2px",
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
>
<DialogTitle style={{ cursor: 'move', background: '#fff', fontFamily: 'DM Sans' }} id="draggable-dialog-title"> {Dialog_1_message}</DialogTitle>
@ -6483,6 +6661,16 @@ const Partner_Commande = (props) => {
<DialogActions>
<IconButton
autoFocus
onClick={Close_Dialog_Detail_Order_open}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
<div className="div_row">
<div className="div_row_gauche">
<Button onClick={Add_Dialog_Detail_Order} className="bton_enreg_dialog">Ajouter</Button>
@ -6935,7 +7123,7 @@ const Partner_Commande = (props) => {
<div className="div_row" style={{ "border": "None" }}>
{String(props.check_user_acces_right("commande", "write")) === "1" && <div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
{String(props.check_user_acces_right("commande", "write")) === "1" && <div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
{/*<Button variant="outlined" onClick={submenu_import_order} className="detail_class_submenu bton_import_excel"
id='menu_import_participant' name='menu_import_participant'>Importer des commande / devis Excel &nbsp;
@ -8109,16 +8297,16 @@ const Partner_Commande = (props) => {
</div>
<div style={{ "width": "23%", "float": "left", "textAlign": "right", "paddingTop": "2rem" }}>
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() === "brouillon" &&
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() === "brouillon" &&
String(p_detail_header_statut_label).toLowerCase() !== "facturé" && <Button variant="outlined" onClick={Confirm_Order_Data} className="detail_class_submenu bton_add_sous_menu_cmd_gauche"> Confirmer</Button>
}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() === "en cours" &&
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() === "en cours" &&
String(p_detail_header_type).toLowerCase() === "commande" && <Button variant="outlined" onClick={Make_Order_Ready_To_Invoice} className="detail_class_submenu bton_add_sous_menu_cmd_gauche bton_put_to_invoice" > Prêt pour Facturation </Button>
}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(selected_order_header_type) === "commande" &&
{String(props.check_user_acces_right("commande", "write")) === "1" && String(selected_order_header_type) === "commande" &&
String(p_detail_header_statut_label).toLowerCase() === "traité" &&
<Popup
trigger={
@ -8167,7 +8355,7 @@ const Partner_Commande = (props) => {
}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(selected_order_header_type) === "devis" &&
{String(props.check_user_acces_right("commande", "write")) === "1" && String(selected_order_header_type) === "devis" &&
(String(p_detail_header_statut_label).toLowerCase().trim() === "en cours" || String(p_detail_header_statut_label).toLowerCase().trim() === "gagné") &&
String(p_detail_header_order_header_ref_interne) === "" &&
<Button variant="outlined" onClick={Convert_Quotation_To_Order_Data} className="detail_class_submenu bton_add_sous_menu_cmd_gauche"> Convertir en Cmd </Button>
@ -8186,7 +8374,7 @@ const Partner_Commande = (props) => {
}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(selected_order_header_type) === "devis" && String(p_detail_header_statut_label).toLowerCase() === "en cours" &&
{String(props.check_user_acces_right("commande", "write")) === "1" && String(selected_order_header_type) === "devis" && String(p_detail_header_statut_label).toLowerCase() === "en cours" &&
<Popup
trigger={
<Button variant="outlined" className="detail_class_submenu bton_add_sous_menu_cmd_gauche"> Valider et Reserver </Button>
@ -8235,10 +8423,10 @@ const Partner_Commande = (props) => {
}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() !== "facturé" && <Button variant="outlined" onClick={Cancel_Order_Data} className="detail_class_submenu bton_add_sous_menu_cmd_gauche"> Annuler </Button>}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() !== "facturé" && <Button variant="outlined" onClick={Cancel_Order_Data} className="detail_class_submenu bton_add_sous_menu_cmd_gauche"> Annuler </Button>}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() !== "traité" &&
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() !== "traité" &&
String(p_detail_header_statut_label).toLowerCase() !== "facturé" &&
<Popup
trigger={<Button variant="outlined" className="detail_class_submenu bton_add_sous_menu_cmd_gauche"> Supprimer </Button>}
@ -8300,8 +8488,8 @@ const Partner_Commande = (props) => {
<Button variant="outlined" onClick={Compute_Order_Header_Price} className="detail_class_submenu bton_add_sous_menu_cmd_gauche" id='order_header_main' name='order_header_main'>Mettre a jour prix</Button>}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() !== "brouillon" && <Button variant="outlined" onClick={print_order_pdf} className="detail_class_submenu bton_add_sous_menu_cmd_gauche" id='order_header_main' name='order_header_main'>Imprimer pdf</Button>}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() !== "brouillon" && <Button variant="outlined" onClick={Check_Electronic_Sign_Before_Sending_Email} className="detail_class_submenu bton_add_sous_menu_cmd_gauche" id='order_header_main' name='order_header_main'>envoyer par mail</Button>}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() !== "brouillon" && <Button variant="outlined" onClick={print_order_pdf} className="detail_class_submenu bton_add_sous_menu_cmd_gauche" id='order_header_main' name='order_header_main'>Imprimer pdf</Button>}
{String(props.check_user_acces_right("commande", "write")) === "1" && String(p_detail_header_statut_label).toLowerCase() !== "brouillon" && <Button variant="outlined" onClick={Check_Electronic_Sign_Before_Sending_Email} className="detail_class_submenu bton_add_sous_menu_cmd_gauche" id='order_header_main' name='order_header_main'>envoyer par mail</Button>}
<br /> <br />
@ -8342,7 +8530,7 @@ const Partner_Commande = (props) => {
</div>
{String(props.check_user_acces_right("commande", "write")) === "1" && String(order_data_edit_mode) !== "1" && String(p_detail_header_statut_label).toLowerCase() !== "facturé" && <div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
{String(props.check_user_acces_right("commande", "write")) === "1" && String(order_data_edit_mode) !== "1" && String(p_detail_header_statut_label).toLowerCase() !== "facturé" && <div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
<Button variant="contained" className="bton_edit" onClick={Enable_Order_Header_DetailFields}>Editer
</Button>
@ -8357,7 +8545,7 @@ const Partner_Commande = (props) => {
<div className="session_data" >
<div style={{ "border": "None" }}>
{String(props.check_user_acces_right("commande", "write")) === "1" && <nav onClick={Ajouter_une_ligne_article} style={{ "fontSize": "18px", "fontWeight": '600', "marginLeft": "10px", "marginTop": "10px", "cursor": "pointer" }}
{String(props.check_user_acces_right("commande", "write")) === "1" && <nav onClick={Ajouter_une_ligne_article} style={{ "fontSize": "18px", "fontWeight": '600', "marginLeft": "10px", "marginTop": "10px", "cursor": "pointer" }}
className="bton_add_line"> <Button> Ajouter 1 article
&nbsp; <FcAddDatabase style={{ "fontSize": "medium" }} />
</Button>
@ -8497,7 +8685,7 @@ const Partner_Commande = (props) => {
</div>
{String(props.check_user_acces_right("commande", "write")) === "1" && String(order_data_edit_mode) !== "1" && <div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
{String(props.check_user_acces_right("commande", "write")) === "1" && String(order_data_edit_mode) !== "1" && <div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
<Button variant="contained" className="bton_edit" onClick={Enable_Order_Header_DetailFields}>Editer
</Button>

View File

@ -6,7 +6,7 @@ import Button from '@mui/material/Button';
import axios from "axios";
import { getCookie, setCookie } from 'react-use-cookie';
import { useHistory } from "react-router-dom";
import TextareaAutosize from '@mui/material/TextareaAutosize';
import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
@ -924,6 +924,11 @@ const Partner_Config_Formulaires = (props) => {
top: divh,
behavior: "smooth",
});
} else {
window.scrollTo({
top: 0,
behavior: "smooth",
});
}
}
@ -1817,7 +1822,7 @@ const Partner_Config_Formulaires = (props) => {
{(String(question_type) === "bool" || String(question_type) === "entier") &&
<nav style={{ width: "49%", float: "left", "textAlign": "right" }}>
<Autocomplete
disablePortal
name="seuil_oui_non"
@ -2182,9 +2187,6 @@ const Partner_Config_Formulaires = (props) => {
}, [`& .${gridClasses.cell}`]: {
py: 1,
},
}}
>
<DataGrid
@ -2227,8 +2229,6 @@ const Partner_Config_Formulaires = (props) => {
}}
//sx={datagridSx}
getCellClassName={(params) => {
//field === "order_header_status"
if (params.field === "order_header_status" && String(params.value) == "0") {
return 'cell--status--brouillon';
@ -2298,7 +2298,7 @@ const Partner_Config_Formulaires = (props) => {
}}
className="detail_class_submenu bton_add_session"
id='menu_import_participant' name='menu_import_participant'>Ajout un formulaire &nbsp;
id='menu_import_participant' name='menu_import_participant' style={{ maxWidth: '20rem' }}>Ajout un formulaire &nbsp;
<IoAddCircleOutline style={{ "fontSize": "x-large", "color": "green" }} />
</Button>
</div>
@ -2380,22 +2380,6 @@ const Partner_Config_Formulaires = (props) => {
/>
</div>
<div className="session_caract"> Message d'introduction <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_config_message_intro"
id="detail_config_message_intro"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_from_message_intro}
/>
</div>
<div className="session_caract"> Commentaire <br />
<TextField
@ -2419,7 +2403,7 @@ const Partner_Config_Formulaires = (props) => {
<Checkbox
name="detail_config_par_defaut_1"
id="detail_config_par_defaut_1"
className="disabled_style"
// className="disabled_style"
checked={true}
// style={{ background: '#ECEFF1' }}
@ -2429,7 +2413,7 @@ const Partner_Config_Formulaires = (props) => {
<Checkbox
name="detail_config_par_defaut_1"
id="detail_config_par_defaut_1"
className="disabled_style"
// className="disabled_style"
checked={false}
// style={{ background: '#ECEFF1' }}
@ -2438,6 +2422,28 @@ const Partner_Config_Formulaires = (props) => {
</div>
<div className="div_row">
<div className="session_caract"> Message d'introduction <br />
<TextareaAutosize
name="detail_config_message_intro"
id="detail_config_message_intro"
aria-label="minimum height"
minRows={3}
maxRows={5}
className="disabled_style"
style={{
border: "1px solid gainsboro", padding: '2px',
maxHeight: '10rem', minHeight: '8rem', marginBottom: '3rem'
}}
value={p_detail_from_message_intro}
/>
</div>
</div>
<div className="div_row" style={{ "padding": "10px" }}>
@ -2701,27 +2707,7 @@ const Partner_Config_Formulaires = (props) => {
/>
</div>
<div className="session_caract"> Message d'introduction <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_config_message_intro"
id="detail_config_message_intro"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_from_message_intro}
onChange={(e) => {
setp_detail_from_message_intro(e.target.value);
setconfig_data_changed("1");
}}
multiline={true}
rows={2}
/>
</div>
<div className="session_caract"> Commentaire <br />
<TextField
@ -2748,7 +2734,7 @@ const Partner_Config_Formulaires = (props) => {
<Checkbox
name="detail_config_par_defaut"
id="detail_config_par_defaut"
className="disabled_style"
// className="disabled_style"
checked={true}
// style={{ background: '#ECEFF1' }}
onChange={(e) => {
@ -2765,7 +2751,7 @@ const Partner_Config_Formulaires = (props) => {
<Checkbox
name="detail_config_par_defaut"
id="detail_config_par_defaut"
className="disabled_style"
// className="disabled_style"
checked={false}
// style={{ background: '#ECEFF1' }}
onChange={(e) => {
@ -2781,6 +2767,32 @@ const Partner_Config_Formulaires = (props) => {
</div>
<div className="div_row">
<div className="session_caract"> Message d'introduction<br />
<TextareaAutosize
name="detail_config_message_intro"
id="detail_config_message_intro"
aria-label="minimum height"
minRows={3}
maxRows={5}
className="disabled_style"
style={{
border: "1px solid gainsboro", padding: '2px',
maxHeight: '10rem', minHeight: '8rem', marginBottom: '3rem'
}}
value={p_detail_from_message_intro}
onChange={(e) => {
setp_detail_from_message_intro(e.target.value);
setconfig_data_changed("1");
}}
/>
</div>
</div>
</div>
@ -2795,7 +2807,7 @@ const Partner_Config_Formulaires = (props) => {
{p_detail_from_list_question && p_detail_from_list_question.length > 0 && <div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
&nbsp;
<Box
<Box
sx={{
height: 500,
width: '100%',
@ -2902,7 +2914,7 @@ const Partner_Config_Formulaires = (props) => {
<div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
<Button variant="contained" className="bton_enreg" onClick={Update_formlaire_data}>Enregistrer les modifications
<Button variant="contained" className="bton_enreg" onClick={Update_formlaire_data}>Enregistrer
</Button>
</div>
@ -3017,25 +3029,7 @@ const Partner_Config_Formulaires = (props) => {
/>
</div>
<div className="session_caract"> Message d'introduction <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_config_message_intro"
id="detail_config_message_intro"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_one_from_message_intro}
onChange={(e) => {
setp_detail_one_from_message_intro(e.target.value);
}}
/>
</div>
<div className="session_caract"> Commentaire <br />
@ -3063,7 +3057,7 @@ const Partner_Config_Formulaires = (props) => {
name="detail_config_par_defaut"
id="detail_config_par_defaut"
className="disabled_style"
// className="disabled_style"
checked={false}
onChange={(e) => {
if (e.target.checked) {
@ -3075,6 +3069,31 @@ const Partner_Config_Formulaires = (props) => {
// style={{ background: '#FFFFFF' }}
/>
</div>
<div className="div_row">
<div className="session_caract"> Message d'introduction <br />
<TextareaAutosize
name="detail_config_message_intro"
id="detail_config_message_intro"
aria-label="minimum height"
minRows={3}
maxRows={5}
className="disabled_style"
style={{
border: "1px solid gainsboro", padding: '2px',
maxHeight: '10rem', minHeight: '8rem', marginBottom: '3rem'
}}
value={p_detail_one_from_message_intro}
onChange={(e) => {
setp_detail_one_from_message_intro(e.target.value);
}}
/>
</div>
</div>
<div>

View File

@ -5911,31 +5911,6 @@ const Partner_Configuration_Technique = (props) => {
/>
</div>
<div className="session_caract"> Nb Jours <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="nb_jour_document"
id="nb_jour_document"
type="number"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_doc_automatic_nb_jour_action}
onChange={(e) => {
setp_detail_doc_automatic_nb_jour_action(e.target.value);
setConfig_doc_automatic_data_changed("1");
}}
style={{ background: '#FFFFFF' }}
/>
</div>
<div className="session_caract">
<Tooltip className="tooltip_css" id="help_target_action_document" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="help_target_action_document" data-tooltip-html="Définir si l'action est exécutée en basant sur la date de début ou de fin de session">
@ -6034,10 +6009,33 @@ const Partner_Configuration_Technique = (props) => {
style={{ background: '#FFFFFF' }}
/>}
</div>
{(String(p_detail_doc_automatic_action_target_date) === "start_session" || String(p_detail_doc_automatic_action_target_date) === "end_session") && <div className="session_caract"> Nb Jours <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="nb_jour_document"
id="nb_jour_document"
type="number"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_doc_automatic_nb_jour_action}
onChange={(e) => {
setp_detail_doc_automatic_nb_jour_action(e.target.value);
setConfig_doc_automatic_data_changed("1");
}}
style={{ background: '#FFFFFF' }}
/>
</div>}
</div>}
@ -6116,25 +6114,6 @@ const Partner_Configuration_Technique = (props) => {
/>
</div>
<div className="session_caract"> Nb Jours <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="nb_jour_document"
id="nb_jour_document"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_doc_automatic_nb_jour_action}
style={{ background: '#ECEFF1' }}
/>
</div>
<div className="session_caract"> Cible <br />
{String(p_detail_doc_automatic_nom) !== "EMARGEMENT" &&
String(p_detail_doc_automatic_nom) !== "QUESTION POSITIONNEMENT" &&
@ -6196,6 +6175,26 @@ const Partner_Configuration_Technique = (props) => {
</div>
{(String(p_detail_doc_automatic_action_target_date) === "start_session" || String(p_detail_doc_automatic_action_target_date) === "end_session") && <div className="session_caract"> Nb Jours <br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="nb_jour_document"
id="nb_jour_document"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_doc_automatic_nb_jour_action}
style={{ background: '#ECEFF1' }}
/>
</div>}
</div>}
<div className="div_row" style={{ "border": "None" }}>

View File

@ -303,7 +303,7 @@ const Partner_Facture = (props) => {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();

View File

@ -263,7 +263,7 @@ function UpdateAttendeeList() {
</div>
<div style={{ "width": "45%", "float": "right" }}>
<button
className="gest_bton_popup"
className="gest_bton_popup_annuler"
onClick={() => {
//console.log('modal closed ');
close();

View File

@ -902,6 +902,20 @@ function UpdateParnterInfo(props) {
form.append("token", stored_cookie);
form.append("theme_id", selected_catalog_pub_theme_id);
if (p_affiche_indicateur)
form.append("affiche_indicateur", "1");
else
form.append("affiche_indicateur", "0");
if (p_affiche_raison_sociale)
form.append("affiche_raison_sociale", "1");
else
form.append("affiche_raison_sociale", "0");
if (p_affiche_contact)
form.append("affiche_contact", "1");
else
form.append("affiche_contact", "0");
form.append("message_1_txt", p_catalog_pub_message_1_txt);
form.append("message_1_taille", p_text1_taille);
@ -2018,6 +2032,8 @@ function UpdateParnterInfo(props) {
var banniere_img = JSON.parse(res.data.message).banniere_img;
setPartner_Catalog_Pub_banniere(banniere_img);
setPartner_Catalog_Pub_message_1_txt(JSON.parse(res.data.message).message_1_txt);
setp_catalog_pub_message_1_txt(JSON.parse(res.data.message).message_1_txt);
@ -2126,6 +2142,27 @@ function UpdateParnterInfo(props) {
setp_indicateur2_taille('12');
setp_affiche_indicateur(false);
if (JSON.parse(res.data.message).affiche_indicateur) {
if (String(JSON.parse(res.data.message).affiche_indicateur) === "1")
setp_affiche_indicateur(true);
}
setp_affiche_raison_sociale(false);
if (JSON.parse(res.data.message).affiche_raison_sociale) {
if (String(JSON.parse(res.data.message).affiche_raison_sociale) === "1")
setp_affiche_raison_sociale(true);
}
setp_affiche_contact(false);
if (JSON.parse(res.data.message).affiche_contact) {
if (String(JSON.parse(res.data.message).affiche_contact) === "1")
setp_affiche_contact(true);
}
setp_indicateur2_gras(false);
if (JSON.parse(res.data.message).indicateur_2_gras) {
if (String(JSON.parse(res.data.message).indicateur_2_gras) === "700")
@ -2234,13 +2271,19 @@ function UpdateParnterInfo(props) {
console.log("file_size = ", file_size, " file_type = ", file_type, " naturalWidth = ", fileUploaded.naturalWidth);
if (file_size > 1000000) {
alert("Le fichier ne doit pas dépasser un 1 Méga octets");
// alert("Le fichier ne doit pas dépasser un 1 Méga octets");
setdisplay_alert_mysy("1");
setalert_message("Le fichier ne doit pas dépasser un 1 Méga octets");
setalert_type("error");
return;
}
//image/png
if (String(file_type) !== "image/png" && String(file_type) !== "image/jpg" && String(file_type) !== "image/webp") {
alert("Le fichier n'est pas au format PNG");
//alert("Le fichier doit être au format png, jpg ou webp");
setdisplay_alert_mysy("1");
setalert_message("Le fichier doit être au format png, jpg ou webp");
setalert_type("error");
return;
}
@ -2259,7 +2302,7 @@ function UpdateParnterInfo(props) {
//console.log(" img_width = ", img_width);
_URL.revokeObjectURL(objectUrl);
if (parseFloat(img_width) > 1500 && parseFloat(img_width) < 1930 &&
parseFloat(img_height) > 150 && parseFloat(img_height) < 250) {
parseFloat(img_height) > 400 && parseFloat(img_height) < 650) {
@ -2803,6 +2846,11 @@ function UpdateParnterInfo(props) {
const [p_contact_public_telephone, setp_contact_public_telephone] = React.useState("");
const [p_affiche_indicateur, setp_affiche_indicateur] = React.useState(false);
const [p_affiche_raison_sociale, setp_affiche_raison_sociale] = React.useState(true);
const [p_affiche_contact, setp_affiche_contact] = React.useState(true);
const [p_indicateur1_text, setp_indicateur1_text] = React.useState("");
const [p_indicateur1_taille, setp_indicateur1_taille] = React.useState("12");
const [p_indicateur1_gras, setp_indicateur1_gras] = React.useState(false);
@ -3448,7 +3496,7 @@ function UpdateParnterInfo(props) {
<div className="div_row">
<div className="div_row" style={{ paddingTop: '10px' }}>
{String(is_partner_admin_account) !== "1" && <Button variant="outlined" onClick={submenu_donnee_entreprise} className="detail_submenu" id='submenu_donnee_entreprise' name='submenu_donnee_entreprise'>DONNEES PERSONNELLES</Button>}
{String(is_partner_admin_account) === "1" && <Button variant="outlined" onClick={submenu_donnee_entreprise} className="detail_submenu" id='submenu_donnee_entreprise' name='submenu_donnee_entreprise'>DONNEES ENTREPRISE</Button>}
@ -3625,6 +3673,23 @@ function UpdateParnterInfo(props) {
</div>}
</div>
<div className="titre1"> <b> Raison Sociale</b> </div>
<div className="div_row">
<div style={{ width: "100%", float: 'left', }}> <b> Afficher la raison sociale ? </b> &nbsp;
<Checkbox
name="afficher_indicateur"
// className="disabled_style"
checked={p_affiche_raison_sociale}
onChange={(e) => {
setp_affiche_raison_sociale(e.target.checked);
}}
/>
</div>
</div>
<div className="titre1"> <b> Slogan & accroches </b> </div>
<div className="div_row">
<div style={{ width: "70%", float: 'left', }}> <b> Text 1 </b> <br />
@ -3872,7 +3937,22 @@ function UpdateParnterInfo(props) {
<hr className="hr_break" />
<div className="titre1"> <b> Les indicateurs </b> </div>
<div className="titre1"> <b> Les indicateurs </b> </div>
<div className="div_row">
<div style={{ width: "100%", float: 'left', }}> <b> Afficher les indicateur ? </b> &nbsp;
<Checkbox
name="afficher_indicateur"
// className="disabled_style"
checked={p_affiche_indicateur}
onChange={(e) => {
setp_affiche_indicateur(e.target.checked);
}}
/>
</div>
</div>
<div className="div_row">
<div style={{ width: "70%", float: 'left', }}> <b> Text Indicateur 1 </b> <br />
@ -4199,6 +4279,19 @@ function UpdateParnterInfo(props) {
</div>
<div className="titre1"> <b> Contacts Publiques </b> </div>
<div className="div_row">
<div style={{ width: "100%", float: 'left', }}> <b> Afficher les contacts ? </b> &nbsp;
<Checkbox
name="afficher_contact"
// className="disabled_style"
checked={p_affiche_contact}
onChange={(e) => {
setp_affiche_contact(e.target.checked);
}}
/>
</div>
</div>
<div className="div_row">
<div style={{ width: "50%", float: 'left', }}> <b> Email </b> <br />
<TextField
@ -4244,7 +4337,20 @@ function UpdateParnterInfo(props) {
</div>
<div className="titre1"> <b> Raison Sociale</b> </div>
<div className="div_row">
<div style={{ width: "100%", float: 'left', }}> <b> Afficher la raison sociale ? </b> &nbsp;
<Checkbox
name="afficher_indicateur"
// className="disabled_style"
checked={p_affiche_raison_sociale}
/>
</div>
</div>
<div className="titre1"> <b> Slogan & accroches </b> </div>
<div className="div_row">
<div style={{ width: "70%", float: 'left', }} > <b> Text 1 </b> <br />
<TextField
@ -4450,7 +4556,18 @@ function UpdateParnterInfo(props) {
</div>
<div className="titre1"> <b> Les indicateurs </b> </div>
<div className="titre1"> <b> Les indicateurs </b> </div>
<div className="div_row">
<div style={{ width: "100%", float: 'left', }}> <b> Afficher les indicateurs ? </b> &nbsp;
<Checkbox
name="afficher_indicateur"
// className="disabled_style"
checked={p_affiche_indicateur}
/>
</div>
</div>
<div className="div_row">
<div style={{ width: "70%", float: 'left', }}> <b> Text Indicateur 1 </b> <br />
@ -4729,6 +4846,18 @@ function UpdateParnterInfo(props) {
</div>
<div className="titre1"> <b> Contacts Publiques </b> </div>
<div className="div_row">
<div style={{ width: "100%", float: 'left', }}> <b> Afficher les contacts ? </b> &nbsp;
<Checkbox
name="afficher_contact"
// className="disabled_style"
checked={p_affiche_contact}
/>
</div>
</div>
<div className="div_row">
<div style={{ width: "50%", float: 'left', }}> <b> Email </b> <br />
<TextField
@ -4762,7 +4891,7 @@ function UpdateParnterInfo(props) {
&nbsp;
</div>
{String(catalog_pub_config_edit) !== "1" && <div className="div_row_droite" style={{ "textAlign": 'right', fontFamily:'DM sans' }}>
{String(catalog_pub_config_edit) !== "1" && <div className="div_row_droite" style={{ "textAlign": 'right', fontFamily: 'DM sans' }}>
<Button variant="contained" className="bton_edit" onClick={Edit_Catalog_Config_Fields}>Editer
</Button>
@ -4771,14 +4900,14 @@ function UpdateParnterInfo(props) {
<div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
{String(catalog_pub_config_edit) === "1" && <div className="div_row_gauche" style={{ "textAlign": 'left', fontFamily:'DM sans' }}>
{String(catalog_pub_config_edit) === "1" && <div className="div_row_gauche" style={{ "textAlign": 'left', fontFamily: 'DM sans' }}>
<Button variant="contained" className="bton_enreg" onClick={Add_Update_Catalog_Pub_Theme}>Enregistrer les modifications
</Button>
</div>}
{String(catalog_pub_config_edit) === "1" && <div className="div_row_droite" style={{ "textAlign": 'right', fontFamily:'DM sans' }} >
{String(catalog_pub_config_edit) === "1" && <div className="div_row_droite" style={{ "textAlign": 'right', fontFamily: 'DM sans' }} >
<Button variant="contained" className="bton_annule" onClick={Annule_Edit_Catalog_Config_Fields}>Annuler
</Button>
</div>}
@ -4845,7 +4974,7 @@ function UpdateParnterInfo(props) {
<img src={Partner_Catalog_Pub_banniere} alt={""} className="img_bg_file_css" />
<br />
<br />
<Button variant="contained" className="btn_enreg" onClick={Delete_Catalog_Pub_Banniere_Img}>Supprimer Bannière
<Button variant="contained" className="btn_enreg" onClick={Delete_Catalog_Pub_Banniere_Img}>Supprimer Bannière
</Button>
</div>}
<div className="div_row"> Import Bannière <br />
@ -4866,7 +4995,7 @@ function UpdateParnterInfo(props) {
<a data-tooltip-id="tooltip_1" data-tooltip-html="Respecter ces critères vous aide à avoir un meilleur affichage">
<i> Important : Taille de la bannière : longueur entre 1500px et 1930px et largeur entre 150px et 195px, au format PNG <br />
<i> Important : Taille de la bannière : longueur entre 1500px et 1930px et largeur entre 400px et 650px, au format PNG <br />
Le nom du fichier ne contient que des caractères alphanumériques </i>
</a>
</nav>

View File

@ -1441,7 +1441,7 @@ const New_C_Detail_Formation_2025 = (props) => {
<img src={DetailTraining.img_url} alt="autre" className="mob_training_img" />
</div>}
</div>
<div style={{ width: '100%', float: 'left', height: '50px', marginBottom: '30px' }}>
@ -1654,7 +1654,7 @@ const New_C_Detail_Formation_2025 = (props) => {
</div>
</div>
< nav ref={myRef_informe} id="myRef_informe"> </nav>
{(String(inscritpion) === "2" || String(inscritpion) === "1") &&
@ -1890,7 +1890,7 @@ const New_C_Detail_Formation_2025 = (props) => {
</div>
</div>
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", borderRadius: '10px' }}>
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", borderRadius: '10px' }}>
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", marginTop: '1rem' }}>
{DetailTraining["pourqui"] && <div className="mob_info_page_title_desc_long_txt">
@ -1908,6 +1908,27 @@ const New_C_Detail_Formation_2025 = (props) => {
</div>
</div>
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", borderRadius: '10px' }}>
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", marginTop: '1rem' }}>
{DetailTraining["prerequis"] && <div className="mob_info_page_title_desc_long_txt">
<div className="mob_info_page_title_desc_title">
Pré-requis
</div>
{DetailTraining["prerequis"] && <div className="mob_info_page_title_desc_desc pourqui_block">
{parse(String(DetailTraining["prerequis"]))}
</div>
}
</div>}
</div>
</div>
<hr style={{ "width": "100%", border: "1px solid #E2E9FB", marginTop: '10px' }} />
<div style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', background: "#FFF", borderRadius: '10px' }}>
@ -2318,6 +2339,23 @@ const New_C_Detail_Formation_2025 = (props) => {
</div>
}
</div>}
<br />
{DetailTraining["prerequis"] && String(DetailTraining["prerequis"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">
<div className="block_info_page_pave_title_desc_title ">
Pré-requis
</div>
{DetailTraining["prerequis"] && <div className="block_info_page_pave_title_desc_desc objectif_block">
{parse(String(DetailTraining["prerequis"]))}
</div>
}
</div>}
<br />
{DetailTraining["plus_produit"] && String(DetailTraining["plus_produit"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">

View File

@ -400,7 +400,7 @@
}
.training_caract {
width: 48%;
width: 100%;
padding: 5px;
float: left;
}
@ -833,13 +833,13 @@
}
.training_caract {
width: 30%;
width: 50%;
padding: 5px;
float: left;
}
}
// end media

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
font-size: small;
color: #F5BB04;
font-style: italic;
}
}
.koUpdateData {
font-size: small;
@ -126,7 +126,7 @@
text-align: center;
margin-bottom: 0.8rem;
color: white;
cursor: pointer;
cursor: default;
font-style: italic;
background-color: gray;
font-weight: normal;
@ -344,7 +344,7 @@
text-align: center;
margin-bottom: 0.8rem;
color: white;
cursor: pointer;
cursor: default;
font-style: italic;
background-color: gray;
font-weight: normal;
@ -567,7 +567,7 @@
text-align: center;
margin-bottom: 0.8rem;
color: white;
cursor: pointer;
cursor: default;
font-style: italic;
background-color: gray;
font-weight: normal;
@ -803,7 +803,7 @@
text-align: center;
margin-bottom: 0.8rem;
color: white;
cursor: pointer;
cursor: default;
font-style: italic;
background-color: gray;
font-weight: normal;