export: indiscore, issue #0000011

This commit is contained in:
Sebastien BEAUGRAND 2010-05-24 12:24:02 +00:00
parent a3dcc575a4
commit dea8aebb77
2 changed files with 26 additions and 4 deletions

View File

@ -252,8 +252,30 @@ if (isset($siret) == true) {
$fileName = $page.'-'.$idEntreprise;
}
$export = array('siren' => $etab['Siren'],
'siretSiege' => $etab['Siret'],
'raisonSociale' => $etab['Nom'],
'analyseConformite' => $etab['AnalyseConfor'],
'scoreConformite' => $etab['ScoreConfor'],
'analyseDirigeance' => $etab['AnalyseDirigeance'],
'scoreDirigeance' => $etab['ScoreDirigeance'],
'analyseSolvabilite' => $etab['AnalyseSolvabilite'],
'scoreSolvabilite' => $etab['ScoreSolvabilite'],
'situationFinanciere' =>
$etab['tabInfosNotations']['SituationFinanciere'],
'probabiliteDefaut' =>
$etab['tabInfosNotations']['ProbabiliteDefaut'],
'conanHolder' => $etab['scores']['ConanH'],
'afdcc2' => $etab['scores']['Afdcc2'],
'scoreZ' => $etab['scores']['Z'],
'paiement' => $etab['infoPaiement'],
'indiscore' => $indiscore,
'indiscoreMax' => $maxIndiscore,
'tendance' => $etab['TendanceIndiscore'],
'encoursMaxConseille' => $etab['encours']);
$parseTab = new tabExport;
$parseTab->tab = array($etab);
$parseTab->tab = array($export);
$parseTab->type = array();
$array2csv = new ExportCSV;
@ -261,8 +283,7 @@ $array2csv->records = $parseTab->convertTable();
$array2csv->writeCSV($fileName);
$array2xml = new ExportXML;
$array2xml->rootName = $page.'s';
$array2xml->defaultTagName = $page;
$array2xml->records = $etab;
$array2xml->rootName = $page;
$array2xml->records = $export;
$array2xml->writeXML($fileName);
?>

View File

@ -39,6 +39,7 @@ if ($page == 'identite' ||
$page == 'annonces' ||
$page == 'bilans' ||
$page == 'ratios' ||
$page == 'indiscore' ||
$page == 'bourse' ||
$page == 'banque' ||
$page == 'scorescf') {