gc = new Gestionconfiee(); } public function index() { $this->genererVueAjax(array('regle' => $_SESSION['GcFraisgestionRegle'])); } public function initiergcfraisgestion() { $codeGcAssureur = $this->requete->getParametreFormulaire("codeGcAssureur"); $codeExercice = $this->requete->getParametreFormulaire("codeExercice"); $codeMois = $this->requete->getParametreFormulaire("codeMois"); $_SESSION['codeGcAssureur'] = $codeGcAssureur; $_SESSION['codeExercice_C'] = $codeExercice; $_SESSION['codeMois_C'] = $codeMois; $idEnteteGcFraisgestion = $this->gc->get_idEnteteGcFraisgestion($codeGcAssureur, $codeExercice, $codeMois); $_SESSION['idEnteteGcFraisgestion'] = $idEnteteGcFraisgestion; if($idEnteteGcFraisgestion==0) { // Créer le décompte dans reglement $this->gc->initiergcfraisgestion($codeGcAssureur); $idEnteteGcFraisgestion = $this->gc->get_idEnteteGcFraisgestion($codeGcAssureur, $codeExercice, $codeMois); $_SESSION['idEnteteGcFraisgestion'] = $idEnteteGcFraisgestion; } // Afficher le décompte $idEnteteGcFraisgestion = $_SESSION['idEnteteGcFraisgestion']; $infosdecompte = $this->gc->getinfosdecompte($idEnteteGcFraisgestion); $_SESSION['GcFraisgestionRegle'] = $infosdecompte['regle']; $this->executerAction("index"); } public function rechargergcfraisgestion() { $idEnteteGcFraisgestion = $_SESSION['idEnteteGcFraisgestion']; $codeGcAssureur = $_SESSION['codeGcAssureur']; $codeExercice = $_SESSION['codeExercice_C']; $codeMois = $_SESSION['codeMois_C']; $this->gc->rechargergcfraisgestion($idEnteteGcFraisgestion, $codeGcAssureur, $codeExercice, $codeMois); // $this->executerAction("affichergcfraisgestion"); } public function affichergcfraisgestion() { $idEnteteGcFraisgestion = $_SESSION['idEnteteGcFraisgestion']; $this->gc->recapfraisgestion($idEnteteGcFraisgestion); $entetefraisgestion = $this->gc->getentetefraisgestion($idEnteteGcFraisgestion); $fraisgestions = $this->gc->getdetailfraisgestion($idEnteteGcFraisgestion); $this->genererVueAjax(array('entetefraisgestion' => $entetefraisgestion, 'fraisgestions' => $fraisgestions)); } public function affichergcfraisgestioncumul() { $idEnteteGcFraisgestion = $_SESSION['idEnteteGcFraisgestion']; $this->gc->recapfraisgestion($idEnteteGcFraisgestion); $entetefraisgestion = $this->gc->getentetefraisgestion($idEnteteGcFraisgestion); $fraisgestions = $this->gc->getdetailfraisgestioncumul($idEnteteGcFraisgestion); $this->genererVueAjax(array('entetefraisgestion' => $entetefraisgestion, 'fraisgestions' => $fraisgestions)); } public function listeentetegcfraisgestion() { $codeGcAssureur = $this->requete->getParametreFormulaire("codeGcAssureur"); $codeExercice = $this->requete->getParametreFormulaire("codeExercice"); $_SESSION['codeGcAssureur'] = $codeGcAssureur; $_SESSION['codeExercice_C'] = $codeExercice; $entetegcfraisgestions = $this->gc->listeentetegcfraisgestion($codeGcAssureur, $codeExercice); $this->genererVueAjax(array('entetegcfraisgestions' => $entetegcfraisgestions)); } }