06/02/2024 -20h
parent
58de212325
commit
b0b17dbb26
|
@ -2944,7 +2944,6 @@ const DisplayPartnerSession = (props) => {
|
|||
{ "id": "2", "label": "Apprentis", "value": "2" },
|
||||
{ "id": "3", "label": "Particuliers", "value": "3" },
|
||||
{ "id": "4", "label": "Rech. Emploi", "value": "4" },
|
||||
|
||||
]
|
||||
|
||||
const [myinscript_status, setmyinscript_status] = useState("");
|
||||
|
|
|
@ -17,7 +17,8 @@ import { Tooltip } from 'react-tooltip'
|
|||
import add_plus from "../mysy_img/plus.png";
|
||||
import excel_icone from "../mysy_img/excel_icone.png";
|
||||
import participants from "../mysy_img/participants.png";
|
||||
import fileDownload from 'js-file-download'
|
||||
import fileDownload from 'js-file-download';
|
||||
import Autocomplete from '@mui/material/Autocomplete';
|
||||
import Popup from 'reactjs-popup';
|
||||
import 'reactjs-popup/dist/index.css';
|
||||
import { FcCancel, FcApproval, FcAcceptDatabase, FcPrint } from "react-icons/fc";
|
||||
|
@ -448,16 +449,19 @@ const Partner_Configuration_Technique = (props) => {
|
|||
//console.log(" In Update_One_Config_Data res.data.message r_class = " + res.data.message);
|
||||
|
||||
if (String(res.data.status) === String("true")) {
|
||||
|
||||
|
||||
|
||||
setUpdate_One_Config_Data_api("true");
|
||||
setUpdate_One_Config_Data_result(res.data.message);
|
||||
|
||||
Getall_Parter_config_Points();
|
||||
|
||||
setp_detail_config_valeur();
|
||||
setp_detail_config_point();
|
||||
setConfig_data_changed();
|
||||
setconfig_data_edit_mode();
|
||||
setdisplay_detail_config();
|
||||
setp_detail_config_valeur("");
|
||||
setp_detail_config_point("");
|
||||
setConfig_data_changed("");
|
||||
setconfig_data_edit_mode("");
|
||||
setdisplay_detail_config("");
|
||||
|
||||
alert(res.data.message);
|
||||
if (document.getElementById('myRef_head')) {
|
||||
|
@ -637,6 +641,19 @@ const Partner_Configuration_Technique = (props) => {
|
|||
}
|
||||
|
||||
|
||||
const New_Config_Point = [
|
||||
{ "id": "tva", "label": "tva", "value": "tva" },
|
||||
{ "id": "smtp_server", "label": "smtp_server", "value": "smtp_server" },
|
||||
{ "id": "smtp_user", "label": "smtp_user", "value": "smtp_user" },
|
||||
{ "id": "smtp_count_from_name", "label": "smtp_count_from_name", "value": "smtp_count_from_name" },
|
||||
{ "id": "smtp_count_port", "label": "smtp_count_port", "value": "smtp_count_port" },
|
||||
{ "id": "partner_smtp", "label": "partner_smtp", "value": "partner_smtp" },
|
||||
{ "id": "partner_jour_heure", "label": "partner_jour_heure", "value": "partner_jour_heure" },
|
||||
{ "id": "partner_devise", "label": "partner_devise", "value": "partner_devise" },
|
||||
{ "id": "", "label": "", "value": "" },
|
||||
|
||||
]
|
||||
|
||||
return (
|
||||
<div className="partner_configuration_technique">
|
||||
{isLoading && <div className="loader-container">
|
||||
|
@ -733,7 +750,6 @@ const Partner_Configuration_Technique = (props) => {
|
|||
|
||||
</DialogActions>
|
||||
|
||||
|
||||
</Dialog>
|
||||
|
||||
<h3> Votre configuration technique </h3>
|
||||
|
@ -989,21 +1005,45 @@ const Partner_Configuration_Technique = (props) => {
|
|||
</div>
|
||||
<div className="div_row" style={{ "border": "None" }}>
|
||||
|
||||
<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
{/*<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
<Button variant="outlined" onClick={"submenu_add_one_order"}
|
||||
className="detail_class_submenu bton_add_session"
|
||||
id='menu_import_participant' name='menu_import_participant'>Ajout 1 Point de configuration
|
||||
<img src={add_plus} alt="ajout commande" className="icon_plus" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>*/}
|
||||
</div>
|
||||
<div className="div_row" ref={myRef} id="myRef"> </div>
|
||||
</div>
|
||||
|
||||
{String(display_detail_config) === "1" && <div className="div_row">
|
||||
{String(config_data_edit_mode) === "1" &&
|
||||
config_data_edit_mode = {config_data_edit_mode} <br/>
|
||||
|
||||
{display_detail_config && String(display_detail_config) === "1" && <div className="div_row">
|
||||
{config_data_edit_mode && String(config_data_edit_mode) === "1" &&
|
||||
<div className="session_caract"> Point de configuration<br />
|
||||
<TextField
|
||||
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
name="detail_config_point"
|
||||
id="detail_config_point"
|
||||
className="disabled_style"
|
||||
value={New_Config_Point.filter((data) => (data).label === String(p_detail_config_point))[0].label}
|
||||
options={New_Config_Point}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_detail_config_point(value.value);
|
||||
setConfig_data_changed("1");
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" />
|
||||
}
|
||||
/>
|
||||
|
||||
|
||||
{/*<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="detail_config_point"
|
||||
|
@ -1032,7 +1072,7 @@ const Partner_Configuration_Technique = (props) => {
|
|||
|
||||
<MenuItem value="partner_jour_heure" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Nb Heure par jour</MenuItem>
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
|
||||
</div>}
|
||||
{String(config_data_edit_mode) !== "1" &&
|
||||
|
|
|
@ -258,12 +258,14 @@
|
|||
background: #c8cfd5;
|
||||
color: black;
|
||||
width: 100%;
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
.bton_add_sous_menu {
|
||||
background: #c8cfd5;
|
||||
color: black;
|
||||
width: 100%;
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
.bton_import_excel {
|
||||
|
@ -705,7 +707,7 @@
|
|||
border-radius: 5px;
|
||||
background: white;
|
||||
border: solid gainsboro 1px;
|
||||
padding-left: 5px !important;
|
||||
|
||||
}
|
||||
|
||||
.training_caract {
|
||||
|
@ -830,12 +832,14 @@
|
|||
background: #c8cfd5;
|
||||
color: black;
|
||||
width: 50%;
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
.bton_add_sous_menu {
|
||||
background: #c8cfd5;
|
||||
color: black;
|
||||
width: 100%;
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
.bton_import_excel {
|
||||
|
@ -1300,7 +1304,7 @@
|
|||
border-radius: 5px;
|
||||
background: white;
|
||||
border: solid gainsboro 1px;
|
||||
padding-left: 5px !important;
|
||||
|
||||
}
|
||||
|
||||
.training_caract {
|
||||
|
@ -1429,12 +1433,14 @@
|
|||
background: #c8cfd5;
|
||||
color: black;
|
||||
width: 40%;
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
.bton_add_sous_menu {
|
||||
background: #c8cfd5;
|
||||
color: black;
|
||||
width: 100%;
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
.bton_import_excel {
|
||||
|
@ -1945,13 +1951,15 @@
|
|||
.bton_add_session {
|
||||
background: #c8cfd5;
|
||||
color: black;
|
||||
width: 25% !important;
|
||||
width: 40% !important;
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
.bton_add_sous_menu {
|
||||
background: #c8cfd5;
|
||||
color: black;
|
||||
width: 25% !important;
|
||||
height: 2rem !important;
|
||||
}
|
||||
|
||||
.bton_import_excel {
|
||||
|
|
Loading…
Reference in New Issue