Import initial du projet Production
This commit is contained in:
37
Controleur/ControleurFicheresiliation.php
Normal file
37
Controleur/ControleurFicheresiliation.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurFicheresiliation extends Controleur {
|
||||
private $menuvue;
|
||||
private $avenant;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Ficheresiliation");
|
||||
|
||||
$this->avenant = new Police();
|
||||
}
|
||||
public function index() {
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
$dateAvenant = $_SESSION['dateAvenant_C'];
|
||||
$this->avenant->initresiliation($idPolice);
|
||||
|
||||
$emission = $this->avenant->getEmissionTemp($idPolice);
|
||||
$avenant = $this->avenant->getAvenantTemp($idPolice);
|
||||
$sppolice = $this->avenant->getRapportSpPolice($idPolice, $dateAvenant);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Ficheresiliation');
|
||||
|
||||
$this->genererVue(array('emission' => $emission, 'avenant' => $avenant, 'sppolice' => $sppolice, 'chemin' => $chemin));
|
||||
}
|
||||
|
||||
public function enregistrerresiliation()
|
||||
{
|
||||
$this->avenant->enregistrerresiliation();
|
||||
// $this->rediriger("Fichepolice");
|
||||
$this->rediriger("Facturerpolice");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user