24/03/23 - 17h

recette2
cherif 2023-03-24 16:42:48 +01:00
parent 1f495cd53c
commit 3f201a51bd
1 changed files with 44 additions and 9 deletions

View File

@ -1286,6 +1286,11 @@ function GestionAdministrative(props) {
formateur = document.getElementById("formateur").value;
var lms_class_code = "";
if (document.getElementById("lms_class_code") && document.getElementById("lms_class_code").value != "")
lms_class_code = document.getElementById("lms_class_code").value;
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
const stored_cookie = getCookie('tokenmysypart');
@ -1303,6 +1308,7 @@ function GestionAdministrative(props) {
form.append("ville", ville);
form.append("code_session", code_session);
form.append("formateur", formateur);
form.append("lms_class_code", lms_class_code);
form.append("session_status", sessionStatus);
form.append("date_debut_inscription", format(SessionstartDateInscription, 'dd/MM/yyyy kk:mm:ss'));
form.append("date_fin_inscription", format(SessionendDateInscription, 'dd/MM/yyyy kk:mm:ss'));
@ -1443,6 +1449,11 @@ function GestionAdministrative(props) {
document.getElementsByName("formateur")[0].value = mylocaltraining.formateur;
}
document.getElementsByName("lms_class_code")[0].value = "";
if (mylocaltraining.lms_class_code) {
document.getElementsByName("lms_class_code")[0].value = mylocaltraining.lms_class_code;
}
document.getElementsByName("code_postal")[0].value = "";
if (mylocaltraining.code_postal)
document.getElementsByName("code_postal")[0].value = mylocaltraining.code_postal;
@ -1582,6 +1593,9 @@ function GestionAdministrative(props) {
document.getElementsByName("formateur")[0].disabled = true;
document.getElementsByName("formateur")[0].style.backgroundColor = "#ECEFF1";
document.getElementsByName("lms_class_code")[0].disabled = true;
document.getElementsByName("lms_class_code")[0].style.backgroundColor = "#ECEFF1";
document.getElementsByName("nb_participant")[0].disabled = true;
document.getElementsByName("nb_participant")[0].style.backgroundColor = "#ECEFF1";
@ -1623,6 +1637,9 @@ function GestionAdministrative(props) {
document.getElementsByName("ville")[0].disabled = false;
document.getElementsByName("ville")[0].style.backgroundColor = "#FFFFFF";
document.getElementsByName("lms_class_code")[0].disabled = false;
document.getElementsByName("lms_class_code")[0].style.backgroundColor = "#FFFFFF";
document.getElementsByName("formateur")[0].disabled = false;
document.getElementsByName("formateur")[0].style.backgroundColor = "#FFFFFF";
@ -2647,7 +2664,7 @@ function GestionAdministrative(props) {
}
async function actionmass_insc_Traitemet() {
async function actionmass_insc_Traitemet() {
var liste_formation = GetSelectedRows_Insc_Ids();
for (var i = 0; i < liste_formation.length; i++) {
@ -2709,7 +2726,7 @@ function GestionAdministrative(props) {
if (String(actionmass_emarg_val) === "demande emargement") {
ActionMassListEmargement();
}
await sleep(100)
await sleep(100)
}
setSelectionModel_emarg([]);
actionmass_emarg_val();
@ -2746,20 +2763,20 @@ function GestionAdministrative(props) {
const sleep = (milliseconds) => {
return new Promise(resolve => setTimeout(resolve, milliseconds))
}
}
async function actionmass_Evaluation_Traitemet() {
async function actionmass_Evaluation_Traitemet() {
var liste_formation = GetSelectedRows_Evaluation_Ids();
for (var i = 0; i < liste_formation.length; i++) {
var line = JSON.parse(rowss_evaluation[i]);
//console.log(" line = ", line);
var email = line.email;
if (String(actionmass_eval_val) === "demande evaluation") {
SendEvaluationEmail_One(email);
}
await sleep(100)
await sleep(100)
}
setSelectionModel_evaluation([]);
setactionmass_eval_val();
@ -3101,6 +3118,24 @@ function GestionAdministrative(props) {
/>
</div>
<div className="session_caract"> Code Formation LMS<br />
<i> (le code créé dans le LMS) </i>
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="lms_class_code"
id="lms_class_code"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
/>
</div>
<div className="session_caract"> Nombre participants *<br />
<TextField sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
@ -3269,13 +3304,13 @@ function GestionAdministrative(props) {
</div>}
</div>}
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>
</div>
</div>
</div>