From 4b9e5f08ea88113aa7770643f0cb4015ce79ffcd Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 4 Apr 2026 16:32:51 +0000 Subject: [PATCH] a --- Controleur/ControleurAjaxdemanderdv.php | 7 + Controleur/ControleurConnexion.php | 1 - Js/fonctions.js | 27 ++- Modele/Rendezvous.php | 13 ++ .../listerdemandesconsultation.php | 217 ++++++++++++++++++ 5 files changed, 262 insertions(+), 3 deletions(-) create mode 100755 Vue/Ajaxdemanderdv/listerdemandesconsultation.php diff --git a/Controleur/ControleurAjaxdemanderdv.php b/Controleur/ControleurAjaxdemanderdv.php index 232d781..7fbb3c4 100755 --- a/Controleur/ControleurAjaxdemanderdv.php +++ b/Controleur/ControleurAjaxdemanderdv.php @@ -50,4 +50,11 @@ class ControleurAjaxdemanderdv extends Controleur { $this->rendezvous->refuserrdv($numeroDemandeRdv, $motifReponseRdv); } } + + public function listerdemandesconsultation() + { + $demandes = $this->rendezvous->getDemandesConsultation(); + $this->genererVueAjax(array('demandes' => $demandes)); + } + } \ No newline at end of file diff --git a/Controleur/ControleurConnexion.php b/Controleur/ControleurConnexion.php index daa5cce..f639d72 100755 --- a/Controleur/ControleurConnexion.php +++ b/Controleur/ControleurConnexion.php @@ -192,7 +192,6 @@ class ControleurConnexion extends Controleur // Gestion limite usage $dateLimiteUsage = $utilisateur['dateLimiteUsage']; $dateLimiteUsage_0 = getMoritio_0(); - // $dateLimiteUsage_2 = getMoritio_2(); $dateLimiteUsage_2 = getMoritio_2($codeSociete); if($dateLimiteUsage<$dateLimiteUsage_0) diff --git a/Js/fonctions.js b/Js/fonctions.js index d9f27e7..0544156 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -27377,8 +27377,6 @@ function afficherMasquerEnteteProforma() function listerrdv() { - - d1 = $("#d1").val(); d2 = $("#d2").val(); @@ -28816,3 +28814,28 @@ async function ajouter_un_acte_miseenobservation(codeActe, prixBase, prixActe, e console.error("Erreur lors de l'ajout de l'acte:", error); } } + +function listerdemandesconsultation() +{ + d1 = $("#d1").val(); + d2 = $("#d2").val(); + + donnees = 'd1='+ d1+'&d2='+d2; + + $("#div_dossiers").html('
' + '' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxdemanderdv/listerdemandesconsultation/", + type: 'POST', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + // alert(data); + $('#div_dossiers').html(data); + }, + complete: function() { + + } + }); +} diff --git a/Modele/Rendezvous.php b/Modele/Rendezvous.php index 1397a24..0e381e4 100755 --- a/Modele/Rendezvous.php +++ b/Modele/Rendezvous.php @@ -81,5 +81,18 @@ class Rendezvous extends Modele { $this->executerRequete($sql,array($numeroDemandeRdv, $user, $motifReponseRdv)); } + + public function getDemandesConsultation() + { + $demandeEffectuee = contruireParamLike($demandeEffectuee); + + $codePrestataire = $_SESSION['p_codePrestataire_C']; + + $sql = 'call sp_get_demande_consultation_prestataire(?, ?)'; + + $resultat = $this->executerRequete($sql, array($codePrestataire,$demandeEffectuee)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Vue/Ajaxdemanderdv/listerdemandesconsultation.php b/Vue/Ajaxdemanderdv/listerdemandesconsultation.php new file mode 100755 index 0000000..788b4fb --- /dev/null +++ b/Vue/Ajaxdemanderdv/listerdemandesconsultation.php @@ -0,0 +1,217 @@ +
+
+
+ + + +
+
+ +
+
+ + + + + + + + + + + + + + + + 0): ?> + nettoyer($v['id']); + $numeroDemandeConsultation = $this->nettoyer($v['numeroDemandeConsultation']); + $dateSysteme = $this->nettoyer($v['dateSysteme']); + $effectuee = $this->nettoyer($v['effectuee']); + $prestataire = $this->nettoyer($v['prestataire']); + $specialite = $this->nettoyer($v['specialite']); + $demandeExpiree = $this->nettoyer($v['demandeExpiree']); + + if($effectuee=="1"){ + if (est_anglophone()){ + $demandeEffectuee = "Yes"; + }else{ + $demandeEffectuee = "Oui"; + } + }else{ + if (est_anglophone()){ + $demandeEffectuee = "No"; + }else{ + $demandeEffectuee = "Non"; + } + } + + if (est_anglophone()){ + $specialite = $this->nettoyer($v['specialiteEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + +
Date
nettoyer($v['numeroBeneficiaire']) ?>nettoyer($v['beneficiaire']) ?> + + + + + + + + + + + nettoyer($v['motifConsultation']) ?> + nettoyer($v['heureExpiration']), $_SESSION['lang']) ?>nettoyer($v['heureExpiration']), $_SESSION['lang']) ?>
+
+ + + + +
+
+
+
+ +
+ nettoyer($v['id']); + $numeroDemandeConsultation = $this->nettoyer($v['numeroDemandeConsultation']); + $dateSysteme = $this->nettoyer($v['dateSysteme']); + $effectuee = $this->nettoyer($v['effectuee']); + $prestataire = $this->nettoyer($v['prestataire']); + $specialite = $this->nettoyer($v['specialite']); + $demandeExpiree = $this->nettoyer($v['demandeExpiree']); + $heureExpiration = $this->nettoyer($v['heureExpiration']); + + if($effectuee=="1"){ + if (est_anglophone()){ + $demandeEffectuee = "Yes"; + }else{ + $demandeEffectuee = "Oui"; + } + }else{ + if (est_anglophone()){ + $demandeEffectuee = "No"; + }else{ + $demandeEffectuee = "Non"; + } + } + + if (est_anglophone()){ + $specialite = $this->nettoyer($v['specialiteEng']); + $etatRdv = $this->nettoyer($v['etatRdvEng']); + } + ?> +
+
+
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + nettoyer($v['beneficiaire'])." (".$this->nettoyer($v['numeroBeneficiaire']).")" ?> + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + + + + + +
+
+ +
+ +
+ +
+
+ + + + + + + + + + +
+
+ +
+
+ +
+