statistique = new Statistique(); $this->police = new Police(); $this->garant = new Gestionconfiee(); $this->police_societe = new Police_sodciete(); } public function index() { $entetestat = $this->statistique->getParametreStat(); $garants = $this->garant->getListe(); $polices = $this->police->getPoliceStats(); $codegcassureur = $_SESSION['codeGcAssureurStat']; $infosDuGarant = $this->police_societe->getInfosGarant($codegcassureur); /*foreach($infosDuGarant as $infosDuGarants){ }*/ $_SESSION['typeGarant'] = $infosDuGarant['typeGarant']; $this->genererVueAjax(array('entetestat' => $entetestat, 'polices' => $polices, 'garants' =>$garants)); } public function calculermontantreferent() { $entetestat = $this->statistique->getParametreStat(); $idPolice = $this->requete->getParametreFormulaire("idPolice"); $debutStat = $this->requete->getParametreDate("debutStat"); $finStat = $this->requete->getParametreDate("finStat"); $codeGcAssureur = $this->requete->getParametreFormulaire("codeGcAssureur"); if($idPolice== ''){ $idPolice = null; } if($codeGcAssureur== 'AUC'){ $codeGcAssureur = null; } $_SESSION['debutStat'] = $debutStat; $_SESSION['finStat'] = $finStat; $_SESSION['idPoliceStat'] = $idPolice; $p_datedebut = $_SESSION['debutStat']; $p_datefin =$_SESSION['finStat']; $p_garant = $codeGcAssureur; $p_id = $idPolice; $p_id_college = null; $p_id_clients = null; $montantreferent = $this->statistique->getmontantreferentstat($p_garant, $p_id_clients, $p_id, $p_id_college, $p_datedebut, $p_datefin); $garants = $this->garant->getListe(); $polices = $this->police->getPoliceStats(); $this->genererVueAjax(array('montantreferent' => $montantreferent,'entetestat' => $entetestat, 'polices' => $polices, 'garants' =>$garants)); } }