26/02/2024 - 16h30
parent
6bd73c5ad0
commit
03856f0380
|
@ -6448,10 +6448,10 @@ const DisplayPartnerSession = (props) => {
|
|||
const [p_filtre2_value, setp_filtre2_value] = useState("");
|
||||
|
||||
function clean_all_filters() {
|
||||
setp_filtre1();
|
||||
setp_filtre1_value();
|
||||
setp_filtre2();
|
||||
setp_filtre2_value();
|
||||
setp_filtre1("");
|
||||
setp_filtre1_value("");
|
||||
setp_filtre2("");
|
||||
setp_filtre2_value("");
|
||||
setgridline_id('');
|
||||
|
||||
setsequence_gridline_id("");
|
||||
|
|
|
@ -63,17 +63,17 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
const [selectionModel, setSelectionModel] = React.useState([]);
|
||||
|
||||
|
||||
const [p_filtre1, setp_filtre1] = useState();
|
||||
const [p_filtre1_value, setp_filtre1_value] = useState();
|
||||
const [p_filtre1, setp_filtre1] = useState("");
|
||||
const [p_filtre1_value, setp_filtre1_value] = useState("");
|
||||
|
||||
const [p_filtre2, setp_filtre2] = useState();
|
||||
const [p_filtre2_value, setp_filtre2_value] = useState();
|
||||
const [p_filtre2, setp_filtre2] = useState("");
|
||||
const [p_filtre2_value, setp_filtre2_value] = useState("");
|
||||
|
||||
const [p_filtre3, setp_filtre3] = useState();
|
||||
const [p_filtre3_value, setp_filtre3_value] = useState();
|
||||
const [p_filtre3, setp_filtre3] = useState("");
|
||||
const [p_filtre3_value, setp_filtre3_value] = useState("");
|
||||
|
||||
const [p_filtre4, setp_filtre4] = useState();
|
||||
const [p_filtre4_value, setp_filtre4_value] = useState();
|
||||
const [p_filtre4, setp_filtre4] = useState("");
|
||||
const [p_filtre4_value, setp_filtre4_value] = useState("");
|
||||
|
||||
const filters = [
|
||||
{ value: 'code_session', label: 'Code Session' },
|
||||
|
@ -678,17 +678,17 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
|
||||
|
||||
function clean_all_filters() {
|
||||
setp_filtre1();
|
||||
setp_filtre1_value();
|
||||
setp_filtre1("");
|
||||
setp_filtre1_value("");
|
||||
|
||||
setp_filtre2();
|
||||
setp_filtre2_value();
|
||||
setp_filtre2("");
|
||||
setp_filtre2_value("");
|
||||
|
||||
setp_filtre3();
|
||||
setp_filtre3_value();
|
||||
setp_filtre3("");
|
||||
setp_filtre3_value("");
|
||||
|
||||
setp_filtre4();
|
||||
setp_filtre4_value();
|
||||
setp_filtre4("");
|
||||
setp_filtre4_value("");
|
||||
|
||||
setgridline_id('');
|
||||
setselected_row_data_json_age('');
|
||||
|
@ -5370,6 +5370,16 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
|
||||
]
|
||||
|
||||
const New_Option_Filter = [
|
||||
{ "id": "email", "label": "Email ", "value": "email" },
|
||||
{ "id": "nom", "label": "Nom ", "value": "nom" },
|
||||
{ "id": "code_session", "label": "Code Session", "value": "code_session" },
|
||||
{ "id": "class_title", "label": "Titre Formation", "value": "class_title" },
|
||||
{ "id": "client_nom", "label": "Lié au Client (nom client) ", "value": "client_nom" },
|
||||
{ "id": "", "label": "", "value": "" },
|
||||
{ "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres.
|
||||
]
|
||||
|
||||
|
||||
return (
|
||||
<div className="displaypartnerstagiaire">
|
||||
|
@ -6266,7 +6276,29 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<div className="titre1"> Utilisez les filtres !</div>
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
<div className="div_row_gauche texte_area_filter" >
|
||||
<TextField
|
||||
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="filtre1"
|
||||
id="filtre1"
|
||||
className="disabled_style"
|
||||
value={New_Option_Filter.filter((data) => (data).value === String(p_filtre1))[0].label}
|
||||
options={New_Option_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_filtre1(value.value);
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
{/*<TextField
|
||||
name="filtre1"
|
||||
label="Choisir un champ"
|
||||
select
|
||||
|
@ -6284,7 +6316,7 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<MenuItem value="client_nom" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Lié au Client (nom client) </MenuItem>
|
||||
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -6333,8 +6365,8 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<Tooltip className="tooltip_css" id="my-tooltip02" style={{ "fontSize": "12px" }} />
|
||||
<a data-tooltip-id="my-tooltip02" data-tooltip-html="Supprimer cette ligne de filtre">
|
||||
<MdRemoveCircleOutline onClick={(e) => {
|
||||
setp_filtre1();
|
||||
setp_filtre1_value();
|
||||
setp_filtre1("");
|
||||
setp_filtre1_value("");
|
||||
}}
|
||||
/>
|
||||
</a>
|
||||
|
@ -6346,7 +6378,30 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
{p_filtre2 &&
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
<div className="div_row_gauche texte_area_filter">
|
||||
<TextField
|
||||
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="filtre2"
|
||||
id="filtre2"
|
||||
className="disabled_style"
|
||||
value={New_Option_Filter.filter((data) => (data).value === String(p_filtre2))[0].label}
|
||||
options={New_Option_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_filtre2(value.value);
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
|
||||
{/*<TextField
|
||||
name="filtre2"
|
||||
label="Choisir un champ"
|
||||
select
|
||||
|
@ -6365,7 +6420,7 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<MenuItem value="client_nom" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Lié au Client (nom client) </MenuItem>
|
||||
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
</div>
|
||||
<div className="div_row_droite texte_area_filter_value" style={{ "marginTop": "0.5rem" }}>
|
||||
{String(p_filtre2).length > 2 &&
|
||||
|
@ -6414,8 +6469,8 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<a data-tooltip-id="my-tooltip04" data-tooltip-html="Supprimer cette ligne de filtre">
|
||||
<MdRemoveCircleOutline
|
||||
onClick={(e) => {
|
||||
setp_filtre2();
|
||||
setp_filtre2_value();
|
||||
setp_filtre2("");
|
||||
setp_filtre2_value("");
|
||||
}}
|
||||
/>
|
||||
</a>
|
||||
|
@ -6428,7 +6483,31 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
{p_filtre3 &&
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
<div className="div_row_gauche texte_area_filter">
|
||||
<TextField
|
||||
|
||||
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="filtre3"
|
||||
id="filtre3"
|
||||
className="disabled_style"
|
||||
value={New_Option_Filter.filter((data) => (data).value === String(p_filtre3))[0].label}
|
||||
options={New_Option_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_filtre3(value.value);
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
|
||||
{/*<TextField
|
||||
name="filtre3"
|
||||
label="Choisir un champ"
|
||||
select
|
||||
|
@ -6446,7 +6525,7 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<MenuItem value="client_nom" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Lié au Client (nom client) </MenuItem>
|
||||
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
</div>
|
||||
<div className="div_row_droite texte_area_filter_value" style={{ "marginTop": "0.5rem" }}>
|
||||
{String(p_filtre3).length > 2 &&
|
||||
|
@ -6494,8 +6573,8 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<Tooltip className="tooltip_css" id="my-tooltip05" style={{ "fontSize": "12px" }} />
|
||||
<a data-tooltip-id="my-tooltip05" data-tooltip-html="Supprimer cette ligne de filtre">
|
||||
<MdRemoveCircleOutline onClick={(e) => {
|
||||
setp_filtre3();
|
||||
setp_filtre3_value();
|
||||
setp_filtre3("");
|
||||
setp_filtre3_value("");
|
||||
}} />
|
||||
</a>
|
||||
</div>}
|
||||
|
@ -6505,7 +6584,32 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
{p_filtre4 &&
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
<div className="div_row_gauche texte_area_filter">
|
||||
<TextField
|
||||
|
||||
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="filtre4"
|
||||
id="filtre4"
|
||||
className="disabled_style"
|
||||
value={New_Option_Filter.filter((data) => (data).value === String(p_filtre4))[0].label}
|
||||
options={New_Option_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_filtre4(value.value);
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
|
||||
|
||||
{/*<TextField
|
||||
name="filtre4"
|
||||
label="Choisir un champ"
|
||||
select
|
||||
|
@ -6523,7 +6627,7 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<MenuItem value="client_nom" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Lié au Client (nom client) </MenuItem>
|
||||
|
||||
|
||||
</TextField>
|
||||
</TextField> */}
|
||||
</div>
|
||||
<div className="div_row_droite texte_area_filter_value" style={{ "marginTop": "0.5rem" }}>
|
||||
{String(p_filtre4).length > 2 &&
|
||||
|
@ -6562,8 +6666,8 @@ const DisplayPartnerStagiaires = (props) => {
|
|||
<a data-tooltip-id="my-tooltip04" data-tooltip-html="Supprimer cette ligne de filtre">
|
||||
<MdRemoveCircleOutline
|
||||
onClick={(e) => {
|
||||
setp_filtre4();
|
||||
setp_filtre4_value();
|
||||
setp_filtre4("");
|
||||
setp_filtre4_value("");
|
||||
}}
|
||||
/>
|
||||
</a>
|
||||
|
|
|
@ -410,8 +410,10 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
{ field: 'url', headerName: 'lien', minWidth: 20, hideable: true, hide: true, editable: false, },
|
||||
{ field: 'description', headerName: 'Description', hide: true, resizable: true, minWidth: 250, maxWidth: 300, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
|
||||
{ field: 'price', headerName: 'Prix', minWidth: 50, flex: 1, maxWidth: 100, align: "center", resizable: true, hide: ismobilephone_columns_hide, editable: false,
|
||||
renderCell: (params) => <Display_Colunm_text {...params} />, },
|
||||
{
|
||||
field: 'price', headerName: 'Prix', minWidth: 50, flex: 1, maxWidth: 100, align: "center", resizable: true, hide: ismobilephone_columns_hide, editable: false,
|
||||
renderCell: (params) => <Display_Colunm_text {...params} />,
|
||||
},
|
||||
{
|
||||
field: 'published', headerName: 'Publié', minWidth: 50, flex: 1, maxWidth: 100, align: "center", resizable: true, editable: false,
|
||||
|
||||
|
@ -1237,23 +1239,23 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
})
|
||||
}
|
||||
|
||||
const [p_filtre1, setp_filtre1] = useState();
|
||||
const [p_filtre1_value, setp_filtre1_value] = useState();
|
||||
const [p_filtre1, setp_filtre1] = useState("");
|
||||
const [p_filtre1_value, setp_filtre1_value] = useState("");
|
||||
|
||||
const [p_filtre2, setp_filtre2] = useState();
|
||||
const [p_filtre2_value, setp_filtre2_value] = useState();
|
||||
const [p_filtre2, setp_filtre2] = useState("");
|
||||
const [p_filtre2_value, setp_filtre2_value] = useState("");
|
||||
|
||||
const [p_filtre3, setp_filtre3] = useState();
|
||||
const [p_filtre3_value, setp_filtre3_value] = useState();
|
||||
const [p_filtre3, setp_filtre3] = useState("");
|
||||
const [p_filtre3_value, setp_filtre3_value] = useState("");
|
||||
|
||||
function clean_all_filters() {
|
||||
setp_filtre1();
|
||||
setp_filtre1_value();
|
||||
setp_filtre2();
|
||||
setp_filtre2_value();
|
||||
setp_filtre1("");
|
||||
setp_filtre1_value("");
|
||||
setp_filtre2("");
|
||||
setp_filtre2_value("");
|
||||
|
||||
setp_filtre3();
|
||||
setp_filtre3_value();
|
||||
setp_filtre3("");
|
||||
setp_filtre3_value("");
|
||||
GetAllClass_new_no_filter();
|
||||
}
|
||||
|
||||
|
@ -1460,6 +1462,14 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
{ "id": "4", "label": "Supprimer", "value": "supprimer" },
|
||||
]
|
||||
|
||||
const New_Option_Filter = [
|
||||
{ "id": "external_code", "label": "Code externe formation", "value": "external_code" },
|
||||
{ "id": "title", "label": "Titre Formation ", "value": "title" },
|
||||
{ "id": "certif", "label": "Certifiée", "value": "certif" },
|
||||
{ "id": "", "label": "", "value": "" },
|
||||
{ "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres.
|
||||
]
|
||||
|
||||
return (
|
||||
|
||||
<div className='displaypartnertrainingpagination'>
|
||||
|
@ -1633,7 +1643,28 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
<div className="titre1"> Utilisez les filtres !</div>
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
<div className="div_row_gauche texte_area_filter" >
|
||||
<TextField
|
||||
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="filtre1"
|
||||
id="filtre1"
|
||||
className="disabled_style"
|
||||
value={New_Option_Filter.filter((data) => (data).value === String(p_filtre1))[0].label}
|
||||
options={New_Option_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_filtre1(value.value);
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
{/*<TextField
|
||||
name="filtre1"
|
||||
label="Choisir un champ"
|
||||
select
|
||||
|
@ -1647,7 +1678,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
<MenuItem value="title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
||||
<MenuItem value="certif" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Certifiée </MenuItem>
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
</div>
|
||||
<div className="div_row_droite texte_area_filter_value" >
|
||||
{p_filtre1 &&
|
||||
|
@ -1692,20 +1723,40 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
<Tooltip className="tooltip_css" id="my-tooltip02" style={{ "fontSize": "12px" }} />
|
||||
<a data-tooltip-id="my-tooltip02" data-tooltip-html="Supprimer cette ligne de filtre">
|
||||
<MdRemoveCircleOutline onClick={(e) => {
|
||||
setp_filtre1();
|
||||
setp_filtre1_value();
|
||||
setp_filtre1("");
|
||||
setp_filtre1_value("");
|
||||
}}
|
||||
/>
|
||||
</a>
|
||||
</div>}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{p_filtre2 &&
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
<div className="div_row_gauche texte_area_filter">
|
||||
<TextField
|
||||
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="filtre2"
|
||||
id="filtre2"
|
||||
className="disabled_style"
|
||||
value={New_Option_Filter.filter((data) => (data).value === String(p_filtre2))[0].label}
|
||||
options={New_Option_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_filtre2(value.value);
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
{/*<TextField
|
||||
name="filtre2"
|
||||
label="Choisir un champ"
|
||||
select
|
||||
|
@ -1721,7 +1772,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
<MenuItem value="title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
||||
<MenuItem value="certif" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Certifiée </MenuItem>
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
</div>
|
||||
<div className="div_row_droite texte_area_filter_value" style={{ "marginTop": "0.5rem" }}>
|
||||
{String(p_filtre2).length > 3 &&
|
||||
|
@ -1769,8 +1820,8 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
<a data-tooltip-id="my-tooltip04" data-tooltip-html="Supprimer cette ligne de filtre">
|
||||
<MdRemoveCircleOutline
|
||||
onClick={(e) => {
|
||||
setp_filtre2();
|
||||
setp_filtre2_value();
|
||||
setp_filtre2("");
|
||||
setp_filtre2_value("");
|
||||
}}
|
||||
/>
|
||||
</a>
|
||||
|
@ -1783,7 +1834,30 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
{p_filtre3 &&
|
||||
<div className="div_row" style={{ "marginBottom": "5px" }}>
|
||||
<div className="div_row_gauche texte_area_filter">
|
||||
<TextField
|
||||
|
||||
{New_Option_Filter && New_Option_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="filtre3"
|
||||
id="filtre3"
|
||||
className="disabled_style"
|
||||
value={New_Option_Filter.filter((data) => (data).value === String(p_filtre3))[0].label}
|
||||
options={New_Option_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
setp_filtre3(value.value);
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
{/* <TextField
|
||||
name="filtre3"
|
||||
label="Choisir un champ"
|
||||
select
|
||||
|
@ -1799,7 +1873,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
<MenuItem value="title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
||||
<MenuItem value="certif" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Certifiée </MenuItem>
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
</div>
|
||||
<div className="div_row_droite texte_area_filter_value" style={{ "marginTop": "0.5rem" }}>
|
||||
{String(p_filtre3).length > 3 &&
|
||||
|
@ -1835,8 +1909,8 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
<Tooltip className="tooltip_css" id="my-tooltip05" style={{ "fontSize": "12px" }} />
|
||||
<a data-tooltip-id="my-tooltip05" data-tooltip-html="Supprimer cette ligne de filtre">
|
||||
<MdRemoveCircleOutline onClick={(e) => {
|
||||
setp_filtre3();
|
||||
setp_filtre3_value();
|
||||
setp_filtre3("");
|
||||
setp_filtre3_value("");
|
||||
}} />
|
||||
</a>
|
||||
</div>}
|
||||
|
|
|
@ -1156,6 +1156,7 @@ const Partner_Commande = (props) => {
|
|||
var local_id = JSON.parse(x)._id;
|
||||
var local_nom = JSON.parse(x).nom;
|
||||
var local_raison_sociale = JSON.parse(x).raison_sociale;
|
||||
var local_cond_paiement_id = JSON.parse(x).invoice_condition_paiement_id;
|
||||
|
||||
//---
|
||||
var node = {
|
||||
|
@ -1164,6 +1165,7 @@ const Partner_Commande = (props) => {
|
|||
"label": local_nom,
|
||||
"nom": local_nom,
|
||||
"raison_sociale": local_raison_sociale,
|
||||
"invoice_condition_paiement_id": local_cond_paiement_id,
|
||||
|
||||
};
|
||||
new_data2.push(node);
|
||||
|
@ -1538,7 +1540,7 @@ const Partner_Commande = (props) => {
|
|||
const [p_detail_header_vendeur_nom_id, setp_detail_header_vendeur_nom_id] = useState();
|
||||
|
||||
const [p_detail_header_type, setp_detail_header_type] = useState();
|
||||
const [p_detail_header_statut, setp_detail_header_statut] = useState();
|
||||
const [p_detail_header_statut, setp_detail_header_statut] = useState("");
|
||||
const [p_detail_header_vendeur_id, setp_detail_header_vendeur_id] = useState();
|
||||
const [p_detail_header_client_id, setp_detail_header_client_id] = useState();
|
||||
const [p_detail_header_statut_label, setp_detail_header_statut_label] = useState();
|
||||
|
@ -2421,6 +2423,7 @@ const Partner_Commande = (props) => {
|
|||
//setOpen(false);
|
||||
};
|
||||
|
||||
const [client_selected_paiement_ction_id, setclient_selected_paiement_ction_id] = useState("");
|
||||
|
||||
const [p_add_cmd_header_client_id, setp_add_cmd_header_client_id] = useState("");
|
||||
const [p_add_cmd_header_description, setp_add_cmd_header_description] = useState("");
|
||||
|
@ -2431,7 +2434,7 @@ const Partner_Commande = (props) => {
|
|||
const [p_add_cmd_header_date_cmd, setp_add_cmd_header_date_cmd] = useState(new Date().toLocaleDateString('fr-FR'));
|
||||
const [p_add_cmd_header_date_expiration_cmd, setp_add_cmd_header_date_expiration_cmd] = useState(date_today_90j.toLocaleDateString('fr-FR'));
|
||||
const [p_add_cmd_header_order_type, setp_add_cmd_header_order_type] = useState("");
|
||||
const [p_add_cmd_header_order_location_type, setp_add_cmd_header_order_location_type] = useState("");
|
||||
const [p_add_cmd_header_order_location_type, setp_add_cmd_header_order_location_type] = useState("1");
|
||||
const [p_add_cmd_header_ref_client, setp_add_cmd_header_ref_client] = useState("");
|
||||
const [p_add_cmd_header_condition_paiement_id, setp_add_cmd_header_condition_paiement_id] = useState("");
|
||||
|
||||
|
@ -2444,7 +2447,7 @@ const Partner_Commande = (props) => {
|
|||
setp_add_cmd_header_date_cmd(new Date().toLocaleDateString('fr-FR'));
|
||||
setp_add_cmd_header_date_expiration_cmd(date_today_90j.toLocaleDateString('fr-FR'));
|
||||
setp_add_cmd_header_order_type();
|
||||
setp_add_cmd_header_order_location_type();
|
||||
setp_add_cmd_header_order_location_type("1");
|
||||
|
||||
setp_add_cmd_header_ref_client();
|
||||
setp_add_cmd_header_condition_paiement_id("");
|
||||
|
@ -3139,6 +3142,22 @@ const Partner_Commande = (props) => {
|
|||
}
|
||||
|
||||
|
||||
const New_Status_Filter = [
|
||||
{ "id": "0", "label": "Brouillon ", "value": "0" },
|
||||
{ "id": "1", "label": "En cours ", "value": "1" },
|
||||
{ "id": "2", "label": "Traité", "value": "2" },
|
||||
{ "id": "-1", "label": "Annulé", "value": "-1" },
|
||||
{ "id": "", "label": "", "value": "" },
|
||||
{ "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres.
|
||||
]
|
||||
|
||||
|
||||
const New_Emplacement_Filter = [
|
||||
{ "id": "inter", "label": "Inter ", "value": "inter" },
|
||||
{ "id": "intra", "label": "Intra ", "value": "intra" },
|
||||
{ "id": "", "label": "", "value": "" },
|
||||
{ "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres.
|
||||
]
|
||||
|
||||
return (
|
||||
|
||||
|
@ -3592,6 +3611,8 @@ const Partner_Commande = (props) => {
|
|||
|
||||
setp_add_cmd_header_client_id(value._id);
|
||||
Get_Givent_Partner_Client_Data(value._id);
|
||||
setclient_selected_paiement_ction_id(value.invoice_condition_paiement_id);
|
||||
setp_add_cmd_header_condition_paiement_id(value.invoice_condition_paiement_id);
|
||||
|
||||
}
|
||||
|
||||
|
@ -3741,13 +3762,14 @@ const Partner_Commande = (props) => {
|
|||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" > Conditions Paiement <br />
|
||||
|
||||
{New_Getall_Partner_Paiement_Condition_result && New_Getall_Partner_Paiement_Condition_result.length > 0 &&
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
name="order_paiement_condition"
|
||||
id="order_paiement_condition"
|
||||
fullWidth
|
||||
//value={New_Getall_Partner_Paiement_Condition_result.filter((data) => (data).label === String(p_add_cmd_header_condition_paiement))[0].label}
|
||||
value={New_Getall_Partner_Paiement_Condition_result.filter((data) => (data)._id === String(client_selected_paiement_ction_id))[0].label}
|
||||
options={New_Getall_Partner_Paiement_Condition_result}
|
||||
onChange={(event, value) => {
|
||||
|
||||
|
@ -3783,7 +3805,31 @@ const Partner_Commande = (props) => {
|
|||
|
||||
</div>
|
||||
<div className="session_caract_Dialog" > Emplacement <br />
|
||||
<TextField
|
||||
|
||||
{ New_Emplacement_Filter && New_Emplacement_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="order_header_location_type"
|
||||
id="order_header_location_type"
|
||||
fullWidth
|
||||
value={New_Emplacement_Filter.filter((data) => (data).value === String(p_add_cmd_header_order_location_type))[0].label}
|
||||
options={New_Emplacement_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
|
||||
setp_add_cmd_header_order_location_type(value.value);
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
|
||||
{/*<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
name="order_header_location_type"
|
||||
id="order_header_location_type"
|
||||
|
@ -3803,7 +3849,7 @@ const Partner_Commande = (props) => {
|
|||
<MenuItem value="intra" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Intra </MenuItem>
|
||||
<MenuItem value="" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Autre </MenuItem>
|
||||
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
|
||||
</div>
|
||||
<div className="session_caract_Dialog_comment_2_lines" > Commentaire <br />
|
||||
|
@ -4363,7 +4409,33 @@ const Partner_Commande = (props) => {
|
|||
/>
|
||||
</div>}
|
||||
{String(order_data_edit_mode) === "1" && String(p_detail_header_type) === "commande" && <div className="session_caract"> Statut<br />
|
||||
<TextField
|
||||
|
||||
|
||||
{New_Status_Filter && New_Status_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="detail_header_status"
|
||||
id="detail_header_status"
|
||||
className="disabled_style"
|
||||
value={New_Status_Filter.filter((data) => (data).value === String(p_detail_header_statut))[0].label}
|
||||
options={New_Status_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
|
||||
setp_detail_header_statut(value.value);
|
||||
setOrder_data_changed("1");
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
|
||||
{/*<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="detail_header_status"
|
||||
|
@ -4385,13 +4457,39 @@ const Partner_Commande = (props) => {
|
|||
<MenuItem value="0" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Brouillon </MenuItem>
|
||||
<MenuItem value="1" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >En cours </MenuItem>
|
||||
<MenuItem value="2" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Traité </MenuItem>
|
||||
|
||||
<MenuItem value="-1" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Annulé </MenuItem>
|
||||
</TextField>
|
||||
</TextField>*/}
|
||||
|
||||
</div>}
|
||||
{String(order_data_edit_mode) === "1" && String(p_detail_header_type) === "devis" && <div className="session_caract"> Statut<br />
|
||||
<TextField
|
||||
|
||||
|
||||
{New_Status_Filter && New_Status_Filter.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
name="detail_header_status"
|
||||
id="detail_header_status"
|
||||
className="disabled_style"
|
||||
value={New_Status_Filter.filter((data) => (data).value === String(p_detail_header_statut))[0].label}
|
||||
options={New_Status_Filter}
|
||||
onChange={(event, value) => {
|
||||
if (value && value.value) {
|
||||
|
||||
setp_detail_header_statut(value.value);
|
||||
setOrder_data_changed("1");
|
||||
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
|
||||
{/*<TextField
|
||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||
required
|
||||
name="detail_header_status"
|
||||
|
@ -4414,7 +4512,7 @@ const Partner_Commande = (props) => {
|
|||
<MenuItem value="1" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >En cours </MenuItem>
|
||||
<MenuItem value="2" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Fermé </MenuItem>
|
||||
<MenuItem value="-1" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Annulé </MenuItem>
|
||||
</TextField>
|
||||
</TextField> */}
|
||||
|
||||
</div>}
|
||||
|
||||
|
@ -5178,7 +5276,7 @@ const Partner_Commande = (props) => {
|
|||
}
|
||||
|
||||
{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 bton_put_to_invoice"> Pret pour Facturation </Button>
|
||||
String(p_detail_header_type).toLowerCase() === "commande" && <Button variant="outlined" onClick={Make_Order_Ready_To_Invoice} className="detail_class_submenu bton_add_sous_menu bton_put_to_invoice" > Pret pour Facturation </Button>
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
background: #d5f38f;
|
||||
color: black;
|
||||
width: 100%;
|
||||
height: 3rem !important;
|
||||
}
|
||||
|
||||
|
||||
|
@ -851,6 +852,7 @@
|
|||
background: #d5f38f;
|
||||
color: black;
|
||||
width: 100%;
|
||||
height: 3rem !important;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1458,6 +1460,7 @@
|
|||
background: #d5f38f;
|
||||
color: black;
|
||||
width: 100%;
|
||||
height: 3rem !important;
|
||||
}
|
||||
|
||||
.bton_import_excel {
|
||||
|
@ -1981,6 +1984,8 @@
|
|||
background: #d5f38f;
|
||||
color: black;
|
||||
width: 25% !important;
|
||||
height: 3rem !important;
|
||||
|
||||
}
|
||||
|
||||
.bton_import_excel {
|
||||
|
|
Loading…
Reference in New Issue