diff --git a/Controleur/ControleurAjaxhistoriqueprestation.php b/Controleur/ControleurAjaxhistoriqueprestation.php index dd0cee5..1583768 100755 --- a/Controleur/ControleurAjaxhistoriqueprestation.php +++ b/Controleur/ControleurAjaxhistoriqueprestation.php @@ -33,26 +33,17 @@ class ControleurAjaxhistoriqueprestation extends Controleur { 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); + $historiqueprestations = $this->prestationactes->gethistoriqueprestation($d1, $d2); + $totalprestations = $this->prestationactes->gettotalprestation($d1, $d2); $this->genererVueAjax(array('garanties' => $garanties,'historiqueprestations' => $historiqueprestations, 'totalprestations' => $totalprestations)); - } public function majquantite() diff --git a/Js/fonctions.js b/Js/fonctions.js index 3cfc8eb..09005c3 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -16956,15 +16956,12 @@ function afficherMasquerGaranties() } -function afficherhistoriqueadherent(numeroAdherent){ - debugger; +function afficherhistoriqueadherent() +{ d1=$("#d1").val(); d2=$("#d2").val(); - codeGarantie=$("#codeGarantie").val(); - - donnees = "numeroAdherent="+numeroAdherent+"&codeGarantie="+codeGarantie; - donnees += '&d1='+d1+'&d2='+d2; + donnees = 'd1='+d1+'&d2='+d2; $("#div_prestation").html('