Import initial du projet Production
This commit is contained in:
55
Controleur/ControleurDetailbaremecollegetemp.php
Normal file
55
Controleur/ControleurDetailbaremecollegetemp.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Garantiesbaremepriseencharge.php';
|
||||
require_once 'Modele/Baremepriseencharge.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
require_once 'Modele/Ouinon.php';
|
||||
|
||||
class ControleurDetailbaremecollegetemp extends Controleur {
|
||||
private $menuvue;
|
||||
private $bareme;
|
||||
private $garantie;
|
||||
private $oui_non;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Detailbaremecollegetemp');
|
||||
|
||||
$this->bareme = new Baremepriseencharge();
|
||||
$this->garantie = new Garantiesbaremepriseencharge();
|
||||
$this->oui_non = new Ouinon();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idBaremePriseEnCharge = $this->requete->getParametreFormulaire("id");
|
||||
|
||||
$bareme = $this->bareme->getBaremepriseenchargeId($idBaremePriseEnCharge);
|
||||
|
||||
$_SESSION['idBaremePriseEnCharge'] = $idBaremePriseEnCharge;
|
||||
|
||||
$idCollegeTemp = $_SESSION['idCollegeTemp'];
|
||||
|
||||
|
||||
$garantiesajoutees = $this->garantie->getGarantiesProduitTemp($bareme["codeProduit"], $idBaremePriseEnCharge, $idCollegeTemp);
|
||||
|
||||
$actif = $this->oui_non->getListe();
|
||||
$tmBareme = $this->garantie->getTmBaremeTemp($idBaremePriseEnCharge, $idCollegeTemp);
|
||||
|
||||
$maxDateEffetBareme = $this->garantie->getMaxDateEffetBaremeTemp($idBaremePriseEnCharge, $idCollegeTemp);
|
||||
|
||||
|
||||
$retour = $_SESSION['vueCollege'];
|
||||
|
||||
$this->genererVue(array(
|
||||
'bareme' => $bareme,
|
||||
'garantiesajoutees' => $garantiesajoutees,
|
||||
'actif' => $actif,
|
||||
'tmBareme' => $tmBareme,
|
||||
'maxDateEffetBareme' => $maxDateEffetBareme,
|
||||
'retour' => $retour
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user