dfr
This commit is contained in:
parent
f5c2dbbb11
commit
1efaad1e05
|
|
@ -41,13 +41,10 @@ class ControleurGedadherent extends Controleur {
|
|||
$extension = '';
|
||||
|
||||
if($codeNaturePiece == "AUT"){
|
||||
$libelleType = $this->requete->getParametreFormulaire("libelleAutre");
|
||||
$libelleAutre = $this->requete->getParametreFormulaire("libelleAutre");
|
||||
}else{
|
||||
$libelleType = $this->ged->getLibelleTypeDocument($codeNaturePiece);
|
||||
$libelleAutre = "";
|
||||
}
|
||||
|
||||
var_dump(array($codeNaturePiece, $libelleType));
|
||||
die();
|
||||
|
||||
if( !is_dir(TARGET) )
|
||||
{
|
||||
|
|
@ -92,7 +89,7 @@ class ControleurGedadherent extends Controleur {
|
|||
: 'Chargé avec succès';
|
||||
|
||||
// on va envoyer dans la base de données
|
||||
$this->ged->enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleDocument);
|
||||
$this->ged->enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleAutre);
|
||||
$this->rediriger("Gedadherent");
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class Ged extends Modele {
|
|||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleDocument)
|
||||
public function enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleAutre)
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
$user = $_SESSION['login'];
|
||||
|
|
@ -93,7 +93,7 @@ class Ged extends Modele {
|
|||
|
||||
$sql = 'call sp_ajouter_ged_adherent_rh(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idAdherent, $nomOrigine, $cheminFichier, $taille, $user, $codeNaturePiece, $libelleDocument));
|
||||
$this->executerRequete($sql, array($idAdherent, $nomOrigine, $cheminFichier, $taille, $user, $codeNaturePiece, $libelleAutre));
|
||||
}
|
||||
|
||||
public function getgedpolice($d1, $d2, $nomOrigine)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user