dert
This commit is contained in:
parent
45736660aa
commit
20d1d26a40
|
|
@ -23,6 +23,8 @@ class ControleurGedadherent extends Controleur {
|
|||
|
||||
$nouveau_fichier = "rien";
|
||||
|
||||
$nomOrigine = $this->requete->getParametreFormulaire("nomOrigine");
|
||||
$codeNaturePiece = $this->requete->getParametreFormulaire("codeNaturePiece");
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
|
|
@ -38,8 +40,6 @@ class ControleurGedadherent extends Controleur {
|
|||
// Variables
|
||||
$extension = '';
|
||||
|
||||
$codeNaturePiece = $this->requete->getParametreFormulaire("codeNaturePiece");
|
||||
|
||||
if($codeNaturePiece == "AUT"){
|
||||
$libelleDocument = $this->requete->getParametreFormulaire("libelleAutre");
|
||||
}else{
|
||||
|
|
@ -142,7 +142,7 @@ class ControleurGedadherent extends Controleur {
|
|||
$d1 = $_SESSION['dUneSemaineAvant_C'];
|
||||
$d2 = date('Y-m-d');
|
||||
|
||||
$geds = $this->ged->getgedadherent($d1, $d2, "");
|
||||
$geds = $this->ged->getgedadherent($d1, $d2, $nomOrigine, $codeNaturePiece);
|
||||
|
||||
unset($_FILES['fichier_upload']);
|
||||
|
||||
|
|
|
|||
|
|
@ -69,13 +69,15 @@ class Ged extends Modele {
|
|||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getgedadherent($d1, $d2, $nomOrigine)
|
||||
public function getgedadherent($d1, $d2, $nomOrigine, $codeNaturePiece)
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
|
||||
$sql = 'call sp_get_ged_adherent_rh(?, ?, ?, ?)';
|
||||
$codeNaturePiece = contruireParamLike($codeNaturePiece);
|
||||
|
||||
$sql = 'call sp_get_ged_adherent_rh(?, ?, ?, ?, ?);';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idAdherent, $d1, $d2, $nomOrigine));
|
||||
$resultat = $this->executerRequete($sql, array($idAdherent, $d1, $d2, $nomOrigine, $codeNaturePiece));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user