z
This commit is contained in:
parent
ad06037bdc
commit
c2633bda2f
32
Controleur/ControleurAjaxbeneficiaireprimeadherent.php
Normal file
32
Controleur/ControleurAjaxbeneficiaireprimeadherent.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Emission.php';
|
||||
|
||||
class ControleurAjaxbeneficiaireprimeadherent extends Controleur
|
||||
{
|
||||
private $emission;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->emission = new Emission();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
|
||||
$debutPeriode = $this->requete->getParametreDate("debutPeriode");
|
||||
$finPeriode = $this->requete->getParametreDate("finPeriode");
|
||||
|
||||
$beneficiaires = $this->emission->getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode);
|
||||
|
||||
$beneficiaires_total = null;
|
||||
|
||||
if(count($beneficiaires)>"0")
|
||||
{
|
||||
$beneficiaires_total = $beneficiaires['0'];
|
||||
}
|
||||
|
||||
$this->genererVueAjax(array('beneficiaires' => $beneficiaires, 'beneficiaires_total' => $beneficiaires_total));
|
||||
}
|
||||
}
|
||||
40
Controleur/ControleurBeneficiaireprimeadherent.php
Normal file
40
Controleur/ControleurBeneficiaireprimeadherent.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Emission.php';
|
||||
require_once 'Modele/Adherent.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
|
||||
class ControleurBeneficiaireprimeadherent extends Controleur
|
||||
{
|
||||
private $adherent;
|
||||
private $emission;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Beneficiaireprimeadherent");
|
||||
|
||||
$this->adherent = new Adherent();
|
||||
$this->emission = new Emission();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
|
||||
$adherent = $this->adherent->getAdherentId($idAdherent);
|
||||
$debutPeriode = $adherent['dateEffetAdherent'];
|
||||
$finPeriode = $adherent['dateFinPolice'];
|
||||
|
||||
$beneficiaires = $this->emission->getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode);
|
||||
|
||||
$beneficiaires_total = null;
|
||||
|
||||
if(count($beneficiaires)>"0")
|
||||
{
|
||||
$beneficiaires_total = $beneficiaires['0'];
|
||||
}
|
||||
|
||||
$this->genererVue(array('adherent' => $adherent, 'beneficiaires' => $beneficiaires, 'beneficiaires_total' => $beneficiaires_total));
|
||||
}
|
||||
}
|
||||
25
Vue/Beneficiaireprimeadherent/index.php
Normal file
25
Vue/Beneficiaireprimeadherent/index.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
$this->titre = "INTER-SANTE - Fiche Emission";
|
||||
|
||||
?>
|
||||
|
||||
<legend> <?= _("Détail des primes de la famille") ?> </legend>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="10%" > <?= _("Période du") ?> </td>
|
||||
<td width="15%"> <INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="debutPeriode" NAME="debutPeriode" value="<?= dateLang($this->nettoyer($adherent['dateEffet'])) ?>" > </td>
|
||||
|
||||
<td align="center" > <?= _("au") ?> </td>
|
||||
<td width="15%"> <INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="finPeriode" NAME="finPeriode" value="<?= dateLang($this->nettoyer($adherent['dateFinPolice'])) ?>" > </td>
|
||||
|
||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:afficher_beneficiare_prime_adherent();"> <?= _("Actualiser...") ?> </button> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_detail_requete">
|
||||
<?php require "Vue/Ajaxbeneficiaireprimeadherent/index.php";?>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user