diff --git a/Controleur/ControleurAjaxhistoriqueprestation.php b/Controleur/ControleurAjaxhistoriqueprestation.php index 1583768..c6a3fa1 100755 --- a/Controleur/ControleurAjaxhistoriqueprestation.php +++ b/Controleur/ControleurAjaxhistoriqueprestation.php @@ -78,4 +78,18 @@ class ControleurAjaxhistoriqueprestation extends Controleur { return $resultat->fetch(PDO::FETCH_ASSOC); } + + public function factures() + { + $d1 = $this->requete->getParametreDate("d1"); + $d2 = $this->requete->getParametreDate("d2"); + + $historiqueprestations = $this->prestationactes->gethistoriquefactures($d1, $d2); + + $totalprestations = $this->prestationactes->gettotalfactures($d1, $d2); + + $this->genererVueAjax(array('historiqueprestations' => $historiqueprestations, + 'totalprestations' => $totalprestations)); + } + } \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index 91a07bd..a347d9b 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -18816,4 +18816,35 @@ function accueilassure(){ $("#contenu").html('
' + '' + '
'); window.location.assign($("#racineWeb" ).val()+"Accueilassure/"); -} \ No newline at end of file +} + +function afficherhistoriquefactures() +{ + d1=$("#d1").val(); + d2=$("#d2").val(); + + donnees = 'd1='+d1+'&d2='+d2; + + $("#div_prestation").html('
' + '' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhistoriqueprestation/factures/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + $("#div_prestation").html(data); + + setTimeout(function() { + functionDataTable(); + }, 1000); + + + }, + complete: function() { + + } + }); + +} diff --git a/Modele/Prestationactes.php b/Modele/Prestationactes.php index b39ca0e..fbb29ac 100755 --- a/Modele/Prestationactes.php +++ b/Modele/Prestationactes.php @@ -395,5 +395,23 @@ class Prestationactes extends Modele { return $resultat->fetch(PDO::FETCH_ASSOC); } + + public function gethistoriquefactures($d1, $d2) + { + $sql = 'call sp_a_get_historique_factures_adherent(?, ?, ?);'; + + $resultat = $this->executerRequete($sql, array($_SESSION['idAdherent_C'], $d1, $d2)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function gettotalfactures($d1, $d2) + { + $sql = 'call sp_get_total_historique_factures_adherent(?, ?, ?);'; + + $resultat = $this->executerRequete($sql, array($_SESSION['idAdherent_C'], $d1, $d2)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Vue/Accueilassure/index.php b/Vue/Accueilassure/index.php index 7b7a901..8897486 100755 --- a/Vue/Accueilassure/index.php +++ b/Vue/Accueilassure/index.php @@ -430,7 +430,7 @@

- +

diff --git a/Vue/Ajaxhistoriqueprestation/factures.php b/Vue/Ajaxhistoriqueprestation/factures.php new file mode 100755 index 0000000..bbf0943 --- /dev/null +++ b/Vue/Ajaxhistoriqueprestation/factures.php @@ -0,0 +1,98 @@ + +
+
+ + + +
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Date
nettoyer($prestation['dateSysteme']), $_SESSION['lang']) ?> nettoyer($prestation['prestataire']); ?> nettoyer($prestation['patient']); ?> nettoyer($prestation['fraisReel'])) ?> nettoyer($prestation['montantTm'])) ?> nettoyer($prestation['montantArembourser'])) ?>
+
+
+ + +
+ +
+
+
+
+ + nettoyer($prestation['dateSysteme']), $_SESSION['lang']) ?> +
+
+ +
+
+ + nettoyer($prestation['prestataire']),0, 32) ?> +
+
+ +
+
+ + nettoyer($prestation['patient']),0,32) ?> +
+
+
+ +
+
+
+ + nettoyer($prestation['fraisReel'])) ?> +
+
+
+
+ + nettoyer($prestation['montantTm'])) ?> +
+
+ +
+
+ + nettoyer($prestation['montantArembourser'])) ?> +
+
+
+
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxhistoriqueprestation/index.php b/Vue/Ajaxhistoriqueprestation/index.php index a6e3d71..b1f9639 100755 --- a/Vue/Ajaxhistoriqueprestation/index.php +++ b/Vue/Ajaxhistoriqueprestation/index.php @@ -1,67 +1,3 @@ - \ No newline at end of file