Mise à jour des classes Metier
This commit is contained in:
parent
ab1319e527
commit
8933adfd26
@ -105,7 +105,7 @@ return array(
|
||||
'params' => array(
|
||||
0 => array( 'var' => 'FEU', 'type' => 'EGAL', 'value' => 'ORANGE'),
|
||||
1 => array( 'var' => 'EntrepRecente', 'type' => 'EGAL', 'value' => '1'),
|
||||
2 => array( 'var' => 'IR', 'type' => 'MAX', 'value' => '2,1'),
|
||||
2 => array( 'var' => 'IR', 'type' => 'MAX', 'value' => '2.1'),
|
||||
3 => array( 'var' => 'ContratAge', 'type' => 'MAX', 'value' => '36'),
|
||||
),
|
||||
),
|
||||
@ -118,8 +118,8 @@ return array(
|
||||
0 => array( 'var' => 'FEU', 'type' => 'EGAL', 'value' => 'ORANGE'),
|
||||
1 => array( 'var' => 'EntrepRecente', 'type' => 'EGAL', 'value' => '1'),
|
||||
2 => array( 'var' => 'ContratAge', 'type' => 'MAX', 'value' => '25'),
|
||||
3 => array( 'var' => 'IR', 'type' => 'MIN', 'value' => '4,9'),
|
||||
4 => array( 'var' => 'IR', 'type' => 'MAX', 'value' => '7,1'),
|
||||
3 => array( 'var' => 'IR', 'type' => 'MIN', 'value' => '4.9'),
|
||||
4 => array( 'var' => 'IR', 'type' => 'MAX', 'value' => '7.1'),
|
||||
5 => array( 'var' => 'Indiscore', 'type' => 'MIN', 'value' => '9'),
|
||||
6 => array( 'var' => 'Indiscore', 'type' => 'MAX', 'value' => '12'),
|
||||
),
|
||||
|
@ -2,7 +2,7 @@
|
||||
return array(
|
||||
0 => array(
|
||||
'name' => 'VORp-1.0',
|
||||
'value' => 'CONTINUE',
|
||||
'value' => 'DEFINE',
|
||||
'comment' => "",
|
||||
'po' => 0,
|
||||
'params' => array(
|
||||
|
@ -327,7 +327,7 @@ class Metier_Sfr
|
||||
* Age du plus vieux contrat en mois
|
||||
* @var int
|
||||
*/
|
||||
protected $ValContratAge = 0;
|
||||
protected $ValContratAge = null;
|
||||
|
||||
/**
|
||||
* Valeur de l'Indice de Recouvrement
|
||||
@ -502,7 +502,6 @@ class Metier_Sfr
|
||||
|
||||
//Indiscore - aller chercher scores dans l'historique moins de 3 mois
|
||||
$histo = getIndiscoreCache($siren);
|
||||
if ($this->debug) file_put_contents('sfr.log', "INDISCORE = ".print_r($histo,1)."\n", FILE_APPEND);
|
||||
if ( count($histo)>0 ) {
|
||||
|
||||
$dateIndiscore = new Zend_Date($histo[0]['indiScoreDate'], 'yyyy-MM-dd');
|
||||
@ -569,13 +568,13 @@ class Metier_Sfr
|
||||
if ($this->debug) file_put_contents('sfr.log', "\nREGLE - ".$rule['name']."\n", FILE_APPEND);
|
||||
|
||||
$all = false;
|
||||
if ( $rule['value'] == 'CONTINUE' ) {
|
||||
if ( $rule['value'] == 'DEFINE' ) {
|
||||
$all = true;
|
||||
}
|
||||
$return = $this->params($rule['params'], $all);
|
||||
|
||||
// Continue always
|
||||
if ( $rule['value'] == 'CONTINUE' ) {
|
||||
if ( $rule['value'] == 'CONTINUE' || $rule['value'] == 'DEFINE' ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -591,13 +590,23 @@ class Metier_Sfr
|
||||
|
||||
//Set Value
|
||||
else {
|
||||
if( $type == 'PO' && $this->displayPo ) {
|
||||
$this->ValPO = $this->paramValue($rule['value']);
|
||||
if( $type == 'PO' ) {
|
||||
|
||||
if ( $this->displayPo ) {
|
||||
$this->ValPO = $this->paramValue($rule['value']);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
$this->RuleLabel = $rule['name'];
|
||||
$this->displayPo = intval($rule['po']);
|
||||
|
||||
$this->ValFEU = $this->paramValue($rule['value']);
|
||||
|
||||
if ($this->debug) file_put_contents('sfr.log', "VALIDATION : ValFEU = ".$this->ValFEU."\n", FILE_APPEND);
|
||||
|
||||
$this->ValComment = $rule['comment'];
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -688,14 +697,14 @@ class Metier_Sfr
|
||||
|
||||
switch ($type) {
|
||||
case 'MIN':
|
||||
if ( $this->{'Val'.$var} > $valueReal ) {
|
||||
if ( $this->{'Val'.$var}!==null && $this->{'Val'.$var} > $valueReal ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
|
||||
case 'MAX':
|
||||
if ( $this->{'Val'.$var} < $valueReal ) {
|
||||
if ( $this->{'Val'.$var}!==null && $this->{'Val'.$var} < $valueReal ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@ -806,7 +815,12 @@ class Metier_Sfr
|
||||
|
||||
public function setVal($name, $value)
|
||||
{
|
||||
$this->{'Val'.$name} = $value;
|
||||
if ( empty($value) ) {
|
||||
$this->{'Val'.$name} = self::UNDEFINE;
|
||||
} else {
|
||||
$this->{'Val'.$name} = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
273
library/Metier/bodacc/CacheDevises.php
Normal file
273
library/Metier/bodacc/CacheDevises.php
Normal file
@ -0,0 +1,273 @@
|
||||
<?php
|
||||
return array(
|
||||
"$" => "USD",
|
||||
"DOLLAR" => "USD",
|
||||
"DOLLARS" => "USD",
|
||||
"DOLLARS US" => "USD",
|
||||
"DOLLAR DES ETATS-UNIS" => "USD",
|
||||
"DOLLARS CANADIENS" => "CAD",
|
||||
"BRR" => "BRR",
|
||||
"BRL" => "BRL",
|
||||
"EURO" => "EUR",
|
||||
"RÉIS" => "BRL",
|
||||
"F" => "FRF",
|
||||
"FRANCS CFA" => "CFA",
|
||||
"CNY" => "CNY",
|
||||
"YUAN" => "CNY",
|
||||
"YUAN REN MIN BI" => "CNY",
|
||||
"COURONNES TCHÈQUES (RÉPUBLIQUE TCHÈQUE" => "CZK",
|
||||
"ARIARYS" => "MGA",
|
||||
"KMF" => "KMF",
|
||||
"MGA ARIARY" => "MGA",
|
||||
"MUR" => "MUR",
|
||||
"ROUPIES MAURICIENNES" => "MUR",
|
||||
"MURS" => "MUR",
|
||||
"ROL" => "ROL",
|
||||
"RON" => "RON",
|
||||
"FS" => "CHF",
|
||||
"CHF" => "CHF",
|
||||
"FRANC SUISSE" => "CHF",
|
||||
"FRANCS SUISSES" => "CHF",
|
||||
"YENS" => "JPY",
|
||||
"DKK" => "DKK",
|
||||
"COURONNES DANOISES" => "DKK",
|
||||
"COURONNES NORVÉGIENNES" => "NOK",
|
||||
"GBP" => "GBP",
|
||||
"LIVRE STERLING" => "GBP",
|
||||
"LIVRES STERLING" => "GBP",
|
||||
"LIVRES STERLINGS" => "GBP",
|
||||
"ROUBLES BIÉLORUSSES" => "RUB",
|
||||
"ROUBLES" => "RUB",
|
||||
"DOLLARS TAIWAN" => "TWD",
|
||||
"HKD" => "HKD",
|
||||
"DIRHAMS" => "MAD",
|
||||
"DINARS TUNISIENS" => "TND",
|
||||
"FCFA" => "CFA",
|
||||
"FRANCS BELGES" => "BEF",
|
||||
"ROUPIE INDIENNE" => "INR",
|
||||
"DOLLARS HONG KONG" => "HKD",
|
||||
"RIALS IRANIENS" => "IRR",
|
||||
"DOLLARS HONG-KONG" => "HKD",
|
||||
"ECU" => "EUR",
|
||||
"YUANS" => "CNY",
|
||||
"DM" => "DEM",
|
||||
"LEI" => "RON",
|
||||
"TND" => "TND",
|
||||
"WON" => "KRW",
|
||||
"DINAR TUNISIEN" => "TND",
|
||||
"WONS" => "KRW",
|
||||
"DIRHAMS MAROCAINS" => "MAD",
|
||||
"FB" => "BEF",
|
||||
"CRUZEIROS" => "BRL",
|
||||
"REALS" => "BRL",
|
||||
"COURONNES ISLANDAISES" => "ISK",
|
||||
"DOLLARS AUSTRALIENS" => "AUD",
|
||||
"DINARS" => "TND",
|
||||
"RIYAL SAOUDIEN" => "SAR",
|
||||
"LIVRES SYRIENNES" => "SYP",
|
||||
"YEN" => "JPY",
|
||||
"COURONNES SUÉDOISES" => "SEK",
|
||||
"LIVRES TURQUES" => "TRY",
|
||||
"SHEKELS" => "ILS",
|
||||
"FRANC BELGE" => "BEF",
|
||||
"DOLLAR HONG KONG" => "HKD",
|
||||
"DOLLARS SINGAPOUR" => "SGD",
|
||||
"ZLOTY" => "PLN",
|
||||
"LEVS" => "BGN",
|
||||
"OUGUIYA" => "MRO",
|
||||
"ROUPIES INDIENNES" => "INR",
|
||||
"RIEL" => "KHR",
|
||||
"COURONNES DANNOISES" => "DKK",
|
||||
"INR" => "INR",
|
||||
"ROUPIES DES SEYCHELLES" => "SCR",
|
||||
"$ CANADIENS" => "CAD",
|
||||
"LIVRE STERLI" => "GBP",
|
||||
"NOK" => "NOK",
|
||||
"LIVRES LIBANAISES" => "LBP",
|
||||
"RUR" => "RUB",
|
||||
"USD" => "USD",
|
||||
"CHS" => "CHE",
|
||||
"SKK" => "SKK",
|
||||
"DINAR TUNISI" => "TND",
|
||||
"PESOS COLOMBIENS" => "COP",
|
||||
"JIAS" => "CNY",
|
||||
"DINARS ALGÉRIENS" => "DZD",
|
||||
"RIELS" => "KHR",
|
||||
"CLP" => "CLP",
|
||||
"DINAR ALGÉRIEN" => "DZD",
|
||||
"RANDS" => "ZAR",
|
||||
"LEU" => "RON",
|
||||
"LIVRES CYPRIOTES" => "CYP",
|
||||
"MAD" => "MAD",
|
||||
"JPY" => "JPY",
|
||||
"PNL" => "PLN",
|
||||
"DOLLARS NÉO-ZÉLANDAIS" => "NZD",
|
||||
"DOLLAR US" => "USD",
|
||||
"CYP" => "CYP",
|
||||
"DIRHAM" => "MAD",
|
||||
"ZRN" => "ZRN",
|
||||
"RIYALS SAOUDIENS" => "SAR",
|
||||
"ZLOTYS" => "PLN",
|
||||
"FRANCS MALGACHE" => "MGF",
|
||||
"BAHTS" => "THB",
|
||||
"SHILLINGS KENYANS" => "KES",
|
||||
"FRANC COMORIEN" => "KMF",
|
||||
"KRW" => "KRW",
|
||||
"$ HONG-KONG" => "HKD",
|
||||
"COURONNES TCHÈQUES" => "CZK",
|
||||
"FRANCS CFA-BE" => "XAF",
|
||||
"DIRHAMS DES E A U" => "AED",
|
||||
"DOLLAR AUSTRALIEN" => "AUD",
|
||||
"F, SOIT" => "FRF",
|
||||
"F SOIT" => "FRF",
|
||||
"FRANC FRANÇAIS" => "FRF",
|
||||
"FRANCS GUINÉENS" => "GNF",
|
||||
"$ US" => "USD",
|
||||
"REAL" => "BRL",
|
||||
"LBP" => "LBP",
|
||||
"TRL" => "TRY",
|
||||
"RIYAL YÉMÉNITES" => "YER",
|
||||
"ARIARY" => "MGA",
|
||||
"PESOS PHILIPPINS" => "PHP",
|
||||
"KRD" => "DKK",
|
||||
"WONS CORÉE DU SUD" => "KRW",
|
||||
"DOLLAR HONG-KONG" => "HKD",
|
||||
"BAHT" => "THB",
|
||||
"PESOS CUBAINS" => "CUC",
|
||||
"DÔNGS" => "VND",
|
||||
"DINARS JORDANIENS" => "JOD",
|
||||
"LIVRES ÉGYPTIENNES" => "EGP",
|
||||
"MALTAISES" => "MTL",
|
||||
"NOUVEAUX DOLLARS TAÏWAN" => "TWD",
|
||||
"$ TAIWA" => "TWD",
|
||||
"F CFA" => "XAF",
|
||||
"SGD" => "SGD",
|
||||
"$ SINGAPOUR" => "SGD",
|
||||
"YUANS RENMINBI" => "CNY",
|
||||
"DIRHAMS DES EMIRATS ARABES UNIS" => "AED",
|
||||
"LIVRE TURQUE" => "TRY",
|
||||
"ERUOS" => "EUR",
|
||||
"DOLLARS DES ETATS-UNIS" => "USD",
|
||||
"SCHILLING" => "ATS",
|
||||
"BIRRS" => "ETB",
|
||||
"DOLLAR CANADIEN" => "CAD",
|
||||
"LIVRES CYPRIOBES" => "CYP",
|
||||
"EUROS (PLANCHER ET" => "EUR",
|
||||
"FRANCS MALGACHES" => "MGF",
|
||||
"LEVA" => "BGN",
|
||||
"DINARDS JORDANIENS" => "JOD",
|
||||
"PES" => "PHP",
|
||||
"PESETAS" => "ESP",
|
||||
"DINARDS" => "DZD",
|
||||
"NOUVEAUX DOLLARS TAÏWANAIS" => "TWD",
|
||||
"FRANC" => "FRF",
|
||||
"COURONNE DANOISE" => "DKK",
|
||||
"F SUISSES" => "CHF",
|
||||
"F (SOIT" => "FRF",
|
||||
"EUROS, COMPRENANT LA CLIENTÈLE ET L'ACHA" => "EUR",
|
||||
"EUROS, EN CE COMPRIS UN FONDS SIS RÉSIDE" => "EUR",
|
||||
"F SYMBOLIQUE" => "FRF",
|
||||
"RIALS" => "IRR",
|
||||
"EUROS, À L'EXCLUSION DU DROIT AU BAIL DE" => "EUR",
|
||||
"DH" => "MAD",
|
||||
"EUROS, CRÉATION L'AUTRE BRANCHE ACTIVITÉ" => "EUR",
|
||||
"LEI ROUMAIN" => "RON",
|
||||
"HGK" => "HKD",
|
||||
"EUROS, ÉTANT PRÉCISÉ QUE LE CÉDANT A CON" => "EUR",
|
||||
"DZD" => "DZD",
|
||||
"DON" => "VND",
|
||||
"EUROS, EN CE COMPRIS LA BRANCHE ACTIVITÉ" => "EUR",
|
||||
"LEV" => "RON",
|
||||
"EUROS, AVEC UN DEUXIÈME FONDS SIS À CHEF" => "EUR",
|
||||
"DÉCEMBRE" => "EUR",
|
||||
"CEDIS" => "GHS",
|
||||
"EUROS ; EN CE COMPRIS L'ÉTABLISSEMENT CO" => "EUR",
|
||||
"EUROS, À L'EXCEPTION LA BOUCHERIE" => "EUR",
|
||||
"Y" => "JPY",
|
||||
"EUROS DES ÉLÉMENTS LA BRANCHE ACTIVITÉ >" => "EUR",
|
||||
"ROUTE BISCHWILLER À SCHILTIGHEIM" => "EUR",
|
||||
"AVENUE COLMAR, STRASBOURG" => "EUR",
|
||||
"$ CAN" => "CAD",
|
||||
"EUUROS" => "EUR",
|
||||
"EUROS, À L'EXCLUSION L'ACTIVITÉ FABRICAT" => "EUR",
|
||||
"BRC" => "BRL",
|
||||
"EUROS ET CRÉATION LA BRANCHE ACTIVITÉ SN" => "EUR",
|
||||
"EUROS ET CRÉATION LA BRANCHE ACTIVITÉ GL" => "EUR",
|
||||
"EUROS, ET CRÉATION LA BRANCHE ACTIVITÉ I" => "EUR",
|
||||
"EGP" => "EGP",
|
||||
"COURONNE SUE" => "SEK",
|
||||
"LIVRES" => "GBP",
|
||||
"EUROS, À L'EXCLUSION LA BRANCHE VENTE AU" => "EUR",
|
||||
"SOLS" => "PEN",
|
||||
"EUROS, SOIT LA BRANCHE ACTIVITÉ GROS UV" => "EUR",
|
||||
"BATHS" => "THB",
|
||||
"MRO" => "MRO",
|
||||
"EUROS, À L'EXCLUSION TOUS LES ÉLÉMENTS L" => "EUR",
|
||||
"PESOS" => "ARS",
|
||||
"YANS" => "CNY",
|
||||
"MGF" => "MGF",
|
||||
"EUROS, CONJOINTEMENT AVEC MME CHERUBINI" => "EUR",
|
||||
"EUROS, CONSTITUANT UNE BRANCHE COMPLÈTE" => "EUR",
|
||||
"EUROS, À L'EXCLUSION LA BRANCHE ACTIVITÉ" => "EUR",
|
||||
"FRANCS SUISSE" => "CHF",
|
||||
"FL" => "LUF",
|
||||
"DOLLARS DES CARAÏBES" => "DOP",
|
||||
"DOLLARS HO" => "HKD",
|
||||
"EUROS, RÉSULTANT UN PROJET APPORT AUX TE" => "EUR",
|
||||
"HU" => "HUF",
|
||||
"EUROS, INCLUANT LES BRANCHES DES FONDS C" => "EUR",
|
||||
"EUROS, À L'EXCEPTION LA BRANCHE ACTIVITÉ" => "EUR",
|
||||
"EUROS. ACQUISITION ET ADJONCTION DES NOM" => "EUR",
|
||||
"BHD" => "TND",
|
||||
"EUOS" => "EUR",
|
||||
"TWD" => "TWD",
|
||||
"RL" => "IRR",
|
||||
"FRANCS" => "FRF",
|
||||
"FRF" => "FRF",
|
||||
"EUROS ; CRÉATION LA BRANCHE ACTIVITÉ VEN" => "EUR",
|
||||
"EUROS ET CRÉATION LA BRANCHE ACTIVITÉ CA" => "EUR",
|
||||
"FRANCS FRANCAIS" => "FRF",
|
||||
"EOROS" => "EUR",
|
||||
"UROS" => "EUR",
|
||||
"EUROS - LES OPPOSITIONS SERONT RECUES CH" => "EUR",
|
||||
"EUROS - JOURNAL PUBLICATEUR : PETITES AF" => "EUR",
|
||||
"EUROS, SAUF POUR LA BRANCHE JEUX GRATTAG" => "EUR",
|
||||
"EU" => "EUR",
|
||||
"EUROS - JOURNAL : LES PETITES AFFICHES D" => "EUR",
|
||||
"EUROS - JOURNAL ANNONCES LÉGALES : LES A" => "EUR",
|
||||
"EUORS" => "EUR",
|
||||
"FRANCS FRANÇAIS. RADIATION PERSONNE PHYS" => "FRF",
|
||||
"EUROS - JOURNAL PUBLICITE : LES AFFICHES" => "EUR",
|
||||
"EUROS - JOURNAL PUBLICATEUR LES PETITES" => "EUR",
|
||||
"EUROS, ANNONCE PARU DANS LES PETITES AFF" => "EUR",
|
||||
"EUROSO - JOURNAL ANNONCES LES PETITES AF" => "EUR",
|
||||
"EUROS. LE RECTIFICATIF PORTE SUR LE LIEU" => "EUR",
|
||||
"EUROS. L'ENTRÉE EN JOUISSANCE EST FIXÉE" => "EUR",
|
||||
"EUROS. LES OPPOSITIONS SERONT REÇUES POU" => "EUR",
|
||||
"EUROS ; ACQUIS PAR APPORT PARTIEL ACTIF" => "EUR",
|
||||
"EUROS JOURNAL ANNONCES LEGALES LES PETIT" => "EUR",
|
||||
" LIVRES STERLING - PASSIF TRANSMIS :" => "GBP",
|
||||
"EUROS, PARUTION DANS LES PETITES AFFICHE" => "EUR",
|
||||
"EUROS - JOURNAL ANNONCES LEGALES LES PET" => "EUR",
|
||||
"EUROS; LES OPPOSITIONS SERONT REÇU AU SI" => "EUR",
|
||||
"EUROS - JOURNAL ANNONCES LÉGALES : LES P" => "EUR",
|
||||
"FRF;F" => "FRF",
|
||||
"EUROS - PUBLICATION : LES AFFICHES PARIS" => "EUR",
|
||||
" " => "EUR",
|
||||
"E" => "EUR",
|
||||
"EUR (ACQUISITION UNE BRANCHE ACTIVI TÉ)" => "EUR",
|
||||
"EUROS. VENDEUR : SARL LE TAILLEUR CHEMIS" => "EUR",
|
||||
"EUROS, PRECEDENT PROPRIÉTAIRE ETURICHEPA" => "EUR",
|
||||
"£, PASSIF TRANSMIS" => "GBP",
|
||||
"EUROS LES OPPOSITIONS SERONT REÇUES CHEZ" => "EUR",
|
||||
"EUROS. ACTIVITÉ : BRANCHE ACTIVITÉ TRANS" => "EUR",
|
||||
"EUROS ; ACHAT LA CLIENTèLE RELATIVE à L'" => "EUR",
|
||||
"'" => "EUR",
|
||||
"EUROS. PUBLICATION : LES PETITES AFFICHE" => "EUR",
|
||||
"EUROS MADAME BUTON FRANCOIS RCS LA ROCHE" => "EUR",
|
||||
"EUROS (BRANCHE ACTIVITé)" => "EUR",
|
||||
"EUROS, LA SOCIéTé GF BATIMENTS A CéDé à" => "EUR",
|
||||
"USD (SOIT" => "USD",
|
||||
"EUROS (ACQUISITION UNE BRANCHE ACTIVITé" => "EUR",
|
||||
"EUROS CONCERNANT L'ACQUISITION UNE BRANC" => "EUR",
|
||||
);
|
File diff suppressed because it is too large
Load Diff
@ -125,6 +125,12 @@ require_once 'Metier/partenaires/classMBilans.php';
|
||||
|
||||
class MInsee
|
||||
{
|
||||
/**
|
||||
* Log time execution of request
|
||||
* @var boolean
|
||||
*/
|
||||
protected $debugtime = false;
|
||||
|
||||
private static $tabFct=array(
|
||||
'ADM'=>'Administrateur',
|
||||
'ASS'=>'Associé',
|
||||
@ -620,7 +626,11 @@ class MInsee
|
||||
*/
|
||||
public $annoncesBodaccHisto = array();
|
||||
|
||||
public function __construct() {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->iDb=new WDB();
|
||||
//$this->iDb->setCharSet('UTF-8');
|
||||
$this->iDbInsee=new WDB('insee');
|
||||
@ -1427,7 +1437,8 @@ class MInsee
|
||||
** @param string $strLigneDAdresse La ligne d'adresse textuelle (ex : Maison des associations, 33 rue Louis Blanc
|
||||
** @return array tableau contenant l'adresse structurée ici
|
||||
**/
|
||||
public function structureVoie($strLigneDAdresse) {
|
||||
public function structureVoie($strLigneDAdresse)
|
||||
{
|
||||
$tabRet=$tabAdr=array();
|
||||
$strLigneDAdresse=trim($strLigneDAdresse);
|
||||
if ($strLigneDAdresse=='') return $tabRet;
|
||||
@ -1995,12 +2006,14 @@ class MInsee
|
||||
*/
|
||||
function getIdentiteEntreprise($siren, $nic=0, $id=0, $forceVerif=false, $accesDist=true)
|
||||
{
|
||||
$timer=array('debutIdentite'=>microtime(true));
|
||||
$tdebIni=microtime(1);
|
||||
$ligne=date('YmdHis').";$siren;getIdentiteEntreprise Début ---";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
if($this->debugtime) {
|
||||
$timer=array('debutIdentite'=>microtime(true));
|
||||
$tdebIni=microtime(1);
|
||||
$ligne=date('YmdHis').";$siren;getIdentiteEntreprise Début ---";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
$classWDate = new WDate();
|
||||
|
||||
@ -2171,39 +2184,51 @@ class MInsee
|
||||
|
||||
/** Accès provisoire à AMABIS **/
|
||||
if ($accesDist) {
|
||||
$ligne=date('YmdHis').";$siren;MAmabis Avant";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$tdeb=microtime(1);
|
||||
if($this->debugtime) {
|
||||
$ligne=date('YmdHis').";$siren;MAmabis Avant";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$tdeb=microtime(1);
|
||||
}
|
||||
|
||||
$iAmabis=new MAmabis();
|
||||
$repAmabis=$iAmabis->getZonage($etab['adr_num'],$etab['adr_btq'],$etab['adr_typeVoie'],$etab['adr_libVoie'], $etab['adr_cp'], $etab['adr_ville'], trim($tabInsee['ADR_DEP'].$tabInsee['ADR_COM'].$tabInsee['CODEVOIE']), false, 'TEST', false);
|
||||
$duree=round(microtime(1)-$tdeb,3);
|
||||
$ligne=date('YmdHis').";$siren;MAmabis APRES ($duree s)";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$timer['zonesPrioritaires']=microtime(true);
|
||||
|
||||
if($this->debugtime) {
|
||||
$ligne=date('YmdHis').";$siren;MAmabis APRES ($duree s)";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$timer['zonesPrioritaires']=microtime(true);
|
||||
}
|
||||
} else
|
||||
$repAmabis=array();
|
||||
|
||||
|
||||
/** N° de TVA Intracommunautaire **/
|
||||
if ($siren*1>100) {
|
||||
$ligne=date('YmdHis').";$siren;MTva Avant";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$tdeb=microtime(1);
|
||||
if($this->debugtime) {
|
||||
$ligne=date('YmdHis').";$siren;MTva Avant";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$tdeb=microtime(1);
|
||||
}
|
||||
|
||||
$iTva=new MTva($siren, $accesDist);
|
||||
$vatNumber=$iTva->vatNumber;
|
||||
$vatDefined=$iTva->vatDefined;
|
||||
$duree=round(microtime(1)-$tdeb,3);
|
||||
$ligne=date('YmdHis').";$siren;MTva APRES ($duree s)";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$timer['tvaIntra']=microtime(true);
|
||||
|
||||
if($this->debugtime) {
|
||||
$duree=round(microtime(1)-$tdeb,3);
|
||||
$ligne=date('YmdHis').";$siren;MTva APRES ($duree s)";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$timer['tvaIntra']=microtime(true);
|
||||
}
|
||||
} else {
|
||||
$vatNumber='FR00000000000';
|
||||
$vatDefined=false;
|
||||
@ -2221,20 +2246,26 @@ class MInsee
|
||||
if (trim($tab['fax'])<>'') $fax=trim($tab['fax']);
|
||||
elseif ($tabInsee['FAX']<>'') $fax=implode('.', str_split($tabInsee['FAX'],2));
|
||||
|
||||
if($this->debugtime) {
|
||||
$ligne=date('YmdHis').";$siren;MTel Avant";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$tdeb=microtime(1);
|
||||
}
|
||||
|
||||
$ligne=date('YmdHis').";$siren;MTel Avant";
|
||||
//$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
//fwrite($fp,$ligne.EOL);
|
||||
//fclose($fp);
|
||||
$tdeb=microtime(1);
|
||||
$iTel=new MTel(false);//$accesDist);
|
||||
$iTel=new MTel(false);//$accesDist);
|
||||
$iTel->getTel($siren);
|
||||
$tmp=$iTel->getTel($siren, $nic);
|
||||
$duree=round(microtime(1)-$tdeb,3);
|
||||
$ligne=date('YmdHis').";$siren;MTel APRES ($duree s)";
|
||||
//$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
//fwrite($fp,$ligne.EOL);
|
||||
//fclose($fp);
|
||||
|
||||
if($this->debugtime) {
|
||||
$duree=round(microtime(1)-$tdeb,3);
|
||||
$ligne=date('YmdHis').";$siren;MTel APRES ($duree s)";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
$activitePJ_An8='';
|
||||
foreach ($tmp as $tmp2) {
|
||||
if ($tmp2['typeTel']=='tel' && ($tel==''||$tel==trim($tab['tel'])) )
|
||||
@ -3220,19 +3251,27 @@ print_r($tmp, true));
|
||||
($nbEtab*1==0 && str_replace('-','',$tabRet['dateRad'])*1==0) // Inactif sans date de RAD
|
||||
)
|
||||
) {
|
||||
$ligne=date('YmdHis').";$siren;MGreffes Avant";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$tdeb=microtime(1);
|
||||
|
||||
if($this->debugtime) {
|
||||
$ligne=date('YmdHis').";$siren;MGreffes Avant";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
$tdeb=microtime(1);
|
||||
}
|
||||
|
||||
$iGeffes=new MGreffes();
|
||||
$iRncs=new MRncs();
|
||||
$etabG=$iGeffes->getIdentite($siren);
|
||||
$duree=round(microtime(1)-$tdeb,3);
|
||||
$ligne=date('YmdHis').";$siren;MGreffes APRES ($duree s)";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
|
||||
if($this->debugtime) {
|
||||
$duree=round(microtime(1)-$tdeb,3);
|
||||
$ligne=date('YmdHis').";$siren;MGreffes APRES ($duree s)";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
if ($etabG) {
|
||||
if ($tabRet['numRC']=='') $tabRet['numRC'] = $etabG['NumRC2'];
|
||||
if ($tabRet['Tribunal']=='') $tabRet['Tribunal'] = $iRncs->getCodeBodaccTribunal($etabG['NumGreffe']);
|
||||
@ -3356,11 +3395,14 @@ print_r($tmp, true));
|
||||
//$tabRet['caEstime'] = getCAnafEffectif($tabRet['NafEnt'],$tabRet['Effectif']);
|
||||
|
||||
$tabRet['TribunalLib']=$this->iBodacc->getTribunalNom($tabRet['Tribunal']);
|
||||
$duree=round(microtime(1)-$tdebIni,3);
|
||||
$ligne=date('YmdHis').";$siren;getIdentiteEntreprise Fin ($duree s) ===";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
|
||||
if($this->debugtime) {
|
||||
$duree=round(microtime(1)-$tdebIni,3);
|
||||
$ligne=date('YmdHis').";$siren;getIdentiteEntreprise Fin ($duree s) ===";
|
||||
$fp=fopen(LOG_PATH.'/accesDistant.log', 'a');
|
||||
fwrite($fp,$ligne.EOL);
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
/** Si on n'a trouvé aucune activité, on prend le libellé de l'activité pages Jaunes **/
|
||||
if ($tabRet['Activite']=='' && $activitePJ_An8<>'')
|
||||
@ -4286,8 +4328,8 @@ TOTAL : $dureeTot s\n";
|
||||
'NumAnnonce'=>$ann['NOANN'],
|
||||
'DateParution'=>substr($ann['DATE'],0,4).'-'.substr($ann['DATE'],4,2).'-'.substr($ann['DATE'],6,2),
|
||||
'Departement'=>$ann['DEPT'],
|
||||
'Tribunal'=>$this->iBodacc->getTribunalNom['CODTRI'], //$ann['triNom'],
|
||||
'TribunalSiret'=>$this->iBodacc->getTribunalSiret['CODTRI'],//$ann['triSiret'],
|
||||
'Tribunal'=>$this->iBodacc->getTribunalNom($ann['CODTRI']), //$ann['triNom'],
|
||||
'TribunalSiret'=>$this->iBodacc->getTribunalSiret($ann['CODTRI']),//$ann['triSiret'],
|
||||
'Rubrique'=>$rub,
|
||||
'typeAnnonce'=>'Insertion',/** @todo à GERER $ann['SSCODE'],**/
|
||||
//'texteRectificatif'=>$ann['corrTexteRectificatif'],
|
||||
|
178
library/Metier/partenaires/CacheDevisesInpi.php
Normal file
178
library/Metier/partenaires/CacheDevisesInpi.php
Normal file
@ -0,0 +1,178 @@
|
||||
<?php
|
||||
return array(
|
||||
1 => "AFN",
|
||||
2 => "ZAR",
|
||||
3 => "ALL",
|
||||
4 => "DZD",
|
||||
5 => "DEM",
|
||||
7 => "AOA",
|
||||
8 => "ANG",
|
||||
9 => "SAR",
|
||||
10 => "ARS",
|
||||
11 => "AUD",
|
||||
12 => "ATS",
|
||||
13 => "BSD",
|
||||
14 => "BHD",
|
||||
15 => "BDT",
|
||||
16 => "BBD",
|
||||
17 => "BEF",
|
||||
18 => "BZD",
|
||||
19 => "BMD",
|
||||
20 => "MMK",
|
||||
21 => "BOB",
|
||||
22 => "BWP",
|
||||
23 => "BRL",
|
||||
24 => "BND",
|
||||
25 => "BGN",
|
||||
26 => "BIF",
|
||||
27 => "KHR",
|
||||
28 => "XAF",
|
||||
29 => "CAD",
|
||||
32 => "CLP",
|
||||
33 => "CNY",
|
||||
34 => "CYP",
|
||||
35 => "COP",
|
||||
36 => "KMF",
|
||||
37 => "ZRN",
|
||||
38 => "KPW",
|
||||
39 => "KRW",
|
||||
40 => "CRC",
|
||||
42 => "CUP",
|
||||
44 => "DKK",
|
||||
45 => "DJF",
|
||||
46 => "XCD",
|
||||
47 => "EGP",
|
||||
48 => "AED",
|
||||
50 => "ESP",
|
||||
51 => "USD",
|
||||
52 => "ETB",
|
||||
53 => "FKP",
|
||||
54 => "FJD",
|
||||
55 => "FIM",
|
||||
56 => "GMD",
|
||||
58 => "GHC",
|
||||
59 => "GBP",
|
||||
60 => "GRD",
|
||||
61 => "GTQ",
|
||||
62 => "GWP",
|
||||
63 => "GNF",
|
||||
65 => "GYD",
|
||||
66 => "HTG",
|
||||
68 => "HNL",
|
||||
69 => "HKD",
|
||||
70 => "HUF",
|
||||
71 => "INR",
|
||||
72 => "IDR",
|
||||
73 => "IQD",
|
||||
74 => "IRR",
|
||||
75 => "IEP",
|
||||
76 => "ISK",
|
||||
77 => "ILS",
|
||||
78 => "ITL",
|
||||
79 => "JMD",
|
||||
80 => "JPY",
|
||||
81 => "JOD",
|
||||
82 => "KES",
|
||||
83 => "KWD",
|
||||
84 => "LAK",
|
||||
85 => "LBP",
|
||||
86 => "LRD",
|
||||
87 => "LYD",
|
||||
89 => "LUF",
|
||||
90 => "MOP",
|
||||
91 => "MGF",
|
||||
92 => "MYR",
|
||||
93 => "MWK",
|
||||
94 => "MVR",
|
||||
96 => "MTL",
|
||||
97 => "MAD",
|
||||
98 => "MUR",
|
||||
99 => "MRO",
|
||||
100 => "MXN",
|
||||
101 => "MNT",
|
||||
102 => "MZM",
|
||||
103 => "NPR",
|
||||
104 => "NIO",
|
||||
106 => "NGN",
|
||||
107 => "NOK",
|
||||
110 => "NZD",
|
||||
111 => "OMR",
|
||||
112 => "UGX",
|
||||
113 => "PKR",
|
||||
114 => "PAB",
|
||||
115 => "PYG",
|
||||
116 => "NLG",
|
||||
117 => "PEN",
|
||||
118 => "PHP",
|
||||
119 => "PLN",
|
||||
120 => "XPF",
|
||||
121 => "PTE",
|
||||
122 => "QAR",
|
||||
123 => "RON",
|
||||
124 => "RWF",
|
||||
125 => "SVC",
|
||||
126 => "WST",
|
||||
127 => "STD",
|
||||
129 => "SCR",
|
||||
130 => "SLL",
|
||||
131 => "SGD",
|
||||
132 => "SBD",
|
||||
133 => "SOS",
|
||||
134 => "SDD",
|
||||
135 => "LKR",
|
||||
136 => "SRG",
|
||||
137 => "SEK",
|
||||
138 => "CHF",
|
||||
139 => "SYP",
|
||||
140 => "SZL",
|
||||
141 => "TWD",
|
||||
142 => "TZS",
|
||||
144 => "CZK",
|
||||
145 => "THB",
|
||||
147 => "TTD",
|
||||
148 => "TND",
|
||||
149 => "TRL",
|
||||
152 => "UYU",
|
||||
153 => "VUV",
|
||||
154 => "VEB",
|
||||
155 => "VND",
|
||||
157 => "YER",
|
||||
159 => "YUM",
|
||||
160 => "CDF",
|
||||
161 => "ZMK",
|
||||
162 => "ZWD",
|
||||
168 => "ADP",
|
||||
174 => "KYD",
|
||||
176 => "LVL",
|
||||
177 => "LTL",
|
||||
178 => "EEK",
|
||||
179 => "UAH",
|
||||
181 => "SIT",
|
||||
182 => "SKK",
|
||||
183 => "KZT",
|
||||
184 => "BYR",
|
||||
186 => "HRK",
|
||||
188 => "TMM",
|
||||
189 => "KGS",
|
||||
190 => "MDL",
|
||||
191 => "GIP",
|
||||
192 => "RUB",
|
||||
195 => "AMD",
|
||||
196 => "AZM",
|
||||
197 => "BAM",
|
||||
198 => "GEL",
|
||||
201 => "MKD",
|
||||
205 => "AWG",
|
||||
207 => "TOP",
|
||||
208 => "BTN",
|
||||
209 => "PGK",
|
||||
210 => "UZS",
|
||||
211 => "ILS",
|
||||
212 => "TJS",
|
||||
213 => "CVE",
|
||||
214 => "ERN",
|
||||
218 => "DOP",
|
||||
238 => "SHP",
|
||||
244 => "TPE",
|
||||
300 => "EUR",
|
||||
);
|
32
library/Metier/partenaires/CacheJugements.php
Normal file
32
library/Metier/partenaires/CacheJugements.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
return array(
|
||||
1 => 1520,
|
||||
2 => 1436,
|
||||
3 => 1460,
|
||||
4 => 1209,
|
||||
5 => 1445,
|
||||
6 => 1603,
|
||||
7 => 1506,
|
||||
8 => 1430,
|
||||
9 => 1600,
|
||||
10 => 1500,
|
||||
11 => 1200,
|
||||
12 => 1413,
|
||||
13 => 1305,
|
||||
14 => 1411,
|
||||
15 => 1412,
|
||||
16 => 1425,
|
||||
18 => 1502,
|
||||
19 => 1501,
|
||||
20 => 1525,
|
||||
21 => 1435,
|
||||
44 => 1100,
|
||||
45 => 1101,
|
||||
48 => 1201,
|
||||
49 => 1307,
|
||||
55 => 1306,
|
||||
56 => 1110,
|
||||
57 => 1119,
|
||||
58 => 1545,
|
||||
59 => 1506,
|
||||
);
|
240
library/Metier/partenaires/CachePaysInpi.php
Normal file
240
library/Metier/partenaires/CachePaysInpi.php
Normal file
@ -0,0 +1,240 @@
|
||||
<?php
|
||||
return array(
|
||||
1 => "AF",
|
||||
2 => "ZA",
|
||||
3 => "AL",
|
||||
4 => "DZ",
|
||||
5 => "DE",
|
||||
7 => "AO",
|
||||
8 => "AN",
|
||||
9 => "SA",
|
||||
10 => "AR",
|
||||
11 => "AU",
|
||||
12 => "AT",
|
||||
13 => "BS",
|
||||
14 => "BH",
|
||||
15 => "BD",
|
||||
16 => "BB",
|
||||
17 => "BE",
|
||||
18 => "BZ",
|
||||
19 => "BM",
|
||||
20 => "MM",
|
||||
21 => "BO",
|
||||
22 => "BW",
|
||||
23 => "BR",
|
||||
24 => "BN",
|
||||
25 => "BG",
|
||||
26 => "BI",
|
||||
27 => "KH",
|
||||
28 => "CM",
|
||||
29 => "CA",
|
||||
31 => "CF",
|
||||
32 => "CL",
|
||||
33 => "CN",
|
||||
34 => "CY",
|
||||
35 => "CO",
|
||||
36 => "KM",
|
||||
37 => "CG",
|
||||
38 => "KP",
|
||||
39 => "KR",
|
||||
40 => "CR",
|
||||
41 => "CI",
|
||||
42 => "CU",
|
||||
43 => "BJ",
|
||||
44 => "DK",
|
||||
45 => "DJ",
|
||||
46 => "DM",
|
||||
47 => "EG",
|
||||
48 => "AE",
|
||||
49 => "EC",
|
||||
50 => "ES",
|
||||
51 => "US",
|
||||
52 => "ET",
|
||||
53 => "FK",
|
||||
54 => "FJ",
|
||||
55 => "FI",
|
||||
56 => "GM",
|
||||
57 => "GA",
|
||||
58 => "GH",
|
||||
59 => "GB",
|
||||
60 => "GR",
|
||||
61 => "GT",
|
||||
62 => "GW",
|
||||
63 => "GN",
|
||||
64 => "GQ",
|
||||
65 => "GY",
|
||||
66 => "HT",
|
||||
67 => "BF",
|
||||
68 => "HN",
|
||||
69 => "HK",
|
||||
70 => "HU",
|
||||
71 => "IN",
|
||||
72 => "ID",
|
||||
73 => "IR",
|
||||
74 => "IQ",
|
||||
75 => "IE",
|
||||
76 => "IS",
|
||||
77 => "IL",
|
||||
78 => "IT",
|
||||
79 => "JM",
|
||||
80 => "JP",
|
||||
81 => "JO",
|
||||
82 => "KE",
|
||||
83 => "KW",
|
||||
84 => "LA",
|
||||
85 => "LB",
|
||||
86 => "LR",
|
||||
87 => "LY",
|
||||
88 => "LI",
|
||||
89 => "LU",
|
||||
90 => "MO",
|
||||
91 => "MG",
|
||||
92 => "MY",
|
||||
93 => "MW",
|
||||
94 => "MV",
|
||||
95 => "ML",
|
||||
96 => "MT",
|
||||
97 => "MA",
|
||||
98 => "MU",
|
||||
99 => "MR",
|
||||
100 => "MX",
|
||||
101 => "MN",
|
||||
102 => "MZ",
|
||||
103 => "NP",
|
||||
104 => "NI",
|
||||
105 => "NE",
|
||||
106 => "NG",
|
||||
107 => "NO",
|
||||
108 => "NC",
|
||||
110 => "NZ",
|
||||
111 => "OM",
|
||||
112 => "UG",
|
||||
113 => "PK",
|
||||
114 => "PA",
|
||||
115 => "PY",
|
||||
116 => "NL",
|
||||
117 => "PE",
|
||||
118 => "PH",
|
||||
119 => "PL",
|
||||
120 => "PF",
|
||||
121 => "PT",
|
||||
122 => "QA",
|
||||
123 => "RO",
|
||||
124 => "RW",
|
||||
125 => "SV",
|
||||
126 => "WS",
|
||||
127 => "ST",
|
||||
128 => "SN",
|
||||
129 => "SC",
|
||||
130 => "SL",
|
||||
131 => "SG",
|
||||
132 => "SB",
|
||||
133 => "SO",
|
||||
134 => "SD",
|
||||
135 => "LK",
|
||||
136 => "SR",
|
||||
137 => "SE",
|
||||
138 => "CH",
|
||||
139 => "SY",
|
||||
140 => "SZ",
|
||||
141 => "TW",
|
||||
142 => "TZ",
|
||||
143 => "TD",
|
||||
144 => "CZ",
|
||||
145 => "TH",
|
||||
146 => "TG",
|
||||
147 => "TT",
|
||||
148 => "TN",
|
||||
149 => "TR",
|
||||
150 => "TV",
|
||||
152 => "UY",
|
||||
153 => "VU",
|
||||
154 => "VE",
|
||||
155 => "VN",
|
||||
156 => "WF",
|
||||
157 => "YE",
|
||||
159 => "YU",
|
||||
160 => "CD",
|
||||
161 => "ZM",
|
||||
162 => "ZW",
|
||||
163 => "RE",
|
||||
164 => "GP",
|
||||
165 => "MC",
|
||||
167 => "MQ",
|
||||
168 => "AD",
|
||||
172 => "TF",
|
||||
173 => "PR",
|
||||
174 => "KY",
|
||||
175 => "MP",
|
||||
176 => "LV",
|
||||
177 => "LT",
|
||||
178 => "EE",
|
||||
179 => "UA",
|
||||
181 => "SI",
|
||||
182 => "SK",
|
||||
183 => "KZ",
|
||||
184 => "BY",
|
||||
185 => "YT",
|
||||
186 => "HR",
|
||||
188 => "TM",
|
||||
189 => "KG",
|
||||
190 => "MD",
|
||||
191 => "GI",
|
||||
192 => "RU",
|
||||
193 => "GL",
|
||||
194 => "PM",
|
||||
195 => "AM",
|
||||
196 => "AZ",
|
||||
197 => "BA",
|
||||
198 => "GE",
|
||||
201 => "MK",
|
||||
202 => "SM",
|
||||
203 => "AI",
|
||||
204 => "AG",
|
||||
205 => "AW",
|
||||
206 => "GD",
|
||||
207 => "TO",
|
||||
208 => "BT",
|
||||
209 => "PG",
|
||||
210 => "UZ",
|
||||
211 => "PS",
|
||||
212 => "TJ",
|
||||
213 => "CV",
|
||||
214 => "ER",
|
||||
215 => "LS",
|
||||
216 => "NA",
|
||||
217 => "EH",
|
||||
218 => "DO",
|
||||
219 => "BV",
|
||||
220 => "CX",
|
||||
221 => "CC",
|
||||
222 => "CK",
|
||||
223 => "FO",
|
||||
224 => "GU",
|
||||
225 => "HM",
|
||||
226 => "VG",
|
||||
227 => "VI",
|
||||
228 => "KI",
|
||||
229 => "MH",
|
||||
230 => "FM",
|
||||
231 => "MS",
|
||||
232 => "NR",
|
||||
233 => "NU",
|
||||
234 => "NF",
|
||||
235 => "IO",
|
||||
236 => "PW",
|
||||
237 => "PN",
|
||||
238 => "SH",
|
||||
239 => "KN",
|
||||
240 => "LC",
|
||||
241 => "VC",
|
||||
242 => "AS",
|
||||
243 => "SJ",
|
||||
244 => "TP",
|
||||
245 => "TK",
|
||||
246 => "TC",
|
||||
247 => "VA",
|
||||
248 => "AQ",
|
||||
249 => "GS",
|
||||
250 => "UM",
|
||||
);
|
277
library/Metier/partenaires/CacheTribunaux.php
Normal file
277
library/Metier/partenaires/CacheTribunaux.php
Normal file
@ -0,0 +1,277 @@
|
||||
<?php
|
||||
return array(
|
||||
0 => array('Id'=>"1812", 'Nom'=>"Tribunal Inconnu", 'Code'=>"INCONU"),
|
||||
101 => array('Id'=>"140", 'Nom'=>"TC BOURG EN BRESSE", 'Code'=>"BOURGC"),
|
||||
151 => array('Id'=>"103", 'Nom'=>"TGIcc BELLEY", 'Code'=>"BELLEG"),
|
||||
201 => array('Id'=>"215", 'Nom'=>"TC CHAUNY", 'Code'=>"CHAUNC"),
|
||||
202 => array('Id'=>"705", 'Nom'=>"TC SAINT QUENTIN", 'Code'=>"STQUEC"),
|
||||
203 => array('Id'=>"651", 'Nom'=>"TC SOISSONS", 'Code'=>"SOISSC"),
|
||||
204 => array('Id'=>"764", 'Nom'=>"TC VERVINS", 'Code'=>"VERVIC"),
|
||||
252 => array('Id'=>"366", 'Nom'=>"TGI LAON", 'Code'=>"LAONG"),
|
||||
301 => array('Id'=>"259", 'Nom'=>"TC CUSSET", 'Code'=>"CUSSEC"),
|
||||
302 => array('Id'=>"491", 'Nom'=>"TC MOULINS", 'Code'=>"MOULIC"),
|
||||
303 => array('Id'=>"467", 'Nom'=>"TC MONTLUCON", 'Code'=>"MONTLC"),
|
||||
401 => array('Id'=>"425", 'Nom'=>"TC MANOSQUE", 'Code'=>"MANOSC"),
|
||||
453 => array('Id'=>"270", 'Nom'=>"TGI DIGNE", 'Code'=>"DIGNEG"),
|
||||
501 => array('Id'=>"325", 'Nom'=>"TC GAP", 'Code'=>"GAPC"),
|
||||
601 => array('Id'=>"40", 'Nom'=>"TC ANTIBES", 'Code'=>"ANTIBC"),
|
||||
602 => array('Id'=>"173", 'Nom'=>"TC CANNES", 'Code'=>"CANNEC"),
|
||||
603 => array('Id'=>"332", 'Nom'=>"TC GRASSE", 'Code'=>"GRASSC"),
|
||||
604 => array('Id'=>"449", 'Nom'=>"TC MENTON", 'Code'=>"MENTOC"),
|
||||
605 => array('Id'=>"518", 'Nom'=>"TC NICE", 'Code'=>"NICEC"),
|
||||
701 => array('Id'=>"39", 'Nom'=>"TC ANNONAY", 'Code'=>"ANNONC"),
|
||||
702 => array('Id'=>"53", 'Nom'=>"TC AUBENAS", 'Code'=>"AUBENC"),
|
||||
801 => array('Id'=>"224", 'Nom'=>"TC CHARLEVILLE MEZIERES", 'Code'=>"CHMEZC"),
|
||||
802 => array('Id'=>"640", 'Nom'=>"TC SEDAN", 'Code'=>"SEDANC"),
|
||||
901 => array('Id'=>"312", 'Nom'=>"TC FOIX", 'Code'=>"FOIXC"),
|
||||
951 => array('Id'=>"313", 'Nom'=>"TGI FOIX", 'Code'=>"FOIXG"),
|
||||
1001 => array('Id'=>"742", 'Nom'=>"TC TROYES", 'Code'=>"TROYEC"),
|
||||
1101 => array('Id'=>"175", 'Nom'=>"TC CARCASSONNE", 'Code'=>"CARCAC"),
|
||||
1102 => array('Id'=>"179", 'Nom'=>"TC CASTELNAUDARY", 'Code'=>"CASTEC"),
|
||||
1103 => array('Id'=>"395", 'Nom'=>"TC LIMOUX", 'Code'=>"LIMOUC"),
|
||||
1104 => array('Id'=>"508", 'Nom'=>"TC NARBONNE", 'Code'=>"NARBOC"),
|
||||
1201 => array('Id'=>"296", 'Nom'=>"TC ESPALION", 'Code'=>"ESPALC"),
|
||||
1202 => array('Id'=>"455", 'Nom'=>"TC MILLAU", 'Code'=>"MILLAC"),
|
||||
1203 => array('Id'=>"612", 'Nom'=>"TC RODEZ", 'Code'=>"RODEZC"),
|
||||
1204 => array('Id'=>"655", 'Nom'=>"TC SAINT AFRIQUE", 'Code'=>"STAFFC"),
|
||||
1301 => array('Id'=>"8", 'Nom'=>"TC AIX EN PROVENCE", 'Code'=>"AIXC"),
|
||||
1302 => array('Id'=>"49", 'Nom'=>"TC ARLES", 'Code'=>"ARLESC"),
|
||||
1303 => array('Id'=>"435", 'Nom'=>"TC MARSEILLE", 'Code'=>"MARSEC"),
|
||||
1304 => array('Id'=>"626", 'Nom'=>"TC SALON DE PROVENCE", 'Code'=>"SALONC"),
|
||||
1305 => array('Id'=>"715", 'Nom'=>"TC TARASCON", 'Code'=>"TARASC"),
|
||||
1401 => array('Id'=>"89", 'Nom'=>"TC BAYEUX", 'Code'=>"BAYEUC"),
|
||||
1402 => array('Id'=>"162", 'Nom'=>"TC CAEN", 'Code'=>"CAENC"),
|
||||
1403 => array('Id'=>"245", 'Nom'=>"TC CONDE-SUR-NOIREAU", 'Code'=>"CONDEC"),
|
||||
1404 => array('Id'=>"306", 'Nom'=>"TC FALAISE", 'Code'=>"FALAIC"),
|
||||
1405 => array('Id'=>"348", 'Nom'=>"TC HONFLEUR", 'Code'=>"HONFLC"),
|
||||
1407 => array('Id'=>"397", 'Nom'=>"TC LISIEUX", 'Code'=>"LISIEC"),
|
||||
1408 => array('Id'=>"782", 'Nom'=>"TC VIRE", 'Code'=>"VIREC"),
|
||||
1501 => array('Id'=>"59", 'Nom'=>"TC AURILLAC", 'Code'=>"AURILC"),
|
||||
1502 => array('Id'=>"677", 'Nom'=>"TC SAINT FLOUR", 'Code'=>"STFLOC"),
|
||||
1601 => array('Id'=>"35", 'Nom'=>"TC ANGOULEME", 'Code'=>"ANGOUC"),
|
||||
1602 => array('Id'=>"237", 'Nom'=>"TC COGNAC", 'Code'=>"COGNAC"),
|
||||
1701 => array('Id'=>"357", 'Nom'=>"TC JONZAC", 'Code'=>"JONZAC"),
|
||||
1702 => array('Id'=>"430", 'Nom'=>"TC MARENNES", 'Code'=>"MARENC"),
|
||||
1703 => array('Id'=>"603", 'Nom'=>"TC ROCHEFORT", 'Code'=>"ROCHEC"),
|
||||
1704 => array('Id'=>"606", 'Nom'=>"TC LA ROCHELLE", 'Code'=>"ROCHLC"),
|
||||
1708 => array('Id'=>"623", 'Nom'=>"TC SAINTES", 'Code'=>"SAINTC"),
|
||||
1801 => array('Id'=>"148", 'Nom'=>"TC BOURGES", 'Code'=>"BRGESC"),
|
||||
1901 => array('Id'=>"159", 'Nom'=>"TC BRIVE", 'Code'=>"BRIVEC"),
|
||||
1902 => array('Id'=>"745", 'Nom'=>"TC TULLE", 'Code'=>"TULLEC"),
|
||||
2001 => array('Id'=>"11", 'Nom'=>"TC AJACCIO", 'Code'=>"AJACCC"),
|
||||
2002 => array('Id'=>"86", 'Nom'=>"TC BASTIA", 'Code'=>"BASTIC"),
|
||||
2003 => array('Id'=>"349", 'Nom'=>"TC L'ILE ROUSSE", 'Code'=>"ILEROC"),
|
||||
2101 => array('Id'=>"66", 'Nom'=>"TC AUXONNE", 'Code'=>"AUXONC"),
|
||||
2102 => array('Id'=>"94", 'Nom'=>"TC BEAUNE", 'Code'=>"BEAUNC"),
|
||||
2103 => array('Id'=>"208", 'Nom'=>"TC CHATILLON SUR SEINE", 'Code'=>"CHATIC"),
|
||||
2104 => array('Id'=>"272", 'Nom'=>"TC DIJON", 'Code'=>"DIJONC"),
|
||||
2105 => array('Id'=>"533", 'Nom'=>"TC NUITS ST GEORGES", 'Code'=>"NUITSC"),
|
||||
2201 => array('Id'=>"541", 'Nom'=>"TC PAIMPOL", 'Code'=>"PAIMPC"),
|
||||
2202 => array('Id'=>"660", 'Nom'=>"TC SAINT BRIEUC", 'Code'=>"STBRIC"),
|
||||
2251 => array('Id'=>"275", 'Nom'=>"TGIcc DINAN", 'Code'=>"DINANG"),
|
||||
2252 => array('Id'=>"342", 'Nom'=>"TGIcc GUINGAMP", 'Code'=>"GUINGG"),
|
||||
2301 => array('Id'=>"1813", 'Nom'=>"TC GUERET", 'Code'=>"GUEREC"),
|
||||
2353 => array('Id'=>"340", 'Nom'=>"TGIcc GUERET", 'Code'=>"GUEREG"),
|
||||
2401 => array('Id'=>"105", 'Nom'=>"TC BERGERAC", 'Code'=>"BERGEC"),
|
||||
2402 => array('Id'=>"554", 'Nom'=>"TC PERIGUEUX", 'Code'=>"PERIGC"),
|
||||
2403 => array('Id'=>"628", 'Nom'=>"TC SARLAT", 'Code'=>"SARLAC"),
|
||||
2501 => array('Id'=>"111", 'Nom'=>"TC BESANCON", 'Code'=>"BESANC"),
|
||||
2552 => array('Id'=>"461", 'Nom'=>"TGIcc MONTBELIARD", 'Code'=>"MONTBG"),
|
||||
2601 => array('Id'=>"265", 'Nom'=>"TC DIE", 'Code'=>"DIEC"),
|
||||
2602 => array('Id'=>"614", 'Nom'=>"TC ROMANS", 'Code'=>"ROMANC"),
|
||||
2653 => array('Id'=>"752", 'Nom'=>"TGIcc VALENCE", 'Code'=>"VALENG"),
|
||||
2701 => array('Id'=>"108", 'Nom'=>"TC BERNAY", 'Code'=>"BERNAC"),
|
||||
2702 => array('Id'=>"300", 'Nom'=>"TC EVREUX", 'Code'=>"EVREUC"),
|
||||
2703 => array('Id'=>"410", 'Nom'=>"TC LOUVIERS", 'Code'=>"LOUVIC"),
|
||||
2704 => array('Id'=>"569", 'Nom'=>"TC PONT AUDEMER", 'Code'=>"PONTAC"),
|
||||
2801 => array('Id'=>"199", 'Nom'=>"TC CHARTRES", 'Code'=>"CHARTC"),
|
||||
2802 => array('Id'=>"286", 'Nom'=>"TC DREUX", 'Code'=>"DREUXC"),
|
||||
2901 => array('Id'=>"145", 'Nom'=>"TC BREST", 'Code'=>"BRESTC"),
|
||||
2902 => array('Id'=>"487", 'Nom'=>"TC MORLAIX", 'Code'=>"MORLAC"),
|
||||
2903 => array('Id'=>"583", 'Nom'=>"TC QUIMPER", 'Code'=>"QUIMPC"),
|
||||
3001 => array('Id'=>"22", 'Nom'=>"TC ALES", 'Code'=>"ALESC"),
|
||||
3003 => array('Id'=>"522", 'Nom'=>"TC NIMES", 'Code'=>"NIMESC"),
|
||||
3101 => array('Id'=>"679", 'Nom'=>"TC SAINT GAUDENS", 'Code'=>"STGAUC"),
|
||||
3102 => array('Id'=>"733", 'Nom'=>"TC TOULOUSE", 'Code'=>"TOULSC"),
|
||||
3201 => array('Id'=>"56", 'Nom'=>"TC AUCH", 'Code'=>"AUCHC"),
|
||||
3301 => array('Id'=>"121", 'Nom'=>"TC BLAYE", 'Code'=>"BLAYEC"),
|
||||
3302 => array('Id'=>"132", 'Nom'=>"TC BORDEAUX", 'Code'=>"BORDEC"),
|
||||
3303 => array('Id'=>"386", 'Nom'=>"TC LIBOURNE", 'Code'=>"LIBOUC"),
|
||||
3402 => array('Id'=>"116", 'Nom'=>"TC BEZIERS", 'Code'=>"BEZIEC"),
|
||||
3403 => array('Id'=>"235", 'Nom'=>"TC CLERMONT L'HERAULT", 'Code'=>"CLHERC"),
|
||||
3404 => array('Id'=>"401", 'Nom'=>"TC LODEVE", 'Code'=>"LODEVC"),
|
||||
3405 => array('Id'=>"477", 'Nom'=>"TC MONTPELLIER", 'Code'=>"MONTPC"),
|
||||
3406 => array('Id'=>"561", 'Nom'=>"TC PEZENAS", 'Code'=>"PEZENC"),
|
||||
3407 => array('Id'=>"649", 'Nom'=>"TC SETE", 'Code'=>"SETEC"),
|
||||
3501 => array('Id'=>"591", 'Nom'=>"TC RENNES", 'Code'=>"RENNEC"),
|
||||
3502 => array('Id'=>"691", 'Nom'=>"TC SAINT MALO", 'Code'=>"STMALC"),
|
||||
3601 => array('Id'=>"205", 'Nom'=>"TC CHATEAUROUX", 'Code'=>"CHATEC"),
|
||||
3602 => array('Id'=>"353", 'Nom'=>"TC ISSOUDUN", 'Code'=>"ISSOUC"),
|
||||
3701 => array('Id'=>"739", 'Nom'=>"TC TOURS", 'Code'=>"TOURSC"),
|
||||
3801 => array('Id'=>"336", 'Nom'=>"TC GRENOBLE", 'Code'=>"GRENOC"),
|
||||
3802 => array('Id'=>"770", 'Nom'=>"TC VIENNE", 'Code'=>"VIENNC"),
|
||||
3851 => array('Id'=>"118", 'Nom'=>"TGIcc BOURGOIN JALLIEU", 'Code'=>"BGOING"),
|
||||
3901 => array('Id'=>"277", 'Nom'=>"TC DOLE", 'Code'=>"DOLEC"),
|
||||
3902 => array('Id'=>"403", 'Nom'=>"TC LONS LE SAUNIER", 'Code'=>"LONSC"),
|
||||
3903 => array('Id'=>"625", 'Nom'=>"TC SALINS LES BAINS", 'Code'=>"SALINC"),
|
||||
4001 => array('Id'=>"262", 'Nom'=>"TC DAX", 'Code'=>"DAXC"),
|
||||
4002 => array('Id'=>"470", 'Nom'=>"TC MONT DE MARSAN", 'Code'=>"MONTMC"),
|
||||
4101 => array('Id'=>"123", 'Nom'=>"TC BLOIS", 'Code'=>"BLOISC"),
|
||||
4102 => array('Id'=>"616", 'Nom'=>"TC ROMORANTIN", 'Code'=>"ROMORC"),
|
||||
4201 => array('Id'=>"599", 'Nom'=>"TC ROANNE", 'Code'=>"ROANNC"),
|
||||
4202 => array('Id'=>"674", 'Nom'=>"TC SAINT ETIENNE", 'Code'=>"STETIC"),
|
||||
4251 => array('Id'=>"480", 'Nom'=>"TGIcc MONTBRISON", 'Code'=>"MONTRG"),
|
||||
4301 => array('Id'=>"157", 'Nom'=>"TC BRIOUDE", 'Code'=>"BRIOUC"),
|
||||
4302 => array('Id'=>"377", 'Nom'=>"TC PUY EN VELAY", 'Code'=>"LEPUYC"),
|
||||
4401 => array('Id'=>"501", 'Nom'=>"TC NANTES", 'Code'=>"NANTEC"),
|
||||
4402 => array('Id'=>"695", 'Nom'=>"TC SAINT NAZAIRE", 'Code'=>"STNAZC"),
|
||||
4501 => array('Id'=>"482", 'Nom'=>"TC MONTARGIS", 'Code'=>"MONTSC"),
|
||||
4502 => array('Id'=>"539", 'Nom'=>"TC ORLEANS", 'Code'=>"ORLEAC"),
|
||||
4601 => array('Id'=>"165", 'Nom'=>"TC CAHORS", 'Code'=>"CAHORC"),
|
||||
4701 => array('Id'=>"5", 'Nom'=>"TC AGEN", 'Code'=>"AGENC"),
|
||||
4702 => array('Id'=>"432", 'Nom'=>"TC MARMANDE", 'Code'=>"MARMAC"),
|
||||
4703 => array('Id'=>"511", 'Nom'=>"TC NERAC", 'Code'=>"NERACC"),
|
||||
4704 => array('Id'=>"778", 'Nom'=>"TC VILLENEUVE SUR LOT", 'Code'=>"VILLNC"),
|
||||
4801 => array('Id'=>"447", 'Nom'=>"TC MENDE", 'Code'=>"MENDEC"),
|
||||
4853 => array('Id'=>"448", 'Nom'=>"TGIcc MENDE", 'Code'=>"MENDEG"),
|
||||
4901 => array('Id'=>"32", 'Nom'=>"TC ANGERS", 'Code'=>"ANGERC"),
|
||||
4902 => array('Id'=>"634", 'Nom'=>"TC SAUMUR", 'Code'=>"SAUMUC"),
|
||||
5001 => array('Id'=>"217", 'Nom'=>"TC CHERBOURG", 'Code'=>"CHERBC"),
|
||||
5002 => array('Id'=>"253", 'Nom'=>"TC COUTANCES", 'Code'=>"COUTAC"),
|
||||
5003 => array('Id'=>"330", 'Nom'=>"TC GRANVILLE", 'Code'=>"GRANVC"),
|
||||
5004 => array('Id'=>"689", 'Nom'=>"TC SAINT LO", 'Code'=>"STLOC"),
|
||||
5101 => array('Id'=>"221", 'Nom'=>"TC CHALONS EN CHAMPAGNE", 'Code'=>"CHLONC"),
|
||||
5102 => array('Id'=>"292", 'Nom'=>"TC EPERNAY", 'Code'=>"EPERNC"),
|
||||
5103 => array('Id'=>"588", 'Nom'=>"TC REIMS", 'Code'=>"REIMSC"),
|
||||
5201 => array('Id'=>"213", 'Nom'=>"TC CHAUMONT", 'Code'=>"CHAUMC"),
|
||||
5202 => array('Id'=>"363", 'Nom'=>"TC LANGRES", 'Code'=>"LANGRC"),
|
||||
5203 => array('Id'=>"671", 'Nom'=>"TC SAINT DIZIER", 'Code'=>"STDIZC"),
|
||||
5301 => array('Id'=>"371", 'Nom'=>"TC LAVAL", 'Code'=>"LAVALC"),
|
||||
5302 => array('Id'=>"439", 'Nom'=>"TC MAYENNE", 'Code'=>"MAYENC"),
|
||||
5401 => array('Id'=>"152", 'Nom'=>"TC BRIEY", 'Code'=>"BRIEYC"),
|
||||
5402 => array('Id'=>"498", 'Nom'=>"TC NANCY", 'Code'=>"NANCYC"),
|
||||
5501 => array('Id'=>"79", 'Nom'=>"TC BAR LE DUC", 'Code'=>"BARLDC"),
|
||||
5502 => array('Id'=>"758", 'Nom'=>"TC VERDUN", 'Code'=>"VERDUC"),
|
||||
5601 => array('Id'=>"406", 'Nom'=>"TC LORIENT", 'Code'=>"LORIEC"),
|
||||
5602 => array('Id'=>"754", 'Nom'=>"TC VANNES", 'Code'=>"VANNEC"),
|
||||
5751 => array('Id'=>"452", 'Nom'=>"TGIcc METZ", 'Code'=>"METZG"),
|
||||
5752 => array('Id'=>"630", 'Nom'=>"TGIcc SARREGUEMINES", 'Code'=>"SARREG"),
|
||||
5753 => array('Id'=>"724", 'Nom'=>"TGIcc THIONVILLE", 'Code'=>"THIONG"),
|
||||
5801 => array('Id'=>"230", 'Nom'=>"TC CLAMECY", 'Code'=>"CLAMEC"),
|
||||
5802 => array('Id'=>"515", 'Nom'=>"TC NEVERS", 'Code'=>"NEVERC"),
|
||||
5901 => array('Id'=>"171", 'Nom'=>"TC CAMBRAI", 'Code'=>"CAMBRC"),
|
||||
5902 => array('Id'=>"288", 'Nom'=>"TC DUNKERQUE", 'Code'=>"DUNKEC"),
|
||||
5903 => array('Id'=>"389", 'Nom'=>"TC LILLE", 'Code'=>"LILLEC"),
|
||||
5904 => array('Id'=>"617", 'Nom'=>"TC ROUBAIX TOURCOING", 'Code'=>"ROUBAC"),
|
||||
5905 => array('Id'=>"735", 'Nom'=>"TC ROUBAIX TOURCOING", 'Code'=>"TOURCC"),
|
||||
5906 => array('Id'=>"749", 'Nom'=>"TC VALENCIENNES", 'Code'=>"VALECC"),
|
||||
5910 => array('Id'=>"3340", 'Nom'=>"TC LILLE METROPOLE", 'Code'=>"LILLEM"),
|
||||
5951 => array('Id'=>"69", 'Nom'=>"TGIcc AVESNES SUR HELPE", 'Code'=>"AVESNG"),
|
||||
5952 => array('Id'=>"280", 'Nom'=>"TC DOUAI", 'Code'=>"DOUAIC"),
|
||||
5953 => array('Id'=>"347", 'Nom'=>"TGIcc HAZEBROUCK", 'Code'=>"HAZEBG"),
|
||||
6001 => array('Id'=>"96", 'Nom'=>"TC BEAUVAIS", 'Code'=>"BEAUVC"),
|
||||
6002 => array('Id'=>"243", 'Nom'=>"TC COMPIEGNE", 'Code'=>"COMPIC"),
|
||||
6003 => array('Id'=>"644", 'Nom'=>"TC SENLIS", 'Code'=>"SENLIC"),
|
||||
6101 => array('Id'=>"19", 'Nom'=>"TC ALENCON", 'Code'=>"ALENCC"),
|
||||
6102 => array('Id'=>"45", 'Nom'=>"TC ARGENTAN", 'Code'=>"ARGENC"),
|
||||
6103 => array('Id'=>"309", 'Nom'=>"TC FLERS", 'Code'=>"FLERSC"),
|
||||
6104 => array('Id'=>"360", 'Nom'=>"TC L'AIGLE", 'Code'=>"LAIGLC"),
|
||||
6105 => array('Id'=>"780", 'Nom'=>"TC VIMOUTIERS", 'Code'=>"VIMOUC"),
|
||||
6201 => array('Id'=>"51", 'Nom'=>"TC ARRAS", 'Code'=>"ARRASC"),
|
||||
6202 => array('Id'=>"137", 'Nom'=>"TC BOULOGNE SUR MER", 'Code'=>"BOULOC"),
|
||||
6203 => array('Id'=>"168", 'Nom'=>"TC CALAIS", 'Code'=>"CALAIC"),
|
||||
6204 => array('Id'=>"698", 'Nom'=>"TC SAINT OMER", 'Code'=>"STOMEC"),
|
||||
6251 => array('Id'=>"114", 'Nom'=>"TGIcc BETHUNE", 'Code'=>"BETHUG"),
|
||||
6301 => array('Id'=>"26", 'Nom'=>"TC AMBERT", 'Code'=>"AMBERC"),
|
||||
6302 => array('Id'=>"119", 'Nom'=>"TC BILLOM", 'Code'=>"BILLOC"),
|
||||
6303 => array('Id'=>"233", 'Nom'=>"TC CLERMONT FERRAND", 'Code'=>"CLFERC"),
|
||||
6304 => array('Id'=>"351", 'Nom'=>"TC ISSOIRE", 'Code'=>"ISSOIC"),
|
||||
6305 => array('Id'=>"596", 'Nom'=>"TC RIOM", 'Code'=>"RIOMC"),
|
||||
6306 => array('Id'=>"722", 'Nom'=>"TC THIERS", 'Code'=>"THIERC"),
|
||||
6401 => array('Id'=>"91", 'Nom'=>"TC BAYONNE", 'Code'=>"BAYONC"),
|
||||
6402 => array('Id'=>"536", 'Nom'=>"TC OLORON SAINTE MARIE", 'Code'=>"OLOROC"),
|
||||
6403 => array('Id'=>"551", 'Nom'=>"TC PAU", 'Code'=>"PAUC"),
|
||||
6501 => array('Id'=>"76", 'Nom'=>"TC BAGNERES DE BIGORRE", 'Code'=>"BAGNEC"),
|
||||
6502 => array('Id'=>"718", 'Nom'=>"TC TARBES", 'Code'=>"TARBEC"),
|
||||
6601 => array('Id'=>"559", 'Nom'=>"TC PERPIGNAN", 'Code'=>"PERPIC"),
|
||||
6751 => array('Id'=>"637", 'Nom'=>"TGIcc SAVERNE", 'Code'=>"SAVERG"),
|
||||
6752 => array('Id'=>"709", 'Nom'=>"TGIcc STRASBOURG", 'Code'=>"STRASG"),
|
||||
6851 => array('Id'=>"239", 'Nom'=>"TGIcc COLMAR", 'Code'=>"COLMAG"),
|
||||
6852 => array('Id'=>"494", 'Nom'=>"TGIcc MULHOUSE", 'Code'=>"MULHOG"),
|
||||
6901 => array('Id'=>"415", 'Nom'=>"TC LYON", 'Code'=>"LYONC"),
|
||||
6902 => array('Id'=>"775", 'Nom'=>"TC VILLEFRANCHE SUR SAONE", 'Code'=>"VILLFC"),
|
||||
6903 => array('Id'=>"779", 'Nom'=>"TC VILLEFRANCHE-TARARE", 'Code'=>"VILTAC"),
|
||||
7001 => array('Id'=>"334", 'Nom'=>"TC GRAY", 'Code'=>"GRAYC"),
|
||||
7051 => array('Id'=>"413", 'Nom'=>"TGIcc LURE", 'Code'=>"LUREG"),
|
||||
7052 => array('Id'=>"766", 'Nom'=>"TC VESOUL GRAY", 'Code'=>"VESOUC"),
|
||||
7101 => array('Id'=>"62", 'Nom'=>"TC AUTUN", 'Code'=>"AUTUNC"),
|
||||
7102 => array('Id'=>"191", 'Nom'=>"TC CHALON SUR SAONE", 'Code'=>"CHALOC"),
|
||||
7103 => array('Id'=>"197", 'Nom'=>"TC CHAROLLES", 'Code'=>"CHAROC"),
|
||||
7104 => array('Id'=>"258", 'Nom'=>"TC LE CREUSOT", 'Code'=>"CREUSC"),
|
||||
7105 => array('Id'=>"409", 'Nom'=>"TC LOUHANS", 'Code'=>"LOUHAC"),
|
||||
7106 => array('Id'=>"418", 'Nom'=>"TC MACON", 'Code'=>"MACONC"),
|
||||
7107 => array('Id'=>"737", 'Nom'=>"TC TOURNUS", 'Code'=>"TOURNC"),
|
||||
7201 => array('Id'=>"421", 'Nom'=>"TC MAMERS", 'Code'=>"MAMERC"),
|
||||
7202 => array('Id'=>"427", 'Nom'=>"TC LE MANS", 'Code'=>"MANSC"),
|
||||
7301 => array('Id'=>"194", 'Nom'=>"TC CHAMBERY", 'Code'=>"CHAMBC"),
|
||||
7351 => array('Id'=>"14", 'Nom'=>"TGIcc ALBERTVILLE", 'Code'=>"ALBERG"),
|
||||
7401 => array('Id'=>"1814", 'Nom'=>"TC ANNECY", 'Code'=>"ANNECC"),
|
||||
7402 => array('Id'=>"1815", 'Nom'=>"TC THONON LES BAINS", 'Code'=>"THONOC"),
|
||||
7451 => array('Id'=>"38", 'Nom'=>"TGIcc ANNECY", 'Code'=>"ANNECG"),
|
||||
7452 => array('Id'=>"129", 'Nom'=>"TGIcc BONNEVILLE", 'Code'=>"BONNEG"),
|
||||
7454 => array('Id'=>"727", 'Nom'=>"TGIcc THONON LES BAINS", 'Code'=>"THONOG"),
|
||||
7501 => array('Id'=>"547", 'Nom'=>"TC PARIS", 'Code'=>"PARISC"),
|
||||
7601 => array('Id'=>"267", 'Nom'=>"TC DIEPPE", 'Code'=>"DIEPPC"),
|
||||
7602 => array('Id'=>"290", 'Nom'=>"TC ELBEUF", 'Code'=>"ELBEUC"),
|
||||
7603 => array('Id'=>"298", 'Nom'=>"TC EULET", 'Code'=>"EULETC"),
|
||||
7604 => array('Id'=>"307", 'Nom'=>"TC FECAMP (de terre et de mer)", 'Code'=>"FECAMC"),
|
||||
7605 => array('Id'=>"329", 'Nom'=>"TC GOURNAY EN BRAY", 'Code'=>"GOURNC"),
|
||||
7606 => array('Id'=>"345", 'Nom'=>"TC LE HAVRE", 'Code'=>"HAVREC"),
|
||||
7607 => array('Id'=>"513", 'Nom'=>"TC NEUFCHATEL EN BRAY", 'Code'=>"NEUFCC"),
|
||||
7608 => array('Id'=>"619", 'Nom'=>"TC ROUEN", 'Code'=>"ROUENC"),
|
||||
7609 => array('Id'=>"712", 'Nom'=>"TC SAINT VALERY EN CAUX", 'Code'=>"STVACC"),
|
||||
7701 => array('Id'=>"441", 'Nom'=>"TC MEAUX", 'Code'=>"MEAUXC"),
|
||||
7702 => array('Id'=>"444", 'Nom'=>"TC MELUN", 'Code'=>"MELUNC"),
|
||||
7703 => array('Id'=>"463", 'Nom'=>"TC MONTEREAU", 'Code'=>"MONTEC"),
|
||||
7704 => array('Id'=>"581", 'Nom'=>"TC PROVINS", 'Code'=>"PROVIC"),
|
||||
7801 => array('Id'=>"304", 'Nom'=>"TC EVRY", 'Code'=>"EVRYC"),
|
||||
7802 => array('Id'=>"572", 'Nom'=>"TC PONTOISE", 'Code'=>"PONTOC"),
|
||||
7803 => array('Id'=>"761", 'Nom'=>"TC VERSAILLES", 'Code'=>"VERSAC"),
|
||||
7901 => array('Id'=>"525", 'Nom'=>"TC NIORT", 'Code'=>"NIORTC"),
|
||||
7951 => array('Id'=>"143", 'Nom'=>"TGIcc BRESSUIRE", 'Code'=>"BRESSG"),
|
||||
8001 => array('Id'=>"2", 'Nom'=>"TC ABBEVILLE", 'Code'=>"ABBEVC"),
|
||||
8002 => array('Id'=>"28", 'Nom'=>"TC AMIENS", 'Code'=>"AMIENC"),
|
||||
8003 => array('Id'=>"713", 'Nom'=>"TC SAINT VALERY S/ SOMME", 'Code'=>"STVASC"),
|
||||
8053 => array('Id'=>"557", 'Nom'=>"TGIcc PERONNE", 'Code'=>"PERONG"),
|
||||
8101 => array('Id'=>"16", 'Nom'=>"TC ALBI", 'Code'=>"ALBIC"),
|
||||
8102 => array('Id'=>"182", 'Nom'=>"TC CASTRES", 'Code'=>"CASTRC"),
|
||||
8201 => array('Id'=>"473", 'Nom'=>"TC MONTAUBAN", 'Code'=>"MONTNC"),
|
||||
8301 => array('Id'=>"155", 'Nom'=>"TC BRIGNOLES", 'Code'=>"BRIGNC"),
|
||||
8302 => array('Id'=>"283", 'Nom'=>"TC DRAGUIGNAN", 'Code'=>"DRAGUC"),
|
||||
8303 => array('Id'=>"323", 'Nom'=>"TC FREJUS", 'Code'=>"FREJUC"),
|
||||
8304 => array('Id'=>"711", 'Nom'=>"TC SAINT TROPEZ", 'Code'=>"STTROC"),
|
||||
8305 => array('Id'=>"730", 'Nom'=>"TC TOULON", 'Code'=>"TOULOC"),
|
||||
8401 => array('Id'=>"71", 'Nom'=>"TC AVIGNON", 'Code'=>"AVIGNC"),
|
||||
8452 => array('Id'=>"178", 'Nom'=>"TGIcc CARPENTRAS", 'Code'=>"CARPEG"),
|
||||
8501 => array('Id'=>"609", 'Nom'=>"TC LA ROCHE SUR YON", 'Code'=>"ROCHYC"),
|
||||
8601 => array('Id'=>"228", 'Nom'=>"TC CHATELLERAULT", 'Code'=>"CHTLTC"),
|
||||
8602 => array('Id'=>"567", 'Nom'=>"TC POITIERS", 'Code'=>"POITIC"),
|
||||
8701 => array('Id'=>"392", 'Nom'=>"TC LIMOGES", 'Code'=>"LIMOGC"),
|
||||
8801 => array('Id'=>"294", 'Nom'=>"TC EPINAL", 'Code'=>"EPINAC"),
|
||||
8802 => array('Id'=>"458", 'Nom'=>"TC MIRECOURT", 'Code'=>"MIRECC"),
|
||||
8803 => array('Id'=>"668", 'Nom'=>"TC SAINT DIE", 'Code'=>"STDIEC"),
|
||||
8901 => array('Id'=>"64", 'Nom'=>"TC AUXERRE", 'Code'=>"AUXERC"),
|
||||
8902 => array('Id'=>"355", 'Nom'=>"TC JOIGNY", 'Code'=>"JOIGNC"),
|
||||
8903 => array('Id'=>"647", 'Nom'=>"TC SENS", 'Code'=>"SENSC"),
|
||||
9001 => array('Id'=>"99", 'Nom'=>"TC BELFORT", 'Code'=>"BELFOC"),
|
||||
9101 => array('Id'=>"248", 'Nom'=>"TC CORBEIL ESSONNES", 'Code'=>"CORBEC"),
|
||||
9201 => array('Id'=>"504", 'Nom'=>"TC NANTERRE", 'Code'=>"NANTRC"),
|
||||
9301 => array('Id'=>"126", 'Nom'=>"TC BOBIGNY", 'Code'=>"BOBIGC"),
|
||||
9401 => array('Id'=>"256", 'Nom'=>"TC CRETEIL", 'Code'=>"CRETEC"),
|
||||
9711 => array('Id'=>"84", 'Nom'=>"TMX BASSE-TERRE", 'Code'=>"BASSEM"),
|
||||
9712 => array('Id'=>"565", 'Nom'=>"TMX POINTE-A-PITRE", 'Code'=>"POINTM"),
|
||||
9721 => array('Id'=>"321", 'Nom'=>"TMX FORT DE FRANCE", 'Code'=>"FORTFM"),
|
||||
9731 => array('Id'=>"187", 'Nom'=>"TMX CAYENNE", 'Code'=>"CAYENM"),
|
||||
9741 => array('Id'=>"666", 'Nom'=>"TMX SAINT DENIS DE LA REUNION", 'Code'=>"STDENM"),
|
||||
9742 => array('Id'=>"1816", 'Nom'=>"TMX SAINT PIERRE DE LA REUNION", 'Code'=>"STPIEM"),
|
||||
);
|
@ -1,37 +1,36 @@
|
||||
<?php
|
||||
|
||||
class MCadastre {
|
||||
|
||||
<?php
|
||||
class MCadastre
|
||||
{
|
||||
var $siren=false;
|
||||
var $iDb;
|
||||
|
||||
/** Droits des locaux **/
|
||||
private static $tabCodeDroit=array(
|
||||
'P'=>'Propriétaire',
|
||||
'U'=>'Usufruitier', // (associé avec N)
|
||||
'N'=>'Nu-propriétaire', // (associé avec U)
|
||||
'B'=>'Bailleur à construction', // (associé avec R)
|
||||
'R'=>'Preneur à construction', // (associé avec B)
|
||||
'F'=>'Foncier', // (associé avec D ou T)
|
||||
'T'=>'Tenuyer', // (associé avec F)
|
||||
'D'=>'Domanier', // (associé avec F)
|
||||
'V'=>'Bailleur d\'un bail à réhabilitation', // (associé avec W)
|
||||
'W'=>'Preneur d\'un bail à réhabilitation', // (associé avec V)
|
||||
'U'=>'Usufruitier', // (associé avec N)
|
||||
'N'=>'Nu-propriétaire', // (associé avec U)
|
||||
'B'=>'Bailleur à construction', // (associé avec R)
|
||||
'R'=>'Preneur à construction', // (associé avec B)
|
||||
'F'=>'Foncier', // (associé avec D ou T)
|
||||
'T'=>'Tenuyer', // (associé avec F)
|
||||
'D'=>'Domanier', // (associé avec F)
|
||||
'V'=>'Bailleur d\'un bail à réhabilitation', // (associé avec W)
|
||||
'W'=>'Preneur d\'un bail à réhabilitation', // (associé avec V)
|
||||
'A'=>'Locataire-Attributaire', // (associé avec P)
|
||||
'E'=>'Emphytéote', // (associé avec P)
|
||||
'E'=>'Emphytéote', // (associé avec P)
|
||||
'K'=>'Antichrésiste', // (associé avec P)
|
||||
'L'=>'Fonctionnaire logé',
|
||||
'G'=>'Gérant, mandataire, gestionnaire',
|
||||
'S'=>'Syndic de copropriété',
|
||||
'H'=>'Associé dans une société en transparence fiscale',// (associé avec P)
|
||||
'O'=>'Autorisation d\'occupation temporaire (70 ans)',
|
||||
'J'=>'Jeune agriculteur',
|
||||
'Q'=>'Gestionnaire taxe sur les bureaux (Ile-de-France)',
|
||||
'X'=>'La Poste Occupant et propriétaire',
|
||||
'Y'=>'La Poste Occupant et non propriétaire',
|
||||
'C'=>'Fiduciaire',
|
||||
'G'=>'Gérant, mandataire, gestionnaire',
|
||||
'S'=>'Syndic de copropriété',
|
||||
'H'=>'Associé dans une société en transparence fiscale',// (associé avec P)
|
||||
'O'=>'Autorisation d\'occupation temporaire (70 ans)',
|
||||
'J'=>'Jeune agriculteur',
|
||||
'Q'=>'Gestionnaire taxe sur les bureaux (Ile-de-France)',
|
||||
'X'=>'La Poste Occupant et propriétaire',
|
||||
'Y'=>'La Poste Occupant et non propriétaire',
|
||||
'C'=>'Fiduciaire',
|
||||
);
|
||||
|
||||
|
||||
/** Nature des locaux **/
|
||||
private static $tabNatureLoc=array(
|
||||
'AP'=>'Appartement',
|
||||
@ -64,7 +63,7 @@ class MCadastre {
|
||||
'UN'=>'Usine nucléaire',
|
||||
'US'=>'Etablissement industriel',
|
||||
);
|
||||
|
||||
|
||||
/** Code Affectation des PEV (Partie d'EValuation) **/
|
||||
private static $tabCodePEV=array(
|
||||
'B'=>'Bâtiment industriel',
|
||||
@ -76,7 +75,7 @@ class MCadastre {
|
||||
'S'=>'Biens divers passibles de la Taxe d\'Habitation',
|
||||
'T'=>'Terrain industriel',
|
||||
);
|
||||
|
||||
|
||||
/** Code Groupes Personnes Morales **/
|
||||
private static $tabGrpPerMor=array(
|
||||
0=>'Personne morale', // non remarquable
|
||||
@ -89,7 +88,7 @@ class MCadastre {
|
||||
7=>'Copropriétaire',
|
||||
8=>'Associé',
|
||||
9=>'Etablissement public ou organismes assimilés',
|
||||
|
||||
|
||||
);
|
||||
|
||||
/** Nature des parcelles (cultures) **/
|
||||
@ -122,82 +121,92 @@ class MCadastre {
|
||||
'VE'=>'Vergers',
|
||||
'VI'=>'Vignes',
|
||||
);
|
||||
|
||||
|
||||
public function __construct($siren=0) {
|
||||
$this->siren=$siren;
|
||||
$this->iDb=new WDb('sdv1');
|
||||
$this->iDb=new WDb('sdv1');
|
||||
}
|
||||
|
||||
function getLocaux($siren=false) {
|
||||
if (!$siren)
|
||||
$siren=$this->siren;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $siren
|
||||
* @return array
|
||||
*/
|
||||
function getLocaux($siren=false)
|
||||
{
|
||||
if (!$siren) $siren=$this->siren;
|
||||
|
||||
$tabTmp=$this->iDb->select(
|
||||
'cad_perloc l, cad_permor e',
|
||||
'e.INTCIF, e.DNUPER, e.CCOGRM, e.DDENPM, e.DSIPMO, e.DFORME, e.FILLER, e.DSIREN, e.DLIGN3, e.DLIGN4, e.DLIGN5, e.DLIGN6, e.CCODEP, e.CCOCOM,
|
||||
'e.INTCIF, e.DNUPER, e.CCOGRM, e.DDENPM, e.DSIPMO, e.DFORME, e.FILLER, e.DSIREN, e.DLIGN3, e.DLIGN4, e.DLIGN5, e.DLIGN6, e.CCODEP, e.CCOCOM,
|
||||
l.CCODRO, l.CCOCOM, l.CCOPRF, l.CCOSEC, l.DNUPLA, l.DNUBAT, l.DESC, l.DNIV, l.DPOR, l.CCONLC, l.CCOAFF0, l.DSUPOD0, l.CCOAFF1, l.DSUPOD1, l.CCOAFF2, l.DSUPOD2, l.CCOAFF3, l.DSUPOD3, l.CCOAFF4, l.DSUPOD4, l.CCOAFF5, l.DSUPOD5, l.CCOAFF6, l.DSUPOD6, l.CCOAFF7, l.DSUPOD7, l.CCOAFF8, l.DSUPOD8, l.CCOAFF9, l.DSUPOD9, l.CCODEP, l.DLICOM, l.CCORIV, l.CNAVOI, l.DLIVOI, l.DNUVOI, l.DLTNUV',
|
||||
"e.DSIREN=$siren AND e.INTCIF=l.INTCIF AND e.DNUPER=l.DNUPER", false, MYSQL_ASSOC);
|
||||
$tabRet=array();
|
||||
foreach ($tabTmp as $i=>$loc) {
|
||||
$tabLoc=array( 'idCentre'=>$loc['INTCIF'],
|
||||
'idPmMajic'=>$loc['DNUPER'],
|
||||
'pmGroupe'=>trim($loc['CCOGRM']),
|
||||
'pmGroupeLib'=>self::$tabGrpPerMor[trim($loc['CCOGRM'])],
|
||||
'pmNom'=>trim($loc['DDENPM']),
|
||||
'pmSigle'=>trim($loc['DSIPMO']),
|
||||
'pmFJ'=>$loc['DFORME'], // $loc['FILLER'],
|
||||
'siren'=>trim($loc['DSIREN']),
|
||||
'pmAdrL3'=>trim($loc['DLIGN3']),
|
||||
'pmAdrL4'=>trim($loc['DLIGN4']),
|
||||
'pmAdrL5'=>trim($loc['DLIGN5']),
|
||||
'pmAdrL6'=>trim($loc['DLIGN6']),
|
||||
'pmAdrDep'=>trim($loc['CCODEP']),
|
||||
'pmAdrCom'=>trim($loc['CCOCOM']),
|
||||
'localDroit'=>trim($loc['CCODRO']),
|
||||
'localDroitLib'=>self::$tabCodeDroit[trim($loc['CCODRO'])],
|
||||
'localDep'=>trim($loc['CCODEP']),
|
||||
'localCom'=>trim($loc['CCOCOM']),
|
||||
'localComLib'=>trim($loc['DLICOM']),
|
||||
'localComAbs'=>trim($loc['CCOPRF']),
|
||||
'localRivoli'=>trim($loc['CCORIV']),
|
||||
'localNumVoie'=>trim($loc['DNUVOI']),
|
||||
'localIndVoie'=>trim($loc['DLTNUV']),
|
||||
'localTypVoie'=>trim($loc['CNAVOI']),
|
||||
'localLibVoie'=>trim($loc['DLIVOI']),
|
||||
'localSection'=>trim($loc['CCOSEC']),
|
||||
'localNumPlan'=>trim($loc['DNUPLA']),
|
||||
'localNumBat'=>trim($loc['DNUBAT']),
|
||||
'localEntEsc'=>trim($loc['DESC']),
|
||||
'localNumPlan'=>trim($loc['DNIV']),
|
||||
'localNumBat'=>trim($loc['DPOR']),
|
||||
'localEntEsc'=>trim($loc['CCONLC']),
|
||||
'localPEV'=>array(),
|
||||
if (count($tabTmp)>0 ) {
|
||||
foreach ($tabTmp as $i=>$loc) {
|
||||
$tabLoc = array(
|
||||
'idCentre'=>$loc['INTCIF'],
|
||||
'idPmMajic'=>$loc['DNUPER'],
|
||||
'pmGroupe'=>trim($loc['CCOGRM']),
|
||||
'pmGroupeLib'=>self::$tabGrpPerMor[trim($loc['CCOGRM'])],
|
||||
'pmNom'=>trim($loc['DDENPM']),
|
||||
'pmSigle'=>trim($loc['DSIPMO']),
|
||||
'pmFJ'=>$loc['DFORME'], // $loc['FILLER'],
|
||||
'siren'=>trim($loc['DSIREN']),
|
||||
'pmAdrL3'=>trim($loc['DLIGN3']),
|
||||
'pmAdrL4'=>trim($loc['DLIGN4']),
|
||||
'pmAdrL5'=>trim($loc['DLIGN5']),
|
||||
'pmAdrL6'=>trim($loc['DLIGN6']),
|
||||
'pmAdrDep'=>trim($loc['CCODEP']),
|
||||
'pmAdrCom'=>trim($loc['CCOCOM']),
|
||||
'localDroit'=>trim($loc['CCODRO']),
|
||||
'localDroitLib'=>self::$tabCodeDroit[trim($loc['CCODRO'])],
|
||||
'localDep'=>trim($loc['CCODEP']),
|
||||
'localCom'=>trim($loc['CCOCOM']),
|
||||
'localComLib'=>trim($loc['DLICOM']),
|
||||
'localComAbs'=>trim($loc['CCOPRF']),
|
||||
'localRivoli'=>trim($loc['CCORIV']),
|
||||
'localNumVoie'=>trim($loc['DNUVOI']),
|
||||
'localIndVoie'=>trim($loc['DLTNUV']),
|
||||
'localTypVoie'=>trim($loc['CNAVOI']),
|
||||
'localLibVoie'=>trim($loc['DLIVOI']),
|
||||
'localSection'=>trim($loc['CCOSEC']),
|
||||
'localNumPlan'=>trim($loc['DNUPLA']),
|
||||
'localNumBat'=>trim($loc['DNUBAT']),
|
||||
'localEntEsc'=>trim($loc['DESC']),
|
||||
'localNumPlan'=>trim($loc['DNIV']),
|
||||
'localNumBat'=>trim($loc['DPOR']),
|
||||
'localEntEsc'=>trim($loc['CCONLC']),
|
||||
'localPEV'=>array(),
|
||||
);
|
||||
$surface=0;
|
||||
for($j=0;$j<10;$j++) {
|
||||
$pevCode=trim($loc['CCOAFF'.$j]);
|
||||
$pevSurf=trim($loc['DSUPOD'.$j])*1;
|
||||
if ($pevCode<>'' && $pevSurf>0) {
|
||||
$tabLoc['localPEV'][$j]=array(
|
||||
'pevCode'=>$pevCode,
|
||||
'pevType'=>self::$tabCodePEV[$pevCode],
|
||||
'pevSurface'=>$pevSurf,
|
||||
);
|
||||
$surface=0;
|
||||
for($j=0;$j<10;$j++) {
|
||||
$pevCode=trim($loc['CCOAFF'.$j]);
|
||||
$pevSurf=trim($loc['DSUPOD'.$j])*1;
|
||||
if ($pevCode<>'' && $pevSurf>0) {
|
||||
$tabLoc['localPEV'][$j]=array( 'pevCode'=>$pevCode,
|
||||
'pevType'=>self::$tabCodePEV[$pevCode],
|
||||
'pevSurface'=>$pevSurf,
|
||||
);
|
||||
$surface+=$pevSurf;
|
||||
$surface+=$pevSurf;
|
||||
}
|
||||
}
|
||||
$tabLoc['localSurface']=$surface;
|
||||
$tabRet[]=$tabLoc;
|
||||
/**
|
||||
* CADBAT_NB_TOT nombre Cadastre nombre de postes BATIMENT du SIREN toutes addresses
|
||||
* CADTER_NB_TOT nombre Cadastre nombre de postes TERRAIN du SIREN toutes addresses
|
||||
* CADBAT_NB_PROP nombre Cadastre nombre de postes BATIMENT à l'adresse dont elle est propriétaire
|
||||
* CADTER_NB_PROP nombre Cadastre nombre de postes TERRAIN à l'adresse dont elle est propriétaire
|
||||
* CADBAT_NB_NONPROP nombre Cadastre nombre de postes BATIMENT à l'adresse dont elle n'est pas propriétaire
|
||||
* CADTER_NB_NONPROP nombre Cadastre nombre de postes TERRAINS à l'adresse dont elle n'est pas propriétaire
|
||||
* CADBAT_SURF_CUM nombre Cadastre Cumul Surfaces des batiments à l'addresse
|
||||
* CADBAT_SURF_TOT nombre Cadastre Surface totale des batiments du SIREN
|
||||
* CADTER_SURF_CUM nombre Cadastre Cumul Surfaces des terrains à l'addresse
|
||||
* CADTER_SURF_TOT nombre Cadastre Surface totale des terrains du SIREN
|
||||
*/
|
||||
}
|
||||
$tabLoc['localSurface']=$surface;
|
||||
$tabRet[]=$tabLoc;
|
||||
/*CADBAT_NB_TOT nombre Cadastre nombre de postes BATIMENT du SIREN toutes addresses
|
||||
CADTER_NB_TOT nombre Cadastre nombre de postes TERRAIN du SIREN toutes addresses
|
||||
CADBAT_NB_PROP nombre Cadastre nombre de postes BATIMENT à l'adresse dont elle est propriétaire
|
||||
CADTER_NB_PROP nombre Cadastre nombre de postes TERRAIN à l'adresse dont elle est propriétaire
|
||||
CADBAT_NB_NONPROP nombre Cadastre nombre de postes BATIMENT à l'adresse dont elle n'est pas propriétaire
|
||||
CADTER_NB_NONPROP nombre Cadastre nombre de postes TERRAINS à l'adresse dont elle n'est pas propriétaire
|
||||
CADBAT_SURF_CUM nombre Cadastre Cumul Surfaces des batiments à l'addresse
|
||||
CADBAT_SURF_TOT nombre Cadastre Surface totale des batiments du SIREN
|
||||
CADTER_SURF_CUM nombre Cadastre Cumul Surfaces des terrains à l'addresse
|
||||
CADTER_SURF_TOT nombre Cadastre Surface totale des terrains du SIREN
|
||||
*/
|
||||
}
|
||||
return $tabRet;
|
||||
}
|
||||
@ -205,10 +214,10 @@ CADTER_SURF_TOT nombre Cadastre Surface totale des terrains du SIREN
|
||||
function getParcelles($siren=false) {
|
||||
if (!$siren)
|
||||
$siren=$this->siren;
|
||||
|
||||
|
||||
$tabTmp=$this->iDb->select(
|
||||
'cad_perpar p, cad_permor e',
|
||||
'e.INTCIF, e.DNUPER, e.CCOGRM, e.DDENPM, e.DSIPMO, e.DFORME, e.FILLER, e.DSIREN, e.DLIGN3, e.DLIGN4, e.DLIGN5, e.DLIGN6, e.CCODEP, e.CCOCOM,
|
||||
'e.INTCIF, e.DNUPER, e.CCOGRM, e.DDENPM, e.DSIPMO, e.DFORME, e.FILLER, e.DSIREN, e.DLIGN3, e.DLIGN4, e.DLIGN5, e.DLIGN6, e.CCODEP, e.CCOCOM,
|
||||
p.CCODRO, p.CCOCOM, p.CCOPRF, p.CCOSEC, p.DNUPLA, p.DCNPAR, p.DSGRPF0, p.DCNSUF0, p.DSGRPF1, p.DCNSUF1, p.DSGRPF2, p.DCNSUF2, p.DSGRPF3, p.DCNSUF3, p.DSGRPF4, p.DCNSUF4, p.DSGRPF5, p.DCNSUF5, p.DSGRPF6, p.DCNSUF6, p.DSGRPF7, p.DCNSUF7, p.DSGRPF8, p.DCNSUF8, p.DSGRPF9, p.DCNSUF9, p.CCODEP, p.DLICOM, p.CCORIV, p.CNAVOI, p.DLIVOI, p.DNUVOI, p.DLTNUV',
|
||||
"e.DSIREN=$siren AND e.INTCIF=p.INTCIF AND e.DNUPER=p.DNUPER", false, MYSQL_ASSOC);
|
||||
$tabRet=array();
|
||||
@ -234,7 +243,7 @@ CADTER_SURF_TOT nombre Cadastre Surface totale des terrains du SIREN
|
||||
'parcelComLib'=>trim($loc['DLICOM']),
|
||||
'parcelComAbs'=>trim($loc['CCOPRF']),
|
||||
'parcelRivoli'=>trim($loc['CCORIV']),
|
||||
'parcellNumVoie'=>trim($loc['DNUVOI']),
|
||||
'parcellNumVoie'=>trim($loc['DNUVOI']),
|
||||
'parcelIndVoie'=>trim($loc['DLTNUV']),
|
||||
'parcelTypVoie'=>trim($loc['CNAVOI']),
|
||||
'parcelLibVoie'=>trim($loc['DLIVOI']),
|
||||
@ -260,7 +269,7 @@ CADTER_SURF_TOT nombre Cadastre Surface totale des terrains du SIREN
|
||||
}
|
||||
return $tabRet;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -311,7 +311,8 @@ class MFacto {
|
||||
AND ABS(DATEDIFF(dateAjout, NOW()))<365
|
||||
ORDER BY dateConf DESC, dateAjout DESC", false, MYSQL_ASSOC);
|
||||
foreach ($ret as $i=>$tabCS) {
|
||||
$dateMAJ=WDate::dateT('Y-m-d', 'M Y', $tabCS['dateAjout']);
|
||||
$classWDate = new WDate();
|
||||
$dateMAJ = $classWDate->dateT('Y-m-d', 'M Y', $tabCS['dateAjout']);
|
||||
$libProfil="En date du $dateMAJ : Contentieux importants.";
|
||||
$this->risqueImpaye=true;
|
||||
$this->risqueImpayeMois=WDate::dateT('Y-m', 'Ym', $tabCS['dateAjout']);
|
||||
|
@ -1,39 +1,40 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
class MRncs {
|
||||
|
||||
public $tabFctDir=array( 100 =>array('codeSd'=>'1300', 'lib'=>'Président'),
|
||||
110 =>array('codeSd'=>'1306', 'lib'=>'Président du conseil d\'administration'),
|
||||
120 =>array('codeSd'=>'1301', 'lib'=>'Président directeur Général'),
|
||||
140 =>array('codeSd'=>'1650', 'lib'=>'Gouverneur'),
|
||||
150 =>array('codeSd'=>'1651', 'lib'=>'Sous-gouverneur'),
|
||||
200 =>array('codeSd'=>'0900', 'lib'=>'Gérant'),
|
||||
210 =>array('codeSd'=>'0912', 'lib'=>'Gérant non associé'),
|
||||
300 =>array('codeSd'=>'0400', 'lib'=>'Co-gérant'),
|
||||
400 =>array('codeSd'=>'0709', 'lib'=>'Directeur général'),
|
||||
410 =>array('codeSd'=>'0713', 'lib'=>'Directeur général non administrateur'),
|
||||
420 =>array('codeSd'=>'0708', 'lib'=>'Directeur général unique'),
|
||||
430 =>array('codeSd'=>'0704', 'lib'=>'Directeur général délégué'),
|
||||
500 =>array('codeSd'=>'1800', 'lib'=>'Vice-président'),
|
||||
600 =>array('codeSd'=>'0100', 'lib'=>'Administrateur'),
|
||||
610 =>array('codeSd'=>'0101', 'lib'=>'Administrateur délégué'),
|
||||
700 =>array('codeSd'=>'1308', 'lib'=>'Président du directoire'),
|
||||
900 =>array('codeSd'=>'1307', 'lib'=>'Président du conseil de surveillance'),
|
||||
1200=>array('codeSd'=>'0209', 'lib'=>'Associé-gérant'),
|
||||
1300=>array('codeSd'=>'0603', 'lib'=>'Contrôleur de gestion'),
|
||||
4000=>array('codeSd'=>'A', 'lib'=>'Administrateur judiciaire'),
|
||||
4100=>array('codeSd'=>'1900', 'lib'=>'Liquidateur'),
|
||||
4300=>array('codeSd'=>'0108', 'lib'=>'Administrateur provisoire'),
|
||||
4400=>array('codeSd'=>'1401', 'lib'=>'Représentant en France d\'une société étrangère'),
|
||||
7000=>array('codeSd'=>'U', 'lib'=>'Curateur'),
|
||||
7100=>array('codeSd'=>'C', 'lib'=>'Commissaire au plan'),
|
||||
7200=>array('codeSd'=>'S', 'lib'=>'Syndic'),
|
||||
7300=>array('codeSd'=>'D', 'lib'=>'Commissaire au concordat'),
|
||||
7500=>array('codeSd'=>'R', 'lib'=>'Représentant des créanciers'),
|
||||
7600=>array('codeSd'=>'M', 'lib'=>'Mandataire judiciaire'),
|
||||
7800=>array('codeSd'=>'M', 'lib'=>'Mandataire judiciaire'),
|
||||
9100=>array('codeSd'=>'T', 'lib'=>'Conciliateur'),
|
||||
);
|
||||
class MRncs
|
||||
{
|
||||
public $tabFctDir=array(
|
||||
100 =>array('codeSd'=>'1300', 'lib'=>'Président'),
|
||||
110 =>array('codeSd'=>'1306', 'lib'=>'Président du conseil d\'administration'),
|
||||
120 =>array('codeSd'=>'1301', 'lib'=>'Président directeur Général'),
|
||||
140 =>array('codeSd'=>'1650', 'lib'=>'Gouverneur'),
|
||||
150 =>array('codeSd'=>'1651', 'lib'=>'Sous-gouverneur'),
|
||||
200 =>array('codeSd'=>'0900', 'lib'=>'Gérant'),
|
||||
210 =>array('codeSd'=>'0912', 'lib'=>'Gérant non associé'),
|
||||
300 =>array('codeSd'=>'0400', 'lib'=>'Co-gérant'),
|
||||
400 =>array('codeSd'=>'0709', 'lib'=>'Directeur général'),
|
||||
410 =>array('codeSd'=>'0713', 'lib'=>'Directeur général non administrateur'),
|
||||
420 =>array('codeSd'=>'0708', 'lib'=>'Directeur général unique'),
|
||||
430 =>array('codeSd'=>'0704', 'lib'=>'Directeur général délégué'),
|
||||
500 =>array('codeSd'=>'1800', 'lib'=>'Vice-président'),
|
||||
600 =>array('codeSd'=>'0100', 'lib'=>'Administrateur'),
|
||||
610 =>array('codeSd'=>'0101', 'lib'=>'Administrateur délégué'),
|
||||
700 =>array('codeSd'=>'1308', 'lib'=>'Président du directoire'),
|
||||
900 =>array('codeSd'=>'1307', 'lib'=>'Président du conseil de surveillance'),
|
||||
1200=>array('codeSd'=>'0209', 'lib'=>'Associé-gérant'),
|
||||
1300=>array('codeSd'=>'0603', 'lib'=>'Contrôleur de gestion'),
|
||||
4000=>array('codeSd'=>'A', 'lib'=>'Administrateur judiciaire'),
|
||||
4100=>array('codeSd'=>'1900', 'lib'=>'Liquidateur'),
|
||||
4300=>array('codeSd'=>'0108', 'lib'=>'Administrateur provisoire'),
|
||||
4400=>array('codeSd'=>'1401', 'lib'=>'Représentant en France d\'une société étrangère'),
|
||||
7000=>array('codeSd'=>'U', 'lib'=>'Curateur'),
|
||||
7100=>array('codeSd'=>'C', 'lib'=>'Commissaire au plan'),
|
||||
7200=>array('codeSd'=>'S', 'lib'=>'Syndic'),
|
||||
7300=>array('codeSd'=>'D', 'lib'=>'Commissaire au concordat'),
|
||||
7500=>array('codeSd'=>'R', 'lib'=>'Représentant des créanciers'),
|
||||
7600=>array('codeSd'=>'M', 'lib'=>'Mandataire judiciaire'),
|
||||
7800=>array('codeSd'=>'M', 'lib'=>'Mandataire judiciaire'),
|
||||
9100=>array('codeSd'=>'T', 'lib'=>'Conciliateur'),
|
||||
);
|
||||
|
||||
public $tabDevises=array();
|
||||
public $tabPays=array();
|
||||
@ -51,7 +52,8 @@ class MRncs {
|
||||
public $infoIMR=array();
|
||||
public $maxDemJour=10;
|
||||
|
||||
function __construct() {
|
||||
function __construct()
|
||||
{
|
||||
$this->iDb=new WDB();
|
||||
$this->tabDevises=$this->getTabDevisesInpi();
|
||||
$this->tabPays=$this->getTabPaysInpi();
|
||||
@ -70,14 +72,22 @@ class MRncs {
|
||||
return $this->tabFctDir[$codeFonctionDirectionRncs]['codeSd'];
|
||||
}
|
||||
|
||||
/** Initialisation du tableau privé des devises Inpi <=> ISO **/
|
||||
private function getTabDevisesInpi() {
|
||||
$rep=$this->iDb->select('tabDevises', 'devInpi, devIso', 'devInpi>0', false, MYSQL_ASSOC);
|
||||
$tabDevises=array();
|
||||
foreach($rep as $k=>$dev)
|
||||
$tabDevises[$dev['devInpi']*1]=$dev['devIso'];
|
||||
/**
|
||||
* Initialisation du tableau privé des devises Inpi <=> ISO
|
||||
* @return array
|
||||
*/
|
||||
private function getTabDevisesInpi()
|
||||
{
|
||||
if ( file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'CacheDevisesInpi.php') ) {
|
||||
return include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'CacheDevisesInpi.php';
|
||||
} else {
|
||||
$rep=$this->iDb->select('tabDevises', 'devInpi, devIso', 'devInpi>0', false, MYSQL_ASSOC);
|
||||
$tabDevises=array();
|
||||
foreach($rep as $k=>$dev)
|
||||
$tabDevises[$dev['devInpi']*1]=$dev['devIso'];
|
||||
|
||||
return $tabDevises;
|
||||
return $tabDevises;
|
||||
}
|
||||
}
|
||||
|
||||
/** Récupération du code ISO de la devise numérique de l'Inpi
|
||||
@ -92,13 +102,22 @@ class MRncs {
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getTabJugements() {
|
||||
$rep=$this->iDb->select('tabJugeRncs', 'codJugement, codEven', '1', false, MYSQL_ASSOC);
|
||||
$tabJug=array();
|
||||
foreach($rep as $k=>$dev)
|
||||
$tabJug[$dev['codJugement']*1]=$dev['codEven'];
|
||||
/**
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getTabJugements()
|
||||
{
|
||||
if ( file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'CacheJugements.php') ) {
|
||||
return include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'CacheJugements.php';
|
||||
} else {
|
||||
$rep=$this->iDb->select('tabJugeRncs', 'codJugement, codEven', '1', false, MYSQL_ASSOC);
|
||||
$tabJug=array();
|
||||
foreach($rep as $k=>$dev)
|
||||
$tabJug[$dev['codJugement']*1]=$dev['codEven'];
|
||||
|
||||
return $tabJug;
|
||||
return $tabJug;
|
||||
}
|
||||
}
|
||||
|
||||
public function getCodeEvenJugementInpi($codJugementInpi) {
|
||||
@ -108,14 +127,22 @@ class MRncs {
|
||||
return $codJugementInpi;
|
||||
}
|
||||
|
||||
/** Initialisation du tableau privé des pays Inpi <=> ISO **/
|
||||
private function getTabPaysInpi() {
|
||||
$rep=$this->iDb->select('tabPays', 'codePaysInpi, codPays', 'codePaysInpi>0', false, MYSQL_ASSOC);
|
||||
$tabPays=array();
|
||||
foreach($rep as $k=>$dev)
|
||||
$tabPays[$dev['codePaysInpi']*1]=$dev['codPays'];
|
||||
/**
|
||||
* Initialisation du tableau privé des pays Inpi <=> ISO
|
||||
* @return array
|
||||
*/
|
||||
private function getTabPaysInpi()
|
||||
{
|
||||
if ( file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'CachePaysInpi.php') ) {
|
||||
return include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'CachePaysInpi.php';
|
||||
} else {
|
||||
$rep=$this->iDb->select('tabPays', 'codePaysInpi, codPays', 'codePaysInpi>0', false, MYSQL_ASSOC);
|
||||
$tabPays=array();
|
||||
foreach($rep as $k=>$dev)
|
||||
$tabPays[$dev['codePaysInpi']*1]=$dev['codPays'];
|
||||
|
||||
return $tabPays;
|
||||
return $tabPays;
|
||||
}
|
||||
}
|
||||
|
||||
/** Tableau des mandataires suceptibles d'être tranmis par l'INPI
|
||||
@ -250,28 +277,48 @@ class MRncs {
|
||||
return '';
|
||||
}
|
||||
|
||||
/** Initialisation du tableau privé des codes tribunaux Greffes/Inpi avec le libellé Bodacc **/
|
||||
private function getTabTribunaux() {
|
||||
$rep=$this->iDb->select('tribunaux', 'triNumGreffe, triNom, triId, triCode', 'triNumGreffe IS NOT NULL', false, MYSQL_ASSOC);
|
||||
$tabTribunaux=array();
|
||||
foreach($rep as $k=>$dev) {
|
||||
$tabTribunaux[$dev['triNumGreffe']*1]['Id']=$dev['triId'];
|
||||
$tabTribunaux[$dev['triNumGreffe']*1]['Nom']=$dev['triNom'];
|
||||
$tabTribunaux[$dev['triNumGreffe']*1]['Code']=$dev['triCode'];
|
||||
/**
|
||||
* Initialisation du tableau privé des codes tribunaux Greffes/Inpi avec le libellé Bodacc
|
||||
* @return array
|
||||
*/
|
||||
private function getTabTribunaux()
|
||||
{
|
||||
if ( file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'CacheTribunaux.php') ) {
|
||||
return include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'CacheTribunaux.php';
|
||||
} else {
|
||||
$rep=$this->iDb->select('tribunaux', 'triNumGreffe, triNom, triId, triCode', 'triNumGreffe IS NOT NULL', false, MYSQL_ASSOC);
|
||||
$tabTribunaux=array();
|
||||
foreach($rep as $k=>$dev) {
|
||||
$tabTribunaux[$dev['triNumGreffe']*1]['Id']=$dev['triId'];
|
||||
$tabTribunaux[$dev['triNumGreffe']*1]['Nom']=$dev['triNom'];
|
||||
$tabTribunaux[$dev['triNumGreffe']*1]['Code']=$dev['triCode'];
|
||||
}
|
||||
return $tabTribunaux;
|
||||
}
|
||||
return $tabTribunaux;
|
||||
}
|
||||
|
||||
private function getLibelleFJ($code_forme_juridique) {
|
||||
/**
|
||||
* Libellé des FJ
|
||||
* @param unknown $code_forme_juridique
|
||||
* @return string
|
||||
*/
|
||||
private function getLibelleFJ($code_forme_juridique)
|
||||
{
|
||||
$fj=$code_forme_juridique*1;
|
||||
if ($fj>0 && $fj<10000) {
|
||||
$tmp=$this->iDb->select( 'tabFJur', 'libelle AS LibFJ', "code=$fj");
|
||||
$tmp=$this->iDb->select('tabFJur', 'libelle AS LibFJ', "code=$fj");
|
||||
return @$tmp[0][0];
|
||||
} else
|
||||
return 'En instance de chiffrement';
|
||||
}
|
||||
|
||||
private function getLibelleNaf($codeNaf) {
|
||||
/**
|
||||
* Libellé des NAF
|
||||
* @param unknown $codeNaf
|
||||
* @return Ambigous <>
|
||||
*/
|
||||
private function getLibelleNaf($codeNaf)
|
||||
{
|
||||
$ret=$this->iDb->query("SELECT libNaf700 AS LibNaf FROM tabNaf4 WHERE codNaf700='$codeNaf' UNION
|
||||
SELECT libNaf5 AS LibNaf FROM tabNaf5 WHERE codNaf5='$codeNaf'");
|
||||
$res=$this->iDb->fetch(MYSQL_ASSOC);
|
||||
@ -320,7 +367,8 @@ class MRncs {
|
||||
* @param integer $nic Nic de l'établissement. Si absent, renvoi les informations du siège actif ou du dernier siège actif
|
||||
* @return array
|
||||
*/
|
||||
public function getIdentiteEtab($siren, $nic=0) {
|
||||
public function getIdentiteEtab($siren, $nic=0)
|
||||
{
|
||||
$siren=$siren*1;
|
||||
$nic=$nic*1;
|
||||
if ($nic>0) $strSql=" AND nic=$nic";
|
||||
@ -364,8 +412,13 @@ class MRncs {
|
||||
return array_merge($tabIdentite, $this->getInfosEntrep($siren));
|
||||
}
|
||||
|
||||
|
||||
public function getInfosEntrep($siren) {
|
||||
/**
|
||||
*
|
||||
* @param unknown $siren
|
||||
* @return multitype:number unknown mixed string Ambigous Ambigous <>
|
||||
*/
|
||||
public function getInfosEntrep($siren)
|
||||
{
|
||||
$siren=$siren*1;
|
||||
$rep=$this->iDb->select('rncs_entrep', 'siren, sirenValide, actif, numGreffe, triCode, triId, numRC, numRC2, raisonSociale, nom, prenom, nomUsage, sigle, dateNaiss, lieuNaiss, sexe, nationalite, pays, naf, cj, capitalMontant, capitalDevise, capitalDevIso, dateImma, dateRad, capitalType, capitalCent, provisoires, flux, DATE(dateUpdate) AS jourUpdate', "siren=$siren", false, MYSQL_ASSOC);
|
||||
$entrep=$rep[0];
|
||||
@ -373,36 +426,37 @@ class MRncs {
|
||||
if ($entrep['jourUpdate']<>'0000-00-00') $dateMaj=$entrep['jourUpdate'];
|
||||
else $dateMaj=$entrep['flux'];
|
||||
|
||||
$tabIdentite=array( 'siren' => $entrep['siren'],
|
||||
'sirenValide' => $entrep['sirenValide'],
|
||||
'actif' => $entrep['actif'],
|
||||
'actifEn' => $entrep['actif'],
|
||||
'numGreffe' => $entrep['numGreffe'],
|
||||
'triCode' => $entrep['triCode'],
|
||||
'triId' => $entrep['triId'],
|
||||
'libGreffe' => preg_replace('/^(TC |TGI |TGIcc |TMX |Tribunal Inconnu)/Ui','', $this->getLibTribunal($entrep['numGreffe']*1)),
|
||||
'numRC' => $entrep['numRC2'],
|
||||
'raisonSociale' => strtoupper($entrep['raisonSociale']),
|
||||
'nom' => strtoupper($entrep['nom']),
|
||||
'prenom' => strtoupper($entrep['prenom']),
|
||||
'nomUsage' => strtoupper($entrep['nomUsage']),
|
||||
'sigle' => strtoupper($entrep['sigle']),
|
||||
'dateNaiss' => $entrep['dateNaiss'],
|
||||
'lieuNaiss' => strtoupper($entrep['lieuNaiss']),
|
||||
'sexe' => $entrep['sexe'],
|
||||
'pays' => $entrep['pays'],
|
||||
'cj' => $entrep['cj'],
|
||||
'cjLib' => $this->getLibelleFJ($entrep['cj']),
|
||||
'nafEnt' => $entrep['naf'],
|
||||
'nafEntLib' => $this->getLibelleNaf($entrep['naf']),
|
||||
'capital' => $entrep['capitalMontant']+($entrep['capitalCent']/100),
|
||||
'capitalDev' => $entrep['capitalDevIso'],
|
||||
'capitalType' => $entrep['capitalType'],
|
||||
'dateImma' => $entrep['dateImma'],
|
||||
'dateRad' => $entrep['dateRad'],
|
||||
'provisoires' => $entrep['provisoires'],
|
||||
'dateMajEnt' => $dateMaj,
|
||||
);
|
||||
$tabIdentite=array(
|
||||
'siren' => $entrep['siren'],
|
||||
'sirenValide' => $entrep['sirenValide'],
|
||||
'actif' => $entrep['actif'],
|
||||
'actifEn' => $entrep['actif'],
|
||||
'numGreffe' => $entrep['numGreffe'],
|
||||
'triCode' => $entrep['triCode'],
|
||||
'triId' => $entrep['triId'],
|
||||
'libGreffe' => preg_replace('/^(TC |TGI |TGIcc |TMX |Tribunal Inconnu)/Ui','', $this->getLibTribunal($entrep['numGreffe']*1)),
|
||||
'numRC' => $entrep['numRC2'],
|
||||
'raisonSociale' => strtoupper($entrep['raisonSociale']),
|
||||
'nom' => strtoupper($entrep['nom']),
|
||||
'prenom' => strtoupper($entrep['prenom']),
|
||||
'nomUsage' => strtoupper($entrep['nomUsage']),
|
||||
'sigle' => strtoupper($entrep['sigle']),
|
||||
'dateNaiss' => $entrep['dateNaiss'],
|
||||
'lieuNaiss' => strtoupper($entrep['lieuNaiss']),
|
||||
'sexe' => $entrep['sexe'],
|
||||
'pays' => $entrep['pays'],
|
||||
'cj' => $entrep['cj'],
|
||||
'cjLib' => $this->getLibelleFJ($entrep['cj']),
|
||||
'nafEnt' => $entrep['naf'],
|
||||
'nafEntLib' => $this->getLibelleNaf($entrep['naf']),
|
||||
'capital' => $entrep['capitalMontant']+($entrep['capitalCent']/100),
|
||||
'capitalDev' => $entrep['capitalDevIso'],
|
||||
'capitalType' => $entrep['capitalType'],
|
||||
'dateImma' => $entrep['dateImma'],
|
||||
'dateRad' => $entrep['dateRad'],
|
||||
'provisoires' => $entrep['provisoires'],
|
||||
'dateMajEnt' => $dateMaj,
|
||||
);
|
||||
|
||||
return $tabIdentite;
|
||||
}
|
||||
@ -426,20 +480,28 @@ class MRncs {
|
||||
$where, false, MYSQL_ASSOC);
|
||||
|
||||
$tabDepots=array();
|
||||
foreach ($rep as $iDepot=>$depot) {
|
||||
$tabDepots[]=array(
|
||||
'codDepot' => $depot['codeEven'],
|
||||
'libDepot' => $depot['libEven'],
|
||||
'datDepot' => $depot['dateDepot'],
|
||||
'refDepot' => $depot['codeInterne'],
|
||||
'datRncs' => $depot['flux'],
|
||||
'datSed' => $depot['dateInsert'],
|
||||
);
|
||||
if (count($rep)>0) {
|
||||
foreach ($rep as $iDepot=>$depot) {
|
||||
$tabDepots[] = array(
|
||||
'codDepot' => $depot['codeEven'],
|
||||
'libDepot' => $depot['libEven'],
|
||||
'datDepot' => $depot['dateDepot'],
|
||||
'refDepot' => $depot['codeInterne'],
|
||||
'datRncs' => $depot['flux'],
|
||||
'datSed' => $depot['dateInsert'],
|
||||
);
|
||||
}
|
||||
}
|
||||
return $tabDepots;
|
||||
}
|
||||
|
||||
public function getListeJugements($siren) {
|
||||
/**
|
||||
*
|
||||
* @param unknown $siren
|
||||
* @return multitype:multitype:NULL unknown Ambigous <multitype:>
|
||||
*/
|
||||
public function getListeJugements($siren)
|
||||
{
|
||||
$siren=$siren*1;
|
||||
$rep=$this->iDb->select('rncs_jugements j, tabJugeRncs l, tabEvenements e',
|
||||
'siren, j.dateEffet, j.codeJugement, j.flux, l.libJugement, e.codEven, e.libEven,
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,7 @@ class MSolvabilite {
|
||||
private $capital;
|
||||
private $anneeCrea;
|
||||
private $singularite;
|
||||
|
||||
|
||||
private $tabPtNaf=array('000Z'=>5,
|
||||
'0099'=>5,
|
||||
'011A'=>6,
|
||||
@ -937,8 +937,8 @@ class MSolvabilite {
|
||||
'974'=>6,
|
||||
'975'=>6,
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
private $tabPtFJ=array( '10'=>11, // PP
|
||||
'11'=>9, // Artisan Commerçant
|
||||
'12'=>9, // Commerçant
|
||||
@ -1017,9 +1017,24 @@ class MSolvabilite {
|
||||
13=>13,
|
||||
14=>14,
|
||||
);
|
||||
|
||||
function __construct($siren, $naf='', $trancheEff='', $effectifReel='', $depSiege_CodePosSiege='', $fj='', $capital='', $capitalDev='', $dateCreaEn='', $dateCreaSiege='', $singularite='', $recme=0) {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param unknown $siren
|
||||
* @param string $naf
|
||||
* @param string $trancheEff
|
||||
* @param string $effectifReel
|
||||
* @param string $depSiege_CodePosSiege
|
||||
* @param string $fj
|
||||
* @param string $capital
|
||||
* @param string $capitalDev
|
||||
* @param string $dateCreaEn
|
||||
* @param string $dateCreaSiege
|
||||
* @param string $singularite
|
||||
* @param number $recme
|
||||
* @return boolean
|
||||
*/
|
||||
public function __construct($siren, $naf='', $trancheEff='', $effectifReel='', $depSiege_CodePosSiege='', $fj='', $capital='', $capitalDev='', $dateCreaEn='', $dateCreaSiege='', $singularite='', $recme=0)
|
||||
{
|
||||
$this->naf=$naf;
|
||||
$this->trEff=$trancheEff;
|
||||
if($this->trEff=='NN' || $this->trEff=='00' || ($this->trEff*1)==0) {
|
||||
@ -1040,9 +1055,9 @@ class MSolvabilite {
|
||||
elseif ($effectif<=9999) $this->trEff='52';
|
||||
else $this->trEff='53';
|
||||
}
|
||||
|
||||
|
||||
$cp=$depSiege_CodePosSiege*1;
|
||||
|
||||
|
||||
if ($cp>0 && $cp<96) { $dep=$cp; $cp=false; }
|
||||
elseif ($cp>970 && $cp<977) { $dep=$cp; $cp=false; }
|
||||
elseif ($cp>999 && $cp<10000) { $dep='0'.substr($cp,0,1); $cp='0'.$cp; }
|
||||
@ -1051,21 +1066,25 @@ class MSolvabilite {
|
||||
elseif ($cp>=98000) $dep=substr($cp,0,3);
|
||||
elseif ($cp>=97100 && $cp<97700) $dep=substr($cp,0,3);
|
||||
$this->dep=$dep;
|
||||
|
||||
|
||||
$this->fj=$fj;
|
||||
$this->capital=$capital;
|
||||
|
||||
|
||||
if (substr($dateCreaEn,0,4)*1>0)
|
||||
$this->anneeCrea=substr($dateCreaEn,0,4);
|
||||
else
|
||||
$this->anneeCrea=substr($dateCreaSiege,0,4);
|
||||
|
||||
|
||||
$this->singularite=$singularite;
|
||||
$this->recme=$recme;
|
||||
return true;
|
||||
}
|
||||
|
||||
function getPtActivite() {
|
||||
|
||||
/**
|
||||
*
|
||||
* @return Ambigous <number, multitype:number >
|
||||
*/
|
||||
public function getPtActivite() {
|
||||
if (strlen($this->naf)==4)
|
||||
if (isset($this->tabPtNaf[$this->naf]))
|
||||
$nbPoints=$this->tabPtNaf[$this->naf];
|
||||
@ -1087,27 +1106,32 @@ class MSolvabilite {
|
||||
}
|
||||
else
|
||||
$nbPoints=5;
|
||||
|
||||
|
||||
return $nbPoints;
|
||||
}
|
||||
|
||||
function getNaf4($naf5='') {
|
||||
/**
|
||||
*
|
||||
* @param string $naf5
|
||||
* @return multitype:|Ambigous <string, string>
|
||||
*/
|
||||
public function getNaf4($naf5='') {
|
||||
if ($naf5=='')
|
||||
$naf5=$this->naf;
|
||||
|
||||
|
||||
if (strlen($naf5)==5) {
|
||||
$iCotation = new ICotation(array());
|
||||
return $iCotation->tabNaf21[$naf5];
|
||||
}
|
||||
return $naf5;
|
||||
}
|
||||
|
||||
|
||||
function getPtEffectif() {
|
||||
if (isset($this->tabPtTeff[$this->trEff]))
|
||||
return $this->tabPtTeff[$this->trEff];
|
||||
else return 3;
|
||||
}
|
||||
|
||||
|
||||
function getTrEff() {
|
||||
return $this->trEff;
|
||||
}
|
||||
@ -1117,14 +1141,14 @@ class MSolvabilite {
|
||||
//die ("Département ='".$this->dep."'");
|
||||
return $this->tabPtDep[$this->dep];
|
||||
}
|
||||
|
||||
|
||||
function getPtFormeJuridique() {
|
||||
if (isset($this->tabPtFJ[$this->fj]))
|
||||
return $this->tabPtFJ[$this->fj];
|
||||
else
|
||||
return $this->tabPtFJ[substr($this->fj,0,2)];
|
||||
}
|
||||
|
||||
|
||||
function getPtCapital() {
|
||||
$cj2=substr(''.$this->fj,0,2)*1;
|
||||
$pt=0;
|
||||
@ -1143,7 +1167,7 @@ class MSolvabilite {
|
||||
}
|
||||
return $pt;
|
||||
}
|
||||
|
||||
|
||||
function getPtAge($anneeCalcul=0) {
|
||||
if ($anneeCalcul==0)
|
||||
$anneeCalcul=date('Y');
|
||||
@ -1160,7 +1184,7 @@ class MSolvabilite {
|
||||
$pt=9; // Normalement ici l'age = 0
|
||||
return $pt;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getPtSingularite() {
|
||||
switch ($this->singularite*1) {
|
||||
@ -1172,18 +1196,18 @@ class MSolvabilite {
|
||||
return $pt;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getPtRecme() {
|
||||
if ($this->recme*1==1)
|
||||
return 20;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
function getSolvabilite($anneeCalcul=0) {
|
||||
return ( $this->getPtActivite() + $this->getPtAge($anneeCalcul) + $this->getPtCapital() + $this->getPtEffectif() +
|
||||
$this->getPtFormeJuridique() + $this->getPtGeographie() + $this->getPtSingularite() + $this->getPtRecme() ) / 4.2;//3.9;
|
||||
}
|
||||
|
||||
|
||||
/** Indique si une catégorie juridique et un NAF sont soumis à publication
|
||||
**
|
||||
** @param integer $cj Catégorie juridique sur 4 chiffres
|
||||
@ -1208,7 +1232,7 @@ class MSolvabilite {
|
||||
$publie=true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
switch ($naf) {
|
||||
case '651A': // Banque centrale
|
||||
case '6411Z':
|
||||
@ -1246,7 +1270,7 @@ class MSolvabilite {
|
||||
$publie=false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
return $publie;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user