}
- {String(formedit_mode) === "1" &&
Type client
-
1 &&
+ String(formedit_mode) === "1" && Type client
+
(data)._id === String(p_client_type_id))[0].label}
+
+ onChange={(event, value) => {
+ if (value && value._id) {
+ setp_client_type_id(value._id);
+
+ DataUpdated();
+
+ }
+ }}
+
+
+ renderInput={(params) =>
+ }
+ />
+ {/* {
))}
-
- }
+ */}
+
}
N° Siret
@@ -2772,7 +2937,7 @@ const AddParnerClient = (props) => {
/>
-
Site web
+
Site web 1
{
/>
+
+
+
+
+
+
+
@@ -2808,7 +3046,7 @@ const AddParnerClient = (props) => {
{String(formedit_mode) !== "1" &&
}
@@ -3101,9 +3339,9 @@ const AddParnerClient = (props) => {
}
}}
renderInput={(params) =>
+ />
}
/>
@@ -3142,7 +3380,7 @@ const AddParnerClient = (props) => {
disabled={false}
className="disabled_style"
value={p_contact_civilite}
-
+
/>
@@ -3408,7 +3646,7 @@ const AddParnerClient = (props) => {
-
+
}
diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js
index 940eade..1008ac3 100644
--- a/src/components/DisplayPartnerSession.js
+++ b/src/components/DisplayPartnerSession.js
@@ -263,9 +263,9 @@ const DisplayPartnerSession = (props) => {
{ field: 'domaine', headerName: 'Domaine', minWidth: datagrid_columns_size_model1, align: "center", hide: true, hideable: false, renderCell: (params) =>
, },
{ field: 'published', headerName: 'publié', minWidth: datagrid_columns_size_model1, align: "center", hide: true, hideable: false, renderCell: (params) =>
, },
- { field: 'site_formation_id', headerName: 'site_formation_id', with: 0, align: "center", hide: true, hideable: false},
- { field: 'site_formation_nom', headerName: 'Site Ftion',with: 150, align: "center", hide: false, hideable: false, renderCell: (params) =>
, },
-
+ { field: 'site_formation_id', headerName: 'site_formation_id', with: 0, align: "center", hide: true, hideable: false },
+ { field: 'site_formation_nom', headerName: 'Site Ftion', with: 150, align: "center", hide: false, hideable: false, renderCell: (params) =>
, },
+
{ field: 'duration', headerName: 'Durée', minWidth: datagrid_columns_size_model2, align: "center", hide: true, hideable: false, renderCell: (params) =>
, },
@@ -3669,6 +3669,11 @@ const DisplayPartnerSession = (props) => {
document.getElementsByName("prix_session")[0].style.backgroundColor = "#ECEFF1";
}
+ if (document.getElementsByName("prix_session_by")[0]) {
+ document.getElementsByName("prix_session_by")[0].disabled = true;
+ document.getElementsByName("prix_session_by")[0].style.backgroundColor = "#ECEFF1";
+ }
+
if (document.getElementsByName("titre_session")[0]) {
document.getElementsByName("titre_session")[0].disabled = true;
document.getElementsByName("titre_session")[0].style.backgroundColor = "#ECEFF1";
@@ -4214,6 +4219,8 @@ const DisplayPartnerSession = (props) => {
form.append("location_type", p_detail_location_type);
form.append("is_bpf", p_detail_is_bpf);
+ form.append("price_by", p_prix_session_by);
+
form.append("formateur_id", p_formateur_id);
form.append("site_formation_id", p_session_site_formation_id);
@@ -4450,6 +4457,7 @@ const DisplayPartnerSession = (props) => {
form.append("titre", p_one_titre);
form.append("location_type", p_one_location_type);
form.append("is_bpf", p_one_is_bpf);
+ form.append("price_by", p_one_prix_session_by);
form.append("session_status", p_one_session_status);
@@ -4746,6 +4754,13 @@ const DisplayPartnerSession = (props) => {
if (mylocaltraining.prix_session)
setp_prix_session(mylocaltraining.prix_session);
+
+ if (mylocaltraining.price_by)
+ setp_prix_session_by(mylocaltraining.price_by);
+ else
+ setp_prix_session_by("");
+
+
if (mylocaltraining.distantiel) {
setp_session_distance(mylocaltraining.distantiel);
if (String(mylocaltraining.distantiel) === "1")
@@ -4947,6 +4962,7 @@ const DisplayPartnerSession = (props) => {
const [p_lms_class_code, setp_lms_class_code] = useState("");
const [p_nb_participant, setp_nb_participant] = useState("");
const [p_prix_session, setp_prix_session] = useState("");
+ const [p_prix_session_by, setp_prix_session_by] = useState("");
const [p_one_myclass_title, setp_one_myclass_title] = useState("");
@@ -4966,6 +4982,7 @@ const DisplayPartnerSession = (props) => {
const [p_one_lms_class_code, setp_one_lms_class_code] = useState("");
const [p_one_nb_participant, setp_one_nb_participant] = useState("");
const [p_one_prix_session, setp_one_prix_session] = useState("");
+ const [p_one_prix_session_by, setp_one_prix_session_by] = useState("");
const [p_one_session_ondemande, setp_one_session_ondemande] = useState("0");
const [p_one_session_ondemande_label, setp_one_session_ondemande_label] = useState("Non");
const [p_one_session_distance, setp_one_session_distance] = useState("0");
@@ -9321,6 +9338,11 @@ const DisplayPartnerSession = (props) => {
}
+ const New_Price_by = [
+ { "id": "persession", "label": "Par Session", "value": "persession" },
+ { "id": "perstagiaire", "label": "Par Stagiaire", "value": "perstagiaire" },
+ { "id": "", "label": "", "value": "" },
+ ]
return (
@@ -9970,9 +9992,9 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
+ />
}
/>
@@ -10911,7 +10933,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -10978,7 +11000,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -11046,7 +11068,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -11108,7 +11130,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -11240,7 +11262,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -11412,7 +11434,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -11477,7 +11499,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -11515,7 +11537,7 @@ const DisplayPartnerSession = (props) => {
className="disabled_style"
options={New_Getall_Partner_Site_Formation_result}
value={New_Getall_Partner_Site_Formation_result.filter((data) => (data)._id === String(p_session_site_formation_id))[0].label}
-
+
onChange={(event, value) => {
if (value && value._id && String(value._id).length > 2) {
@@ -11570,9 +11592,9 @@ const DisplayPartnerSession = (props) => {
}
}}
renderInput={(params) =>
+ />
}
/>}
}
@@ -11697,38 +11719,7 @@ const DisplayPartnerSession = (props) => {
}
- {/*edit_session_form && Prix session
+ {/*
Prix session
{
IssessionChanged();
}}
/>
+
*/}
+
+
Prix session
+
{
+ setp_prix_session(e.target.value);
+ IssessionChanged();
+ }}
+ />
+
+
+ {!edit_session_form && (data).value === String(p_prix_session_by))[0].label}
+ onChange={(e) => {
+ setp_prix_session(e.target.value);
+ IssessionChanged();
+ }}
+ />}
+
+
+ {edit_session_form && (data).value === String(p_prix_session_by))[0].label}
+
+ options={New_Price_by}
+ onChange={(event, value) => {
+ if (value && value.value) {
+
+ setp_prix_session_by(value.value);
+ IssessionChanged();
+ }
+
+ }}
+
+ renderInput={(params) =>
+ }
+ />}
@@ -12019,7 +12074,7 @@ const DisplayPartnerSession = (props) => {
renderInput={(params) =>
}
@@ -12081,7 +12136,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -12126,7 +12181,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -12171,7 +12226,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -12218,7 +12273,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -12263,7 +12318,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -12399,7 +12454,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -12441,7 +12496,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -12530,9 +12585,9 @@ const DisplayPartnerSession = (props) => {
}
}}
renderInput={(params) =>
+ />
}
/>}
@@ -12671,7 +12726,7 @@ const DisplayPartnerSession = (props) => {
}}
renderInput={(params) =>
}
@@ -12695,7 +12750,7 @@ const DisplayPartnerSession = (props) => {
/>
-