Compare commits
No commits in common. "1.1" and "1.0" have entirely different histories.
9357
batch/actionnariatVeolia.txt
Normal file
9357
batch/actionnariatVeolia.txt
Normal file
File diff suppressed because it is too large
Load Diff
6271
batch/actionnariatVeolia2.txt
Normal file
6271
batch/actionnariatVeolia2.txt
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
$b64=file_get_contents('/var/www/batch/1234.pdf');
|
||||
$b64=file_get_contents('/var/www/batch/part1_1.b64');
|
||||
|
||||
echo base64_decode($b64);
|
||||
die();
|
488
batch/bodacc/Bodacc_Bilan_Redif_V06.xsd
Normal file
488
batch/bodacc/Bodacc_Bilan_Redif_V06.xsd
Normal file
@ -0,0 +1,488 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- edited with XMLSpy v2013 rel. 2 sp2 (http://www.altova.com) by Roux (DIR. INFO LEGALE ADMINISTRATIVE) -->
|
||||
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by journal-officiel (Direction Journaux Officiels) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- Version V01 du 10/06/08 -->
|
||||
<!-- Version V02 du 18/07/2008 adresse et depot passé en optionnel pour les annulation. -->
|
||||
<!-- Version V03 du 15/04/2010 prise en compte du nouveau numéro de département de la Mayotte (976) -->
|
||||
<!-- Version V06 du 8/04/2014 prise en compte du nouveau champ descriptif -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:iso4217="urn:un:unece:uncefact:codelist:standard:5:4217:2001" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
<xs:element name="Bilan_XML_Rediff">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Composant Annonce Modifications générales et Radiation pour les Reffuseurs</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="parution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numero de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="listeAvis">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="avis" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="typeAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de l'annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="annonce">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="rectificatif">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="annulation">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="nojo">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro d'identification J.O.</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="15"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numeroDepartement" type="Departement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° de département du Greffe</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="tribunal" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Greffe qui a procédé à l'avis -</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="numeroImmatriculation">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroIdentificationRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° d'identification au format NNN NNN NNN </xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:length value="11"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codeRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>valeur fixée à "RCS"</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:length value="3"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomGreffeImmat" type="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Greffe d'immatriculation du dossier </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="denomination" type="NomDenomination_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Dénomination</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="sigle" type="Sigle_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Sigle</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="formeJuridique" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Forme juridique (Ex : Société Anonyme, SARL, EURL,...)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="adresse" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="france" type="AdresseFrance_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse en France de la société </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="etranger" type="AdresseEtranger_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse à l'étranger</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="depot" type="Depot_Type" minOccurs="0"/>
|
||||
<xs:element name="parutionAvisPrecedent" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Information sur l'avis à rectifier</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nomPublication" type="Alpha_Type"/>
|
||||
<xs:element name="numeroParution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce" type="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!-- date -->
|
||||
<xs:simpleType name="Date_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type simple format date YYYY-MM-DD</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:date">
|
||||
<xs:pattern value="....-..-.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DateHeure_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>format YYYY-MM-DDTHH:MM:SS</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:dateTime">
|
||||
<xs:pattern value="....-..-..T..:..:.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- string -->
|
||||
<xs:simpleType name="Alpha_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type A : tous les caractères, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:normalizedString">
|
||||
<xs:pattern value="[ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} ]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type AN : tous les caractères, tous les chiffres, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:normalizedString">
|
||||
<xs:pattern value="[\p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C}]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- number -->
|
||||
<xs:simpleType name="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type N : tous les chiffres</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\d]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- technique -->
|
||||
<xs:simpleType name="NomDenomination_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type anySimpleType</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="200"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Sigle_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type anySimpleType</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CodePostal_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Postal</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Departement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>code département</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="2"/>
|
||||
<xs:maxLength value="3"/>
|
||||
<xs:pattern value="2A|2B|[0-2]{1}[1-9]{1}|10|[3-8]{1}\d{1}|[9]{1}[0-5]{1}|(97[1-6]{1})|98[4-8]{1}|99"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NumeroGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>code Greffe</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:minLength value="4"/>
|
||||
<xs:maxLength value="6"/>
|
||||
<xs:pattern value="\d{4,5}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de Alpha_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Parution_Type">
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="8"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="AdresseEtranger_Type">
|
||||
<xs:sequence>
|
||||
<xs:element name="adresse">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom d'adresse à l'étranger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pays" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom du pays</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="AdresseFrance_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation/>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de la voie
|
||||
Ex : 4</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="typeVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de la voie
|
||||
Ex : rue</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom de la voie
|
||||
Ex : d'Enfer</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="complGeographique" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Complément gépgraphique
|
||||
Ex : Résidence Bel-Air</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="BP" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Boîte postale
|
||||
Ex : BP 14192</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="8"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="localite" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Localité
|
||||
Ex : Saint-Chéron</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codePostal" type="CodePostal_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Postal
|
||||
Ex : 51290</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="ville">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Ville/Bureau distributeur
|
||||
Ex : Saint-Rémy-en-Bouzemont-Saint-Genest-et-Isson</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NumeroImmatriculation_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>NNN NNN NNN RCS XXXXXX avec NNN NNN NNN N° d'identification et XXXXXXX Greffe d'immatriculation du dossier (Ex : 324 568 789 RCS Paris)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroIdentification">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° d'identification au format NNN NNN NNN</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:length value="11"/>
|
||||
<xs:pattern value="\d{3} \d{3} \d{3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codeRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>valeur fixée à "RCS"</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:length value="3"/>
|
||||
<xs:enumeration value="RCS"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomGreffeImmat" type="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Greffe d'immatriculation du dossier </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="Depot_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation xml:lang="fr">définition d'un dépôt</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:annotation>
|
||||
<xs:documentation xml:lang="fr"/>
|
||||
</xs:annotation>
|
||||
<xs:element name="dateCloture" type="Date_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de clôture des comptes</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="typeDepot">
|
||||
<xs:annotation>
|
||||
<xs:documentation xml:lang="fr">Enumération : Comptes annuels et rapports
|
||||
Comptes consolidés et rapports
|
||||
Comptes annuels et consolidés et rapports</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:enumeration value="Comptes annuels et rapports"/>
|
||||
<xs:enumeration value="Comptes consolidés et rapports"/>
|
||||
<xs:enumeration value="Comptes annuels, consolidés et rapports"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="descriptif" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation xml:lang="fr">Descriptif à publier
|
||||
Ex : Cette société a également déposé une déclaration de confidentialité des comptes annuels en application du premier alinéa de l'article L.232-25.</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type"/>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
134
batch/bodacc/Bodacc_Divers_Redif_V01.xsd
Normal file
134
batch/bodacc/Bodacc_Divers_Redif_V01.xsd
Normal file
@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- edited with XMLSpy v2007 sp1 (http://www.altova.com) by SSI/CTI (JOURNAUX OFFICIELS) -->
|
||||
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by journal-officiel (Direction Journaux Officiels) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- Version V01 du 29/07/09 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:iso4217="urn:un:unece:uncefact:codelist:standard:5:4217:2001" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
<xs:element name="Divers_XML_Rediff">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Composant Annonce diverse pour les Reffuseurs</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="parution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numero de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="listeAvis">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="avis" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="typeAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de l'annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="annonce">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="nojo">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro d'identification J.O.</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="15"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="titreAnnonce" type="xs:string" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Titre de l'annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="contenuAnnonce" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Contenu de l'annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!-- date -->
|
||||
<xs:simpleType name="Date_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type simple format date YYYY-MM-DD</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:date">
|
||||
<xs:pattern value="....-..-.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DateHeure_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>format YYYY-MM-DDTHH:MM:SS</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:dateTime">
|
||||
<xs:pattern value="....-..-..T..:..:.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- string -->
|
||||
<xs:simpleType name="Alpha_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type A : tous les caractères, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} ]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type AN : tous les caractères, tous les chiffres, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C}]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- number -->
|
||||
<xs:simpleType name="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type N : tous les chiffres</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\d]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- technique -->
|
||||
<xs:simpleType name="Parution_Type">
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="8"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:schema>
|
616
batch/bodacc/Bodacc_PCL_Redif_V13.xsd
Normal file
616
batch/bodacc/Bodacc_PCL_Redif_V13.xsd
Normal file
@ -0,0 +1,616 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- edited with XMLSpy v2013 rel. 2 sp2 (http://www.altova.com) by DIR. INFO LEGALE ADMINISTRATIVE (DIR. INFO LEGALE ADMINISTRATIVE) -->
|
||||
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by journal-officiel (Direction de l'Information Légale et Administrative) -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<!-- Modification de la version 3 -->
|
||||
<!-- Adresse/etranger/pays : optionnel -->
|
||||
<!-- Ajout d'une séquence de 1 à + pour (personneMorale,personnePhysique, numeroImmatriculation, nonInscrit, inscriptionRM, enseigne, activite, adresse) -->
|
||||
<!-- Ajout identifiant Reemission -->
|
||||
<!-- Modification de la version 4 -->
|
||||
<!-- Supressiont identifiantReemission -->
|
||||
<!-- Les éléments : numeroAnnonce, numeroIdentificationRCS, codeRCS et nomGreffeImmat ont été typé. -->
|
||||
<!-- Modification de la version 5 . -->
|
||||
<!-- Ajout de 3 natures : Arrêts divers, Autres avis de dépôt et Autres jugements et ordonnances -->
|
||||
<!-- Modification de la version 6 . -->
|
||||
<!-- Ajout de nouvelles natures
|
||||
<!_ 31/07/09 Modification nature "Autres jugements et ordonnances" en "Autre jugement et ordonnance" -> -->
|
||||
<!--
|
||||
V10 11/09/09 Ajouts de 2 natures :
|
||||
- Jugement prononçant la résolution du plan de sauvegarde et le redressement judiciaire
|
||||
- Dépôt de l’état des créances et du projet de répartition
|
||||
-->
|
||||
<!-- Modification de la version 11 -->
|
||||
<!-- Changement du numéro de département de la Mayotte en 976 -->
|
||||
<!-- Modification de la version 12 -->
|
||||
<!-- Ajout de nouvelles natures de jugement liées à la sauvegarde financière accélérée -->
|
||||
<!-- Modification de la version 13 -->
|
||||
<!-- Ajout de l'élément denominationEIRL pour les personnes physiques -->
|
||||
<!-- Ajout de 8 nouvelles natures de jugement -->
|
||||
<!-- Modification valeur <codeRCS> -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
<xs:element name="PCL_REDIFF">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Composant Annonce Procédure Collective pour les Reffuseurs</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="parution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numero de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="annonces">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="annonce" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="typeAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de l'annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="creation">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="rectificatif">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="annulation">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="nojo">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro J.O.</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="15"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce" type="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="numeroDepartement" type="Departement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° de département du Greffe</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="tribunal" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Greffe qui a procédé à l'avis - A transmettre dans le fichier Retour</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="identifiantClient" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Identifiant unique</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:choice>
|
||||
<xs:element name="personneMorale">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="denomination" type="NomDenomination_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Dénomination</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="formeJuridique" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Forme juridique (Ex : Société Anonyme, SARL, EURL,...)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="sigle" type="Sigle_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Sigle</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="personnePhysique">
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:sequence>
|
||||
<xs:element name="nom" type="Alpha_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom de famille (naissance)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="prenom" type="Alpha_Type" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Prénom</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="nomUsage" type="Alpha_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom d'usage</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:element name="denominationEIRL" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:choice>
|
||||
<xs:element name="numeroImmatriculation">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroIdentificationRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° d'identification au format NNN NNN NNN ( A transmettre dans le fichier de retour des parutions)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:length value="11"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codeRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>valeurs RCS, RSEIRL, RA, RSAC</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:maxLength value="6"/>
|
||||
<xs:minLength value="2"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomGreffeImmat" type="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Greffe d'immatriculation du dossier </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
<xs:element name="inscriptionRM" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroIdentificationRM" type="AlphaNum_Type"/>
|
||||
<xs:element name="codeRM" type="Alpha_Type"/>
|
||||
<xs:element name="numeroDepartement" type="Departement_Type"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="enseigne" type="AlphaNum_Type" minOccurs="0"/>
|
||||
<xs:element name="activite" type="AlphaNum_Type" minOccurs="0"/>
|
||||
<xs:element name="adresse" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="france">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse en France de la société </xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroVoie" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Greffe qui a procédé à l'avis - A transmettre dans le fichier Retour</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="typeVoie" type="Alpha_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de la voie
|
||||
Ex : rue</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="nomVoie" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom de la voie
|
||||
Ex : d'Enfer </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="complGeographique" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Complément gépgraphique
|
||||
Ex : Résidence Bel-Air</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="BP" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Boîte postale
|
||||
Ex : 192</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="localite" type="Alpha_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Localité
|
||||
Ex : Saint-Chéron</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="codePostal" type="CodePostal_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Postal
|
||||
Ex : 51290</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="ville" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Ville/Bureau distributeur
|
||||
Ex : Saint-Rémy-en-Bouzemont-Saint-Genest-et-Isson</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="etranger">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse à l'étranger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="adresse" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom d'adresse à l'étranger</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="pays" type="Alpha_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom du pays</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:choice>
|
||||
<xs:element name="jugement" type="Jugement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Publicité</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="jugementAnnule" type="Jugement_Type"/>
|
||||
</xs:choice>
|
||||
<xs:element name="parutionAvisPrecedent" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Information sur l'avis à rectifier</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nomPublication" type="Alpha_Type"/>
|
||||
<xs:element name="numeroParution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce" type="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!-- date -->
|
||||
<xs:simpleType name="Date_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type simple format date YYYY-MM-DD</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:date">
|
||||
<xs:pattern value="....-..-.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DateHeure_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>format YYYY-MM-DDTHH:MM:SS</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:dateTime">
|
||||
<xs:pattern value="....-..-..T..:..:.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- string -->
|
||||
<xs:simpleType name="Alpha_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type A : tous les caractères, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} ]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type AN : tous les caractères, tous les chiffres, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C}]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- number -->
|
||||
<xs:simpleType name="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type N : tous les chiffres</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\d]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- technique -->
|
||||
<xs:simpleType name="Version_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>VXX (XX=num de version)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:length value="3"/>
|
||||
<xs:pattern value="V\d{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- fonctionnel -->
|
||||
<xs:simpleType name="NomDenomination_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type anySimpleType</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NomCommercial_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de AlphaNum_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Enseigne_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de AlphaNum_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Sigle_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type anySimpleType</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Activite_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de AlphaNum_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CodePostal_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Postal</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Departement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>code département</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="2"/>
|
||||
<xs:maxLength value="3"/>
|
||||
<xs:pattern value="2A|2B|[0-2]{1}[1-9]{1}|10|[3-8]{1}\d{1}|[9]{1}[0-5]{1}|(97[1-6]{1})|98[4-8]{1}|99"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NumeroGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>code Greffe</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:minLength value="4"/>
|
||||
<xs:maxLength value="6"/>
|
||||
<xs:pattern value="\d{4,5}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de Alpha_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="StatutRCSPP_Type">
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="A"/>
|
||||
<xs:enumeration value="F"/>
|
||||
<xs:enumeration value="AC"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="StatutRCSPM_Type">
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="B"/>
|
||||
<xs:enumeration value="C"/>
|
||||
<xs:enumeration value="D"/>
|
||||
<xs:enumeration value="F"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Parution_Type">
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="8"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Devise_Type">
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:enumeration value="EUR"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="Jugement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Annonce de Procédure Collective</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="famille">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Famille de jugement
|
||||
Ex : Jugement d'ouverture, extrait de jugement, ...</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:enumeration value="Jugement d'ouverture"/>
|
||||
<xs:enumeration value="Jugement prononçant"/>
|
||||
<xs:enumeration value="Arrêt de la Cour d'Appel"/>
|
||||
<xs:enumeration value="Extrait de jugement"/>
|
||||
<xs:enumeration value="Avis de dépôt"/>
|
||||
<xs:enumeration value="Jugement de clôture"/>
|
||||
<xs:enumeration value="Loi de 1967"/>
|
||||
<xs:enumeration value="Rétractation sur tierce opposition"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nature">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nature du jugement
|
||||
Ex : Jugement d'ouverture de redressement judiciaire, jugement nommanbt un organe, ...</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:enumeration value="Jugement d'homologation de l'accord"/>
|
||||
<xs:enumeration value="Jugement de résolution de l'accord homologué"/>
|
||||
<xs:enumeration value="Jugement d'ouverture d'une procédure de sauvegarde"/>
|
||||
<xs:enumeration value="Jugement d'extension d'une procédure de sauvegarde"/>
|
||||
<xs:enumeration value="Jugement de conversion en redressement judiciaire de la procédure de sauvegarde"/>
|
||||
<xs:enumeration value="Jugement de conversion en liquidation judiciaire de la procédure de sauvegarde"/>
|
||||
<xs:enumeration value="Jugement mettant fin à la procédure de sauvegarde"/>
|
||||
<xs:enumeration value="Liste des créances nées après le jugement d'ouverture d'une procédure de redressement judiciaire"/>
|
||||
<xs:enumeration value="Liste des créances nées après le jugement d'ouverture d'une procédure de liquidation judiciaire"/>
|
||||
<xs:enumeration value="Dépôt de l'état des créances"/>
|
||||
<xs:enumeration value="Jugement de clôture de la procédure de sauvegarde"/>
|
||||
<xs:enumeration value="Jugement arrêtant le plan de sauvegarde"/>
|
||||
<xs:enumeration value="Jugement modifiant le plan de sauvegarde"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de sauvegarde et la liquidation judiciaire"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de sauvegarde et le redressement judiciaire"/>
|
||||
<xs:enumeration value="Jugement d'ouverture d'une procédure de redressement judiciaire"/>
|
||||
<xs:enumeration value="Jugement d'extension d'une procédure de redressement judiciaire"/>
|
||||
<xs:enumeration value="Jugement modifiant la date de cessation des paiements"/>
|
||||
<xs:enumeration value="Jugement de conversion en liquidation judiciaire"/>
|
||||
<xs:enumeration value="Jugement mettant fin à la procédure de redressement judiciaire"/>
|
||||
<xs:enumeration value="Jugement arrêtant un plan de cession"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de cession et la liquidation judiciaire"/>
|
||||
<xs:enumeration value="Jugement de plan de redressement"/>
|
||||
<xs:enumeration value="Jugement modifiant le plan de redressement"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de redressement et la liquidation judiciaire"/>
|
||||
<xs:enumeration value="Jugement d'ouverture de liquidation judiciaire"/>
|
||||
<xs:enumeration value="Jugement d'extension de liquidation judiciaire"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de cession"/>
|
||||
<xs:enumeration value="Dépôt de l'état de collocation"/>
|
||||
<xs:enumeration value="Jugement de clôture pour extinction du passif"/>
|
||||
<xs:enumeration value="Jugement de clôture pour insuffisance d'actif"/>
|
||||
<xs:enumeration value="Jugement de clôture pour insuffisance d'actif et autorisant la reprise des poursuites individuelles"/>
|
||||
<xs:enumeration value="Jugement autorisant la reprise des poursuites individuelles des créanciers"/>
|
||||
<xs:enumeration value="Jugement de reprise de la procédure de liquidation judiciaire"/>
|
||||
<xs:enumeration value="Dépôt du projet de répartition"/>
|
||||
<xs:enumeration value="Dépôt de l'état des créances et du projet de répartition"/>
|
||||
<xs:enumeration value="Autres avis de dépôt"/>
|
||||
<xs:enumeration value="Ordonnance statuant sur les contestations du projet de répartition"/>
|
||||
<xs:enumeration value="Arrêt de la cour d'appel infirmant une décision soumise à publicité"/>
|
||||
<xs:enumeration value="Arrêts divers"/>
|
||||
<xs:enumeration value="Jugement de désignation des organes de la procédure"/>
|
||||
<xs:enumeration value="Jugement d'interdiction de gérer"/>
|
||||
<xs:enumeration value="Jugement de faillite personnelle"/>
|
||||
<xs:enumeration value="Jugement modifiant le plan de continuation"/>
|
||||
<xs:enumeration value="Jugement modifiant le plan de cession"/>
|
||||
<xs:enumeration value="Autre jugement et ordonnance"/>
|
||||
<xs:enumeration value="Dépôt de l'état des créances Loi de 1985"/>
|
||||
<xs:enumeration value="Jugement accordant un délai pour déposer la liste des créances"/>
|
||||
<xs:enumeration value="Jugement d'interdiction de gérer Loi de 1985"/>
|
||||
<xs:enumeration value="Jugement de faillite personnelle Loi de 1985"/>
|
||||
<xs:enumeration value="Jugement de clôture de la liquidation des biens pour extinction du passif"/>
|
||||
<xs:enumeration value="Jugement de clôture de la liquidation des biens pour insuffisance d'actif"/>
|
||||
<xs:enumeration value="Rétractation de jugement d'ouverture sur tierce opposition"/>
|
||||
<xs:enumeration value="Rétractation de prononcé de redressement judiciaire sur tierce opposition"/>
|
||||
<xs:enumeration value="Rétractation de prononcé de liquidation judiciaire sur tierce opposition"/>
|
||||
<xs:enumeration value="Autre jugement d'ouverture"/>
|
||||
<xs:enumeration value="Autre jugement prononçant"/>
|
||||
<xs:enumeration value="Autre arrêt de la Cour d'Appel"/>
|
||||
<xs:enumeration value="Autre jugement de clôture"/>
|
||||
<xs:enumeration value="Autre jugement de liquidation des biens"/>
|
||||
<xs:enumeration value="Autre rétractation sur tierce opposition"/>
|
||||
<xs:enumeration value="Jugement d'ouverture d'une procédure de sauvegarde financière accélérée"/>
|
||||
<xs:enumeration value="Jugement d'extension d'une procédure de sauvegarde financière accélérée"/>
|
||||
<xs:enumeration value="Jugement de conversion en redressement judiciaire de la procédure de sauvegarde financière accélérée"/>
|
||||
<xs:enumeration value="Jugement de conversion en liquidation judiciaire de la procédure de sauvegarde financière accélérée"/>
|
||||
<xs:enumeration value="Clôture de la procédure à défaut d'arrêté du plan dans le délai"/>
|
||||
<xs:enumeration value="Jugement mettant fin à la procédure de sauvegarde financière accélérée"/>
|
||||
<xs:enumeration value="Jugement arrêtant le plan de sauvegarde financière accélérée"/>
|
||||
<xs:enumeration value="Jugement modifiant le plan de sauvegarde financière accélérée"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de sauvegarde financière accélérée et la liquidation judiciaire"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de sauvegarde accélérée et le redressement judiciaire"/>
|
||||
<xs:enumeration value="Jugement d'ouverture d'une procédure de sauvegarde accélérée"/>
|
||||
<xs:enumeration value="Jugement d'extension d'une procédure de sauvegarde accélérée"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de sauvegarde accélérée et la liquidation judiciaire"/>
|
||||
<xs:enumeration value="Jugement prononçant la résolution du plan de sauvegarde accélérée et redressement judiciaire"/>
|
||||
<xs:enumeration value="Jugement prononçant la clôture de la procédure de rétablissement professionnel"/>
|
||||
<xs:enumeration value="Jugement arrêtant le plan de sauvegarde accélérée"/>
|
||||
<xs:enumeration value="Jugement modifiant le plan de sauvegarde accélérée"/>
|
||||
<xs:enumeration value="Jugement mettant fin à la procédure de sauvegarde accélérée"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="date" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date du jugement</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="complementJugement" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Complément du jugement</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
830
batch/bodacc/Bodacc_RCI_Redif_2013_05_27_V10.xsd
Normal file
830
batch/bodacc/Bodacc_RCI_Redif_2013_05_27_V10.xsd
Normal file
@ -0,0 +1,830 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- edited with XMLSpy v2006 sp2 U (http://www.altova.com) by djo (JOURNAUX OFFICIELS) -->
|
||||
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by journal-officiel (Direction de l'Information Légale et Administrative) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- Version V01 du 14/01/08 -->
|
||||
<!-- V05 du 12/03/08 : ajout norme ISO 4217 pour Devise_Type -->
|
||||
<!-- V06 du 04/04/08 : Dans les éléments precedentProprietairePM, precedentProprietairePP, -->
|
||||
<!-- precedentExploitantPP et precedentExploitantPM, les éléments numeroImmatriculation et nonInscrit sont devenus optionnels -->
|
||||
<!-- V07 du 17/04/08 : ajout champs dateEffet -->
|
||||
<!-- V09 du 07/10/09 : Longueur maximum de 1000 caractère pour l'élément nomVoie dans Adresse au lieu de 50 -->
|
||||
<!-- V10 du 15/04/10 : Changement du numéro de département de la Mayotte qui devient 976 -->
|
||||
<!-- 24/05/13 : Augmentation de la longueur max de NomDenomination_Type à 1000 pour harmoniser avec la schéma d'entrée -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:iso4217="urn:un:unece:uncefact:codelist:standard:5:4217:2001" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
<xs:import namespace="urn:un:unece:uncefact:codelist:standard:5:4217:2001" schemaLocation="ISO_CurrencyCode_2001.xsd"/>
|
||||
<xs:element name="RCS-A_IMMAT">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Composant Annonce Immatriculations, Ventes et Créations pour les Reffuseurs</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="parution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numero de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="Date_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="listeAvis">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="avis" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="typeAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de l'annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="annonce">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="rectificatif">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="annulation">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="nojo">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro d'identification J.O.</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="15"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numeroDepartement" type="Departement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° de département du Greffe</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="tribunal" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Greffe qui a procédé à l'avis -</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:sequence>
|
||||
<xs:element name="personnes">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="personne" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:choice>
|
||||
<xs:element name="personneMorale">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:choice>
|
||||
<xs:element name="numeroImmatriculation" type="NumeroImmatriculation_Type"/>
|
||||
<xs:element name="nonInscrit">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type"/>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:element name="denomination" type="NomDenomination_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Dénomination</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="formeJuridique" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Forme juridique (Ex : Société Anonyme, SARL, EURL,...)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomCommercial" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom commercial</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="sigle" type="Sigle_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Sigle</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="administration" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>nouvelle situation,ex: Gérants : Dumoulin Bernard</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="personnePhysique">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:choice>
|
||||
<xs:element name="numeroImmatriculation" type="NumeroImmatriculation_Type"/>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
<xs:element name="nom">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom de famille (naissance)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="prenom" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Prénom</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="70"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomUsage" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom d'usage</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pseudonyme" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomCommercial" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type"/>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nationnalite" type="Alpha_Type" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:element name="capital" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Capital de la société</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:sequence>
|
||||
<xs:element name="montantCapital">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Montant du capital</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:decimal">
|
||||
<xs:fractionDigits value="2"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="devise" type="Devise_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Devise (conforme à la norme ISO 4217)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:element name="capitalVariable">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Capital variable</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type"/>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="adresse" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="france" type="AdresseFrance_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse en France de la société </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="etranger" type="AdresseEtranger_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse à l'étranger</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:element name="etablissement" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="origineFonds" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Origine du fonds
|
||||
Ex : Fonds principal acquis par achat au prix stipulé de 28 940 euros, Cette société se constitue, Moitié indivise dépendante d'un fonds complémentaire acquise par apport au montant évalué à 55 000 euros, Création, Fonds acquis par achat, ...</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="qualiteEtablissement" type="Alpha_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Siège social, Etablissement principal, Etablissemennt complémentaire, ..., Fonds complémentaire, Fonds secondaire</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="activite" type="AlphaNum_Type" minOccurs="0"/>
|
||||
<xs:element name="enseigne" type="AlphaNum_Type" minOccurs="0"/>
|
||||
<xs:element name="adresse" type="AdresseFrance_Type" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="precedentProprietairePM">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="denomination" type="NomDenomination_Type"/>
|
||||
<xs:choice minOccurs="0">
|
||||
<xs:element name="numeroImmatriculation" type="NumeroImmatriculation_Type"/>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="precedentProprietairePP">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nature" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Héritier, indivisaire</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nom">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="prenom" maxOccurs="unbounded">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="70"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomUsage" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:choice minOccurs="0">
|
||||
<xs:element name="numeroImmatriculation" type="NumeroImmatriculation_Type"/>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="precedentExploitantPM">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="denomination" type="NomDenomination_Type"/>
|
||||
<xs:choice minOccurs="0">
|
||||
<xs:element name="numeroImmatriculation" type="NumeroImmatriculation_Type"/>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="precedentExploitantPP">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nature" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Héritier, indivisaire</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nom">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="prenom" maxOccurs="unbounded">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="70"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomUsage" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:choice minOccurs="0">
|
||||
<xs:element name="numeroImmatriculation" type="NumeroImmatriculation_Type"/>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:element name="parutionAvisPrecedent" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Information sur l'avis à rectifier</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nomPublication" type="Alpha_Type"/>
|
||||
<xs:element name="numeroParution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce" type="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="acte">
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="creation">
|
||||
<xs:annotation>
|
||||
<xs:documentation/>
|
||||
</xs:annotation>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="dateImmatriculation" type="Date_Type" minOccurs="0"/>
|
||||
<xs:element name="categorieCreation" type="AlphaNum_Type"/>
|
||||
<xs:element name="dateCommencementActivite" type="Date_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de début d'activité</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="descriptif" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Descriptif de la modification</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="immatriculation">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="dateImmatriculation" type="Date_Type" minOccurs="0"/>
|
||||
<xs:element name="categorieImmatriculation" type="AlphaNum_Type"/>
|
||||
<xs:element name="dateEffet" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date d'effet utilisée pour les greffes dépendants du Ministère de la Justice</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateCommencementActivite" type="Date_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de début d'activité</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="descriptif" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Descriptif de la modification</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="vente">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="dateImmatriculation" type="Date_Type" minOccurs="0"/>
|
||||
<xs:element name="categorieVente" type="AlphaNum_Type"/>
|
||||
<xs:element name="dateEffet" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date d'effet utilisée pour les greffes dépendants du Ministère de la Justice</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateCommencementActivite" type="Date_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de début d'activité</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="journal" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Journal d'annonces légales</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="titre" type="AlphaNum_Type"/>
|
||||
<xs:element name="date" type="Date_Type"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:choice maxOccurs="2">
|
||||
<xs:element name="opposition" type="AlphaNum_Type"/>
|
||||
<xs:element name="declarationCreance" type="AlphaNum_Type"/>
|
||||
</xs:choice>
|
||||
<xs:element name="descriptif" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Descriptif de la modification</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!-- date -->
|
||||
<xs:simpleType name="Date_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type simple format date YYYY-MM-DD</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:date">
|
||||
<xs:pattern value="....-..-.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DateHeure_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>format YYYY-MM-DDTHH:MM:SS</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:dateTime">
|
||||
<xs:pattern value="....-..-..T..:..:.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- string -->
|
||||
<xs:simpleType name="Alpha_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type A : tous les caractères, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} ]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type AN : tous les caractères, tous les chiffres, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C}]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- number -->
|
||||
<xs:simpleType name="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type N : tous les chiffres</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\d]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- technique -->
|
||||
<xs:simpleType name="Version_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>VXX (XX=num de version)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:length value="3"/>
|
||||
<xs:pattern value="V\d{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- fonctionnel -->
|
||||
<xs:simpleType name="NomDenomination_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type anySimpleType</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NomCommercial_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de AlphaNum_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="70"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Sigle_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type anySimpleType</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Activite_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de AlphaNum_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CodePostal_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Postal</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Departement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>code département</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="2"/>
|
||||
<xs:maxLength value="3"/>
|
||||
<xs:pattern value="2A|2B|[0-2]{1}[1-9]{1}|10|[3-8]{1}\d{1}|[9]{1}[0-5]{1}|(97[1-6]{1})|98[4-8]{1}|99"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NumeroGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>code Greffe</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:minLength value="4"/>
|
||||
<xs:maxLength value="6"/>
|
||||
<xs:pattern value="\d{4,5}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de Alpha_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="StatutRCSPP_Type">
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="A"/>
|
||||
<xs:enumeration value="F"/>
|
||||
<xs:enumeration value="AC"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="StatutRCSPM_Type">
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="B"/>
|
||||
<xs:enumeration value="C"/>
|
||||
<xs:enumeration value="D"/>
|
||||
<xs:enumeration value="F"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Parution_Type">
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="8"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Devise_Type">
|
||||
<xs:restriction base="iso4217:CurrencyCodeContentType"/>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="AdresseEtranger_Type">
|
||||
<xs:sequence>
|
||||
<xs:element name="adresse">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom d'adresse à l'étranger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pays" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom du pays</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="AdresseFrance_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation/>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de la voie
|
||||
Ex : 4</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="10"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="typeVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de la voie
|
||||
Ex : rue</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom de la voie
|
||||
Ex : d'Enfer</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000" fixed="false"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="complGeographique" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Complément gépgraphique
|
||||
Ex : Résidence Bel-Air</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="BP" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Boîte postale
|
||||
Ex : BP 14192</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="8"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="localite" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Localité
|
||||
Ex : Saint-Chéron</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codePostal" type="CodePostal_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Postal
|
||||
Ex : 51290</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="ville">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Ville/Bureau distributeur
|
||||
Ex : Saint-Rémy-en-Bouzemont-Saint-Genest-et-Isson</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NumeroImmatriculation_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>NNN NNN NNN RCS XXXXXX avec NNN NNN NNN N° d'identification et XXXXXXX Greffe d'immatriculation du dossier (Ex : 324 568 789 RCS Paris)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroIdentification">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° d'identification au format NNN NNN NNN</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:length value="11"/>
|
||||
<xs:pattern value="\d{3} \d{3} \d{3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codeRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>valeur fixée à "RCS"</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:length value="3"/>
|
||||
<xs:enumeration value="RCS"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomGreffeImmat" type="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Greffe d'immatriculation du dossier </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
794
batch/bodacc/Bodacc_RCM_Redif_V11.xsd
Normal file
794
batch/bodacc/Bodacc_RCM_Redif_V11.xsd
Normal file
@ -0,0 +1,794 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- edited with XMLSpy v2007 sp1 (http://www.altova.com) by SSI/CTI (JOURNAUX OFFICIELS) -->
|
||||
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by journal-officiel (Direction de l'Information Légale et Administrative) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- Version V01 du 14/01/08 -->
|
||||
<!-- V04 du 12/03/08 : ajout norme ISO 4217 pour Devise_Type -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- -->
|
||||
<!-- V05 du 11/04/08 : ajout champs dateEffet -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- -->
|
||||
<!-- V08 du 23/01/09 : modification longueur maximum (d 200 à 1000) pour l'élément denomination -->
|
||||
<!-- *********************************************************************************************************************** -->
|
||||
<!--
|
||||
V09 du 30/04/09 : Ajout élément commentaire dans radiationAuRCS -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!--
|
||||
V10 du 11/09/09 : Choix rendu optionnel après les éléments ModificationsGenerales et radiationAuRCS afin de pouvoir trier les radiations et les modifications-->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!--
|
||||
V11 du 15/04/10 : Prise en compte du nouveau numéro de département de la Mayotte (976) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:iso4217="urn:un:unece:uncefact:codelist:standard:5:4217:2001" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
||||
<xs:import namespace="urn:un:unece:uncefact:codelist:standard:5:4217:2001" schemaLocation="ISO_CurrencyCode_2001.xsd"/>
|
||||
<xs:element name="RCS-B_REDIFF">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Composant Annonce Modifications générales et Radiation pour les Reffuseurs</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="parution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numero de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="listeAvis">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="avis" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="typeAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de l'annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="annonce">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="rectificatif">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="annulation">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="nojo">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro d'identification J.O.</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:length value="15"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numeroDepartement" type="Departement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° de département du Greffe</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="tribunal" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Greffe qui a procédé à l'avis -</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:sequence>
|
||||
<xs:element name="personnes">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="personne" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:choice>
|
||||
<xs:element name="personneMorale">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="denomination">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Dénomination</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="NomDenomination_Type">
|
||||
<xs:maxLength value="1000" fixed="true"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="formeJuridique" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Forme juridique (Ex : Société Anonyme, SARL, EURL,...)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="capital" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Capital de la société</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:sequence>
|
||||
<xs:element name="montantCapital">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Montant du capital</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:decimal">
|
||||
<xs:fractionDigits value="2"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="devise" type="Devise_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Devise (conforme à la norme ISO 4217)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:element name="capitalVariable">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Capital variable</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type"/>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="nomCommercial" type="AlphaNum_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom commercial</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="administration" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>nouvelle situation,ex: Gérants : Dumoulin Bernard</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="sigle" type="Sigle_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Sigle</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="personnePhysique">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nom">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom de famille (naissance)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="prenom" maxOccurs="unbounded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Prénom</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="70"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomUsage" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom d'usage</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pseudonyme" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomCommercial" type="AlphaNum_Type" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:choice>
|
||||
<xs:element name="numeroImmatriculation">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroIdentificationRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° d'identification au format NNN NNN NNN </xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:length value="11"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codeRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>valeur fixée à "RCS"</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:length value="3"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomGreffeImmat" type="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Greffe d'immatriculation du dossier </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
<xs:element name="activite" type="AlphaNum_Type" minOccurs="0"/>
|
||||
<xs:element name="adresse" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="france" type="AdresseFrance_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse en France de la société </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="etranger" type="AdresseEtranger_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresse à l'étranger</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="siegeSocial" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Siège social de la société</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="france" type="AdresseFrance_Type"/>
|
||||
<xs:element name="etranger" type="AdresseEtranger_Type"/>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="etablissementPrincipal" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Etablissement principal de la société</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="france" type="AdresseFrance_Type"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:choice minOccurs="0">
|
||||
<xs:element name="modificationsGenerales">
|
||||
<xs:annotation>
|
||||
<xs:documentation/>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="precedentExploitantPM">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Precedent exploitant pour une personne morale</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="denomination">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="NomDenomination_Type">
|
||||
<xs:maxLength value="200"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:choice>
|
||||
<xs:element name="numeroImmatriculation" type="NumeroImmatriculation_Type"/>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="precedentExploitantPP">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Precedent exploitant pour une personne physique</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nature" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nom">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="prenom">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="70"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomUsage" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:choice minOccurs="0">
|
||||
<xs:element name="numeroImmatriculation" type="NumeroImmatriculation_Type"/>
|
||||
<xs:element name="nonInscrit" type="Alpha_Type"/>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:element name="descriptif">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Descriptif de la modification</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="dateCommencementActivite" type="Date_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de début d'activité</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateEffet" type="Date_Type" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date d'effet utilisée pour les greffes dépendants du Ministère de la Justice</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="radiationAuRCS">
|
||||
<xs:complexType>
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:choice>
|
||||
<xs:element name="radiationPP">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Radiation pour les Personnes Physiques</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dateCessationActivitePP" type="Date_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de cessation d'activité pour les Personnes Physiques</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="radiationPM">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Radiation pour les Personnes Morales</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:length value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:element name="commentaire" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Commentaire pour les radiations</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
<xs:element name="parutionAvisPrecedent" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Information sur l'avis à rectifier</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nomPublication" type="Alpha_Type"/>
|
||||
<xs:element name="numeroParution" type="Parution_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateParution" type="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date de la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="numeroAnnonce" type="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de l'avis dans la parution précédente</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!-- date -->
|
||||
<xs:simpleType name="Date_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type simple format date YYYY-MM-DD</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:date">
|
||||
<xs:pattern value="....-..-.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="DateHeure_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>format YYYY-MM-DDTHH:MM:SS</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:dateTime">
|
||||
<xs:pattern value="....-..-..T..:..:.."/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- string -->
|
||||
<xs:simpleType name="Alpha_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type A : tous les caractères, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} ]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="AlphaNum_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type AN : tous les caractères, tous les chiffres, toutes les pontuations, tous les symboles, [ \p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C}]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- number -->
|
||||
<xs:simpleType name="Num_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type N : tous les chiffres</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\d]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- technique -->
|
||||
<xs:simpleType name="Version_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>VXX (XX=num de version)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:length value="3"/>
|
||||
<xs:pattern value="V\d{2}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- fonctionnel -->
|
||||
<xs:simpleType name="NomDenomination_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type anySimpleType</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NomCommercial_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de AlphaNum_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="70"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Sigle_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>type anySimpleType</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Activite_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de AlphaNum_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="CodePostal_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Postal</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Departement_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>code département</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="2"/>
|
||||
<xs:maxLength value="3"/>
|
||||
<xs:pattern value="2A|2B|[0-2]{1}[1-9]{1}|10|[3-8]{1}\d{1}|[9]{1}[0-5]{1}|(97[1-6]{1})|98[4-8]{1}|99"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NumeroGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>code Greffe</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:minLength value="4"/>
|
||||
<xs:maxLength value="6"/>
|
||||
<xs:pattern value="\d{4,5}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>dérivé de Alpha_Type</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="60"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="StatutRCSPP_Type">
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="A"/>
|
||||
<xs:enumeration value="F"/>
|
||||
<xs:enumeration value="AC"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="StatutRCSPM_Type">
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="B"/>
|
||||
<xs:enumeration value="C"/>
|
||||
<xs:enumeration value="D"/>
|
||||
<xs:enumeration value="F"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Parution_Type">
|
||||
<xs:restriction base="Num_Type">
|
||||
<xs:length value="8"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="Devise_Type">
|
||||
<xs:restriction base="iso4217:CurrencyCodeContentType"/>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="AdresseEtranger_Type">
|
||||
<xs:sequence>
|
||||
<xs:element name="adresse">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom d'adresse à l'étranger</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pays" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom du pays</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="AdresseFrance_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation/>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numéro de la voie
|
||||
Ex : 4</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="typeVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de la voie
|
||||
Ex : rue</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomVoie" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom de la voie
|
||||
Ex : d'Enfer</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="complGeographique" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Complément gépgraphique
|
||||
Ex : Résidence Bel-Air</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="BP" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Boîte postale
|
||||
Ex : BP 14192</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="8"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="localite" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Localité
|
||||
Ex : Saint-Chéron</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codePostal" type="CodePostal_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Code Postal
|
||||
Ex : 51290</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="ville">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Ville/Bureau distributeur
|
||||
Ex : Saint-Rémy-en-Bouzemont-Saint-Genest-et-Isson</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="AlphaNum_Type">
|
||||
<xs:minLength value="1"/>
|
||||
<xs:maxLength value="50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NumeroImmatriculation_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>NNN NNN NNN RCS XXXXXX avec NNN NNN NNN N° d'identification et XXXXXXX Greffe d'immatriculation du dossier (Ex : 324 568 789 RCS Paris)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroIdentification">
|
||||
<xs:annotation>
|
||||
<xs:documentation>N° d'identification au format NNN NNN NNN</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:length value="11"/>
|
||||
<xs:pattern value="\d{3} \d{3} \d{3}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codeRCS">
|
||||
<xs:annotation>
|
||||
<xs:documentation>valeur fixée à "RCS"</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="Alpha_Type">
|
||||
<xs:length value="3"/>
|
||||
<xs:enumeration value="RCS"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nomGreffeImmat" type="NomGreffe_Type">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Greffe d'immatriculation du dossier </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by DJO (JOURNAUX OFFICIELS) -->
|
||||
<!-- ==========================================================================
|
||||
Direction de l'information légale et administrative - Département des Systèmes d'Information
|
||||
Direction de l'information légale et administrative - Département des Systèmes d'Information
|
||||
|
||||
Nom : CPV.xsd
|
||||
|
||||
Version : 2.1 18/10/2011
|
||||
|
||||
Objet : Schéma XML de définition des codes CPV Vocabulaire Commun des Marchés
|
||||
Objet : Schéma XML de définition des codes CPV Vocabulaire Commun des Marchés
|
||||
http://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=OJ:L:2008:074:0001:0375:FR:PDF
|
||||
Conformité : W3C Recommendation, 2 May 2001
|
||||
Conformité : W3C Recommendation, 2 May 2001
|
||||
|
||||
Historique : 22/03/2004 (1.0) Création
|
||||
27/05/2008 (2.0) Prise en compte des codes CPV RÈGLEMENT (CE) No 213/2008 du 28 novembre 2007
|
||||
Historique : 22/03/2004 (1.0) Création
|
||||
27/05/2008 (2.0) Prise en compte des codes CPV RÈGLEMENT (CE) No 213/2008 du 28 novembre 2007
|
||||
========================================================================== -->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
||||
<xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
|
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by DJO (JOURNAUX OFFICIELS) -->
|
||||
<!-- ==========================================================================
|
||||
Direction de l'information légale et administrative - Département des Systèmes d'Information
|
||||
Direction de l'information légale et administrative - Département des Systèmes d'Information
|
||||
|
||||
Nom : NUTS.xsd
|
||||
|
||||
Version : 2.1 18/10/2011
|
||||
|
||||
Objet : Schéma XML de définition des codes NUTS
|
||||
Objet : Schéma XML de définition des codes NUTS
|
||||
signification des codes : http://europa.eu.int/comm/eurostat/ramon/nuts/codelist_fr.cfm?list=nuts
|
||||
Conformité : W3C Recommendation 2 May 2001
|
||||
Conformité : W3C Recommendation 2 May 2001
|
||||
|
||||
Historique : 25/01/2006 (1.0) Création
|
||||
Historique : 25/01/2006 (1.0) Création
|
||||
27/05/2008 (2.0) Prise en compte des codes NUTS 2008
|
||||
========================================================================== -->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
578
batch/bodacc/OCTDE_EXPORT_JAL_V3.8.xsd
Normal file
578
batch/bodacc/OCTDE_EXPORT_JAL_V3.8.xsd
Normal file
@ -0,0 +1,578 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--Created with Liquid XML Studio Developer Edition 9.0.11.3078 (http://www.liquid-technologies.com)-->
|
||||
<!--
|
||||
OCTDE_EXPORT_JAL XSD - Schéma d'export des annonces JAL au format XML.
|
||||
Copyright OCTDE - v3.4 - 11/03/2015
|
||||
|
||||
L'ensemble des tables de codes associées aux balises code* sont disponibles dans le fichier : OCTDE_Tables_Codes.xls
|
||||
Les fichiers JAL en XML livrés sont nommés selon le masque : "Annonces_YYYYMMDD.xml"
|
||||
Les fichiers PDF livrés sont nommés selon le masque : "<journalID>_YYYYMMDD_<numParution>.pdf"
|
||||
Dans le cas où il n’y a pas de numParution, ce numéro devient 00.
|
||||
|
||||
-->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<!-- Définition de types -->
|
||||
<xs:simpleType name="alphaType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Alphabétique : Caractères, ponctuations et symboles, [ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[ \p{M}\p{P}\p{S}\p{L}\p{Z}\p{C} ]*" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="alphaNumType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Alphanumérique : Caractères, chiffres, ponctuations et symboles, [ \p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C} & < >]*</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\p{M}\p{P}\p{S}\p{L}\p{N}\p{Z}\p{C}]*" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="numType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Numérique</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[\d]*" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="boolType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Booléen (0 ou 1)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[0-1]{1}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="typeType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>M : Personne Morale; P : Personne Physique</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="M" />
|
||||
<xs:enumeration value="P" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="capitalType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Type de capital : MINinmum, FIXe, VARiable ou LIBéré (en totalité)</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="MIN" />
|
||||
<xs:enumeration value="FIX" />
|
||||
<xs:enumeration value="VAR" />
|
||||
<xs:enumeration value="LIB" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="rubriqueType">
|
||||
<xs:annotation>
|
||||
<xs:documentation> Type de rubrique : CoMPTes, CREAtions, MODIFications, PROCedures COLlectives, RADiations, ventes, DIVers,CESsation </xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="CMPT" />
|
||||
<xs:enumeration value="CREA" />
|
||||
<xs:enumeration value="MODIF" />
|
||||
<xs:enumeration value="PROCCOL" />
|
||||
<xs:enumeration value="RAD" />
|
||||
<xs:enumeration value="VENTE" />
|
||||
<xs:enumeration value="DIV" />
|
||||
<xs:enumeration value="CES" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="annonceType">
|
||||
<xs:annotation>
|
||||
<xs:documentation> Type d'annonce : Rectificatif, Additif, Suppression, AnnuleEtRemplace, Insertion, Creation </xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="RECTIFICATIF" />
|
||||
<xs:enumeration value="ADDITIF" />
|
||||
<xs:enumeration value="SUPPRESSION" />
|
||||
<xs:enumeration value="ANNULEETREMPLACE" />
|
||||
<xs:enumeration value="INSERTION" />
|
||||
<xs:enumeration value="CREATION" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="sirenType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[0-9]{9}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="adresseLineType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Ligne d'adresse au format RNVP selon la norme 38 caractères</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="alphaNumType">
|
||||
<xs:maxLength value="38" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="codePostalType">
|
||||
<xs:restriction base="alphaNumType">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="departementType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[0-9]{2,3}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="codePaysIso2Type">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[A-Z]{2}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="formeJuridiqueType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[0-9]{4}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="decimalType">
|
||||
<xs:restriction base="xs:decimal">
|
||||
<xs:minExclusive value="0" />
|
||||
<xs:fractionDigits value="2" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="deviseType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[A-Z]{3}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="adminType">
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minExclusive value="0" />
|
||||
<xs:maxInclusive value="9999" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="civiliteType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Ste : Société; Dr : Docteur; M : Monsieur; Mme : Madame; Mlle : Mademoiselle; Me : Maître</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Ste" />
|
||||
<xs:enumeration value="Dr" />
|
||||
<xs:enumeration value="M" />
|
||||
<xs:enumeration value="Mme" />
|
||||
<xs:enumeration value="Mlle" />
|
||||
<xs:enumeration value="Me" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="typeActeurType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>AB : Societe Absorbante; AC : Acquereur; CD : Cedant; NE : Nouvel Exploitant; PE : Précédent Exploitant</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:length value="2" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="roleIntervenantType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>A : Administrateur; C :Commissaire au plan; H : Huissier*; J : Juge commissaire; K : Juge commissaire suppléant; L : Liquidateur; M : Mandataire; N : Notaire*; O : Opposition*; R : Représentant des créanciers ; T : conciliaTeur; V : aVocat*; Les intervenants avec une * sont spécifiques aux annonces de ventes</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[A-Z]{1,2}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="adresseType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Adresses structurées. Le tag adresseTexte est utilisé quand l'adresse n'est pas disponible de façon structurée, par exemple pour les adresses à l'étranger.</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="numeroVoie" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="indRep" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="typeVoie" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="nomVoie" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="complGeographique" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="boitePostale" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="localite" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="codePostal" type="codePostalType" minOccurs="0" />
|
||||
<xs:element name="ville" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="departement" type="departementType" minOccurs="0" />
|
||||
<xs:element name="codePays" type="codePaysIso2Type" minOccurs="0" default="FR" />
|
||||
<xs:element name="labelPays" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="idVoie" type="numType" minOccurs="0" />
|
||||
<xs:element name="codeInseeCommune" type="numType" minOccurs="0" />
|
||||
<xs:element name="adresseTexte" type="alphaNumType" minOccurs="0" />
|
||||
<!-- <xs:element name="adresseRNVP" type="boolType" minOccurs="0" />-->
|
||||
<xs:element name="diagAdresse" type="numType" minOccurs="0" />
|
||||
<xs:element name="topRejet" type="boolType" minOccurs="0" />
|
||||
<xs:element name="topAmelia" type="boolType" minOccurs="0" />
|
||||
<xs:element name="adresse_L1" type="adresseLineType" minOccurs="0" />
|
||||
<xs:element name="adresse_L2" type="adresseLineType" minOccurs="0" />
|
||||
<xs:element name="adresse_L3" type="adresseLineType" minOccurs="0" />
|
||||
<xs:element name="adresse_L4" type="adresseLineType" minOccurs="0" />
|
||||
<xs:element name="adresse_L5" type="adresseLineType" minOccurs="0" />
|
||||
<xs:element name="adresse_L6" type="adresseLineType" minOccurs="0" />
|
||||
<xs:element name="adresse_L7" type="adresseLineType" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Définition des éléments -->
|
||||
<xs:element name="livraisonAnnoncesLegales">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Elément racine</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="livraisonInfo" />
|
||||
<xs:element ref="annonces" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="livraisonInfo">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Metadonnées de la livraison</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dateLivraison" type="xs:date" />
|
||||
<xs:element name="nbItems" type="xs:integer" />
|
||||
<xs:element name="codeLivraison" type="alphaNumType" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Ce tag peut le cas échéant contenir un code permettant d'identifier la livraison fournie.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="annonces">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Les annonces de la livraison</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="annonce" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="annonce">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Description d'une annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="annonceInfo" />
|
||||
<xs:element ref="personnes" />
|
||||
<xs:element ref="evenements" />
|
||||
<xs:element ref="acteursCession" minOccurs="0" />
|
||||
<xs:element ref="etablissementsCession" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="annonceInfo">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Metadonnées de l'annonce. Certains de ces tags sont specifiques aux Jal (ex: journalID), d'autres spécifiques au Bodacc (ex: nojo), d'autres étant communs à diverses sources</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="adID" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="origine" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="sourcePdf" type="alphaNumType" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Nom du fichier PDF contenant l'annonce OCRisée avec lien vers la page de l'annonce si multipage (exemple: myfile.pdf#page=4)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="nomPublication" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="journalID" type="numType" minOccurs="0" />
|
||||
<xs:element name="dateParution" type="xs:date" minOccurs="0" />
|
||||
<xs:element name="numParution" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="tribunal" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="texte" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="rubrique" type="rubriqueType" minOccurs="0" />
|
||||
<xs:element name="typeAnnonce" type="annonceType" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="personnes">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Les personnes d'une annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="personne" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="personne">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Infos associées à la personne concernée</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="identite" minOccurs="0" />
|
||||
<xs:element ref="dirigeants" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="identite">
|
||||
<xs:annotation>
|
||||
<xs:documentation>identité d'une personne Physique ou Morale</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nom" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="pseudonyme" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="civilite" type="civiliteType" minOccurs="0" />
|
||||
<xs:element name="prenom" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="nomUsage" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="dateNaissance" type="xs:date" minOccurs="0" />
|
||||
<xs:element name="lieuNaissance" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="sigle" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="type" type="typeType" minOccurs="0" />
|
||||
<xs:element name="siren" type="sirenType" minOccurs="0" />
|
||||
<xs:element name="sirenValide" type="boolType" minOccurs="0" />
|
||||
<xs:element name="codeFormeJuridique" type="formeJuridiqueType" minOccurs="0" />
|
||||
<xs:element name="capital" type="decimalType" minOccurs="0" />
|
||||
<xs:element name="capitalType" type="capitalType" minOccurs="0" />
|
||||
<xs:element name="devise" type="deviseType" minOccurs="0" default="EUR" />
|
||||
<xs:element name="capitalNbParts" type="numType" minOccurs="0" />
|
||||
<xs:element name="duree" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="99" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="etablissements" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="etablissement" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="etablissement">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Description d'un établissement</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="enseigne" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="activite" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="adresse" type="adresseType" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="dirigeants" nillable="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Les dirigeants d'une entreprise</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="dirigeant" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="dirigeant">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Description d'un dirigeant</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="civilite" type="civiliteType" minOccurs="0" />
|
||||
<xs:element name="nom" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="nomUsage" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="prenom" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="siren" type="sirenType" minOccurs="0" />
|
||||
<xs:element name="sirenValide" type="boolType" minOccurs="0" />
|
||||
<xs:element name="codeFonction" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[0-9]{3}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="codeMouvement" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[0-9]{2}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="dateMissionDebut" type="xs:date" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Date d'effet de début de mission d'un dirigeant (notamment pour les CAC)
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="dateMissionFin" type="xs:date" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Date d'effet passée ou à venir de la fin de
|
||||
mission d'un dirigeant (notamment pour les
|
||||
CAC)
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="adresse" type="adresseType" minOccurs="0" />
|
||||
<xs:element name="dateNaissance" type="xs:date" minOccurs="0" />
|
||||
<xs:element name="lieuNaissance" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="intervenant">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Zonage des informations liées à chaque mandataire ou autre intervenant de l'annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="civilite" type="civiliteType" minOccurs="0" />
|
||||
<xs:element name="nom" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="prenom" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="roleIntervenant" type="roleIntervenantType" minOccurs="0" />
|
||||
<xs:element name="adresse" type="adresseType" minOccurs="0" />
|
||||
<xs:element name="finMission" type="boolType" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Pour cet intervenant, il s'agit d'une fin de mission</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="intervenants">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Les intervenants d'une procédure collective</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="intervenant" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="evenements">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Les évènements d'une annonce</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="evenement" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="evenement">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Description d'un evenement</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="codeEvenement" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[0-9]{4}" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="dateDecision" type="xs:date" minOccurs="0" />
|
||||
<xs:element name="dateEffet" type="xs:date" minOccurs="0" />
|
||||
<xs:element ref="procedureCollective" minOccurs="0" />
|
||||
<xs:element ref="rectificatif" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="procedureCollective" nillable="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Description d'une Procédure Collective</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dateCessationPaiements" type="xs:date" minOccurs="0" />
|
||||
<xs:element name="dateFinPlanObs" type="xs:date" minOccurs="0" />
|
||||
<xs:element name="dureePlanObs" type="xs:string" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Pour les annonces de plans ou les annonces avec périodes d'observation, selon les annonces, la durée du plan ou de la période d'observation est communiqué (36 mois, 8 ans, etc...) ou alors la dateFinPlanObs</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element ref="intervenants" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="rectificatif">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Description d'un rectificatif ou annulation</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nomPublication" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="dateParution" type="xs:date" minOccurs="0" />
|
||||
<xs:element name="numParution" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="page" type="numType" minOccurs="0" />
|
||||
<xs:element name="texteRectificatif" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="acteursCession" nillable="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Les acteurs d'une cession</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="acteurCession" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="acteurCession" nillable="true">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="typeActeur" type="typeActeurType" />
|
||||
<xs:element name="identiteActeur">
|
||||
<xs:annotation>
|
||||
<xs:documentation>identité d'une personne Physique ou Morale</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="nom" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="pseudonyme" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="civilite" type="civiliteType" minOccurs="0" />
|
||||
<xs:element name="prenom" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="nomUsage" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="dateNaissance" type="xs:date" minOccurs="0" />
|
||||
<xs:element name="lieuNaissance" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="sigle" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="type" type="typeType" minOccurs="0" />
|
||||
<xs:element name="siren" type="sirenType" minOccurs="0" />
|
||||
<xs:element name="sirenValide" type="boolType" minOccurs="0" />
|
||||
<xs:element name="codeFormeJuridique" type="formeJuridiqueType" minOccurs="0" />
|
||||
<xs:element name="capital" type="decimalType" minOccurs="0" />
|
||||
<xs:element name="capitalType" type="capitalType" minOccurs="0" />
|
||||
<xs:element name="devise" type="deviseType" minOccurs="0" default="EUR" />
|
||||
<xs:element name="capitalNbParts" type="numType" minOccurs="0" />
|
||||
<xs:element name="duree" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="99" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="adresse" type="adresseType" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element ref="cessionInfo" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="cessionInfo" nillable="true">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="montantCession" type="decimalType" minOccurs="0" />
|
||||
<xs:element name="deviseMontantCession" type="deviseType" minOccurs="0" />
|
||||
<xs:element name="natureCession" type="alphaNumType" minOccurs="0" />
|
||||
<xs:element name="dureeCession" type="numType" minOccurs="0" />
|
||||
<xs:element name="nbParts" type="numType" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="etablissementsCession" nillable="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Les établissements concernés par une cession</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="etablissement" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
File diff suppressed because it is too large
Load Diff
5
batch/clients/doEtabAct.sh
Normal file
5
batch/clients/doEtabAct.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
DATE=`date '+%Y%m%d'`
|
||||
FILE_CSV="006_FR_${DATE}.csv"
|
||||
mysql -h192.168.3.30 -pscores jo < /var/www/batch/clients/doEtabAct.sql
|
||||
/var/www/batch/diffusionEntrep.php >> /var/www/log/diffusionEntrep.log
|
515
batch/clients/doEtabAct.sql
Normal file
515
batch/clients/doEtabAct.sql
Normal file
@ -0,0 +1,515 @@
|
||||
USE jo;
|
||||
|
||||
DROP TABLE IF EXISTS jo.etablissements_actmp;
|
||||
|
||||
INSERT INTO sdv1.sphinx_idx (nom, createBegin) VALUES ('jo.etablissements_act', NOW());
|
||||
|
||||
# Creation de la structure de la table
|
||||
CREATE TABLE `jo`.`etablissements_actmp` ( `id` bigint( 20 ) NOT NULL,
|
||||
`source` tinyint( 3 ) unsigned zerofill NOT NULL ,
|
||||
`source_id` bigint( 20 ) unsigned NOT NULL ,
|
||||
`triCode` varchar( 6 ) NOT NULL ,
|
||||
`autre_id` varchar( 15 ) NOT NULL ,
|
||||
`siren` int( 9 ) unsigned zerofill NOT NULL ,
|
||||
`nic` mediumint( 5 ) unsigned zerofill NOT NULL,
|
||||
`actif` tinyint( 1 ) unsigned NOT NULL,
|
||||
`siege` tinyint( 1 ) unsigned NOT NULL,
|
||||
`raisonSociale` varchar(80) NOT NULL,
|
||||
`enseigne` varchar(40) NOT NULL,
|
||||
`sigle` varchar(20) NOT NULL,
|
||||
`identite_pre` varchar(255) NOT NULL,
|
||||
`marques` varchar(255) NOT NULL,
|
||||
`adr_num` smallint( 4 ) unsigned zerofill NOT NULL,
|
||||
`adr_btq` char(1) NOT NULL,
|
||||
`adr_typeVoie` char( 4 ) NOT NULL ,
|
||||
`adr_libVoie` varchar( 32 ) NOT NULL ,
|
||||
`adr_comp` varchar( 38 ) NOT NULL ,
|
||||
`adr_cp` mediumint( 5 ) unsigned zerofill NOT NULL ,
|
||||
`adr_ville` varchar( 32 ) NOT NULL ,
|
||||
`adr_dep` char( 3 ) NOT NULL ,
|
||||
`adr_com` smallint( 3 ) unsigned zerofill NOT NULL ,
|
||||
`tel` bigint( 10 ) unsigned zerofill NOT NULL ,
|
||||
`fax` bigint( 10 ) unsigned zerofill NOT NULL ,
|
||||
`cj` smallint( 4 ) unsigned zerofill NOT NULL ,
|
||||
`capital` bigint( 15 ) unsigned zerofill NOT NULL ,
|
||||
`capitalDev` char( 3 ) NOT NULL ,
|
||||
`capitalSrc` tinyint( 3 ) unsigned zerofill NOT NULL ,
|
||||
`ape_etab` char( 5 ) NOT NULL ,
|
||||
`ape_entrep` char( 5 ) NOT NULL ,
|
||||
`age_entrep` tinyint( 3 ) unsigned NOT NULL ,
|
||||
`age_etab` tinyint( 3 ) unsigned NOT NULL ,
|
||||
`tca` tinyint( 1 ) unsigned zerofill NOT NULL ,
|
||||
`tcaexp` tinyint( 1 ) unsigned zerofill NOT NULL ,
|
||||
`teff_entrep` tinyint( 2 ) unsigned NULL ,
|
||||
`teff_etab` tinyint( 2 ) unsigned NULL ,
|
||||
`rang` smallint( 5 ) unsigned NOT NULL ,
|
||||
`dateInsert` datetime NOT NULL ,
|
||||
`dateUpdate` timestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (siren,nic) ) ENGINE = MyISAM DEFAULT CHARSET = latin1;
|
||||
|
||||
# Copie de la cible des actifs avec siret valide
|
||||
INSERT IGNORE INTO `jo`.`etablissements_actmp` SELECT * FROM `jo`.`etablissements` WHERE `siren`>0 and `nic`>0 AND actif=1 AND cj NOT IN(1800,2310,2320,2385) ORDER BY siren, nic;
|
||||
#INSERT IGNORE INTO `jo`.`etablissements_actmp` SELECT * FROM `jo`.`etablissements` WHERE `siren`>0 AND `nic`>0 AND ((actif=1 AND cj NOT IN (1800,2310,2320,2385)) OR siren IN (SELECT siren FROM rncs_entrep WHERE actif=1)) ORDER BY siren, nic;
|
||||
|
||||
# Suppression des zones inutiles
|
||||
ALTER TABLE `etablissements_actmp`
|
||||
DROP `dateInsert`,
|
||||
DROP `dateUpdate`;
|
||||
|
||||
# Supprimer les non diffusibles insee
|
||||
DELETE FROM jo.etablissements_actmp WHERE siren in(SELECT siren FROM insee.insee_nondiff WHERE siren NOT IN (SELECT siren FROM jo.rncs_entrep WHERE actif=1));
|
||||
|
||||
# Supprimer les Liquidé Radié en Sommeil
|
||||
DELETE FROM jo.etablissements_actmp WHERE siren IN (SELECT DISTINCT siren FROM jo.annonces WHERE typeEven IN (1300, 1301, 1302, 1303, 1304, 1305, 1306, 1307, 1308, 1309, 1311, 1312, 1313, 1410, 1417, 1420, 1501, 1503, 1530, 2203, 2206, 2211, 2212, 6000, 6001, 6002, 6003, 6004));
|
||||
|
||||
# Suppression des entreprise en cessation juridique Insee
|
||||
DELETE FROM jo.etablissements_actmp WHERE siren IN (SELECT DISTINCT insSIREN FROM insee.insee_even WHERE insEVE IN ('410'));
|
||||
|
||||
# Suppression des etablissements cesses INSEE
|
||||
#DELETE FROM jo.etablissements_actmp LEFT JOIN insee.insee_even ON etablissements_actmp.siren=insee_even.insSIREN AND etablissements_actmp.nic=insee_even.insNIC WHERE insee_even.insEVE IN ('MPF','MNP','430');
|
||||
|
||||
# Supprimer les éblissements hors de France
|
||||
DELETE FROM `etablissements_actmp` WHERE `adr_dep` =99;
|
||||
|
||||
# Suppression des entreprises presentes et inactives au RNCS
|
||||
DELETE FROM `etablissements_actmp` WHERE siren IN (SELECT siren FROM `rncs_entrep` WHERE actif=0);
|
||||
# Suppression des etablissements presents et inactifs au RNCS
|
||||
DELETE etablissements_actmp FROM etablissements_actmp LEFT JOIN rncs_etab ON etablissements_actmp.siren=rncs_etab.siren AND etablissements_actmp.nic=rncs_etab.nic WHERE rncs_etab.actif=0;
|
||||
|
||||
# Ajouter les zones dirigants PP PM, bilans, achpost ?
|
||||
ALTER TABLE etablissements_actmp
|
||||
ADD nomCommercial VARCHAR(200) NOT NULL,
|
||||
ADD web VARCHAR(100) NOT NULL,
|
||||
ADD mail VARCHAR(100) NOT NULL,
|
||||
ADD isin VARCHAR(12) NOT NULL,
|
||||
ADD adrDom TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD lieuAct TINYINT(2) UNSIGNED NOT NULL,
|
||||
ADD explen TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD explet TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD actifEco TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD presentRcs TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD procolHisto TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD tvaIntraCle TINYINT(2) UNSIGNED ZEROFILL NULL DEFAULT NULL,
|
||||
ADD tvaIntraValide TINYINT(1) UNSIGNED NULL DEFAULT NULL,
|
||||
ADD ape4_etab CHAR(4) NOT NULL,
|
||||
ADD ape4_entrep CHAR(4) NOT NULL,
|
||||
ADD NaceEtab CHAR(5) NOT NULL,
|
||||
ADD NaceEntrep CHAR(5) NOT NULL,
|
||||
ADD dateCrea_etab INT(8) UNSIGNED NOT NULL,
|
||||
ADD dateCrea_ent INT(8) UNSIGNED NOT NULL,
|
||||
ADD dateImmat INT(8) UNSIGNED NOT NULL,
|
||||
ADD eff_entrep MEDIUMINT(7) NOT NULL,
|
||||
ADD eff_etab MEDIUMINT(7) NOT NULL,
|
||||
ADD distSP VARCHAR(38) NOT NULL,
|
||||
ADD achPost VARCHAR(38) NOT NULL,
|
||||
ADD codeCommune CHAR(5) NOT NULL,
|
||||
ADD rivoli CHAR(5) NOT NULL,
|
||||
ADD l93_x INT(7) UNSIGNED NULL,
|
||||
ADD l93_y INT(7) UNSIGNED NULL,
|
||||
ADD alt MEDIUMINT(9) NULL,
|
||||
ADD precis TINYINT(1) NULL,
|
||||
ADD zus CHAR(10) NULL,
|
||||
ADD zru CHAR(10) NULL,
|
||||
ADD zfu CHAR(10) NULL,
|
||||
ADD cucs CHAR(10) NULL,
|
||||
ADD zrr TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD zafr TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD dirCiv VARCHAR(4) NOT NULL,
|
||||
ADD dirNom VARCHAR(20) NOT NULL,
|
||||
ADD dirPrenom VARCHAR(30) NOT NULL,
|
||||
ADD dirDateNaiss DATE NOT NULL,
|
||||
ADD dirFct SMALLINT(4) UNSIGNED ZEROFILL NOT NULL,
|
||||
ADD nbEtab MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
ADD nbMPubli MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
ADD nbMarques MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
ADD nbAnnAsso MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
ADD sirenGrp INT(9) UNSIGNED ZEROFILL NULL DEFAULT NULL,
|
||||
ADD nbActio MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
ADD nbPart MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
ADD bilType ENUM('I','E','R') NOT NULL DEFAULT 'I',
|
||||
ADD bilAnnee YEAR NOT NULL,
|
||||
ADD bilCloture DATE NOT NULL,
|
||||
ADD bilDuree TINYINT(2) UNSIGNED NOT NULL,
|
||||
ADD bilTca TINYINT(1) UNSIGNED NOT NULL,
|
||||
ADD bilEE BIGINT(13) NOT NULL,
|
||||
ADD bilFL BIGINT(13) NOT NULL,
|
||||
ADD bilFK BIGINT(13) NOT NULL,
|
||||
ADD bilFR BIGINT(13) NOT NULL,
|
||||
ADD bilGF BIGINT(13) NOT NULL,
|
||||
ADD bilGP BIGINT(13) NOT NULL,
|
||||
ADD bilGU BIGINT(13) NOT NULL,
|
||||
ADD bilGW BIGINT(13) NOT NULL,
|
||||
ADD bilHD BIGINT(13) NOT NULL,
|
||||
ADD bilHH BIGINT(13) NOT NULL,
|
||||
ADD bilHL BIGINT(13) NOT NULL,
|
||||
ADD bilHM BIGINT(13) NOT NULL,
|
||||
ADD bilHN BIGINT(13) NOT NULL,
|
||||
ADD bilYP INT(8) NOT NULL,
|
||||
ADD avisCs TINYINT(2) UNSIGNED ZEROFILL NULL DEFAULT NULL,
|
||||
ADD risque TINYINT(1) UNSIGNED NOT NULL;
|
||||
|
||||
# Ajout des codes ISIN
|
||||
UPDATE jo.etablissements_actmp, sdv1.bourse_isin SET etablissements_actmp.isin=sdv1.code_isin WHERE etablissements_actmp.siren=bourse_isin.siren AND bourse_isin.siren>1000;
|
||||
|
||||
# Ajout du code Cedex + ville
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
insSIREN INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
insNIC MEDIUMINT(5) UNSIGNED ZEROFILL NOT NULL,
|
||||
insL6_POST VARCHAR(38) NOT NULL,
|
||||
PRIMARY KEY (insSIREN,insNIC)
|
||||
);
|
||||
|
||||
INSERT IGNORE INTO jo.tmp SELECT DISTINCT insSIREN, insNIC, insL6_POST
|
||||
FROM insee.insee_notices b1
|
||||
WHERE b1.dateNotice = (
|
||||
SELECT MAX( b2.dateNotice )
|
||||
FROM insee.insee_notices b2
|
||||
WHERE b1.insSIREN = b2.insSIREN
|
||||
AND b1.insNIC = b2.insNIC
|
||||
AND b2.insL6_POST LIKE '%CEDEX%' );
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.achPost=tmp.insL6_POST WHERE etablissements_actmp.siren=tmp.insSIREN AND etablissements_actmp.nic=tmp.insNIC;
|
||||
|
||||
DROP TABLE tmp;
|
||||
|
||||
# Ajout des codes NAF4
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
nic MEDIUMINT(5) UNSIGNED ZEROFILL NOT NULL,
|
||||
ape4_etab CHAR(4) NOT NULL,
|
||||
ape4_entrep CHAR(4) NOT NULL,
|
||||
PRIMARY KEY (siren,nic)
|
||||
);
|
||||
INSERT IGNORE INTO `jo`.`tmp` SELECT siren, nic, apet4, apen4 FROM `insee`.`bascule`;
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.ape4_etab=tmp.ape4_etab, etablissements_actmp.ape4_entrep=tmp.ape4_entrep
|
||||
WHERE etablissements_actmp.siren=tmp.siren AND etablissements_actmp.nic=tmp.nic;
|
||||
DROP TABLE tmp;
|
||||
|
||||
# Ajout du nombre d'éblissements Actifs
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
nbEtab MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (`siren`)
|
||||
);
|
||||
INSERT IGNORE INTO tmp SELECT siren, COUNT(*) as nbEtab FROM etablissements_actmp GROUP BY siren HAVING nbEtab>1;
|
||||
UPDATE etablissements_actmp SET nbEtab=1;
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.nbEtab=tmp.nbEtab WHERE etablissements_actmp.siren=tmp.siren;
|
||||
DROP TABLE tmp;
|
||||
|
||||
|
||||
# Ajout de la distribution spéale, de la civilitées PP, des effectifs et date de créion éb
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
nic MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
distSP VARCHAR(38) NOT NULL,
|
||||
civ TINYINT(1) UNSIGNED NOT NULL,
|
||||
effEn INT(6) UNSIGNED NOT NULL,
|
||||
effEt INT(6) UNSIGNED NOT NULL,
|
||||
dateCrea_etab INT(8) UNSIGNED NOT NULL,
|
||||
dateCrea_ent INT(8) UNSIGNED NOT NULL,
|
||||
rivoli CHAR(5) NOT NULL,
|
||||
actifEco TINYINT(1) UNSIGNED NOT NULL,
|
||||
lieuAct TINYINT(2) UNSIGNED NOT NULL,
|
||||
codeCommune CHAR(5) NOT NULL,
|
||||
explen TINYINT(1) UNSIGNED NOT NULL,
|
||||
explet TINYINT(1) UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (siren,nic)
|
||||
);
|
||||
INSERT IGNORE INTO jo.tmp
|
||||
SELECT SIREN, NIC, ADR_DISTSP, IF( CIVILITE=2,'MME',IF(CIVILITE=1,'M','')) AS CIVILITE, EFF_ENT, EFF_ET,
|
||||
IF(DCRET>19000000,IF(DCRET%100>0,DCRET,DCRET+1),0) AS DCRET,
|
||||
IF(DCREN>19000000,IF(DCREN%100>0,DCREN,DCREN+1),0) AS DCREN,
|
||||
CODEVOIE, actifEco, LIEUACT, CONCAT(ADR_DEP,ADR_COM) AS codeCommune,
|
||||
IF(EXPLEN='O',1,0) AS EXPLEN,
|
||||
IF(EXPLET='O',1,0) AS EXPLET FROM insee.identite WHERE ACTIF%10=1;
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET
|
||||
etablissements_actmp.distSP=tmp.distSP,
|
||||
etablissements_actmp.dirCiv=tmp.civ,
|
||||
etablissements_actmp.eff_entrep=tmp.effEn,
|
||||
etablissements_actmp.eff_etab=tmp.effEt,
|
||||
etablissements_actmp.dateCrea_etab=tmp.dateCrea_etab,
|
||||
etablissements_actmp.dateCrea_ent=tmp.dateCrea_ent,
|
||||
etablissements_actmp.rivoli=tmp.rivoli,
|
||||
etablissements_actmp.actifEco=tmp.actifEco,
|
||||
etablissements_actmp.lieuAct=tmp.lieuAct,
|
||||
etablissements_actmp.codeCommune=tmp.codeCommune,
|
||||
etablissements_actmp.explen=tmp.explen,
|
||||
etablissements_actmp.explet=tmp.explet
|
||||
WHERE etablissements_actmp.siren=tmp.siren AND etablissements_actmp.nic=tmp.nic;
|
||||
|
||||
DROP TABLE tmp;
|
||||
|
||||
# Ajout du Téphone si manquant
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
nic MEDIUMINT(5) UNSIGNED ZEROFILL NOT NULL,
|
||||
tel INT(10) UNSIGNED ZEROFILL NOT NULL,
|
||||
PRIMARY KEY (siren,nic)
|
||||
);
|
||||
|
||||
INSERT IGNORE INTO jo.tmp SELECT DISTINCT siren, nic, telephone
|
||||
FROM jo.telephonie b1
|
||||
WHERE b1.dateInsert = (
|
||||
SELECT MAX(b2.dateInsert)
|
||||
FROM jo.telephonie b2
|
||||
WHERE b1.siren = b2.siren
|
||||
AND b1.nic = b2.nic
|
||||
AND b2.typeTel='tel');
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.tel=tmp.tel WHERE etablissements_actmp.siren=tmp.siren AND etablissements_actmp.nic=tmp.nic AND etablissements_actmp.tel=0;
|
||||
|
||||
DROP TABLE tmp;
|
||||
|
||||
|
||||
# Ajout du Fax si manquant
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
nic MEDIUMINT(5) UNSIGNED ZEROFILL NOT NULL,
|
||||
tel INT(10) UNSIGNED ZEROFILL NOT NULL,
|
||||
PRIMARY KEY (siren,nic)
|
||||
);
|
||||
|
||||
INSERT IGNORE INTO jo.tmp SELECT DISTINCT siren, nic, telephone
|
||||
FROM jo.telephonie b1
|
||||
WHERE b1.dateInsert = (
|
||||
SELECT MAX(b2.dateInsert)
|
||||
FROM jo.telephonie b2
|
||||
WHERE b1.siren = b2.siren
|
||||
AND b1.nic = b2.nic
|
||||
AND b2.typeTel='fax');
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.fax=tmp.tel WHERE etablissements_actmp.siren=tmp.siren AND etablissements_actmp.nic=tmp.nic AND etablissements_actmp.fax=0;
|
||||
|
||||
DROP TABLE tmp;
|
||||
|
||||
# Ajout du site Web et du mail
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
web VARCHAR(100) NOT NULL,
|
||||
mail VARCHAR(100) NOT NULL,
|
||||
PRIMARY KEY (siren)
|
||||
);
|
||||
INSERT IGNORE INTO jo.tmp SELECT DISTINCT siren, web, mail FROM infos_entrep;
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.web=tmp.web, etablissements_actmp.mail=tmp.mail WHERE etablissements_actmp.siren=tmp.siren;
|
||||
|
||||
DROP TABLE tmp;
|
||||
|
||||
# Ajout du Web si manquant
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
nic MEDIUMINT(5) UNSIGNED ZEROFILL NOT NULL,
|
||||
web VARCHAR(100) NOT NULL,
|
||||
PRIMARY KEY (siren,nic)
|
||||
);
|
||||
|
||||
INSERT IGNORE INTO jo.tmp SELECT DISTINCT siren, nic, infoTel
|
||||
FROM jo.telephonie b1
|
||||
WHERE b1.dateInsert = (
|
||||
SELECT MAX(b2.dateInsert)
|
||||
FROM jo.telephonie b2
|
||||
WHERE b1.siren = b2.siren
|
||||
AND b1.nic = b2.nic
|
||||
AND b2.typeTel='web');
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.web=tmp.web WHERE etablissements_actmp.siren=tmp.siren AND etablissements_actmp.nic=tmp.nic AND etablissements_actmp.web='';
|
||||
|
||||
DROP TABLE tmp;
|
||||
|
||||
# Ajout du Mail si manquant
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
nic MEDIUMINT(5) UNSIGNED ZEROFILL NOT NULL,
|
||||
mail VARCHAR(100) NOT NULL,
|
||||
PRIMARY KEY (siren,nic)
|
||||
);
|
||||
|
||||
INSERT IGNORE INTO jo.tmp SELECT DISTINCT siren, nic, infoTel
|
||||
FROM jo.telephonie b1
|
||||
WHERE b1.dateInsert = (
|
||||
SELECT MAX(b2.dateInsert)
|
||||
FROM jo.telephonie b2
|
||||
WHERE b1.siren = b2.siren
|
||||
AND b1.nic = b2.nic
|
||||
AND b2.typeTel='mail');
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.mail=tmp.mail WHERE etablissements_actmp.siren=tmp.siren AND etablissements_actmp.nic=tmp.nic AND etablissements_actmp.mail='';
|
||||
|
||||
DROP TABLE tmp;
|
||||
|
||||
|
||||
# Ajout de la civilitédu nom et du prém du principal dirigeant
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
dirCiv CHAR(4) NOT NULL,
|
||||
dirNom CHAR(20) NOT NULL,
|
||||
dirPrenom CHAR(30) NOT NULL,
|
||||
dirDateNaiss DATE NOT NULL,
|
||||
dirFct SMALLINT(4) UNSIGNED ZEROFILL NOT NULL,
|
||||
PRIMARY KEY (siren)
|
||||
);
|
||||
INSERT IGNORE INTO jo.tmp SELECT DISTINCT siren, civilite, nom, prenom, naissance_date, fonction_code
|
||||
FROM jo.rncs_dirigeants b1
|
||||
WHERE b1.fonction_code = (
|
||||
SELECT MAX(b2.fonction_code)
|
||||
FROM jo.rncs_dirigeants b2
|
||||
WHERE b1.siren = b2.siren
|
||||
AND b2.actif=1
|
||||
AND b2.nom<>''
|
||||
AND b2.fonction_code BETWEEN 200 AND 2000);
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.dirCiv=tmp.dirCiv, etablissements_actmp.dirNom=tmp.dirNom, etablissements_actmp.dirPrenom=tmp.dirPrenom, etablissements_actmp.dirDateNaiss=tmp.dirDateNaiss, etablissements_actmp.dirFct=tmp.dirFct WHERE etablissements_actmp.siren=tmp.siren;
|
||||
DROP TABLE tmp;
|
||||
|
||||
UPDATE etablissements_actmp, rncs_entrep SET
|
||||
etablissements_actmp.dirNom=rncs_entrep.nom,
|
||||
etablissements_actmp.dirPrenom=rncs_entrep.prenom,
|
||||
etablissements_actmp.dirDateNaiss=rncs_entrep.dateNaiss,
|
||||
etablissements_actmp.dirFct=1050
|
||||
WHERE etablissements_actmp.siren=rncs_entrep.siren
|
||||
AND rncs_entrep.actif=1
|
||||
AND etablissements_actmp.dirNom=''
|
||||
AND rncs_entrep.nom<>''
|
||||
AND rncs_entrep.cj<2000;
|
||||
|
||||
# Ajout de la date d'immatriculation
|
||||
UPDATE etablissements_actmp, greffes_identite SET
|
||||
etablissements_actmp.dateImmat=greffes_identite.dateCreation*1
|
||||
WHERE etablissements_actmp.siren=greffes_identite.siren;
|
||||
UPDATE etablissements_actmp, rncs_entrep SET
|
||||
etablissements_actmp.dateImmat=rncs_entrep.dateImma*1
|
||||
WHERE etablissements_actmp.siren=rncs_entrep.siren;
|
||||
|
||||
# Ajout de la présence dans le répertoire RCS
|
||||
UPDATE etablissements_actmp, rncs_entrep SET
|
||||
etablissements_actmp.presentRcs=1
|
||||
WHERE etablissements_actmp.siren=rncs_entrep.siren;
|
||||
|
||||
# Ajout du nomCommercial
|
||||
UPDATE etablissements_actmp, rncs_etab SET
|
||||
etablissements_actmp.nomCommercial=rncs_etab.nomCommercial
|
||||
WHERE etablissements_actmp.siren=rncs_etab.siren AND etablissements_actmp.nic=rncs_etab.nic;
|
||||
|
||||
# Ajout des enseignes RNCS absentes de l'INSEE
|
||||
UPDATE etablissements_actmp, rncs_etab SET
|
||||
etablissements_actmp.enseigne=rncs_etab.enseigne
|
||||
WHERE etablissements_actmp.siren=rncs_etab.siren AND etablissements_actmp.nic=rncs_etab.nic AND etablissements_actmp.enseigne='';
|
||||
|
||||
# Ajout des sigles RNCS absents de l'INSEE
|
||||
UPDATE etablissements_actmp, rncs_entrep SET
|
||||
etablissements_actmp.sigle=rncs_entrep.sigle
|
||||
WHERE etablissements_actmp.siren=rncs_entrep.siren AND etablissements_actmp.sigle='';
|
||||
|
||||
# Ajout des numéros de TVA
|
||||
UPDATE jo.etablissements_actmp, sdv1.siren_tva SET etablissements_actmp.tvaIntraValide=1, etablissements_actmp.tvaIntraCle=siren_tva.cle
|
||||
WHERE etablissements_actmp.siren=siren_tva.siren AND siren_tva.cle IS NOT NULL;
|
||||
UPDATE jo.etablissements_actmp, sdv1.siren_tva SET etablissements_actmp.tvaIntraValide=0
|
||||
WHERE etablissements_actmp.siren=siren_tva.siren AND siren_tva.cle IS NULL;
|
||||
|
||||
# Ajout de l'indicateur Présence de Procol dans l'historique
|
||||
UPDATE etablissements_actmp, rncs_jugements SET
|
||||
etablissements_actmp.procolHisto=1
|
||||
WHERE etablissements_actmp.siren=rncs_jugements.siren;
|
||||
UPDATE etablissements_actmp, annonces SET
|
||||
etablissements_actmp.procolHisto=1
|
||||
WHERE etablissements_actmp.siren=annonces.siren AND etablissements_actmp.procolHisto=0 AND annonces.typeEven BETWEEN 1000 AND 1999;
|
||||
|
||||
# Ajout de la cote spéciale GE
|
||||
UPDATE jo.etablissements_actmp, sdv1.ge_cs2
|
||||
SET etablissements_actmp.avisCs=REPLACE(REPLACE(REPLACE(REPLACE(ge_cs2.cs,'I','10'),'P','15'),'D','39'),'T','43')
|
||||
WHERE etablissements_actmp.siren=ge_cs2.siren AND (ge_cs2.dateSuppr=0 OR ge_cs2.dateConf>ge_cs2.dateSuppr)
|
||||
AND (ge_cs2.dateFin=0 OR ge_cs2.dateFin>NOW()) AND ge_cs2.cs NOT IN (20,22,27,33,34);
|
||||
|
||||
# Ajout du niveau de risque
|
||||
UPDATE etablissements_actmp SET risque=1 WHERE siren IN (SELECT siren FROM scores_surveillance WHERE indiScore<40);
|
||||
UPDATE etablissements_actmp SET risque=1 WHERE avisCs IN (10, 11, 12, 13, 15, 16, 20, 21, 22, 24, 25, 26, 27, 28, 30, 31, 33, 34, 35, 36, 37, 50);
|
||||
UPDATE etablissements_actmp SET risque=1 WHERE procolHisto=1;
|
||||
UPDATE etablissements_actmp SET risque=1 WHERE actifEco=0 AND siege=1 AND (cj<3000 OR cj>9000);
|
||||
UPDATE etablissements_actmp SET risque=0 WHERE siren IN (SELECT siren FROM scores_surveillance WHERE indiScore>39);
|
||||
|
||||
# Ajout du nombre d'actionnaires et de participations actives
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
nbEntrep MEDIUMINT(5) UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (siren)
|
||||
);
|
||||
INSERT IGNORE INTO tmp SELECT siren1 AS siren, COUNT(*) AS nbEntrep FROM liens WHERE siren1>10000 AND actif=1 AND ActionPart=1 GROUP BY siren;
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.nbActio=tmp.nbEntrep WHERE etablissements_actmp.siren=tmp.siren;
|
||||
TRUNCATE TABLE tmp;
|
||||
INSERT IGNORE INTO tmp SELECT siren1 AS siren, COUNT(*) AS nbEntrep FROM liens WHERE siren1>10000 AND actif=1 AND ActionPart=2 GROUP BY siren;
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.nbPart=tmp.nbEntrep WHERE etablissements_actmp.siren=tmp.siren;
|
||||
TRUNCATE TABLE tmp;
|
||||
|
||||
# Ajout du nombre de marchés publics gagnés
|
||||
INSERT IGNORE INTO tmp SELECT siren, COUNT(*) AS nbEntrep FROM boamp_lots WHERE siren>10000 GROUP BY siren;
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.nbMPubli=tmp.nbEntrep WHERE etablissements_actmp.siren=tmp.siren;
|
||||
TRUNCATE TABLE tmp;
|
||||
|
||||
# Ajout du nombre de marques
|
||||
INSERT IGNORE INTO tmp SELECT sirenDeposant AS siren, COUNT(*) AS nbEntrep FROM bopi.marques WHERE sirenDeposant>10000 GROUP BY sirenDeposant;
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.nbMarques=tmp.nbEntrep WHERE etablissements_actmp.siren=tmp.siren;
|
||||
TRUNCATE TABLE tmp;
|
||||
|
||||
# Ajout du nombre d'annonces JO Associations
|
||||
INSERT IGNORE INTO tmp SELECT siren, COUNT(*) AS nbEntrep FROM asso WHERE siren>10000 GROUP BY siren;
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.nbAnnAsso=tmp.nbEntrep WHERE etablissements_actmp.siren=tmp.siren;
|
||||
TRUNCATE TABLE tmp;
|
||||
DROP TABLE tmp;
|
||||
|
||||
# Jonction temporaire des tables zonage et zonageXY
|
||||
CREATE TABLE tmp
|
||||
SELECT x.address, x.rivoli, x.l93_x, x.l93_y, x.alt, x.precis, x.adrNum, x.adrIndRep, x.adrTypeVoie, x.adrLibVoie, x.adr_cp, x.adr_ville, z.zus, z.zru, z.zfu, z.cucs
|
||||
FROM zonageXY x
|
||||
LEFT JOIN zonage z ON x.address=z.address AND x.adr_cp=z.adr_cp AND x.adr_ville=z.adr_ville
|
||||
WHERE x.l93_x IS NOT NULL AND x.precis>5 AND x.l93_x>0 AND x.l93_y>0 AND x.address<>'0000' AND x.adr_cp<>'' AND x.adr_cp<>'00000';
|
||||
ALTER TABLE tmp ADD INDEX (adrNum,adrIndRep,adrTypeVoie,adrLibVoie,adr_cp,adr_ville);
|
||||
# Mise à jour des Lamberts, de l'altitude et des zones Prioritaires
|
||||
UPDATE etablissements_actmp, tmp
|
||||
SET etablissements_actmp.l93_x =tmp.l93_x,
|
||||
etablissements_actmp.l93_y =tmp.l93_y,
|
||||
etablissements_actmp.alt =tmp.alt,
|
||||
etablissements_actmp.precis=tmp.precis,
|
||||
etablissements_actmp.zus =tmp.zus,
|
||||
etablissements_actmp.zru =tmp.zru,
|
||||
etablissements_actmp.zfu =tmp.zfu,
|
||||
etablissements_actmp.cucs =tmp.cucs
|
||||
WHERE etablissements_actmp.adr_num =tmp.adrNum AND
|
||||
etablissements_actmp.adr_btq =tmp.adrIndRep AND
|
||||
etablissements_actmp.adr_typeVoie=tmp.adrTypeVoie AND
|
||||
etablissements_actmp.adr_libVoie =tmp.adrLibVoie AND
|
||||
etablissements_actmp.adr_cp =tmp.adr_cp AND
|
||||
etablissements_actmp.adr_ville =tmp.adr_ville;
|
||||
DROP TABLE tmp;
|
||||
# Ajout des marqueurs ZRR et ZAFR
|
||||
UPDATE etablissements_actmp, zonageInsee
|
||||
SET etablissements_actmp.zrr=1
|
||||
WHERE etablissements_actmp.codeCommune=zonageInsee.codeInsee AND zonageInsee.typeZone='ZRR';
|
||||
UPDATE etablissements_actmp, zonageInsee
|
||||
SET etablissements_actmp.zafr=1
|
||||
WHERE etablissements_actmp.codeCommune=zonageInsee.codeInsee AND zonageInsee.typeZone='ZAFR' AND canton=0;
|
||||
|
||||
# Correction du capital si absent (Alsace, Moselle, DOM...)
|
||||
CREATE /*TEMPORARY*/ TABLE jo.tmp (
|
||||
siren INT(9) UNSIGNED ZEROFILL NOT NULL,
|
||||
DA BIGINT(20) UNSIGNED NOT NULL,
|
||||
dateExercice INT(8) UNSIGNED ZEROFILL NOT NULL,
|
||||
PRIMARY KEY (siren,dateExercice)
|
||||
);
|
||||
|
||||
INSERT IGNORE INTO jo.tmp
|
||||
SELECT siren, DA, dateExercice FROM bilans_postes WHERE siren IN (
|
||||
SELECT siren FROM etablissements_actmp WHERE cj>=2000 AND capital=0 AND capitalDev IN ('','EUR') AND presentRcs=1
|
||||
) ORDER BY siren ASC, dateExercice DESC;
|
||||
|
||||
UPDATE etablissements_actmp, tmp SET etablissements_actmp.capital=tmp.DA WHERE etablissements_actmp.siren=tmp.siren;
|
||||
|
||||
DROP TABLE tmp;
|
||||
|
||||
|
||||
# Les controles et zones issue des bilans seront proposees lors de l'extraction !
|
||||
ALTER TABLE etablissements_actmp
|
||||
ADD INDEX idxEntrepApeCA(siege,ape_entrep,bilFL),
|
||||
ADD INDEX idxEntrepApeCommune(siege,ape_entrep,adr_dep,adr_com),
|
||||
ADD INDEX idxSirenGrpSiege(sirenGrp,siege),
|
||||
ADD INDEX idxRangSiege(rang,siege);
|
1
batch/clients/exportKompass.sh
Normal file
1
batch/clients/exportKompass.sh
Normal file
@ -0,0 +1 @@
|
||||
mysql -h192.168.3.30 -pscores -N jo < /var/www/batch/clients/exportKompassRisque.sql > /home/data/clients/kompass/sdKompassRisques.txt
|
4
batch/clients/exportKompassRisque.sql
Normal file
4
batch/clients/exportKompassRisque.sql
Normal file
@ -0,0 +1,4 @@
|
||||
SELECT CONCAT(siren, REPLACE(REPLACE(risque,1,'C'),0,' ')) as LigneRisque
|
||||
FROM etablissements_act
|
||||
WHERE cj NOT IN (1900, 6540, 9110, 9150) AND siege=1
|
||||
ORDER BY siren ASC;
|
45
batch/clients/exportPCL.log
Normal file
45
batch/clients/exportPCL.log
Normal file
@ -0,0 +1,45 @@
|
||||
2012-10-08-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
0 0 0 /home/data/ftp/creditsafe/recv/col20121008.txt
|
||||
2012-10-08-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
2012-10-09-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
0 0 0 /home/data/ftp/creditsafe/recv/col20121009.txt
|
||||
2012-10-09-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
2012-10-10-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
274 7563 51565 /home/data/ftp/creditsafe/recv/col20121010.txt
|
||||
2012-10-10-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
2012-10-11-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
356 10982 74419 /home/data/ftp/creditsafe/recv/col20121011.txt
|
||||
2012-10-11-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
2012-10-12-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
372 11653 79551 /home/data/ftp/creditsafe/recv/col20121012.txt
|
||||
2012-10-12-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
2012-10-13-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
397 11746 79537 /home/data/ftp/creditsafe/recv/col20121013.txt
|
||||
2012-10-13-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
2012-10-14-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
189 4812 32875 /home/data/ftp/creditsafe/recv/col20121014.txt
|
||||
2012-10-14-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
2012-10-15-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
0 0 0 /home/data/ftp/creditsafe/recv/col20121015.txt
|
||||
2012-10-15-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
2012-10-16-00-12 - Début de l'export des procédures collectives pour CreditSafe...
|
||||
Nombre de jugements exportés :
|
||||
16 377 2637 /home/data/ftp/creditsafe/recv/col20121016.txt
|
||||
2012-10-16-00-12 - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
14
batch/clients/exportPCL.sh
Normal file
14
batch/clients/exportPCL.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
cd /var/www/batch/clients
|
||||
DATE=`date '+%Y%m%d'`
|
||||
DATEHEURE=`date '+%Y-%m-%d-%H-%I'`
|
||||
echo -n "${DATEHEURE} - Début de l'export des procédures collectives pour CreditSafe...
|
||||
"
|
||||
mysql -uroot -pscores -h192.168.3.30 jo < exportPCL.sql > /home/data/ftp/creditsafe/recv/col${DATE}.txt
|
||||
echo -n "Nombre de jugements exportés :
|
||||
"
|
||||
wc /home/data/ftp/creditsafe/recv/col${DATE}.txt
|
||||
DATEHEURE=`date '+%Y-%m-%d-%H-%I'`
|
||||
echo -n "${DATEHEURE} - Fin de l'export des procédures collectives pour CreditSafe.
|
||||
|
||||
"
|
9
batch/clients/exportPCL.sql
Normal file
9
batch/clients/exportPCL.sql
Normal file
@ -0,0 +1,9 @@
|
||||
SELECT siren AS RCS, typeEven as CODE_EVEN, raisonSociale as RAISON_SOCIALE, adresse AS ADRESSE1, CONCAT_WS(' ',codePostal,ville) AS ADRESSE2, dateJugement AS DATE_JUG, CONCAT_WS('/',inter1nom,inter2nom,inter3nom) AS MANDATAIRE, tribunal AS TRIBUNAL, DATE(dateInsert) AS DATE_FRAICHEUR
|
||||
FROM annonces
|
||||
WHERE typeEven BETWEEN 1100 AND 1999
|
||||
AND date(dateInsert)>DATE_SUB(CURDATE(),INTERVAL 2 DAY)
|
||||
# AND date(dateInsert)>='2010-05-01'
|
||||
AND ( (source<>'PC' AND (codePostal BETWEEN 57000 AND 57999 OR codePostal BETWEEN 67000 AND 68999)) OR source='GC' );
|
||||
# source NOT IN('GC','PC') AND typeEven BETWEEN 1100 AND 1999 AND (codePostal BETWEEN 57000 AND 57999 OR codePostal BETWEEN 67000 AND 68999) AND
|
||||
# date(dateInsert)>DATE_SUB(CURDATE(),INTERVAL 2 DAY);
|
||||
# dateInsert>20090301000000;
|
3
batch/clients/exportPCLinit.sql
Normal file
3
batch/clients/exportPCLinit.sql
Normal file
@ -0,0 +1,3 @@
|
||||
SELECT siren AS RCS, typeEven as CODE_EVEN, raisonSociale as RAISON_SOCIALE, adresse AS ADRESSE1, CONCAT_WS(' ',codePostal,ville) AS ADRESSE2, dateJugement AS DATE_JUG, CONCAT_WS('/',inter1nom,inter2nom,inter3nom) AS MANDATAIRE, tribunal AS TRIBUNAL, DATE(dateInsert) AS DATE_FRAICHEUR
|
||||
FROM annonces
|
||||
WHERE (idSaisie >0 OR inter1id >0 OR inter2id >0 OR inter3id >0) AND date(dateInsert)>20081001;
|
31
batch/clients/ftpin_recocash.php
Normal file
31
batch/clients/ftpin_recocash.php
Normal file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
define('DIR_FTP_RECOCASH', '/home/data/ftp/recocash');
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT de la récupération du/des flux Recocash...".EOL;
|
||||
$dh = opendir(DIR_FTP_RECOCASH);
|
||||
$ret=0;
|
||||
while (false !== ($filename = readdir($dh))) {
|
||||
if (substr($filename,0,1)<>'.' && strtolower(substr($filename, -4)<>'.txt')) {
|
||||
$filename=DIR_FTP_RECOCASH.'/'.$filename;
|
||||
$dateHeure=date('YmdHis', filectime($filename));
|
||||
$fpR=fopen($filename, 'r');
|
||||
$fpW=fopen($filename.'.sdin', 'w');
|
||||
echo date('Y/m/d - H:i:s') ." - Conversion du fichier $filename".EOL;
|
||||
while (!feof($fpR)) {
|
||||
$ligneR = fgets($fpR);
|
||||
$siren=substr($ligneR,0,9);
|
||||
$ref=substr($ligneR,9,10);
|
||||
$ligneW='CLI'.$dateHeure.'0000000000SURBODPRDFTSRECOCASH ';
|
||||
$ligneW.=' '.$siren;
|
||||
$ligneW.=' ';
|
||||
$ligneW.=$ref.EOL;
|
||||
fwrite($fpW, $ligneW);
|
||||
}
|
||||
fclose($fpR);
|
||||
fclose($fpW);
|
||||
}
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - FIN de la récupération du/des flux Recocash...".EOL;
|
||||
?>
|
21
batch/clients/getTelephonie.sh
Normal file
21
batch/clients/getTelephonie.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
cd /var/www/batch/clients
|
||||
DATE=`date '+%Y%m%d'`
|
||||
DATEHEURE=`date '+%Y-%m-%d-%H-%I'`
|
||||
echo -n "${DATEHEURE} - Début du chargement de la téléphonie ARCEP...
|
||||
"
|
||||
wget -N http://www.arcep.fr/fileadmin/reprise/dossiers/numero/liste-op-dec-num.xls
|
||||
xls2csv -x liste-op-dec-num.xls -c liste-op-dec-num.csv
|
||||
echo -n "Nombre d'opérateurs :
|
||||
"
|
||||
wc liste-op-dec-num.csv
|
||||
/var/www/batch/loadCSV.php -e -s=, -d=telephonie -t=operateurs_tmp liste-op-dec-num.csv
|
||||
wget -N http://www.arcep.fr/fileadmin/wopnum.xls
|
||||
xls2csv -x wopnum.xls -c wopnum.csv
|
||||
echo -n "Nombre d'indicatifs :
|
||||
"
|
||||
wc wopnum.csv
|
||||
/var/www/batch/loadCSV.php -e -s=, -d=telephonie -t=indicatifs_tmp wopnum.csv
|
||||
DATEHEURE=`date '+%Y-%m-%d-%H-%I'`
|
||||
echo -n "${DATEHEURE} - Fin du chargement de la téléphonie ARCEP.
|
||||
"
|
15
batch/clients/indexFileGiant.log
Normal file
15
batch/clients/indexFileGiant.log
Normal file
@ -0,0 +1,15 @@
|
||||
adding: 006_FR_20121014.csv (deflated 75%)
|
||||
Connected to ftp.giant-net.com (62.58.14.80).
|
||||
220 Microsoft FTP Service
|
||||
331 Password required for ftp_sd_fr.
|
||||
230 User ftp_sd_fr logged in.
|
||||
200 Type set to I.
|
||||
Local directory now /var/www/batch/clients
|
||||
local: 006_FR_20121014.tmp remote: 006_FR_20121014.tmp
|
||||
227 Entering Passive Mode (62,58,14,80,7,116).
|
||||
125 Data connection already open; Transfer starting.
|
||||
226 Transfer complete.
|
||||
257334860 bytes sent in 619 secs (4.1e+02 Kbytes/sec)
|
||||
350 File exists, ready for destination name
|
||||
250 RNTO command successful.
|
||||
221
|
24
batch/clients/indexFileGiant.sh
Normal file
24
batch/clients/indexFileGiant.sh
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
DATE=`date '+%Y%m%d'`
|
||||
FILE_CSV="006_FR_${DATE}.csv"
|
||||
FILE_ZIP="006_FR_${DATE}.zip"
|
||||
FILE_TMP="006_FR_${DATE}.tmp"
|
||||
mysql -h192.168.3.30 -pscores jo < /var/www/batch/clients/indexFileGiant.sql > /var/www/batch/clients/indexFileGiant.sed
|
||||
sed -e 's/\\/\\\\/g' /var/www/batch/clients/indexFileGiant.sed > /var/www/batch/clients/indexFileGiant.sed1
|
||||
sed -e 's/"/\\"/g' /var/www/batch/clients/indexFileGiant.sed1 > /var/www/batch/clients/indexFileGiant.sed2
|
||||
sed -e "s/'/\\\'/g" /var/www/batch/clients/indexFileGiant.sed2 > /var/www/batch/clients/indexFileGiant.sed3
|
||||
sed -e 's/\t/\|/g' /var/www/batch/clients/indexFileGiant.sed3 > /var/www/batch/clients/$FILE_CSV
|
||||
rm -f /var/www/batch/clients/indexFileGiant.sed
|
||||
rm -f /var/www/batch/clients/indexFileGiant.sed1
|
||||
rm -f /var/www/batch/clients/indexFileGiant.sed2
|
||||
rm -f /var/www/batch/clients/indexFileGiant.sed3
|
||||
zip -jDm /var/www/batch/clients/$FILE_ZIP /var/www/batch/clients/$FILE_CSV
|
||||
mv /var/www/batch/clients/$FILE_ZIP /var/www/batch/clients/$FILE_TMP
|
||||
ftp -inv ftp.giant-net.com<<ENDFTP
|
||||
user ftp_sd_fr Choucroute
|
||||
bin
|
||||
lcd /var/www/batch/clients/
|
||||
put $FILE_TMP
|
||||
rename $FILE_TMP $FILE_ZIP
|
||||
bye
|
||||
ENDFTP
|
19
batch/clients/indexFileGiant.sql
Normal file
19
batch/clients/indexFileGiant.sql
Normal file
@ -0,0 +1,19 @@
|
||||
SELECT CONCAT(siren,nic) AS CompanyId,
|
||||
CONCAT(siren,nic) AS BranchId,
|
||||
REPLACE(raisonSociale,'|','') AS RegisteredName,
|
||||
REPLACE(CONCAT(enseigne,' ',sigle,' ',marques),'|','') as TradingNames,
|
||||
REPLACE(tel,'0000000000','') AS TelephoneNumber,
|
||||
siren AS CompanyRegisterNumber,
|
||||
REPLACE(adr_num,'0000','') AS HouseNumber,
|
||||
adr_btq AS HouseNumberAdd,
|
||||
REPLACE(CONCAT(adr_typeVoie,' ',adr_libVoie),'|','') AS Street,
|
||||
adr_cp AS PostCode,
|
||||
REPLACE(adr_ville,'|','') AS City,
|
||||
'FR' AS Country,
|
||||
REPLACE(TRIM(CONCAT(REPLACE(adr_num,'0000',''),' ',adr_btq,' ',adr_typeVoie,' ',adr_libVoie,' ',adr_comp,', ',adr_cp,' ',adr_ville)),'|','') AS EntireAddress,
|
||||
IF(siege=1,'R','B'/*'T'*/) AS AddressType,
|
||||
CONCAT(SUBSTRING(ape_etab,1,4),',',SUBSTRING(ape_entrep,1,4)) AS NaceCodes,
|
||||
REPLACE(CONCAT(cj,' ',c.libelle, ' (',c.libelleEn,')'),'|','') AS LegalForm,
|
||||
IF(rang=0,1,IF(siege=1,3,2)) AS BoostFactor
|
||||
FROM etablissements_act, tabFJur c
|
||||
WHERE presentRcs=1 AND cj=c.code AND LENGTH(raisonSociale)>0;/* AND siren IN (SELECT DISTINCT siren FROM rncs_entrep);*/
|
15
batch/clients/kompass.log
Normal file
15
batch/clients/kompass.log
Normal file
File diff suppressed because one or more lines are too long
4
batch/clients/kompass.sh
Normal file
4
batch/clients/kompass.sh
Normal file
@ -0,0 +1,4 @@
|
||||
/var/www/batch/exportKompass.php -1
|
||||
/var/www/batch/exportKompass.php -3
|
||||
/var/www/batch/exportKompass.php -4
|
||||
###/var/www/batch/exportKompass.php -5
|
94
batch/clients/kompass5.log
Normal file
94
batch/clients/kompass5.log
Normal file
@ -0,0 +1,94 @@
|
||||
2012/10/08 - 00:46:06 - Il y a 152159 siren Kompass en Presta 5...
|
||||
2012/10/08 - 01:00:49 - 1000/152159 siren traites...
|
||||
2012/10/08 - 01:14:56 - 2000/152159 siren traites...
|
||||
2012/10/08 - 01:28:41 - 3000/152159 siren traites...
|
||||
2012/10/08 - 01:42:28 - 4000/152159 siren traites...
|
||||
2012/10/08 - 01:56:37 - 5000/152159 siren traites...
|
||||
2012/10/08 - 02:11:43 - 6000/152159 siren traites...
|
||||
2012/10/08 - 02:30:33 - 7000/152159 siren traites...
|
||||
2012/10/08 - 02:47:06 - 8000/152159 siren traites...
|
||||
2012/10/08 - 03:03:32 - 9000/152159 siren traites...
|
||||
2012/10/08 - 03:19:35 - 10000/152159 siren traites...
|
||||
2012/10/08 - 03:35:14 - 11000/152159 siren traites...
|
||||
2012/10/08 - 03:50:48 - 12000/152159 siren traites...
|
||||
2012/10/08 - 04:06:43 - 13000/152159 siren traites...
|
||||
2012/10/08 - 04:21:37 - 14000/152159 siren traites...
|
||||
2012/10/08 - 04:39:19 - 15000/152159 siren traites...
|
||||
2012/10/08 - 04:57:05 - 16000/152159 siren traites...
|
||||
2012/10/08 - 05:15:00 - 17000/152159 siren traites...
|
||||
2012/10/08 - 05:33:22 - 18000/152159 siren traites...
|
||||
2012/10/08 - 05:51:16 - 19000/152159 siren traites...
|
||||
2012/10/08 - 06:05:50 - 20000/152159 siren traites...
|
||||
2012/10/08 - 06:20:24 - 21000/152159 siren traites...
|
||||
2012/10/08 - 06:34:55 - 22000/152159 siren traites...
|
||||
2012/10/08 - 06:49:26 - 23000/152159 siren traites...
|
||||
2012/10/08 - 07:04:15 - 24000/152159 siren traites...
|
||||
2012/10/08 - 07:19:03 - 25000/152159 siren traites...
|
||||
2012/10/08 - 07:33:38 - 26000/152159 siren traites...
|
||||
2012/10/08 - 07:48:09 - 27000/152159 siren traites...
|
||||
2012/10/08 - 08:02:47 - 28000/152159 siren traites...
|
||||
2012/10/08 - 08:17:51 - 29000/152159 siren traites...
|
||||
2012/10/08 - 08:32:53 - 30000/152159 siren traites...
|
||||
2012/10/08 - 08:48:07 - 31000/152159 siren traites...
|
||||
2012/10/08 - 09:02:45 - 32000/152159 siren traites...
|
||||
2012/10/08 - 09:17:56 - 33000/152159 siren traites...
|
||||
2012/10/08 - 09:32:35 - 34000/152159 siren traites...
|
||||
2012/10/08 - 09:47:48 - 35000/152159 siren traites...
|
||||
2012/10/08 - 10:02:27 - 36000/152159 siren traites...
|
||||
2012/10/08 - 10:17:37 - 37000/152159 siren traites...
|
||||
2012/10/08 - 10:32:17 - 38000/152159 siren traites...
|
||||
2012/10/08 - 10:48:36 - 39000/152159 siren traites...
|
||||
2012/10/08 - 11:04:52 - 40000/152159 siren traites...
|
||||
2012/10/08 - 11:20:01 - 41000/152159 siren traites...
|
||||
2012/10/08 - 11:34:46 - 42000/152159 siren traites...
|
||||
2012/10/08 - 11:49:51 - 43000/152159 siren traites...
|
||||
2012/10/08 - 12:04:29 - 44000/152159 siren traites...
|
||||
2012/10/08 - 12:19:39 - 45000/152159 siren traites...
|
||||
2012/10/08 - 12:34:13 - 46000/152159 siren traites...
|
||||
2012/10/08 - 12:49:25 - 47000/152159 siren traites...
|
||||
2012/10/08 - 13:04:02 - 48000/152159 siren traites...
|
||||
2012/10/08 - 13:19:14 - 49000/152159 siren traites...
|
||||
2012/10/08 - 13:33:52 - 50000/152159 siren traites...
|
||||
2012/10/08 - 13:49:04 - 51000/152159 siren traites...
|
||||
2012/10/08 - 14:03:41 - 52000/152159 siren traites...
|
||||
2012/10/08 - 14:19:01 - 53000/152159 siren traites...
|
||||
2012/10/08 - 14:33:39 - 54000/152159 siren traites...
|
||||
2012/10/08 - 14:48:49 - 55000/152159 siren traites...
|
||||
2012/10/08 - 15:03:24 - 56000/152159 siren traites...
|
||||
2012/10/08 - 15:18:39 - 57000/152159 siren traites...
|
||||
2012/10/08 - 15:33:14 - 58000/152159 siren traites...
|
||||
2012/10/08 - 15:48:36 - 59000/152159 siren traites...
|
||||
2012/10/08 - 16:03:17 - 60000/152159 siren traites...
|
||||
2012/10/08 - 16:18:27 - 61000/152159 siren traites...
|
||||
2012/10/08 - 16:33:01 - 62000/152159 siren traites...
|
||||
2012/10/08 - 16:48:03 - 63000/152159 siren traites...
|
||||
2012/10/08 - 17:02:35 - 64000/152159 siren traites...
|
||||
2012/10/08 - 17:17:38 - 65000/152159 siren traites...
|
||||
2012/10/08 - 17:32:08 - 66000/152159 siren traites...
|
||||
2012/10/08 - 17:47:12 - 67000/152159 siren traites...
|
||||
2012/10/08 - 18:01:42 - 68000/152159 siren traites...
|
||||
2012/10/08 - 18:16:39 - 69000/152159 siren traites...
|
||||
2012/10/08 - 18:31:33 - 70000/152159 siren traites...
|
||||
2012/10/08 - 18:47:13 - 71000/152159 siren traites...
|
||||
2012/10/08 - 19:01:41 - 72000/152159 siren traites...
|
||||
2012/10/08 - 19:16:49 - 73000/152159 siren traites...
|
||||
2012/10/08 - 19:31:21 - 74000/152159 siren traites...
|
||||
2012/10/08 - 19:46:57 - 75000/152159 siren traites...
|
||||
2012/10/08 - 20:01:36 - 76000/152159 siren traites...
|
||||
2012/10/08 - 20:16:41 - 77000/152159 siren traites...
|
||||
2012/10/08 - 20:31:27 - 78000/152159 siren traites...
|
||||
2012/10/08 - 20:46:39 - 79000/152159 siren traites...
|
||||
2012/10/08 - 21:01:14 - 80000/152159 siren traites...
|
||||
2012/10/08 - 21:18:08 - 81000/152159 siren traites...
|
||||
2012/10/08 - 21:34:45 - 82000/152159 siren traites...
|
||||
2012/10/08 - 21:51:17 - 83000/152159 siren traites...
|
||||
2012/10/08 - 22:07:52 - 84000/152159 siren traites...
|
||||
2012/10/08 - 22:22:52 - 85000/152159 siren traites...
|
||||
2012/10/08 - 22:37:23 - 86000/152159 siren traites...
|
||||
2012/10/08 - 22:51:51 - 87000/152159 siren traites...
|
||||
2012/10/08 - 23:06:26 - 88000/152159 siren traites...
|
||||
2012/10/08 - 23:20:52 - 89000/152159 siren traites...
|
||||
2012/10/08 - 23:35:18 - 90000/152159 siren traites...
|
||||
2012/10/08 - 23:49:45 - 91000/152159 siren traites...
|
||||
2012/10/09 - 00:04:45 - 92000/152159 siren traites...
|
||||
2012/10/09 - 00:19:45 - 93000/152159 siren traites...
|
42
batch/clients/proceduresQ.log
Normal file
42
batch/clients/proceduresQ.log
Normal file
@ -0,0 +1,42 @@
|
||||
Table Op Msg_type Msg_text
|
||||
jo.bodacc_sirenage optimize status Table is already up to date
|
||||
Table Op Msg_type Msg_text
|
||||
jo.greffes_requetes optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.bodacc_sirenage optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.greffes_requetes optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.bodacc_sirenage optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.greffes_requetes optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
sdv1.siren_tva optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.bodacc_sirenage optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.greffes_requetes optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
sdv1.siren_tva optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.bodacc_sirenage optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.greffes_requetes optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
sdv1.siren_tva optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.bodacc_sirenage optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.greffes_requetes optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
sdv1.siren_tva optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.bodacc_sirenage optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.greffes_requetes optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
sdv1.siren_tva optimize status OK
|
||||
Table Op Msg_type Msg_text
|
||||
jo.bodacc_sirenage optimize status Table is already up to date
|
||||
Table Op Msg_type Msg_text
|
||||
jo.greffes_requetes optimize status OK
|
5
batch/clients/proceduresQ.sh
Normal file
5
batch/clients/proceduresQ.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
DATE=`date '+%Y%m%d'`
|
||||
FILE_CSV="006_FR_${DATE}.csv"
|
||||
/var/www/batch/repriseActivite.php >> /var/www/log/repriseActivite.log
|
||||
mysql -h192.168.3.30 -pscores jo < /var/www/batch/clients/proceduresQ.sql
|
112
batch/clients/proceduresQ.sql
Normal file
112
batch/clients/proceduresQ.sql
Normal file
@ -0,0 +1,112 @@
|
||||
# Création de la table SQL pour les liens Actionnaires rapides
|
||||
DROP TABLE IF EXISTS liensFast;
|
||||
|
||||
CREATE TABLE liensFast (
|
||||
sirenFille int(9) unsigned zerofill NOT NULL,
|
||||
pct double NOT NULL,
|
||||
sirenMere int(9) unsigned zerofill NOT NULL,
|
||||
UNIQUE KEY sirenFille(sirenFille,pct,sirenMere),
|
||||
KEY sirenMere(sirenMere)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
|
||||
INSERT IGNORE INTO liensFast
|
||||
SELECT Siren1 AS sirenFille, Pmin AS pct, Siren2 AS sirenMere
|
||||
FROM liens
|
||||
WHERE Siren1 BETWEEN 10000 AND 999999000 AND actif=1
|
||||
AND ActionPart=1 AND (Pmin>50 OR MajMin='+') AND Siren2 BETWEEN 10000 AND 999999000;
|
||||
|
||||
|
||||
# Création de la table des montants des ventes
|
||||
DROP TABLE IF EXISTS scores_ventes;
|
||||
|
||||
CREATE TABLE scores_ventes
|
||||
SELECT id, siren, nic, Bodacc_Date_Parution, Tribunal_Code, adresse, adrNum, adrIndRep, adrTypVoie, adrLibVoie, adrComp1, adrComp2, codePostal, ville, adresseSiege, adrSiegeNum, adrSiegeIndRep, adrSiegeTypVoie, adrSiegeLibVoie, adrSiegeComp1, adrSiegeComp2, codePostalSiege, villeSiege, activite, typeEven, commentaires, dateEffet, publicationNom, publicationDate, dateDebutActivite, dateCessationActivite, dateCessationPaiement, dateJugement, VenteMt, VenteDev, bienAcqui, oppositions, oppoNom, oppoRepr, oppoAdresse, oppoAdrNum, oppoAdrIndRep, oppoAdrTypVoie, oppoAdrLibVoie, oppoAdrComp, oppoCP, oppoVille, perimetre, dateInsert, dateUpdate
|
||||
FROM bodacc_detail
|
||||
WHERE VenteMt>0 AND siren>0 AND dateSuppr=0
|
||||
ORDER BY id ASC;
|
||||
|
||||
ALTER TABLE scores_ventes
|
||||
ADD nafEn CHAR( 5 ) NOT NULL AFTER nic,
|
||||
ADD nafEt CHAR( 5 ) NOT NULL AFTER nafEn,
|
||||
ADD codeCommune CHAR( 5 ) NOT NULL AFTER nafEt,
|
||||
ADD INDEX idxSiret (siren, nic);
|
||||
|
||||
UPDATE jo.scores_ventes, insee.identite
|
||||
SET scores_ventes.nafEn=identite.APE_ENT,
|
||||
scores_ventes.nafEt=identite.APE_ETAB,
|
||||
scores_ventes.codeCommune=CONCAT(IF(identite.ADR_DEP<10,CONCAT('0',identite.ADR_DEP*1),identite.ADR_DEP),identite.ADR_COM)
|
||||
WHERE scores_ventes.siren>1000 AND scores_ventes.nic>9 AND
|
||||
scores_ventes.siren=identite.SIREN AND scores_ventes.nic=identite.NIC;
|
||||
/*
|
||||
UPDATE jo.scores_ventes, insee.identite
|
||||
SET scores_ventes.nafEn=identite.APE_ENT,
|
||||
scores_ventes.nafEt=identite.APE_ETAB,
|
||||
scores_ventes.codeCommune=CONCAT(IF(identite.ADR_DEP<10,CONCAT('0',identite.ADR_DEP*1),identite.ADR_DEP),identite.ADR_COM)
|
||||
WHERE scores_ventes.siren>1000 AND scores_ventes.nic=0 AND
|
||||
scores_ventes.siren=identite.SIREN AND identite.SIEGE=1 AND identite.ACTIF=1;
|
||||
*/
|
||||
UPDATE jo.scores_ventes, insee.identite
|
||||
SET scores_ventes.nafEn=identite.APE_ENT,
|
||||
scores_ventes.nafEt=identite.APE_ETAB,
|
||||
scores_ventes.codeCommune=CONCAT(IF(identite.ADR_DEP<10,CONCAT('0',identite.ADR_DEP*1),identite.ADR_DEP),identite.ADR_COM)
|
||||
WHERE scores_ventes.siren>1000 AND scores_ventes.nic=0 AND
|
||||
scores_ventes.siren=identite.SIREN AND scores_ventes.codePostal=identite.ADR_CP;
|
||||
|
||||
ALTER TABLE scores_ventes
|
||||
ADD INDEX idxNafEtCommune (nafEt, codeCommune, Bodacc_Date_Parution, VenteMt, VenteDev),
|
||||
ADD INDEX idxNafEnCommune (nafEn, codeCommune, Bodacc_Date_Parution, VenteMt, VenteDev);
|
||||
|
||||
|
||||
# Création de la table des entreprises les plus consultées
|
||||
DROP TABLE IF EXISTS jo.rangSiren;
|
||||
|
||||
CREATE TABLE jo.rangSiren (
|
||||
siren int(9) unsigned zerofill NOT NULL,
|
||||
`rang` mediumint unsigned NOT NULL,
|
||||
PRIMARY KEY (siren)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
|
||||
INSERT IGNORE INTO jo.rangSiren
|
||||
SELECT siren, COUNT(*) AS `rang`
|
||||
FROM sdv1.`logs`
|
||||
WHERE page='identite' AND siren<>0 GROUP BY siren ORDER BY `rang` DESC;
|
||||
|
||||
# Liste des Activites BODACC
|
||||
DROP TABLE IF EXISTS bodacc_activite;
|
||||
CREATE TABLE bodacc_activite
|
||||
SELECT siren, activite
|
||||
FROM activiteReel
|
||||
WHERE siren>1000
|
||||
GROUP BY siren
|
||||
HAVING MAX(dateSource);
|
||||
# Ajout d'un index pour les jointures
|
||||
ALTER TABLE bodacc_activite ADD PRIMARY KEY(siren);
|
||||
# Ajout de l'APE entreprise
|
||||
ALTER TABLE bodacc_activite ADD apen5 CHAR(5) NOT NULL AFTER siren;
|
||||
UPDATE bodacc_activite, etablissements
|
||||
SET bodacc_activite.apen5=etablissements.ape_entrep
|
||||
WHERE bodacc_activite.siren=etablissements.siren AND etablissements.actif=1 AND etablissements.siege=1;
|
||||
# Ajout de l'activite FT
|
||||
ALTER TABLE bodacc_activite ADD an8 INT(8) UNSIGNED ZEROFILL NOT NULL AFTER apen5;
|
||||
UPDATE bodacc_activite, telephonie
|
||||
SET bodacc_activite.an8=telephonie.telephone
|
||||
WHERE bodacc_activite.siren=telephonie.siren AND telephonie.typeTel='an8';
|
||||
|
||||
|
||||
### Purges diverses
|
||||
|
||||
# Suppression des requêtes TVA sans réponses
|
||||
DELETE FROM sdv1.siren_tva WHERE duree>14 AND cle IS NULL;
|
||||
OPTIMIZE TABLE sdv1.siren_tva;
|
||||
|
||||
# Optimisation de bodacc_sirenage
|
||||
OPTIMIZE TABLE bodacc_sirenage;
|
||||
|
||||
# Historisation des requêtes XML Infogreffe (hors bilans saisit)
|
||||
INSERT IGNORE INTO historiques.greffes_requetes
|
||||
SELECT *
|
||||
FROM jo.greffes_requetes
|
||||
WHERE dateRequete<DATE(NOW()) AND NOT (TYPE='BS' AND `option`<>'' AND codeErreur='');
|
||||
DELETE FROM greffes_requetes WHERE dateRequete<DATE(NOW()) AND NOT (TYPE='BS' AND `option`<>'' AND codeErreur='');
|
||||
OPTIMIZE TABLE greffes_requetes;
|
||||
|
6
batch/clients/sendGiantFile.sh
Normal file
6
batch/clients/sendGiantFile.sh
Normal file
@ -0,0 +1,6 @@
|
||||
ftp -inv ftp.giant-net.com<<ENDFTP
|
||||
user ftp_sd_fr Choucroute
|
||||
bin
|
||||
put $1
|
||||
bye
|
||||
ENDFTP
|
13
batch/clients/stockCorporama.sh
Normal file
13
batch/clients/stockCorporama.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
DATE=`date '+%Y%m%d'`
|
||||
FILE1_CSV="Corporama_Sed_${DATE}.csv"
|
||||
FILE1_ZIP="Corporama_Sed_${DATE}.csv.gz"
|
||||
FILE2_CSV="Corporama_Sed_DIR_${DATE}.csv"
|
||||
FILE2_ZIP="Corporama_Sed_DIR_${DATE}.csv.gz"
|
||||
mysql -h192.168.3.30 -pscores jo < /var/www/batch/clients/stockCorporama.sql > /var/www/batch/clients/$FILE1_CSV
|
||||
gzip /var/www/batch/clients/$FILE1_CSV
|
||||
mv /var/www/batch/clients/$FILE1_ZIP /home/data/ftp/corporama/recv/$FILE1_ZIP
|
||||
mysql -h192.168.3.30 -pscores jo < /var/www/batch/clients/stockCorporamaDir.sql > /var/www/batch/clients/$FILE2_CSV
|
||||
gzip /var/www/batch/clients/$FILE2_CSV
|
||||
mv /var/www/batch/clients/$FILE2_ZIP /home/data/ftp/corporama/recv/$FILE2_ZIP
|
||||
|
10
batch/clients/stockCorporama.sql
Normal file
10
batch/clients/stockCorporama.sql
Normal file
@ -0,0 +1,10 @@
|
||||
DROP TABLE IF EXISTS tmp.corporama;
|
||||
CREATE TABLE tmp.corporama
|
||||
SELECT concat(e.siren,nic) AS siret, e.siren, siege, raisonSociale, enseigne, sigle, substring(cj,1,2) as fj, if(adr_num<>0, adr_num*1,'') as adr_num, adr_typeVoie, adr_libVoie, adr_comp, adr_cp, adr_ville, bilType, bilAnnee, bilTca, teff_entrep, dateCrea_ent, ape_entrep, IF(capitalDev<>'', CONCAT(capital*1,' ',capitalDev),'') AS capital, REPLACE(tel,'0000000000','') AS tel, REPLACE(fax,'0000000000','') AS fax, REPLACE(web,'http://http://','http://') AS web, activite
|
||||
FROM jo.etablissements_act e
|
||||
LEFT JOIN jo.bodacc_activite ON e.siren=bodacc_activite.siren
|
||||
WHERE e.siren>10000 AND e.nic BETWEEN 10 AND 98000 AND e.cj NOT IN (0,1000,1400,1500,1600,1700,1800,1900,2100,2110,2200,2210,2220,2300,2310,2385,2900)
|
||||
AND (presentRcs=1 OR e.cj BETWEEN 7000 AND 7999 OR e.cj IN(8310,8311,9110,9150,9220,9221,9223,9224,9230,9260,9300)) AND LENGTH(e.ape_entrep)=5;
|
||||
ALTER TABLE tmp.corporama ADD INDEX idxSiren(siren);
|
||||
SELECT siret, siege, raisonSociale, enseigne, sigle, fj, adr_num, adr_typeVoie, adr_libVoie, adr_comp, adr_cp, adr_ville, bilType, bilAnnee, bilTca, teff_entrep, dateCrea_ent, ape_entrep, capital, tel, fax, web, activite
|
||||
FROM tmp.corporama;
|
3
batch/clients/stockCorporamaDir.sql
Normal file
3
batch/clients/stockCorporamaDir.sql
Normal file
@ -0,0 +1,3 @@
|
||||
SELECT siren, nom, prenom, fonction_code
|
||||
FROM jo.rncs_dirigeants
|
||||
WHERE actif=1 AND nom<>'' AND siren IN (SELECT DISTINCT siren FROM tmp.corporama);
|
23
batch/clients/stockKadeal.sh
Normal file
23
batch/clients/stockKadeal.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
JOUR=`date '+%w'`
|
||||
if [ $JOUR!=0 ] ; then
|
||||
echo "Nous ne sommes pas un dimanche"
|
||||
exit
|
||||
fi
|
||||
DATE=`date '+%Y%m%d'`
|
||||
FILE_CSV="Kadeal_Sed_${DATE}.csv"
|
||||
FILE_ZIP="Kadeal_Sed_${DATE}.zip"
|
||||
FILE_TMP="Kadeal_Sed_${DATE}.tmp"
|
||||
mysql -h192.168.3.30 -pscores jo < /var/www/batch/clients/stockKadeal.sql > /var/www/batch/clients/$FILE_CSV
|
||||
#bzip2 < /var/www/batch/clients/$FILE_CSV > /var/www/batch/clients/$FILE_TMP
|
||||
zip -jDm /var/www/batch/clients/$FILE_ZIP /var/www/batch/clients/$FILE_CSV
|
||||
#mv /var/www/batch/clients/$FILE_ZIP /var/www/batch/clients/$FILE_TMP
|
||||
ftp -inv ftp.kadeal.com<<ENDFTP
|
||||
user kadeal-sds wlGsNXqttq
|
||||
bin
|
||||
lcd /var/www/batch/clients/
|
||||
cd import
|
||||
put $FILE_ZIP
|
||||
bye
|
||||
ENDFTP
|
||||
#rename $FILE_TMP $FILE_ZIP
|
23
batch/clients/stockKadeal.sql
Normal file
23
batch/clients/stockKadeal.sql
Normal file
@ -0,0 +1,23 @@
|
||||
# Preparation Dump Kadeal
|
||||
DROP TABLE IF EXISTS dump_kadeal;
|
||||
CREATE TABLE dump_kadeal
|
||||
SELECT e.siren, e.nic, CONCAT(e.siren,e.nic) AS siret, e.siege, e.raisonSociale, e.enseigne, e.sigle, e.marques,
|
||||
e.adr_num, e.adr_btq, e.adr_typeVoie, e.adr_libVoie,
|
||||
REPLACE(TRIM(CONCAT(REPLACE(e.adr_num,'0000',''),' ',e.adr_btq,' ',e.adr_typeVoie,' ',e.adr_libVoie)),'|','') AS adresse1,
|
||||
e.adr_comp AS adresse2, e.distSP AS adresse3, e.achPost AS adresse4, e.adr_cp, e.adr_ville,
|
||||
REPLACE( e.tel, '0000000000', '' ) AS tel, REPLACE( e.fax, '0000000000', '' ) AS fax,
|
||||
mail, REPLACE(web,'http://','') AS web, e.ape_entrep AS NAF,
|
||||
e.bilTca AS tca, '' AS tcaconso, e.bilAnnee AS datebilan, e.eff_entrep,
|
||||
CONCAT( e.dirCiv, ' ', e.dirNom, ' ', e.dirPrenom ) AS dirigeant1, e.dirFct AS dirigeant1fct,
|
||||
'' AS dirigeant2, '' AS dirigeant2fct
|
||||
FROM etablissements_act e
|
||||
WHERE e.actif=1 AND e.siren>1000 AND e.cj NOT IN (0,1000,1400,1500,1600,1700,1800,1900,2100,2110,2200,2210,2220,2300,2310,2385,2900,6540,6541)
|
||||
AND e.cj<7000 AND LENGTH(e.ape_entrep)=5;
|
||||
ALTER TABLE dump_kadeal ADD INDEX idxSiren(siren);
|
||||
|
||||
SELECT siret, siege, raisonSociale, enseigne, sigle, marques,
|
||||
adr_num, adr_btq, adr_typeVoie, adr_libVoie, adresse1, adresse2, adresse3, adresse4, adr_cp, adr_ville,
|
||||
tel, fax, mail, /*web,*/ NAF, tca, tcaconso, datebilan, eff_entrep, dirigeant1, dirigeant1fct,
|
||||
dirigeant2, dirigeant2fct, activite
|
||||
FROM dump_kadeal e
|
||||
LEFT JOIN bodacc_activite ON e.siren=bodacc_activite.siren;
|
18
batch/clients/stockKadealExport.sh
Normal file
18
batch/clients/stockKadealExport.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
DATE=`date '+%Y%m%d'`
|
||||
FILE_CSV="Kadeal_Sed_${DATE}.csv"
|
||||
FILE_ZIP="Kadeal_Sed_${DATE}.bz2"
|
||||
FILE_TMP="Kadeal_Sed_${DATE}.tmp"
|
||||
#mysql -h192.168.3.30 -pscores jo < /var/www/batch/clients/stockKadealExport.sql > /var/www/batch/clients/$FILE_CSV
|
||||
#bzip2 < /var/www/batch/clients/$FILE_CSV > /var/www/batch/clients/$FILE_TMP
|
||||
#zip -jDm /var/www/batch/clients/$FILE_ZIP /var/www/batch/clients/$FILE_CSV
|
||||
#mv /var/www/batch/clients/$FILE_ZIP /var/www/batch/clients/$FILE_TMP
|
||||
ftp -inv ftp.kadeal.com<<ENDFTP
|
||||
user kadeal-sds wlGsNXqttq
|
||||
bin
|
||||
lcd /var/www/batch/clients/
|
||||
cd import
|
||||
put $FILE_ZIP
|
||||
bye
|
||||
ENDFTP
|
||||
#rename $FILE_TMP $FILE_ZIP
|
6
batch/clients/stockKadealExport.sql
Normal file
6
batch/clients/stockKadealExport.sql
Normal file
@ -0,0 +1,6 @@
|
||||
SELECT siret, siege, raisonSociale, enseigne, sigle, marques,
|
||||
adr_num, adr_btq, adr_typeVoie, adr_libVoie, adresse1, adresse2, adresse3, adresse4, adr_cp, adr_ville,
|
||||
tel, fax, mail, /*web,*/ NAF, tca, tcaconso, datebilan, eff_entrep, dirigeant1, dirigeant1fct,
|
||||
dirigeant2, dirigeant2fct, activite
|
||||
FROM dump_kadeal e
|
||||
LEFT JOIN bodacc_activite ON e.siren=bodacc_activite.siren;
|
47
batch/config/bilans_alize.ini
Normal file
47
batch/config/bilans_alize.ini
Normal file
@ -0,0 +1,47 @@
|
||||
; Informations sur la commune
|
||||
depLu="-{}-1-11-{}-"
|
||||
comLu="-{}-1-12-{}-"
|
||||
popLu="-{}-1-14-{}-"
|
||||
tailleLu="-{}-3-9-{}-"
|
||||
; Ratio Valeurs Brutes
|
||||
R801="-{}-1-27-{}-";Total des produits de fonctionnement=A
|
||||
R802="-{}-1-32-{}-"; Dont impôts locaux
|
||||
R803="-{}-1-38-{}-"; Autres impots & taxes
|
||||
R804="-{}-1-44-{}-"; dotation globale de fonctionnement
|
||||
R805="-{}-1-50-{}-";Total des charges de fonctionnement=B
|
||||
R806="-{}-1-55-{}-"; dont charges de personnel
|
||||
R807="-{}-1-61-{}-"; Achats et charges externes
|
||||
R808="-{}-1-67-{}-"; charges financières
|
||||
R809="-{}-1-73-{}-"; contingents
|
||||
R810="-{}-1-79-{}-"; subventions versées
|
||||
R811="-{}-1-85-{}-";Résultat comptable A-B=R
|
||||
R812="-{}-1-96-{}-";Total des resources d'investissement=C
|
||||
R813="-{}-1-101-{}-"; Dont emprunts bancaires et dettes assimilées
|
||||
R814="-{}-1-107-{}-"; subventions recues
|
||||
R815="-{}-1-113-{}-"; FCTVA
|
||||
R816="-{}-1-73-{}-"; retour des biens affectés ?????? TOUS À "73" LIGNE 3373 ??????????????????????????
|
||||
R817="-{}-1-125-{}-";TOTAL DES EMPLOIS D'INVESTISSEMENT=D
|
||||
R818="-{}-1-130-{}-"; dont dépenses d'équipement
|
||||
R819="-{}-1-136-{}-"; remboursement d'emprunts et dettes
|
||||
R820="-{}-1-73-{}-"; charges a répartir
|
||||
R821="-{}-1-73-{}-"; immobilisations affectées
|
||||
R822="-{}-1-154-{}-";Besoin ou capacité de financement =D-C
|
||||
R823="-{}-1-159-{}-"; en+ solde des opérations pour le compte de tiers
|
||||
R824="-{}-1-164-{}-";'='besoin ou capacité de financement de la section investissement=E
|
||||
R825="-{}-1-44-{}-";Résultat d'ensemble = R=E
|
||||
R826="-{}-1-44-{}-";excédent brut de fonctionnement
|
||||
R827="-{}-1-44-{}-";Capacité d'autofinancement CAF
|
||||
R828="-{}-1-44-{}-";CAF nette du remboursement en capital des emprunts
|
||||
R829="-{}-1-44-{}-";Encours total de la dette au 31/12
|
||||
R830="-{}-1-44-{}-";annuité de la dette
|
||||
R831="-{}-1-44-{}-";FONDS DE ROULEMENT
|
||||
R832="-{}-1-44-{}-";Taxe d'habitation(base)
|
||||
R833="-{}-1-44-{}-";Taxe foncière sur les propriété baties(base)
|
||||
R834="-{}-1-44-{}-";Taxe foncière sur les propriété non baties(base)
|
||||
R835="-{}-1-44-{}-";Cotisation foncière des entreprises
|
||||
R836="-{}-1-44-{}-";Taxe d'habitation(tx & produits)
|
||||
R837="-{}-1-44-{}-";Taxe foncière sur les propriété baties(tx & produits)
|
||||
R838="-{}-1-44-{}-";Taxe foncière sur les propriété non baties(tx & produits)
|
||||
R839="-{}-1-44-{}-";Compensation relai 2010(tx & produits)
|
||||
R840="-{}-1-44-{}-";cotis fonc au profit état 2010(tx & produits)
|
||||
R841="-{}-1-44-{}-";potentiel fiscal
|
11
batch/config/bilans_alize.prev
Normal file
11
batch/config/bilans_alize.prev
Normal file
@ -0,0 +1,11 @@
|
||||
; Informations sur la commune
|
||||
depLu="-{}-1-11-{}-"
|
||||
comLu="-{}-1-12-{}-"
|
||||
popLu="-{}-1-14-{}-"
|
||||
tailleLu="-{}-3-9-{}-"
|
||||
; Ratio Valeurs Brutes
|
||||
R801="-{}-1-27-{}-"
|
||||
R802="-{}-1-32-{}-"
|
||||
R803="-{}-1-38-{}-"
|
||||
R804="-{}-1-44-{}-";blabla
|
||||
|
1222
batch/config/php_batch_sd.ini
Normal file
1222
batch/config/php_batch_sd.ini
Normal file
File diff suppressed because it is too large
Load Diff
@ -72,8 +72,15 @@ if ($all) {
|
||||
$baseInpi=$baseBodacc=$baseBodaccHisto=true;
|
||||
}
|
||||
|
||||
$iDb=new WDB('jo');
|
||||
$iDbSdv1=new WDB('sdv1');
|
||||
$ret = $iDbSdv1->insert('sphinx_idx', array('nom'=>'jo.dirigeants', 'createBegin'=>date('YmdHis')));
|
||||
$consolidationId = null;
|
||||
if (is_int($ret) ) {
|
||||
$consolidationId = $ret;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Sphinx Idx id=".$consolidationId.EOL;
|
||||
|
||||
$iDb=new WDB('jo');
|
||||
echo date ('Y/m/d - H:i:s')." - Création de la nouvelle table dirigeants.".EOL;
|
||||
if (!$iDb->query("DROP TABLE IF EXISTS jo.dirigeants_tmp;"))
|
||||
die($iDb->getLastError());
|
||||
@ -155,6 +162,13 @@ if ($baseBodaccHisto) {
|
||||
$strMailInfo.=date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants BODACC Histo consolidés.".EOL;
|
||||
}
|
||||
|
||||
$iDb->query("ALTER TABLE jo.dirigeants_tmp PACK_KEYS=1;");
|
||||
echo date ('Y/m/d - H:i:s')." - Commpression des Index de la table OK.".EOL;
|
||||
|
||||
if ( $consolidationId !== null ) {
|
||||
$ret = $iDbSdv1->update('sphinx_idx', array('createEnd'=>date('YmdHis')), "id=$consolidationId");
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - FIN de la consolidation de la base Dirigeants".EOL;
|
||||
$strMailInfo.=date ('Y/m/d - H:i:s')." - FIN de la consolidation de la base Dirigeants".EOL;
|
||||
|
@ -17,7 +17,7 @@ include_once(FWK_PATH.'mail/sendMail.php');
|
||||
$all=true;
|
||||
$joAsso=$joBodacc=$baseInsee=$baseInpi=$reset=$pageRankOnly=$iGreffe=$iLiens=false;
|
||||
// Compteurs
|
||||
$nbInsertAsso=$nbInsertRncs1=$nbInsertRncs2=$nbInsertBod=$nbConjoints=$nbInsertBodNS=$nbInsertGreffes=$nbInsertMarques=$nbUpdateAsso=$nbInsertLiens=0;
|
||||
$nbInsertAsso=$nbInsertAssoAdr2=$nbInsertRncs1=$nbInsertRncs2=$nbInsertBod=$nbConjoints=$nbInsertBodNS=$nbInsertGreffes=$nbInsertMarques=$nbUpdateAsso=$nbInsertLiens=0;
|
||||
|
||||
$table='etablissements_tmp';
|
||||
|
||||
@ -139,57 +139,68 @@ $iInsee=new MInsee();
|
||||
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Création de la nouvelle table établissements.".EOL;
|
||||
|
||||
$iDbSdv1=new WDB('sdv1');
|
||||
$ret = $iDbSdv1->insert('sphinx_idx', array('nom'=>'jo.etablissements', 'createBegin'=>date('YmdHis')));
|
||||
$consolidationId = null;
|
||||
if (is_int($ret) ) {
|
||||
$consolidationId = $ret;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Sphinx Idx id=".$consolidationId.EOL;
|
||||
|
||||
if (!$iDb->query("DROP TABLE IF EXISTS jo.etablissements_tmp;"))
|
||||
die($iDb->getLastError());
|
||||
|
||||
if (!$iDb->query("CREATE TABLE jo.etablissements_tmp (
|
||||
`id` bigint(20) NOT NULL auto_increment,
|
||||
`source` tinyint(3) unsigned zerofill NOT NULL,
|
||||
`source_id` bigint(20) unsigned NOT NULL,
|
||||
`triCode` varchar(6) NOT NULL,
|
||||
`autre_id` varchar(15) NOT NULL,
|
||||
`siren` int(9) unsigned zerofill NOT NULL,
|
||||
`nic` mediumint(5) unsigned zerofill NOT NULL,
|
||||
`actif` tinyint(1) NOT NULL,
|
||||
`siege` tinyint(1) unsigned NOT NULL,
|
||||
`raisonSociale` varchar(80) NOT NULL,
|
||||
`enseigne` varchar(40) NOT NULL,
|
||||
`sigle` varchar(20) NOT NULL,
|
||||
`identite_pre` varchar(255) NOT NULL,
|
||||
`marques` TEXT NOT NULL,
|
||||
`adr_num` smallint(4) unsigned zerofill NOT NULL,
|
||||
`adr_btq` char(1) NOT NULL,
|
||||
`adr_typeVoie` char(4) NOT NULL,
|
||||
`adr_libVoie` varchar(32) NOT NULL,
|
||||
`adr_comp` varchar(38) NOT NULL,
|
||||
`adr_cp` mediumint(5) unsigned zerofill NOT NULL,
|
||||
`adr_ville` varchar(32) NOT NULL,
|
||||
`adr_dep` char(3) NOT NULL,
|
||||
`adr_com` smallint(3) unsigned zerofill NOT NULL,
|
||||
`tel` bigint(10) unsigned zerofill NOT NULL,
|
||||
`fax` bigint(10) unsigned zerofill NOT NULL,
|
||||
`cj` smallint(4) unsigned zerofill NOT NULL,
|
||||
`capital` bigint(15) unsigned zerofill NOT NULL,
|
||||
`capitalDev` char(3) NOT NULL,
|
||||
`capitalSrc` tinyint(3) unsigned zerofill NOT NULL,
|
||||
`ape_etab` char(5) NOT NULL,
|
||||
`ape_entrep` char(5) NOT NULL,
|
||||
`age_entrep` tinyint(3) unsigned NOT NULL,
|
||||
`age_etab` tinyint(3) unsigned NOT NULL,
|
||||
`tca` tinyint(1) unsigned zerofill NULL,
|
||||
`tcaexp` tinyint(1) unsigned zerofill NOT NULL,
|
||||
`teff_entrep` tinyint(2) unsigned NULL,
|
||||
`teff_etab` tinyint(2) unsigned NULL,
|
||||
`rang` smallint unsigned NOT NULL,
|
||||
`dateInsert` datetime NOT NULL,
|
||||
`dateUpdate` timestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `source` (`source`,`source_id`),
|
||||
KEY `idxTel` (`tel`),
|
||||
KEY `idxFax` (`fax`),
|
||||
KEY `idxSiret` (`siren`,`nic`,`actif`,`siege`),
|
||||
KEY `idxAutreId` (`autre_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;", true))
|
||||
id bigint(20) NOT NULL auto_increment COMMENT 'Identifiant dans la table (pas unique pour l''établissement)',
|
||||
source tinyint(3) unsigned zerofill NOT NULL COMMENT 'Code source de l''entité/établissement',
|
||||
source_id bigint(20) unsigned NOT NULL COMMENT 'Identifiant de l''établissement/entité dans la source (source+source_id étant invariable=identifiant S&D)',
|
||||
triCode varchar(6) NOT NULL COMMENT 'Code Tribunal de l''entreprise',
|
||||
autre_id varchar(15) NOT NULL COMMENT 'Autre identifiant comme Numéro RCS, Waldec/RNA',
|
||||
siren INT(9) unsigned zerofill NOT NULL COMMENT 'SIREN de l''entreprise',
|
||||
nic mediumint(5) unsigned zerofill NOT NULL COMMENT 'NIC de l''établissement (SIREN+NIC=SIRET)',
|
||||
actif tinyint(1) unsigned NOT NULL COMMENT 'Etablissement actif ou inactif (1=actif, 0=inactif)',
|
||||
siege tinyint(1) unsigned NOT NULL COMMENT 'Type d''établissement (0=Secondaire, 1=Siège, 2=Principal)',
|
||||
raisonSociale varchar(160) NOT NULL COMMENT 'Raison Sociale de l''entreprise',
|
||||
enseigne varchar(200) NOT NULL COMMENT 'Enseigne de l''établissement',
|
||||
sigle varchar(20) NOT NULL COMMENT 'Sigle de l''entreprise',
|
||||
identite_pre TEXT NOT NULL COMMENT 'Liste des Raisons Sociales précédentes de l''entreprise',
|
||||
marques TEXT NOT NULL COMMENT 'Liste des marques déposées sur le SIREN',
|
||||
adr_num SMALLINT(4) UNSIGNED ZEROFILL NOT NULL,
|
||||
adr_btq CHAR(1) NOT NULL,
|
||||
adr_typeVoie CHAR(4) NOT NULL,
|
||||
adr_libVoie VARCHAR(32) NOT NULL,
|
||||
adr_comp VARCHAR(38) NOT NULL,
|
||||
adr_cp mediumint(5) UNSIGNED ZEROFILL NOT NULL,
|
||||
adr_ville VARCHAR(32) NOT NULL,
|
||||
adr_dep CHAR(3) NOT NULL,
|
||||
adr_com SMALLINT(3) UNSIGNED ZEROFILL NOT NULL,
|
||||
rivoli CHAR(5) NOT NULL,
|
||||
tel bigint(10) UNSIGNED ZEROFILL NOT NULL,
|
||||
fax bigint(10) UNSIGNED ZEROFILL NOT NULL,
|
||||
cj SMALLINT(4) UNSIGNED ZEROFILL NOT NULL,
|
||||
capital bigint(15) UNSIGNED ZEROFILL NOT NULL,
|
||||
capitalDev CHAR(3) NOT NULL,
|
||||
capitalSrc TINYINT(3) UNSIGNED ZEROFILL NOT NULL,
|
||||
ape_etab CHAR(5) NOT NULL,
|
||||
ape_entrep CHAR(5) NOT NULL,
|
||||
age_entrep TINYINT(3) UNSIGNED NOT NULL,
|
||||
age_etab TINYINT(3) UNSIGNED NOT NULL,
|
||||
tca TINYINT(1) UNSIGNED ZEROFILL NULL COMMENT 'Tranche de Chiffre d''Affaires (INSEE)',
|
||||
tcaexp TINYINT(1) UNSIGNED ZEROFILL NOT NULL COMMENT 'Tranche de Chiffre d''Affaires à l''export (INSEE)',
|
||||
teff_entrep TINYINT(2) UNSIGNED NULL,
|
||||
teff_etab TINYINT(2) UNSIGNED NULL,
|
||||
rang SMALLINT(5) UNSIGNED NOT NULL COMMENT 'Nombre de consultation de l''entreprise dans la base S&D',
|
||||
dateInsert DATETIME NOT NULL,
|
||||
dateUpdate timestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY idxIdSphinx(id),
|
||||
UNIQUE KEY idxSource (source, source_id),
|
||||
KEY idxTel(tel),
|
||||
KEY idxFax(fax),
|
||||
KEY idxSiret(siren,nic,actif,siege),
|
||||
KEY idxAutreId(autre_id)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT 'Liste des établissements (Pour la recherche)';", true))
|
||||
/** @todo Si la construction de la table est trop longue, faire un ALTER TABLE ... PACK_KEYS=1 à la fin du chargement des données **/
|
||||
die($iDb->getLastError());
|
||||
|
||||
$strMailInfo=date ('Y/m/d - H:i:s')." - Consolidation des établissements.".EOL;
|
||||
@ -225,11 +236,11 @@ if ($baseInsee) {
|
||||
' ',REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(ENSEIGNE,'@','A'), '&',' ET '),'/',''),',',''),'-',''),'.','')
|
||||
*/
|
||||
$iDb->query("INSERT INTO jo.etablissements_tmp SELECT 0 AS id, '2' AS source, id AS source_id, e.triCode AS triCode, IF(e.numRC2 IS NOT NULL OR e.numRC2<>'', e.numRC2, i.NUMRC) AS autre_id, i.SIREN AS siren, i.NIC AS nic, i.ACTIF%10 as actif,
|
||||
SIEGE as siege, i.NOM as raisonSociale, i.ENSEIGNE AS enseigne, i.SIGLE AS sigle, TRIM(CONCAT_WS(' ',i.IDENTITE_PRE,i.NOM2,e.raisonSociale,e.sigle)) AS identite_pre, '' AS marques, ADR_NUMVOIE as adr_num,
|
||||
SIEGE as siege, IF(LENGTH(i.NOMEN_LONG)>0, i.NOMEN_LONG, i.NOM) AS raisonSociale, i.ENSEIGNE AS enseigne, i.SIGLE AS sigle, TRIM(CONCAT_WS(' ',i.IDENTITE_PRE,i.NOM,i.NOM2,e.raisonSociale,e.sigle,i.NOMEN_LONG,i.NOM_COM)) AS identite_pre, '' AS marques, ADR_NUMVOIE as adr_num,
|
||||
ADR_BTQ as adr_btq, ADR_TYPVOIE as adr_typevoie, ADR_LIBVOIE as adr_libvoie, ADR_COMP as adr_comp,
|
||||
ADR_CP as adr_cp, ADR_LIBCOM as adr_ville, IF(ADR_DEP=97 OR ADR_DEP=98, SUBSTRING(ADR_CP,1,3), ADR_DEP) AS adr_dep, ADR_COM as adr_com,
|
||||
ADR_CP as adr_cp, ADR_LIBCOM as adr_ville, IF(ADR_DEP=97 OR ADR_DEP=98, SUBSTRING(ADR_CP,1,3), ADR_DEP) AS adr_dep, ADR_COM as adr_com, CODEVOIE AS rivoli,
|
||||
TEL as tel, FAX as fax, i.CJ as cj, IF(e.capitalMontant IS NOT NULL OR e.capitalMontant>0, e.capitalMontant, i.CAPITAL) AS capital, IF(e.capitalDevIso IS NOT NULL OR e.capitalDevIso<>'', e.capitalDevIso, i.CAPITAL_DEV) AS capitalDev, IF(e.capitalMontant IS NOT NULL OR e.capitalMontant>0, 5, 2) AS capitalSrc, APE_ETAB as ape_etab, APE_ENT as apen_entrep, YEAR(NOW())-YEAR(DCREN) as age_entrep, YEAR(NOW())-YEAR(DCRET) as age_etab,
|
||||
TCA as tca, TCAEXP as tcaexp, IF(TEFF_ENT='NN', NULL, TEFF_ENT*1) AS teff_entrep, IF(TEFF_ET='NN', NULL, TEFF_ET*1) AS teff_etab,
|
||||
TCA as tca, TCAEXP as tcaexp, IF(TEFF_ENT='NN', NULL, TEFF_ENT*1) AS teff_entrep, IF(TEFF_ET='NN', NULL, TEFF_ET*1) AS teff_etab,
|
||||
0 as rank, DATE_MAJ as dateInsert,
|
||||
0 as dateUpdate FROM insee.identite i LEFT JOIN jo.rncs_entrep e ON i.siren=e.siren");
|
||||
$retTmp=$iDb->select('jo.etablissements_tmp', 'COUNT(*) AS nbEtab', '1', false,MYSQL_ASSOC);
|
||||
@ -354,6 +365,8 @@ if ($baseInpi) {
|
||||
'adr_cp'=>$tabEt['cp'],
|
||||
'adr_ville'=>$tabEt['commune'],
|
||||
'adr_dep'=>$dep,
|
||||
// 'adr_com'=>
|
||||
// 'rivoli'=>$iInsee->getCodeVoieRivoli($ligne['insDEPCOM'], $ligne['insTYPVOIE'], $ligne['insLIBVOIE']);
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$tabEntrep['cj'],
|
||||
@ -417,6 +430,8 @@ if ($baseInpi) {
|
||||
'adr_cp'=>$tabEt['cp'],
|
||||
'adr_ville'=>$tabEt['commune'],
|
||||
'adr_dep'=>$dep,
|
||||
// 'adr_com'=>
|
||||
// 'rivoli'=>$iInsee->getCodeVoieRivoli($ligne['insDEPCOM'], $ligne['insTYPVOIE'], $ligne['insLIBVOIE']);
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$tabEntrep['cj'],
|
||||
@ -553,6 +568,8 @@ if ($joBodacc) {
|
||||
'adr_cp'=>$adr_cp,
|
||||
'adr_ville'=>$adr_ville,
|
||||
'adr_dep'=>$dep,
|
||||
// 'adr_com'=>
|
||||
// 'rivoli'=>$iInsee->getCodeVoieRivoli($ligne['insDEPCOM'], $ligne['insTYPVOIE'], $ligne['insLIBVOIE']);
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$cj,
|
||||
@ -689,6 +706,8 @@ if ($joBodacc) {
|
||||
'adr_cp'=>$adr_cp,
|
||||
'adr_ville'=>$adr_ville,
|
||||
'adr_dep'=>$dep,
|
||||
// 'adr_com'=>
|
||||
// 'rivoli'=>$iInsee->getCodeVoieRivoli($ligne['insDEPCOM'], $ligne['insTYPVOIE'], $ligne['insLIBVOIE']);
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$cj,
|
||||
@ -987,6 +1006,8 @@ if ($joAsso) {
|
||||
'adr_cp'=>@$adr['cp'],
|
||||
'adr_ville'=>trim(strtoupper(@$adr['ville'])),
|
||||
'adr_dep'=>$dep,
|
||||
// 'adr_com'=>
|
||||
// 'rivoli'=>$iInsee->getCodeVoieRivoli($ligne['insDEPCOM'], $ligne['insTYPVOIE'], $ligne['insLIBVOIE']);
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$cj,
|
||||
@ -997,16 +1018,43 @@ if ($joAsso) {
|
||||
'ape_entrep'=>$naf,
|
||||
'dateInsert'=>$dateInsert,
|
||||
);
|
||||
|
||||
$ret=$iDb->insert('etablissements_tmp',$tabEtab);
|
||||
if (!$ret && mysql_errno()<>1062) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR ". mysql_errno()." : Insertion des informations Associations sur le siren ". $tabBodacc['siren'] .' : '. $tabBodacc['raisonSociale'] .' ('. $tabBodacc['id'].') !'.EOL;
|
||||
echo date ('Y/m/d - H:i:s'). mysql_error();
|
||||
} else
|
||||
$nbInsertAsso++;
|
||||
|
||||
/** On enregistre l'autre adresse de l'association **/
|
||||
if ($tabAsso['Assoc_NAdresse']<>'' && $tabAsso['Assoc_Adresse']<>'') {
|
||||
$adr=$iInsee->structureVoie($tabAsso['Assoc_Adresse']);
|
||||
$adrComp=strtoupper(@$adr['adrComp0']);
|
||||
if (@$adr['adrComp1']<>'') $adrComp.=' '.strtoupper(@$adr['adrComp1']);
|
||||
$adr['adrComp0']=$adrComp;
|
||||
$dep=floor(@$adr['cp']/1000);
|
||||
if ($dep>96) $dep=floor(@$adr['cp']/100);
|
||||
$tabEtab['source'] = 3;
|
||||
$tabEtab['adr_num'] = @$adr['num'];
|
||||
$tabEtab['adr_btq'] = @$adr['indRep'];
|
||||
$tabEtab['adr_typeVoie']= @$adr['typeVoie'];
|
||||
$tabEtab['adr_libVoie'] = strtoupper(@$adr['libVoie']);
|
||||
$tabEtab['adr_comp'] = @$adr['adrComp0'];
|
||||
$tabEtab['adr_cp'] = @$adr['cp'];
|
||||
$tabEtab['adr_ville'] = trim(strtoupper(@$adr['ville']));
|
||||
$tabEtab['adr_dep'] = $dep;
|
||||
|
||||
$ret=$iDb->insert('etablissements_tmp',$tabEtab);
|
||||
if (!$ret && mysql_errno()<>1062) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR ". mysql_errno()." : Insertion des informations Associations sur le siren ". $tabBodacc['siren'] .' : '. $tabBodacc['raisonSociale'] .' ('. $tabBodacc['id'].') !'.EOL;
|
||||
echo date ('Y/m/d - H:i:s'). mysql_error();
|
||||
} else {
|
||||
$nbInsertAsso++;
|
||||
$nbInsertAssoAdr2++;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbInsertAsso établissements Associations consolidés.".EOL;
|
||||
$strMailInfo.=date ('Y/m/d - H:i:s')." - Il y a $nbInsertAsso établissements Associations consolidés.".EOL;
|
||||
}
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbInsertAsso établissements Associations consolidés (dont $nbInsertAssoAdr2 suite à déménagement).".EOL;
|
||||
$strMailInfo.=date ('Y/m/d - H:i:s')." - Il y a $nbInsertAsso établissements Associations consolidés (dont $nbInsertAssoAdr2 suite à déménagement).".EOL;
|
||||
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour de la nouvelle table établissements depuis le JO Association Sirené (Waldec, etc...)".EOL;
|
||||
@ -1020,7 +1068,7 @@ if ($joAsso) {
|
||||
while ($tabAsso=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$tabEtab=array( 'triCode'=>$tabAsso['Sous_Prefecture'], // Gérer la table des préfecture
|
||||
'autre_id'=>$tabAsso['Waldec'],
|
||||
'identite_pre'=>$tabAsso['Assoc_Nom'],
|
||||
// 'identite_pre'=>$tabAsso['Assoc_Nom'],
|
||||
);
|
||||
$ret=$iDb->update('etablissements_tmp',$tabEtab, 'siren='.$tabAsso['siren']);
|
||||
if (!$ret || mysql_errno()<>0) {
|
||||
@ -1075,6 +1123,8 @@ if ($iGreffe) {
|
||||
'adr_cp'=>$adr_cp,
|
||||
'adr_ville'=>strtoupper(@$tabBodacc['ville']),
|
||||
'adr_dep'=>$dep,
|
||||
// 'adr_com'=>
|
||||
// 'rivoli'=>$iInsee->getCodeVoieRivoli($ligne['insDEPCOM'], $ligne['insTYPVOIE'], $ligne['insLIBVOIE']);
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$tabBodacc['fj'],
|
||||
@ -1127,7 +1177,7 @@ if ($iLiens) {
|
||||
$com='';
|
||||
}
|
||||
|
||||
$tabEtab=array( 'source'=>6,
|
||||
$tabEtab=array( 'source'=>7,
|
||||
'source_id'=>$tabBodacc['id'],
|
||||
'siren'=>$tabBodacc['siren'],
|
||||
'nic'=>0,
|
||||
@ -1243,6 +1293,8 @@ while ($tabRank=$iDbRanks->fetch(MYSQL_ASSOC)) {
|
||||
|
||||
if (!$pageRankOnly) {
|
||||
echo date ('Y/m/d - H:i:s')." - Mise en place des tables pour l'indexation.".EOL;
|
||||
// $iDb->query("ALTER TABLE jo.etablissements_tmp PACK_KEYS=1;");
|
||||
// echo date ('Y/m/d - H:i:s')." - Commpression des Index de la table OK.".EOL;
|
||||
$iDb->query("DROP TABLE jo.etablissements_old;");
|
||||
echo date ('Y/m/d - H:i:s')." - Suppression de la table etablissements_old : Debug erreur n°".mysql_errno().' - '.mysql_error().EOL;
|
||||
//$iDb->query("RENAME TABLE jo.etablissements TO jo.etablissements_old;");
|
||||
@ -1250,6 +1302,11 @@ if (!$pageRankOnly) {
|
||||
//$iDb->query("RENAME TABLE jo.etablissements_tmp TO jo.etablissements;");
|
||||
//echo date ('Y/m/d - H:i:s')." - Passage en production de la table tmp : Debug erreur n°".mysql_errno().' - '.mysql_error().EOL;
|
||||
}
|
||||
|
||||
if ( $consolidationId !== null ) {
|
||||
$ret = $iDbSdv1->update('sphinx_idx', array('createEnd'=>date('YmdHis')), "id=$consolidationId");
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - FIN de la consolidation de la base Etablissements".EOL;
|
||||
$strMailInfo.=date ('Y/m/d - H:i:s')." - FIN de la consolidation de la base Etablissements".EOL;
|
||||
|
138
batch/convertCsv2Txt.php
Normal file
138
batch/convertCsv2Txt.php
Normal file
@ -0,0 +1,138 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
$modeDebug=false;
|
||||
$separator='/t';
|
||||
$finLigne=false;
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]... FICHIER
|
||||
Conversion d'un fichier CSV en fichier Plat format Fixe.
|
||||
|
||||
Options :
|
||||
-v Mode bavard
|
||||
-s=CHAR séparateur de champs (virgule, point-virgule*, /t=TAB, /p=|, etc...)
|
||||
-c=CHAR caractère encadrant les zones alphanumériques (inopérationnel)
|
||||
-l=XXXX Taille maximale d'une ligne
|
||||
-f=/n Fin de ligne Linux par défaut (Windows /r/n)
|
||||
|
||||
(*): Valeurs par défaut !
|
||||
";
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'v': $modeDebug=true; break;
|
||||
case 's': $separator=substr($argv[$i],3); break;
|
||||
case 'c': $chaine=substr($argv[$i],3); break;
|
||||
case 'l': $lenMaxLine=substr($argv[$i],3); break;
|
||||
case 'f': $finLigne=substr($argv[$i],3); break;
|
||||
case '-':
|
||||
case '?': die($strInfoScript); break;
|
||||
default: die('Option '. $argv[$i] . " inconnue !".EOL);
|
||||
}
|
||||
} else
|
||||
$fichier_csv[]=$argv[$i];
|
||||
}
|
||||
|
||||
if ($separator=='/t') {
|
||||
$separator="\t";
|
||||
echo "séparateur = TAB\n";
|
||||
} elseif ($separator=='/p') {
|
||||
$separator='|';
|
||||
echo "séparateur = PIPE\n";
|
||||
} elseif (!isset($separator) || $separator=='') {
|
||||
$separator=';';
|
||||
echo "séparateur = '$separator'\n";
|
||||
} else
|
||||
echo "séparateur = '$separator'\n";
|
||||
|
||||
if ($finLigne=='/r')
|
||||
$finLigne="\r";
|
||||
elseif ($finLigne=='/n')
|
||||
$finLigne="\n";
|
||||
elseif ($finLigne=='/r/n')
|
||||
$finLigne="\r\n";
|
||||
else
|
||||
$finLigne=EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s') . " - Début de la conversion...".EOL;
|
||||
|
||||
foreach ($fichier_csv as $iFichier=>$nomFichier) {
|
||||
|
||||
$fp=fopen($nomFichier, 'r');
|
||||
if (!$fp) {
|
||||
echo date ('Y/m/d - H:i:s')." - Impossible d'ouvrir le fichier : $nomFichier !".EOL;
|
||||
echo date ('Y/m/d - H:i:s') . " - Fin du traitement".EOL;
|
||||
die();
|
||||
}
|
||||
|
||||
$nbLignes=$iLigne=0;
|
||||
$tabEntete=$tabTailles=$tabLignes=$tabEntiers=array();
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début du traitement du fichier $nomFichier...".EOL;
|
||||
|
||||
while (($data = fgetcsv($fp, 10000, $separator)) !== FALSE)
|
||||
{
|
||||
$nbLignes++;
|
||||
|
||||
if ($nbLignes==1)
|
||||
{ // L'entête contient la structure du fichier
|
||||
// On compte le nombre de colonnes du fichier
|
||||
$nbColonnes=count($data);
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier '$nomFichier' contient $nbColonnes colonnes.".EOL;
|
||||
for($i=0; $i<$nbColonnes; $i++) {
|
||||
$tabEntete[$i]=$data[$i];
|
||||
$tabEntiers[$i]=1;
|
||||
}
|
||||
} else {
|
||||
// Lecture des tailles maximales des colonnes
|
||||
for($i=0; $i<$nbColonnes; $i++) {
|
||||
if (strlen($data[$i])>@$tabTailles[$i]) {
|
||||
$tabTailles[$i]=strlen($data[$i]);
|
||||
$tabLignes[$i]=$nbLignes;
|
||||
}
|
||||
if ($data[$i]<>'' && strtolower($data[$i])<>strtoupper($data[$i])) $tabEntiers[$i]=0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier '$nomFichier' contient $nbLignes lignes.".EOL;
|
||||
|
||||
foreach ($tabEntete as $i=>$entete) {
|
||||
if ($tabEntiers[$i]==0) $strInt='alphanum. ';
|
||||
else $strInt='num. ';
|
||||
echo "$i - $entete : ". $tabTailles[$i]. " caractères $strInt(ligne ".$tabLignes[$i].')'.EOL;
|
||||
}
|
||||
|
||||
rewind($fp);
|
||||
$fpOut=fopen(str_replace('.csv','.txt',$nomFichier), 'w');
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début de conversion du fichier en texte...".EOL;
|
||||
|
||||
while (($data = fgetcsv($fp, 10000, $separator)) !== FALSE)
|
||||
{
|
||||
$iLigne++;
|
||||
$str='';
|
||||
|
||||
if ($iLigne>1) {
|
||||
// Lecture des tailles maximales des colonnes
|
||||
for($i=0; $i<$nbColonnes; $i++) {
|
||||
if ($tabEntiers[$i]==0)
|
||||
$str.=initstr($data[$i], $tabTailles[$i]);
|
||||
else
|
||||
$str.=initstr($data[$i], $tabTailles[$i], '0', ALIGN_RIGHT);
|
||||
}
|
||||
//fwrite($fpOut, $str.EOL);
|
||||
fwrite($fpOut, $str.$finLigne);
|
||||
}
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Conversion réussie du fichier '$nomFichier' en fichier plat ($iLigne lignes).".EOL;
|
||||
fclose ($fp);
|
||||
fclose ($fpOut);
|
||||
}
|
||||
?>
|
@ -39,6 +39,7 @@ Options :
|
||||
-v Mode verbose
|
||||
-n Ajout des nics A6CMO
|
||||
-x Formater la sortie standard en CSV pour exploitation
|
||||
-i Conversion de la fiche d'identité A6CMO (200)
|
||||
";
|
||||
|
||||
$tabFichier=array();
|
||||
@ -268,16 +269,16 @@ foreach ($tabFichier as $iFic=>$fichier) {
|
||||
|
||||
$numRC = trim(substr($ligne, 31 , 10 )); // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
$raisonS= trim(substr($ligne, 73 , 160 )); // Raison sociale de l'entreprise
|
||||
|
||||
/* $siren = substr($ligne, 3 , 10 ); // ID Numéro unique d'identification interne d'un établissement S&D
|
||||
/*
|
||||
$siren = substr($ligne, 3 , 10 ); // ID Numéro unique d'identification interne d'un établissement S&D
|
||||
$siren = substr($ligne, 27 , 3 ); // SOURCE Source de la fiche d'identité
|
||||
$siren = substr($ligne, 30 , 1 ); // SIRETVALIDE Siren/siret valide
|
||||
*/
|
||||
$dateMaj= substr($ligne, 47 , 8 ); // DATEMAJ Date de la dernière mise à jour dans la base S&D
|
||||
$actifEt = substr($ligne, 55 , 1 ); // ACTIF Établissement juridiquement actif
|
||||
// $siren = substr($ligne, 56 , 1 ); // ACTIFECO Établissement économiquement actif
|
||||
$actifEco= substr($ligne, 56 , 1 ); // ACTIFECO Établissement économiquement actif
|
||||
$sitJur = trim(substr($ligne, 57 , 2 )); // SITJUR Situation Juridique de l'entreprise
|
||||
// $siren = substr($ligne, 59 , 3 ); // EVE Dernier événement Insee recensé
|
||||
$codeEve = substr($ligne, 59 , 3 ); // EVE Dernier événement Insee recensé
|
||||
$dateEve = substr($ligne, 62 , 8 ); // DATEVE Date du dernier événement Insee recensé
|
||||
// $siren = substr($ligne, 70 , 2 ); // TYPETAB Type d'établissement concerné par l'événement
|
||||
$siege = substr($ligne, 72 , 1 ); // SIEGE Établissement siège, secondaire ou principal
|
||||
@ -339,23 +340,24 @@ foreach ($tabFichier as $iFic=>$fichier) {
|
||||
$dateImma = substr($ligne, 1073 , 8 ); // DATEIMMAT Date d'immatriculation de l'entreprise au RCS
|
||||
$dateRad = substr($ligne, 1081 , 8 ); // DATERAD Date de radiation de l'entreprise du RCS
|
||||
$capital = trim(substr($ligne, 1089 , 15 ))*1; // CAPITAL Montant du capital de l'entreprise
|
||||
// $siren = substr($ligne, 1104 , 1 ); // CAPITALTYPE Type de capital
|
||||
$capitalTyp= substr($ligne, 1104 , 1 ); // CAPITALTYPE Type de capital
|
||||
$capitalDev= trim(substr($ligne, 1105 , 3 )); // CAPITALDEV Devise du capital
|
||||
$cj = substr($ligne, 1108 , 4 ); // CJ Catégorie Juridique de l'entreprise
|
||||
$civilite= trim(substr($ligne, 1112 , 1 )); // CIVILITE Civilité de l'entreprise si Personne Physique
|
||||
$nbEtab = trim(substr($ligne, 1113 , 4 ))*1; // NBETAB Nombre d'établissements actifs de l'entreprise
|
||||
$tca= substr($ligne, 1117 , 1 ); // TCA Tranche de chiffre d'affaire
|
||||
$tcaExp = substr($ligne, 1118 , 1 ); // TCAEXP Tranche de chiffre d'affaire à l'export
|
||||
/* $siren = substr($ligne, 1119 , 6 ); // APRM Activité principale au registre des métiers
|
||||
$siren = substr($ligne, 1125 , 1 ); // MONOREG Mono-régionalité de l'entreprise
|
||||
$siren = substr($ligne, 1126 , 2 ); // REGIMP Principale région d'implantation de l'entreprise
|
||||
$siren = substr($ligne, 1128 , 1 ); // MONOACT Mono-activité de l'entreprise
|
||||
$siren = substr($ligne, 1129 , 5 ); // NICSIEGE Nic de l'établissement siège
|
||||
$siren = substr($ligne, 1134 , 1 ); // RECME Répertoire des Entreprises Contrôlées Majoritairement par l’État
|
||||
$siren = substr($ligne, 1135 , 14 ); // SIRETLIE Siret lié : prédécesseur, successeur, doublon, autre
|
||||
$siren = substr($ligne, 1149 , 1 ); // SIRETLIETYPE Type de sitet lié
|
||||
$siren = substr($ligne, 1150 , 5 ); // NICPREC Nic de l'établissement prédécesseur (dans le cadre d'un transfert)
|
||||
$siren = substr($ligne, 1155 , 5 ); // NICSUIV Nic de l'établissement successeur (dans le cadre d'un transfert)
|
||||
$aprm = substr($ligne, 1119 , 6 ); // APRM Activité principale au registre des métiers
|
||||
$monoreg= substr($ligne, 1125 , 1 ); // MONOREG Mono-régionalité de l'entreprise
|
||||
$regimp = substr($ligne, 1126 , 2 ); // REGIMP Principale région d'implantation de l'entreprise
|
||||
$monoact = substr($ligne, 1128 , 1 ); // MONOACT Mono-activité de l'entreprise
|
||||
$nicsiege = substr($ligne, 1129 , 5 ); // NICSIEGE Nic de l'établissement siège
|
||||
$recme = substr($ligne, 1134 , 1 ); // RECME Répertoire des Entreprises Contrôlées Majoritairement par l’État
|
||||
$siretLie = substr($ligne, 1135 , 14 ); // SIRETLIE Siret lié : prédécesseur, successeur, doublon, autre
|
||||
$siretLieType = substr($ligne, 1149 , 1 ); // SIRETLIETYPE Type de sitet lié
|
||||
$nicPrec = substr($ligne, 1150 , 5 ); // NICPREC Nic de l'établissement prédécesseur (dans le cadre d'un transfert)
|
||||
$nicSuiv = substr($ligne, 1155 , 5 ); // NICSUIV Nic de l'établissement successeur (dans le cadre d'un transfert)
|
||||
/*
|
||||
$siren = substr($ligne, 1160 , 2 ); // insDESTINAT Destination Insee
|
||||
$siren = substr($ligne, 1162 , 5 ); // insDEPCOMEN Code commune Insee du siège de l'entreprise
|
||||
$siren = substr($ligne, 1167 , 1 ); // insMNICSIEGE Indicateur de MAJ du NIC SIEGE
|
||||
@ -369,24 +371,26 @@ foreach ($tabFichier as $iFic=>$fichier) {
|
||||
$siren = substr($ligne, 1175 , 1 ); // insMSIGLE Indicateur de MAJ du SIGLE
|
||||
$siren = substr($ligne, 1176 , 1 ); // insMEXPLEN Indicateur de MAJ du caractère EXPLOITANT entrep
|
||||
$siren = substr($ligne, 1177 , 1 ); // insMEXPLET Indicateur de MAJ du caractère EXPLOITANT étab
|
||||
$siren = substr($ligne, 1178 , 1 ); // ADR_RNVP Type de Prestation RNVP si RNVP
|
||||
$siren = substr($ligne, 1179 , 38 ); // L1_nomen Ligne 1 : Nom de l'entreprise
|
||||
$siren = substr($ligne, 1217 , 38 ); // L2_COMP Ligne 2 : Complément de nom
|
||||
$siren = substr($ligne, 1255 , 38 ); // L3_CADR Ligne 3 : Complément d'adresse
|
||||
$siren = substr($ligne, 1293 , 38 ); // L4_VOIE Ligne 4 : Adresse
|
||||
$siren = substr($ligne, 1331 , 38 ); // L5_DISP Ligne 5 : Distribution spéciale
|
||||
$siren = substr($ligne, 1369 , 38 ); // L6_POST Ligne 6 : Code Postal, commune, etc..
|
||||
$siren = substr($ligne, 1407 , 38 ); // L7_ETRG Ligne 7 : Pays si étranger
|
||||
*/
|
||||
$adr_rnvp = substr($ligne, 1178 , 1 ); // ADR_RNVP Type de Prestation RNVP si RNVP
|
||||
$adrL1 = substr($ligne, 1179 , 38 ); // L1_nomen Ligne 1 : Nom de l'entreprise
|
||||
$adrL2 = substr($ligne, 1217 , 38 ); // L2_COMP Ligne 2 : Complément de nom
|
||||
$adrL3 = substr($ligne, 1255 , 38 ); // L3_CADR Ligne 3 : Complément d'adresse
|
||||
$adrL4 = substr($ligne, 1293 , 38 ); // L4_VOIE Ligne 4 : Adresse
|
||||
$adrL5 = substr($ligne, 1331 , 38 ); // L5_DISP Ligne 5 : Distribution spéciale
|
||||
$adrL6 = substr($ligne, 1369 , 38 ); // L6_POST Ligne 6 : Code Postal, commune, etc..
|
||||
$adrL7 = substr($ligne, 1407 , 38 ); // L7_ETRG Ligne 7 : Pays si étranger
|
||||
/*
|
||||
$siren = substr($ligne, 1445 , 4 ); // EAEANN Année de validité des rubriques de niveau ENTREP provenant des EAE*
|
||||
$siren = substr($ligne, 1449 , 5 ); // EAEAPEN Activité principale de l'entreprise issue des EAE
|
||||
$siren = substr($ligne, 1454 , 5 ); // inseaesec1n Activité secondaire n°1 de l'entreprise issue des EAE
|
||||
$siren = substr($ligne, 1459 , 5 ); // inseaesec2n Activité secondaire n°2 de l'entreprise issue des EAE
|
||||
$siren = substr($ligne, 1464 , 5 ); // inseaesec3n Activité secondaire n°3 de l'entreprise issue des EAE
|
||||
$siren = substr($ligne, 1469 , 5 ); // inseaesec4n Activité secondaire n°4 de l'entreprise issue des EAE
|
||||
$siren = substr($ligne, 1474 , 12 ); // GPSX Latitude en ° et décimales de ° (format WGS1984)
|
||||
$siren = substr($ligne, 1486 , 12 ); // GPSY Longitude en ° et décimales de ° (format WGS1984)
|
||||
$siren = substr($ligne, 1498 , 1 ); // GPSP Niveau de précision du géocodage (de 0 à 9)
|
||||
*/
|
||||
$gpsX = substr($ligne, 1474 , 12 ); // GPSX Latitude en ° et décimales de ° (format WGS1984)
|
||||
$gpsY = substr($ligne, 1486 , 12 ); // GPSY Longitude en ° et décimales de ° (format WGS1984)
|
||||
$gpSP = substr($ligne, 1498 , 1 ); // GPSP Niveau de précision du géocodage (de 0 à 9)
|
||||
$zus = trim(substr($ligne, 1499 , 10 )); // ZUS Identifiant de la Zone Urbaine Sensible
|
||||
$zru = trim(substr($ligne, 1509 , 10 )); // ZRU Identifiant de la Zone de Rénovation Urbaine
|
||||
$zfu = trim(substr($ligne, 1519 , 10 )); // ZFU Identifiant de la Zone Franche Urbaine
|
||||
@ -399,18 +403,16 @@ foreach ($tabFichier as $iFic=>$fichier) {
|
||||
$isin= trim(substr($ligne, 1576 , 12 )); // CODEISIN Code ISIN de l'entreprise si cotation en bourse
|
||||
$dir1nom = trim(substr($ligne, 1588 , 40 )); // PPDIR1NOM Nom du principal dirigeant
|
||||
$dir1prenom = trim(substr($ligne, 1628 , 30 )); // PPDIR1PRENOM Prénom du principal dirigeant
|
||||
/* $siren = substr($ligne, 1658 , 40 ); // PPDIR1NNAISS Nom de naissance du ppl dirigeant
|
||||
$siren = substr($ligne, 1698 , 8 ); // PPDIR1DNAISS Date de naissance
|
||||
$siren = substr($ligne, 1706 , 35 ); // PPDIR1LNAISS Lieu de Naissance
|
||||
*/
|
||||
$dir1naissn = substr($ligne, 1658 , 40 ); // PPDIR1NNAISS Nom de naissance du ppl dirigeant
|
||||
$dir1naissd = substr($ligne, 1698 , 8 ); // PPDIR1DNAISS Date de naissance
|
||||
$dir1naissl = substr($ligne, 1706 , 35 ); // PPDIR1LNAISS Lieu de Naissance
|
||||
$dir1cfct= substr($ligne, 1741 , 4 ); // PPDIR1FONC Code Fonction
|
||||
// $siren = substr($ligne, 1745 , 8 ); // PPDIR1MAJ Date de MAJ du ppl dirigeant
|
||||
$dir2nom= trim(substr($ligne, 1753 , 40 )); // PPDIR2NOM Nom du seconde principal dirigeant
|
||||
$dir2prenom = trim(substr($ligne, 1793 , 30 )); // PPDIR2PRENOM Prénom du 2ème principal dirigeant
|
||||
/* $siren = substr($ligne, 1823 , 40 ); // PPDIR2NNAISS Nom de naissance du 2ème ppl dirigeant
|
||||
$siren = substr($ligne, 1863 , 8 ); // PPDIR2DNAISS Date de naissance du 2ème ppl dirigeant
|
||||
$siren = substr($ligne, 1871 , 35 ); // PPDIR2LNAISS Lieu de Naissance du 2ème ppl dirigeant
|
||||
*/
|
||||
$dir2naissn = substr($ligne, 1823 , 40 ); // PPDIR2NNAISS Nom de naissance du 2ème ppl dirigeant
|
||||
$dir2naissd = substr($ligne, 1863 , 8 ); // PPDIR2DNAISS Date de naissance du 2ème ppl dirigeant
|
||||
$dir2naissl = substr($ligne, 1871 , 35 ); // PPDIR2LNAISS Lieu de Naissance du 2ème ppl dirigeant
|
||||
$dir2cfct = substr($ligne, 1906 , 4 ); // PPDIR2FONC Code Fonction du 2ème ppl dirigeant
|
||||
// $siren = substr($ligne, 1910 , 8 ); // PPDIR2MAJ Date de MAJ du 2ème ppl dirigeant
|
||||
$bilanClot= trim(substr($ligne, 1918 , 8 ))*1; // BILANCLOT Date de dernière clôture de bilan disponible
|
@ -26,17 +26,24 @@ $tabMailDepot=array(
|
||||
'SJ08'=>'fb.bn.contentieux@heineken.fr,nadine.dutheil@france-boissons.fr', // thierry.hacques@france-boissons.fr,linda.bourges@france-boissons.fr',
|
||||
'SJ09'=>'fb.bn.contentieux@heineken.fr,denise.gillard@france-boissons.fr', // thierry.hacques@france-boissons.fr,linda.bourges@
|
||||
// Région ILE DE FRANCE
|
||||
'NO00'=>'francoise.andre@france-boissons.fr,ctx-idf@france-boissons.fr',
|
||||
'NO02'=>'francoise.andre@france-boissons.fr,ctx-idf@france-boissons.fr',
|
||||
'NO04'=>'amandine.vergnaud@france-boissons.fr,ctx-idf@france-boissons.fr',
|
||||
'NO06'=>'annie.bontemps@france-boissons.fr,ctx-idf@france-boissons.fr',
|
||||
'NO0E'=>'murielle.pinte@france-boissons.fr,ctx-idf@france-boissons.fr',
|
||||
'NO0F'=>'laurence.braquehais@france-boissons.fr,ctx-idf@france-boissons.fr',
|
||||
'NO0G'=>'catherine.simon@france-boissons.fr,ctx-idf@france-boissons.fr',
|
||||
'PB00'=>'fabrice.amriou@sabertrand.fr,ctx-idf@france-boissons.fr',
|
||||
'PB01'=>'fabrice.amriou@sabertrand.fr,ctx-idf@france-boissons.fr',
|
||||
'PB02'=>'fabrice.amriou@sabertrand.fr,ctx-idf@france-boissons.fr',
|
||||
'PB03'=>'fabrice.amriou@sabertrand.fr,ctx-idf@france-boissons.fr',
|
||||
'NO00'=>'francoise.andre@france-boissons.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'NO02'=>'francoise.andre@france-boissons.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'NO04'=>'amandine.vergnaud@france-boissons.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'NO06'=>'annie.bontemps@france-boissons.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'NO0E'=>'murielle.pinte@france-boissons.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'NO0F'=>'laurence.braquehais@france-boissons.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'NO0G'=>'catherine.simon@france-boissons.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'PB00'=>'fabrice.amriou@sabertrand.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'PB01'=>'fabrice.amriou@sabertrand.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'PB02'=>'fabrice.amriou@sabertrand.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'PB03'=>'fabrice.amriou@sabertrand.fr,fb.idf.contentieux@heineken.fr,ctx-idf@france-boissons.fr',
|
||||
'PB0A'=>'fb.idf.contentieux@heineken.fr',
|
||||
'PB0C'=>'fb.idf.contentieux@heineken.fr',
|
||||
'PB0D'=>'fb.idf.contentieux@heineken.fr',
|
||||
'PB0E'=>'fb.idf.contentieux@heineken.fr',
|
||||
'PB0F'=>'fb.idf.contentieux@heineken.fr',
|
||||
'PB0G'=>'fb.idf.contentieux@heineken.fr',
|
||||
|
||||
// LOIRE SUD OUEST
|
||||
'BO00'=>'fb.lso.contentieux@heineken.fr,sabine.ageon@france-boissons.fr,christian.tesson@france-boissons.fr,martine.desgrippes@france-boissons.fr',
|
||||
'BO01'=>'fb.lso.contentieux@heineken.fr,sabine.ageon@france-boissons.fr,christian.tesson@france-boissons.fr,martine.desgrippes@france-boissons.fr',
|
||||
@ -77,6 +84,13 @@ $tabMailDepot=array(
|
||||
'LY0R'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr,nathalie.rodier@france-boissons.fr',
|
||||
'LY0V'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr,nathalie.rodier@france-boissons.fr',
|
||||
'LY00'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr,nathalie.rodier@france-boissons.fr,virginie.charbonnier@france-boissons.fr',
|
||||
// Ajouté le 05/11/2013 pour CRA
|
||||
'LE00'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr',
|
||||
'LE05'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr',
|
||||
'LE06'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr',
|
||||
'LE07'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr',
|
||||
'LE08'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr',
|
||||
'LE09'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr',
|
||||
// Région SUD EST
|
||||
'LY0F'=>'fb.cra.contentieux@heineken.fr,CTX-CRA@france-boissons.fr,fatiha.daifi@france-boissons.fr,fb.sudest.contentieux@heineken.fr',
|
||||
'MA00'=>'fatiha.daifi@france-boissons.fr,fb.sudest.contentieux@heineken.fr',
|
||||
@ -113,12 +127,12 @@ define('DIR_RECORDATI_IN','/mnt/samba/partage/production/');
|
||||
* 3.
|
||||
* 5. JugesCommissaires à intégrer correctement
|
||||
|
||||
Noms et prénoms des dirigeants de l'entreprise ' Anum. ?
|
||||
Noms et prénoms des dirigeants de l'entreprise ' Anum. ?
|
||||
|
||||
Raison sociale du vendeur Anum. 255
|
||||
Siren du vendeur (en cas de Vente/Cessions) Num. 9
|
||||
Indicateur de correction du SIREN vendeur (si C, le siren diffusé au BODACC est faut mais S&D a affecté le bon SIREN) ' Car. 1
|
||||
*/
|
||||
Raison sociale du vendeur Anum. 255
|
||||
Siren du vendeur (en cas de Vente/Cessions) Num. 9
|
||||
Indicateur de correction du SIREN vendeur (si C, le siren diffusé au BODACC est faut mais S&D a affecté le bon SIREN) ' Car. 1
|
||||
*/
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
@ -130,10 +144,10 @@ $strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Conversion d'un flux surveillance/diffusion Bodacc S&D en fichier spécifique Bouchara-Recordati.
|
||||
|
||||
";/*Options :
|
||||
-d Clients en Diffusion Bodacc (par défaut)
|
||||
-s Clients en Surveillance Bodacc
|
||||
-e Ne pas tenir compte de la date de dernière exécution du script
|
||||
-i Ne pas incrémenter les numéros de tour (pour les tests).
|
||||
-d Clients en Diffusion Bodacc (par défaut)
|
||||
-s Clients en Surveillance Bodacc
|
||||
-e Ne pas tenir compte de la date de dernière exécution du script
|
||||
-i Ne pas incrémenter les numéros de tour (pour les tests).
|
||||
";*/
|
||||
|
||||
$tabFichLigneCmd=$tabFichier=array();
|
||||
@ -212,6 +226,8 @@ for ($iFic=0; isset($tabFichier[$iFic]); $iFic++)
|
||||
// Mail de surveillance
|
||||
$sirenAff=implode(' ', str_split($siren,3));
|
||||
$message[$ref1].="Siren : $sirenAff\r\n".'Raison Sociale : '.$raisonS."\r\n";
|
||||
if (trim($ref)<>'')
|
||||
$message[$ref1].="Votre référence : $ref\r\n";
|
||||
$message[$ref1].="Source : BODACC n°$numPar $bodacc du $datePar. ";
|
||||
if (trim($dateInsert)<>'')
|
||||
$message[$ref1].='Entrée en base S&D : '. WDate::dateT('Ymd','d/m/Y',$dateInsert)."\r\n";
|
||||
@ -232,7 +248,7 @@ for ($iFic=0; isset($tabFichier[$iFic]); $iFic++)
|
||||
$ref1=$ref[1];
|
||||
$ref=$ref[0];
|
||||
|
||||
if (!isset($message[$ref1 ]) || @$message[$ref1]=='') {
|
||||
if (!isset($message[$ref1]) || @$message[$ref1]=='') {
|
||||
//$fp[$ref1]=fopen(DIR_RECORDATI_IN.$nomFichier."-$ref1.csv", 'w');
|
||||
//fwrite($fp[$ref1], 'Siren;Nic;Référence;Parution;Bodacc;Date parution;Numéro Annonce;Type Annonce;Tribunal;Numéro RCS;Raison sociale;Chapitre;Evènement(s);Texte Annonce'.EOL);
|
||||
$message[$ref1]='Bonjour,
|
||||
@ -346,6 +362,8 @@ Veuillez trouver ci-joint la liste des modifications relatives
|
||||
// Mail de surveillance
|
||||
$sirenAff=implode(' ', str_split($siren,3));
|
||||
$message[$ref1].="Siren : $sirenAff\r\n".'Raison Sociale : '.$raisonS."\r\n";
|
||||
if (trim($ref)<>'')
|
||||
$message[$ref1].="Votre référence : $ref\r\n";
|
||||
$message[$ref1].="Source : BODACC n°$numPar $bodacc du $datePar. ";
|
||||
if (trim($dateInsert)<>'')
|
||||
$message[$ref1].='Entrée en base S&D : '. WDate::dateT('Ymd','d/m/Y',$dateInsert)."\r\n";
|
||||
@ -385,7 +403,7 @@ Veuillez trouver ci-joint la liste des modifications relatives
|
||||
}
|
||||
elseif (!isset($tabMailDepot[$ref]) || $tabMailDepot[$ref]=='') {
|
||||
$msg="ATTENTION, CE DEPOT N'A PAS DE MAIL RENSEIGNE !".EOL.EOL.$msg;
|
||||
@sendMail('infoslegales@scores-decisions.com', 'flora.durandeau@france-boissons.fr,support@scores-decisions.com', "Surveillance Annonces Legales (S&D/FrBoissons $ref)", "ATTENTION, CE DEPOT N'A PAS DE MAIL RENSEIGNE !".EOL.EOL.$msg, '', $tabAttached);
|
||||
@sendMail('infoslegales@scores-decisions.com', 'flora.durandeau@france-boissons.fr,emmanuel.przystaniak@france-boissons.fr,support@scores-decisions.com', "Surveillance Annonces Legales (S&D/FrBoissons $ref)", "ATTENTION, CE DEPOT N'A PAS DE MAIL RENSEIGNE !".EOL.EOL.$msg, '', $tabAttached);
|
||||
$azerty=0;
|
||||
}
|
||||
$nbAnnTmp=$tabNbAnn[$ref];
|
||||
@ -422,7 +440,7 @@ if ($sortieCSV) {
|
||||
foreach ($procoltot as $chap=>$nb) echo "$nb;";
|
||||
echo EOL;
|
||||
} else
|
||||
echo date ('Y/m/d - H:i:s')." - Conversion terminée : $iFic fichiers, $ligne001tot entêtes, $ligne100tot annonces, $ligne104tot lignes de texte, $ligne999tot fin de fichier !" . EOL;
|
||||
echo date ('Y/m/d - H:i:s')." - Conversion terminée : $iFic fichiers, $ligne001tot entêtes, $ligne100tot annonces, $ligne104tot lignes de texte, $ligne999tot fin de fichier !" . EOL;
|
||||
|
||||
die();
|
||||
|
||||
@ -430,157 +448,157 @@ die();
|
||||
|
||||
|
||||
|
||||
$ligneOut="$idannPre;$sirenV;$raisonSV;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$sirenA;$raisonSA;$catEven;$txtEven;$adresseFond;$montantVente;$deviseVente;$dateVente;$opposition;$txtAnn";
|
||||
$ligneOut="$idannPre;$sirenV;$raisonSV;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$sirenA;$raisonSA;$catEven;$txtEven;$adresseFond;$montantVente;$deviseVente;$dateVente;$opposition;$txtAnn";
|
||||
|
||||
if ($idannPre<>'Identifiant Annonce') {
|
||||
$sirenAffV=implode(' ', str_split($sirenV,3));
|
||||
if ($sirenA*1>0) $sirenAffA='(Siren : '.implode(' ', str_split($sirenA,3)).')';
|
||||
else $sirenAffA='';
|
||||
$message.="Siren : $sirenAffV\r\n".'Raison Sociale : '.$raisonSV."\r\n";
|
||||
$message.="Source : BODACC n°$numPar $bodacc du $datePar. ";
|
||||
if (trim($dateInsert)<>'')
|
||||
$message.='Entrée en base S&D : '. WDate::dateT('Ymd','d/m/Y',$dateInsert)."\r\n";
|
||||
$message.="Tribunal : $libTri"."\r\n";
|
||||
$message.="\r\n";
|
||||
if (trim($raisonSA)<>'') {
|
||||
$message.="Acheteur : $raisonSA $sirenAffA"."\r\n";
|
||||
if ($montantVente*1>0)
|
||||
$message.="Montant de la vente : $montantVente $deviseVente en date du $dateVente."."\r\n";
|
||||
$message.="\r\n";
|
||||
}
|
||||
$message.="$txtEven"."\r\n";
|
||||
$message.="\r\n";
|
||||
$message.=$txtAnn."\r\n";
|
||||
$message.="\r\n\r\n---------------------------------------------------------------------------\r\n\r\n";
|
||||
}
|
||||
$sirenA=$raisonSA=$sirenV=$raisonSV=$adresseFond=$montantVente=$deviseVente=$dateVente='';
|
||||
}
|
||||
$siren = substr($ligne, 13 , 9 ); // Siren de l'entreprise concernée par l'annonce
|
||||
$nic = trim(substr($ligne, 22, 5 )); // Nic
|
||||
$ref = trim(substr($ligne, 71, 18 )); // Référence Client
|
||||
$numPar = substr($ligne, 27 , 3 ); // Numéro de parution du Bodacc dans l'année
|
||||
$bodacc = substr($ligne, 30 , 1 ); // Code Bodacc (A, B ou C) A, B ou C
|
||||
$datePar= WDate::dateT('Ymd','d/m/Y',substr($ligne,31,8)); // Date de parution du Bodacc Format AAAAMMJJ
|
||||
$numAnn = substr($ligne, 39 , 5 ); // Numéro de l'annonce dans le Bodacc
|
||||
$typeAnn= substr($ligne, 47 , 1 ); // Type d'annonce Bodacc I=Insertion (publication d'une annonce), A=Additif (ajout à une précédente annonce), (1) R=Rectificatif (correction d'une annonce), S=Suppression d'une annonce
|
||||
$corNumA= substr($ligne, 48 , 5 ); // Numéro de l'annonce corrigée Si annonce différent de Insertion
|
||||
$corDate= substr($ligne, 53 , 8 ); // Date du Bodacc de l'annonce corrigée Si annonce différent de Insertion. Format AAAAMMJJ
|
||||
$corPage= substr($ligne, 61 , 6 ); // Première page du Bodacc de l'annonce corrigée Si annonce différent de Insertion
|
||||
$corNumP= substr($ligne, 67 , 4 ); // Numéro parution du Bodacc dans l'année de l'annonce corrigée Si annonce différent de Insertion
|
||||
$adresse= trim(preg_replace('/ +/',' ',substr($ligne, 596 , 4 ).' '.
|
||||
substr($ligne, 600 , 1 ).' '.
|
||||
substr($ligne, 601 , 5 ).' '.
|
||||
substr($ligne, 606 , 50 ).' '.
|
||||
substr($ligne, 656 , 50 ).' '.
|
||||
substr($ligne, 706 , 40 ).', '.
|
||||
substr($ligne, 746 , 5 ).' '.
|
||||
substr($ligne, 751 , 45 )));
|
||||
$venteDt= WDate::dateT('Ymd','d/m/Y',substr($ligne,1161,8));
|
||||
$venteMt= substr($ligne, 1169 , 15 );
|
||||
$venteDev=substr($ligne, 1184 , 3 );
|
||||
$dateInsert=substr($ligne, 1910 , 8 );
|
||||
if ($idannPre<>'Identifiant Annonce') {
|
||||
$sirenAffV=implode(' ', str_split($sirenV,3));
|
||||
if ($sirenA*1>0) $sirenAffA='(Siren : '.implode(' ', str_split($sirenA,3)).')';
|
||||
else $sirenAffA='';
|
||||
$message.="Siren : $sirenAffV\r\n".'Raison Sociale : '.$raisonSV."\r\n";
|
||||
$message.="Source : BODACC n°$numPar $bodacc du $datePar. ";
|
||||
if (trim($dateInsert)<>'')
|
||||
$message.='Entrée en base S&D : '. WDate::dateT('Ymd','d/m/Y',$dateInsert)."\r\n";
|
||||
$message.="Tribunal : $libTri"."\r\n";
|
||||
$message.="\r\n";
|
||||
if (trim($raisonSA)<>'') {
|
||||
$message.="Acheteur : $raisonSA $sirenAffA"."\r\n";
|
||||
if ($montantVente*1>0)
|
||||
$message.="Montant de la vente : $montantVente $deviseVente en date du $dateVente."."\r\n";
|
||||
$message.="\r\n";
|
||||
}
|
||||
$message.="$txtEven"."\r\n";
|
||||
$message.="\r\n";
|
||||
$message.=$txtAnn."\r\n";
|
||||
$message.="\r\n\r\n---------------------------------------------------------------------------\r\n\r\n";
|
||||
}
|
||||
$sirenA=$raisonSA=$sirenV=$raisonSV=$adresseFond=$montantVente=$deviseVente=$dateVente='';
|
||||
}
|
||||
$siren = substr($ligne, 13 , 9 ); // Siren de l'entreprise concernée par l'annonce
|
||||
$nic = trim(substr($ligne, 22, 5 )); // Nic
|
||||
$ref = trim(substr($ligne, 71, 18 )); // Référence Client
|
||||
$numPar = substr($ligne, 27 , 3 ); // Numéro de parution du Bodacc dans l'année
|
||||
$bodacc = substr($ligne, 30 , 1 ); // Code Bodacc (A, B ou C) A, B ou C
|
||||
$datePar= WDate::dateT('Ymd','d/m/Y',substr($ligne,31,8)); // Date de parution du Bodacc Format AAAAMMJJ
|
||||
$numAnn = substr($ligne, 39 , 5 ); // Numéro de l'annonce dans le Bodacc
|
||||
$typeAnn= substr($ligne, 47 , 1 ); // Type d'annonce Bodacc I=Insertion (publication d'une annonce), A=Additif (ajout à une précédente annonce), (1) R=Rectificatif (correction d'une annonce), S=Suppression d'une annonce
|
||||
$corNumA= substr($ligne, 48 , 5 ); // Numéro de l'annonce corrigée Si annonce différent de Insertion
|
||||
$corDate= substr($ligne, 53 , 8 ); // Date du Bodacc de l'annonce corrigée Si annonce différent de Insertion. Format AAAAMMJJ
|
||||
$corPage= substr($ligne, 61 , 6 ); // Première page du Bodacc de l'annonce corrigée Si annonce différent de Insertion
|
||||
$corNumP= substr($ligne, 67 , 4 ); // Numéro parution du Bodacc dans l'année de l'annonce corrigée Si annonce différent de Insertion
|
||||
$adresse= trim(preg_replace('/ +/',' ',substr($ligne, 596 , 4 ).' '.
|
||||
substr($ligne, 600 , 1 ).' '.
|
||||
substr($ligne, 601 , 5 ).' '.
|
||||
substr($ligne, 606 , 50 ).' '.
|
||||
substr($ligne, 656 , 50 ).' '.
|
||||
substr($ligne, 706 , 40 ).', '.
|
||||
substr($ligne, 746 , 5 ).' '.
|
||||
substr($ligne, 751 , 45 )));
|
||||
$venteDt= WDate::dateT('Ymd','d/m/Y',substr($ligne,1161,8));
|
||||
$venteMt= substr($ligne, 1169 , 15 );
|
||||
$venteDev=substr($ligne, 1184 , 3 );
|
||||
$dateInsert=substr($ligne, 1910 , 8 );
|
||||
|
||||
$cor='';
|
||||
if ($typeAnn<>'I')
|
||||
$cor=" - Annonce n°$corNumA $corNumP, page $corPage, du ".WDate::dateT('Ymd','d/M/Y',$corDate);
|
||||
switch($typeAnn) {
|
||||
case 'I': $cor='Insertion'.$cor; break;
|
||||
case 'A': $cor='Additif'.$cor; break;
|
||||
case 'R': $cor='Rectificatif'.$cor; break;
|
||||
case 'S': $cor='Suppression'.$cor; break;
|
||||
default: break;
|
||||
}
|
||||
$cor='';
|
||||
if ($typeAnn<>'I')
|
||||
$cor=" - Annonce n°$corNumA $corNumP, page $corPage, du ".WDate::dateT('Ymd','d/M/Y',$corDate);
|
||||
switch($typeAnn) {
|
||||
case 'I': $cor='Insertion'.$cor; break;
|
||||
case 'A': $cor='Additif'.$cor; break;
|
||||
case 'R': $cor='Rectificatif'.$cor; break;
|
||||
case 'S': $cor='Suppression'.$cor; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
$even=array();
|
||||
$even[7]= substr($ligne, 996 , 4 )*1; // Code Evènement Bodacc n°1 Cf. Table EVEN
|
||||
$even[6]= substr($ligne, 1000, 4 )*1; // Code Evènement Bodacc n°2 Cf. Table EVEN
|
||||
$even[5]= substr($ligne, 1004, 4 )*1; // Code Evènement Bodacc n°3 Cf. Table EVEN
|
||||
$even[4]= substr($ligne, 1008, 4 )*1; // Code Evènement Bodacc n°4 Cf. Table EVEN
|
||||
$even[3]= substr($ligne, 1012, 4 )*1; // Code Evènement Bodacc n°5 Cf. Table EVEN
|
||||
$even[2]= substr($ligne, 1016, 4 )*1; // Code Evènement Bodacc n°6 Cf. Table EVEN
|
||||
$even[1]= substr($ligne, 1020, 4 )*1; // Code Evènement Bodacc n°7 Cf. Table EVEN
|
||||
$even[0]= substr($ligne, 1024, 4 )*1; // Code Evènement Bodacc n°8 Cf. Table EVEN
|
||||
$txtEven='';
|
||||
$inter='Vendeur'; // Par défaut, nous sommes avec un vendeur
|
||||
foreach ($even as $codeEven)
|
||||
if ($codeEven<>0) {
|
||||
$txtEven.=$iBodacc->getEvenement($codeEven).', ';
|
||||
$catEven=$iBodacc->getChapitreEvenement($codeEven);
|
||||
if ($codeEven==5700) {
|
||||
$inter='Acheteur'; // L'interlocuteur est l'acheteur !
|
||||
$sirenA=$siren;
|
||||
$raisonSA=$raisonS;
|
||||
$adresseFond=$adresse;
|
||||
$montantVente=$venteMt;
|
||||
$deviseVente=$venteDev;
|
||||
$dateVente=$venteDt;
|
||||
}
|
||||
}
|
||||
else
|
||||
$txtEven.='';
|
||||
if ($inter=='Vendeur') {
|
||||
$sirenV=$siren;
|
||||
$raisonSV=$raisonS;
|
||||
}
|
||||
$even=array();
|
||||
$even[7]= substr($ligne, 996 , 4 )*1; // Code Evènement Bodacc n°1 Cf. Table EVEN
|
||||
$even[6]= substr($ligne, 1000, 4 )*1; // Code Evènement Bodacc n°2 Cf. Table EVEN
|
||||
$even[5]= substr($ligne, 1004, 4 )*1; // Code Evènement Bodacc n°3 Cf. Table EVEN
|
||||
$even[4]= substr($ligne, 1008, 4 )*1; // Code Evènement Bodacc n°4 Cf. Table EVEN
|
||||
$even[3]= substr($ligne, 1012, 4 )*1; // Code Evènement Bodacc n°5 Cf. Table EVEN
|
||||
$even[2]= substr($ligne, 1016, 4 )*1; // Code Evènement Bodacc n°6 Cf. Table EVEN
|
||||
$even[1]= substr($ligne, 1020, 4 )*1; // Code Evènement Bodacc n°7 Cf. Table EVEN
|
||||
$even[0]= substr($ligne, 1024, 4 )*1; // Code Evènement Bodacc n°8 Cf. Table EVEN
|
||||
$txtEven='';
|
||||
$inter='Vendeur'; // Par défaut, nous sommes avec un vendeur
|
||||
foreach ($even as $codeEven)
|
||||
if ($codeEven<>0) {
|
||||
$txtEven.=$iBodacc->getEvenement($codeEven).', ';
|
||||
$catEven=$iBodacc->getChapitreEvenement($codeEven);
|
||||
if ($codeEven==5700) {
|
||||
$inter='Acheteur'; // L'interlocuteur est l'acheteur !
|
||||
$sirenA=$siren;
|
||||
$raisonSA=$raisonS;
|
||||
$adresseFond=$adresse;
|
||||
$montantVente=$venteMt;
|
||||
$deviseVente=$venteDev;
|
||||
$dateVente=$venteDt;
|
||||
}
|
||||
}
|
||||
else
|
||||
$txtEven.='';
|
||||
if ($inter=='Vendeur') {
|
||||
$sirenV=$siren;
|
||||
$raisonSV=$raisonS;
|
||||
}
|
||||
|
||||
$txtEven=substr($txtEven,0,strlen($txtEven)-2);
|
||||
$txtAnn='';
|
||||
if ($idannPre<>$idann) $ecrireLignePre=true;
|
||||
else $ecrireLignePre=false;
|
||||
$idannPre=$idann;
|
||||
break;
|
||||
case 104: // Annonce
|
||||
$ligne104++;
|
||||
$txtAnn=trim($txtAnn.' '.str_replace(';','.',trim(substr($ligne, 89 , 1910)))); // Texte Annonce
|
||||
break;
|
||||
case 999: // Ligne ignorée
|
||||
//$ligneOut="$idann;$sirenV;$raisonSV;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$sirenA;$raisonSA;$catEven;$txtEven;$adresseFond;$montantVente;$deviseVente;$dateVente;$txtAnn";
|
||||
$opposition=preg_replace('/.*Oppositions \:/i','', $txtAnn);
|
||||
$ligneOut="$idann;$sirenV;$raisonSV;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$sirenA;$raisonSA;$catEven;$txtEven;$adresseFond;$montantVente;$deviseVente;$dateVente;$opposition;$txtAnn";
|
||||
$txtEven=substr($txtEven,0,strlen($txtEven)-2);
|
||||
$txtAnn='';
|
||||
if ($idannPre<>$idann) $ecrireLignePre=true;
|
||||
else $ecrireLignePre=false;
|
||||
$idannPre=$idann;
|
||||
break;
|
||||
case 104: // Annonce
|
||||
$ligne104++;
|
||||
$txtAnn=trim($txtAnn.' '.str_replace(';','.',trim(substr($ligne, 89 , 1910)))); // Texte Annonce
|
||||
break;
|
||||
case 999: // Ligne ignorée
|
||||
//$ligneOut="$idann;$sirenV;$raisonSV;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$sirenA;$raisonSA;$catEven;$txtEven;$adresseFond;$montantVente;$deviseVente;$dateVente;$txtAnn";
|
||||
$opposition=preg_replace('/.*Oppositions \:/i','', $txtAnn);
|
||||
$ligneOut="$idann;$sirenV;$raisonSV;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$sirenA;$raisonSA;$catEven;$txtEven;$adresseFond;$montantVente;$deviseVente;$dateVente;$opposition;$txtAnn";
|
||||
// $ligneOut="$idann;$siren;$nic;$inter;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$numRC;$raisonS;$catEven;$txtEven;$txtAnn";
|
||||
if ($idann<>'Identifiant Annonce') {
|
||||
$sirenAffV=implode(' ', str_split($sirenV,3));
|
||||
if ($sirenA*1>0) $sirenAffA='(Siren : '.implode(' ', str_split($sirenA,3)).')';
|
||||
else $sirenAffA='';
|
||||
$message.="Siren : $sirenAffV\r\n".'Raison Sociale : '.$raisonSV."\r\n";
|
||||
$message.="Source : BODACC n°$numPar $bodacc du $datePar. ";
|
||||
if (trim($dateInsert)<>'')
|
||||
$message.='Entrée en base S&D : '. WDate::dateT('Ymd','d/m/Y',$dateInsert)."\r\n";
|
||||
$message.="Tribunal : $libTri"."\r\n";
|
||||
$message.="\r\n";
|
||||
if (trim($raisonSA)<>'') {
|
||||
$message.="Acheteur : $raisonSA $sirenAffA"."\r\n";
|
||||
if ($montantVente*1>0)
|
||||
$message.="Montant de la vente : $montantVente $deviseVente en date du $dateVente."."\r\n";
|
||||
$message.="\r\n";
|
||||
}
|
||||
$message.="$txtEven"."\r\n";
|
||||
$message.="\r\n";
|
||||
$message.=$txtAnn."\r\n";
|
||||
$message.="\r\n\r\n---------------------------------------------------------------------------\r\n\r\n";
|
||||
}
|
||||
$ligne999++;
|
||||
$ecrireLignePre=true;
|
||||
break;
|
||||
default: // Ligne non gérée
|
||||
break;
|
||||
}
|
||||
if ($ecrireLignePre)
|
||||
fwrite($fp, $ligneOut.EOL);
|
||||
if ($idann<>'Identifiant Annonce') {
|
||||
$sirenAffV=implode(' ', str_split($sirenV,3));
|
||||
if ($sirenA*1>0) $sirenAffA='(Siren : '.implode(' ', str_split($sirenA,3)).')';
|
||||
else $sirenAffA='';
|
||||
$message.="Siren : $sirenAffV\r\n".'Raison Sociale : '.$raisonSV."\r\n";
|
||||
$message.="Source : BODACC n°$numPar $bodacc du $datePar. ";
|
||||
if (trim($dateInsert)<>'')
|
||||
$message.='Entrée en base S&D : '. WDate::dateT('Ymd','d/m/Y',$dateInsert)."\r\n";
|
||||
$message.="Tribunal : $libTri"."\r\n";
|
||||
$message.="\r\n";
|
||||
if (trim($raisonSA)<>'') {
|
||||
$message.="Acheteur : $raisonSA $sirenAffA"."\r\n";
|
||||
if ($montantVente*1>0)
|
||||
$message.="Montant de la vente : $montantVente $deviseVente en date du $dateVente."."\r\n";
|
||||
$message.="\r\n";
|
||||
}
|
||||
$message.="$txtEven"."\r\n";
|
||||
$message.="\r\n";
|
||||
$message.=$txtAnn."\r\n";
|
||||
$message.="\r\n\r\n---------------------------------------------------------------------------\r\n\r\n";
|
||||
}
|
||||
$ligne999++;
|
||||
$ecrireLignePre=true;
|
||||
break;
|
||||
default: // Ligne non gérée
|
||||
break;
|
||||
}
|
||||
if ($ecrireLignePre)
|
||||
fwrite($fp, $ligneOut.EOL);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if ($catEven<>'Chapitre') {
|
||||
//sendMail('infoslegales@scores-decisions.com', 'c.ferault@bouchara-recordati.fr,f.hadjadj@bouchara-recordati.fr,a.mandar@bouchara-recordati.fr', "Surveillance Annonces Legales ($catEven)", $message);
|
||||
sendMail('infoslegales@scores-decisions.com', '<Yoann Le Naour>ylenaour@scores-decisions.com,<Fabienne Zicarro>fzicaro@scores-decisions.com', "Surveillance Annonces Legales ($catEven)", $message);
|
||||
}
|
||||
if ($catEven<>'Chapitre') {
|
||||
//sendMail('infoslegales@scores-decisions.com', 'c.ferault@bouchara-recordati.fr,f.hadjadj@bouchara-recordati.fr,a.mandar@bouchara-recordati.fr', "Surveillance Annonces Legales ($catEven)", $message);
|
||||
sendMail('infoslegales@scores-decisions.com', '<Yoann Le Naour>ylenaour@scores-decisions.com,<Fabienne Zicarro>fzicaro@scores-decisions.com', "Surveillance Annonces Legales ($catEven)", $message);
|
||||
}
|
||||
|
||||
fclose($fp);
|
||||
fclose($fp);
|
||||
|
||||
if (bzip2(DIR_RECORDATI_IN.$nomFichier, DIR_RECORDATI_IN.$nomFichier)) {
|
||||
unlink(DIR_RECORDATI_IN.$nomFichier);
|
||||
echo date ('Y/m/d - H:i:s') . " - Le fichier n°$i, $nomFichier vient d'être historisé.".EOL;
|
||||
}
|
||||
if (bzip2(DIR_RECORDATI_IN.$nomFichier, DIR_RECORDATI_IN.$nomFichier)) {
|
||||
unlink(DIR_RECORDATI_IN.$nomFichier);
|
||||
echo date ('Y/m/d - H:i:s') . " - Le fichier n°$i, $nomFichier vient d'être historisé.".EOL;
|
||||
}
|
||||
}*/
|
||||
echo date ('Y/m/d - H:i:s')." - Conversion terminée !" . EOL;
|
||||
die();
|
@ -306,8 +306,8 @@ foreach ($tabLignes as $i=>$ligne) {
|
||||
}
|
||||
|
||||
if ($catEven<>'Chapitre') {
|
||||
sendMail('infoslegales@scores-decisions.com', 'c.ferault@bouchara-recordati.fr,f.hadjadj@bouchara-recordati.fr,a.mandar@bouchara-recordati.fr', "Surveillance Annonces Legales ($catEven)", $message);
|
||||
sendMail('infoslegales@scores-decisions.com', '<Yoann Le Naour>ylenaour@scores-decisions.com,<Fabienne Zicarro>fzicaro@scores-decisions.com', "Surveillance Annonces Legales ($catEven)", $message);
|
||||
sendMail('infoslegales@scores-decisions.com', 'c.ferault@bouchara-recordati.fr,s.ambroise@bouchara-recordati.fr,c.jourdain@bouchara-recordati.fr,suivi@scores-decisions.com', "Surveillance Annonces Legales ($catEven)", $message);
|
||||
// sendMail('infoslegales@scores-decisions.com', '', "Surveillance Annonces Legales ($catEven)", $message);
|
||||
}
|
||||
|
||||
fclose($fp);
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user