09/05/2025 - 20h30

branche_01062025
Cherif 2026-05-09 20:34:50 +02:00
parent e5ab6f881e
commit 618923b402
6 changed files with 851 additions and 1455 deletions

File diff suppressed because it is too large Load Diff

View File

@ -826,7 +826,7 @@ const DisplayPartnerSession = (props) => {
{ field: '_id', headerName: '_id', hide: true },
{
field: 'civilite', headerName: 'Civ.', minWidth: 90, flex: 1, maxWidth: 100, hide: false, editable: false, editable: false,
field: 'civilite', headerName: 'Civ.', minWidth: 90, flex: 1, maxWidth: 100, hide: false, editable: false,
renderCell: (cellValues) => {
return (
@ -846,11 +846,11 @@ const DisplayPartnerSession = (props) => {
},
},
{ field: 'nom', headerName: 'nom', minWidth: 200, flex: 1, hide: false, editable: true, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'prenom', headerName: 'prenom', minWidth: 200, flex: 1, hide: false, editable: true, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'email', headerName: 'email', minWidth: 200, flex: 1, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'nom', headerName: 'Nom', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'prenom', headerName: 'Prénom', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'email', headerName: 'Email', minWidth: 200, flex: 1, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, editable: false,},
{ field: 'telephone', headerName: 'telephone', minWidth: 150, flex: 1, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'telephone', headerName: 'Téléphone', minWidth: 150, flex: 1, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, editable: false,},
{ field: 'client_rattachement_nom', headerName: 'Client', minWidth: 150, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'client_rattachement_id', headerName: 'Client_id', Width: 0, hide: true, editable: false, },
@ -870,7 +870,7 @@ const DisplayPartnerSession = (props) => {
}
},
{ field: 'employeur', headerName: 'Employeur', minWidth: 150, flex: 1, maxWidth: 200, hide: true, editable: true, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'employeur', headerName: 'Employeur', minWidth: 150, flex: 1, maxWidth: 200, hide: true, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'opco', headerName: 'Centre Opco', minWidth: 100, flex: 1, maxWidth: 150, hide: true, editable: false },
{
field: 'modefinancement', headerName: 'Financement', minWidth: 100, flex: 1, maxWidth: 150, hide: true, editable: false,
@ -892,7 +892,7 @@ const DisplayPartnerSession = (props) => {
},
},
{
field: 'amount', headerName: 'Prix', minWidth: 100, flex: 1, maxWidth: 150, type: 'number', flex: 1, editable: true,
field: 'amount', headerName: 'Prix', minWidth: 100, flex: 1, maxWidth: 150, type: 'number', flex: 1, editable: false,
align: 'right',
renderCell: (params) => <ExpandableCell_String_to_monetaire {...params} />,
},
@ -924,7 +924,7 @@ const DisplayPartnerSession = (props) => {
}
},
{
/* {
field: "update", headerName: 'Mise à jour',
renderCell: (cellValues) => {
return (
@ -983,7 +983,7 @@ const DisplayPartnerSession = (props) => {
);
}
},
*/
{
field: 'bton_vertif', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center",
@ -1440,10 +1440,10 @@ const DisplayPartnerSession = (props) => {
field: 'nom', headerName: 'nom', minWidth: 200, flex: 1, hide: false, editable: false,
renderCell: (params) => <ExpandableCell_50 {...params} />,
},
{ field: 'prenom', headerName: 'prenom', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'email', headerName: 'email', minWidth: 200, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'prenom', headerName: 'Prénom', minWidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'email', headerName: 'Email', minWidth: 200, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'telephone', headerName: 'telephone', minWidth: 150, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'telephone', headerName: 'Téléphone', minWidth: 150, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'client_rattachement_nom', headerName: 'Client', minWidth: 150, flex: 1, maxWidth: 200, hide: false, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'client_rattachement_id', headerName: 'Client_id', Width: 0, hide: true, editable: false, },
@ -6711,6 +6711,9 @@ const DisplayPartnerSession = (props) => {
setp_one_status_part("");
setp_one_detail_client_rattachement_id('');
setp_one_detail_client_rattachement_nom('');
setp_one_detail_facture_client_rattachement_id("");
setp_one_adresse_part("");
setp_one_cp_part("");
@ -26270,6 +26273,18 @@ const DisplayPartnerSession = (props) => {
fontSize: '14px',
fontFamily: 'DM Sans',
},
'& .line--statut--selected': {
backgroundColor: '#e9f7f1',
color: '#0a2a4d',
},
'& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: '#0a2a4d',
},
'& .line--statut--impair': {
backgroundColor: '#FFFFFF',
color: '#0a2a4d',
},
}}
@ -26316,6 +26331,26 @@ const DisplayPartnerSession = (props) => {
pageSize={10}
className="datagridclass"
onRowDoubleClick={(newSelectionModel) => {
// setgridline_id(newSelectionModel.row.id);
var tmp_data = JSON.parse(rowss_preinsc[newSelectionModel.row.id])
var local_selected_id = tmp_data['_id'];
var local_selected_internal_url = tmp_data['class_internal_url'];
var local_selected_email = tmp_data['email'];
if (local_selected_id && String(local_selected_id).length > 2) {
var tmp_url = selected_code_session + "&" + selected_session_id + "&" + selected_internal_url + "&" + local_selected_email;
window.open(
process.env.REACT_APP_FRONT_URL + "Partner/mes_stagiaires/" + String(local_selected_id) + "/" + String(tmp_url),
'_blank'
);
}
}
}
rowsPerPageOptions={[10]}
disableSelectionOnClick
components={{
@ -26332,6 +26367,17 @@ const DisplayPartnerSession = (props) => {
py: 1,
},
}}
getRowClassName={(params) => {
if (parseInt(String(params.row.id)) % 2 === 0) {
return 'line--statut--pair';
}
else if (parseInt(String(params.row.id)) % 2 !== 0) {
return 'line--statut--impair';
}
}}
/>
</Box>
@ -26564,7 +26610,7 @@ const DisplayPartnerSession = (props) => {
{String(addOneParticipant) !== "1" && selected_code_session && selected_internal_url && <div className="div_row" style={{ "border": "None" }}>
{String(addOneParticipant) === "1" && <div className="div_row session_data" style={{ "border": "None", "backgroundColor": "#F0F0F0" }}>
<h5> Ajout d'un Nouvelle appenant</h5>
<h5> Nouvel apprenant</h5>
<div className="session_caract"> <b> Civilité </b><br />
{New_civilite.length > 0 && <Autocomplete
@ -27384,6 +27430,13 @@ const DisplayPartnerSession = (props) => {
color: "#0a2a4d",
fontSize: '14px',
fontFamily: 'DM Sans',
}, '& .line--statut--pair': {
backgroundColor: 'rgba(235, 235, 235, .7)',
color: '#0a2a4d',
},
'& .line--statut--impair': {
backgroundColor: '#FFFFFF',
color: '#0a2a4d',
},
@ -27483,6 +27536,16 @@ const DisplayPartnerSession = (props) => {
py: 1,
},
}}
getRowClassName={(params) => {
if (parseInt(String(params.row.id)) % 2 === 0) {
return 'line--statut--pair';
}
else if (parseInt(String(params.row.id)) % 2 !== 0) {
return 'line--statut--impair';
}
}}
/>
</Box>

View File

@ -13896,7 +13896,7 @@ const DisplayPartnerStagiaires = (props) => {
/>
</div>
</div>
<div className="session_caract"> <b> Téléphone </b> <br />
<TextField

View File

@ -930,7 +930,7 @@ const Partner_Facture = (props) => {
setLoading(false);
if (String(res.data.status) === String("true")) {
//console.log(" In Getall_Invoice_Paiement_Payed_Remain_Amounts res.data.status = " + res.data.status);
console.log(" In Getall_Invoice_Paiement_Payed_Remain_Amounts res.data.message r_class = " + res.data.message);
// console.log(" In Getall_Invoice_Paiement_Payed_Remain_Amounts res.data.message r_class = " + res.data.message);
setGetall_Invoice_Paiement_Payed_Remain_Amounts_api("true");
setGetall_Invoice_Paiement_Payed_Remain_Amounts_result(res.data.message);

View File

@ -1078,6 +1078,192 @@ const Partner_Securite_Data = (props) => {
{String(props.is_partner_admin_account) === "1" && <div className="div_row" >
<div className="Grid_2_col" >
<div className="Grid_2_col_sub_colone" style={{ minHeight: '10rem', padding: "0px" }}>
<div style={{ width: '100%', float: 'left' }}>
<div className="Grid_2_col_sub_colone_header_no_color_left">
Coordonnées bancaires
</div>
<div style={{
display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', width: '100%',
paddingLeft: '10px', flexWrap: 'wrap', marginTop: "1rem"
}}>
<Box alignItems="left" sx={{ '& > :not(style)': { m: 1 } }} >
<TextField
label="Code Banque"
id="code_banque"
name="code_banque"
type={'text'}
value={values.current_insert_key}
onChange={handleChange_current_insert_key('current_insert_key')}
sx={{ m: 1, width: '50%' }}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<IconButton
aria-label="toggle password visibility"
onClick={handleClickcurrent_insert_key}
edge="end"
>
</IconButton>
</InputAdornment>
),
}}
/>
<TextField
label="Code Guichet"
id="code_guichet"
name="code_guichet"
type={'text'}
value={values.current_insert_key}
onChange={handleChange_current_insert_key('current_insert_key')}
sx={{ m: 1, width: '50%' }}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<IconButton
aria-label="toggle password visibility"
onClick={handleClickcurrent_insert_key}
edge="end"
>
</IconButton>
</InputAdornment>
),
}}
/>
<TextField
label="Compte"
id="compte_bancaire"
name="compte_bancaire"
type={'text'}
value={values.current_insert_key}
onChange={handleChange_current_insert_key('current_insert_key')}
sx={{ m: 1, width: '65%', float:'left', }}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<IconButton
aria-label="toggle password visibility"
onClick={handleClickcurrent_insert_key}
edge="end"
>
</IconButton>
</InputAdornment>
),
}}
/>
<TextField
label="Clé"
id="code_cle"
name="code_cle"
type={'text'}
value={values.current_insert_key}
onChange={handleChange_current_insert_key('current_insert_key')}
sx={{ m: 1, width: '23%', float:'left', }}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<IconButton
aria-label="toggle password visibility"
onClick={handleClickcurrent_insert_key}
edge="end"
>
</IconButton>
</InputAdornment>
),
}}
/>
<TextField
label="IBAN"
id="code_iban"
name="code_iban"
type={'text'}
value={values.current_insert_key}
onChange={handleChange_current_insert_key('current_insert_key')}
sx={{ m: 1, width: '90%' }}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<IconButton
aria-label="toggle password visibility"
onClick={handleClickcurrent_insert_key}
edge="end"
>
</IconButton>
</InputAdornment>
),
}}
/>
<TextField
label="BIC"
id="code_bic"
name="code_bic"
type={'text'}
value={values.current_insert_key}
onChange={handleChange_current_insert_key('current_insert_key')}
sx={{ m: 1, width: '90%' }}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<IconButton
aria-label="toggle password visibility"
onClick={handleClickcurrent_insert_key}
edge="end"
>
</IconButton>
</InputAdornment>
),
}}
/>
<div className="div_row22" style={{ "textAlign": "left" }}>
{insert_keyfieldsdesabled == false && <div className="div_row">
<div className="div_row_gauche">
<Button variant="contained" color="success" className="div_row22 btn_enreg " onClick={UpdatePartnerInsertKey}>Enregistrer</Button>
</div>
<div className="div_row_droite">
<div style={{ width: '100%', textAlign: 'right', paddingRight: '10px' }}> <Button variant="contained" color="success" className="div_row22 btn_modif " onClick={desablesecurtyInsertKeyfields}>Annuler</Button> </div>
</div>
</div>
}
{insert_keyfieldsdesabled == true &&
<div style={{ width: '100%', textAlign: 'right', paddingRight: '10px' }}> <Button variant="contained" color="success" className="div_row22 btn_modif" style={{ textAlign: 'center' }} onClick={enablesecurtyInsertKeyfields}>Editer</Button> </div>
}
</div>
</Box>
</div>
</div>
<div className="div_row"> &nbsp;</div>
</div>
<div className="Grid_2_col_sub_colone" style={{ minHeight: '10rem', padding: "0px" }}>
<div style={{ width: '100%', float: 'left' }}>
@ -1214,26 +1400,21 @@ const Partner_Securite_Data = (props) => {
<div style={{ width: '100%', textAlign: 'right', paddingRight: '10px' }}> <Button variant="contained" color="success" className="div_row22 btn_modif" style={{ textAlign: 'center' }} onClick={enablesecurtyInsertKeyfields}>Editer</Button> </div>
}
</div>
</Box>
</div>
</div>
<div className="div_row"> &nbsp;</div>
</div>
</div>
</div>}
{/*<div className="div_row_gauche">
<div className="titre1"> Mot de passe </div>

View File

@ -176,7 +176,7 @@
border-radius: 10px;
border: 1px solid;
}
.training_caract {
width: 100%;
@ -552,16 +552,15 @@
}
.disabled_style {
//background-color: #ECEFF1;
font-size: small !important;
color: black;
width: 95% !important;
color: #0a2a4d !important;
width: 90% !important;
height: 3.5rem !important;
//border: none !important;
margin: 5px !important;
border-radius: 5px;
background: white;
border: solid gainsboro 1px;
border: none !important;
}
@ -682,7 +681,7 @@
border: 1px solid #9cf;
color: #3b3e40;
font-family: "DM Sans", "sans-serif";
font-size: 11px;
font-size: 11px;
letter-spacing: 0.1rem;
font-weight: normal;
}
@ -716,16 +715,15 @@
}
.disabled_style {
//background-color: #ECEFF1;
font-size: small !important;
color: black;
color: #0a2a4d !important;
width: 90% !important;
height: 3.5rem !important;
margin: 5px !important;
//border: none !important;
border-radius: 5px;
background: white;
border: solid gainsboro 1px;
border: none !important;
}
.training_caract {
@ -1297,16 +1295,16 @@
}
.disabled_style {
//background-color: #ECEFF1;
font-size: small !important;
color: black;
color: #0a2a4d !important;
width: 90% !important;
height: 3.5rem !important;
margin: 5px !important;
//border: none !important;
border-radius: 5px;
background: white;
border: solid gainsboro 1px;
border: none !important;
}
.training_caract {
@ -1625,7 +1623,7 @@
font-weight: normal;
}
.block_en_mass {
.block_en_mass {
width: 50%;
float: left;
margin-bottom: 1rem;
@ -1737,7 +1735,7 @@
border: 1px solid #9cf;
color: #3b3e40;
font-family: "DM Sans", "sans-serif";
font-size: 11px;
font-size: 11px;
letter-spacing: 0.1rem;
font-weight: normal;
}
@ -1771,16 +1769,16 @@
}
.disabled_style {
//background-color: #ECEFF1;
font-size: small !important;
color: black;
color: #0a2a4d !important;
width: 90% !important;
height: 3.5rem !important;
margin: 5px !important;
//border: none !important;
border-radius: 5px;
background: white;
border: solid gainsboro 1px;
border: none !important;
}
.training_caract {
@ -1866,7 +1864,7 @@
margin-left: 10rem;
}
.block_en_mass {
.block_en_mass {
width: 50%;
float: left;
margin-bottom: 1rem;
@ -2218,10 +2216,10 @@
}
.css-1v4ccyo {
.css-1v4ccyo {
height: 3.5rem !important;
font-size: small;
color: #0a2a4d !important;
color: #0a2a4d !important;
}
option {
@ -2287,10 +2285,10 @@
width: 110%;
}
.css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input {
color: #0a2a4d !important;
font-size: small !important;
font-family: "DM Sans" !important;
.css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input {
color: #0a2a4d !important;
font-size: small !important;
font-family: "DM Sans" !important;
padding-left: 5px !important;
}