62 lines
1.7 KiB
PHP
Executable File
62 lines
1.7 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Reglement.php';
|
|
|
|
class ControleurAjaxpaiementdecomptesel extends Controleur
|
|
{
|
|
private $decompte;
|
|
|
|
public function __construct() {
|
|
$this->decompte = new Reglement();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$decomptes = $this->decompte->get_paiementdecompte_sel();
|
|
|
|
$this->genererVueAjax(array('decomptes' => $decomptes));
|
|
}
|
|
|
|
public function validerselection()
|
|
{
|
|
$this->decompte->valider_selection_paiement_decompte_sel();
|
|
|
|
$idPaiementDecompte = $_SESSION['idPaiementDecompte_C'];
|
|
|
|
$reglement = $this->decompte->getpaiementdecompte($idPaiementDecompte);
|
|
|
|
$composante = $this->decompte->getListeCompsanteReglement();
|
|
|
|
$this->genererVueAjax(array('reglement' => $reglement, 'composante' => $composante));
|
|
}
|
|
|
|
public function selectionner()
|
|
{
|
|
$idDecompteTemp = $this->requete->getParametreFormulaire("idDecompteTemp");
|
|
$this->decompte->selectionner_paiementdecompte_sel($idDecompteTemp);
|
|
|
|
// $this->genererVueAjax();
|
|
}
|
|
|
|
public function deselectionner()
|
|
{
|
|
$idDecompteTemp = $this->requete->getParametreFormulaire("idDecompteTemp");
|
|
$this->decompte->de_selectionner_paiementdecompte_sel($idDecompteTemp);
|
|
|
|
// $this->genererVueAjax();
|
|
}
|
|
|
|
public function reafficher()
|
|
{
|
|
$decomptes = $this->decompte->re_afficher_paiementdecompte_sel();
|
|
|
|
$this->genererVueAjax(array('decomptes' => $decomptes));
|
|
}
|
|
|
|
public function selectionnertout()
|
|
{
|
|
$choix = $this->requete->getParametreFormulaire("choix");
|
|
$this->decompte->selectionner_paiementdecompte_sel_tout($choix);
|
|
}
|
|
|
|
} |