This commit is contained in:
KANE LAZENI 2026-01-04 13:34:06 +00:00
parent b43833aef2
commit f0c9520634

View File

@ -33,49 +33,34 @@ class ControleurCreerbeneficiaire extends Controleur {
$this->groupesanguin = (new Groupesanguin())->getListe(); $this->groupesanguin = (new Groupesanguin())->getListe();
$this->adherent = new Adherent(); $this->adherent = new Adherent();
$this->lienparente = (new Lienparente())->getListeDependant(); $this->lienparente = (new Lienparente())->getListeDependant();
/*
$this->tarif = new Tarif(); $this->tarif = new Tarif();
$this->avenant = (new Avenant())->getListeEnCours($_SESSION['idPolice_C']); $this->avenant = (new Avenant())->getListeEnCours($_SESSION['idPolice_C']);
$this->ouinonprorata = (new Ouinon())->getListe(); $this->ouinonprorata = (new Ouinon())->getListe();
$this->beneficiaire_temp = new Beneficiaire_temp(); $this->beneficiaire_temp = new Beneficiaire_temp();
*/
} }
public function index() public function index()
{ {
echo "ControleurCreerbeneficiaire"; $idPolice = $_SESSION['idPolice_C'];
exit(); $idAdherent = $_SESSION['idAdherent_C'];
$user = $_SESSION['login'];
$codeTypeContrat = $_SESSION['codeTypeContrat']; $idCollege = $_SESSION['idCollege_C'];
$fraisCarte = $this->beneficiaire_temp->get_frais_carte_college($idCollege);
$prorata = "1";
$dateEntree = $_SESSION['dateAvenant_C'];
if($codeTypeContrat=="F") $beneficiaire_temp = $this->beneficiaire_temp->getBeneficiaire_temp($idAdherent, $dateEntree, $user, $prorata, $fraisCarte);
{
$this->rediriger("Creerbeneficiairefamiliale");
exit();
}
else
{
$idPolice = $_SESSION['idPolice_C'];
$idAdherent = $_SESSION['idAdherent_C'];
$user = $_SESSION['login'];
$idCollege = $_SESSION['idCollege_C']; // $codeSociete = $this->requete->getSession()->getAttribut('codeSociete');
$fraisCarte = $this->beneficiaire_temp->get_frais_carte_college($idCollege);
$prorata = "1";
$dateEntree = $_SESSION['dateAvenant_C']; $adherent = $this->adherent->getAdherentId($idAdherent);
$beneficiaire_temp = $this->beneficiaire_temp->getBeneficiaire_temp($idAdherent, $dateEntree, $user, $prorata, $fraisCarte); $this->genererVue(array('adherent' => $adherent, 'naturepiece' => $this->naturepiece, 'sexe' => $this->sexe,
'groupesanguin' => $this->groupesanguin, 'lienparente' => $this->lienparente, 'avenant' => $this->avenant,
// $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); 'ouinonprorata' => $this->ouinonprorata, 'beneficiaire_temp' => $beneficiaire_temp));
$adherent = $this->adherent->getAdherentId($idAdherent);
$this->genererVue(array('adherent' => $adherent, 'naturepiece' => $this->naturepiece, 'sexe' => $this->sexe,
'groupesanguin' => $this->groupesanguin, 'lienparente' => $this->lienparente, 'avenant' => $this->avenant,
'ouinonprorata' => $this->ouinonprorata, 'beneficiaire_temp' => $beneficiaire_temp));
}
} }
public function ajouter() { public function ajouter() {