diff --git a/Js/fonctions.js b/Js/fonctions.js
index 722b783..850d2aa 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -18827,11 +18827,7 @@ function patience_connexion(){
function enregistrer_demande_consultation()
{
- alert("enregistrer_demande_consultation");
-
numeroBeneficiaire = $("#numeroBeneficiaire").val();
- debutRdv = $("#debutRdv").val();
- finRdv = $("#finRdv").val();
codePrestataire = $("#codePrestataire").val();
codeSpecialite = $("#codeSpecialite").val();
@@ -18845,26 +18841,6 @@ function enregistrer_demande_consultation()
return;
}
- if (debutRdv<=" ")
- {
- v_msg="La date de début de rendez-vous est obligatoire!";
- v_msgEng="The appointment start date is mandatory!";
- alert_ebene(v_msg, v_msgEng);
-
- $("#debutRdv").focus();
- return;
- }
-
- if (finRdv<=" ")
- {
- v_msg="La motif de fin de rendez-vous est obligatoire!";
- v_msgEng="The end date of the appointment is mandatory!";
- alert_ebene(v_msg, v_msgEng);
-
- $("#finRdv").focus();
- return;
- }
-
if (codePrestataire<=" ")
{
v_msg="Sélectionner un prestataire pour le rendez-vous!";
@@ -18885,20 +18861,20 @@ function enregistrer_demande_consultation()
return;
}
- motifRdv = $("#motifRdv").val();
- motifRdv = motifRdv.trim();
+ motifConsultation = $("#motifConsultation").val();
+ motifConsultation = motifConsultation.trim();
- if (motifRdv<=" ")
+ if (motifConsultation<=" ")
{
- v_msg="Le motif de rendez-vous est obligatoire!";
- v_msgEng="The reason for the appointment is mandatory!";
+ $("#motifConsultation").focus();
+
+ v_msg="Le motif de la consultation est obligatoire!";
+ v_msgEng="The reason for the consultation is mandatory!";
alert_ebene(v_msg, v_msgEng);
- $("#motifRdv").focus();
return;
}
-
v_msg="Confirmez-vous l'enregistrement de votre demande?";
v_msgEng="Do you confirm the registration of your request?";
@@ -18906,9 +18882,13 @@ function enregistrer_demande_consultation()
.then((isConfirmed) => {
if (isConfirmed) {
// L'utilisateur a confirmé
- donnees = 'numeroBeneficiaire='+ numeroBeneficiaire+'&debutRdv='+debutRdv;
- donnees += '&finRdv='+finRdv+'&codePrestataire='+codePrestataire;
- donnees += '&codeSpecialite='+codeSpecialite+'&motifRdv='+motifRdv;
+ donnees = 'numeroBeneficiaire='+ numeroBeneficiaire;
+ donnees += '&codePrestataire='+codePrestataire;
+ donnees += '&codeSpecialite='+codeSpecialite;
+ donnees += '&motifConsultation='+motifConsultation;
+
+ alert(donnees);
+ return;
vLink = "Ajaxdemanderdv/enregistrer/";
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index 49077a3..edfa74c 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -522,7 +522,7 @@
-
+