diff --git a/Controleur/ControleurAjaxbeneficiaireprimeadherent.php b/Controleur/ControleurAjaxbeneficiaireprimeadherent.php new file mode 100644 index 0000000..65887e1 --- /dev/null +++ b/Controleur/ControleurAjaxbeneficiaireprimeadherent.php @@ -0,0 +1,32 @@ +emission = new Emission(); + } + + public function index() + { + $idAdherent = $_SESSION['idAdherent_C']; + + $debutPeriode = $this->requete->getParametreDate("debutPeriode"); + $finPeriode = $this->requete->getParametreDate("finPeriode"); + + $beneficiaires = $this->emission->getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode); + + $beneficiaires_total = null; + + if(count($beneficiaires)>"0") + { + $beneficiaires_total = $beneficiaires['0']; + } + + $this->genererVueAjax(array('beneficiaires' => $beneficiaires, 'beneficiaires_total' => $beneficiaires_total)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfacturesfamille.php b/Controleur/ControleurAjaxfacturesfamille.php new file mode 100644 index 0000000..def944b --- /dev/null +++ b/Controleur/ControleurAjaxfacturesfamille.php @@ -0,0 +1,22 @@ +facture = new Facture(); + } + + public function index() + { + $idAdherent = $_SESSION['idAdherent_C']; + $d1 = $this->requete->getParametreDate("d1"); + $d2 = $this->requete->getParametreDate("d2"); + + $factures = $this->facture->getfacturesfamille($idAdherent, $d1, $d2) ; + + $this->genererVueAjax(array('factures' => $factures)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaximporterlisteassure.php b/Controleur/ControleurAjaximporterlisteassure.php index e23b06a..259ae03 100644 --- a/Controleur/ControleurAjaximporterlisteassure.php +++ b/Controleur/ControleurAjaximporterlisteassure.php @@ -1,8 +1,13 @@ avenant->getAvenant($idPolice); + // $avenants = $this->avenant->getAvenant($idPolice); + $avenants = $this->avenant->getAvenantIncorporation($idPolice); $this->genererVueAjax(array('avenants' => $avenants)); } @@ -50,17 +56,17 @@ class ControleurAjaximporterlisteassure extends Controleurrequete ); $dataXLS = array(); - foreach ($beneficiaires as $beneficiaire) { $dataXLS[]=$beneficiaire; } - $classeur = new PHPExcel(); + $classeur = new Spreadsheet(); $classeur->getProperties()->setCreator("INTER-SANTE"); $classeur->setActiveSheetIndex(0); $feuille=$classeur->getActiveSheet(); + $feuille->setTitle(_('MODELE ASSURES')); $feuille->fromArray($headerXLS, NULL, 'A1', true); $feuille->fromArray($dataXLS, NULL, 'A2', true); @@ -68,7 +74,7 @@ class ControleurAjaximporterlisteassure extends Controleurrequete //Forcer le téléchargement vers le navigateur; $fichier = 'Temp/TEMPLATE_LISTE_ASSURE'."_".uniqid().".xlsx"; - $writer = new PHPExcel_Writer_Excel2007($classeur); + $writer = new Xlsx($classeur); $writer->save($fichier); $t_html ='
'; @@ -98,6 +104,7 @@ class ControleurAjaximporterlisteassure extends Controleurrequete exit(); } + /* $docXLS = new PHPExcel_Reader_Excel2007(); $Excel = $docXLS->load($fichier); @@ -105,6 +112,12 @@ class ControleurAjaximporterlisteassure extends Controleurrequete $Excel->setActiveSheetIndex(0); $feuille=$Excel->getActiveSheet(); + */ + + $docXLS = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx(); + $Excel = $docXLS->load($fichier); + $feuille = $Excel->getSheet($Excel->getFirstSheetIndex()); + $derniereLigne = $feuille->getHighestRow(); $derniereColonne = $feuille->getHighestColumn(); diff --git a/Controleur/ControleurAjaxlistegedpolice.php b/Controleur/ControleurAjaxlistegedpolice.php new file mode 100644 index 0000000..aac4e21 --- /dev/null +++ b/Controleur/ControleurAjaxlistegedpolice.php @@ -0,0 +1,24 @@ +ged = new Ged(); + } + + public function index() + { + unset($_FILES['fichier_upload']); + + $d1 = $this->requete->getParametreDate("d1"); + $d2 = $this->requete->getParametreDate("d2"); + $nomOrigine = $this->requete->getParametreFormulaire("nomOrigine"); + + $geds = $this->ged->getgedpolice($d1, $d2, $nomOrigine); + + $this->genererVueAjax(array('geds' => $geds)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxsppolice.php b/Controleur/ControleurAjaxsppolice.php new file mode 100644 index 0000000..ce13821 --- /dev/null +++ b/Controleur/ControleurAjaxsppolice.php @@ -0,0 +1,50 @@ +sppolice = new Police(); + } + + public function index() + { + $this->genererVueAjax(); + } + + public function police() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppolice = $this->sppolice->getRapportSpPolicePol($idPolice, $dj); + + $this->genererVueAjax(array('sppolice' => $sppolice)); + } + + public function categorie() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppolices = $this->sppolice->getRapportSpPoliceCat($idPolice, $dj); + + $this->genererVueAjax(array('sppolices' => $sppolices)); + } + + public function college() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppolices = $this->sppolice->getRapportSpPoliceCol($idPolice, $dj); + + $this->genererVueAjax(array('sppolices' => $sppolices)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxsyntheseconsopolice.php b/Controleur/ControleurAjaxsyntheseconsopolice.php new file mode 100644 index 0000000..f88d259 --- /dev/null +++ b/Controleur/ControleurAjaxsyntheseconsopolice.php @@ -0,0 +1,99 @@ +police = new Police(); + } + + public function index() + { + $conommations = $this->police->getsyntheseconsopolice() ; + + $this->genererVueAjax(array('conommations' => $conommations)); + } + + public function exportxls() + { + + $conommations = $this->police->getsyntheseconsopolice() ; + + // Excel + $headerXLS = array + ( + "dateReference", + "idAderent", + _('No Adhérent'), + _('Adhérent'), + "primeStat", + "primeTtc", + + "plafond_OUT", + "consommation_OUT", + "solde_OUT", + + "plafond_INP", + "consommation_INP", + "solde_INP", + + "plafond_OPT", + "consommation_OPT", + "solde_OPT", + + "plafond_MON", + "consommation_MON", + "solde_MON", + + "plafond_DEN", + "consommation_DEN", + "solde_DEN", + + "plafond_FUN", + "consommation_FUN", + "solde_FUN", + "consommation_ALL" + ); + + $dataXLS = array(); + + + foreach ($conommations as $conommation) + { + $dataXLS[]=$conommation; + } + + $classeur = new Spreadsheet(); + $classeur->getProperties()->setCreator("INTER-SANTE"); + $classeur->setActiveSheetIndex(0); + $feuille=$classeur->getActiveSheet(); + + $feuille->setTitle(_('SYNTHESE CONSOMMATIONS')); + $feuille->fromArray($headerXLS, NULL, 'A1', true); + $feuille->fromArray($dataXLS, NULL, 'A2', true); + + //Forcer le téléchargement vers le navigateur; + $fichier = 'Temp/TMP_SYNTHESE_CONS'."_".uniqid().".xlsx"; + + // $writer = new PHPExcel_Writer_Excel2007($classeur); + $writer = new Xlsx($classeur); + + $writer->save($fichier); + + $t_html ='
'; + $t_html .=' '._("TELECHARGER").' '; + $t_html .='
menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Beneficiaireprimeadherent"); + + $this->adherent = new Adherent(); + $this->emission = new Emission(); + } + + public function index() + { + $idAdherent = $_SESSION['idAdherent_C']; + + $adherent = $this->adherent->getAdherentId($idAdherent); + $debutPeriode = $adherent['dateEffetAdherent']; + $finPeriode = $adherent['dateFinPolice']; + + $beneficiaires = $this->emission->getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode); + + $beneficiaires_total = null; + + if(count($beneficiaires)>"0") + { + $beneficiaires_total = $beneficiaires['0']; + } + + $this->genererVue(array('adherent' => $adherent, 'beneficiaires' => $beneficiaires, 'beneficiaires_total' => $beneficiaires_total)); + } +} diff --git a/Controleur/ControleurChangeretatadherent.php b/Controleur/ControleurChangeretatadherent.php new file mode 100644 index 0000000..a41529f --- /dev/null +++ b/Controleur/ControleurChangeretatadherent.php @@ -0,0 +1,44 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Changeretatadherent"); + + $this->adherent = new Adherent(); + $this->etatpersonne = new Etatpersonne; + } + public function index() { + $idAdherent = $_SESSION['idAdherent_C']; + $adherent = $this->adherent->getAdherentId($idAdherent); + + $oldcodeEtatPersonne = $adherent['codeEtatAdherent']; + + $etatpersonne = $this->etatpersonne->getListeSuiteFam($oldcodeEtatPersonne); + + $this->genererVue(array('adherent' => $adherent, 'etatpersonne' => $etatpersonne)); + } + + public function enregistrer() + { + $idAdherent = $_SESSION['idAdherent_C']; + + $codeEtatAdherent = $this->requete->getParametreFormulaire("codeEtatAdherent"); + $motifEtat = $this->requete->getParametreFormulaire("motifEtat"); + $dateEtat = $this->requete->getParametreDate("dateEtat"); + + $this->adherent->changeretat($idAdherent, $codeEtatAdherent, $motifEtat, $dateEtat); + + // $this->rediriger("Ficheadherent"); + // $this->rediriger("Ficheadherent", $_SESSION['idAdherent_C']); + $this->rediriger("Ficheadherent/".$_SESSION['idAdherent_C']); + } +} \ No newline at end of file diff --git a/Controleur/ControleurChangeretatbeneficiaire.php b/Controleur/ControleurChangeretatbeneficiaire.php new file mode 100644 index 0000000..cc9e502 --- /dev/null +++ b/Controleur/ControleurChangeretatbeneficiaire.php @@ -0,0 +1,43 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Changeretatbeneficiaire"); + + $this->beneficiaire = new Beneficiaire(); + $this->etatpersonne = new Etatpersonne; + } + public function index() + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $beneficiaire = $this->beneficiaire->getBeneficiaireId($idBeneficiaire); + + $oldcodeEtatPersonne = $beneficiaire['codeEtatBeneficiaire']; + + $etatpersonne = $this->etatpersonne->getListeSuiteDep($oldcodeEtatPersonne); + + $this->genererVue(array('beneficiaire' => $beneficiaire, 'etatpersonne' => $etatpersonne)); + } + + public function enregistrer() + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $codeEtatBeneficiaire = $this->requete->getParametreFormulaire("codeEtatBeneficiaire"); + $motifEtat = $this->requete->getParametreFormulaire("motifEtat"); + $dateEtat = $this->requete->getParametreDate("dateEtat"); + + $this->beneficiaire->changeretat($idBeneficiaire, $codeEtatBeneficiaire, $motifEtat, $dateEtat); + + $this->rediriger("Fichebeneficiaire/".$_SESSION['idBeneficiaire_C']); + } +} \ No newline at end of file diff --git a/Controleur/ControleurConnexion.php b/Controleur/ControleurConnexion.php index 4356402..d98e91f 100644 --- a/Controleur/ControleurConnexion.php +++ b/Controleur/ControleurConnexion.php @@ -429,7 +429,8 @@ require_once 'Framework/Localisation.php'; $this->requete->getSession()->setAttribut("lienPrestation_C", $utilisateur['lienPrestation']); $this->requete->getSession()->setAttribut("lienProduction_C", $utilisateur['lienProduction']); - $this->requete->getSession()->setAttribut("lienAssure_C", $utilisateur['lienAssure']); + $this->requete->getSession()->setAttribut("lienAssure_C", $utilisateur['lienAssure']); + $this->requete->getSession()->setAttribut("lienRh_C", $utilisateur['lienRh']); $this->requete->getSession()->setAttribut("modeSaisieFacture", "0"); $this->requete->getSession()->setAttribut("nbMessagesNonLus_C", "0"); @@ -447,7 +448,7 @@ require_once 'Framework/Localisation.php'; } $this->requete->getSession()->setAttribut("dossierSociete", $filename); - $this->requete->getSession()->setAttribut("dossierGed", $_SESSION['lienProduction_C'].$_SESSION['dossierSociete'].'/Ged/'); + $this->requete->getSession()->setAttribut("dossierGed", $_SESSION['lienRh_C'].$_SESSION['dossierSociete'].'/Ged/'); $this->requete->getSession()->setAttribut("cheminGed", $_SESSION['dossierSociete'].'/Ged/'); $this->requete->getSession()->setAttribut("cheminPhoto", $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'); diff --git a/Controleur/ControleurFacturesfamilleadh.php b/Controleur/ControleurFacturesfamilleadh.php new file mode 100644 index 0000000..1421e07 --- /dev/null +++ b/Controleur/ControleurFacturesfamilleadh.php @@ -0,0 +1,27 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Facturesfamilleadh'); + + $this->facture = new Facture(); + } + + public function index() + { + $idAdherent = $_SESSION['idAdherent_C']; + $d1 = $_SESSION['dUneSemaineAvant_C']; + $d2 = date('Y-m-d'); + + $factures = $this->facture->getfacturesfamille($idAdherent, $d1, $d2) ; + + $this->genererVue(array('factures' => $factures)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurFichebeneficiaire.php b/Controleur/ControleurFichebeneficiaire.php index b7fcc96..d0188c7 100644 --- a/Controleur/ControleurFichebeneficiaire.php +++ b/Controleur/ControleurFichebeneficiaire.php @@ -5,6 +5,9 @@ require_once 'Modele/Beneficiaire.php'; require_once 'Modele/Police.php'; require_once 'Modele/Garantieadherent.php'; +require 'vendor/autoload.php'; +use Aws\Rekognition\RekognitionClient; + class ControleurFichebeneficiaire extends Controleur { private $beneficiaire; @@ -142,6 +145,7 @@ class ControleurFichebeneficiaire extends Controleur $_SESSION['lienPhoto_C'] = $nomImage; unlink(TARGET.$nomImageTemp); + $this->rediriger("Fichebeneficiaire/".$idBeneficiaire); } else { @@ -209,6 +213,7 @@ class ControleurFichebeneficiaire extends Controleur $this->rediriger("Ficheadherent/".$_SESSION['idAdherent_C']); } + /* public function ebeneenregistrerface() { $_SESSION['messageFace'] = ""; @@ -292,5 +297,178 @@ class ControleurFichebeneficiaire extends Controleur unlink($chemin); } } + */ + + public function ebeneenregistrerface() + { + $_SESSION['messageFace'] = ""; + $compare_face = $_POST['compare_face']; + $del_face = $_POST['del_face']; + + if(isset($_POST['image_face'])) + { + $_SESSION['okId_face'] = "-1"; + $_SESSION['okId'] = "-1"; + + $path = "Temp/"; + $extension = "jpeg"; + + $data = $_POST['image_face']; + + $data = str_replace('data:image/jpeg;base64,', '', $data); + + $data = base64_decode($data); + + $username = $_SESSION['numeroBeneficiaire_C']; + + $date = date('YmdHis'); + $file_name = "img_v_".$date.uniqid().".".$extension; + $chemin = $path.$file_name; + + file_put_contents($chemin, $data); + + $rand = rand(1,1000000); + $nomImage = $username."_".$rand.'.'. $extension; + + if ($compare_face=="1") + { + if($del_face=="1") + { + $this->beneficiaire->init_traiterlaface('3'); + } + else + { + $this->beneficiaire->init_traiterlaface('2'); + } + + $arrgs = [ + 'credentials' => [ + 'key' => 'AKIA2O2PTXQ7XN5OATO3', + 'secret' => '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', + ], + 'version' => 'latest', + 'region' => 'us-west-2' + ]; + + $client = new RekognitionClient($arrgs); + + $sourceImage = $chemin; + $targetImage = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C']; + + try + { + $result = $client->compareFaces + ( + [ + 'SimilarityThreshold' => 80, + 'SourceImage' => [ + 'Bytes' => file_get_contents($sourceImage) + ], + 'TargetImage' => [ + 'Bytes' => file_get_contents($targetImage) + ], + ] + ); + + $faceMatches = count($result['FaceMatches']); + if ($faceMatches==0) + { + $_SESSION['messageFace'] = "Les faces ne correspondent pas! / The faces do not match!"; + $this->beneficiaire->resultat_traitement_face($username, '0', $_SESSION['messageFace']); + $this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'msgErreur' => $_SESSION['messageFace'], 'photo_succes' => "0")); + } + elseif ($del_face=="1") + { + $motif = $_POST['motif']; + + $this->beneficiaire->resultat_traitement_face($username, '1', $motif); + + + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $this->beneficiaire->supprimerPhoto($idBeneficiaire); + $this->beneficiaire->unregisterface($username, $motif); + $_SESSION['messageFace'] = "Face supprimée pour motif : $motif / Face removed for reason : $motif"; + + $this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'photo_succes' => "1")); + $_SESSION['lienPhoto_C']=""; + } + else + { + $this->beneficiaire->resultat_traitement_face($username, '1', ''); + + $_SESSION['okId_face'] = "1"; + $_SESSION['messageFace'] = "Face confirmée! / Face confirmed!"; + $this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'msgErreur' => $_SESSION['messageFace'], 'photo_succes' => "1")); + } + } + catch (Exception $e) + { + echo 'Message: ' .$e->getMessage(); + // exit(); + $msgErreur = $e->getMessage(); + // $_SESSION['messageFace'] = "Un problème lors du traitement! / A problem during treatment!"; + $_SESSION['messageFace'] = $msgErreur; + + $this->beneficiaire->resultat_traitement_face($username, '9', $msgErreur); + + $this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'msgErreur' => $_SESSION['messageFace'], 'photo_succes' => "0")); + } + } + else + { + $this->beneficiaire->init_traiterlaface('1'); + + $cheminNew = $_SESSION['lienPhotoFace'] . $nomImage; + + $_SESSION['okId_face'] = "1"; + + // réduction de la taille de l'immage + $infosImg = getimagesize($chemin); + $src = $chemin; + $imgtype = image_type_to_mime_type($infosImg[2]); + + switch ($imgtype) + { + case 'image/jpeg': + $source_image = imagecreatefromjpeg($src); + break; + case 'image/jpg': + $source_image = imagecreatefromjpeg($src); + break; + case 'image/png': + $source_image = imagecreatefrompng($src); + break; + } + + $width = imagesx($source_image); + $desired_width = $width; + if ($desired_width > $_SESSION['largeurPhoto']) + { + $desired_width = $_SESSION['largeurPhoto']; + } + $height = imagesy($source_image); + + $desired_height = floor($height * ($desired_width / $width)); + + $virtual_image = imagecreatetruecolor($desired_width, $desired_height); + + imagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height); + + if (imagejpeg($virtual_image, $cheminNew, -1)) + // if (imagejpeg($virtual_image, $cheminNew, 60)) + { + $this->beneficiaire->registerface($username); + + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $this->beneficiaire->changerPhoto($idBeneficiaire, $nomImage); + + $_SESSION['messageFace'] = "Enrôlement effectué avec succès! / Enrollment completed successfully!!"; + $this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'msgErreur' => $_SESSION['messageFace'], 'photo_succes' => "1")); + } + $this->beneficiaire->resultat_traitement_face($username, '1', ''); + } + unlink($chemin); + } + } } \ No newline at end of file diff --git a/Controleur/ControleurGedpolice.php b/Controleur/ControleurGedpolice.php new file mode 100644 index 0000000..c12aec9 --- /dev/null +++ b/Controleur/ControleurGedpolice.php @@ -0,0 +1,121 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Gedpolice'); + + $this->ged = new Ged(); + } + + public function index($msgErreur=null) + { + + $message = ""; + + $nouveau_fichier = "Rien"; + + if(!empty($_POST)) + { + define('TARGET', $_SESSION['cheminGed']); // Repertoire cible + define('MAX_SIZE', 10000000); // Taille max en octets du fichier + + // Tableaux de donnees + // ".avi", ".bmp", ".doc", ".docx", ".gif", ".jpeg", "jpg", "jpe", ".mkv", ".mp3", ".pdf", ".png", ".pps", ".xls", ".xlsx", ".wav" + // $tabExt = array('jpg','png','jpeg'); // Extensions autorisees + + $tabExt = array("avi", "bmp", "doc", "docx", "gif", "jpeg", "jpg", "jpe", "mkv", "mp3", "mp4", "pdf", "png", "pps", "xls", "xlsx", "wav"); // Extensions autorisees + + // Variables + $extension = ''; + + if( !is_dir(TARGET) ) + { + if( !mkdir(TARGET, 0755) ) + { + $message = 'Erreur : le répertoire cible ne peut-être créé ! Vérifiez que vous diposiez des droits suffisants pour le faire ou créez le manuellement !'; + } + } + + // On verifie si le champ est rempli + if( !empty($_FILES['fichier_upload']['name']) ) + { + // Recuperation de l'extension du fichier + + $extension = pathinfo($_FILES['fichier_upload']['name'], PATHINFO_EXTENSION); + + // On verifie l'extension du fichier + if(in_array(strtolower($extension), $tabExt)) + { + $message = $_FILES['fichier_upload']['size']; + + // On verifie les dimensions et taille du fichier + if($_FILES['fichier_upload']['size'] <= MAX_SIZE) + { + $taille = $_FILES['fichier_upload']['size']; + + // Parcours du tableau d'erreurs + if(isset($_FILES['fichier_upload']['error']) && UPLOAD_ERR_OK === $_FILES['fichier_upload']['error']) + { + // On renomme le fichier + $nomOrigine = $_FILES['fichier_upload']['name']; + $nouveau_fichier = dateJourSql()."_".uniqid().".".$extension; + + // Si c'est OK, on teste l'upload + if(move_uploaded_file($_FILES['fichier_upload']['tmp_name'], TARGET.$nouveau_fichier)) + { + $message = 'Chargé avec succès / Uploaded successfully'; + + // on va envoyer dans la base de données + $this->ged->enregistrergedpolice($nomOrigine, $nouveau_fichier, $taille); + $this->rediriger("Gedpolice"); + } + else + { + // Sinon on affiche une erreur systeme + $message = 'Problème lors du chargement !'; + } + } + else + { + $message = 'Une erreur interne a empêché le chargement'; + } + } + else + { + $message .= $_FILES['fichier_upload']['size']." Erreur dans les dimensions du fichier !"; + // $message = 'Erreur dans les dimensions du fichier !'; + } + } + else + { + // Sinon on affiche une erreur pour l'extension + $message = 'Extension du fichier est incorrecte !'; + } + } + else + { + // Sinon on affiche une erreur pour le champ vide + $message = 'Veuillez sélectionner un fichier SVP! / Please select a file!'; + } + + // fin upload + } + + $msgErreur = $message; + + $d1 = $_SESSION['dUneSemaineAvant_C']; + $d2 = date('Y-m-d'); + + $geds = $this->ged->getgedpolice($d1, $d2, ""); + + unset($_FILES['fichier_upload']); + + $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurLiercolleges.php b/Controleur/ControleurLiercolleges.php new file mode 100644 index 0000000..fb8dc2e --- /dev/null +++ b/Controleur/ControleurLiercolleges.php @@ -0,0 +1,22 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Liercolleges'); + + $this->college = (new Collegepolice())->getListe($_SESSION['idPolice_C']); + } + + public function index() { + $idPolice = $_SESSION['idPolice_C']; + + $this->genererVue(array('college' => $this->college)); + } + +} \ No newline at end of file diff --git a/Controleur/ControleurNonfacturepolice.php b/Controleur/ControleurNonfacturepolice.php new file mode 100644 index 0000000..9cf438a --- /dev/null +++ b/Controleur/ControleurNonfacturepolice.php @@ -0,0 +1,31 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Nonfacturepolice"); + + $this->beneficiaire = new Beneficiaire(); + } + public function index() { + $idPolice = $_SESSION['idPolice_C']; + + $nonfactures = $this->beneficiaire->getBeneficiairesNonFature($idPolice); + + $ente_nonfacture = null; + + if(count($nonfactures)>"0") + { + $ente_nonfacture = $nonfactures['0']; + } + + $this->genererVue(array('nonfactures' => $nonfactures, 'ente_nonfacture' => $ente_nonfacture)); + + } +} \ No newline at end of file diff --git a/Controleur/ControleurNonfacturepolicecons.php b/Controleur/ControleurNonfacturepolicecons.php new file mode 100644 index 0000000..6410d09 --- /dev/null +++ b/Controleur/ControleurNonfacturepolicecons.php @@ -0,0 +1,31 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Nonfacturepolicecons"); + + $this->beneficiaire = new Beneficiaire(); + } + public function index() { + $idPolice = $_SESSION['idPolice_C']; + + $nonfactures = $this->beneficiaire->getBeneficiairesNonFature($idPolice); + + $ente_nonfacture = null; + + if(count($nonfactures)>"0") + { + $ente_nonfacture = $nonfactures['0']; + } + + $this->genererVue(array('nonfactures' => $nonfactures, 'ente_nonfacture' => $ente_nonfacture)); + + } +} \ No newline at end of file diff --git a/Controleur/ControleurPlafondadherent.php b/Controleur/ControleurPlafondadherent.php new file mode 100644 index 0000000..b25a4d9 --- /dev/null +++ b/Controleur/ControleurPlafondadherent.php @@ -0,0 +1,31 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Plafondadherent"); + + $this->adherent = new Adherent(); + $this->garantieadherent = new Garantieadherent(); + + } + public function index() + { + $idAdherent = $_SESSION['idAdherent_C']; + $adherent = $this->adherent->getContexteAdherentId($idAdherent); + $exercieReference = $_SESSION['exercieReference_C']; + $idEntetecontrat = $_SESSION['idEntetecontrat']; + $entecontrats = $this->garantieadherent->getlisteentetecontratadherent($idAdherent); + + $garantieadherents = $this->garantieadherent->getGarantieAdherentEnteteContrat($idAdherent, $idEntetecontrat); + + $this->genererVue(array('adherent' => $adherent, 'garantieadherents' => $garantieadherents, 'entecontrats' => $entecontrats)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurSpadherent.php b/Controleur/ControleurSpadherent.php new file mode 100644 index 0000000..6b30e09 --- /dev/null +++ b/Controleur/ControleurSpadherent.php @@ -0,0 +1,25 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Spadherent"); + + $this->spadherent = new Adherent(); + } + public function index() { + $idAdherent = $_SESSION['idAdherent_C']; + + $dj = date("Y-m-d"); + + $spadherent = $this->spadherent->getRapportSpAdherent($idAdherent, $dj); + + $this->genererVue(array('spadherent' => $spadherent)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurSppolice.php b/Controleur/ControleurSppolice.php new file mode 100644 index 0000000..ad547cb --- /dev/null +++ b/Controleur/ControleurSppolice.php @@ -0,0 +1,26 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Sppolice"); + + $this->sppolice = new Police(); + } + public function index() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj); + + $this->genererVue(array('sppoliceentete' => $sppoliceentete)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurSyntheseconsopolice.php b/Controleur/ControleurSyntheseconsopolice.php new file mode 100644 index 0000000..76c8387 --- /dev/null +++ b/Controleur/ControleurSyntheseconsopolice.php @@ -0,0 +1,26 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Syntheseconsopolice"); + + $this->sppolice = new Police(); + } + public function index() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj); + + $this->genererVue(array('sppoliceentete' => $sppoliceentete)); + } +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index e56b841..fae8194 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -187,6 +187,7 @@ function baseSwal(options) { * ALERTE SIMPLE * Affiche une information bilingue. */ +/* mis en commentaire le temps que cela fonctionne 04/01/2026 function alert_ebene(p_msg, p_msg_eng) { const codeLangue = $("#codeLangue").val(); const message = (codeLangue === "en_US") ? p_msg_eng : p_msg; @@ -197,11 +198,27 @@ function alert_ebene(p_msg, p_msg_eng) { confirmButtonText: codeLangue === "en_US" ? 'OK' : 'D\'accord' }); } +*/ +function alert_ebene(p_msg, p_msg_eng) +{ + codeLangue = $("#codeLangue").val(); + + if(codeLangue=="en_US") + { + alert(p_msg_eng); + } + else + { + alert(p_msg); + } +} + /** * CONFIRMATION * Affiche une boîte de dialogue Oui/Non et retourne une promesse. */ + function confirm_ebene(p_msg, p_msg_eng) { const codeLangue = $("#codeLangue").val(); const message = (codeLangue === "en_US") ? p_msg_eng : p_msg; @@ -215,6 +232,22 @@ function confirm_ebene(p_msg, p_msg_eng) { }).then(result => result.isConfirmed); } +/* +function confirm_ebene(p_msg, p_msg_eng) +{ + codeLangue = $("#codeLangue").val(); + + if(codeLangue=="en_US") + { + return confirm(p_msg_eng); + } + else + { + return confirm(p_msg); + } +} +*/ + /** * SAISIE TEXTE (PROMPT) * Ouvre une modale avec champ de saisie et exécute un callback avec la valeur. @@ -1588,22 +1621,6 @@ function afficher_adherent() } } -function afficher_adherent_id() -{ - debugger; - codeTypeContrat = $("#codeTypeContrat_C").val(); - if (codeTypeContrat=="F") - { - afficher_adherent_familiale_id(); - return; - } - - idAdherent = $("#idAdherent_C" ).val(); - if (idAdherent>"0") - { - window.location.assign($("#racineWeb" ).val()+"Ficheadherent/"+$("#idAdherent_C" ).val()+"/"); - } -} function afficher_adherent_id_plus(idAdherent) { @@ -1780,9 +1797,19 @@ function ebene_enregistrer_photo_face() // OK function fiche_beneficiaire() { - idBeneficiaire = $("#idBeneficiaire").val(); + idBeneficiaire = $("#idBeneficiaire_C").val(); - window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+idBeneficiaire); + if (idBeneficiaire>" ") + { + window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+idBeneficiaire); + } + + /* + if ($("#numeroBeneficiaire_C" ).val()>"") + { + window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+$("#numeroBeneficiaire_C" ).val()+"/"); + } + */ } function ebene_init_confirm_photo_face() // OK @@ -1845,7 +1872,7 @@ function ebene_confirmer_photo_face() // OK var dataURL = canvas.toDataURL("image/jpeg"); $.ajax({ - url: $("#racineWeb").val()+"Prestations/ebeneenregistrerface/", + url: $("#racineWeb").val()+"Fichebeneficiaire/ebeneenregistrerface/", type: 'POST', data: {'image_face' : dataURL, 'compare_face' : compare_face , 'del_face' : "0"}, success: function(data) { @@ -1939,7 +1966,7 @@ function ebene_supprimer_photo_face() // OK var dataURL = canvas.toDataURL("image/jpeg"); $.ajax({ - url: $("#racineWeb").val()+"Prestations/ebeneenregistrerface/", + url: $("#racineWeb").val()+"Fichebeneficiaire/ebeneenregistrerface/", type: 'POST', data: {'image_face' : dataURL, 'compare_face' : compare_face, 'del_face' : "1", 'motif' : motif}, success: function(data) { @@ -2473,4 +2500,859 @@ $( ".datepicker" ).datepicker({ changeYear: true, yearRange: "c-60:c+20" -}); \ No newline at end of file +}); + +function charger_fichier_modele_assure() +{ + $('#div_exporter_liste_assures').html(""); + + $('#div_form_upload').show(); +} + +function init_importer_modele_assure() +{ + etape2=$("#etape2").val(); + + if (etape2 != "1") + { + v_msg="Etape 2 incomplète!"; + v_msgEng="Incomplete step 2!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + $('#div_form_upload').hide(); + + var div_export = $('#div_exporter_liste_assures'); + + div_export.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/initimportermodele/", + type: 'POST', + // data: donnees, + success: function(data) + { + div_export.html(data); + }, + error : function(resultat, statut, erreur) + { + }, + complete: function(data) + { + } + }); +} + +function importer_modele_assure(idAvenant) +{ + etape2=$("#etape2").val(); + + if (etape2 != "1") + { + v_msg="Etape 2 incomplète!"; + v_msgEng="Incomplete step 2!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + $('#div_form_upload').hide(); + + var div_export = $('#div_exporter_liste_assures'); + + div_export.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + + cheminFichier=$("#cheminFichier").val(); + + donnees = 'idAvenant='+idAvenant+'&cheminFichier='+cheminFichier; + + $("#div_erreur_excel").html(""); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/importermodele/", + type: 'POST', + data: donnees, + success: function(data) + { + div_export.html(''); + $("#div_erreur_excel").html(data); + + v_msg="Opération terminée avec succès!"; + v_msgEng="Operation completed successfully!"; + alert_ebene(v_msg, v_msgEng); + }, + error : function(resultat, statut, erreur) + { + }, + complete: function(data) + { + div_export.html(''); + + succes_impot_execl=$("#succes_impot_execl").val(); + + if (succes_impot_execl == "1") + { + maj_etape_3_import_assures(); + } + } + }); +} + +function maj_etape_3_import_assures() +{ + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/majetape/", + type: 'POST', + success: function(data) + { + }, + error : function(resultat, statut, erreur) + { + }, + complete: function(data) + { + afficher_liste_assures_a_importer(); + } + }); +} + +function afficher_liste_assures_a_importer() +{ + window.location.assign($("#racineWeb" ).val()+"Listeimportassure/"); +} + +function calculer_prime_inmportation() +{ + nb_adh=$("#nb_adh").val(); + + if (nb_adh>"0") + { + v_msg="Veuillez lier toutes les famille à leur collège!"; + v_msgEng="Please link all the family to their college!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + var div_attente = $('#div_liste_assure_importe'); + + div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/calculerprimeimportee/", + type: 'POST', + // data: donnees, + success: function(data) { + /* + v_msg="Calcul de primes terminée avec succès!"; + v_msgEng="Premium calculation completed successfully!"; + alert_ebene(v_msg, v_msgEng); + alert("Calcul de primes terminée avec succès!"); + */ + }, + error: function(data) { + }, + complete: function() + { + afficher_liste_assures_a_importer(); + } + }); +} + +function incorporer_assures_inmportes() +{ + nb_adh=$("#nb_adh").val(); + + if (nb_adh>"0") + { + v_msg="Veuillez revoir les collèges et relancer le calcul des primes!"; + v_msgEng="Please review the colleges and restart the premium calculation!!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + nb_ligne_ass=$("#nb_ligne_ass").val(); + + if (nb_ligne_ass=="0") + { + v_msg="Rien à importer!"; + v_msgEng="Nothing to import!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + v_msg="Avez-vous fait l\'étape 2 => calcul des primes?"; + v_msgEng="Did you do step 2 => premium calculation?"; + + if(!confirm_ebene(v_msg, v_msgEng)) + { + return; + } + + primeTtcTotal=$("#primeTtcTotal").val(); + + if (primeTtcTotal=="0") + { + v_msg="Pas de primes! souhaitez-vous recalculer les primes?"; + v_msgEng="No premiums! do you want to recalculate the premiums?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + return; + } + + v_msg="Notez que vous avez accepté l\'incorporation sans primes!"; + v_msgEng="Note that you accepted the incorporation without premium!"; + alert_ebene(v_msg, v_msgEng); + } + + v_msg="Confirmez-vous l\'incorporation de cette liste?"; + v_msgEng="Do you confirm the incorporation of this list?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + var div_attente = $('#div_liste_assure_importe'); + + div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", + type: 'POST', + // data: donnees, + success: function(data) { + v_msg="Incorporation terminée avec succès!"; + v_msgEng="Incorporation completed successfully!"; + alert_ebene(v_msg, v_msgEng); + }, + error: function(data) { + }, + complete: function() { + afficher_police_id(); + } + }); + } +} + +function traiter_lignes_importees() +{ + etape2=$("#etape2").val(); + + if (etape2 != "1") + { + v_msg="Etape 2 incomplète!"; + v_msgEng="Incomplete step 2!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + etape3=$("#etape3").val(); + + if (etape3 != "1") + { + v_msg="Etape 3 incomplète!"; + v_msgEng="Incomplete step 3!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + afficher_liste_assures_a_importer(); +} + +function afficher_adherent_importee() +{ + idCollege=$("#idCollege").val(); + + if (idCollege<=" ") + { + v_msg="Veuillez sélectionner un collège!"; + v_msgEng="Please select a college!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + donnees = 'idCollege='+idCollege; + + var div_attente = $('#div_adherents_importes'); + + div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/afficheradherentimportee/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + div_attente.html(data); + }, + complete: function() { + } + }); +} + +function retirer_un_adherent_importe_college(idBeneficiairemodel) +{ + donnees = 'idBeneficiairemodel='+idBeneficiairemodel; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/retirerunadherentaucollege/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_adherent_importee(); + } + }); +} + +function ajouter_un_adherent_importe_college(idBeneficiairemodel) +{ + idCollege=$("#idCollege").val(); + + if (idCollege<=" ") + { + v_msg="Veuillez sélectionner un collège!"; + v_msgEng="Please select a college!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + donnees = 'idBeneficiairemodel='+idBeneficiairemodel+'&idCollege='+idCollege; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/ajouterunadherentaucollege/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_adherent_importee(); + } + }); +} + + +function ajouter_tous_adherent_importe_college() +{ + idCollege=$("#idCollege").val(); + + if (idCollege<=" ") + { + v_msg="Veuillez sélectionner un collège!"; + v_msgEng="Please select a college!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + donnees = 'idCollege='+idCollege; + + v_msg="Attention, cela va vider tous les autres collèges! Confirmez-vous?"; + v_msgEng="Be careful, this will empty all other colleges! Do you confirm?"; + + confirm_ebene(v_msg, v_msgEng).then(isConfirmed => { + if (isConfirmed) { + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/ajoutertousadherentaucollege/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_adherent_importee(); + } + }); + } + }); +} + +function ajouter_sans_college_adherent_importe_college() +{ + idCollege=$("#idCollege").val(); + + if (idCollege<=" ") + { + v_msg="Veuillez sélectionner un collège!"; + v_msgEng="Please select a college!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + donnees = 'idCollege='+idCollege; + + v_msg="Attention! Confirmez-vous cette opération?"; + v_msgEng="Warning! Do you confirm this operation?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/ajoutersanscollegeadherentaucollege/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_adherent_importee(); + } + }); + } +} + + +function retirer_tous_adherent_importe_college() +{ + idCollege=$("#idCollege").val(); + + if (idCollege<=" ") + { + v_msg="Veuillez sélectionner un collège!"; + v_msgEng="Please select a college!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + donnees = 'idCollege='+idCollege; + + v_msg="Attention, cela va vider ce collège! Confirmez-vous?"; + v_msgEng="Attention, this will empty this college! Do you confirm?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/retirertousadherentaucollege/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_adherent_importee(); + } + }); + } +} + +function incorporer_assures_inmportes() +{ + nb_adh=$("#nb_adh").val(); + + if (nb_adh>"0") + { + v_msg="Veuillez revoir les collèges et relancer le calcul des primes!"; + v_msgEng="Please review the colleges and restart the premium calculation!!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + nb_ligne_ass=$("#nb_ligne_ass").val(); + + if (nb_ligne_ass=="0") + { + v_msg="Rien à importer!"; + v_msgEng="Nothing to import!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + v_msg="Avez-vous fait l\'étape 2 => calcul des primes?"; + v_msgEng="Did you do step 2 => premium calculation?"; + + if(!confirm_ebene(v_msg, v_msgEng)) + { + return; + } + + primeTtcTotal=$("#primeTtcTotal").val(); + + if (primeTtcTotal=="0") + { + v_msg="Pas de primes! souhaitez-vous recalculer les primes?"; + v_msgEng="No premiums! do you want to recalculate the premiums?"; + + /* + if(confirm_ebene(v_msg, v_msgEng)) + { + return; + } + */ + confirm_ebene(v_msg, v_msgEng).then(isConfirmed => { + if (isConfirmed) { + return; + } + }); + + + v_msg="Notez que vous avez accepté l\'incorporation sans primes!"; + v_msgEng="Note that you accepted the incorporation without premium!"; + alert_ebene(v_msg, v_msgEng); + } + + v_msg="Confirmez-vous l\'incorporation de cette liste?"; + v_msgEng="Do you confirm the incorporation of this list?"; + + confirm_ebene(v_msg, v_msgEng).then(isConfirmed => { + if (isConfirmed) { + var div_attente = $('#div_liste_assure_importe'); + + div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", + type: 'POST', + // data: donnees, + success: function(data) { + v_msg="Incorporation terminée avec succès!"; + v_msgEng="Incorporation completed successfully!"; + alert_ebene(v_msg, v_msgEng); + }, + error: function(data) { + }, + complete: function() { + afficher_police_id(); + } + }); + } + }); + + /* + if(confirm_ebene(v_msg, v_msgEng)) + { + var div_attente = $('#div_liste_assure_importe'); + + div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", + type: 'POST', + // data: donnees, + success: function(data) { + v_msg="Incorporation terminée avec succès!"; + v_msgEng="Incorporation completed successfully!"; + alert_ebene(v_msg, v_msgEng); + }, + error: function(data) { + }, + complete: function() { + afficher_police_id(); + } + }); + } + */ +} + +function afficher_police_id() +{ + idPolice=$("#idPolice_C" ).val(); + + if (idPolice>"") + { + ajax_context_police_afficher(idPolice); + } +} + +function ajax_context_police_afficher(idPolice) +{ + donnees = 'idPolice='+idPolice; + $.ajax({ + url: $("#racineWeb").val()+"Ajaxcontextpolice/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + complete: function() { + window.location.assign($("#racineWeb" ).val()+"Fichepolice/"); + } + }); +} + +function plafond_adherent() +{ + if ($("#idAdherent_C" ).val()>"") + { + window.location.assign($("#racineWeb" ).val()+"Plafondadherent/"); + } +} + +function afficher_garantieadherent_entete_contrat() +{ + var div_attente = $('#div_gar_exo'); + + idEntetecontrat=$("#idEntetecontrat").val(); + + if (idEntetecontrat<="0") + { + v_msg="Veuillez sélectionner une période!"; + v_msgEng="Please select a period!"; + alert_ebene(v_msg, v_msgEng); + + $("#idEntetecontrat").focus(); + + div_attente.html(''); + + return; + } + + // donnees = 'exercieReference='+exercieReference; + donnees = 'idEntetecontrat='+idEntetecontrat; + + div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxplafondadherent/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + div_attente.html(data); + }, + complete: function() { + } + }); +} + +function changer_etat_adherent() +{ + etat=$("#codeEtatPolice_C").val(); + + if (etat=="RE") + { + v_msg="Attention! Police résiliée!"; + v_msgEng="Warning! Terminated policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + if (etat=="SU") + { + v_msg="Attention! Police suspendue!"; + v_msgEng="Warning! Suspended policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + if (etat=="AN") + { + v_msg="Attention! Police annulée!"; + v_msgEng="Warning! Canceled policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + window.location.assign($("#racineWeb" ).val()+"Changeretatadherent/"); +} + +function rapport_sp_adherent() +{ + window.location.assign($("#racineWeb" ).val()+"Spadherent/"); +} + +function factures_famille_2() +{ + window.location.assign($("#racineWeb" ).val()+"Facturesfamilleadh/"); +} + +function listerfacturefamille() +{ + d1=$("#d1").val(); + d2=$("#d2").val(); + + donnees = 'd1='+d1+'&d2='+d2; + + $("#div_dossiers").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfacturesfamille/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + $("#div_dossiers").html(data); + }, + complete: function() { + } + }); +} + +function afficher_beneficiare_prime_adherent() +{ + debutPeriode = $("#debutPeriode").val(); + finPeriode = $("#finPeriode").val(); + + donnees_retour = ""; + donnees = 'debutPeriode='+debutPeriode+"&finPeriode="+finPeriode; + + $("#div_detail_requete").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxbeneficiaireprimeadherent/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + donnees_retour = data; + }, + complete: function() { + $("#div_detail_requete").html(donnees_retour); + } + }); +} + +function rapport_sp_police() +{ + window.location.assign($("#racineWeb" ).val()+"Sppolice/"); +} + +function sinistres_a_prime_police() +{ + $("#div_detail_sp").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxsppolice/police/", + type: 'POST', + success: function(data) { + $("#div_detail_sp").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function sinistres_a_prime_categorie() +{ + $("#div_detail_sp").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxsppolice/categorie/", + type: 'POST', + success: function(data) { + $("#div_detail_sp").html(data); + }, + error: function(data) { + }, + complete: function() { + return; + } + }); +} + +function sinistres_a_prime_college() +{ + $("#div_detail_sp").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxsppolice/college/", + type: 'POST', + success: function(data) { + $("#div_detail_sp").html(data); + }, + error: function(data) { + }, + complete: function() { + return; + } + }); +} + +function requetes_synthese_consommation_police() +{ + v_url = $("#racineWeb").val()+"Ajaxsyntheseconsopolice/"; + + $("#div_detail_exp").html(''); + + $("#div_detail_sp").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: v_url, + type : 'post', + error: function(errorData) + { + }, + success: function(data) + { + donnees_retour = data; + }, + complete: function() + { + $("#div_detail_sp").html(donnees_retour); + } + }); +} + + +function requetes_synthese_consommation_police_export() +{ + v_url = $("#racineWeb").val()+"Ajaxsyntheseconsopolice/exportxls/"; + + $("#div_detail_exp").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: v_url, + type : 'post', + error: function(errorData) + { + }, + success: function(data) + { + donnees_retour = data; + }, + complete: function() { + $('#div_detail_exp').html(donnees_retour); + } + }); +} + +function lister_ged_police() +{ + d1 = $("#d1").val(); + d2 = $("#d2").val(); + nomOrigine = $("#nomOrigine").val(); + + donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine; + + $("#div_ged").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxlistegedpolice/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + $("#div_ged").html(data); + }, + complete: function() { + } + }); +} + diff --git a/Modele/Adherent.php b/Modele/Adherent.php index 1f0f9bc..41bf3f0 100755 --- a/Modele/Adherent.php +++ b/Modele/Adherent.php @@ -119,6 +119,7 @@ class Adherent extends Modele { $_SESSION['codeTypeApporteur_C'] = $context['codeTypeApporteur']; $_SESSION['codeApporteur_C'] = $context['codeApporteur']; $_SESSION['libelleApporteur_C'] = $context['libelleApporteur']; + $_SESSION['dateEffetAdherent_C'] = $context['dateEffetAdherent']; // Fin 06/05/2020 $_SESSION['idBeneficiaire_C'] = ""; diff --git a/Modele/Avenant.php b/Modele/Avenant.php index e96a690..53ab7bc 100644 --- a/Modele/Avenant.php +++ b/Modele/Avenant.php @@ -4,7 +4,8 @@ class Avenant extends Modele { public function getAvenant($idPolice) { - $sql = 'call sp_avenants_police(?)'; + // $sql = 'call sp_avenants_police(?)'; + $sql = 'call sp_avenants_police_client(?)'; $resultat = $this->executerRequete($sql, array($idPolice)); @@ -84,4 +85,15 @@ class Avenant extends Modele { $liste = $this->executerRequete($sql, array($idPolice)); return $liste->fetchAll(PDO::FETCH_ASSOC); } + + public function getAvenantIncorporation($idPolice) + { + $sql = 'call sp_avenants_police_client(?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + } diff --git a/Modele/Beneficiaire.php b/Modele/Beneficiaire.php index 6641496..e353960 100755 --- a/Modele/Beneficiaire.php +++ b/Modele/Beneficiaire.php @@ -978,7 +978,8 @@ class Beneficiaire extends Modele { $user = $_SESSION['login']; $idPolice = $_SESSION['idPolice_C']; - $sql = 'call sp_incorporer_assures_importes(?, ?);'; + // $sql = 'call sp_incorporer_assures_importes(?, ?);'; + $sql = 'call sp_incorporer_assures_importes_client(?, ?);'; $this->executerRequete($sql, array($idPolice, $user)); } diff --git a/Modele/Emission.php b/Modele/Emission.php index 87e7563..151c377 100644 --- a/Modele/Emission.php +++ b/Modele/Emission.php @@ -20,4 +20,37 @@ class Emission extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode) + { + if (est_anglophone()) + { + $sql = 'call sp_get_beneficiaire_prime_adherent_eng(?, ?, ?)'; + } + else + { + $sql = 'call sp_get_beneficiaire_prime_adherent(?, ?, ?)'; + } + + $resultat = $this->executerRequete($sql, array($idAdherent, $debutPeriode, $finPeriode)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getbeneficiaireprimebeneficiaire($idBeneficiaire, $debutPeriode, $finPeriode) + { + if (est_anglophone()) + { + $sql = 'call sp_get_beneficiaire_prime_beneficiaire_eng(?, ?, ?)'; + } + else + { + $sql = 'call sp_get_beneficiaire_prime_beneficiaire(?, ?, ?)'; + } + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $debutPeriode, $finPeriode)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + } \ No newline at end of file diff --git a/Modele/Ged.php b/Modele/Ged.php index 55d0070..60b910d 100755 --- a/Modele/Ged.php +++ b/Modele/Ged.php @@ -3,6 +3,194 @@ require_once 'Framework/Modele.php'; class Ged extends Modele { + public function getgedfeuillemaladie($d1, $d2, $nomOrigine) + { + $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; + + $sql = 'call sp_r_get_ged_feuillemaladie(?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($numeroFeuilleMaladie, $d1, $d2, $nomOrigine)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function enregistrergedfeuillemaladie($nomOrigine, $nouveau_fichier, $taille) + { + $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; + $user = $_SESSION['login']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + + $sql = 'call sp_r_ajouter_ged_feuillemaladie(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($numeroFeuilleMaladie, $nomOrigine, $cheminFichier, $taille, $user)); + } + + public function enregistrergedbeneficiaireprest($nomOrigine, $nouveau_fichier, $taille) + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $user = $_SESSION['login']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + + $sql = 'call sp_r_ajouter_ged_beneficiaire_prest(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idBeneficiaire, $nomOrigine, $cheminFichier, $taille, $user)); + } + + public function getgedbeneficiaireprest($d1, $d2, $nomOrigine) + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $sql = 'call sp_r_get_ged_beneficiaire_prest(?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $d1, $d2, $nomOrigine)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function enregistrergedbeneficiaireprod($nomOrigine, $nouveau_fichier, $taille) + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $user = $_SESSION['login']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + + $sql = 'call sp_r_ajouter_ged_beneficiaire_prod(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idBeneficiaire, $nomOrigine, $cheminFichier, $taille, $user)); + } + + public function getgedbeneficiaireprod($d1, $d2, $nomOrigine) + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $sql = 'call sp_r_get_ged_beneficiaire_prod(?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $d1, $d2, $nomOrigine)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getgedadherent($d1, $d2, $nomOrigine) + { + $idAdherent = $_SESSION['idAdherent_C']; + + $sql = 'call sp_r_get_ged_adherent(?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent, $d1, $d2, $nomOrigine)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille) + { + $idAdherent = $_SESSION['idAdherent_C']; + $user = $_SESSION['login']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + + $sql = 'call sp_r_ajouter_ged_adherent(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idAdherent, $nomOrigine, $cheminFichier, $taille, $user)); + } + + public function getgedpolice($d1, $d2, $nomOrigine) + { + $idPolice = $_SESSION['idPolice_C']; + + // $sql = 'call sp_r_get_ged_police(?, ?, ?, ?)'; + $sql = 'call sp_r_get_ged_police_client(?, ?, ?, ?)'; + + + $resultat = $this->executerRequete($sql, array($idPolice, $d1, $d2, $nomOrigine)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function enregistrergedpolice($nomOrigine, $nouveau_fichier, $taille) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + + // $sql = 'call sp_r_ajouter_ged_police(?, ?, ?, ?, ?)'; + $sql = 'call sp_r_ajouter_ged_police_client(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idPolice, $nomOrigine, $cheminFichier, $taille, $user)); + } + + public function getged($d1, $d2, $nomOrigine) + { + $sql = 'call sp_r_get_ged(?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($d1, $d2, $nomOrigine)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function enregistrerged($nomOrigine, $nouveau_fichier, $taille) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + + $sql = 'call sp_r_ajouter_ged(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $nomOrigine, $cheminFichier, $taille, $user)); + } + + public function getgedpharmacie() + { + $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; + + $sql = 'call sp_r_get_ged_pharmacie(?)'; + + $resultat = $this->executerRequete($sql, array($numeroBonOrdonnance)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function enregistrergedpharmacie($nomOrigine, $nouveau_fichier, $taille) + { + $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; + $idSaisie = $_SESSION['idSaisie']; + $user = $_SESSION['login']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + + $sql = 'call sp_r_ajouter_ged_pharmacie(?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($numeroBonOrdonnance, $idSaisie, $user, $nomOrigine, $cheminFichier, $taille)); + } + + public function enregistrergedprescription($nomOrigine, $nouveau_fichier, $taille) + { + $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; + $idSaisie = $_SESSION['idSaisie']; + $user = $_SESSION['login']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + + $sql = 'call sp_r_ajouter_ged_prescription(?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($numeroBonOrdonnance, $idSaisie, $user, $nomOrigine, $cheminFichier, $taille)); + } + + public function getgedfacture($idFacture) + { + $sql = 'call sp_r_get_ged_facture(?)'; + + $resultat = $this->executerRequete($sql, array($idFacture)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function enregistrergedfacture($nomOrigine, $nouveau_fichier, $taille) + { + $idFacture = $_SESSION['idFacture_C']; + $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + $user = $_SESSION['login']; + + $sql = 'call sp_r_ajouter_ged_facture(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idFacture, $nomOrigine, $cheminFichier, $taille, $user)); + } + public function getgedfichepolice($idPolice) { $sql = 'call sp_r_get_ged_fiche_police(?)'; @@ -17,8 +205,18 @@ class Ged extends Modele { $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; $user = $_SESSION['login']; - $sql = 'call sp_c_ajouter_ged_fiche_police(?, ?, ?, ?, ?)'; + $sql = 'call sp_r_ajouter_ged_fiche_police(?, ?, ?, ?, ?)'; $this->executerRequete($sql, array($idPolice, $nomOrigine, $cheminFichier, $taille, $user)); } + + public function supprimerged($idGed, $motifSuppression) + { + $user = $_SESSION['login']; + + $sql = 'call sp_supprimer_ged(?, ?, ?);'; + + $this->executerRequete($sql, array($idGed, $motifSuppression, $user)); + } + } \ No newline at end of file diff --git a/PHPExcel/PHPExcel/Chart/Axis.php b/PHPExcel/PHPExcel/Chart/Axis.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Chart/GridLines.php b/PHPExcel/PHPExcel/Chart/GridLines.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Chart/Properties.php b/PHPExcel/PHPExcel/Chart/Properties.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Helper/HTML.php b/PHPExcel/PHPExcel/Helper/HTML.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Reader/Excel5/Color.php b/PHPExcel/PHPExcel/Reader/Excel5/Color.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Reader/Excel5/Color/BIFF5.php b/PHPExcel/PHPExcel/Reader/Excel5/Color/BIFF5.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Reader/Excel5/Color/BIFF8.php b/PHPExcel/PHPExcel/Reader/Excel5/Color/BIFF8.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Reader/Excel5/Color/BuiltIn.php b/PHPExcel/PHPExcel/Reader/Excel5/Color/BuiltIn.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Reader/Excel5/ErrorCode.php b/PHPExcel/PHPExcel/Reader/Excel5/ErrorCode.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Reader/Excel5/Style/Border.php b/PHPExcel/PHPExcel/Reader/Excel5/Style/Border.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Reader/Excel5/Style/FillPattern.php b/PHPExcel/PHPExcel/Reader/Excel5/Style/FillPattern.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Shared/String.php b/PHPExcel/PHPExcel/Shared/String.php index fa1a64e..10e38d2 100755 --- a/PHPExcel/PHPExcel/Shared/String.php +++ b/PHPExcel/PHPExcel/Shared/String.php @@ -523,8 +523,8 @@ class PHPExcel_Shared_String if (strlen($str) < 2) { return $str; } - $c0 = ord($str{0}); - $c1 = ord($str{1}); + $c0 = ord($str[0]); + $c1 = ord($str[1]); if ($c0 == 0xfe && $c1 == 0xff) { $str = substr($str, 2); } elseif ($c0 == 0xff && $c1 == 0xfe) { @@ -535,11 +535,11 @@ class PHPExcel_Shared_String $newstr = ''; for ($i=0; $i<$len; $i+=2) { if ($bom_be) { - $val = ord($str{$i}) << 4; - $val += ord($str{$i+1}); + $val = ord($str[$i]) << 4; + $val += ord($str[$i+1]); } else { - $val = ord($str{$i+1}) << 4; - $val += ord($str{$i}); + $val = ord($str[$i+1]) << 4; + $val += ord($str[$i]); } $newstr .= ($val == 0x228) ? "\n" : chr($val); } diff --git a/PHPExcel/PHPExcel/Worksheet/Column.php b/PHPExcel/PHPExcel/Worksheet/Column.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Worksheet/ColumnCellIterator.php b/PHPExcel/PHPExcel/Worksheet/ColumnCellIterator.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Worksheet/ColumnIterator.php b/PHPExcel/PHPExcel/Worksheet/ColumnIterator.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Worksheet/Dimension.php b/PHPExcel/PHPExcel/Worksheet/Dimension.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Worksheet/RowCellIterator.php b/PHPExcel/PHPExcel/Worksheet/RowCellIterator.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument.php b/PHPExcel/PHPExcel/Writer/OpenDocument.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/Cell/Comment.php b/PHPExcel/PHPExcel/Writer/OpenDocument/Cell/Comment.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/Content.php b/PHPExcel/PHPExcel/Writer/OpenDocument/Content.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/Meta.php b/PHPExcel/PHPExcel/Writer/OpenDocument/Meta.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/MetaInf.php b/PHPExcel/PHPExcel/Writer/OpenDocument/MetaInf.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/Mimetype.php b/PHPExcel/PHPExcel/Writer/OpenDocument/Mimetype.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/Settings.php b/PHPExcel/PHPExcel/Writer/OpenDocument/Settings.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/Styles.php b/PHPExcel/PHPExcel/Writer/OpenDocument/Styles.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/Thumbnails.php b/PHPExcel/PHPExcel/Writer/OpenDocument/Thumbnails.php old mode 100644 new mode 100755 diff --git a/PHPExcel/PHPExcel/Writer/OpenDocument/WriterPart.php b/PHPExcel/PHPExcel/Writer/OpenDocument/WriterPart.php old mode 100644 new mode 100755 diff --git a/Vue/Ajaxbeneficiaireprimeadherent/index.php b/Vue/Ajaxbeneficiaireprimeadherent/index.php new file mode 100644 index 0000000..ce96888 --- /dev/null +++ b/Vue/Ajaxbeneficiaireprimeadherent/index.php @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Total nettoyer($beneficiaires_total['primeNetteTotal'])) ?>nettoyer($beneficiaires_total['commissionTotal'])) ?>nettoyer($beneficiaires_total['commissionAutreTotal'])) ?>nettoyer($beneficiaires_total['accessoireTotal'])) ?>nettoyer($beneficiaires_total['taxeTotal'])) ?>nettoyer($beneficiaires_total['fraisCarteTotal'])) ?>nettoyer($beneficiaires_total['primeTtcTotal'])) ?>
+ +
Total nettoyer($beneficiaires_total['primeNetteTotal'])) ?>nettoyer($beneficiaires_total['commissionTotal'])) ?>nettoyer($beneficiaires_total['commissionAutreTotal'])) ?>nettoyer($beneficiaires_total['accessoireTotal'])) ?>nettoyer($beneficiaires_total['taxeTotal'])) ?>nettoyer($beneficiaires_total['fraisCarteTotal'])) ?>nettoyer($beneficiaires_total['primeTtcTotal'])) ?>
nettoyer($beneficiaire['dateEffet'])) ?> nettoyer($beneficiaire['codeLienParente']) ?> nettoyer($beneficiaire['numeroBeneficiaire']) ?>nettoyer($beneficiaire['beneficiaire']) ?>nettoyer($beneficiaire['primeNette'])) ?>nettoyer($beneficiaire['commission'])) ?>nettoyer($beneficiaire['commissionAutre'])) ?>nettoyer($beneficiaire['accessoire'])) ?>nettoyer($beneficiaire['taxe'])) ?>nettoyer($beneficiaire['fraisCarte'])) ?>nettoyer($beneficiaire['primeTtc'])) ?>
diff --git a/Vue/Ajaxfacturesfamille/index.php b/Vue/Ajaxfacturesfamille/index.php new file mode 100644 index 0000000..76a9860 --- /dev/null +++ b/Vue/Ajaxfacturesfamille/index.php @@ -0,0 +1,62 @@ +
+ + + + + + + + + + + + + + + + + + + nettoyer($facture['idFacture']); + $numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']); + $tiersPayant = $facture['tiersPayant']; + + $codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']); + + $numeroBon = $this->nettoyer($facture['numeroBonConsultation']); + + if($codeTypeFacture=="PHAR") + { + $numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']); + } + elseif($codeTypeFacture=="OPT") + { + $numeroBon = $this->nettoyer($facture['numeroBonOptique']); + } + elseif($codeTypeFacture=="LAB") + { + $numeroBon = $this->nettoyer($facture['numeroBonExamen']); + } + elseif($codeTypeFacture=="SEA") + { + $numeroBon = $this->nettoyer($facture['numeroBonKine']); + } + ?> + + + + + + + + + + + + + + + +
Type Date
nettoyer($facture['dateSysteme'])) ?>nettoyer($facture['prestataire']) ?>nettoyer($facture['beneficiaire']) ?>nettoyer($facture['fraisReel'])) ?>nettoyer($facture['montantTm'])) ?>nettoyer($facture['montantArembourser'])) ?>nettoyer($facture['fraisExclu'])) ?>nettoyer($facture['fraisRetenu'])) ?>
+
diff --git a/Vue/Ajaxlistegedpolice/index.php b/Vue/Ajaxlistegedpolice/index.php new file mode 100644 index 0000000..cfe044e --- /dev/null +++ b/Vue/Ajaxlistegedpolice/index.php @@ -0,0 +1,42 @@ +
+ " ")) : ?> + + + + + + + + + + + + + + + + + + + nettoyer($ged['idGed']); + $cheminFichier = $this->nettoyer($ged['cheminFichier']); + ?> + + + + + + + + + + + + + + +
Date Src Document
nettoyer($ged['dateSysteme'])) ?>nettoyer($ged['source']) ?>nettoyer($ged['souscripteur']) ?>nettoyer($ged['numeroPolice']) ?>nettoyer($ged['prestataire']) ?>nettoyer($ged['adherent']) ?>nettoyer($ged['numeroBeneficiaire']) ?>nettoyer($ged['beneficiaire']) ?>nettoyer($ged['nomOrigine']) ?> + +
+
diff --git a/Vue/Ajaxplafondadherent/index.php b/Vue/Ajaxplafondadherent/index.php new file mode 100644 index 0000000..f87519a --- /dev/null +++ b/Vue/Ajaxplafondadherent/index.php @@ -0,0 +1,33 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($garantieadherent['exercieReference'])?> nettoyer($garantieadherent['garantie'])?> nettoyer($garantieadherent['plafondAnnuel'])) ?>nettoyer($garantieadherent['tauxAvenant']) ?>nettoyer($garantieadherent['plafond'])) ?>nettoyer($garantieadherent['consommation'])) ?>nettoyer($garantieadherent['solde'])) ?>
+ +
+
+ +
diff --git a/Vue/Ajaxsppolice/categorie.php b/Vue/Ajaxsppolice/categorie.php new file mode 100644 index 0000000..459fbe3 --- /dev/null +++ b/Vue/Ajaxsppolice/categorie.php @@ -0,0 +1,31 @@ +
+ + " disabled > + + + + + + + + + + + + + + + + + + + + + + + + + +
Cat
nettoyer($sppolice['codeProduit']) ?> nettoyer($sppolice['primestat'])) ?> nettoyer($sppolice['prime_acquise'])) ?> nettoyer($sppolice['consommation'])) ?> nettoyer($sppolice['rapportsp']) ?> nettoyer($sppolice['rapportspgeneral']) ?>
+
diff --git a/Vue/Ajaxsppolice/college.php b/Vue/Ajaxsppolice/college.php new file mode 100644 index 0000000..b005e6a --- /dev/null +++ b/Vue/Ajaxsppolice/college.php @@ -0,0 +1,32 @@ +
+ + " disabled > + + + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($sppolice['codeProduit']) ?> nettoyer($sppolice['libelleCollege']) ?> nettoyer($sppolice['primestat'])) ?> nettoyer($sppolice['prime_acquise'])) ?> nettoyer($sppolice['consommation'])) ?> nettoyer($sppolice['rapportsp']) ?> nettoyer($sppolice['rapportspgeneral']) ?>
+
diff --git a/Vue/Ajaxsppolice/index.php b/Vue/Ajaxsppolice/index.php new file mode 100644 index 0000000..f351111 --- /dev/null +++ b/Vue/Ajaxsppolice/index.php @@ -0,0 +1 @@ +SP POLICE \ No newline at end of file diff --git a/Vue/Ajaxsppolice/police.php b/Vue/Ajaxsppolice/police.php new file mode 100644 index 0000000..2b62abe --- /dev/null +++ b/Vue/Ajaxsppolice/police.php @@ -0,0 +1,26 @@ +
+ + " disabled > + + + + + + + + + + + + + + + + + + + + + +
nettoyer($sppolice['primestat'])) ?> nettoyer($sppolice['prime_acquise'])) ?> nettoyer($sppolice['consommation'])) ?> nettoyer($sppolice['rapportsp']) ?> nettoyer($sppolice['rapportspgeneral']) ?>
+
diff --git a/Vue/Ajaxsyntheseconsopolice/index.php b/Vue/Ajaxsyntheseconsopolice/index.php new file mode 100644 index 0000000..4a785a1 --- /dev/null +++ b/Vue/Ajaxsyntheseconsopolice/index.php @@ -0,0 +1,63 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Stat OUT INP OPT MON DEN FUN OUT INP OPT MON DEN FUN ALL
nettoyer($conommation['nomAdherent']) ?>nettoyer($conommation['numeroAdherent']) ?>nettoyer($conommation['primeStat'])) ?>nettoyer($conommation['primeTtc'])) ?>nettoyer($conommation['plafond_OUT'])) ?>nettoyer($conommation['plafond_INP'])) ?>nettoyer($conommation['plafond_OPT'])) ?>nettoyer($conommation['plafond_MON'])) ?>nettoyer($conommation['plafond_DEN'])) ?>nettoyer($conommation['plafond_FUN'])) ?>nettoyer($conommation['consommation_OUT'])) ?>nettoyer($conommation['consommation_INP'])) ?>nettoyer($conommation['consommation_OPT'])) ?>nettoyer($conommation['consommation_MON'])) ?>nettoyer($conommation['consommation_DEN'])) ?>nettoyer($conommation['consommation_FUN'])) ?>nettoyer($conommation['consommation_ALL'])) ?>
+
\ No newline at end of file diff --git a/Vue/Beneficiaireprimeadherent/index.php b/Vue/Beneficiaireprimeadherent/index.php new file mode 100644 index 0000000..0265669 --- /dev/null +++ b/Vue/Beneficiaireprimeadherent/index.php @@ -0,0 +1,25 @@ +titre = "INTER-SANTE - Fiche Emission"; + +?> + + + + + + + + + + + + + + + +
+ +
+ +
+ diff --git a/Vue/Changeretatadherent/index.php b/Vue/Changeretatadherent/index.php new file mode 100644 index 0000000..19559cc --- /dev/null +++ b/Vue/Changeretatadherent/index.php @@ -0,0 +1,78 @@ +titre = "INTER-SANTE - changement état famillet"; + if (est_anglophone()) + { + $produit = $adherent['produitEng']; + $naturepiece = $adherent['naturepieceEng']; + $situationfamille = $adherent['situationfamilleEng']; + $motifsortie = $adherent['motifsortieEng']; + $etatadherent = $adherent['etatadherentEng']; + } + else + { + $produit = $adherent['produit']; + $naturepiece = $adherent['naturepiece']; + $situationfamille = $adherent['situationfamille']; + $motifsortie = $adherent['motifsortie']; + $etatadherent = $adherent['etatadherent']; + } + +?> + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+ " /> + +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+
diff --git a/Vue/Changeretatbeneficiaire/index.php b/Vue/Changeretatbeneficiaire/index.php new file mode 100644 index 0000000..fad2d36 --- /dev/null +++ b/Vue/Changeretatbeneficiaire/index.php @@ -0,0 +1,78 @@ +titre = "INTER-SANTE - changement état dépendant"; + + if (est_anglophone()) + { + $produit = $beneficiaire['produitEng']; + $naturepiece = $beneficiaire['naturepieceEng']; + $lienparente = $beneficiaire['lienparenteEng']; + $motifsortie = $beneficiaire['motifsortieEng']; + $etatbeneficiaire = $beneficiaire['etatbeneficiaireEng']; + } + else + { + $produit = $beneficiaire['produit']; + $naturepiece = $beneficiaire['naturepiece']; + $lienparente = $beneficiaire['lienparente']; + $motifsortie = $beneficiaire['motifsortie']; + $etatbeneficiaire = $beneficiaire['etatbeneficiaire']; + } + +?> + +
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+ +
+ " /> + +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+
diff --git a/Vue/Facturesfamilleadh/index.php b/Vue/Facturesfamilleadh/index.php new file mode 100644 index 0000000..bb8960d --- /dev/null +++ b/Vue/Facturesfamilleadh/index.php @@ -0,0 +1,119 @@ +titre = "INTER-SANTE - Factrures famille"; +?> + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + nettoyer($facture['idFacture']); + $numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']); + $tiersPayant = $facture['tiersPayant']; + + $codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']); + + $numeroBon = $this->nettoyer($facture['numeroBonConsultation']); + + if($codeTypeFacture=="PHAR") + { + $numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']); + } + elseif($codeTypeFacture=="OPT") + { + $numeroBon = $this->nettoyer($facture['numeroBonOptique']); + } + elseif($codeTypeFacture=="LAB") + { + $numeroBon = $this->nettoyer($facture['numeroBonExamen']); + } + elseif($codeTypeFacture=="SEA") + { + $numeroBon = $this->nettoyer($facture['numeroBonKine']); + } + + ?> + + + + + + + + + + + + + + + + + + +
Type Date
+ + nettoyer($facture['dateSysteme'])) ?>nettoyer($facture['prestataire']) ?>nettoyer($facture['beneficiaire']) ?>nettoyer($facture['fraisReel'])) ?>nettoyer($facture['montantTm'])) ?>nettoyer($facture['montantArembourser'])) ?>nettoyer($facture['fraisExclu'])) ?>nettoyer($facture['fraisRetenu'])) ?>
+
+ + diff --git a/Vue/Ficheadherent/index.php b/Vue/Ficheadherent/index.php index e080d60..87649e7 100644 --- a/Vue/Ficheadherent/index.php +++ b/Vue/Ficheadherent/index.php @@ -28,6 +28,13 @@ $typeecheancier = $this->nettoyer($adherent['typeecheancierEng']); } $tauxInteretEcheancier = $this->nettoyer($adherent['tauxInteretEcheancier']); + /* + var_dump( + array( + "dateEffetAdherent_C"=> $_SESSION['dateEffetAdherent_C'], + ) + ); + */ ?> + + + + + " . _("Lignes Totales") . " => " . $nb_ligne_ass . " => " . _("Lignes sans collège") . " => " . $nb_adh ?> + +
+ + '0'): ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '0'): ?> + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($dbeneficiaires_total['nbLigne'])) ?> nettoyer($dbeneficiaires_total['primeHtTotal'])) ?>nettoyer($dbeneficiaires_total['taxeTotal'])) ?>nettoyer($dbeneficiaires_total['fraisCarteTotal'])) ?>nettoyer($dbeneficiaires_total['primeTtcTotal'])) ?>nettoyer($dbeneficiaires_total['primeNetteStatTotal'])) ?>
Sex + + Stat
nettoyer($dbeneficiaires_total['nbLigne'])) ?> nettoyer($dbeneficiaires_total['primeHtTotal'])) ?>nettoyer($dbeneficiaires_total['taxeTotal'])) ?>nettoyer($dbeneficiaires_total['fraisCarteTotal'])) ?>nettoyer($dbeneficiaires_total['primeTtcTotal'])) ?>nettoyer($dbeneficiaires_total['primeNetteStatTotal'])) ?>
nettoyer($beneficiaire['categorie']) ?>nettoyer($beneficiaire['libelleCollege']) ?>nettoyer($beneficiaire['codeProduit']) ?>nettoyer($beneficiaire['libelleCollege']) ?>nettoyer($beneficiaire['codeProduit']) ?>nettoyer($beneficiaire['numeroAdherent']) ?>nettoyer($beneficiaire['noFamille']) ?>nettoyer($beneficiaire['nom']) ?>nettoyer($beneficiaire['prenoms']) ?>nettoyer($beneficiaire['codeLienParente']) ?>nettoyer($beneficiaire['sexe']) ?>nettoyer($beneficiaire['dateNaissance'])) ?>nettoyer($beneficiaire['dateEffet'])) ?>nettoyer($beneficiaire['primeHt'])) ?>nettoyer($beneficiaire['taxe'])) ?>nettoyer($beneficiaire['fraisCarte'])) ?>nettoyer($beneficiaire['primeTtc'])) ?>nettoyer($beneficiaire['primeNetteStat'])) ?>
+ + +
+

+
+ + +
+ +
+
+ diff --git a/Vue/Nonfacturepolice/index.php b/Vue/Nonfacturepolice/index.php new file mode 100644 index 0000000..8c09eab --- /dev/null +++ b/Vue/Nonfacturepolice/index.php @@ -0,0 +1,58 @@ + + nettoyer($_SESSION['numeroPolice_C'])?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Total nettoyer($ente_nonfacture['nbLignesTotal'])) ?>nettoyer($ente_nonfacture['primeHtTotal'])) ?>nettoyer($ente_nonfacture['taxeTotal'])) ?>nettoyer($ente_nonfacture['fraisCarteTotal'])) ?>nettoyer($ente_nonfacture['primeTtcTotal'])) ?>
+ +
Total nettoyer($ente_nonfacture['nbLignesTotal'])) ?>nettoyer($ente_nonfacture['primeHtTotal'])) ?>nettoyer($ente_nonfacture['taxeTotal'])) ?>nettoyer($ente_nonfacture['fraisCarteTotal'])) ?>nettoyer($ente_nonfacture['primeTtcTotal'])) ?>
nettoyer($nonfacture['dateEffet'])) ?> nettoyer($nonfacture['nbLignes'])) ?> nettoyer($nonfacture['primeHt'])) ?> nettoyer($nonfacture['taxe'])) ?> nettoyer($nonfacture['fraisCarte'])) ?> nettoyer($nonfacture['primeTtc'])) ?>
diff --git a/Vue/Nonfacturepolicecons/index.php b/Vue/Nonfacturepolicecons/index.php new file mode 100644 index 0000000..9ae2d81 --- /dev/null +++ b/Vue/Nonfacturepolicecons/index.php @@ -0,0 +1,59 @@ + + nettoyer($_SESSION['numeroPolice_C']) ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Total nettoyer($ente_nonfacture['nbLignesTotal'])) ?>nettoyer($ente_nonfacture['primeHtTotal'])) ?>nettoyer($ente_nonfacture['taxeTotal'])) ?>nettoyer($ente_nonfacture['fraisCarteTotal'])) ?>nettoyer($ente_nonfacture['primeTtcTotal'])) ?>
+ +
Total nettoyer($ente_nonfacture['nbLignesTotal'])) ?>nettoyer($ente_nonfacture['primeHtTotal'])) ?>nettoyer($ente_nonfacture['taxeTotal'])) ?>nettoyer($ente_nonfacture['fraisCarteTotal'])) ?>nettoyer($ente_nonfacture['primeTtcTotal'])) ?>
nettoyer($nonfacture['dateEffet'])) ?> nettoyer($nonfacture['nbLignes'])) ?> nettoyer($nonfacture['primeHt'])) ?> nettoyer($nonfacture['taxe'])) ?> nettoyer($nonfacture['fraisCarte'])) ?> nettoyer($nonfacture['primeTtc'])) ?>
diff --git a/Vue/Spadherent/index.php b/Vue/Spadherent/index.php new file mode 100644 index 0000000..bdc4e01 --- /dev/null +++ b/Vue/Spadherent/index.php @@ -0,0 +1,83 @@ +titre = "INTER-SANTE - Rapport S/P Famille"; + + $adherentRetire = $spadherent['adherentRetire']; + $dateSortieAdherent = $spadherent['dateSortieAdherent']; +?> + +nettoyer($spadherent['adherent'])." ( ".$this->nettoyer($spadherent['numeroAdherent'])." ) " ?> + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($spadherent['dateEffet'])) ?> nettoyer($spadherent['dateEcheance'])) ?> nettoyer($spadherent['duree_acquise']) ?> nettoyer($spadherent['ratio_acquise']) ?> nettoyer($spadherent['dureePolice']) ?>
+ + + + + + + + + + + + + + + + + + + + + + +
nettoyer($spadherent['dateEffetAdherent'])) ?> nettoyer($spadherent['dateEcheance'])) ?> nettoyer($spadherent['duree_acquise_adherent']) ?> nettoyer($spadherent['ratio_acquise_adherent']) ?> nettoyer($spadherent['dureePolice']) ?>
+ + + + + + + + + + + + + + + + + + + + + +
nettoyer($spadherent['primestat'])) ?> nettoyer($spadherent['prime_acquise'])) ?> nettoyer($spadherent['consommation'])) ?> nettoyer($spadherent['rapportsp']) ?> nettoyer($spadherent['rapportspgeneral']) ?>
+ + +
+

+
+ diff --git a/Vue/Sppolice/index.php b/Vue/Sppolice/index.php new file mode 100644 index 0000000..3c2763c --- /dev/null +++ b/Vue/Sppolice/index.php @@ -0,0 +1,40 @@ +titre = "INTER-SANTE - Rapport S/P police"; ?> + + nettoyer($_SESSION['numeroPolice_C'])?> + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($sppoliceentete['dateEffet'])) ?> nettoyer($sppoliceentete['dateEcheance'])) ?> nettoyer($sppoliceentete['duree_acquise']) ?> nettoyer($sppoliceentete['ratio_acquise']) ?> nettoyer($sppoliceentete['dureePolice']) ?>
+ + + + + + + + + +
+ +
+ +
diff --git a/Vue/Syntheseconsopolice/index.php b/Vue/Syntheseconsopolice/index.php new file mode 100644 index 0000000..d95761c --- /dev/null +++ b/Vue/Syntheseconsopolice/index.php @@ -0,0 +1,49 @@ +titre = "INTER-SANTE - SYNTHESE CONSOMMATIONS DE LA POLICE"; +?> + + nettoyer($_SESSION['numeroPolice_C'])?> + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($sppoliceentete['dateEffet'])) ?> nettoyer($sppoliceentete['dateEcheance'])) ?> nettoyer($sppoliceentete['duree_acquise']) ?> nettoyer($sppoliceentete['ratio_acquise']) ?> nettoyer($sppoliceentete['dureePolice']) ?>
+ + + + + + + + + + + + +
+ +
+ +
+ +
+ +
diff --git a/Vue/gabarit.php b/Vue/gabarit.php index d0b230b..deace2b 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +