109 lines
2.8 KiB
PHP
Executable File
109 lines
2.8 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Feuillemaladie.php';
|
|
|
|
class ControleurAjaxenregistrerhospitalisation extends Controleur {
|
|
private $feuillemaladie;
|
|
|
|
public function __construct() {
|
|
$this->feuillemaladie = new Feuillemaladie();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$dateFinHospit = $this->feuillemaladie->getdateFinHospitalisation();
|
|
|
|
$this->genererVueAjax(array('dateFinHospit' => $dateFinHospit));
|
|
}
|
|
|
|
public function enregistrerhospitalisation()
|
|
{
|
|
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
|
|
|
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
|
|
|
|
|
$this->feuillemaladie->enregistrerhospitalisation($numeroBon, $codeGestionBon);
|
|
|
|
}
|
|
|
|
public function majmotif()
|
|
{
|
|
|
|
$motifHospitalisation = $this->requete->getParametreFormulaire("motifHospitalisation");
|
|
|
|
|
|
$this->feuillemaladie->majmotif($motifHospitalisation);
|
|
|
|
// $this->executerAction("index");
|
|
}
|
|
|
|
public function majmotifprolongation()
|
|
{
|
|
$motifProlongation = $this->requete->getParametreFormulaire("motifProlongation");
|
|
|
|
$_SESSION['p_motifProlongation_C'] = $motifProlongation;
|
|
|
|
|
|
//$this->feuillemaladie->majmotifprolongation($motifProlongation);
|
|
|
|
|
|
}
|
|
|
|
public function majdebut()
|
|
{
|
|
|
|
$dateDebutHospit = $this->requete->getParametreDate("dateDebutHospit");
|
|
$dureeHospit = $this->requete->getParametreFormulaire("dureeHospit");
|
|
$dureeCorrigeeHospit = $this->requete->getParametreFormulaire("dureeCorrigeeHospit");
|
|
|
|
$this->feuillemaladie->majdebut($dateDebutHospit, $dureeHospit, $dureeCorrigeeHospit);
|
|
|
|
// $this->executerAction("index");
|
|
}
|
|
|
|
public function majduree()
|
|
{
|
|
$dureeHospit = $this->requete->getParametreFormulaire("dureeHospit");
|
|
|
|
$this->feuillemaladie->majduree($dureeHospit);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function majnochambre()
|
|
{
|
|
|
|
$noChambre = $this->requete->getParametreFormulaire("noChambre");
|
|
|
|
|
|
$this->feuillemaladie->majnochambre($noChambre);
|
|
|
|
// $this->executerAction("index");
|
|
}
|
|
|
|
|
|
public function majChambreProrogation()
|
|
{
|
|
|
|
$idProlongation = $this->requete->getParametreFormulaire("idProlongation");
|
|
$noChambrePro = $this->requete->getParametreFormulaire("noChambrePro");
|
|
|
|
|
|
$this->feuillemaladie->majChambreProrogation($idProlongation, $noChambrePro);
|
|
|
|
// $this->executerAction("index");
|
|
}
|
|
|
|
|
|
|
|
public function majoptionhospitalisation()
|
|
{
|
|
|
|
$optionHospitalisation = $this->requete->getParametreFormulaire("optionHospitalisation");
|
|
|
|
$this->feuillemaladie->majoptionhospitalisation($optionHospitalisation);
|
|
|
|
// $this->executerAction("index");
|
|
}
|
|
} |