Simplification structure
This commit is contained in:
parent
89514cf074
commit
e2a783c44a
@ -1,6 +1,6 @@
|
|||||||
Type[] = "ErrorType"
|
Type[] = "ErrorType"
|
||||||
Type[] = "StatusReturn"
|
Type[] = "StatusReturn"
|
||||||
Type[] = "IdentiteReturn"
|
Type[] = "Identite"
|
||||||
Type[] = "GeoInfos"
|
Type[] = "GeoInfos"
|
||||||
Type[] = "IdentiteBilan"
|
Type[] = "IdentiteBilan"
|
||||||
Type[] = "IdentiteBourse"
|
Type[] = "IdentiteBourse"
|
||||||
@ -28,7 +28,6 @@ Type[] = "TribunauxReturn"
|
|||||||
Type[] = "Tribunal"
|
Type[] = "Tribunal"
|
||||||
Type[] = "InfosRegReturn"
|
Type[] = "InfosRegReturn"
|
||||||
Type[] = "InfosReg"
|
Type[] = "InfosReg"
|
||||||
Type[] = "InfosBourseReturn"
|
|
||||||
Type[] = "InfosBourse"
|
Type[] = "InfosBourse"
|
||||||
Type[] = "ListeBilansReturn"
|
Type[] = "ListeBilansReturn"
|
||||||
Type[] = "ListeBilans"
|
Type[] = "ListeBilans"
|
||||||
@ -38,21 +37,17 @@ Type[] = "SurveillancesFiltre"
|
|||||||
Type[] = "Surveillance"
|
Type[] = "Surveillance"
|
||||||
Type[] = "MandatairesReturn"
|
Type[] = "MandatairesReturn"
|
||||||
Type[] = "Mandataire"
|
Type[] = "Mandataire"
|
||||||
Type[] = "BilanReturn"
|
Type[] = "Bilan"
|
||||||
|
Type[] = "BilanPoste"
|
||||||
Type[] = "RechercheAnnonceReturn"
|
Type[] = "RechercheAnnonceReturn"
|
||||||
Type[] = "RechercheAnnonceResult"
|
Type[] = "RechercheAnnonceResult"
|
||||||
Type[] = "RechercheAnnonceCriteres"
|
Type[] = "RechercheAnnonceCriteres"
|
||||||
Type[] = "RechercheAnnonce"
|
Type[] = "RechercheAnnonce"
|
||||||
Type[] = "IndiscoreReturn"
|
|
||||||
Type[] = "Bilan"
|
|
||||||
Type[] = "BilanPoste"
|
|
||||||
Type[] = "RatiosReturn"
|
Type[] = "RatiosReturn"
|
||||||
Type[] = "RatiosResult"
|
|
||||||
Type[] = "RatiosBilansInfos"
|
Type[] = "RatiosBilansInfos"
|
||||||
Type[] = "RatiosInfos"
|
Type[] = "RatiosInfos"
|
||||||
Type[] = "RatiosSecteur"
|
Type[] = "RatiosSecteur"
|
||||||
Type[] = "Ratios"
|
Type[] = "Ratios"
|
||||||
Type[] = "RapportReturn"
|
|
||||||
Type[] = "Rapport"
|
Type[] = "Rapport"
|
||||||
Type[] = "Indiscore"
|
Type[] = "Indiscore"
|
||||||
Type[] = "Scores"
|
Type[] = "Scores"
|
||||||
|
@ -27,7 +27,7 @@ class Entreprise extends WsScore
|
|||||||
* Retourne les informations identitaires de l'entreprise ou de l'établissement demandé
|
* Retourne les informations identitaires de l'entreprise ou de l'établissement demandé
|
||||||
* @param string $siret Siren de l'entreprise ou siret de l'établissement
|
* @param string $siret Siren de l'entreprise ou siret de l'établissement
|
||||||
* @param int $id Identifiant interne
|
* @param int $id Identifiant interne
|
||||||
* @return IdentiteReturn
|
* @return Identite
|
||||||
*/
|
*/
|
||||||
public function getIdentite($siret, $id = 0)
|
public function getIdentite($siret, $id = 0)
|
||||||
{
|
{
|
||||||
@ -77,7 +77,7 @@ class Entreprise extends WsScore
|
|||||||
$iBourse = new MBourse($siren);
|
$iBourse = new MBourse($siren);
|
||||||
$bourse = $iBourse->getInfosBourse($siren);
|
$bourse = $iBourse->getInfosBourse($siren);
|
||||||
|
|
||||||
$identite = new IdentiteReturn();
|
$identite = new Identite();
|
||||||
$identite->id = $entrep['id'];
|
$identite->id = $entrep['id'];
|
||||||
$identite->Siret = $entrep['Siret'];
|
$identite->Siret = $entrep['Siret'];
|
||||||
$identite->SiretSiege = $entrep['SiretSiege'];
|
$identite->SiretSiege = $entrep['SiretSiege'];
|
||||||
@ -710,7 +710,7 @@ class Entreprise extends WsScore
|
|||||||
* @param string $siren Siren de l'entreprise
|
* @param string $siren Siren de l'entreprise
|
||||||
* @param string $nic
|
* @param string $nic
|
||||||
* @param int $niveau
|
* @param int $niveau
|
||||||
* @return IndiscoreReturn
|
* @return Indiscore
|
||||||
*/
|
*/
|
||||||
public function getIndiScore($siren, $nic=0, $niveau=2, $plus=false)
|
public function getIndiScore($siren, $nic=0, $niveau=2, $plus=false)
|
||||||
{
|
{
|
||||||
@ -761,7 +761,7 @@ class Entreprise extends WsScore
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Zend_Registry::get('WsLogger')->info("INDISCORE : ".print_r($tabRet,1));
|
//Zend_Registry::get('WsLogger')->info("INDISCORE : ".print_r($tabRet,1));
|
||||||
$result = new Indiscore();
|
$output = new Indiscore();
|
||||||
foreach($tabRet as $key => $value){
|
foreach($tabRet as $key => $value){
|
||||||
if ($key=='paiements'){
|
if ($key=='paiements'){
|
||||||
$parMont = $value['parMont'];
|
$parMont = $value['parMont'];
|
||||||
@ -819,9 +819,13 @@ class Entreprise extends WsScore
|
|||||||
$paiement = new IndiscorePaiement();
|
$paiement = new IndiscorePaiement();
|
||||||
$paiement->parMont = $tabMont;
|
$paiement->parMont = $tabMont;
|
||||||
$paiement->parTrim = $tabTrim;
|
$paiement->parTrim = $tabTrim;
|
||||||
$result->paiements = $paiement;
|
$output->paiements = $paiement;
|
||||||
} elseif ($key=='Bilans') {
|
} elseif ($key=='Bilans') {
|
||||||
|
|
||||||
|
|
||||||
|
// @todo : Liste des bilans
|
||||||
|
|
||||||
|
|
||||||
} elseif ($key=='Notes_Structure') {
|
} elseif ($key=='Notes_Structure') {
|
||||||
$notesStructure = new IndiscoreNotesStructure();
|
$notesStructure = new IndiscoreNotesStructure();
|
||||||
$notesStructure->activite = $value['activite'];
|
$notesStructure->activite = $value['activite'];
|
||||||
@ -832,7 +836,7 @@ class Entreprise extends WsScore
|
|||||||
$notesStructure->fj = $value['fj'];
|
$notesStructure->fj = $value['fj'];
|
||||||
$notesStructure->localite = $value['localite'];
|
$notesStructure->localite = $value['localite'];
|
||||||
$notesStructure->singulier = $value['singulier'];
|
$notesStructure->singulier = $value['singulier'];
|
||||||
$result->Notes_Structure = $notesStructure;
|
$output->Notes_Structure = $notesStructure;
|
||||||
} elseif ($key=='tabBilans') {
|
} elseif ($key=='tabBilans') {
|
||||||
$tabRet = array();
|
$tabRet = array();
|
||||||
foreach($value as $bilan)
|
foreach($value as $bilan)
|
||||||
@ -850,15 +854,17 @@ class Entreprise extends WsScore
|
|||||||
$element->source = $bilan['source'];
|
$element->source = $bilan['source'];
|
||||||
$tabRet[] = $element;
|
$tabRet[] = $element;
|
||||||
}
|
}
|
||||||
$result->tabBilans = $tabRet;
|
$output->tabBilans = $tabRet;
|
||||||
} elseif ($key=='tabBilan') {
|
} elseif ($key=='tabBilan') {
|
||||||
|
|
||||||
|
// @todo : Liste des détails des bilans
|
||||||
|
|
||||||
} elseif ($key=='tabInfosNotations') {
|
} elseif ($key=='tabInfosNotations') {
|
||||||
$infosNotation = new IndiscoreInfosNotations();
|
$infosNotation = new IndiscoreInfosNotations();
|
||||||
$infosNotation->SituationFinanciere = $value['SituationFinanciere'];
|
$infosNotation->SituationFinanciere = $value['SituationFinanciere'];
|
||||||
$infosNotation->Notation = $value['Notation'];
|
$infosNotation->Notation = $value['Notation'];
|
||||||
$infosNotation->ProbabiliteDefaut = $value['ProbabiliteDefaut'];
|
$infosNotation->ProbabiliteDefaut = $value['ProbabiliteDefaut'];
|
||||||
$result->tabInfosNotations = $infosNotation;
|
$output->tabInfosNotations = $infosNotation;
|
||||||
} elseif ($key=='tabImportExport') {
|
} elseif ($key=='tabImportExport') {
|
||||||
$tabRet = array();
|
$tabRet = array();
|
||||||
foreach($value as $element){
|
foreach($value as $element){
|
||||||
@ -869,13 +875,13 @@ class Entreprise extends WsScore
|
|||||||
$importExport->deptSiege = $element['deptSiege'];
|
$importExport->deptSiege = $element['deptSiege'];
|
||||||
$tabRet[] = $importExport;
|
$tabRet[] = $importExport;
|
||||||
}
|
}
|
||||||
$result->tabImportExport = $tabRet;
|
$output->tabImportExport = $tabRet;
|
||||||
} elseif ($key=='tabCommentaires') {
|
} elseif ($key=='tabCommentaires') {
|
||||||
$tab = array();
|
$tab = array();
|
||||||
foreach($value as $comment) {
|
foreach($value as $comment) {
|
||||||
$tab[] = $comment;
|
$tab[] = $comment;
|
||||||
}
|
}
|
||||||
$result->tabCommentaires = $tab;
|
$output->tabCommentaires = $tab;
|
||||||
} elseif ($key=='tabVariables') {
|
} elseif ($key=='tabVariables') {
|
||||||
$tab = $value['CA_Y'];
|
$tab = $value['CA_Y'];
|
||||||
$tabVar = array();
|
$tabVar = array();
|
||||||
@ -887,16 +893,14 @@ class Entreprise extends WsScore
|
|||||||
}
|
}
|
||||||
$variables = new IndiscoreVariables();
|
$variables = new IndiscoreVariables();
|
||||||
$variables->CA_Y = $tabVar;
|
$variables->CA_Y = $tabVar;
|
||||||
$result->tabVariables = $variables;
|
$output->tabVariables = $variables;
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$result->$key = $value;
|
$output->$key = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->wsLog('indiscore',$siren);
|
$this->wsLog('indiscore',$siren);
|
||||||
$output = new IndiscoreReturn();
|
|
||||||
$output->result = $result;
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1265,7 +1269,7 @@ class Entreprise extends WsScore
|
|||||||
/**
|
/**
|
||||||
* Retourne les informations boursières de l'entreprise
|
* Retourne les informations boursières de l'entreprise
|
||||||
* @param string $siren SIREN de l'entreprise
|
* @param string $siren SIREN de l'entreprise
|
||||||
* @return InfosBourseReturn
|
* @return InfosBourse
|
||||||
*/
|
*/
|
||||||
public function getInfosBourse($siren)
|
public function getInfosBourse($siren)
|
||||||
{
|
{
|
||||||
@ -1334,9 +1338,7 @@ class Entreprise extends WsScore
|
|||||||
$result->coursMax = $bourse['coursMax'];
|
$result->coursMax = $bourse['coursMax'];
|
||||||
|
|
||||||
$this->wsLog('bourse',$siren,$id);
|
$this->wsLog('bourse',$siren,$id);
|
||||||
$output = new InfosBourseReturn();
|
return $result;
|
||||||
$output->result = $result;
|
|
||||||
return $output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1695,7 +1697,7 @@ class Entreprise extends WsScore
|
|||||||
* @param string $millesime Date du bilan au format AAAAMMJJ
|
* @param string $millesime Date du bilan au format AAAAMMJJ
|
||||||
* @param string $typeBilan N:Réel Normal, S:Réel Simplifié, C:Consolidé
|
* @param string $typeBilan N:Réel Normal, S:Réel Simplifié, C:Consolidé
|
||||||
* @param string $ref Référence S&D obligatoire
|
* @param string $ref Référence S&D obligatoire
|
||||||
* @return BilanReturn
|
* @return Bilan
|
||||||
*/
|
*/
|
||||||
public function getBilan($siren, $millesime, $typeBilan='N', $ref='')
|
public function getBilan($siren, $millesime, $typeBilan='N', $ref='')
|
||||||
{
|
{
|
||||||
@ -1737,9 +1739,7 @@ class Entreprise extends WsScore
|
|||||||
}
|
}
|
||||||
$this->wsLog('bilan',$siren, $millesime.':'.$typeBilan.':'.$ref);
|
$this->wsLog('bilan',$siren, $millesime.':'.$typeBilan.':'.$ref);
|
||||||
$resultBilan->POSTES = $tabPoste;
|
$resultBilan->POSTES = $tabPoste;
|
||||||
$output = new BilanReturn();
|
return $resultBilan;
|
||||||
$output->result = $resultBilan;
|
|
||||||
return $output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2093,24 +2093,22 @@ class Entreprise extends WsScore
|
|||||||
}
|
}
|
||||||
//$tabRatiosSecteurs=array(count($tabTmp), "1 $strNaf AND annee IN ($strAnnees) ORDER BY annee DESC, id ASC");
|
//$tabRatiosSecteurs=array(count($tabTmp), "1 $strNaf AND annee IN ($strAnnees) ORDER BY annee DESC, id ASC");
|
||||||
|
|
||||||
$result = new RatiosResult();
|
$output = new RatiosReturn();
|
||||||
$result->Nom = $tabIdentite['Nom'];
|
$output->Nom = $tabIdentite['Nom'];
|
||||||
$result->NafEnt = $tabIdentite['NafEnt'];
|
$output->NafEnt = $tabIdentite['NafEnt'];
|
||||||
$result->NafEntLib = $tabIdentite['NafEntLib'];
|
$output->NafEntLib = $tabIdentite['NafEntLib'];
|
||||||
$result->FJ = $fj;
|
$output->FJ = $fj;
|
||||||
$result->FJ_lib = $tabIdentite['FJ_lib'];
|
$output->FJ_lib = $tabIdentite['FJ_lib'];
|
||||||
$result->Siren = $siren;
|
$output->Siren = $siren;
|
||||||
$result->NbEntNaf = $nbRatiosSec;
|
$output->NbEntNaf = $nbRatiosSec;
|
||||||
$result->BilansInfos = $tabBilansR;
|
$output->BilansInfos = $tabBilansR;
|
||||||
$result->RatiosInfos = $tabRatiosInfos;
|
$output->RatiosInfos = $tabRatiosInfos;
|
||||||
$result->RatiosSecteur = $tabRatiosSecteurs;
|
$output->RatiosSecteur = $tabRatiosSecteurs;
|
||||||
|
|
||||||
//Zend_Registry::get('WsLogger')->info(__FUNCTION__." : ".print_r($result,1));
|
//Zend_Registry::get('WsLogger')->info(__FUNCTION__." : ".print_r($result,1));
|
||||||
|
|
||||||
debugLog('I',"Liste des Ratios demandée pour $siren RETURN",__LINE__,__FILE__, __FUNCTION__, __CLASS__);
|
debugLog('I',"Liste des Ratios demandée pour $siren RETURN",__LINE__,__FILE__, __FUNCTION__, __CLASS__);
|
||||||
$this->wsLog($page, $siren);
|
$this->wsLog($page, $siren);
|
||||||
$output = new RatiosReturn();
|
|
||||||
$output->result = $result;
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2120,7 +2118,7 @@ class Entreprise extends WsScore
|
|||||||
* @param string $siren
|
* @param string $siren
|
||||||
* @param integer $niveau
|
* @param integer $niveau
|
||||||
* @param integer $id
|
* @param integer $id
|
||||||
* @return RapportReturn
|
* @return Rapport
|
||||||
*/
|
*/
|
||||||
public function getRapport($siren, $niveau=3, $id=0)
|
public function getRapport($siren, $niveau=3, $id=0)
|
||||||
{
|
{
|
||||||
@ -2146,9 +2144,7 @@ class Entreprise extends WsScore
|
|||||||
$result->Ratios = $this->getRatios($siren, $page="rapport$niveau");
|
$result->Ratios = $this->getRatios($siren, $page="rapport$niveau");
|
||||||
$result->Annonces = $this->getAnnonces($siren, $filtre, $idAnn);
|
$result->Annonces = $this->getAnnonces($siren, $filtre, $idAnn);
|
||||||
}
|
}
|
||||||
$output = new RapportReturn();
|
return $result;
|
||||||
$output->result = $result;
|
|
||||||
return $output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +13,7 @@ class ErrorType
|
|||||||
public $errmsg = '';
|
public $errmsg = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
class IdentiteReturn
|
class Identite
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Identifiant interne de l'établissement
|
* Identifiant interne de l'établissement
|
||||||
@ -1701,12 +1701,6 @@ class InfosReg
|
|||||||
public $dateInsertionSD;
|
public $dateInsertionSD;
|
||||||
}
|
}
|
||||||
|
|
||||||
class InfosBourseReturn
|
|
||||||
{
|
|
||||||
/** @var InfosBourse */
|
|
||||||
public $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
class InfosBourse
|
class InfosBourse
|
||||||
{
|
{
|
||||||
/** Siren de l'entreprise côtée
|
/** Siren de l'entreprise côtée
|
||||||
@ -2071,12 +2065,6 @@ class Mandataire
|
|||||||
public $mand;
|
public $mand;
|
||||||
}
|
}
|
||||||
|
|
||||||
class BilanReturn
|
|
||||||
{
|
|
||||||
/** @var Bilan */
|
|
||||||
public $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
class Bilan
|
class Bilan
|
||||||
{
|
{
|
||||||
/** Siren de l'entreprise
|
/** Siren de l'entreprise
|
||||||
@ -2238,12 +2226,6 @@ class RechercheAnnonce
|
|||||||
public $Annonce;
|
public $Annonce;
|
||||||
}
|
}
|
||||||
|
|
||||||
class IndiscoreReturn
|
|
||||||
{
|
|
||||||
/** @var Indiscore */
|
|
||||||
public $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
class Indiscore
|
class Indiscore
|
||||||
{
|
{
|
||||||
/** Identifiant de l'entreprise
|
/** Identifiant de l'entreprise
|
||||||
@ -2714,12 +2696,6 @@ class Scores
|
|||||||
}
|
}
|
||||||
|
|
||||||
class RatiosReturn
|
class RatiosReturn
|
||||||
{
|
|
||||||
/** @var RatiosResult */
|
|
||||||
public $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
class RatiosResult
|
|
||||||
{
|
{
|
||||||
/** Raison sociale de l'entreprise
|
/** Raison sociale de l'entreprise
|
||||||
* @var string
|
* @var string
|
||||||
@ -2826,15 +2802,9 @@ class RatiosSecteur
|
|||||||
public $liste;
|
public $liste;
|
||||||
}
|
}
|
||||||
|
|
||||||
class RapportReturn
|
|
||||||
{
|
|
||||||
/** @var Rapport */
|
|
||||||
public $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
class Rapport
|
class Rapport
|
||||||
{
|
{
|
||||||
/** @var IdentiteReturn */
|
/** @var Identite */
|
||||||
public $Identite;
|
public $Identite;
|
||||||
/** @var DirigeantsReturn */
|
/** @var DirigeantsReturn */
|
||||||
public $Dirigeants;
|
public $Dirigeants;
|
||||||
@ -2842,7 +2812,7 @@ class Rapport
|
|||||||
public $Liens;
|
public $Liens;
|
||||||
/** @var RatiosReturn */
|
/** @var RatiosReturn */
|
||||||
public $Ratios;
|
public $Ratios;
|
||||||
/** @var IndiscoreReturn */
|
/** @var Indiscore */
|
||||||
public $Indiscore;
|
public $Indiscore;
|
||||||
/** @var AnnoncesReturn */
|
/** @var AnnoncesReturn */
|
||||||
public $Annonces;
|
public $Annonces;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user