Ajout clé Tête de lien Ultime

This commit is contained in:
Michael RICOIS 2016-01-08 09:56:28 +00:00
parent 36f5465967
commit df6eb2af72
2 changed files with 55 additions and 1 deletions

View File

@ -534,10 +534,15 @@ class Enrichissement
'columns' => array()
),
'LienHead' => array(
'lib' => 'Tête de lien',
'lib' => 'Tête de lien financier',
'help' => "",
'columns' => array()
),
'LienHeadUltimate' => array(
'lib' => 'Tête de lien ultime',
'help' => "",
'columns' => array()
),
);
public function __construct(){}

View File

@ -249,6 +249,7 @@ $tabDico = array(
'NaceEnt',
'TelOrder',
'LienHead',
'LienHeadUltimate',
),
'multiple' => array(
'actionnaires',
@ -1611,6 +1612,54 @@ function LienHeadData($siren, $nic, $values)
return $tabData;
}
function LienHeadUltimateEntete()
{
return array(
'HeadId',
'HeadSiren',
'HeadIsin',
'HeadPpPm',
'HeadRS',
'HeadPays',
'HeadCivilite',
'HeadNom',
'HeadPrenom',
'HeadNomUsage',
'HeadNaissanceDate',
'HeadNaissanceDeptPays',
'HeadNaissanceLieu',
);
}
function LienHeadUltimateData($siren, $nic, $values)
{
global $dbJo;
require_once 'Metier/partenaires/classMLiens2.php';
$c = new MLiens2($siren, 'siren', $dbJo);
$id = $c->getHead();
$result = $c->getIdentity($id);
$tabData = array();
if ( $result ) {
$tabData = array(
'HeadId' => $result->id,
'HeadSiren' => $result->siren,
'HeadIsin' => $result->isin,
'HeadPpPm' => $result->PpPm,
'HeadRS' => $result->RS,
'HeadPays' => $result->adresse_pays,
'HeadCivilite' => $result->civilite,
'HeadNom' => $result->nom,
'HeadPrenom' => $result->prenom,
'HeadNomUsage' => $result->nom_usage,
'HeadNaissanceDate' => $result->naissance_date,
'HeadNaissanceDeptPays' => $result->naissance_dept_pays,
'HeadNaissanceLieu' => $result->naissance_lieu,
);
}
return $tabData;
}
function actionnairesEntete()
{
return array(