44 lines
1.4 KiB
PHP
Executable File
44 lines
1.4 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Encaissementgarant.php';
|
|
require_once 'Modele/Detailencaissementgarant.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
|
|
class ControleurFicheencaissementgarant extends Controleur {
|
|
private $menuvue;
|
|
private $encaissement;
|
|
private $detailencaissement;
|
|
private $etat;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Ficheencaissementgarant");
|
|
|
|
$this->encaissement = new Encaissementgarant();
|
|
$this->detailencaissement = new Detailencaissementgarant();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idEncaissement = $this->requete->getParametre("id");
|
|
|
|
|
|
$encaissement = $this->encaissement->getEncaissementId($idEncaissement);
|
|
|
|
$detailencaissements = $this->detailencaissement->getDetailsEncaissement($idEncaissement);
|
|
|
|
$chemin = $this->menuvue->getChemin('Ficheencaissementgarant');
|
|
|
|
$this->genererVue(array('encaissement' => $encaissement, 'detailencaissements' => $detailencaissements,
|
|
'chemin' => $chemin));
|
|
}
|
|
|
|
public function imprimerrecu()
|
|
{
|
|
$idEncaissement = $this->requete->getParametre("id");
|
|
require_once 'Societes/'.$_SESSION['codeSociete'].'/Etats/Etrecucaisse.php';
|
|
$this->etat = new Etrecucaisse();
|
|
$this->etat->imprimer($idEncaissement);
|
|
}
|
|
} |