67 lines
2.3 KiB
PHP
Executable File
67 lines
2.3 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Facturesansbon.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
|
|
class ControleurAjaxdetailfacturesansboncso extends Controleur {
|
|
private $facture;
|
|
|
|
public function __construct() {
|
|
$this->facture = new Facturesansbon();
|
|
$this->ouinonhospit = (new Ouinon())->getListe();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$facture = $this->facture->getfacture_sans_bon_temp();
|
|
|
|
$prestations = $this->facture->getprestations_sans_bon_temp();
|
|
|
|
$garantieadherent_temp = $this->facture->afficher_garantieadherent_temp();
|
|
|
|
$this->genererVueAjax(array('facture' => $facture, 'prestations' => $prestations,
|
|
'garantieadherent_temp' => $garantieadherent_temp, 'ouinonhospit' => $this->ouinonhospit));
|
|
}
|
|
|
|
public function majprix()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$valeurActe = $this->requete->getParametreFormulaire("valeurActe", "numerique");
|
|
|
|
$this->facture->majprix($idPrestation, $valeurActe);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function majtm()
|
|
{
|
|
$tm = $this->requete->getParametreFormulaire("tm", "numerique");
|
|
|
|
$this->facture->majtm($tm);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function enregistrerfacturetemp()
|
|
{
|
|
$dateFacture = $this->requete->getParametreDate("dateFacture");
|
|
$hospitalisation = $this->requete->getParametreFormulaire("hospitalisation");
|
|
$observations = $this->requete->getParametreFormulaire("observations");
|
|
$tm = $this->requete->getParametreFormulaire("tm", "numerique");
|
|
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
|
$medecinManquant = $this->requete->getParametreFormulaire("medecinManquant");
|
|
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
|
$initialiserprestation = $this->requete->getParametreFormulaire("initialiserprestation");
|
|
|
|
$this->facture->enregistrerfacturetemp($dateFacture, $hospitalisation, $observations, $tm, $numeroBon, $medecinManquant,
|
|
$codeMedecin, $initialiserprestation);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function validerfacturesansbon()
|
|
{
|
|
$this->facture->validerfacturesansbon();
|
|
}
|
|
|
|
} |