38 lines
1.2 KiB
PHP
Executable File
38 lines
1.2 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabexclusionacteproduit.php';
|
|
|
|
class ControleurAjaxtbmodifierexclusionacteproduit extends Controleur {
|
|
private $exclusion;
|
|
|
|
public function __construct() {
|
|
$this->exclusion = new Tabexclusionacteproduit();
|
|
}
|
|
|
|
public function index() {
|
|
$id = $this->requete->getParametreFormulaire("id");
|
|
$tabexclusion = $this->exclusion->getexclusionacteproduit($id);
|
|
$tabproduit = $this->exclusion->getproduit();
|
|
$tabacte = $this->exclusion->getacte();
|
|
|
|
$this->genererVueAjax(array(
|
|
'exclusionacteproduit' => $tabexclusion,
|
|
'produit' => $tabproduit,
|
|
'acte' => $tabacte
|
|
));
|
|
}
|
|
|
|
public function modifier(){
|
|
$id = $this->requete->getParametreFormulaire("id");
|
|
|
|
$codeProduit = $this->requete->getParametreFormulaire("codeProduit");
|
|
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
|
|
|
|
|
$this->exclusion->modifierexclusionacteproduit($codeProduit,$codeActe,$id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|