05/03/2025 - 18h
parent
f20f173e9d
commit
6283e86a8f
|
@ -504,11 +504,9 @@ const Module_Editique = (props) => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
|
|
||||||
setread_access_automatic_document_setup(props.check_user_acces_right("automatic_document_setup", "read"));
|
setread_access_automatic_document_setup(props.check_user_acces_right("automatic_document_setup", "read"));
|
||||||
setwrite_access_automatic_document_setup(props.check_user_acces_right("automatic_document_setup", "write"));
|
setwrite_access_automatic_document_setup(props.check_user_acces_right("automatic_document_setup", "write"));
|
||||||
|
|
||||||
|
|
||||||
Getall_Partner_Digital_Sign_Status();
|
Getall_Partner_Digital_Sign_Status();
|
||||||
setselected_session_id(props.related_collection_recid);
|
setselected_session_id(props.related_collection_recid);
|
||||||
Getall_Editable_Document_By_Partner_By_Collection();
|
Getall_Editable_Document_By_Partner_By_Collection();
|
||||||
|
@ -1266,6 +1264,7 @@ const Module_Editique = (props) => {
|
||||||
form.append("token", stored_cookie);
|
form.append("token", stored_cookie);
|
||||||
form.append("_id", selected_session_id);
|
form.append("_id", selected_session_id);
|
||||||
form.append("nb_jour_action", p_doc_automatic_setup_nb_jour);
|
form.append("nb_jour_action", p_doc_automatic_setup_nb_jour);
|
||||||
|
form.append("action_target_date", p_doc_automatic_setup_action_target_date);
|
||||||
form.append("actif", p_doc_automatic_setup_actif);
|
form.append("actif", p_doc_automatic_setup_actif);
|
||||||
form.append("courrier_template_type_document_id", p_doc_automatic_setup_courrier_template_type_document_id);
|
form.append("courrier_template_type_document_id", p_doc_automatic_setup_courrier_template_type_document_id);
|
||||||
|
|
||||||
|
@ -1454,12 +1453,16 @@ const Module_Editique = (props) => {
|
||||||
setp_doc_automatic_setup_nom_document("");
|
setp_doc_automatic_setup_nom_document("");
|
||||||
setp_doc_automatic_setup_courrier_template_type_document_ref_interne("");
|
setp_doc_automatic_setup_courrier_template_type_document_ref_interne("");
|
||||||
setp_doc_automatic_setup_courrier_template_type_document_id("");
|
setp_doc_automatic_setup_courrier_template_type_document_id("");
|
||||||
|
|
||||||
|
setp_doc_automatic_setup_action_target_date("");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const [edit_doc_automatic_setup, setedit_doc_automatic_setup] = useState("");
|
const [edit_doc_automatic_setup, setedit_doc_automatic_setup] = useState("");
|
||||||
const [is_modified_doc_automatic_setup, setis_modified_doc_automatic_setup] = useState("");
|
const [is_modified_doc_automatic_setup, setis_modified_doc_automatic_setup] = useState("");
|
||||||
|
|
||||||
|
const [p_doc_automatic_setup_action_target_date, setp_doc_automatic_setup_action_target_date] = useState("");
|
||||||
|
|
||||||
const [p_doc_automatic_setup_selected_id, setp_doc_automatic_setup_selected_id] = useState("");
|
const [p_doc_automatic_setup_selected_id, setp_doc_automatic_setup_selected_id] = useState("");
|
||||||
const [p_doc_automatic_setup_actif, setp_doc_automatic_setup_actif] = useState("");
|
const [p_doc_automatic_setup_actif, setp_doc_automatic_setup_actif] = useState("");
|
||||||
const [p_doc_automatic_setup_nb_jour, setp_doc_automatic_setup_nb_jour] = useState("");
|
const [p_doc_automatic_setup_nb_jour, setp_doc_automatic_setup_nb_jour] = useState("");
|
||||||
|
@ -1483,6 +1486,12 @@ const Module_Editique = (props) => {
|
||||||
setDialog_Acces_Right_open(false);
|
setDialog_Acces_Right_open(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const New_Option_Automatic_Doc_Action_Target = [
|
||||||
|
{ "id": "start_session", "label": "Date Début Session", "value": "start_session" },
|
||||||
|
{ "id": "end_session", "label": "Date Fin Session", "value": "end_session" },
|
||||||
|
{ "id": "", "label": "", "value": "" },
|
||||||
|
]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<div className="module_editique">
|
<div className="module_editique">
|
||||||
|
@ -1710,6 +1719,38 @@ const Module_Editique = (props) => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract_Dialog">
|
||||||
|
<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">
|
||||||
|
Cible <FcInfo />
|
||||||
|
</a> <br />
|
||||||
|
<Autocomplete
|
||||||
|
disablePortal
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 } }}
|
||||||
|
|
||||||
|
name="target_action_document"
|
||||||
|
id="target_action_document"
|
||||||
|
className="disabled_style"
|
||||||
|
options={New_Option_Automatic_Doc_Action_Target}
|
||||||
|
value={New_Option_Automatic_Doc_Action_Target.filter((data) => (data).value === String(p_doc_automatic_setup_action_target_date))[0].label}
|
||||||
|
|
||||||
|
onChange={(event, value) => {
|
||||||
|
setis_modified_doc_automatic_setup("1");
|
||||||
|
if (value && value.value) {
|
||||||
|
setp_doc_automatic_setup_action_target_date(value.value);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
setp_doc_automatic_setup_action_target_date("")
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||||
|
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||||
|
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="div_row" style={{ "border": "None" }}>
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -3018,9 +3059,65 @@ const Module_Editique = (props) => {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ display: "inline-block", width: "15%", textAlign: "center", paddingLeft: "0.5rem", "float": "left", height: "2.5rem", }}>
|
{String(read_access_automatic_document_setup) === "1" && Get_Given_Session_List_Automatic_Traitement_result && Get_Given_Session_List_Automatic_Traitement_result.map((x) => (
|
||||||
<SettingsSuggestIcon /> 11
|
<nav>
|
||||||
</div>
|
{x.courrier_template_type_document_ref_interne === String(JSON.parse(document).courrier_template_ref_interne) &&
|
||||||
|
<div style={{
|
||||||
|
display: "inline-block", width: "15%", textAlign: "center",
|
||||||
|
paddingLeft: "0.5rem", "float": "left", height: "2.5rem",
|
||||||
|
paddingTop: '10px',
|
||||||
|
cursor: 'pointer'
|
||||||
|
}}
|
||||||
|
onClick={(event) => {
|
||||||
|
|
||||||
|
|
||||||
|
if (String(write_access_automatic_document_setup) !== "1") {
|
||||||
|
setDialog_Access_Right_message("Vos droits ne sont pas suffisants pour accéder cette fonction");
|
||||||
|
setDialog_Acces_Right_open(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
setp_doc_automatic_setup_actif(String((x).actif));
|
||||||
|
setp_doc_automatic_setup_nb_jour(String((x).nb_jour_action));
|
||||||
|
setp_doc_automatic_setup_action_target_date(String((x).action_target_date));
|
||||||
|
setp_doc_automatic_setup_selected_id(String((x).courrier_template_type_document_id));
|
||||||
|
setp_doc_automatic_setup_nom_document(String((x).nom_document));
|
||||||
|
setp_doc_automatic_setup_courrier_template_type_document_ref_interne(String((x).courrier_template_type_document_ref_interne));
|
||||||
|
setp_doc_automatic_setup_courrier_template_type_document_id(String(x.courrier_template_type_document_id));
|
||||||
|
|
||||||
|
setaction_server_nom_doc(String(JSON.parse(document).courrier_template_nom))
|
||||||
|
setaction_server_ref_interne_doc(String(JSON.parse(document).courrier_template_ref_interne))
|
||||||
|
|
||||||
|
setDialog_Config_Doc_Automation_open(true);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
|
||||||
|
{x && String(x.actif) === "1" &&
|
||||||
|
<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}
|
||||||
|
data-tooltip-html={" Traitement Automatique : Oui <br/> Nb Jours : " + `${x.nb_jour_action}` + " <br/>Date Cible: " + `${x.action_target_date}`}>
|
||||||
|
|
||||||
|
<MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</nav>}
|
||||||
|
|
||||||
|
{x && String((x).actif) !== "1" &&
|
||||||
|
<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} data-tooltip-html={" Traitement Automatique : Non"}>
|
||||||
|
|
||||||
|
<MdFlashAuto style={{ fontSize: '25px', color: '#bbbbbb' }} />
|
||||||
|
</a>
|
||||||
|
</nav>}
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
))}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
@ -3147,9 +3244,65 @@ const Module_Editique = (props) => {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ display: "inline-block", width: "15%", textAlign: "center", paddingLeft: "0.5rem", "float": "left", height: "2.5rem", }}>
|
{String(read_access_automatic_document_setup) === "1" && Get_Given_Session_List_Automatic_Traitement_result && Get_Given_Session_List_Automatic_Traitement_result.map((x) => (
|
||||||
<SettingsSuggestIcon /> 22
|
<nav>
|
||||||
</div>
|
{x.courrier_template_type_document_ref_interne === String(JSON.parse(document).courrier_template_ref_interne) &&
|
||||||
|
<div style={{
|
||||||
|
display: "inline-block", width: "15%", textAlign: "center",
|
||||||
|
paddingLeft: "0.5rem", "float": "left", height: "2.5rem",
|
||||||
|
paddingTop: '10px',
|
||||||
|
cursor: 'pointer'
|
||||||
|
}}
|
||||||
|
onClick={(event) => {
|
||||||
|
|
||||||
|
|
||||||
|
if (String(write_access_automatic_document_setup) !== "1") {
|
||||||
|
setDialog_Access_Right_message("Vos droits ne sont pas suffisants pour accéder cette fonction");
|
||||||
|
setDialog_Acces_Right_open(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
setp_doc_automatic_setup_actif(String((x).actif));
|
||||||
|
setp_doc_automatic_setup_nb_jour(String((x).nb_jour_action));
|
||||||
|
setp_doc_automatic_setup_action_target_date(String((x).action_target_date));
|
||||||
|
setp_doc_automatic_setup_selected_id(String((x).courrier_template_type_document_id));
|
||||||
|
setp_doc_automatic_setup_nom_document(String((x).nom_document));
|
||||||
|
setp_doc_automatic_setup_courrier_template_type_document_ref_interne(String((x).courrier_template_type_document_ref_interne));
|
||||||
|
setp_doc_automatic_setup_courrier_template_type_document_id(String(x.courrier_template_type_document_id));
|
||||||
|
|
||||||
|
setaction_server_nom_doc(String(JSON.parse(document).courrier_template_nom))
|
||||||
|
setaction_server_ref_interne_doc(String(JSON.parse(document).courrier_template_ref_interne))
|
||||||
|
|
||||||
|
setDialog_Config_Doc_Automation_open(true);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
|
||||||
|
{x && String(x.actif) === "1" &&
|
||||||
|
<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}
|
||||||
|
data-tooltip-html={" Traitement Automatique : Oui <br/> Nb Jours : " + `${x.nb_jour_action}` + " <br/>Date Cible: " + `${x.action_target_date}`}>
|
||||||
|
|
||||||
|
<MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</nav>}
|
||||||
|
|
||||||
|
{x && String((x).actif) !== "1" &&
|
||||||
|
<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} data-tooltip-html={" Traitement Automatique : Non"}>
|
||||||
|
|
||||||
|
<MdFlashAuto style={{ fontSize: '25px', color: '#bbbbbb' }} />
|
||||||
|
</a>
|
||||||
|
</nav>}
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
))}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
@ -3274,7 +3427,7 @@ const Module_Editique = (props) => {
|
||||||
<ToggleSwitch_v3_mysy id="toggleSwitch" name="toggleSwitch" checked={false} mysy_type={(JSON.parse(document).statut_completude)} style={{ height: "1.5rem" }} />
|
<ToggleSwitch_v3_mysy id="toggleSwitch" name="toggleSwitch" checked={false} mysy_type={(JSON.parse(document).statut_completude)} style={{ height: "1.5rem" }} />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{Get_Given_Session_List_Automatic_Traitement_result && Get_Given_Session_List_Automatic_Traitement_result.map((x) => (
|
{String(read_access_automatic_document_setup) === "1" && Get_Given_Session_List_Automatic_Traitement_result && Get_Given_Session_List_Automatic_Traitement_result.map((x) => (
|
||||||
<nav>
|
<nav>
|
||||||
{x.courrier_template_type_document_ref_interne === String(JSON.parse(document).courrier_template_ref_interne) &&
|
{x.courrier_template_type_document_ref_interne === String(JSON.parse(document).courrier_template_ref_interne) &&
|
||||||
<div style={{
|
<div style={{
|
||||||
|
@ -3294,6 +3447,7 @@ const Module_Editique = (props) => {
|
||||||
|
|
||||||
setp_doc_automatic_setup_actif(String((x).actif));
|
setp_doc_automatic_setup_actif(String((x).actif));
|
||||||
setp_doc_automatic_setup_nb_jour(String((x).nb_jour_action));
|
setp_doc_automatic_setup_nb_jour(String((x).nb_jour_action));
|
||||||
|
setp_doc_automatic_setup_action_target_date(String((x).action_target_date));
|
||||||
setp_doc_automatic_setup_selected_id(String((x).courrier_template_type_document_id));
|
setp_doc_automatic_setup_selected_id(String((x).courrier_template_type_document_id));
|
||||||
setp_doc_automatic_setup_nom_document(String((x).nom_document));
|
setp_doc_automatic_setup_nom_document(String((x).nom_document));
|
||||||
setp_doc_automatic_setup_courrier_template_type_document_ref_interne(String((x).courrier_template_type_document_ref_interne));
|
setp_doc_automatic_setup_courrier_template_type_document_ref_interne(String((x).courrier_template_type_document_ref_interne));
|
||||||
|
@ -3309,9 +3463,10 @@ const Module_Editique = (props) => {
|
||||||
{x && String(x.actif) === "1" &&
|
{x && String(x.actif) === "1" &&
|
||||||
<nav>
|
<nav>
|
||||||
<Tooltip className="tooltip_css" id={x.courrier_template_type_document_id} style={{ textAlign: 'left' }} />
|
<Tooltip className="tooltip_css" id={x.courrier_template_type_document_id} style={{ textAlign: 'left' }} />
|
||||||
<a data-tooltip-id={x.courrier_template_type_document_id} data-tooltip-html={" Traitement Automatique : Oui <br/> Nb Jours : " + `${x.nb_jour_action}`}>
|
<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}`}>
|
||||||
|
|
||||||
<MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} /> 33
|
<MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
</nav>}
|
</nav>}
|
||||||
|
@ -3321,7 +3476,7 @@ const Module_Editique = (props) => {
|
||||||
<Tooltip className="tooltip_css" id={x.courrier_template_type_document_id} style={{ textAlign: 'left' }} />
|
<Tooltip className="tooltip_css" id={x.courrier_template_type_document_id} style={{ textAlign: 'left' }} />
|
||||||
<a data-tooltip-id={x.courrier_template_type_document_id} data-tooltip-html={" Traitement Automatique : Non"}>
|
<a data-tooltip-id={x.courrier_template_type_document_id} data-tooltip-html={" Traitement Automatique : Non"}>
|
||||||
|
|
||||||
<MdFlashAuto style={{ fontSize: '25px', color: '#bbbbbb' }} /> 33
|
<MdFlashAuto style={{ fontSize: '25px', color: '#bbbbbb' }} />
|
||||||
</a>
|
</a>
|
||||||
</nav>}
|
</nav>}
|
||||||
</div>}
|
</div>}
|
||||||
|
@ -3358,14 +3513,65 @@ const Module_Editique = (props) => {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{String(read_access_automatic_document_setup) === "1" && Get_Given_Session_List_Automatic_Traitement_result && Get_Given_Session_List_Automatic_Traitement_result.map((x) => (
|
||||||
|
<nav>
|
||||||
|
{x.courrier_template_type_document_ref_interne === String(JSON.parse(document).courrier_template_ref_interne) &&
|
||||||
<div style={{
|
<div style={{
|
||||||
display: "inline-block", width: "15%", textAlign: "center", paddingLeft: "0.5rem", "float": "left", height: "2.5rem",
|
display: "inline-block", width: "15%", textAlign: "center",
|
||||||
|
paddingLeft: "0.5rem", "float": "left", height: "2.5rem",
|
||||||
|
paddingTop: '10px',
|
||||||
cursor: 'pointer'
|
cursor: 'pointer'
|
||||||
}}
|
}}
|
||||||
|
onClick={(event) => {
|
||||||
|
|
||||||
|
|
||||||
|
if (String(write_access_automatic_document_setup) !== "1") {
|
||||||
|
setDialog_Access_Right_message("Vos droits ne sont pas suffisants pour accéder cette fonction");
|
||||||
|
setDialog_Acces_Right_open(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
setp_doc_automatic_setup_actif(String((x).actif));
|
||||||
|
setp_doc_automatic_setup_nb_jour(String((x).nb_jour_action));
|
||||||
|
setp_doc_automatic_setup_action_target_date(String((x).action_target_date));
|
||||||
|
setp_doc_automatic_setup_selected_id(String((x).courrier_template_type_document_id));
|
||||||
|
setp_doc_automatic_setup_nom_document(String((x).nom_document));
|
||||||
|
setp_doc_automatic_setup_courrier_template_type_document_ref_interne(String((x).courrier_template_type_document_ref_interne));
|
||||||
|
setp_doc_automatic_setup_courrier_template_type_document_id(String(x.courrier_template_type_document_id));
|
||||||
|
|
||||||
|
setaction_server_nom_doc(String(JSON.parse(document).courrier_template_nom))
|
||||||
|
setaction_server_ref_interne_doc(String(JSON.parse(document).courrier_template_ref_interne))
|
||||||
|
|
||||||
|
setDialog_Config_Doc_Automation_open(true);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<SettingsSuggestIcon /> 44
|
|
||||||
</div>
|
{x && String(x.actif) === "1" &&
|
||||||
|
<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}
|
||||||
|
data-tooltip-html={" Traitement Automatique : Oui <br/> Nb Jours : " + `${x.nb_jour_action}` + " <br/>Date Cible: " + `${x.action_target_date}`}>
|
||||||
|
|
||||||
|
<MdFlashAuto style={{ fontSize: '25px', color: '#218e1f' }} />
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</nav>}
|
||||||
|
|
||||||
|
{x && String((x).actif) !== "1" &&
|
||||||
|
<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} data-tooltip-html={" Traitement Automatique : Non"}>
|
||||||
|
|
||||||
|
<MdFlashAuto style={{ fontSize: '25px', color: '#bbbbbb' }} />
|
||||||
|
</a>
|
||||||
|
</nav>}
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
))}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue