a
This commit is contained in:
parent
b43833aef2
commit
f0c9520634
|
|
@ -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);
|
||||||
|
|
||||||
if($codeTypeContrat=="F")
|
$prorata = "1";
|
||||||
{
|
$dateEntree = $_SESSION['dateAvenant_C'];
|
||||||
$this->rediriger("Creerbeneficiairefamiliale");
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$idPolice = $_SESSION['idPolice_C'];
|
|
||||||
$idAdherent = $_SESSION['idAdherent_C'];
|
|
||||||
$user = $_SESSION['login'];
|
|
||||||
|
|
||||||
$idCollege = $_SESSION['idCollege_C'];
|
$beneficiaire_temp = $this->beneficiaire_temp->getBeneficiaire_temp($idAdherent, $dateEntree, $user, $prorata, $fraisCarte);
|
||||||
$fraisCarte = $this->beneficiaire_temp->get_frais_carte_college($idCollege);
|
|
||||||
|
|
||||||
$prorata = "1";
|
// $codeSociete = $this->requete->getSession()->getAttribut('codeSociete');
|
||||||
$dateEntree = $_SESSION['dateAvenant_C'];
|
|
||||||
|
|
||||||
$beneficiaire_temp = $this->beneficiaire_temp->getBeneficiaire_temp($idAdherent, $dateEntree, $user, $prorata, $fraisCarte);
|
|
||||||
|
|
||||||
// $codeSociete = $this->requete->getSession()->getAttribut('codeSociete');
|
|
||||||
|
|
||||||
|
|
||||||
$adherent = $this->adherent->getAdherentId($idAdherent);
|
$adherent = $this->adherent->getAdherentId($idAdherent);
|
||||||
|
|
||||||
$this->genererVue(array('adherent' => $adherent, 'naturepiece' => $this->naturepiece, 'sexe' => $this->sexe,
|
$this->genererVue(array('adherent' => $adherent, 'naturepiece' => $this->naturepiece, 'sexe' => $this->sexe,
|
||||||
'groupesanguin' => $this->groupesanguin, 'lienparente' => $this->lienparente, 'avenant' => $this->avenant,
|
'groupesanguin' => $this->groupesanguin, 'lienparente' => $this->lienparente, 'avenant' => $this->avenant,
|
||||||
'ouinonprorata' => $this->ouinonprorata, 'beneficiaire_temp' => $beneficiaire_temp));
|
'ouinonprorata' => $this->ouinonprorata, 'beneficiaire_temp' => $beneficiaire_temp));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ajouter() {
|
public function ajouter() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user