Import initial du projet Production
This commit is contained in:
44
Controleur/ControleurFicheencaissement.php
Normal file
44
Controleur/ControleurFicheencaissement.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Encaissement.php';
|
||||
require_once 'Modele/Detailencaissement.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
|
||||
class ControleurFicheencaissement extends Controleur {
|
||||
private $menuvue;
|
||||
private $encaissement;
|
||||
private $detailencaissement;
|
||||
private $etat;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Ficheencaissement");
|
||||
|
||||
$this->encaissement = new Encaissement();
|
||||
$this->detailencaissement = new Detailencaissement();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idEncaissement = $this->requete->getParametre("id");
|
||||
|
||||
// throw new Exception("idEncaissement ='$idEncaissement'");
|
||||
|
||||
$encaissement = $this->encaissement->getEncaissementId($idEncaissement);
|
||||
|
||||
$detailencaissements = $this->detailencaissement->getDetailsEncaissement($idEncaissement);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Ficheencaissement');
|
||||
|
||||
$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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user