39 lines
1.1 KiB
PHP
Executable File
39 lines
1.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Facturegarant.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
|
|
class ControleurComptagarant extends Controleur
|
|
{
|
|
private $menuvue;
|
|
private $facture;
|
|
private $ouinon;
|
|
private $ouinonencaisser;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Comptagarant");
|
|
|
|
$this->facture = new Facturegarant();
|
|
$this->ouinonencaisser = (new Ouinon())->getListe();
|
|
|
|
}
|
|
public function index()
|
|
{
|
|
$this->facture->initFiltreFactureGarantEncaissement();
|
|
|
|
$listeGarants = $this->facture->getFactureGarant();
|
|
$nbreGarantsSelection = $this->facture->getNbreGarantsSelection();
|
|
|
|
$choixTousGarant = $this->facture->getChoixTousGarants();
|
|
|
|
$this->requete->getSession()->setAttribut('idEncaissementGarant_temp',"0");
|
|
|
|
|
|
$this->genererVue(array('listeGarants' => $listeGarants,
|
|
'choixTousGarant' => $choixTousGarant, 'ouinonencaisser' => $this->ouinonencaisser,
|
|
'nbreGarantsSelection' => $nbreGarantsSelection,
|
|
));
|
|
}
|
|
} |