diff --git a/Controleur/ControleurSelectactesmedicaux.php b/Controleur/ControleurSelectactesmedicaux.php index 817de00..b2a56dd 100644 --- a/Controleur/ControleurSelectactesmedicaux.php +++ b/Controleur/ControleurSelectactesmedicaux.php @@ -15,7 +15,8 @@ class ControleurSelectactesmedicaux extends Controleur { $codePrestataire = $_SESSION['p_codePrestataire_C']; $codeTypePrestation = "ACT"; - $this->familleacte = (new Familleacte())->getListeComplet(); + // $this->familleacte = (new Familleacte())->getListeComplet(); + $this->familleacte = (new Familleacte())->getListeExclusion(); $this->prestation = new Prestationactes(); } @@ -25,6 +26,7 @@ class ControleurSelectactesmedicaux extends Controleur { $prestations = $this->prestation->getactesmedicauxfeuille($numeroFeuilleMaladie, $codePrestataire); $prestations_total = $this->prestation->getactesmedicauxfeuille_total($numeroFeuilleMaladie, $codePrestataire); + $this->genererVue(array('familleacte' => $this->familleacte, 'prestations' => $prestations, 'prestations_total' => $prestations_total)); } } \ No newline at end of file diff --git a/Modele/Familleacte.php b/Modele/Familleacte.php index 05bc210..af8f6e7 100644 --- a/Modele/Familleacte.php +++ b/Modele/Familleacte.php @@ -77,4 +77,25 @@ class Familleacte extends Modele { return $liste->fetchAll(PDO::FETCH_ASSOC); } } + + public function getListeExclusion() + { + $codeTarifActe = $_SESSION['p_codeTarifActe_C']; + $codePrestataire = $_SESSION['p_codePrestataire_C']; + $hospitalisation = $_SESSION['p_hospitalisation_C']; + + if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US") + { + $sql = 'CALL sp_p_liste_actes_examens_exclusion_eng(?, ?, ?);'; + } + else + { + $sql = 'CALL sp_p_liste_actes_examens_exclusion(?, ?, ?);'; + } + + $liste = $this->executerRequete($sql, array($codeTarifActe, $codePrestataire, $hospitalisation)); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + } \ No newline at end of file