examen = new Examen(); $this->prestationactes = new Prestationactes(); $this->garantie = new Garantie(); } public function index() { /* $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); $beneficiaire = $this->prestationactes->getInfoBeneficiaire($numeroBeneficiaire); $garanties = $this->garantie->getListePourActe(); */ $this->genererVueAjax(/*array('beneficiaire' => $beneficiaire, 'garanties' => $garanties)*/); } public function prestations() { $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); //$_SESSION['numeroBeneficiaire'] = $numeroBeneficiaire; $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); $d1 = $this->requete->getParametreDate("d1"); $d2 = $this->requete->getParametreDate("d2"); $garanties = $this->garantie->getListePourActe(); $historiqueprestations = $this->prestationactes->gethistoriqueprestation($numeroAdherent, $codeGarantie, $d1, $d2); $totalprestations = $this->prestationactes->gettotalprestation($numeroAdherent, $codeGarantie, $d1, $d2); $this->genererVueAjax(array('garanties' => $garanties,'historiqueprestations' => $historiqueprestations, 'totalprestations' => $totalprestations)); } public function majquantite() { $idExamen = $this->requete->getParametre("idExamen"); $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); $tm = intval($_SESSION['tm_C']); $this->examen->majquantite($idExamen, $quantite, $tm); $this->executerAction("index"); } public function supprimer() { $idExamen = $this->requete->getParametre("idExamen"); $this->examen->supprimerexamen($idExamen); $this->examen->updateexamen($_SESSION['numeroFeuilleMaladie_C']); $this->executerAction("index"); } public function gettotalprestation($numeroBeneficiaire, $codeGarantie, $d1, $d2) { $sql = 'call sp_get_total_historique_prestation(?, ?, ?, ?);'; $resultat = $this->executerRequete($sql, array($numeroBeneficiaire, $codeGarantie, $d1, $d2)); return $resultat->fetch(PDO::FETCH_ASSOC); } }