a
This commit is contained in:
parent
2fc19b005f
commit
5a57608da5
|
|
@ -1,30 +1,6 @@
|
|||
<?php
|
||||
require_once 'Framework/Modele.php';
|
||||
|
||||
class Ged extends Modele {
|
||||
|
||||
public function getgedfichepolice($idPolice)
|
||||
{
|
||||
$sql = 'call sp_r_get_ged_fiche_police(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idPolice));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedfichepolice($idPolice, $nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
$user = $_SESSION['login'];
|
||||
|
||||
$sql = 'call sp_c_ajouter_ged_fiche_police(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idPolice, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
<?php
|
||||
require_once 'Framework/Modele.php';
|
||||
|
||||
class Ged extends Modele {
|
||||
|
||||
public function getgedfeuillemaladie($d1, $d2, $nomOrigine)
|
||||
|
|
@ -212,6 +188,15 @@ class Ged extends Modele {
|
|||
$this->executerRequete($sql, array($idFacture, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function getgedfichepolice($idPolice)
|
||||
{
|
||||
$sql = 'call sp_r_get_ged_fiche_police(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idPolice));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedfichepolice($idPolice, $nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
|
@ -231,5 +216,4 @@ class Ged extends Modele {
|
|||
$this->executerRequete($sql, array($idGed, $motifSuppression, $user));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user