production/Societes/envoyx/Tarifs/Controleur/Modifiercollegeindex.php
2026-03-04 01:48:40 +00:00

101 lines
4.8 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("Modifiercollege");
}
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();
$_SESSION['nomFormulaire'] = "frmmodifiercollege";
$idCollege = $_SESSION['idCollege'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$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'] = $codeGcAssureur;
$_SESSION['codeTypeGarant'] = $typeGarant['codeTypeGarant'];
$_SESSION['forfait'] = "1";
$_SESSION['codeTypeTarifActe'] = $codeTypeTarifActe;
$_SESSION['vueCollege'] = "Modifiercollege";
$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);
if($codeModecalculPrime == "TA"){
$this->college_temp->initprimeTranche($codeProduit,$codeGcAssureur, $idCollegeTemp);
}
$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,
'lienParente' => $lienParente,'bareme' => $bareme,'ticketModerateurCollege' => $ticketModerateurCollege,'baseTarif' => $baseTarif,
'plafondFamille'=>$plafondFamille,'plafondIndividu' => $plafondIndividu, 'ouinonbudget' => $this->ouinonbudget));
}
?>