DSQDQ
parent
910797ea9e
commit
c5d3988669
|
|
@ -2304,12 +2304,17 @@ const AddClassManual = (props) => {
|
|||
|
||||
|
||||
if (mylocaltraining.duration) {
|
||||
// document.getElementsByName("duree")[0].value = mylocaltraining.duration;
|
||||
setp_detail_duree(mylocaltraining.duration);
|
||||
}
|
||||
else
|
||||
setp_detail_duree("");
|
||||
|
||||
if (mylocaltraining.duration_operationnelle) {
|
||||
setp_detail_duree_operationnelle(mylocaltraining.duration_operationnelle);
|
||||
}
|
||||
else
|
||||
setp_detail_duree_operationnelle("0");
|
||||
|
||||
|
||||
//document.getElementsByName("mots_cle")[0].value = "";
|
||||
if (mylocaltraining.mots_cle) {
|
||||
|
|
@ -2795,6 +2800,7 @@ const AddClassManual = (props) => {
|
|||
formData.append('price', price);
|
||||
formData.append('duration', duree);
|
||||
formData.append('duration_unit', mytrainingdurationunit);
|
||||
formData.append('duration_operationnelle', p_detail_duree_operationnelle);
|
||||
formData.append('url', url);
|
||||
formData.append('lms_class_code', lms_class_code);
|
||||
formData.append('class_inscription_url', class_inscription_url);
|
||||
|
|
@ -4689,6 +4695,10 @@ const AddClassManual = (props) => {
|
|||
const [p_detail_external_code, setp_detail_external_code] = useState("");
|
||||
const [p_detail_title, setp_detail_title] = useState("");
|
||||
const [p_detail_duree, setp_detail_duree] = useState("");
|
||||
|
||||
const [p_detail_duree_operationnelle, setp_detail_duree_operationnelle] = useState("");
|
||||
|
||||
|
||||
const [p_detail_url, setp_detail_url] = useState("");
|
||||
const [p_detail_lms_class_code, setp_detail_lms_class_code] = useState("");
|
||||
|
||||
|
|
@ -9290,7 +9300,8 @@ const AddClassManual = (props) => {
|
|||
</div>}
|
||||
|
||||
|
||||
{New_Getall_Parter_bloc_competence_result && New_Getall_Parter_bloc_competence_result.length > 0 &&
|
||||
{props.class_is_ftion_initiale && props.class_is_ftion_initiale === "1" &&
|
||||
New_Getall_Parter_bloc_competence_result && New_Getall_Parter_bloc_competence_result.length > 0 &&
|
||||
<div className="training_caract">
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
|
|
@ -9443,7 +9454,33 @@ const AddClassManual = (props) => {
|
|||
}
|
||||
/>
|
||||
</div>
|
||||
{props.class_is_ftion_initiale && props.class_is_ftion_initiale === "1" && <>
|
||||
<div className="diw_row">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div className="training_caract">
|
||||
|
||||
<TextField
|
||||
name="duree"
|
||||
label="Durée opérationnelle (h)"
|
||||
type="number"
|
||||
InputLabelProps={{
|
||||
shrink: true,
|
||||
}}
|
||||
disabled={!Boolean(props.check_user_acces_right("formation", "write"))}
|
||||
className="disabled_style"
|
||||
value={p_detail_duree_operationnelle}
|
||||
onChange={(e) => {
|
||||
setp_detail_duree_operationnelle(e.target.value);
|
||||
}
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
</>}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -895,7 +895,7 @@ const Module_Absence = (props) => {
|
|||
const [Get_ENT_Apprenant_Total_Heure_result, setGet_ENT_Apprenant_Total_Heure_result] = useState();
|
||||
function Get_ENT_Apprenant_Total_Heure(event) {
|
||||
|
||||
setlocal_heure_non_justifie();
|
||||
setlocal_heure_non_justifie();
|
||||
|
||||
var form = new FormData();
|
||||
const stored_cookie = getCookie('tokenmysypart');
|
||||
|
|
@ -1315,55 +1315,103 @@ const Module_Absence = (props) => {
|
|||
/>
|
||||
|
||||
</div>
|
||||
<nav style={{ "float": "left", "width": "100%" }}>
|
||||
<div className="session_caract_Dialog" style={{ width: '50%' }}> Promotion <br />
|
||||
{New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 &&
|
||||
|
||||
<div className="session_caract_Dialog" > Promotion <br />
|
||||
{New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 &&
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
name="detail_classe"
|
||||
id="detail_classe"
|
||||
// className="disabled_style"
|
||||
//className="disabled_style enable_style"
|
||||
// options={New_Getall_Partner_Session_Reduice_Fields_result}
|
||||
options={New_Getall_Partner_Session_Reduice_Fields_result}
|
||||
fullWidth
|
||||
value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id))[0].label}
|
||||
onChange={(event, value) => {
|
||||
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
name="detail_classe"
|
||||
id="detail_classe"
|
||||
// className="disabled_style"
|
||||
//className="disabled_style enable_style"
|
||||
// options={New_Getall_Partner_Session_Reduice_Fields_result}
|
||||
options={New_Getall_Partner_Session_Reduice_Fields_result}
|
||||
fullWidth
|
||||
value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id))[0].label}
|
||||
onChange={(event, value) => {
|
||||
|
||||
setp_detail_data_changed("1");
|
||||
if (value && value._id) {
|
||||
setp_detail_session_id(value._id);
|
||||
} else {
|
||||
setp_detail_session_id("");
|
||||
}
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
sx={{
|
||||
"& .MuiOutlinedInput-root": {
|
||||
"& fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
"&:hover fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
"&.Mui-focused fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
},
|
||||
setp_detail_data_changed("1");
|
||||
if (value && value._id) {
|
||||
setp_detail_session_id(value._id);
|
||||
} else {
|
||||
setp_detail_session_id("");
|
||||
}
|
||||
}}
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
sx={{
|
||||
"& .MuiOutlinedInput-root": {
|
||||
"& fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
"&:hover fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
"&.Mui-focused fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
},
|
||||
}}
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="session_caract_Dialog" style={{ width: '50%' }}> UEEE XXX ou Sequence ? <br />
|
||||
{New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 &&
|
||||
|
||||
<Autocomplete
|
||||
disablePortal
|
||||
name="detail_classe"
|
||||
id="detail_classe"
|
||||
// className="disabled_style"
|
||||
//className="disabled_style enable_style"
|
||||
// options={New_Getall_Partner_Session_Reduice_Fields_result}
|
||||
options={New_Getall_Partner_Session_Reduice_Fields_result}
|
||||
fullWidth
|
||||
value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id))[0].label}
|
||||
onChange={(event, value) => {
|
||||
|
||||
setp_detail_data_changed("1");
|
||||
if (value && value._id) {
|
||||
setp_detail_session_id(value._id);
|
||||
} else {
|
||||
setp_detail_session_id("");
|
||||
}
|
||||
}}
|
||||
|
||||
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||
sx={{
|
||||
"& .MuiOutlinedInput-root": {
|
||||
"& fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
"&:hover fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
"&.Mui-focused fieldset": {
|
||||
border: "solid #e8eef6 1px;",
|
||||
},
|
||||
},
|
||||
}}
|
||||
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</nav>
|
||||
<nav style={{ "float": "left", "width": "100%" }}>
|
||||
<div className="session_caract_Dialog" style={{ width: '50%' }}> Debut <br />
|
||||
<DatePicker
|
||||
|
|
|
|||
|
|
@ -1398,7 +1398,7 @@ const Module_Session_Planification = (props) => {
|
|||
}
|
||||
|
||||
form.append("tab_grp_apprenant_ids", tab_grp_apprenant_ids);
|
||||
|
||||
form.append("domaine_competence_id", p_detail_sequence_domaine_competence_id);
|
||||
// console.log(" form == ", form);
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Session_Sequence_Return_New_Seq_Data/";
|
||||
|
|
@ -1824,7 +1824,7 @@ const Module_Session_Planification = (props) => {
|
|||
local_session_color = "#3573CB"
|
||||
}
|
||||
|
||||
console.log(" ## PROMO local_session_color = ", local_session_color)
|
||||
// console.log(" ## PROMO local_session_color = ", local_session_color)
|
||||
//---
|
||||
var node = {
|
||||
"_id": local_id,
|
||||
|
|
@ -3883,7 +3883,7 @@ const Module_Session_Planification = (props) => {
|
|||
setNew_Getall_Session_List_UE_result(new_data2);
|
||||
setDistinct_UE_New_Getall_Session_List_UE_result(new_data2_Distinct_UE);
|
||||
|
||||
// console.log(" ### new_data2_Distinct_UE = ", new_data2_Distinct_UE);
|
||||
// console.log(" ### new_data2_Distinct_UE = ", new_data2_Distinct_UE);
|
||||
}
|
||||
else {
|
||||
setGetall_Session_List_UE_api("false");
|
||||
|
|
@ -5461,7 +5461,7 @@ const Module_Session_Planification = (props) => {
|
|||
|
||||
<nav style={{ "float": "left", "width": "100%" }}>
|
||||
|
||||
<div className="session_caract_Dialog" style={{ width: '50%' }}> UE / Matière
|
||||
<div className="session_caract_Dialog" style={{ width: '50%' }}> UE / Matière
|
||||
|
||||
{New_Getall_Session_List_UE_result && New_Getall_Session_List_UE_result.length > 0 && <Autocomplete
|
||||
disablePortal
|
||||
|
|
@ -5507,7 +5507,7 @@ const Module_Session_Planification = (props) => {
|
|||
onChange={(event, value) => {
|
||||
if (value && value._id) {
|
||||
setp_detail_sequence_ue_planif_line_id(value._id);
|
||||
if (value.in_use === "1") {
|
||||
if (value.in_use === "1") {
|
||||
seteu_planif_line_insdispo("1");
|
||||
} else {
|
||||
seteu_planif_line_insdispo("");
|
||||
|
|
@ -7256,7 +7256,7 @@ const Module_Session_Planification = (props) => {
|
|||
</div>
|
||||
|
||||
<nav style={{ "float": "left", "width": "100%" }}>
|
||||
<div className="session_caract_Dialog" style={{ width: '50%' }}> UE / Matière
|
||||
<div className="session_caract_Dialog" style={{ width: '50%' }}> UE / Matière
|
||||
|
||||
|
||||
{Distinct_UE_New_Getall_Session_List_UE_result && Distinct_UE_New_Getall_Session_List_UE_result.length > 0 &&
|
||||
|
|
@ -7275,7 +7275,7 @@ const Module_Session_Planification = (props) => {
|
|||
setp_detail_sequence_ue_id(value._id);
|
||||
Get_List_Given_UE_Planif_lines(value._id);
|
||||
setp_detail_sequence_title(Distinct_UE_New_Getall_Session_List_UE_result.filter((data) => (data)._id === String(value._id))[0].label);
|
||||
console.log(" domaine_competence_id = ", value.domaine_competence_id);
|
||||
// console.log(" domaine_competence_id = ", value.domaine_competence_id);
|
||||
setp_detail_sequence_domaine_competence_id(value.domaine_competence_id);
|
||||
} else {
|
||||
setp_detail_sequence_ue_id("");
|
||||
|
|
@ -8003,7 +8003,7 @@ const Module_Session_Planification = (props) => {
|
|||
{display_view && String(display_view) === "planning" && Getall_Sequence_Of_Session_result_planning_view &&
|
||||
<div style={{ "border": "None" }} >
|
||||
|
||||
|
||||
|
||||
|
||||
<div style={{ "width": "98%", "marginLeft": "5px", padding: '10px', fontFamily: 'DM Sans', fontSize: '14px', background: '#FFF' }} >
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue