79 lines
2.6 KiB
PHP
Executable File
79 lines
2.6 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Gestionconfiee.php';
|
|
require_once 'Modele/Police.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Tarifsactes.php';
|
|
require_once 'Modele/Periodicite.php';
|
|
|
|
class ControleurParamfacturegarantcons extends Controleur {
|
|
private $gc;
|
|
private $police;
|
|
private $tarif;
|
|
private $periodicite;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Paramfacturegarantcons");
|
|
|
|
$this->gc = new Gestionconfiee();
|
|
$this->police = new Police();
|
|
$this->tarif = new Tarifsactes();
|
|
$this->periodicite = new Periodicite();
|
|
|
|
$_SESSION['modeDevis'] = "0";
|
|
}
|
|
|
|
public function index() {
|
|
//$idGc = $_SESSION['idGcAssureur_C'];
|
|
|
|
|
|
// $gc = $this->gc->getGcAssureurId($idGc);
|
|
|
|
$codeGcAssureur = $_SESSION['codeGcAssureur_C'];
|
|
|
|
$gc = $this->gc->getGcAssureurCode($codeGcAssureur);
|
|
|
|
|
|
|
|
$_SESSION['codeGcAssureur_C'] = $gc['codeGcAssureur'];
|
|
$_SESSION['nomGcAssureur_C'] = $gc['libelle'] ;
|
|
|
|
$codeGcAssureur = $_SESSION['codeGcAssureur_C'];
|
|
|
|
|
|
|
|
$periodicites = $this->periodicite->getPeriodiciteFactureGarant();
|
|
|
|
|
|
$periodicitesappelfond = $this->periodicite->getPeriodiciteFactureGarant();
|
|
|
|
|
|
|
|
$periodicitesappelcotisation = $this->periodicite->getPeriodiciteFactureGarant();
|
|
//$periodicitesfactsinistre = $this->periodicite->getPeriodiciteFactureGarant();
|
|
$periodicitesfactDeficit = $this->periodicite->getPeriodiciteFactureGarant();
|
|
|
|
$assiettefonds = array();
|
|
$assiettehonoraire = array();
|
|
|
|
$assiettefonds = $this->gc->getListeAssiettes();
|
|
$assiettehonoraire = $this->gc->getListeAssiettes();
|
|
$assiettecaution = $this->gc->getListeAssiettes();
|
|
|
|
|
|
$sourcefonds = $this->gc->getListeSourceFondGarantAppelFond();
|
|
$sourcehonoraire = $this->gc->getListeSourceFondGarantHonoraire();
|
|
$sourcecaution = $this->gc->getListeSourceFondGarantCaution();
|
|
|
|
$conventions = $this->periodicite->getTypeConvention();
|
|
|
|
|
|
$this->genererVue(array('gc' => $gc,
|
|
'periodicites' => $periodicites, 'periodicitesappelfond' => $periodicitesappelfond,
|
|
'periodicitesappelcotisation' => $periodicitesappelcotisation, 'assiettefonds' => $assiettefonds,
|
|
'assiettehonoraire' => $assiettehonoraire, 'periodicitesfactDeficit' => $periodicitesfactDeficit,
|
|
'conventions' => $conventions, 'sourcefonds' => $sourcefonds, 'sourcecaution' => $sourcecaution,
|
|
'sourcehonoraire' => $sourcehonoraire, 'assiettecaution' => $assiettecaution));
|
|
}
|
|
} |