Création d'une structure pour l'enrichissement
This commit is contained in:
parent
4a3f20b578
commit
85dd71c9fa
@ -40,18 +40,10 @@ class GestionController extends Zend_Controller_Action
|
||||
}
|
||||
|
||||
//Affichage du formulaire
|
||||
require_once 'Scores/Field.php';
|
||||
$fieldsM = new Fields();
|
||||
$allFields = $fieldsM->getFields();
|
||||
|
||||
$fields = array();
|
||||
foreach($allFields as $name => $item)
|
||||
{
|
||||
if ( array_key_exists('export', $item) ) {
|
||||
$fields[$name] = $item['label'];
|
||||
}
|
||||
}
|
||||
$this->view->assign('fields', $fields);
|
||||
require_once 'Scores/Enrichissement.php';
|
||||
$fieldsM = new Enrichissement();
|
||||
$allFields = $fieldsM->getFields();
|
||||
$this->view->assign('fields', $allFields);
|
||||
}
|
||||
|
||||
public function profildelAction(){}
|
||||
|
@ -15,27 +15,20 @@
|
||||
<input type="text" name="tarifLigne" /> €
|
||||
<br/>
|
||||
|
||||
<div style="width:100%;">
|
||||
|
||||
<div style="width:45%;float:left;">
|
||||
<div>
|
||||
<label>Selection des données pour l'enrichissement</label>
|
||||
<select name="listcriteres">
|
||||
<select name="listcriteres" multiple="10">
|
||||
<option value="">-</option>
|
||||
<?php if ( count($this->fields)>0 ) {?>
|
||||
<?php foreach ( $this->fields as $value => $lib ) {?>
|
||||
<option value="<?=$value?>"><?=$lib?></option>
|
||||
<?php foreach ( $this->fields as $value => $item ) {?>
|
||||
<option value="<?=$value?>"><?=$item['label']?></option>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div style="width:45%;float:right;" id="criteres">
|
||||
Criteres
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
</form>
|
||||
</div>
|
@ -1,7 +1,129 @@
|
||||
<?php
|
||||
class Enrichissement
|
||||
{
|
||||
|
||||
/**
|
||||
* Déclaration des colonnes de la table de données pour la transposition
|
||||
*
|
||||
*/
|
||||
protected $columns = array(
|
||||
'id' => array(),
|
||||
'source' => array(),
|
||||
'source_id' => array(),
|
||||
'triCode' => array(),
|
||||
'autre_id' => array(),
|
||||
'siren' => array(),
|
||||
'nic' => array(),
|
||||
'actif' => array(),
|
||||
'siege' => array(
|
||||
'value' => array(
|
||||
'1' => "Etablissement Siege",
|
||||
'0' => "Etablissement Secondaire",
|
||||
)
|
||||
),
|
||||
'raisonSociale' => array(),
|
||||
'enseigne' => array(),
|
||||
'sigle' => array(),
|
||||
'identite_pre' => array(),
|
||||
'marques' => array(),
|
||||
'adr_num' => array(),
|
||||
'adr_btq' => array(),
|
||||
'adr_typeVoie' => array(),
|
||||
'adr_libVoie' => array(),
|
||||
'adr_comp' => array(),
|
||||
'adr_cp' => array(),
|
||||
'adr_ville' => array(),
|
||||
'adr_dep' => array(),
|
||||
'adr_com' => array(),
|
||||
'tel' => array(),
|
||||
'fax' => array(),
|
||||
'cj' => array(),
|
||||
'capital' => array(),
|
||||
'capitalDev' => array(),
|
||||
'capitalSrc' => array(),
|
||||
'ape_etab' => array(),
|
||||
'ape_entrep' => array(),
|
||||
'age_entrep' => array(),
|
||||
'age_etab' => array(),
|
||||
'tca' => array(),
|
||||
'tcaexp' => array(),
|
||||
'teff_entrep' => array(),
|
||||
'teff_etab' => array(),
|
||||
'rang' => array(),
|
||||
'web' => array(),
|
||||
'mail' => array(),
|
||||
'adrDom' => array(),
|
||||
'lieuAct' => array(),
|
||||
'actifEco' => array(),
|
||||
'presentRcs' => array(),
|
||||
'procolHisto' => array(),
|
||||
'tvaIntraCle' => array(),
|
||||
'tvaIntraValide' => array(),
|
||||
'ape4_etab' => array(),
|
||||
'ape4_entrep' => array(),
|
||||
'NaceEtab' => array(),
|
||||
'NaceEntrep' => array(),
|
||||
'dateCrea_etab' => array(),
|
||||
'dateCrea_ent' => array(),
|
||||
'dateImmat' => array(),
|
||||
'eff_entrep' => array(),
|
||||
'eff_etab' => array(),
|
||||
'distSP' => array(),
|
||||
'achPost' => array(),
|
||||
'rivoli' => array(),
|
||||
'dirCiv' => array(),
|
||||
'dirNom' => array(),
|
||||
'dirPrenom' => array(),
|
||||
'dirDateNaiss' => array(),
|
||||
'dirFct' => array(),
|
||||
'nbEtab' => array(),
|
||||
'nbMPubli' => array(),
|
||||
'sirenGrp' => array(),
|
||||
'nbActio' => array(),
|
||||
'nbPart' => array(),
|
||||
'bilType' => array(),
|
||||
'bilAnnee' => array(),
|
||||
'bilCloture' => array(),
|
||||
'bilDuree' => array(),
|
||||
'bilTca' => array(),
|
||||
'bilEE' => array(),
|
||||
'bilFL' => array(),
|
||||
'bilFK' => array(),
|
||||
'bilFR' => array(),
|
||||
'bilGF' => array(),
|
||||
'bilGP' => array(),
|
||||
'bilGU' => array(),
|
||||
'bilGW' => array(),
|
||||
'bilHD' => array(),
|
||||
'bilHH' => array(),
|
||||
'bilHL' => array(),
|
||||
'bilHM' => array(),
|
||||
'bilHN' => array(),
|
||||
'bilYP' => array(),
|
||||
'avisCs' => array(),
|
||||
|
||||
);
|
||||
|
||||
/**
|
||||
* Déclaration des champs exportable
|
||||
* @var unknown_type
|
||||
*/
|
||||
protected $fields = array(
|
||||
'siege' => array(
|
||||
'label' => "Type d'établissement",
|
||||
'column' => 'siege'
|
||||
),
|
||||
'dirigeant' => array(
|
||||
'label' => "Dirigeant",
|
||||
'column' => array('dirCiv', 'dirNom', 'dirPrenom', 'dirDateNaiss', 'dirFct')
|
||||
),
|
||||
);
|
||||
|
||||
public function __construct(){}
|
||||
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
return $this->fields;
|
||||
}
|
||||
|
||||
}
|
@ -29,13 +29,6 @@ Class Fields
|
||||
'famille' => 'entreprise',
|
||||
'activated' => true,
|
||||
'type' => 'select',
|
||||
'export' => array(
|
||||
'label' => "Type d'établissement",
|
||||
'valuedesc' => array(
|
||||
'1' => "Etablissement Siege",
|
||||
'0' => "Etablissement Secondaire",
|
||||
),
|
||||
),
|
||||
),
|
||||
'sirenGrp' => array(
|
||||
'label' => 'Présence d\'un groupe',
|
||||
|
Loading…
Reference in New Issue
Block a user