60 lines
1.9 KiB
PHP
Executable File
60 lines
1.9 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Police.php';
|
|
require_once 'Modele/Statistique.php';
|
|
|
|
class ControleurAjaxfiltreseffetpolice extends Controleur
|
|
{
|
|
private $menuvue;
|
|
private $police;
|
|
private $statistique;
|
|
|
|
|
|
public function __construct()
|
|
{
|
|
$this->police = new Police();
|
|
$this->statistique = new Statistique();
|
|
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idPolice = $this->requete->getParametreFormulaire("idPolice");
|
|
|
|
$police = $this->police->getPoliceId($idPolice);
|
|
|
|
$this->genererVueAjax(array('police' => $police));
|
|
}
|
|
|
|
public function prime()
|
|
{
|
|
|
|
|
|
|
|
$codeGcAssureur = $this->requete->getParametreFormulaire('codeGcAssureur');
|
|
|
|
$idPolice = $this->requete->getParametreFormulaire('idPolice');
|
|
|
|
$idCollege = $this->requete->getParametreFormulaire('idCollege');
|
|
|
|
$debutStat = $this->requete->getParametreDate('debutStat');
|
|
|
|
$finStat = $this->requete->getParametreDate('finStat');
|
|
|
|
$repartition = $this->requete->getParametreFormulaire('repartition');
|
|
if( $idCollege ==""){
|
|
$idCollege =null;
|
|
};
|
|
$idclient = null;
|
|
$apporteur = null;
|
|
|
|
$PrimeEncaissements = $this->statistique->evalutionPrimeEncaissement_rp( $codeGcAssureur,$idclient,$idPolice,$idCollege, $apporteur,$debutStat,$finStat,$repartition);
|
|
$PrimeRistourners = $this->statistique->evalutionPrimeRistourner_rp( $codeGcAssureur,$idclient,$idPolice,$idCollege,$apporteur,$debutStat,$finStat,$repartition);
|
|
$PrimeSoldeMvts = $this->statistique->evalutionPrimeSoldeMvt_rp($codeGcAssureur,$idclient,$idPolice,$idCollege,$apporteur,$debutStat,$finStat,$repartition);
|
|
|
|
|
|
|
|
$this->genererVueAjax(array('debutStat' => $debutStat,'finStat' => $finStat,'PrimeEncaissements' => $PrimeEncaissements,'PrimeRistourners' => $PrimeRistourners,'PrimeSoldeMvts' => $PrimeSoldeMvts));
|
|
}
|
|
}
|