+
{selectionModel_evaluation && selectionModel_evaluation.length >= 1 &&
diff --git a/src/components/DisplayPartnerTrainingsPagination.js b/src/components/DisplayPartnerTrainingsPagination.js
index 3b5c474..d11c0b2 100644
--- a/src/components/DisplayPartnerTrainingsPagination.js
+++ b/src/components/DisplayPartnerTrainingsPagination.js
@@ -1908,7 +1908,8 @@ const DistplayPartnerTraningsPage = (props) => {
'& .line--statut--selected': {
backgroundColor: '#FBF2EF',
color: 'black',
- }, [`& .${gridClasses.cell}`]: {
+ },
+ [`& .${gridClasses.cell}`]: {
py: 1,
},
diff --git a/src/components/Employes.js b/src/components/Employes.js
index 16f8d3c..3d1d6be 100644
--- a/src/components/Employes.js
+++ b/src/components/Employes.js
@@ -5683,7 +5683,8 @@ const Employes = (props) => {
'& .line--statut--impair': {
backgroundColor: '#FFFFFF',
color: 'black',
- }, [`& .${gridClasses.cell}`]: {
+ },
+ [`& .${gridClasses.cell}`]: {
py: 1,
},
diff --git a/src/components/PartnerClient_Activite.js b/src/components/PartnerClient_Activite.js
index 2a1e3ab..58675df 100644
--- a/src/components/PartnerClient_Activite.js
+++ b/src/components/PartnerClient_Activite.js
@@ -481,7 +481,7 @@ const PartnerClientActivite = (props) => {
//console.log(" In recordPartnerClient_Activite_Data res.data.message = " + res.data.message);
setrecord_One_PartnerClient_Activite_Data_api("true");
setrecord_One_PartnerClient_Activite_Data_result(res.data.message);
-
+ Clear_activite_P_fields();
setshowactivite_detail("0");
Get_List_Activite_Of_client_Part();
alert(res.data.message);
@@ -714,6 +714,13 @@ const PartnerClientActivite = (props) => {
setp_activite_type("");
setp_activite_status("");
setp_activite_status_label("");
+ setp_activite_detail("");
+
+ setone_activite_description("");
+ setone_activite_type("");
+ setone_activite_status("call");
+ setone_activite_detail("");
+
}
@@ -750,14 +757,11 @@ const PartnerClientActivite = (props) => {
const [one_activite_detail, setone_activite_detail] = useState();
function Close_add_one_activite() {
- setone_activite_description();
-
+ setone_activite_description("");
setone_activite_deadline(new Date().toLocaleDateString('fr-FR'));
-
-
setone_activite_type("call");
setone_activite_status("0");
- setone_activite_detail();
+ setone_activite_detail("");
setshowactivite_detail();
diff --git a/src/components/Partner_Client.js b/src/components/Partner_Client.js
index e44ebea..b7d7434 100644
--- a/src/components/Partner_Client.js
+++ b/src/components/Partner_Client.js
@@ -63,7 +63,8 @@ import { CiTrash } from "react-icons/ci";
import { MdAddCircleOutline, MdRemoveCircleOutline } from "react-icons/md";
import Popup from 'reactjs-popup';
import 'reactjs-popup/dist/index.css';
-
+import Link from '@mui/material/Link';
+import { PiDotsThree } from "react-icons/pi";
const Partner_Client = (props) => {
@@ -74,22 +75,62 @@ const Partner_Client = (props) => {
const [selected_id, setselected_id] = useState("");
+ function ExpandableCell_50({ value }) {
+ const [expanded, setExpanded] = React.useState(false);
+
+ return (
+
+ );
+ }
+
+
+ function Display_Colunm_text({ value }) {
+
+ return (
+
+ {value}
+
+
+ );
+ }
+
const columns_clients = [
{ field: 'id', headerName: 'id', hide: true },
{ field: '_id', headerName: '_id', hide: true },
- { field: 'raison_sociale', headerName: 'Raison sociale', minWidth: 50, maxWidth: 100, flex: 1, hide: false, editable: false, },
- { field: 'nom', headerName: 'nom', width: 100, hide: false, editable: false, minWidth: 10, flex: 1 },
- { field: 'email', headerName: 'email', width: 100, hideable: false, minWidth: 100, flex: 1 },
+ { field: 'raison_sociale', headerName: 'Raison sociale', Width: 200, flex: 1, hide: false, editable: false, renderCell: (params) =>
, },
+ { field: 'nom', headerName: 'nom', width: 100, hide: false, editable: false, Width: 200, flex: 1, renderCell: (params) =>
, },
+ { field: 'email', headerName: 'email', width: 100, hideable: false, width: 200, flex: 1, renderCell: (params) =>
, },
- { field: 'telephone', headerName: 'Téléphone', width: 100, hide: false, editable: false, minWidth: 100, maxWidth: 150, flex: 1 },
- { field: 'adr_adresse', headerName: 'Adresse', width: 100, hide: true, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
- { field: 'adr_code_postal', headerName: 'Code Postal', width: 100, hide: false, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
- { field: 'adr_ville', headerName: 'Ville', width: 100, hide: false, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
- { field: 'adr_pays', headerName: 'Pays', width: 100, hide: true, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
- { field: 'siret', headerName: 'Siret', width: 100, hide: true, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
- { field: 'website', headerName: 'Siteweb', width: 100, hide: true, editable: false, minWidth: 50, maxWidth: 70, flex: 1 },
+ { field: 'telephone', headerName: 'Téléphone', width: 100, hide: false, editable: false, width: 100, renderCell: (params) =>
, },
+ { field: 'adr_adresse', headerName: 'Adresse', width: 100, hide: true, editable: false, width: 100, renderCell: (params) =>
, },
+ { field: 'adr_code_postal', headerName: 'Code Postal', width: 100, hide: false, editable: false, width: 100, renderCell: (params) =>
, },
+ { field: 'adr_ville', headerName: 'Ville', width: 100, hide: false, editable: false, renderCell: (params) =>
, },
+ { field: 'adr_pays', headerName: 'Pays', width: 100, hide: true, editable: false, renderCell: (params) =>
, },
+ { field: 'siret', headerName: 'Siret', width: 100, hide: true, editable: false, renderCell: (params) =>
, },
+ { field: 'website', headerName: 'Siteweb', width: 100, hide: true, editable: false, renderCell: (params) =>
, },
/*{
@@ -819,6 +860,9 @@ const Partner_Client = (props) => {
backgroundColor: '#FFFFFF',
color: 'black',
},
+ [`& .${gridClasses.cell}`]: {
+ py: 1,
+ },
}}
>
@@ -889,6 +933,14 @@ const Partner_Client = (props) => {
}
}}
+
+ sx={{
+ "& .MuiDataGrid-cellContent": {
+ minHeight: 100,
+
+ }
+ }}
+
/>
diff --git a/src/components/Partner_Commande.js b/src/components/Partner_Commande.js
index 866e29c..28154ce 100644
--- a/src/components/Partner_Commande.js
+++ b/src/components/Partner_Commande.js
@@ -41,7 +41,7 @@ import DialogTitle from '@mui/material/DialogTitle';
import { TransitionProps } from '@mui/material/transitions';
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
import { Global } from "recharts";
-
+import { FcAddDatabase } from "react-icons/fc";
const Partner_Commande = (props) => {
@@ -5194,9 +5194,11 @@ const Partner_Commande = (props) => {
-
+
+
{
if (String(e.type) === "mouseup") {
-
-
-
console.log('Event Type', e.type);
-
var al = data.lastX;
console.log('data lastX', al);
@@ -132,6 +128,9 @@ const Test_Drag_Drop = (props) => {
const [table_step, settable_step] = useState();
+ const New_step_x = [{"step":"nouveau"}, {"step":"qualifie"}, {"step":"proposition"}, {"step":"gagne"}, {"step":"perdu"}]
+
+
const [New_Getall_Partner_CRM_Opport_Step_result, setNew_Getall_Partner_CRM_Opport_Step_result] = useState([]);
const [Getall_Partner_CRM_Opport_Step_api, setGetall_Partner_CRM_Opport_Step_api] = useState();
@@ -155,7 +154,7 @@ const Test_Drag_Drop = (props) => {
setGetall_Partner_CRM_Opport_Step_api("true");
setGetall_Partner_CRM_Opport_Step_result(res.data.message);
- let table = "";
+ let table = "";
var new_data2 = [];
const new_data = res.data.message.map((x) => {
@@ -199,7 +198,7 @@ const Test_Drag_Drop = (props) => {
if (new_data2.length > 0) {
setNew_Getall_Partner_CRM_Opport_Step_result(new_data2);
- table += "
";
+ table += "
";
var tmp = 0;
const new_data = res.data.message.map((x) => {
@@ -209,7 +208,7 @@ const Test_Drag_Drop = (props) => {
});
- table += "
";
+ table += "
";
console.log(" ### table = ", table);
@@ -235,8 +234,80 @@ const Test_Drag_Drop = (props) => {
})
}
+ const [New_Get_List_Oppurtunite_With_Filter_result, setNew_Get_List_Oppurtunite_With_Filter_result] = useState([]);
+
+ const [Get_List_Oppurtunite_With_Filter_api, setGet_List_Oppurtunite_With_Filter_api] = useState();
+ const [Get_List_Oppurtunite_With_Filter_message, setGet_List_Oppurtunite_With_Filter_message] = useState();
+ const [Get_List_Oppurtunite_With_Filter_result, setGet_List_Oppurtunite_With_Filter_result] = useState();
+ function Get_List_Oppurtunite_With_Filter(event) {
+
+ var form = new FormData();
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_CRM_Opportunite_with_filter/";
+
+ axios.post(myurl, form).then(res => {
+
+ if (String(res.data.status) === String("true")) {
+ //console.log(" In Get_List_Oppurtunite_With_Filter res.data.status = " + res.data.status);
+ console.log(" In Get_List_Oppurtunite_With_Filter res.data.message r_class = " + res.data.message);
+ setGet_List_Oppurtunite_With_Filter_api("true");
+ setGet_List_Oppurtunite_With_Filter_result(res.data.message);
+
+ var new_data2 = [];
+ const new_data = res.data.message.map((x) => {
+
+ //---
+ var localid = JSON.parse(x).id;
+ var local_id = JSON.parse(x)._id;
+ var local_statut = JSON.parse(x).statut;
+ var local_contact_nom = JSON.parse(x).contact_nom;
+ var local_contact_email = JSON.parse(x).contact_email;
+
+ //---
+ var node = {
+ "_id": local_id,
+ "id": localid,
+ "label": local_statut,
+ "statut": local_statut,
+ "contact_nom": local_contact_nom,
+ "contact_email": local_contact_email,
+ };
+ new_data2.push(node);
+ });
+
+ if (new_data2.length > 0)
+ setNew_Get_List_Oppurtunite_With_Filter_result(new_data2);
+
+ }
+ else {
+ setGet_List_Oppurtunite_With_Filter_api("false");
+ setGet_List_Oppurtunite_With_Filter_message(res.data.message);
+ alert(res.data.message);
+ }
+
+ }).catch((error) => {
+ console.warn('Not good man :( Get_List_Oppurtunite_With_Filter = ', error);
+ setGet_List_Oppurtunite_With_Filter_api("false");
+ alert(" Impossible de recuperer la liste des opportunités ");
+ //setmyApimyApiMessage("")
+ })
+ }
+
+ function test_td_element() {
+
+ let element = document.getElementById('cherif');
+ element.innerHTML = table_step;
+
+
+ }
+
+
+
return (
@@ -246,11 +317,32 @@ const Test_Drag_Drop = (props) => {
}
Test Page Drag & Drop
+
+
+ ---
+
+
+
+
+
+
-
-
{
onDrag={eventHandler}
onStop={eventHandler}
>
-
+
Drag from here
Step = {task_column}
+
+
+ {New_Get_List_Oppurtunite_With_Filter_result && New_Get_List_Oppurtunite_With_Filter_result.length > 0 &&
+ New_Get_List_Oppurtunite_With_Filter_result.map((data) => (
+
+
+
+
+
Drag from here
+
Step = {data.contact_email}
+
+
+
+ ))}
+
diff --git a/src/styles/components/_partner_commande.scss b/src/styles/components/_partner_commande.scss
index 22e2f7b..5e43d5d 100644
--- a/src/styles/components/_partner_commande.scss
+++ b/src/styles/components/_partner_commande.scss
@@ -3,8 +3,8 @@
.tooltip_css {
background: #81BC3A;
z-index: 9999;
- }
-
+ }
+
.Mui-disabled {
font-size: small !important;
padding: 0px !important;
@@ -249,7 +249,7 @@
width: 6%;
}
-
+
.icon_plus_line {
width: 3%;
}
@@ -828,7 +828,7 @@
width: 6%;
}
-
+
.icon_plus_line {
width: 4%;
}
@@ -1347,7 +1347,7 @@
}
-
+
.css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input {
padding: 1px !important;
@@ -1435,7 +1435,7 @@
width: 8%;
}
-
+
.icon_plus_line {
width: 3%;
}
@@ -2265,7 +2265,7 @@
text-align: center;
}
- .css-l4u8b9-MuiInputBase-root-MuiInput-root{
+ .css-l4u8b9-MuiInputBase-root-MuiInput-root {
text-align: left !important;
}
@@ -2293,18 +2293,42 @@
margin-left: 10px;
margin-right: 10px;
}
-
+
}
+ .bton_add_line {
+ box-shadow: 0 0 5px -1px rgba(0, 0, 0, 0.2);
+ display: inline-block;
+ text-align: center;
+ cursor: pointer;
+
+ background: #d8edfc;
+ border-radius: 15px;
+ margin-right: 1rem;
+
+ text-align: left;
+ border: 1px solid #9cf;
+ color: #3b3e40;
+ font-family: "verdana", "Quicksand", "Signika", sans-serif;
+ font-size: small;
+ letter-spacing: 0.1rem;
+ font-weight: normal;
+ padding-left: 10px;
+ padding-left: 30px;
+ padding-right: 30px;
+
+ }
+
+
// end media
- .css-md26zr-MuiInputBase-root-MuiOutlinedInput-root{
+ .css-md26zr-MuiInputBase-root-MuiOutlinedInput-root {
height: 3.5rem !important;
}
- .css-1bp1ao6{
+ .css-1bp1ao6 {
height: 3.5rem !important;
}
@@ -2367,27 +2391,27 @@
align-items: center;
text-align: center;
margin-bottom: 0.5rem !important;
- }
-
- .separator::before,
- .separator::after {
+ }
+
+ .separator::before,
+ .separator::after {
content: '';
flex: 1;
border-bottom: 1px solid #e0e0e0;
- }
-
- .separator:not(:empty)::before {
- margin-right: .35em;
- }
-
- .separator:not(:empty)::after {
- margin-left: .35em;
- }
+ }
- .MuiSelect-select{
+ .separator:not(:empty)::before {
+ margin-right: .35em;
+ }
+
+ .separator:not(:empty)::after {
+ margin-left: .35em;
+ }
+
+ .MuiSelect-select {
//height: 3rem !important;
- }
+ }
}