50 lines
1.5 KiB
PHP
Executable File
50 lines
1.5 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Gestionconfiee.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Tarifsactes.php';
|
|
require_once 'Modele/Produit.php';
|
|
require_once 'Modele/Pmodepaiement.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
|
|
class ControleurModifiergcassureur extends Controleur {
|
|
private $menuvue;
|
|
private $gc;
|
|
private $tarif;
|
|
private $produit;
|
|
private $modepaiement;
|
|
private $encaissementExigeOuinon;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Modifiergcassureur');
|
|
$this->modepaiement = (new Pmodepaiement())->getListe();
|
|
|
|
$this->gc = new Gestionconfiee();
|
|
$this->tarif = new Tarifsactes();
|
|
$this->produit = new Produit();
|
|
|
|
$this->encaissementExigeOuinon = (new Ouinon())->getListe();
|
|
|
|
}
|
|
public function index()
|
|
{
|
|
$idGc = $this->requete->getParametreFormulaire("id");
|
|
$type = $this->gc->getListeTypeGarant();
|
|
|
|
|
|
$gc = $this->gc->getGcAssureurId($idGc);
|
|
|
|
$codeTypeTarifActe = "TGAR";
|
|
|
|
$tarifActe = $this->tarif->getTarifActeByType($codeTypeTarifActe);
|
|
|
|
|
|
$typeremboursement = $this->produit->getlisteTypeRemboursement();
|
|
|
|
|
|
$this->genererVue(array('gc' => $gc,'gctypegarant' => $type, 'tarifActe' => $tarifActe,
|
|
'encaissementExigeOuinon' => $this->encaissementExigeOuinon, 'typeremboursement' => $typeremboursement,
|
|
'modepaiement' => $this->modepaiement));
|
|
}
|
|
} |