production/Controleur/ControleurNouveleacte.php
2025-12-02 11:29:44 +00:00

64 lines
2.3 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Familleacte.php';
require_once 'Modele/Ouinon.php';
require_once 'Modele/Garantie.php';
require_once 'Modele/Tarifsactes.php';
require_once 'Modele/Typeprestation.php';
class ControleurNouveleacte extends Controleur
{
private $menuvue;
private $familleacte;
private $oui_non;
private $tarif;
private $garantie;
private $typeprestation;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Nouveleacte');
$this->familleacte = new Familleacte();
$this->oui_non = new Ouinon();
$this->garantie = new Garantie();
$this->tarif = new Tarifsactes();
$this->typeprestation = new Typeprestation();
}
public function index()
{
$actesHarmonises = $_SESSION['actesHarmonises'];
if( isset($actesHarmonises) && ($actesHarmonises=="1") )
{
$_SESSION['codeTarifActe_C'] = "";
}
$codeTarifActe = $_SESSION['codeTarifActe_C'];
$familleacte = array();//$this->familleacte->getListeFamilleActeTarifCombo($codeTarifActe);
// $familleacte = $this->familleacte->getListeCode();
$acte_miseEnObservation = $this->oui_non->getListe();
$acte_ententePrealable = $this->oui_non->getListe();
$acte_exclu = $this->oui_non->getListe();
$acte_chirurgie = $this->oui_non->getListe();
$acte_actif = $this->oui_non->getListe();
$garanties = array(); //$this->garantie->getListePourActe();
$tarifs = $this->tarif->getListeCreation();
$typesprestation = $this->typeprestation->getListe();
$acte_alerte = $this->oui_non->getListe();
$lettrecle = $this->tarif->getListeLettreCle();
$acte_chambre = $this->oui_non->getListe();
$prix_modifiable = $this->oui_non->getListe();
$this->genererVue(array('acte_ententePrealable' => $acte_ententePrealable, 'acte_exclu' => $acte_exclu,
'acte_chirurgie' => $acte_chirurgie, 'acte_actif' => $acte_actif, 'familleacte' => $familleacte,'lettrecle' => $lettrecle,
'garanties' => $garanties, 'tarifs' => $tarifs, 'typesprestation' => $typesprestation, 'acte_alerte' => $acte_alerte,
'acte_miseEnObservation' => $acte_miseEnObservation, 'acte_chambre' => $acte_chambre, 'prix_modifiable' => $prix_modifiable
));
}
}