46 lines
1.6 KiB
PHP
46 lines
1.6 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Seance_temp.php';
|
|
require_once 'Modele/Detailseance.php';
|
|
require_once 'Modele/Bonpec.php';
|
|
|
|
class ControleurSeances extends Controleur {
|
|
private $prescription;
|
|
private $detailprescription;
|
|
private $bonpec;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Seances');
|
|
|
|
$this->prescription = new Seance_temp();
|
|
$this->detailprescription = new Detailseance();
|
|
$this->bonpec = new Bonpec();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
// $_SESSION['p_numeroBonSeance_C'] = "-1";
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$codeTypeBon = "CONS";
|
|
|
|
$nbBonsCons = $this->bonpec->getNbBonPrestataireDisponible($codePrestataire, $codeTypeBon);
|
|
// $codeGestionBon = $this->bonpec->getCodeGestionBon($codeTypeBon);
|
|
$codeGestionBon = $this->bonpec->getCodeGestionBonPrestataire();
|
|
$typeGestionbon = $this->bonpec->getGestionBon($codeGestionBon);
|
|
|
|
$numeroPrescriptionKine = $_SESSION['p_numeroPrescriptionKine_C'];
|
|
|
|
$this->prescription->initseancekine_cso($codeGestionBon);
|
|
|
|
$prescription = $this->prescription->getseancetemp();
|
|
|
|
$_SESSION['p_numeroBonSeance_C'] = $prescription['numeroBonSeance'];
|
|
|
|
$detailseances = $this->detailprescription->getdetailseancefeuille();
|
|
|
|
$this->genererVue(array('prescription' => $prescription, 'detailseances' => $detailseances,
|
|
'nbBonsCons' => $nbBonsCons, 'codeGestionBon' => $codeGestionBon, 'typeGestionbon' => $typeGestionbon));
|
|
}
|
|
} |