Change class name
This commit is contained in:
parent
576304115e
commit
df6139014d
@ -2494,7 +2494,7 @@ class Metier_Insee_MInsee
|
||||
|
||||
// Si aucun résultat et siren est valide, on part chez Infogreffe
|
||||
if ($accesDist && count($listeEtab) == 0 && $this->valideSiren($siren) ) {
|
||||
$iGeffes = new MGreffes($this->iDb);
|
||||
$iGeffes = new Metier_Partenaires_MGreffes($this->iDb);
|
||||
$etabG = $iGeffes->getIdentite($siren);
|
||||
if ($etabG) {
|
||||
$adr = $this->structureVoie($etabG['Adresse']);
|
||||
@ -2651,7 +2651,7 @@ class Metier_Insee_MInsee
|
||||
}
|
||||
|
||||
// Géocodage de l'adresse
|
||||
$mMap = new MMap(false, $this->iDb);
|
||||
$mMap = new Metier_Partenaires_MMap(false, $this->iDb);
|
||||
$mMap->geoCodeAdresse($etab['adr_num'], '', $etab['adr_typeVoie'], $this->getCodeVoie($etab['adr_typeVoie']),
|
||||
$etab['adr_libVoie'], $etab['adr_cp'], $etab['adr_ville'], 'France',
|
||||
trim($tabInsee['ADR_DEP'].$tabInsee['ADR_COM'].$tabInsee['CODEVOIE']));
|
||||
@ -2669,7 +2669,7 @@ class Metier_Insee_MInsee
|
||||
$tdeb = microtime(1);
|
||||
}
|
||||
|
||||
$iAmabis = new MAmabis($this->iDb);
|
||||
$iAmabis = new Metier_Partenaires_MAmabis($this->iDb);
|
||||
$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);
|
||||
@ -2690,7 +2690,7 @@ class Metier_Insee_MInsee
|
||||
$tdeb = microtime(1);
|
||||
}
|
||||
|
||||
$iTva = new MTva($siren, $accesDist, $this->iDb);
|
||||
$iTva = new Metier_Partenaires_MTva($siren, $accesDist, $this->iDb);
|
||||
$vatNumber = $iTva->vatNumber;
|
||||
$vatDefined = $iTva->vatDefined;
|
||||
|
||||
@ -2720,7 +2720,7 @@ class Metier_Insee_MInsee
|
||||
$tdeb = microtime(1);
|
||||
}
|
||||
|
||||
$iTel = new MTel(false, $this->iDb);
|
||||
$iTel = new Metier_Partenaires_MTel(false, $this->iDb);
|
||||
$tmp = $iTel->getTel($siren, $nic, true, 1);
|
||||
|
||||
if($this->debugtime) {
|
||||
@ -3538,7 +3538,7 @@ class Metier_Insee_MInsee
|
||||
$tabRet['numGreffe'] = $etabG['NumGreffe'];
|
||||
$tabRet['numRC'] = $etabG['NumRC2'];
|
||||
$tabRet['Enseigne'] = $etabG['Enseigne'];
|
||||
$iRncs=new MRncs($this->iDb);
|
||||
$iRncs=new Metier_Partenaires_MRncs($this->iDb);
|
||||
$tabRet['Tribunal'] = $iRncs->getCodeBodaccTribunal($etabG['NumGreffe']);
|
||||
}
|
||||
|
||||
@ -3746,8 +3746,8 @@ class Metier_Insee_MInsee
|
||||
$tdeb=microtime(1);
|
||||
}
|
||||
|
||||
$iGeffes = new MGreffes($this->iDb);
|
||||
$iRncs = new MRncs($this->iDb);
|
||||
$iGeffes = new Metier_Partenaires_MGreffes($this->iDb);
|
||||
$iRncs = new Metier_Partenaires_MRncs($this->iDb);
|
||||
$etabG = $iGeffes->getIdentite($siren);
|
||||
|
||||
if($this->debugtime) {
|
||||
@ -3823,7 +3823,7 @@ class Metier_Insee_MInsee
|
||||
else $tabBilan[$tabTmp2[0]]=$tabTmp2[1];
|
||||
}
|
||||
if ( strtoupper($entrep['typeBilan'])=='S' ) {
|
||||
$mBil = new MBilans(0, $this->iDb);
|
||||
$mBil = new Metier_Partenaires_MBilans(0, $this->iDb);
|
||||
$tabTmp = $mBil->bilanSimplifie2Normal($tabBilan);
|
||||
$tabBilan = array_merge($tabTmp, $tabBilan);
|
||||
}
|
||||
@ -3889,7 +3889,7 @@ class Metier_Insee_MInsee
|
||||
}
|
||||
|
||||
// Recherche des infos boursières
|
||||
$iBourse = new MBourse($siren, $this->iDb);
|
||||
$iBourse = new Metier_Partenaires_MBourse($siren, $this->iDb);
|
||||
$bourse = $iBourse->getInfosBourse($siren);
|
||||
$tabRet['Bourse'] = array(
|
||||
'placeCotation' => $bourse['placeCotation'],
|
||||
@ -5873,7 +5873,7 @@ class Metier_Insee_MInsee
|
||||
}
|
||||
// --- En Procol mais présence d'une annonce de cloture ou LJ avec Bilan publié ultérieurement
|
||||
elseif ( ($evenFirst>=1300 && $evenFirst<=1313 && $evenFirst!=1310) || ($evenFirst>=1500 && $evenFirst<=1504)) {
|
||||
$mBil = new MBilans($siren, $this->iDb);
|
||||
$mBil = new Metier_Partenaires_MBilans($siren, $this->iDb);
|
||||
$tabBilans = $mBil->listeBilans($accesDist);
|
||||
$derExercice = 0;
|
||||
foreach ($tabBilans as $idx => $bilan) {
|
||||
@ -5892,7 +5892,7 @@ class Metier_Insee_MInsee
|
||||
elseif ($rubrique == 'D') {
|
||||
// Tableau ante-chronologique des dates de jugement ==> code jugement
|
||||
krsort($tabJugements);
|
||||
$mBil = new MBilans($siren, $this->iDb);
|
||||
$mBil = new Metier_Partenaires_MBilans($siren, $this->iDb);
|
||||
$tabBilans = $mBil->listeBilans(false, 3);
|
||||
$derExercice = 0;
|
||||
$derProcol = str_replace('-','',key($tabJugements))*1;
|
||||
|
@ -341,7 +341,7 @@ class Metier_Partenaires_MBilans
|
||||
$where, false, MYSQL_ASSOC);
|
||||
|
||||
if ($accesPartenaire) {
|
||||
$iGreffe = new MGreffes($this->iDb);
|
||||
$iGreffe = new Metier_Partenaires_MGreffes($this->iDb);
|
||||
$tabRet = $tabRet2 = $iGreffe->getListeBilans($this->siren);
|
||||
}
|
||||
|
||||
@ -441,7 +441,7 @@ class Metier_Partenaires_MBilans
|
||||
"siren='$this->siren' AND typeBilan='$typeBilan' AND dateExercice='$millesimeDB' $strSansBilansWeb", false, MYSQL_ASSOC);
|
||||
|
||||
if ( $accesPartenaire ) {
|
||||
$iGreffe = new MGreffes($this->iDb);
|
||||
$iGreffe = new Metier_Partenaires_MGreffes($this->iDb);
|
||||
if ( count($ret) == 0 ) {
|
||||
if ($refPart=='' || $refPart==0) {
|
||||
$tabTmp = $iGreffe->getListeBilans($this->siren);
|
||||
|
@ -85,7 +85,7 @@ class Metier_Partenaires_MPrivileges
|
||||
$where.= " ORDER BY i.dateFraiche DESC, i.insType ASC, i.insDate ASC;";
|
||||
$tables = "jo.greffes_privileges i";
|
||||
|
||||
$iRncs = new MRncs($this->iDb);
|
||||
$iRncs = new Metier_Partenaires_MRncs($this->iDb);
|
||||
$tabRet = array();
|
||||
$tabPriv = $this->iDb->select($tables, $fields, $where, true, MYSQL_ASSOC);
|
||||
foreach ($tabPriv as $i=>$priv) {
|
||||
@ -136,7 +136,7 @@ class Metier_Partenaires_MPrivileges
|
||||
|
||||
public function getPrivilegesCumul($siren, $tabTypes=array('03','04'))
|
||||
{
|
||||
$iRncs = new MRncs($this->iDb);
|
||||
$iRncs = new Metier_Partenaires_MRncs($this->iDb);
|
||||
$tabRet = array();
|
||||
$tabTmp = $this->getPrivilegesDetail($siren, $tabTypes);
|
||||
foreach($tabTmp as $i=>$priv) {
|
||||
|
@ -2132,7 +2132,7 @@ class Metier_Scores_ICotation
|
||||
}
|
||||
|
||||
function scoreAltman($enBourse=true) {
|
||||
$iBourse = new MBourse(@$this->tabBilan['SIREN'], $this->iDb);
|
||||
$iBourse = new Metier_Partenaires_MBourse(@$this->tabBilan['SIREN'], $this->iDb);
|
||||
$bourse = $iBourse->getInfosBourse(@$this->tabBilan['SIREN']);
|
||||
if (count($bourse)>0) $this->societeEnBourse=true;
|
||||
|
||||
|
@ -838,7 +838,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
/**
|
||||
* Différences INSEE/RNCS
|
||||
*/
|
||||
$iRncs = new MRncs($iDb);
|
||||
$iRncs = new Metier_Partenaires_MRncs($iDb);
|
||||
$tabIdentiteRncs=$iRncs->getInfosEntrep($siren);
|
||||
$ACTIFRNCS=$tabIdentiteRncs['actif'];
|
||||
$ACTIFINSEE=$tabIdentite['Actif'];
|
||||
@ -929,7 +929,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
|
||||
// --- Liste des bilans
|
||||
$tabBilan = $tabBil = $tabRegX = array();
|
||||
$mBil = new MBilans($siren, $iDb);
|
||||
$mBil = new Metier_Partenaires_MBilans($siren, $iDb);
|
||||
$tabBilans = $mBil->listeBilans($accesDist);
|
||||
$NBBILAN = count($tabBilans);
|
||||
if ($NBBILAN > 0) {
|
||||
@ -2003,7 +2003,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
else
|
||||
$TYPEMERE='PM';
|
||||
}
|
||||
$mBilA = new MBilans($lien->siren, $iDb);
|
||||
$mBilA = new Metier_Partenaires_MBilans($lien->siren, $iDb);
|
||||
$tabBilansA = $mBilA->listeBilans(false,2);
|
||||
$nbBilansA = count($tabBilansA);
|
||||
if ($nbBilansA > 0) {
|
||||
@ -2452,7 +2452,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$DEFAUT_MMAA=$LCASSUR_MMAA=$RISQUEIMPAYE_MMAA=$CSFACTO_MMAA='';
|
||||
$COTEOK=$IMPAYE=$PRIVILEGES=$RISQUEGROUPE=$DEFAUT=$LCASSUR=$RISQUEIMPAYE=$CSFACTO=false;
|
||||
$MODIFPAIDATE=0;
|
||||
$iFacto = new MFacto($iDb);
|
||||
$iFacto = new Metier_Partenaires_MFacto($iDb);
|
||||
$infoFacto = $iFacto->getCoteSpeciale($siren);
|
||||
$timer['factoCS']=microtime(true);
|
||||
|
||||
@ -2543,7 +2543,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
|
||||
// Présence de Privilèges
|
||||
$PRIVILEGESECU=$PRIVILEGESECU_MT=$PRIVILEGETRES=$PRIVILEGETRES_MT=0;
|
||||
$iPriv = new MPrivileges($iDb);
|
||||
$iPriv = new Metier_Partenaires_MPrivileges($iDb);
|
||||
$tabPriv = $iPriv->getPrivilegesCumul($siren);
|
||||
$noteSolvMax=100;
|
||||
if (isset($tabPriv['03']['nb'])) {
|
||||
@ -3145,7 +3145,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$timer['risquesBassins']=microtime(true);
|
||||
|
||||
/** INFOS Orias **/
|
||||
$iOrias = new MOrias(false, $iDb);
|
||||
$iOrias = new Metier_Partenaires_MOrias(false, $iDb);
|
||||
$tabTmp = $iOrias->getInfosOrias($SIREN);
|
||||
$ORIASID=$ORIASCAT=$ORIASID_DATE='';
|
||||
if (count($tabTmp)>0) {
|
||||
@ -3166,7 +3166,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$MARQUENB_EUR=0; // Nombre de marques déposées en EUROPE
|
||||
$MARQUENB_FR=0; // Nombre de marques déposées en FRANCE
|
||||
$tabMarques['WW']=$tabMarques['EU']=$tabMarques['FR']=array();
|
||||
$iMarque = new MMarques($iDb);
|
||||
$iMarque = new Metier_Partenaires_MMarques($iDb);
|
||||
$ret = $iMarque->getMarques($siren);
|
||||
if ($ret!==false && count($ret)>0) {
|
||||
foreach ($ret as $i=>$marque) {
|
||||
@ -3341,7 +3341,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$CADTER_SURF_CUM=0; // Cumul Surfaces des terrains à l'addresse
|
||||
*/
|
||||
// Locaux
|
||||
$iCadastre = new MCadastre($iDb);
|
||||
$iCadastre = new Metier_Partenaires_MCadastre($iDb);
|
||||
$tabTmp=$iCadastre->getLocaux($siren);
|
||||
if(count($tabTmp)>0 ) {
|
||||
foreach ($tabTmp as $iTmp=>$cad) {
|
||||
|
Loading…
Reference in New Issue
Block a user