From b91f523f18327eabbe89019731473b260262c713 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Wed, 24 Jun 2026 13:36:37 +0000 Subject: [PATCH] a --- Controleur/ControleurAjaxdetailprescription.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Controleur/ControleurAjaxdetailprescription.php b/Controleur/ControleurAjaxdetailprescription.php index bc04d41..bc23515 100755 --- a/Controleur/ControleurAjaxdetailprescription.php +++ b/Controleur/ControleurAjaxdetailprescription.php @@ -5,12 +5,14 @@ require_once 'Modele/Detailprescription.php'; require_once 'Modele/Menuvueutilisateur.php'; require_once 'Modele/Garantiesbaremepriseencharge.php'; require_once 'Modele/Ouinon.php'; +require_once 'Modele/Ged.php'; class ControleurAjaxdetailprescription extends Controleur { private $prescription; private $detailprescription; private $garantie; private $ouinonrenouvelable; + private $ged; public function __construct() { $this->prescription = new Prescription(); @@ -18,6 +20,7 @@ class ControleurAjaxdetailprescription extends Controleur { $this->garantie = new Garantiesbaremepriseencharge(); $this->ouinonrenouvelable = (new Ouinon())->getListe(); + $this->ged = new Ged(); } public function index() @@ -40,10 +43,10 @@ class ControleurAjaxdetailprescription extends Controleur { $this->garantie->getsourcebaremenew($idBeneficiaire, $codeActe, $datePrestation); - + $geds = $this->ged->getgedpharmacie(); $this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'montantTotalMedicament' => $montantTotalMedicament, - 'ouinonrenouvelable' => $this->ouinonrenouvelable)); + 'ouinonrenouvelable' => $this->ouinonrenouvelable, 'geds' => $geds)); } public function ajoutermedicament()