06/02/2024 -20h

recette2
cherif 2024-02-06 20:12:01 +01:00
parent 58de212325
commit b0b17dbb26
3 changed files with 66 additions and 19 deletions

View File

@ -2944,7 +2944,6 @@ const DisplayPartnerSession = (props) => {
{ "id": "2", "label": "Apprentis", "value": "2" }, { "id": "2", "label": "Apprentis", "value": "2" },
{ "id": "3", "label": "Particuliers", "value": "3" }, { "id": "3", "label": "Particuliers", "value": "3" },
{ "id": "4", "label": "Rech. Emploi", "value": "4" }, { "id": "4", "label": "Rech. Emploi", "value": "4" },
] ]
const [myinscript_status, setmyinscript_status] = useState(""); const [myinscript_status, setmyinscript_status] = useState("");

View File

@ -17,7 +17,8 @@ import { Tooltip } from 'react-tooltip'
import add_plus from "../mysy_img/plus.png"; import add_plus from "../mysy_img/plus.png";
import excel_icone from "../mysy_img/excel_icone.png"; import excel_icone from "../mysy_img/excel_icone.png";
import participants from "../mysy_img/participants.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 Popup from 'reactjs-popup';
import 'reactjs-popup/dist/index.css'; import 'reactjs-popup/dist/index.css';
import { FcCancel, FcApproval, FcAcceptDatabase, FcPrint } from "react-icons/fc"; 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); //console.log(" In Update_One_Config_Data res.data.message r_class = " + res.data.message);
if (String(res.data.status) === String("true")) { if (String(res.data.status) === String("true")) {
setUpdate_One_Config_Data_api("true"); setUpdate_One_Config_Data_api("true");
setUpdate_One_Config_Data_result(res.data.message); setUpdate_One_Config_Data_result(res.data.message);
Getall_Parter_config_Points(); Getall_Parter_config_Points();
setp_detail_config_valeur(); setp_detail_config_valeur("");
setp_detail_config_point(); setp_detail_config_point("");
setConfig_data_changed(); setConfig_data_changed("");
setconfig_data_edit_mode(); setconfig_data_edit_mode("");
setdisplay_detail_config(); setdisplay_detail_config("");
alert(res.data.message); alert(res.data.message);
if (document.getElementById('myRef_head')) { 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 ( return (
<div className="partner_configuration_technique"> <div className="partner_configuration_technique">
{isLoading && <div className="loader-container"> {isLoading && <div className="loader-container">
@ -733,7 +750,6 @@ const Partner_Configuration_Technique = (props) => {
</DialogActions> </DialogActions>
</Dialog> </Dialog>
<h3> Votre configuration technique </h3> <h3> Votre configuration technique </h3>
@ -989,21 +1005,45 @@ const Partner_Configuration_Technique = (props) => {
</div> </div>
<div className="div_row" style={{ "border": "None" }}> <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"} <Button variant="outlined" onClick={"submenu_add_one_order"}
className="detail_class_submenu bton_add_session" className="detail_class_submenu bton_add_session"
id='menu_import_participant' name='menu_import_participant'>Ajout 1 Point de configuration &nbsp; id='menu_import_participant' name='menu_import_participant'>Ajout 1 Point de configuration &nbsp;
<img src={add_plus} alt="ajout commande" className="icon_plus" /> <img src={add_plus} alt="ajout commande" className="icon_plus" />
</Button> </Button>
</div> </div>*/}
</div> </div>
<div className="div_row" ref={myRef} id="myRef"> &nbsp;</div> <div className="div_row" ref={myRef} id="myRef"> &nbsp;</div>
</div> </div>
{String(display_detail_config) === "1" && <div className="div_row"> config_data_edit_mode = {config_data_edit_mode} <br/>
{String(config_data_edit_mode) === "1" &&
<div className="session_caract"> Point de configuration<br /> {display_detail_config && String(display_detail_config) === "1" && <div className="div_row">
<TextField {config_data_edit_mode && String(config_data_edit_mode) === "1" &&
<div className="session_caract"> Point de configuration<br />
<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 }, }} sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required required
name="detail_config_point" 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> <MenuItem value="partner_jour_heure" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Nb Heure par jour</MenuItem>
</TextField> </TextField>*/}
</div>} </div>}
{String(config_data_edit_mode) !== "1" && {String(config_data_edit_mode) !== "1" &&
@ -1283,7 +1323,7 @@ const Partner_Configuration_Technique = (props) => {
<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={() => { <Button variant="outlined" onClick={() => {
setp_type_client_code(''); setp_type_client_code('');
setp_type_client_desc(''); setp_type_client_desc('');
setselected_type_client_id(''); setselected_type_client_id('');

View File

@ -258,12 +258,14 @@
background: #c8cfd5; background: #c8cfd5;
color: black; color: black;
width: 100%; width: 100%;
height: 2rem !important;
} }
.bton_add_sous_menu { .bton_add_sous_menu {
background: #c8cfd5; background: #c8cfd5;
color: black; color: black;
width: 100%; width: 100%;
height: 2rem !important;
} }
.bton_import_excel { .bton_import_excel {
@ -705,7 +707,7 @@
border-radius: 5px; border-radius: 5px;
background: white; background: white;
border: solid gainsboro 1px; border: solid gainsboro 1px;
padding-left: 5px !important;
} }
.training_caract { .training_caract {
@ -830,12 +832,14 @@
background: #c8cfd5; background: #c8cfd5;
color: black; color: black;
width: 50%; width: 50%;
height: 2rem !important;
} }
.bton_add_sous_menu { .bton_add_sous_menu {
background: #c8cfd5; background: #c8cfd5;
color: black; color: black;
width: 100%; width: 100%;
height: 2rem !important;
} }
.bton_import_excel { .bton_import_excel {
@ -1300,7 +1304,7 @@
border-radius: 5px; border-radius: 5px;
background: white; background: white;
border: solid gainsboro 1px; border: solid gainsboro 1px;
padding-left: 5px !important;
} }
.training_caract { .training_caract {
@ -1429,12 +1433,14 @@
background: #c8cfd5; background: #c8cfd5;
color: black; color: black;
width: 40%; width: 40%;
height: 2rem !important;
} }
.bton_add_sous_menu { .bton_add_sous_menu {
background: #c8cfd5; background: #c8cfd5;
color: black; color: black;
width: 100%; width: 100%;
height: 2rem !important;
} }
.bton_import_excel { .bton_import_excel {
@ -1945,13 +1951,15 @@
.bton_add_session { .bton_add_session {
background: #c8cfd5; background: #c8cfd5;
color: black; color: black;
width: 25% !important; width: 40% !important;
height: 2rem !important;
} }
.bton_add_sous_menu { .bton_add_sous_menu {
background: #c8cfd5; background: #c8cfd5;
color: black; color: black;
width: 25% !important; width: 25% !important;
height: 2rem !important;
} }
.bton_import_excel { .bton_import_excel {