Initial commit for newdesigngestionnaire project
This commit is contained in:
47
Modele/Demandedecompte.php
Executable file
47
Modele/Demandedecompte.php
Executable file
@@ -0,0 +1,47 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user