47 lines
1.3 KiB
PHP
Executable File
47 lines
1.3 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Modele.php';
|
|
|
|
class Demandedecompte extends Modele {
|
|
|
|
public function getdemendesdecomptes($codePrestataire, $codeExercice, $codeMois)
|
|
{
|
|
$codePrestataire = contruireParamLike($codePrestataire);
|
|
|
|
$sql = 'call sp_r_get_demandes_decomptes(?, ?, ?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($codePrestataire, $codeExercice, $codeMois));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function getdemandedecompte($idDemandeDecompte)
|
|
{
|
|
$sql = 'call sp_p_get_demandedecompte(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idDemandeDecompte));
|
|
|
|
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
|
|
|
|
$_SESSION['numeroDemandeDecompte_C'] = $ligne['numeroDemandeDecompte'];
|
|
|
|
return $ligne;
|
|
}
|
|
|
|
public function getdetaildemandedecompteid($idDemandeDecompte)
|
|
{
|
|
$sql = 'call sp_p_get_detail_demandedecompte_id(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idDemandeDecompte));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function getdetaildemandedecompte($numeroDemandeDecompte)
|
|
{
|
|
$sql = 'call sp_p_get_detail_demandedecompte(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($numeroDemandeDecompte));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
} |