a
This commit is contained in:
parent
f9f3ba5cf8
commit
c4a5ba76ed
|
|
@ -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/";
|
||||
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@
|
|||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
|
||||
<script src="Js/fonctions.js?ver=2026.04.04.00"></script>
|
||||
<script src="Js/fonctions.js?ver=2026.04.04.01"></script>
|
||||
<script src="Bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user