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

44 lines
1.3 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Facturegarant.php';
class ControleurFichefacturegarant extends Controleur
{
private $menuvue;
private $facture;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Fichefacturegarant");
$this->facture = new Facturegarant();
}
public function index()
{
$idEntetefacturegarant = $_SESSION['idEntetefacturegarant_F'];
//$chemin = $this->menuvue->getChemin('Fichefacturegarant');
$facturegarant = $this->facture->getEnteteFactureGarantID($idEntetefacturegarant);
$_SESSION['codeTypeFacturationGarant_F'] = $facturegarant['codeTypeFacturationGarant'];
$listepolices = $this->facture->getPolicesFactureGarant($idEntetefacturegarant);
$listecolleges = $this->facture->getCollegesFactureGarant($idEntetefacturegarant);
$conventions = $this->facture->getTypeConvention($facturegarant['codeTypeFacturationGarant']);
$this->genererVue(array(
//'chemin' => $chemin,
'facturegarant' => $facturegarant,
'listepolices' => $listepolices,
'listecolleges' => $listecolleges,
'conventions' => $conventions
));
}
}