57 lines
1.8 KiB
PHP
Executable File
57 lines
1.8 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Motifecxlusionprestation.php';
|
|
|
|
class ControleurAjaxexclusiondecompte extends Controleur {
|
|
private $exclusionsDecompte;
|
|
|
|
public function __construct() {
|
|
$this->exclusionsDecompte = new Motifecxlusionprestation();
|
|
//$this->reglement = new Motifecxlusionprestation();
|
|
}
|
|
|
|
public function index() {
|
|
|
|
|
|
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
|
$numeroLotDecompte = $this->requete->getParametreFormulaire("numeroLotDecompte");
|
|
|
|
$motifrejets = $this->exclusionsDecompte->getListe();
|
|
|
|
$numeroDecompte = $_SESSION['numeroDecompte_C'];
|
|
$numeroLotDecompte = $_SESSION['numeroLotDecompte_C'];
|
|
|
|
|
|
$motifrejetsAll = $this->exclusionsDecompte->getMotifDecomptes($idFacture,$numeroDecompte);
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($motifrejetsAll , true) . ";\n>");
|
|
//die();
|
|
$this->genererVueAjax(array('motifrejets' => $motifrejets,'idFacture' => $idFacture,
|
|
'numeroLotDecompte' => $numeroLotDecompte,'motifrejetsAll' => $motifrejetsAll));
|
|
|
|
|
|
}
|
|
|
|
public function majmotifdecompte()
|
|
{
|
|
|
|
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
|
$codeMotifRejet = $this->requete->getParametreFormulaire("codeMotifRejet");
|
|
$numeroLotDecompte = $this->requete->getParametreFormulaire("numeroLotDecompte");
|
|
$motifManuel = $this->requete->getParametreFormulaire("motifManuel");
|
|
|
|
$this->exclusionsDecompte->majobservations($idFacture, $codeMotifRejet,$numeroLotDecompte,$motifManuel);
|
|
|
|
$this->rediriger("Decompte");
|
|
}
|
|
|
|
public function supprimermotifDecompte()
|
|
{
|
|
$idMotifDecompte = $this->requete->getParametreFormulaire("idMotifDecompte");
|
|
$this->exclusionsDecompte->supprimermotifDecompte($idMotifDecompte);
|
|
}
|
|
|
|
}
|
|
|
|
|