Import initial du projet Production
This commit is contained in:
29
Modele/Generartionbon.php
Executable file
29
Modele/Generartionbon.php
Executable file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
require_once 'Framework/Modele.php';
|
||||
|
||||
class Generartionbon extends Modele {
|
||||
|
||||
public function afficherListeGenererBonpecs($codePrestataire, $codeTypeBon, $d1, $d2)
|
||||
{
|
||||
$sql = 'call sp_afficher_liste_generer_bonpecs(?, ?, ?, ?, ?)';
|
||||
$bonpecs = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codePrestataire, $codeTypeBon, $d1, $d2));
|
||||
|
||||
return $bonpecs->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function detailgenerationbon($idgenerationbon)
|
||||
{
|
||||
$sql = 'call sp_detailgenerationbon(?)';
|
||||
$bonpecs = $this->executerRequete($sql, array($idgenerationbon));
|
||||
|
||||
return $bonpecs->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function unegenerationbon($idgenerationbon)
|
||||
{
|
||||
$sql = 'call sp_afficher_genererationbon(?)';
|
||||
$generationbon = $this->executerRequete($sql, array($idgenerationbon));
|
||||
|
||||
return $generationbon->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user