From 74dfaac38c5bff4b55ab5bdfe716c84df611c605 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sun, 19 Jul 2026 13:16:34 +0000 Subject: [PATCH] a --- Controleur/ControleurDentisterie.php | 6 ++++-- Modele/Dentaire.php | 12 ++++++++++++ Vue/Dentisterie/index.php | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Controleur/ControleurDentisterie.php b/Controleur/ControleurDentisterie.php index b2fde87..0570514 100755 --- a/Controleur/ControleurDentisterie.php +++ b/Controleur/ControleurDentisterie.php @@ -49,7 +49,7 @@ class ControleurDentisterie extends Controleur { $_SESSION['p_datePrestation'] = $datePrestation; - $actes = array(); //$this->obs->getactesdentisterie($datePrestation); + $actes = array(); $medecins = $this->medecin->getpraticiensprestataireconsultation($codePrestataire, $codeSpecialite); @@ -76,11 +76,13 @@ class ControleurDentisterie extends Controleur { $prixActeModifiable = $this->acte->getPrixActeModifiable(); $_SESSION['p_prixActeModifiable'] = $prixActeModifiable; + + $numeroDentObligatoire = $this->obs->get_numero_dent_obligatoire(); $this->genererVue(array('actes' => $actes, 'dents' => $dents, 'prestations' => $prestations, 'prestations_total' => $prestations_total, 'nbreProthese' => $nbreProthese, 'typesactes' => $typesactes, 'tauxCouverture' => $tauxCouverture, 'datePrestation' => $datePrestation, 'medecins' => $medecins, - 'dentiste' => $dentiste, 'prixActeModifiable' => $prixActeModifiable)); + 'dentiste' => $dentiste, 'prixActeModifiable' => $prixActeModifiable, 'numeroDentObligatoire' => $numeroDentObligatoire)); } diff --git a/Modele/Dentaire.php b/Modele/Dentaire.php index bba4924..b00ce59 100755 --- a/Modele/Dentaire.php +++ b/Modele/Dentaire.php @@ -247,4 +247,16 @@ class Dentaire extends Modele { $this->executerRequete($sql, array($numeroFeuilleMaladie, $codePrestataire, $user, $idSaisie, $idDentisterie, $prixSaisi)); } + + public function get_numero_dent_obligatoire() + { + $sql = 'SELECT fn_numero_dent_obligatoire() AS numeroDentObligatoire;'; + + $resultat = $this->executerRequete($sql)->fetch(PDO::FETCH_ASSOC); + + $numeroDentObligatoire = $resultat['numeroDentObligatoire']; + + return $numeroDentObligatoire; + } + } \ No newline at end of file diff --git a/Vue/Dentisterie/index.php b/Vue/Dentisterie/index.php index 3ad6b73..8eb599d 100755 --- a/Vue/Dentisterie/index.php +++ b/Vue/Dentisterie/index.php @@ -13,6 +13,8 @@ $token = $_SESSION['csrf_token_submieted']; ?> +numeroDentObligatoire => +