68 lines
1.9 KiB
PHP
Executable File
68 lines
1.9 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Gestionconfiee.php';
|
|
|
|
class ControleurAjaxfraisgestiongccons extends Controleur
|
|
{
|
|
private $facture;
|
|
|
|
public function __construct() {
|
|
$this->facture = new Gestionconfiee();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$composante = $this->facture->getListeCompsanteReglement();
|
|
|
|
$gcs = $this->facture->get_frais_gestion_gc_sel();
|
|
|
|
$idGcReglement = $_SESSION['idGcReglement'];
|
|
|
|
$reglement = $this->facture->getgcreglement($idGcReglement);
|
|
|
|
$this->genererVueAjax(array('gcs' => $gcs, 'reglement' => $reglement, 'composante' => $composante));
|
|
}
|
|
|
|
public function validerselection()
|
|
{
|
|
$this->facture->valider_frais_gestion_gc_sel();
|
|
|
|
$idGcReglement = $_SESSION['idGcReglement'];
|
|
|
|
$reglement = $this->facture->getgcreglement($idGcReglement);
|
|
|
|
$composante = $this->facture->getListeCompsanteReglement();
|
|
|
|
$this->genererVueAjax(array('reglement' => $reglement, 'composante' => $composante));
|
|
}
|
|
|
|
public function selectionner()
|
|
{
|
|
$idCarteTemp = $this->requete->getParametreFormulaire("idCarteTemp");
|
|
$this->facture->selectionner_frais_gestion_gc_sel($idCarteTemp);
|
|
}
|
|
|
|
public function deselectionner()
|
|
{
|
|
$idCarteTemp = $this->requete->getParametreFormulaire("idCarteTemp");
|
|
$this->facture->de_selectionner_frais_gestion_gc_sel($idCarteTemp);
|
|
}
|
|
|
|
public function reafficher()
|
|
{
|
|
$gcs = $this->facture->re_afficher_frais_gestion_gc_sel();
|
|
|
|
$idGcReglement = $_SESSION['idGcReglement'];
|
|
|
|
$reglement = $this->facture->getgcreglement($idGcReglement);
|
|
|
|
$this->genererVueAjax(array('gcs' => $gcs, 'reglement' => $reglement));
|
|
}
|
|
|
|
public function selectionnertout()
|
|
{
|
|
$choix = $this->requete->getParametreFormulaire("choix");
|
|
$this->facture->selectionner_frais_gestion_gc_sel_tout($choix);
|
|
}
|
|
|
|
} |