diff --git a/Controleur/ControleurAjaximporterlisteassure.php b/Controleur/ControleurAjaximporterlisteassure.php index 259ae03..6cee698 100644 --- a/Controleur/ControleurAjaximporterlisteassure.php +++ b/Controleur/ControleurAjaximporterlisteassure.php @@ -218,7 +218,7 @@ class ControleurAjaximporterlisteassure extends Controleurrequete public function traiterlignesimportees() { $idPolice = $_SESSION['idPolice_C']; - $avenants = $this->avenant->getAvenant($idPolice); + $avenants = $this->avenant->getAvenantClient($idPolice); $this->genererVueAjax(array('avenants' => $avenants)); } diff --git a/Modele/Avenant.php b/Modele/Avenant.php index 53ab7bc..7393616 100644 --- a/Modele/Avenant.php +++ b/Modele/Avenant.php @@ -4,7 +4,15 @@ class Avenant extends Modele { public function getAvenant($idPolice) { - // $sql = 'call sp_avenants_police(?)'; + $sql = 'call sp_avenants_police(?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getAvenantClient($idPolice) + { $sql = 'call sp_avenants_police_client(?)'; $resultat = $this->executerRequete($sql, array($idPolice)); @@ -12,7 +20,7 @@ class Avenant extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } - public function getAvenantNonFactures($idPolice) + public function getAvenantNonFactures($idPolice) { $sql = 'call sp_avenants_non_factures_police(?)'; diff --git a/Vue/Mouvementassure/index.php b/Vue/Mouvementassure/index.php index 43e1b1e..21f20e1 100644 --- a/Vue/Mouvementassure/index.php +++ b/Vue/Mouvementassure/index.php @@ -1,8 +1,8 @@ titre = "Intersanté - Médicaments soumis à entente préalable"; + $this->titre = "Intersanté - Mouvements sur les assurés"; ?> - +