production/Controleur/ControleurFacturationgarant.php
2025-12-02 11:29:44 +00:00

39 lines
1.3 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Facturegarant.php';
class ControleurFacturationgarant extends Controleur
{
private $menuvue;
private $facture;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Facturationgarant");
$this->facture = new Facturegarant();
}
public function index()
{
$this->facture->initFiltreFactureGarant();
$listeGarants = $this->facture->getFactureGarant();
$nbreGarantsSelection = $this->facture->getNbreGarantsSelection();
$choixTousGarant = $this->facture->getChoixTousGarants();
$listeNatureFacture = $this->facture->getNatureFactureGarantTemp();
$nbreNatureFacSelection = $this->facture->getNbreNatureFactureSelection();
$choixToutesNaturesFacture = $this->facture->getChoixToutesNaturesFacture();
$this->genererVue(array('listeGarants' => $listeGarants,
'listeNatureFacture' => $listeNatureFacture, 'choixTousGarant' => $choixTousGarant,
'nbreGarantsSelection' => $nbreGarantsSelection, 'nbreNatureFacSelection' => $nbreNatureFacSelection,
'choixToutesNaturesFacture' => $choixToutesNaturesFacture
));
}
}