2009-12-04 17:17:09 +00:00
|
|
|
<?php
|
2010-04-27 10:02:54 +00:00
|
|
|
//Traitement des paramètres
|
|
|
|
if (!page_checkParams()) die('Paramètres incorrects !');
|
2009-12-04 17:17:09 +00:00
|
|
|
if ($_SESSION['tabInfo']['idClient']==34){ $_SESSION['nowAuthorized']=TRUE; }
|
|
|
|
|
|
|
|
require_once 'utils.php';
|
|
|
|
require_once 'common/dates.php';
|
|
|
|
require_once 'cache/cache.php';
|
|
|
|
require_once 'logos/logos.php';
|
|
|
|
require_once 'scoresws/scoresws.php';
|
|
|
|
require_once 'scoresws/identite.php';
|
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Récupération des infos du webservice
|
2009-12-04 17:17:09 +00:00
|
|
|
$etab = scoresws_identite($siret, $siren, $idEntreprise);
|
|
|
|
$firephp->log($etab, 'etab');
|
|
|
|
|
|
|
|
//Enregistrement des elements dans la session
|
|
|
|
$tabEntrep = array();
|
|
|
|
$tabEntrep['raisonSociale'] = $etab['Nom'];
|
2010-03-18 15:35:57 +00:00
|
|
|
$tabEntrep['id'] = $etab['id'];
|
2009-12-04 17:17:09 +00:00
|
|
|
$tabEntrep['siren'] = $etab['Siren'];
|
|
|
|
$tabEntrep['siret'] = $etab['Siret'];
|
|
|
|
$tabEntrep['tva'] = $etab['TvaNumero'];
|
2010-03-09 10:36:16 +00:00
|
|
|
if (isset($etab['Isin'])) {
|
|
|
|
$tabEntrep['isin'] = $etab['Isin'];
|
|
|
|
}
|
2009-12-04 17:17:09 +00:00
|
|
|
$tabEntrep['AutreId'] = $etab['AutreId'];
|
2010-03-25 13:44:32 +00:00
|
|
|
if (isset($etab['Statut'])) {
|
|
|
|
$tabEntrep['active'] = $etab['Statut'];
|
|
|
|
}
|
2009-12-04 17:17:09 +00:00
|
|
|
$tabEntrep['Source'] = $etab['Source'];
|
|
|
|
$tabEntrep['SourceId'] = $etab['SourceId'];
|
2010-03-25 13:44:32 +00:00
|
|
|
// Utilise pour les compétences territoriale
|
|
|
|
$tabEntrep['codeCommune'] = $etab['Dept'].$etab['codeCommune'];
|
2009-12-04 17:17:09 +00:00
|
|
|
$tabEntrep['nafEn'] = $etab['NafEnt'];
|
|
|
|
$tabEntrep['nafEnLib'] = $etab['NafEntLib'];
|
|
|
|
$tabEntrep['nafEt'] = $etab['NafEtab'];
|
|
|
|
$tabEntrep['nafEtLib'] = $etab['NafEtabLib'];
|
|
|
|
$tabEntrep['fj'] = $etab['FJ'];
|
2010-02-08 13:07:52 +00:00
|
|
|
$tabEntrep['Dept'] = $etab['Dept'];
|
2009-12-04 17:17:09 +00:00
|
|
|
|
|
|
|
$_SESSION['tabInfo']['entrep'] = $tabEntrep;
|