40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Detailtarifacte.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Bonpec.php';
|
|
|
|
class ControleurInitconsultation extends Controleur {
|
|
private $bonpec;
|
|
private $acte;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Initconsultation');
|
|
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$codeTypePrestation = "CONS";
|
|
|
|
$this->acte = new Detailtarifacte();
|
|
$this->bonpec = new Bonpec();
|
|
}
|
|
public function index()
|
|
{
|
|
$codeTypePrestation = "CONS";
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$codeTypeBon = "CONS";
|
|
|
|
$nbBonsCons = $this->bonpec->getNbBonPrestataireDisponible($codePrestataire, $codeTypeBon);
|
|
$codeGestionBon = $this->bonpec->getCodeGestionBonPrestataire();
|
|
$typeGestionbon = $this->bonpec->getGestionBon($codeGestionBon);
|
|
|
|
$_SESSION['p_okId'] = "1";
|
|
$_SESSION['p_okId_face'] = "1";
|
|
|
|
$this->acte->settmtypeprestation($codeTypePrestation);
|
|
|
|
$this->genererVue(array('nbBonsCons' => $nbBonsCons, 'codeGestionBon' => $codeGestionBon, 'typeGestionbon' => $typeGestionbon));
|
|
}
|
|
|
|
|
|
} |