63 lines
1.6 KiB
PHP
Executable File
63 lines
1.6 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Garantiesbaremepriseencharge.php';
|
|
|
|
class ControleurAjaxnbrelignebaremecollege extends Controleur {
|
|
private $garantie;
|
|
|
|
public function __construct() {
|
|
$this->garantie = new Garantiesbaremepriseencharge();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
|
|
$this->genererVueAjax();
|
|
}
|
|
|
|
|
|
public function garantiesbaremepriseencharge()
|
|
{
|
|
$table = $this->requete->getParametreFormulaire("table");
|
|
|
|
$nbgarantie = $this->garantie->getNbreLigneBareme($table);
|
|
|
|
$this->genererVueAjax(array('nbgarantie'=>$nbgarantie));
|
|
}
|
|
|
|
public function garantiesbaremepriseenchargelienparente()
|
|
{
|
|
$table = $this->requete->getParametreFormulaire("table");
|
|
|
|
$nbgarantieLien = $this->garantie->getNbreLigneBareme($table);
|
|
|
|
$this->genererVueAjax(array('nbgarantieLien'=>$nbgarantieLien));
|
|
}
|
|
|
|
public function actesbaremepriseencharge()
|
|
{
|
|
$table = $this->requete->getParametreFormulaire("table");
|
|
|
|
$nbacte = $this->garantie->getNbreLigneBareme($table);
|
|
|
|
$this->genererVueAjax(array('nbacte'=>$nbacte));
|
|
}
|
|
|
|
public function actesbaremepriseenchargelienparente()
|
|
{
|
|
$table = $this->requete->getParametreFormulaire("table");
|
|
|
|
$nbacteLien = $this->garantie->getNbreLigneBareme($table);
|
|
|
|
$this->genererVueAjax(array('nbacteLien'=>$nbacteLien));
|
|
}
|
|
|
|
public function detailbareme()
|
|
{
|
|
$table = $this->requete->getParametreFormulaire("table");
|
|
|
|
$nbdetail = $this->garantie->getNbreLigneBareme($table);
|
|
|
|
$this->genererVueAjax(array('nbdetail'=>$nbdetail));
|
|
}
|
|
} |