73 lines
2.0 KiB
PHP
Executable File
73 lines
2.0 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
|
|
class ControleurAjaxfacturepartielle extends Controleur {
|
|
private $prestation;
|
|
|
|
public function __construct() {
|
|
|
|
$this->prestation = new Prestationactes();
|
|
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
$prestations = $this->prestation->getprestationsfacturepartielle($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
$nbreSelec = $this->prestation->compteselection($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
//var_dump($prestations);
|
|
//die();
|
|
|
|
$this->genererVueAjax(array('prestations' => $prestations, 'nbreSelec' => $nbreSelec));
|
|
}
|
|
|
|
public function selectionnerunacte()
|
|
{
|
|
$idPrestationactes = $this->requete->getParametreFormulaire("idPrestationactes");
|
|
|
|
$choix = $this->requete->getParametre("choix");
|
|
|
|
$this->prestation->selectionnerunacte($idPrestationactes, $choix);
|
|
|
|
//$this->executerAction("index");
|
|
}
|
|
|
|
public function selectionnertous()
|
|
{
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
|
|
$this->prestation->selectionnertous($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
//$this->executerAction("index");
|
|
}
|
|
|
|
public function annulerselection()
|
|
{
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
|
|
$this->prestation->annulerselection($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
//01-11-2022
|
|
public function selectionnertoushospit()
|
|
{
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
|
|
$this->prestation->selectionnertoushospit($numeroFeuilleMaladie, $codePrestataire);
|
|
|
|
//$this->executerAction("index");
|
|
}
|
|
} |