Import initial du projet Production
This commit is contained in:
62
Controleur/ControleurAjaxajustementprime.php
Normal file
62
Controleur/ControleurAjaxajustementprime.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/College_temp.php';
|
||||
|
||||
class ControleurAjaxajustementprime extends Controleur {
|
||||
private $avenant;
|
||||
private $college_temp;
|
||||
|
||||
public function __construct() {
|
||||
$this->avenant = new Police();
|
||||
$this->college_temp = new College_temp();
|
||||
}
|
||||
public function index() {
|
||||
$user = $_SESSION['login'];
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dateAvenant = $_SESSION['dateAvenant_C'];
|
||||
|
||||
$emission = $this->avenant->getEmissionTemp($idPolice);
|
||||
$avenant = $this->avenant->getAvenantTemp($idPolice);
|
||||
|
||||
$colleges = $this->college_temp->getCollegeTempPoliceAju($idPolice, $user);
|
||||
|
||||
$Totauxcollege = $this->college_temp->getCollegeTempPoliceTotalAju($idPolice, $user) ;
|
||||
|
||||
|
||||
$this->genererVueAjax(array('colleges' => $colleges, 'emission' => $emission, 'avenant' => $avenant,
|
||||
'Totauxcollege' => $Totauxcollege));
|
||||
}
|
||||
|
||||
public function majprime()
|
||||
{
|
||||
$idCollege = $this->requete->getParametreFormulaire("idCollege");
|
||||
$prime = $this->requete->getParametreFormulaire("prime");
|
||||
$codeLienParente = $this->requete->getParametreFormulaire("codeLienParente");
|
||||
|
||||
$user = $_SESSION['login'];
|
||||
|
||||
$this->college_temp->majprimeajustee($idCollege, $prime, $codeLienParente, $user);
|
||||
}
|
||||
|
||||
public function recapituler()
|
||||
{
|
||||
$user = $_SESSION['login'];
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$this->college_temp->recapitulerprimesajustees($idPolice, $user);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrer()
|
||||
{
|
||||
$user = $_SESSION['login'];
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$this->college_temp->enregisterprimesajustees($idPolice, $user);
|
||||
|
||||
//$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user