43 lines
1.0 KiB
PHP
Executable File
43 lines
1.0 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Police.php';
|
|
require_once $_SESSION['dossierSociete'].'/Tarifs/Modele/Police_sodciete.php';
|
|
|
|
|
|
class ControleurAjaxfiltrespolicegarant extends Controleur {
|
|
private $police;
|
|
|
|
public function __construct() {
|
|
$this->police = new Police();
|
|
$this->police_societe = new Police_sodciete();
|
|
}
|
|
|
|
public function index() {
|
|
|
|
$codeGcAssureur = $this->requete->getParametreFormulaire('codeGcAssureur');
|
|
|
|
$_SESSION['codeGcAssureurStat'] = $codeGcAssureur;
|
|
|
|
|
|
|
|
if($codeGcAssureur>" "){
|
|
$infosDuGarant = $this->police_societe->getInfosGarant($codeGcAssureur);
|
|
$_SESSION['typeGarant'] = $infosDuGarant['typeGarant'];
|
|
|
|
$polices = $this->police->getPoliceGarant($codeGcAssureur);
|
|
|
|
}else{
|
|
$infosDuGarant = array();
|
|
$polices = array('code' => "", 'libelle' => "");
|
|
}
|
|
|
|
|
|
$this->genererVueAjax(array(
|
|
'polices' => $polices, 'infosDuGarant' => $infosDuGarant
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|