diff --git a/Controleur/ControleurAjaxdetailretrait.php b/Controleur/ControleurAjaxdetailretrait.php new file mode 100644 index 0000000..9201748 --- /dev/null +++ b/Controleur/ControleurAjaxdetailretrait.php @@ -0,0 +1,37 @@ +avenant = new Police(); + $this->beneficiaire_temp = new Beneficiaire_temp(); + } + + public function index() + { + $idPolice = $_SESSION['idPolice_C']; + $avenant = $this->avenant->getAvenantTemp($idPolice); + $beneficiaires_sel = $this->beneficiaire_temp->getListeBeneficiaire_temp_Ret(); + + + $this->genererVueAjax(array('beneficiaires_sel' => $beneficiaires_sel, 'avenant' => $avenant)); + } + + public function recapituler() { + $this->beneficiaire_temp->recapitulerretrait(); + $this->executerAction("index"); + } + + public function appliquertauxristourne() + { + $tauxRistourne = $this->requete->getParametreFormulaire("tauxRistourne","numerique"); + $this->beneficiaire_temp->appliquertauxristourne($tauxRistourne); + $this->executerAction("index"); + } + +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxselectionretrait.php b/Controleur/ControleurAjaxselectionretrait.php new file mode 100644 index 0000000..da07e6c --- /dev/null +++ b/Controleur/ControleurAjaxselectionretrait.php @@ -0,0 +1,32 @@ +beneficiaire_temp = new Beneficiaire_temp(); + } + + public function index() + { + $beneficiaires = $this->beneficiaire_temp->getListeBeneficiaire_temp_Ret_Selection(); + + $this->genererVueAjax(array('beneficiaires' => $beneficiaires)); + } + + public function selectionner() { + $idBeneficiaire = $this->requete->getParametre("idBeneficiaire"); + $choix = $this->requete->getParametreFormulaire("choix"); + + $this->beneficiaire_temp->selectionretrait($idBeneficiaire, $choix); + } + + public function recapituler() { + $idBeneficiaire = $this->requete->getParametre("idBeneficiaire"); + $choix = $this->requete->getParametreFormulaire("choix"); + + $this->beneficiaire_temp->recapitulerretrait($idBeneficiaire, $choix); + } +} \ No newline at end of file diff --git a/Controleur/ControleurCreeravenant.php b/Controleur/ControleurCreeravenant.php index 818cb2f..9f28449 100644 --- a/Controleur/ControleurCreeravenant.php +++ b/Controleur/ControleurCreeravenant.php @@ -39,51 +39,14 @@ class ControleurCreeravenant extends Controleur { $_SESSION['dateAvenant_C'] = $dateAvenant; $_SESSION['motifavenant_C'] = $motifavenant; - if($codeTypeAvenant=="RES") - { - $this->rediriger("Ficheresiliation"); - } - else if($codeTypeAvenant=="RET") { $this->rediriger("Ficheretrait"); } else - if($codeTypeAvenant=="REN") + if($codeTypeAvenant=="INC") { - $dateEcheanceRen = $this->requete->getParametreDate("dateEcheanceRen"); - $_SESSION['dateEcheanceRen_C'] = $dateEcheanceRen; - $this->rediriger("Ficherenouvellement"); - } - else - if($codeTypeAvenant=="ADL") - { - $this->rediriger("Fichelimiteadditionnelle"); - } - else - { - $this->police->creeravenant($idPolice, $codeTypeAvenant, $motifavenant, $dateAvenant); - - $this->police->getContexteAjaxPolice($idPolice); - - if($codeTypeAvenant=="INC") - { - /* - if($_SESSION['codeTypeContrat']=="G") - { - $this->rediriger("Importassure"); - } - else - { - $this->rediriger("Listeadherent"); - } - */ - $this->rediriger("Fichepolice"); - } - else - { - $this->rediriger("Fichepolice"); - } + $this->rediriger("Listeadherent"); } } } \ No newline at end of file diff --git a/Controleur/ControleurFicheretrait.php b/Controleur/ControleurFicheretrait.php new file mode 100644 index 0000000..6c4d1fe --- /dev/null +++ b/Controleur/ControleurFicheretrait.php @@ -0,0 +1,39 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Ficheretrait"); + + $this->avenant = new Police(); + $this->beneficiaire_temp = new Beneficiaire_temp(); + } + public function index() { + $idPolice = $_SESSION['idPolice_C']; + $dateAvenant = $_SESSION['dateAvenant_C']; + + $this->avenant->initretrait($idPolice); + + $emission = $this->avenant->getEmissionTemp($idPolice); + $avenant = $this->avenant->getAvenantTemp($idPolice); + $sppolice = $this->avenant->getRapportSpPolice($idPolice, $dateAvenant); + + $beneficiaires_sel = $this->beneficiaire_temp->getListeBeneficiaire_temp_Ret(); + + $this->genererVue(array('emission' => $emission, 'avenant' => $avenant, 'sppolice' => $sppolice, 'beneficiaires_sel' => $beneficiaires_sel)); + } + + public function enregistrerretrait() + { + $this->avenant->enregistrerretrait(); + + $this->rediriger("Fichepolice"); + } +} \ No newline at end of file diff --git a/Vue/Ajaxdetailretrait/index.php b/Vue/Ajaxdetailretrait/index.php new file mode 100644 index 0000000..f97c447 --- /dev/null +++ b/Vue/Ajaxdetailretrait/index.php @@ -0,0 +1,115 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($avenant['primeNette'])) ?> nettoyer($avenant['commission'])) ?> nettoyer($avenant['commissionAutre'])) ?> nettoyer($avenant['accessoire'])) ?> nettoyer($avenant['primeHt'])) ?> nettoyer($avenant['taxe'])) ?> nettoyer($avenant['fraisCarte'])) ?> nettoyer($avenant['primeTtcInitial'])) ?> nettoyer($avenant['primeNetteStat'])) ?>
+ + " onClick="javascript:recapituler_retrait();"> " onClick="javascript:enregistrer_retrait();">
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Type
nettoyer($avenant['nbAliment']) ?> Total nettoyer($avenant['primeNonAcquise'])) ?>nettoyer($avenant['primeHt'])) ?>nettoyer($avenant['taxe'])) ?>nettoyer($avenant['primeTtc'])) ?>
nettoyer($beneficiaire_sel['codeProduit']) ?>nettoyer($beneficiaire_sel['nomBeneficiaire']) ?>nettoyer($beneficiaire_sel['codeLienParente']) ?>nettoyer($beneficiaire_sel['numeroBeneficiaire']) ?>nettoyer($beneficiaire_sel['dateEntree'])) ?>nettoyer($beneficiaire_sel['duree']) ?>nettoyer($beneficiaire_sel['duree_non_acquise']) ?>nettoyer($beneficiaire_sel['ratioNonAcquise']) ?>nettoyer($beneficiaire_sel['rapportsp']) ?>nettoyer($beneficiaire_sel['primeNetteStat_an'])) ?>nettoyer($beneficiaire_sel['primeTtc_an'])) ?>nettoyer($beneficiaire_sel['primeNonAcquise'])) ?>nettoyer($beneficiaire_sel['primeHt'])) ?>nettoyer($beneficiaire_sel['taxe'])) ?>nettoyer($beneficiaire_sel['primeTtc'])) ?>
+
diff --git a/Vue/Ajaxselectionretrait/index.php b/Vue/Ajaxselectionretrait/index.php new file mode 100644 index 0000000..0ce0533 --- /dev/null +++ b/Vue/Ajaxselectionretrait/index.php @@ -0,0 +1,53 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Type
nettoyer($beneficiaire['codeProduit']) ?>nettoyer($beneficiaire['nomBeneficiaire']) ?>nettoyer($beneficiaire['codeLienParente']) ?>nettoyer($beneficiaire['numeroBeneficiaire']) ?>nettoyer($beneficiaire['dateEntree'])) ?>nettoyer($beneficiaire['duree']) ?>nettoyer($beneficiaire['duree_non_acquise']) ?>nettoyer($beneficiaire['ratioNonAcquise']) ?>nettoyer($beneficiaire['rapportsp']) ?>nettoyer($beneficiaire['primeNetteStat_an'])) ?>nettoyer($beneficiaire['primeTtc_an'])) ?>nettoyer($beneficiaire['primeNonAcquise'])) ?>nettoyer($beneficiaire['primeHt'])) ?>nettoyer($beneficiaire['taxe'])) ?>nettoyer($beneficiaire['primeTtc'])) ?>
+
diff --git a/Vue/Ficheretrait/index.php b/Vue/Ficheretrait/index.php new file mode 100644 index 0000000..9d86ef1 --- /dev/null +++ b/Vue/Ficheretrait/index.php @@ -0,0 +1,213 @@ +titre = "INTER-SANTE - Récap résiliation"; + $nbFactAntiDate = $this->nettoyer($avenant['nbFactAntiDate']); +?> + + + + + nettoyer($_SESSION['numeroPolice_C'])?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($emission['dateEffet'])) ?> nettoyer($emission['dateEcheance'])) ?> nettoyer($emission['dureePolice']) ?> nettoyer($avenant['dateEffet'])) ?> nettoyer($avenant['dateEcheance'])) ?> nettoyer($avenant['dureeAvenant']) ?>
+ + + + + + + + + + + + + + + + + + + + + + + + + +
TOTAL
nettoyer($sppolice['primestat'])) ?> nettoyer($sppolice['prime_acquise'])) ?> nettoyer($sppolice['consommation'])) ?> nettoyer($sppolice['rapportsp']) ?> nettoyer($sppolice['tauxRistourne']) ?>
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($avenant['primeNette'])) ?> nettoyer($avenant['commission'])) ?> nettoyer($avenant['commissionAutre'])) ?> nettoyer($avenant['accessoire'])) ?> nettoyer($avenant['primeHt'])) ?> nettoyer($avenant['taxe'])) ?> nettoyer($avenant['fraisCarte'])) ?> nettoyer($avenant['primeTtcInitial'])) ?> nettoyer($avenant['primeNetteStat'])) ?>
+ + " onClick="javascript:recapituler_retrait();"> " onClick="javascript:enregistrer_retrait();">
+ + 1): ?> +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Type
nettoyer($avenant['nbAliment']) ?> Total nettoyer($avenant['primeNonAcquise'])) ?>nettoyer($avenant['primeHt'])) ?>nettoyer($avenant['taxe'])) ?>nettoyer($avenant['primeTtc'])) ?>
nettoyer($beneficiaire_sel['codeProduit']) ?>nettoyer($beneficiaire_sel['nomBeneficiaire']) ?>nettoyer($beneficiaire_sel['codeLienParente']) ?>nettoyer($beneficiaire_sel['numeroBeneficiaire']) ?>nettoyer($beneficiaire_sel['dateEntree'])) ?>nettoyer($beneficiaire_sel['duree']) ?>nettoyer($beneficiaire_sel['duree_non_acquise']) ?>nettoyer($beneficiaire_sel['ratioNonAcquise']) ?>nettoyer($beneficiaire_sel['rapportsp']) ?>nettoyer($beneficiaire_sel['primeNetteStat_an'])) ?>nettoyer($beneficiaire_sel['primeTtc_an'])) ?>nettoyer($beneficiaire_sel['primeNonAcquise'])) ?>nettoyer($beneficiaire_sel['primeHt'])) ?>nettoyer($beneficiaire_sel['taxe'])) ?>nettoyer($beneficiaire_sel['primeTtc'])) ?>
+
+ + + \ No newline at end of file