35 lines
1.1 KiB
PHP
Executable File
35 lines
1.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Modele.php';
|
|
class Adherent_temp extends Modele {
|
|
|
|
public function getAdherent_temp($idCollege, $dateEntree, $user, $prorata)
|
|
{
|
|
$sql = 'call sp_init_adherent(?, ?, ?, ?)';
|
|
|
|
$adherent_temp = $this->executerRequete($sql, array($idCollege, $dateEntree, $user, $prorata));
|
|
return $adherent_temp->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
|
|
public function getModeCalculPrimeAdherent($idCollege){
|
|
|
|
$sql = 'SELECT fn_modecalcul_prime_college(?) AS codeModeCalculPrime;';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idCollege))->fetch(PDO::FETCH_ASSOC);
|
|
|
|
return $resultat['codeModeCalculPrime'];
|
|
|
|
}
|
|
|
|
public function calculprime($idCollege, $dateNaissance, $dateEntree, $user, $prorata)
|
|
{
|
|
$sql = 'call sp_calcul_prime_adherent(?, ?, ?, ?, ?)';
|
|
|
|
//var_dump($idCollege, $dateNaissance, $dateEntree, $user, $prorata);
|
|
//die();
|
|
|
|
$adherent_temp = $this->executerRequete($sql, array($idCollege, $dateNaissance, $dateEntree, $user, $prorata));
|
|
|
|
return $adherent_temp->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
} |