134 lines
6.9 KiB
PHP
Executable File
134 lines
6.9 KiB
PHP
Executable File
<?php
|
|
if ($this->requete->existeParametre("id"))
|
|
{
|
|
$_SESSION['idCollege']=$this->requete->getParametre("id");
|
|
$user = $_SESSION['login'];
|
|
$idCollege = $_SESSION['idCollege'];
|
|
|
|
$idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user);
|
|
|
|
$_SESSION['idCollegeTemp'] = $idCollegeTemp;
|
|
|
|
$_SESSION['codeLienParente_C'] = "A";
|
|
|
|
$this->rediriger("Modifiercolleged");
|
|
}
|
|
else
|
|
{
|
|
require_once $_SESSION['dossierSociete'].'/Tarifs/Modele/Trancheage.php';
|
|
require_once $_SESSION['dossierSociete'].'/Tarifs/Modele/Capitalfraisfuneraire.php';
|
|
require_once $_SESSION['dossierSociete'].'/Tarifs/Modele/Lienparente_societe.php';
|
|
|
|
$this->trancheage = (new Trancheage())->getListe();
|
|
$this->capitalfraisfuneraire = (new Capitalfraisfuneraire())->getListe();
|
|
$this->lienparente_societe = (new Lienparente_societe())->getListe();
|
|
|
|
$idPolice = $_SESSION['idPolice_d_C'];
|
|
$idCollege = $_SESSION['idCollege'];
|
|
$idCollegeTemp = $_SESSION['idCollegeTemp'];
|
|
|
|
/*
|
|
$produit = $this->produit->getListe();
|
|
$collegetype = $this->produit->getListeCollegeType();
|
|
|
|
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
|
|
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
|
|
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
|
|
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
|
|
|
|
$optionstarif = $this->college_temp->getoptionstarif($idPolice);
|
|
|
|
$codeLienParente = $_SESSION['codeLienParente_C'];
|
|
|
|
$garanties_lien_parente = $this->college_temp->getGarantieLienParente($idCollegeTemp, $codeLienParente);
|
|
$prime_colleges = $this->college_temp->getPrimesCollege($idCollegeTemp);
|
|
$collegelienparenteTemp = $this->college_temp->getCollegeLienParenteTemp($idCollegeTemp, $codeLienParente);
|
|
|
|
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $produit, 'collegetype' => $collegetype,
|
|
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, 'ouinonbudget' => $this->ouinonbudget,
|
|
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm,
|
|
'ouinonimposerplafond' => $this->ouinonimposerplafond, 'optionstarif' => $optionstarif,
|
|
'trancheage' => $this->trancheage, 'capitalfraisfuneraire' => $this->capitalfraisfuneraire,
|
|
'prime_colleges' => $prime_colleges, 'lienparente_societe' => $this->lienparente_societe,
|
|
'collegelienparenteTemp' => $collegelienparenteTemp, 'garanties_lien_parente' => $garanties_lien_parente));
|
|
*/
|
|
|
|
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
|
|
$garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp);
|
|
$garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp);
|
|
$garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp);
|
|
|
|
$codeLienParente = $_SESSION['codeLienParente_C'];
|
|
|
|
$garanties_lien_parente = $this->college_temp->getGarantieLienParente($idCollegeTemp, $codeLienParente);
|
|
$prime_colleges = $this->college_temp->getPrimesCollege($idCollegeTemp);
|
|
$collegelienparenteTemp = $this->college_temp->getCollegeLienParenteTemp($idCollegeTemp, $codeLienParente);
|
|
|
|
$codeTypeTarifActe = $collegeTemp['codeTypeTarifActe'];
|
|
$codeProduit = $collegeTemp['codeProduit'];
|
|
$codeGcAssureur = $collegeTemp['codeGcAssureur'];
|
|
$idPolice = $collegeTemp['idPolice'];
|
|
$typeGarant = $this->college_temp->getTypeGarantPolice($idPolice);
|
|
|
|
$_SESSION['codeProduit'] = $codeProduit;
|
|
$_SESSION['codeGcAssureur_d'] = $codeGcAssureur;
|
|
$_SESSION['codeTypeGarant'] = $typeGarant['codeTypeGarant'];
|
|
$_SESSION['forfait'] = "1";
|
|
$_SESSION['codeTypeTarifActe'] = $codeTypeTarifActe;
|
|
|
|
$_SESSION['vueCollege'] = "Modifiercolleged";
|
|
|
|
$produit = $this->produit->getProduitGarant($codeGcAssureur);
|
|
$collegetype = $this->produit->getListeCollegeType();
|
|
$etendueterritoire = $this->produit->getlisteTerritoire();
|
|
$typeremboursement = $this->produit->getlisteTypeRemboursement();
|
|
$tarifacte = $this->tarifacte->getTarifActeByType($codeTypeTarifActe);
|
|
$reseausoins = $this->reseausoins->getReseauProduit($codeProduit);
|
|
|
|
$tm = $this->produit->getTicketModerateurProduit($codeProduit, $codeGcAssureur);
|
|
|
|
$ticketModerateurCollege = $tm['ticketModerateur'];
|
|
|
|
$_SESSION['nomGarant'] = $this->college_temp->getNomGarant($codeGcAssureur);
|
|
|
|
$typeTarifActe = $this->college_temp->getTypeTarifActe();
|
|
|
|
|
|
$tarifacte = $this->tarifacte->getTarifActeByType($codeTypeTarifActe);
|
|
|
|
$forfaitTaux = $this->college_temp->getTauxForfait();
|
|
$lienParente = $this->college_temp->getNomStatus($codeLienParente);
|
|
|
|
$bareme = $this->college_temp->getBaremeProduit($codeProduit, $codeGcAssureur);
|
|
|
|
$baseTarif = $this->college_temp->getBaseTarifCollege();
|
|
$plafondFamille = $this->college_temp->getPlafondFamille($codeProduit,$codeGcAssureur);
|
|
$plafondIndividu = $this->college_temp->getPlafondIndividu($codeProduit,$codeGcAssureur);
|
|
|
|
$codeModecalculPrime = $this->college_temp->getModecalculprimeproduit($codeProduit,$codeGcAssureur);
|
|
$optionstarif = $this->college_temp->getoptionstarif($idPolice);
|
|
|
|
|
|
if($codeModecalculPrime == "TA"){
|
|
$this->college_temp->initprimeTranche($codeProduit,$codeGcAssureur, $idCollegeTemp);
|
|
}
|
|
|
|
$modifierBareme = $this->college_temp->getmodifierBareme();
|
|
|
|
$primesTrancheAge = $this->college_temp->getPrimeTrancheAge($codeProduit,$codeGcAssureur);
|
|
|
|
$primesTotalTrancheAge = $this->college_temp->getPrimeTotalTrancheAge($codeProduit,$codeGcAssureur);
|
|
|
|
$this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $produit, 'collegetype' => $collegetype,
|
|
'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles,'etendueterritoire' => $etendueterritoire,
|
|
'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, 'typeremboursement' => $typeremboursement,
|
|
'ouinonimposerplafond' => $this->ouinonimposerplafond, 'tarifacte' => $tarifacte,'reseausoins' => $reseausoins,
|
|
'trancheage' => $this->trancheage, 'capitalfraisfuneraire' => $this->capitalfraisfuneraire,'typeTarifActe' => $typeTarifActe,
|
|
'prime_colleges' => $prime_colleges, 'lienparente_societe' => $this->lienparente_societe,'forfaitTaux' => $forfaitTaux,
|
|
'collegelienparenteTemp' => $collegelienparenteTemp, 'garanties_lien_parente' => $garanties_lien_parente, 'optionstarif' => $optionstarif,
|
|
'lienParente' => $lienParente,'bareme' => $bareme,'ticketModerateurCollege' => $ticketModerateurCollege,'baseTarif' => $baseTarif,
|
|
'plafondFamille'=>$plafondFamille,'plafondIndividu' => $plafondIndividu, 'ouinonbudget' => $this->ouinonbudget, 'modifierBareme'=> $modifierBareme,
|
|
'codeModecalculPrime'=> $codeModecalculPrime, 'primesTrancheAge' => $primesTrancheAge, 'primesTotalTrancheAge'=> $primesTotalTrancheAge));
|
|
|
|
}
|
|
?>
|