File store on the server the 16/10/2012
This commit is contained in:
parent
679c18134e
commit
3e768c8a8b
0
batch/actionnairesVeolia.csv
Normal file
0
batch/actionnairesVeolia.csv
Normal file
|
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
207
batch/boamp/getBoamp.php
Normal file
207
batch/boamp/getBoamp.php
Normal file
@ -0,0 +1,207 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
define('BOAMP_LOCAL_DIR', '/home/data/boamp/Klekoon/1_FORMAT_ANCIEN/Fichiers/');
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Calcul des ratios de toute la base entreprise S&D.
|
||||
|
||||
Options :
|
||||
-t Calculer tous les ratios (*)
|
||||
-i:XXX Reprendre à la ligne XXX
|
||||
-c Mettre à jour le cache
|
||||
|
||||
(*) Option par défaut si aucun argument n'est passé.
|
||||
";/* -e:X Calculer pour les X derniers exercices (3 par défaut)
|
||||
-f Calculer les scores financiers
|
||||
*/
|
||||
$iDb=new WDB('boamp');
|
||||
$iInsee=new MInsee();
|
||||
$iBodacc=new MBodacc();
|
||||
|
||||
$modeDebug=false; // Mode débug
|
||||
$questions=true; // Questions interactives autorisées
|
||||
$tabFichier=$tabFichLigneCmd=array();
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
|
||||
for ($i=1,$j=0; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'd': $modeDebug=true; break;
|
||||
case 'i': $questions=false; break;
|
||||
case '-':
|
||||
case '?': die($strInfoScript); break;
|
||||
default: die('Option '. $argv[$i] . " inconnue !\n");
|
||||
}
|
||||
} else $tabFichLigneCmd[]=$argv[$i];
|
||||
}
|
||||
|
||||
if (count($tabFichLigneCmd)==0) {
|
||||
$dh = opendir(BOAMP_LOCAL_DIR);
|
||||
while (false !== ($filename = readdir($dh))) {
|
||||
if ($filename<>'.' && $filename<>'..' && substr($filename, -4)=='.PUB')
|
||||
$tabFichier[] = $filename;
|
||||
}
|
||||
sort($tabFichier);
|
||||
}
|
||||
if (count($tabFichier)==0 && count($tabFichLigneCmd)==0) die(date ('Y/m/d - H:i:s') . " - Aucun fichier d'annonces BOAMP à traiter !".EOL);
|
||||
|
||||
echo date ('Y/m/d - H:i:s') . " - Début du traitement de chargement des annonces BOAMP...".EOL;
|
||||
|
||||
for ($iFic=0; isset($tabFichier[$iFic]); $iFic++)
|
||||
{
|
||||
$nomFichier=$tabFichier[$iFic];
|
||||
echo date ('Y/m/d - H:i:s') . " - Lecture du fichier $nomFichier...".EOL;
|
||||
$tabLignes=file(BOAMP_LOCAL_DIR.$nomFichier);
|
||||
$tabAnnonces=array();
|
||||
$iAnn=0;
|
||||
$nextBalise='';
|
||||
foreach ($tabLignes as $i=>$ligne) {
|
||||
$nextBaliseLu=false;
|
||||
$code=''.substr($ligne,0,2);
|
||||
$texte=strtr(substr($ligne,2), '`„Œ$~', 'èéà@ç');
|
||||
switch ($code) {
|
||||
case '01':
|
||||
$iAnn++;
|
||||
$tabAnnonces[$iAnn]['annee']='20'.substr($texte,0,2);
|
||||
$tabAnnonces[$iAnn]['numParution']=substr($texte,2,3);
|
||||
if (substr($texte,5,1)=='1') $edition='A';
|
||||
elseif (substr($texte,5,1)=='2') $edition='B';
|
||||
elseif (substr($texte,5,1)=='3') $edition='C';
|
||||
else die("Edition '$edition' inconnue !");
|
||||
$tabAnnonces[$iAnn]['edition']=$edition;
|
||||
$tabAnnonces[$iAnn]['dateParution']='20'.substr($texte,10,2).substr($texte,8,2).substr($texte,6,2);
|
||||
$tabAnnonces[$iAnn]['numAnnonce']=substr($texte,12,4);
|
||||
$tabAnnonces[$iAnn]['r2']=trim(substr($texte,16,3));
|
||||
$tabAnnonces[$iAnn]['dept']=trim(substr($texte,19,3));
|
||||
$tabAnnonces[$iAnn]['rubrique']=substr($texte,22,3);
|
||||
$tabAnnonces[$iAnn]['nojo']=substr($texte,25,10);
|
||||
$tabAnnonces[$iAnn]['numAnnB']=substr($texte,35,4);
|
||||
$tabAnnonces[$iAnn]['texte']=$tabAnnonces[$iAnn]['balises']='';
|
||||
break;
|
||||
case '05':
|
||||
switch (trim($texte)) {
|
||||
case 'Nom et adresse officiels du pouvoir':
|
||||
case 'adjudicateur:':
|
||||
$nextBalise='infoOrgNom';
|
||||
break;
|
||||
case "à l'attention de":
|
||||
$nextBalise='infoOrgDest';
|
||||
break;
|
||||
case 'Mode de passation:':
|
||||
case 'Procédure de passation:':
|
||||
$nextBalise='infoPassation';
|
||||
break;
|
||||
case "Critères d'attribution:":
|
||||
$nextBalise='infoAttribution';
|
||||
break;
|
||||
case "Référence d'identification du marché":
|
||||
case "qui figure dans l'appel d'offres:":
|
||||
$nextBalise='infoIdenMarche';
|
||||
break;
|
||||
case "Annonce no":
|
||||
case "B.O.A.M.P.":
|
||||
$nextBalise='infoAnnonceNo';
|
||||
break;
|
||||
case "Date d'envoi de l'avis à la":
|
||||
case 'publication:':
|
||||
$nextBalise='infoPublication';
|
||||
break;
|
||||
default:
|
||||
$nextBalise='';
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case '15':
|
||||
switch (trim($texte)) {
|
||||
case 'Objet :':
|
||||
case 'Objet du marché:':
|
||||
$nextBalise='objet';
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case '16':
|
||||
$tabAnnonces[$iAnn]['objetMarche'].=trim($texte).' ';
|
||||
break;
|
||||
case '10':
|
||||
if ($nextBalise<>'') {
|
||||
$nextBaliseLu=true;
|
||||
$tabAnnonces[$iAnn]['_'.$nextBalise].=trim($texte).' ';
|
||||
}
|
||||
else
|
||||
$tabAnnonces[$iAnn]['code'.$code].=trim($texte).' ';
|
||||
break;
|
||||
case '17':
|
||||
case '30':
|
||||
case '35':
|
||||
break;
|
||||
case '28':
|
||||
$tabAnnonces[$iAnn]['code28'].=trim($texte).' ';
|
||||
break;
|
||||
case '44':
|
||||
$tabAnnonces[$iAnn]['naf'].=trim($texte).' ';
|
||||
break;
|
||||
case '20':
|
||||
$tabAnnonces[$iAnn]['classes'].=preg_replace('/00$/','', trim($texte)).' ';
|
||||
break;
|
||||
case '25':
|
||||
$tabAnnonces[$iAnn]['motDesc'].=trim($texte).' ';
|
||||
break;
|
||||
case '41':
|
||||
$tabAnnonces[$iAnn]['numAnnonce41']=trim($texte);
|
||||
break;
|
||||
case '42':
|
||||
$tabAnnonces[$iAnn]['dateParution42']=trim($texte);
|
||||
break;
|
||||
default:
|
||||
die("Code '$code' inconnu : ".$texte);
|
||||
|
||||
|
||||
}
|
||||
if ($code<>'01') $tabAnnonces[$iAnn]['texte'].=$texte;
|
||||
$tabAnnonces[$iAnn]['balises'].="<b$code>".trim($texte)."</b$code>".EOL;
|
||||
if ($code<>'05' && !$nextBaliseLu) $nextBalise='';
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s') . " - Chargement des $iAnn annonces du fichier $nomFichier...".EOL;
|
||||
/** Insertion de l'annonce en base
|
||||
**/
|
||||
foreach ($tabAnnonces as $i=>$tabAnnonce) {
|
||||
|
||||
if (preg_match('/(.*)((?:[0-9]{1,4},? | rue | place | boulevard | avenue )(?:.*)(?:[0-9]{5,5} )(?:.*))/Ui', $tabAnnonce['_infoOrgNom'], $matches)) {
|
||||
$tabAnnonce['nom']=trim($matches[1]);
|
||||
$tabAnnonce['adresse']=trim($matches[2]);
|
||||
} else {
|
||||
$tabAnnonce['nom']=trim($tabAnnonce['_infoOrgNom']);
|
||||
$tabAnnonce['adresse']=trim($tabAnnonce['_infoOrgDest']);
|
||||
}
|
||||
|
||||
$ret=$iDb->insert('avis', $tabAnnonce);
|
||||
//$ret=$iDb->insert('bodacc_detail', $tabAnnC);
|
||||
if (!$ret && mysql_errno()<>1062) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR ". mysql_errno().
|
||||
" : Insertion des informations 'autres' du BODACC sur le siren ".$sirenParticipation." en base impossible (annonce $idAnnRet) !".EOL;
|
||||
echo date ('Y/m/d - H:i:s'). mysql_error();
|
||||
//print_r($tabAnnC);
|
||||
//print_r($tabData);
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s') . " - Les $i annonces du fichier $nomFichier ont été chargées.".EOL;
|
||||
|
||||
}
|
||||
|
||||
|
||||
echo date ('Y/m/d - H:i:s') . " - Fin du traitement de chargement des annonces BOAMP...".EOL;
|
||||
|
||||
?>
|
1534
batch/bodacc/BoampAB_002.xsd
Normal file
1534
batch/bodacc/BoampAB_002.xsd
Normal file
File diff suppressed because it is too large
Load Diff
1099
batch/bodacc/BoampC_002.xsd
Normal file
1099
batch/bodacc/BoampC_002.xsd
Normal file
File diff suppressed because it is too large
Load Diff
476
batch/bodacc/Bodacc_Bilan_Redif_V01.xsd
Normal file
476
batch/bodacc/Bodacc_Bilan_Redif_V01.xsd
Normal file
@ -0,0 +1,476 @@
|
||||
<?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 Journaux Officiels) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- Version V01 du 10/06/08 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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">
|
||||
<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"/>
|
||||
<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="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-5]{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:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
478
batch/bodacc/Bodacc_Bilan_Redif_V02.xsd
Normal file
478
batch/bodacc/Bodacc_Bilan_Redif_V02.xsd
Normal file
@ -0,0 +1,478 @@
|
||||
<?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 Journaux Officiels) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- Version V01 du 10/06/08 -->
|
||||
<!-- Version V02 du 18/07/2008 -->
|
||||
<!-- adresse et depot passé en optionnel pour les annulation. -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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: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="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-5]{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:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
478
batch/bodacc/Bodacc_Bilan_Redif_V03.xsd
Normal file
478
batch/bodacc/Bodacc_Bilan_Redif_V03.xsd
Normal file
@ -0,0 +1,478 @@
|
||||
<?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 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) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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: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="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: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>
|
574
batch/bodacc/Bodacc_PCL_Redif_V05.xsd
Normal file
574
batch/bodacc/Bodacc_PCL_Redif_V05.xsd
Normal file
@ -0,0 +1,574 @@
|
||||
<?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) -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<!-- 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 -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<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: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: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>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="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:maxLength value="200"/>
|
||||
</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="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-5]{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="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 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="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="Autres jugements et ordonnances"/>
|
||||
<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: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:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
582
batch/bodacc/Bodacc_PCL_Redif_V06.xsd
Normal file
582
batch/bodacc/Bodacc_PCL_Redif_V06.xsd
Normal file
@ -0,0 +1,582 @@
|
||||
<?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) -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<!-- 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 -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<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: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: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>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="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:maxLength value="200"/>
|
||||
</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="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-5]{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="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 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="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="Autres jugements et ordonnances"/>
|
||||
<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: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:maxLength value="1000"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
570
batch/bodacc/Bodacc_PCL_Redif_V07.xsd
Normal file
570
batch/bodacc/Bodacc_PCL_Redif_V07.xsd
Normal file
@ -0,0 +1,570 @@
|
||||
<?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) -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<!-- 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 -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<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: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: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>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="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-5]{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 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="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="Autres jugements et ordonnances"/>
|
||||
<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: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>
|
578
batch/bodacc/Bodacc_PCL_Redif_V08.xsd
Normal file
578
batch/bodacc/Bodacc_PCL_Redif_V08.xsd
Normal file
@ -0,0 +1,578 @@
|
||||
<?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) -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<!-- 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 -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<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: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: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>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="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-5]{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 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="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="Autres jugements et ordonnances"/>
|
||||
<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: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>
|
579
batch/bodacc/Bodacc_PCL_Redif_V09.xsd
Normal file
579
batch/bodacc/Bodacc_PCL_Redif_V09.xsd
Normal file
@ -0,0 +1,579 @@
|
||||
<?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) -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<!-- 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" -> -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<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: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: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>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="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-5]{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 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="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: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>
|
586
batch/bodacc/Bodacc_PCL_Redif_V10.xsd
Normal file
586
batch/bodacc/Bodacc_PCL_Redif_V10.xsd
Normal file
@ -0,0 +1,586 @@
|
||||
<?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) -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<!-- 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
|
||||
-->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<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: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: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>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="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-5]{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: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>
|
600
batch/bodacc/Bodacc_PCL_Redif_V12.xsd
Normal file
600
batch/bodacc/Bodacc_PCL_Redif_V12.xsd
Normal file
@ -0,0 +1,600 @@
|
||||
<?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) -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<!-- 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 -->
|
||||
<!-- ****************************************************************************************************************************************************************************************** -->
|
||||
<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: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: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>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="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 financière accélérée et le redressement judiciaire"/>
|
||||
</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>
|
815
batch/bodacc/Bodacc_RCI_Redif_V06.xsd
Normal file
815
batch/bodacc/Bodacc_RCI_Redif_V06.xsd
Normal file
@ -0,0 +1,815 @@
|
||||
<?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 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 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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>
|
||||
<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>
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="dateImmatriculation" type="Date_Type" minOccurs="0"/>
|
||||
<xs:element name="categorieImmatriculation" 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="vente">
|
||||
<xs:complexType>
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="dateImmatriculation" type="Date_Type" minOccurs="0"/>
|
||||
<xs:element name="categorieVente" 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="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="200"/>
|
||||
</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-5]{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="50"/>
|
||||
</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>
|
827
batch/bodacc/Bodacc_RCI_Redif_V07.xsd
Normal file
827
batch/bodacc/Bodacc_RCI_Redif_V07.xsd
Normal file
@ -0,0 +1,827 @@
|
||||
<?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 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 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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="200"/>
|
||||
</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-5]{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="50"/>
|
||||
</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>
|
827
batch/bodacc/Bodacc_RCI_Redif_V08.xsd
Normal file
827
batch/bodacc/Bodacc_RCI_Redif_V08.xsd
Normal file
@ -0,0 +1,827 @@
|
||||
<?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 Journaux Officiels) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- 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 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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="200"/>
|
||||
</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-5]{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="50"/>
|
||||
</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>
|
828
batch/bodacc/Bodacc_RCI_Redif_V09.xsd
Normal file
828
batch/bodacc/Bodacc_RCI_Redif_V09.xsd
Normal file
@ -0,0 +1,828 @@
|
||||
<?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 Journaux Officiels) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- 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 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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="200"/>
|
||||
</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-5]{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>
|
829
batch/bodacc/Bodacc_RCI_Redif_V10.xsd
Normal file
829
batch/bodacc/Bodacc_RCI_Redif_V10.xsd
Normal file
@ -0,0 +1,829 @@
|
||||
<?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 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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="200"/>
|
||||
</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>
|
762
batch/bodacc/Bodacc_RCM_Redif_V04.xsd
Normal file
762
batch/bodacc/Bodacc_RCM_Redif_V04.xsd
Normal file
@ -0,0 +1,762 @@
|
||||
<?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 Journaux Officiels) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- Version V01 du 14/01/08 -->
|
||||
<!-- V04 du 12/03/08 : ajout norme ISO 4217 pour Devise_Type -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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="200"/>
|
||||
</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>
|
||||
<xs:element name="modificationsGenerales">
|
||||
<xs:annotation>
|
||||
<xs:documentation/>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<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>
|
||||
<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:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="radiationAuRCS">
|
||||
<xs:complexType>
|
||||
<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: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="200"/>
|
||||
</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-5]{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>
|
770
batch/bodacc/Bodacc_RCM_Redif_V05.xsd
Normal file
770
batch/bodacc/Bodacc_RCM_Redif_V05.xsd
Normal file
@ -0,0 +1,770 @@
|
||||
<?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 14/01/08 -->
|
||||
<!-- V04 du 12/03/08 : ajout norme ISO 4217 pour Devise_Type -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- -->
|
||||
<!-- V05 du 11/04/08 : ajout champs dateEffet -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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="200"/>
|
||||
</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>
|
||||
<xs:element name="modificationsGenerales">
|
||||
<xs:annotation>
|
||||
<xs:documentation/>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<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>
|
||||
<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: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: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="200"/>
|
||||
</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-5]{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>
|
772
batch/bodacc/Bodacc_RCM_Redif_V06.xsd
Normal file
772
batch/bodacc/Bodacc_RCM_Redif_V06.xsd
Normal file
@ -0,0 +1,772 @@
|
||||
<?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 14/01/08 -->
|
||||
<!-- V04 du 12/03/08 : ajout norme ISO 4217 pour Devise_Type -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- -->
|
||||
<!-- V05 du 11/04/08 : ajout champs dateEffet -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- -->
|
||||
<!-- V06 du 09/05/08 : suppression restriction longueur sur denomination -->
|
||||
<!-- ********************************************************************************************************************************************************************************** --><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: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>
|
||||
<xs:element name="modificationsGenerales">
|
||||
<xs:annotation>
|
||||
<xs:documentation/>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<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: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>
|
||||
<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: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: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: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-5]{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>
|
770
batch/bodacc/Bodacc_RCM_Redif_V07.xsd
Normal file
770
batch/bodacc/Bodacc_RCM_Redif_V07.xsd
Normal file
@ -0,0 +1,770 @@
|
||||
<?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 Journaux Officiels) -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<!-- 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 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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="200"/>
|
||||
</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>
|
||||
<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>
|
||||
<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: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: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="200"/>
|
||||
</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-5]{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>
|
773
batch/bodacc/Bodacc_RCM_Redif_V08.xsd
Normal file
773
batch/bodacc/Bodacc_RCM_Redif_V08.xsd
Normal file
@ -0,0 +1,773 @@
|
||||
<?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 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 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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>
|
||||
<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>
|
||||
<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: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: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-5]{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>
|
788
batch/bodacc/Bodacc_RCM_Redif_V09.xsd
Normal file
788
batch/bodacc/Bodacc_RCM_Redif_V09.xsd
Normal file
@ -0,0 +1,788 @@
|
||||
<?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 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 -->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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-5]{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>
|
791
batch/bodacc/Bodacc_RCM_Redif_V10.xsd
Normal file
791
batch/bodacc/Bodacc_RCM_Redif_V10.xsd
Normal file
@ -0,0 +1,791 @@
|
||||
<?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 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-->
|
||||
<!-- ********************************************************************************************************************************************************************************** -->
|
||||
<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-5]{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>
|
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>
|
10384
batch/bodacc/CPV.xsd
Normal file
10384
batch/bodacc/CPV.xsd
Normal file
File diff suppressed because it is too large
Load Diff
1277
batch/bodacc/ISO_CurrencyCode_2001.xsd
Normal file
1277
batch/bodacc/ISO_CurrencyCode_2001.xsd
Normal file
File diff suppressed because it is too large
Load Diff
1802
batch/bodacc/NUTS.xsd
Normal file
1802
batch/bodacc/NUTS.xsd
Normal file
File diff suppressed because it is too large
Load Diff
8869
batch/bodacc/jo_types.xsd
Normal file
8869
batch/bodacc/jo_types.xsd
Normal file
File diff suppressed because it is too large
Load Diff
34
batch/bodacc/majCapital.php
Normal file
34
batch/bodacc/majCapital.php
Normal file
@ -0,0 +1,34 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
|
||||
$iDb=new WDB();
|
||||
|
||||
$tabCapital=file('/root/capital.txt');
|
||||
$itot=count($tabCapital);
|
||||
foreach ($tabCapital as $i=>$ligne) {
|
||||
$tabLigne=explode(';', $ligne);
|
||||
//"7500";"EUR";"2";"483246450"
|
||||
$capital_montant=str_replace('"', '', $tabLigne[0]);
|
||||
$capital_devise =str_replace('"', '', $tabLigne[1]);
|
||||
$id =str_replace('"', '', $tabLigne[2]);
|
||||
$siren =str_replace('"', '', $tabLigne[3]);
|
||||
|
||||
$tmp=$iDb->update('bodacc_detail', array( 'Capital'=>$capital_montant,
|
||||
'CapitalDev'=>$capital_devise,
|
||||
'dateUpdate'=>''), "id=$id AND siren=$siren LIMIT 1");
|
||||
if (!$tmp)
|
||||
echo "ERR id=$id\tsiren=$siren\tcapital=$capital_devise $capital_montant\n";
|
||||
// else
|
||||
// echo "OK id=$id\tsiren=$siren\tcapital=$capital_devise $capital_montant\n";
|
||||
|
||||
if ($i%50000==1)
|
||||
echo date('H:i:s d/m/Y')." - $i lignes / $itot\n";
|
||||
|
||||
// die();
|
||||
}
|
||||
|
||||
?>
|
314
batch/calculRatios.php
Normal file
314
batch/calculRatios.php
Normal file
@ -0,0 +1,314 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Calcul des ratios de toute la base entreprise S&D.
|
||||
|
||||
Options :
|
||||
-t Calculer tous les ratios (*)
|
||||
-i:XXX Reprendre à la ligne XXX
|
||||
-c Mettre à jour le cache
|
||||
-d:SSAAMMJJhhiiss Forcer la date de dernière MAJ à ...
|
||||
-m:SSAA Recalculer tous les ratios de l'année SSAA
|
||||
-r:XXX,YYY,... Limiter le calcul au ratios suivant : séparateur virgule
|
||||
|
||||
(*) Option par défaut si aucun argument n'est passé.
|
||||
";/* -e:X Calculer pour les X derniers exercices (3 par défaut)
|
||||
-f Calculer les scores financiers
|
||||
*/
|
||||
$iDeb=0;
|
||||
$updateCache=$millesime=$ratio=$modeVerbose=false;
|
||||
$tabRatiosToCalc=array();
|
||||
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (strtolower(substr($argv[$i],1,1))) {
|
||||
case 't':
|
||||
break;
|
||||
case 'i':
|
||||
$iDeb=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'd':
|
||||
$dateDeb=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'm':
|
||||
$millesime=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'r':
|
||||
$ratio=true;
|
||||
$tabRatiosToCalc=explode(',',substr($argv[$i],3));
|
||||
break;
|
||||
case 'v':
|
||||
$modeVerbose=true;
|
||||
break;
|
||||
case 'c':
|
||||
$updateCache=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . ' inconnue !'.EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//$iDbI=new WDB('insee');
|
||||
$iDb=new WDB('jo');
|
||||
$iDb2=new WDB('jo');
|
||||
$iInsee=new MInsee();
|
||||
|
||||
if ($updateCache) {
|
||||
include_once(INCLUDE_PATH.'scores/classMRatios.php');
|
||||
if (genereCacheRatios())
|
||||
echo date('Y/m/d - H:i:s') ." - Le cache des ratios a été généré avec succès !".EOL;
|
||||
else
|
||||
echo date('Y/m/d - H:i:s') ." - Erreur lors de la génération du cache des ratios !".EOL;
|
||||
die();
|
||||
}
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT du programme de calcul des ratios...".EOL;
|
||||
|
||||
$tabLast=$iDb->select( 'ratios_formules',
|
||||
'max(dateUpdate) AS lastUpdate, max(dateInsert) AS lastInsert',
|
||||
'1');
|
||||
$lastUpdate=$tabLast[0]['lastInsert'];
|
||||
if ($tabLast[0]['lastUpdate']>$lastUpdate) $lastUpdate=$tabLast[0]['lastUpdate'];
|
||||
|
||||
/** On vérifie la présence du cache de calcul des ratios **/
|
||||
if (!file_exists(INCLUDE_PATH.'tmp/configMRatios.php'))
|
||||
die(date('Y/m/d - H:i:s') ." - ERREUR FATALE : Le cache des calculs de ratio n'existe pas !".EOL);
|
||||
/** On vérifie qu'il n'y a pas de nouvelles formules à mettre dans le cache de calcul des ratios **/
|
||||
elseif (strtr($lastUpdate, array(':'=>'','-'=>'', ' '=>''))>date('YmdHis',filectime(INCLUDE_PATH.'tmp/configMRatios.php'))) {
|
||||
sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "ERREUR FATALE, le cache ratio n'est pas à jour !", date('Y/m/d - H:i:s') ." - ERREUR FATALE : Le cache des calculs de ratio n'est pas à jour (nouvelles formules ?). Relancer à l'option -c !");
|
||||
die(date('Y/m/d - H:i:s') ." - ERREUR FATALE : Le cache des calculs de ratio n'est pas à jour (nouvelles formules ?). Relancer à l'option -c !".EOL);
|
||||
}
|
||||
/** On vérifie que le programme de MAJ du cache n'a pas été modifié **/
|
||||
elseif (date('YmdHis',filectime(INCLUDE_PATH.'scores/classMRatios.php'))>date('YmdHis',filectime(INCLUDE_PATH.'tmp/configMRatios.php'))) // Le fichier de cache est déprécié
|
||||
die(date('Y/m/d - H:i:s') ." - ERREUR FATALE : Le cache des calculs de ratio n'est pas à jour (programme modifié). Relancer à l'option -c !".EOL);
|
||||
|
||||
include_once(INCLUDE_PATH.'tmp/configMRatios.php');
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - Formules de calcul des ratios déjà en cache.".EOL;
|
||||
|
||||
/** Recherche de la dernière mise à jour des ratios secteurs **/
|
||||
$tabLast=$iDb->select( 'ratios_secteurs',
|
||||
'max(dateUpdate) AS lastUpdate, max(dateInsert) AS lastInsert',
|
||||
'1');
|
||||
$lastUpdate=$tabLast[0]['lastInsert'];
|
||||
if ($tabLast[0]['lastUpdate']>$lastUpdate) $lastUpdate=$tabLast[0]['lastUpdate'];
|
||||
if ($dateDeb>20000101123000) $lastUpdate=$dateDeb;
|
||||
$lastDateUpdate=strtr($lastUpdate,array(' '=>'',':'=>'','-'=>''));
|
||||
|
||||
echo(date('Y/m/d - H:i:s') ." - La dernière mise à jour des ratios secteurs date du $lastUpdate...".EOL);
|
||||
|
||||
$nbRows=$iDb->select( 'ratios_tmp', 'siren, lastUpdate', "1", false, MYSQL_ASSOC, true);
|
||||
if ($nbRows>0) {
|
||||
$modeSuite=true;
|
||||
echo date('Y/m/d - H:i:s') ." - Il reste $nbRows entreprises pour lesquels il faut mettre à jour les ratios secteurs...".EOL;
|
||||
} else {
|
||||
/** On met en table temporaire les siren en cas de plantage du script **/
|
||||
$modeSuite=false;
|
||||
|
||||
if ($millesime) {
|
||||
// Liste des derniers Bilans insérés depuis le dernier calcul des ratios
|
||||
$nbRows=$iDb->select( 'bilans', 'DISTINCT siren', "siren>100 AND dateExercice BETWEEN $milles"."0101 AND $millesime"."1231 AND typeBilan IN ('N','S','',' ','A','B') ORDER BY dateInsert DESC", false, MYSQL_ASSOC, true);
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows entreprises avec des bilans millésimes $millesime pour calcul des ratios secteurs...".EOL;
|
||||
//die();
|
||||
} else {
|
||||
// Date du dernier bilan inseré
|
||||
$tabLast=$iDb->select( 'bilans',
|
||||
'MAX(dateInsert) AS lastDateInsert',
|
||||
"siren>100 AND dateInsert>='$lastUpdate' AND typeBilan IN ('N','S','',' ','A','B') ORDER BY dateInsert DESC");
|
||||
$lastDateBilan=strtr($tabLast[0]['lastDateInsert'],array(' '=>'',':'=>'','-'=>''));
|
||||
echo(date('Y/m/d - H:i:s') ." - Le dernier bilan inséré en base date du $lastDateBilan...".EOL);
|
||||
// Liste des derniers Bilans insérés depuis le dernier calcul des ratios
|
||||
$nbRows=$iDb->select( 'bilans', 'DISTINCT siren', "siren>100 AND dateInsert>='$lastUpdate' AND typeBilan IN ('N','',' ','A','B') ORDER BY dateInsert DESC", false, MYSQL_ASSOC, true);
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows entreprises avec nouveaux bilans pour calcul des ratios secteurs...".EOL;
|
||||
}
|
||||
$iDb2->query('DROP TABLE IF EXISTS ratios_tmp;');
|
||||
if (mysql_errno()>0) echo date('Y/m/d - H:i:s') .' - ERREUR SQL lors de la création de la table temporaires, n°'.mysql_errno().' : '.mysql_error().EOL;
|
||||
$strSQL="CREATE TABLE IF NOT EXISTS ratios_tmp (
|
||||
siren int(9) unsigned zerofill NOT NULL,
|
||||
lastUpdate bigint(14) unsigned zerofill NOT NULL COMMENT 'Date de dernière mise à jour de la table ratio',
|
||||
lastBilan bigint(14) unsigned zerofill NOT NULL COMMENT 'Dernier bilan enregistré dans la table bilan',
|
||||
millesime year(4) unsigned NULL DEFAULT NULL COMMENT 'Paramètre millesime si défini',
|
||||
PRIMARY KEY(siren)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='TEMP - Liste des bilans dont il faut calculer les ratios';";
|
||||
$iDb2->query($strSQL);
|
||||
if (mysql_errno()>0) echo date('Y/m/d - H:i:s') .' - ERREUR SQL lors de la création de la table temporaires, n°'.mysql_errno().' : '.mysql_error().EOL;
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
if (!$millesime) $millesimeDb='NULL'; else $millesimeDb=$millesime;
|
||||
$iDb2->insert('ratios_tmp', array( 'siren' =>$entrep['siren'],
|
||||
'lastUpdate'=>$lastDateUpdate, // Date de dernière mise à jour de la table ratio
|
||||
'lastBilan' =>$lastDateBilan, // Dernier bilan enregistré dans la table bilan
|
||||
'millesime' =>$millesimeDb)); // On enregistre le paramètre millesime
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Les éléments ont été mis en table temporaire en cas de reprise sur erreur !".EOL;
|
||||
$nbRows=$iDb->select( 'ratios_tmp', 'siren, lastUpdate, lastBilan, millesime', "1", false, MYSQL_ASSOC, true);
|
||||
}
|
||||
|
||||
$k=0; // Compteur d'entreprises
|
||||
$b=0; // Compteur total de bilans
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
if ($modeSuite && $k==0) $lastDateUpdate=$entrep['lastUpdate'];
|
||||
$millesime=$entrep['millesime'];
|
||||
|
||||
$k++;
|
||||
if ($k<$iDeb) continue;
|
||||
|
||||
$siren=$entrep['siren'];
|
||||
if ($siren<100) continue;
|
||||
// else echo "$siren\n";
|
||||
$naf4=$naf5='';
|
||||
unset($mBil);
|
||||
|
||||
$mBil=new MBilans($siren);
|
||||
|
||||
/** Récupération des informations Identitaires **/
|
||||
$tabIdentite=@$iInsee->getIdentiteLight($siren);
|
||||
$naf=$tabIdentite['NafEnt'];
|
||||
$nafLib=$tabIdentite['NafEntLib'];
|
||||
$efftr=$tabIdentite['Effectif'];
|
||||
$fj=$tabIdentite['FJ'];
|
||||
|
||||
/** On Recherche le dernier Bilan mis à jour **/
|
||||
$tabBilans=$mBil->listeBilans();
|
||||
$nbBilansTot=count($tabBilans);
|
||||
$tabBilans2=array();
|
||||
foreach ($tabBilans as $mil=>$infosBilan) {
|
||||
/** On vérifie s'il n'y a pas de Bilan vide **/
|
||||
if ($infosBilan['dureeExercice']==0) {
|
||||
if ($modeVerbose) {
|
||||
print_r($infosBilan);
|
||||
echo date('Y/m/d - H:i:s') ." - Erreur : Bilans vide en base pour le siren $siren !".EOL;
|
||||
}
|
||||
$iDb2->delete('ratios_tmp', "siren=$siren");
|
||||
continue(2);
|
||||
}
|
||||
/** On ne garde que les Bilans dont la date de provenance est > à la date de dernière Mise à jour
|
||||
** car les ratios secteurs des autres bilans on déjà été calculés ! **/
|
||||
if ($millesime && $infosBilan['millesime']==$millesime)
|
||||
//echo "APRES ### $siren : $nbBilansTot bilans, $millesime = ".$infosBilan['millesime'].EOL;
|
||||
$tabBilans2[$mil]=$infosBilan;
|
||||
elseif (!$millesime && $infosBilan['dateInsert']>=$lastDateUpdate)
|
||||
$tabBilans2[$mil]=$infosBilan;
|
||||
/*else
|
||||
echo "DALLE ### $siren : $nbBilansTot bilans, $millesime = ".$infosBilan['millesime']." ### QUE DALLE !!!!".EOL;*/
|
||||
}
|
||||
|
||||
$nbBilans=count($tabBilans2);
|
||||
$tabBilan=$tabBil=array();
|
||||
if ($nbBilans==0) {
|
||||
if ($modeVerbose) {
|
||||
print_r($tabBilans2);
|
||||
echo date('Y/m/d - H:i:s') ." - Erreur : Aucun nouveau bilan en base pour le siren $siren sur les $nbBilansTot bilans !".EOL;
|
||||
print_r($tabBilans);
|
||||
}
|
||||
$iDb2->delete('ratios_tmp', "siren=$siren");
|
||||
continue;
|
||||
}
|
||||
|
||||
$tabRatios=@calculRatios($tabBilans2, $tabIdentite, false, 999);
|
||||
if (strlen($naf)>4) $naf5=$naf; else $naf4=$naf;
|
||||
|
||||
if ($tabBilan[0]['CONSOLIDE']=='A') $naf4='ASSU';
|
||||
elseif ($tabBilan[0]['CONSOLIDE']=='B') $naf4='BANQ';
|
||||
|
||||
if ($modeVerbose && ($naf4=='ASSU' || $naf4=='BANQ')) {
|
||||
//sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "Calcul des ratios : Attention bilan de e", "Siren $siren, bilan $naf4".EOL.print_r($tabBilans));
|
||||
echo "Bilan '$naf4' pour le siren $siren et l'année $annee !".EOL;
|
||||
}
|
||||
|
||||
foreach ($tabFormules as $f=>$formule) {
|
||||
foreach ($tabRatios as $i=>$R) {
|
||||
$id=$formule['id'];
|
||||
// Si on demande seulement le calcul d'un ratio alors on vérifie le numéro du ratio
|
||||
if ($ratio && !in_array($id, $tabRatiosToCalc)) continue;
|
||||
|
||||
if ($f==0) $b++;
|
||||
// Si on n'est pas une banque/assurance, on ne calcul pas les ratios 700 à 799
|
||||
if ($naf4<>'ASSU' && $naf4<>'BANQ' && $id>=700 && $id<800)
|
||||
continue;
|
||||
|
||||
$annee=substr($tabBilan[$i]['DATE_CLOTURE'],0,4);
|
||||
// Si on demande seulement le calcul d'un millésime alors on vérifie la date du bilan
|
||||
if ($millesime && $annee<>$millesime) continue;
|
||||
|
||||
if ($R[$id]==='NS' || $R[$id]===false ) {
|
||||
if ($modeVebose) echo "Le ratio n°$id est non significatif (".$R[$id].") pour le siren $siren et l'année $annee !".EOL;
|
||||
continue;
|
||||
}
|
||||
|
||||
/** Si c'est un ratio EUR, on le passe en K€ **/
|
||||
if ($formule['unite']=='EUR') $mt=$R[$id]/1000;
|
||||
else $mt=$R[$id];
|
||||
|
||||
/** On vérifie les bornes MIN et MAX **/
|
||||
if ($formule['min']<>'' && $mt<$formule['min']) {
|
||||
if ($modeVerbose) echo "Ratio n°$id, borne Mini non nulle (".$formule['min'].") et le montant est inférieur : $mt<".$formule['min']." pour le siren $siren et l'année $annee".EOL;
|
||||
continue;
|
||||
} elseif ($formule['max']<>'' && $mt>$formule['max']) {
|
||||
if ($modeVerbose) echo "Ratio n°$id, borne Maxi non nulle (".$formule['max'].") et le montant est supérieur : $mt>".$formule['max']." pour le siren $siren et l'année $annee".EOL;
|
||||
continue;
|
||||
} //else
|
||||
//echo "Ratio n°$id compris entre bornes ".$formule['min']." < $mt < ".$formule['max']." pour le siren $siren et l'année $annee".EOL;
|
||||
|
||||
/** Lecture des chiffres existants dans la table ratios_secteurs **/
|
||||
$tabTmp=$iDb2->select( 'ratios_secteurs',
|
||||
'montant, nombre, id, naf4, naf5, annee',
|
||||
"id=$id AND naf4='$naf4' AND naf5='$naf5' AND annee=$annee",
|
||||
false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) {
|
||||
$mt2=$mt+$tabTmp[0]['montant'];
|
||||
$nb2=$tabTmp[0]['nombre'] + 1;
|
||||
} else {
|
||||
$mt2=$mt;
|
||||
$nb2=1;
|
||||
}
|
||||
|
||||
$tabUpdate=array( 'montant' => $mt2,
|
||||
'nombre' => $nb2,
|
||||
);
|
||||
if (!$iDb2->update('ratios_secteurs', $tabUpdate, "id=$id AND naf4='$naf4' AND naf5='$naf5' AND annee=$annee") || $iDb2->getAffectedRows()==0 ) { // getAffectedRows ajouté le 14 mai 2009
|
||||
$tabInsert=array_merge($tabUpdate, array( 'id'=>$id,
|
||||
'naf4'=>$naf4,
|
||||
'naf5'=>$naf5,
|
||||
'annee'=>$annee,
|
||||
'dateInsert'=>$lastDateBilan,
|
||||
));
|
||||
if (!$iDb2->insert('ratios_secteurs', $tabInsert) && mysql_errno()<>1062) {
|
||||
$pct=round(($k/$nbRows)*100,2);
|
||||
echo date('Y/m/d - H:i:s') ." - $k entreprises ($pct %) dont les ratios ont été calculés pour un total de $b bilans ($siren)...".EOL;
|
||||
echo date('Y/m/d - H:i:s') .' - ERREUR SQL n°'.mysql_errno().' : '.mysql_error().EOL;
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
if ($k%1000==0 && $f==0 && $i==0) {
|
||||
$pct=round(($k/$nbRows)*100,2);
|
||||
echo date('Y/m/d - H:i:s') ." - $k entreprises ($pct %) dont les ratios ont été calculés pour un total de $b bilans ($siren)...".EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
$iDb2->delete('ratios_tmp', "siren=$siren");
|
||||
if (mysql_errno()>0) echo date('Y/m/d - H:i:s') .' - ERREUR SQL lors de la suppression des informations temporaires, n°'.mysql_errno().' : '.mysql_error().EOL;
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Les ratios ont été mis à jour ; suppression des informations temporaires.".EOL;
|
||||
|
||||
$iDb2->query('DROP TABLE IF EXISTS jo.ratios_tmp;');
|
||||
|
||||
die(date('Y/m/d - H:i:s') ." - Fin du programme.".EOL);
|
||||
|
||||
?>
|
315
batch/calculRatios2.php
Normal file
315
batch/calculRatios2.php
Normal file
@ -0,0 +1,315 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Calcul des ratios de toute la base entreprise S&D.
|
||||
|
||||
Options :
|
||||
-t Calculer tous les ratios (*)
|
||||
-i:XXX Reprendre à la ligne XXX
|
||||
-c Mettre à jour le cache
|
||||
-d:SSAAMMJJhhiiss Forcer la date de dernière MAJ à ...
|
||||
-m:SSAA Recalculer tous les ratios de l'année SSAA
|
||||
-r:XXX,YYY,... Limiter le calcul au ratios suivant : séparateur virgule
|
||||
|
||||
(*) Option par défaut si aucun argument n'est passé.
|
||||
";/* -e:X Calculer pour les X derniers exercices (3 par défaut)
|
||||
-f Calculer les scores financiers
|
||||
*/
|
||||
$iDeb=0;
|
||||
$updateCache=$millesime=$ratio=$modeVerbose=false;
|
||||
$tabRatiosToCalc=array();
|
||||
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (strtolower(substr($argv[$i],1,1))) {
|
||||
case 't':
|
||||
break;
|
||||
case 'i':
|
||||
$iDeb=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'd':
|
||||
$dateDeb=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'm':
|
||||
$millesime=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'r':
|
||||
$ratio=true;
|
||||
$tabRatiosToCalc=explode(',',substr($argv[$i],3));
|
||||
break;
|
||||
case 'v':
|
||||
$modeVerbose=true;
|
||||
break;
|
||||
case 'c':
|
||||
$updateCache=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . ' inconnue !'.EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//$iDbI=new WDB('insee');
|
||||
$iDb=new WDB('jo');
|
||||
$iDb2=new WDB('jo');
|
||||
$iInsee=new MInsee();
|
||||
|
||||
if ($updateCache) {
|
||||
include_once(INCLUDE_PATH.'scores/classMRatios.php');
|
||||
if (genereCacheRatios())
|
||||
echo date('Y/m/d - H:i:s') ." - Le cache des ratios a été généré avec succès !".EOL;
|
||||
else
|
||||
echo date('Y/m/d - H:i:s') ." - Erreur lors de la génération du cache des ratios !".EOL;
|
||||
die();
|
||||
}
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT du programme de calcul des ratios...".EOL;
|
||||
|
||||
$tabLast=$iDb->select( 'ratios_formules',
|
||||
'max(dateUpdate) AS lastUpdate, max(dateInsert) AS lastInsert',
|
||||
'1');
|
||||
$lastUpdate=$tabLast[0]['lastInsert'];
|
||||
if ($tabLast[0]['lastUpdate']>$lastUpdate) $lastUpdate=$tabLast[0]['lastUpdate'];
|
||||
|
||||
/** On vérifie la présence du cache de calcul des ratios **/
|
||||
if (!file_exists(INCLUDE_PATH.'tmp/configMRatios.php'))
|
||||
die(date('Y/m/d - H:i:s') ." - ERREUR FATALE : Le cache des calculs de ratio n'existe pas !".EOL);
|
||||
/** On vérifie qu'il n'y a pas de nouvelles formules à mettre dans le cache de calcul des ratios **/
|
||||
elseif (strtr($lastUpdate, array(':'=>'','-'=>'', ' '=>''))>date('YmdHis',filectime(INCLUDE_PATH.'tmp/configMRatios.php'))) {
|
||||
sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "ERREUR FATALE, le cache ratio n'est pas à jour !", date('Y/m/d - H:i:s') ." - ERREUR FATALE : Le cache des calculs de ratio n'est pas à jour (nouvelles formules ?). Relancer à l'option -c !");
|
||||
die(date('Y/m/d - H:i:s') ." - ERREUR FATALE : Le cache des calculs de ratio n'est pas à jour (nouvelles formules ?). Relancer à l'option -c !".EOL);
|
||||
}
|
||||
/** On vérifie que le programme de MAJ du cache n'a pas été modifié **/
|
||||
elseif (date('YmdHis',filectime(INCLUDE_PATH.'scores/classMRatios.php'))>date('YmdHis',filectime(INCLUDE_PATH.'tmp/configMRatios.php'))) // Le fichier de cache est déprécié
|
||||
die(date('Y/m/d - H:i:s') ." - ERREUR FATALE : Le cache des calculs de ratio n'est pas à jour (programme modifié). Relancer à l'option -c !".EOL);
|
||||
|
||||
include_once(INCLUDE_PATH.'tmp/configMRatios.php');
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - Formules de calcul des ratios déjà en cache.".EOL;
|
||||
|
||||
/** Recherche de la dernière mise à jour des ratios secteurs **/
|
||||
$tabLast=$iDb->select( 'ratios_secteurs',
|
||||
'max(dateUpdate) AS lastUpdate, max(dateInsert) AS lastInsert',
|
||||
'1');
|
||||
$lastUpdate=$tabLast[0]['lastInsert'];
|
||||
if ($tabLast[0]['lastUpdate']>$lastUpdate) $lastUpdate=$tabLast[0]['lastUpdate'];
|
||||
if ($dateDeb>20000101123000) $lastUpdate=$dateDeb;
|
||||
$lastDateUpdate=strtr($lastUpdate,array(' '=>'',':'=>'','-'=>''));
|
||||
|
||||
echo(date('Y/m/d - H:i:s') ." - La dernière mise à jour des ratios secteurs date du $lastUpdate...".EOL);
|
||||
|
||||
$nbRows=$iDb->select( 'ratios_tmp', 'siren, lastUpdate', "1", false, MYSQL_ASSOC, true);
|
||||
if ($nbRows>0) {
|
||||
$modeSuite=true;
|
||||
echo date('Y/m/d - H:i:s') ." - Il reste $nbRows entreprises pour lesquels il faut mettre à jour les ratios secteurs...".EOL;
|
||||
} else {
|
||||
/** On met en table temporaire les siren en cas de plantage du script **/
|
||||
$modeSuite=false;
|
||||
|
||||
if ($millesime) {
|
||||
// Liste des derniers Bilans insérés depuis le dernier calcul des ratios
|
||||
$nbRows=$iDb->select( 'bilans', 'DISTINCT siren', "siren>100 AND dateExercice BETWEEN $milles"."0101 AND $millesime"."1231 AND typeBilan IN ('N','S','',' ','A','B') ORDER BY dateInsert DESC", false, MYSQL_ASSOC, true);
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows entreprises avec des bilans millésimes $millesime pour calcul des ratios secteurs...".EOL;
|
||||
//die();
|
||||
} else {
|
||||
// Date du dernier bilan inseré
|
||||
$tabLast=$iDb->select( 'bilans',
|
||||
'MAX(dateInsert) AS lastDateInsert',
|
||||
"siren>100 AND dateInsert>='$lastUpdate' AND typeBilan IN ('N','S','',' ','A','B') ORDER BY dateInsert DESC");
|
||||
$lastDateBilan=strtr($tabLast[0]['lastDateInsert'],array(' '=>'',':'=>'','-'=>''));
|
||||
echo(date('Y/m/d - H:i:s') ." - Le dernier bilan inséré en base date du $lastDateBilan...".EOL);
|
||||
// Liste des derniers Bilans insérés depuis le dernier calcul des ratios
|
||||
$nbRows=$iDb->select( 'bilans', 'DISTINCT siren', "siren>100 AND dateInsert>='$lastUpdate' AND typeBilan IN ('N','',' ','A','B') ORDER BY dateInsert DESC", false, MYSQL_ASSOC, true);
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows entreprises avec nouveaux bilans pour calcul des ratios secteurs...".EOL;
|
||||
}
|
||||
$iDb2->query('DROP TABLE IF EXISTS ratios_tmp;');
|
||||
if (mysql_errno()>0) echo date('Y/m/d - H:i:s') .' - ERREUR SQL lors de la création de la table temporaires, n°'.mysql_errno().' : '.mysql_error().EOL;
|
||||
$strSQL="CREATE TABLE IF NOT EXISTS ratios_tmp (
|
||||
siren int(9) unsigned zerofill NOT NULL,
|
||||
lastUpdate bigint(14) unsigned zerofill NOT NULL COMMENT 'Date de dernière mise à jour de la table ratio',
|
||||
lastBilan bigint(14) unsigned zerofill NOT NULL COMMENT 'Dernier bilan enregistré dans la table bilan',
|
||||
millesime year(4) unsigned NULL DEFAULT NULL COMMENT 'Paramètre millesime si défini',
|
||||
PRIMARY KEY(siren)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='TABLE TEMPORAIRE - Liste des bilans dont il faut calculer les ratios';";
|
||||
$iDb2->query($strSQL);
|
||||
if (mysql_errno()>0) echo date('Y/m/d - H:i:s') .' - ERREUR SQL lors de la création de la table temporaires, n°'.mysql_errno().' : '.mysql_error().EOL;
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
if (!$millesime) $millesimeDb='NULL'; else $millesimeDb=$millesime;
|
||||
$iDb2->insert('ratios_tmp', array( 'siren' =>$entrep['siren'],
|
||||
'lastUpdate'=>$lastDateUpdate, // Date de dernière mise à jour de la table ratio
|
||||
'lastBilan' =>$lastDateBilan, // Dernier bilan enregistré dans la table bilan
|
||||
'millesime' =>$millesimeDb)); // On enregistre le paramètre millesime
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Les éléments ont été mis en table temporaire en cas de reprise sur erreur !".EOL;
|
||||
$nbRows=$iDb->select( 'ratios_tmp', 'siren, lastUpdate, lastBilan, millesime', "1", false, MYSQL_ASSOC, true);
|
||||
}
|
||||
|
||||
$k=0; // Compteur d'entreprises
|
||||
$b=0; // Compteur total de bilans
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
if ($modeSuite && $k==0) $lastDateUpdate=$entrep['lastUpdate'];
|
||||
$millesime=$entrep['millesime'];
|
||||
|
||||
$k++;
|
||||
if ($k<$iDeb) continue;
|
||||
|
||||
$siren=$entrep['siren'];
|
||||
if ($siren<100) continue;
|
||||
// else echo "$siren\n";
|
||||
$naf4=$naf5='';
|
||||
unset($mBil);
|
||||
|
||||
$mBil=new MBilans($siren);
|
||||
|
||||
/** Récupération des informations Identitaires **/
|
||||
$tabIdentite=@$iInsee->getIdentiteLight($siren);
|
||||
$naf=$tabIdentite['NafEnt'];
|
||||
$nafLib=$tabIdentite['NafEntLib'];
|
||||
$efftr=$tabIdentite['Effectif'];
|
||||
$fj=$tabIdentite['FJ'];
|
||||
|
||||
/** On Recherche le dernier Bilan mis à jour **/
|
||||
$tabBilans=$mBil->listeBilans();
|
||||
$nbBilansTot=count($tabBilans);
|
||||
$tabBilans2=array();
|
||||
foreach ($tabBilans as $mil=>$infosBilan) {
|
||||
/** On vérifie s'il n'y a pas de Bilan vide **/
|
||||
if ($infosBilan['dureeExercice']==0) {
|
||||
if ($modeVerbose) {
|
||||
print_r($infosBilan);
|
||||
echo date('Y/m/d - H:i:s') ." - Erreur : Bilans vide en base pour le siren $siren !".EOL;
|
||||
}
|
||||
$iDb2->delete('ratios_tmp', "siren=$siren");
|
||||
continue(2);
|
||||
}
|
||||
/** On ne garde que les Bilans dont la date de provenance est > à la date de dernière Mise à jour
|
||||
** car les ratios secteurs des autres bilans on déjà été calculés ! **/
|
||||
if ($millesime && $infosBilan['millesime']==$millesime) {
|
||||
//echo "APRES ### $siren : $nbBilansTot bilans, $millesime = ".$infosBilan['millesime'].EOL;
|
||||
$tabBilans2[$mil]=$infosBilan;
|
||||
}
|
||||
elseif (!$millesime && $infosBilan['dateInsert']>=$lastDateUpdate)
|
||||
$tabBilans2[$mil]=$infosBilan;
|
||||
/*else
|
||||
echo "DALLE ### $siren : $nbBilansTot bilans, $millesime = ".$infosBilan['millesime']." ### QUE DALLE !!!!".EOL;*/
|
||||
}
|
||||
|
||||
$nbBilans=count($tabBilans2);
|
||||
$tabBilan=$tabBil=array();
|
||||
if ($nbBilans==0) {
|
||||
if ($modeVerbose) {
|
||||
print_r($tabBilans2);
|
||||
echo date('Y/m/d - H:i:s') ." - Erreur : Aucun nouveau bilan en base pour le siren $siren sur les $nbBilansTot bilans !".EOL;
|
||||
print_r($tabBilans);
|
||||
}
|
||||
$iDb2->delete('ratios_tmp', "siren=$siren");
|
||||
continue;
|
||||
}
|
||||
|
||||
$tabRatios=@calculRatios($tabBilans2, $tabIdentite, false, 999);
|
||||
if (strlen($naf)>4) $naf5=$naf; else $naf4=$naf;
|
||||
|
||||
if ($tabBilan[0]['CONSOLIDE']=='A') $naf4='ASSU';
|
||||
elseif ($tabBilan[0]['CONSOLIDE']=='B') $naf4='BANQ';
|
||||
|
||||
if ($modeVerbose && ($naf4=='ASSU' || $naf4=='BANQ')) {
|
||||
//sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "Calcul des ratios : Attention bilan de e", "Siren $siren, bilan $naf4".EOL.print_r($tabBilans));
|
||||
echo "Bilan '$naf4' pour le siren $siren et l'année $annee !".EOL;
|
||||
}
|
||||
|
||||
foreach ($tabFormules as $f=>$formule) {
|
||||
foreach ($tabRatios as $i=>$R) {
|
||||
$id=$formule['id'];
|
||||
// Si on demande seulement le calcul d'un ratio alors on vérifie le numéro du ratio
|
||||
if ($ratio && !in_array($id, $tabRatiosToCalc)) continue;
|
||||
|
||||
if ($f==0) $b++;
|
||||
// Si on n'est pas une banque/assurance, on ne calcul pas les ratios 700 à 799
|
||||
if ($naf4<>'ASSU' && $naf4<>'BANQ' && $id>=700 && $id<800)
|
||||
continue;
|
||||
|
||||
$annee=substr($tabBilan[$i]['DATE_CLOTURE'],0,4);
|
||||
// Si on demande seulement le calcul d'un millésime alors on vérifie la date du bilan
|
||||
if ($millesime && $annee<>$millesime) continue;
|
||||
|
||||
if ($R[$id]==='NS' || $R[$id]===false ) {
|
||||
if ($modeVebose) echo "Le ratio n°$id est non significatif (".$R[$id].") pour le siren $siren et l'année $annee !".EOL;
|
||||
continue;
|
||||
}
|
||||
|
||||
/** Si c'est un ratio EUR, on le passe en K€ **/
|
||||
if ($formule['unite']=='EUR') $mt=$R[$id]/1000;
|
||||
else $mt=$R[$id];
|
||||
|
||||
/** On vérifie les bornes MIN et MAX **/
|
||||
if ($formule['min']<>'' && $mt<$formule['min']) {
|
||||
if ($modeVerbose) echo "Ratio n°$id, borne Mini non nulle (".$formule['min'].") et le montant est inférieur : $mt<".$formule['min']." pour le siren $siren et l'année $annee".EOL;
|
||||
continue;
|
||||
} elseif ($formule['max']<>'' && $mt>$formule['max']) {
|
||||
if ($modeVerbose) echo "Ratio n°$id, borne Maxi non nulle (".$formule['max'].") et le montant est supérieur : $mt>".$formule['max']." pour le siren $siren et l'année $annee".EOL;
|
||||
continue;
|
||||
} //else
|
||||
//echo "Ratio n°$id compris entre bornes ".$formule['min']." < $mt < ".$formule['max']." pour le siren $siren et l'année $annee".EOL;
|
||||
|
||||
/** Lecture des chiffres existants dans la table ratios_secteurs **/
|
||||
$tabTmp=$iDb2->select( 'ratios_secteurs',
|
||||
'montant, nombre, id, naf4, naf5, annee',
|
||||
"id=$id AND naf4='$naf4' AND naf5='$naf5' AND annee=$annee",
|
||||
false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) {
|
||||
$mt2=$mt+$tabTmp[0]['montant'];
|
||||
$nb2=$tabTmp[0]['nombre'] + 1;
|
||||
} else {
|
||||
$mt2=$mt;
|
||||
$nb2=1;
|
||||
}
|
||||
|
||||
$tabUpdate=array( 'montant' => $mt2,
|
||||
'nombre' => $nb2,
|
||||
);
|
||||
if (!$iDb2->update('ratios_secteurs', $tabUpdate, "id=$id AND naf4='$naf4' AND naf5='$naf5' AND annee=$annee") || $iDb2->getAffectedRows()==0 ) { // getAffectedRows ajouté le 14 mai 2009
|
||||
$tabInsert=array_merge($tabUpdate, array( 'id'=>$id,
|
||||
'naf4'=>$naf4,
|
||||
'naf5'=>$naf5,
|
||||
'annee'=>$annee,
|
||||
'dateInsert'=>$lastDateBilan,
|
||||
));
|
||||
if (!$iDb2->insert('ratios_secteurs', $tabInsert) && mysql_errno()<>1062) {
|
||||
$pct=round(($k/$nbRows)*100,2);
|
||||
echo date('Y/m/d - H:i:s') ." - $k entreprises ($pct %) dont les ratios ont été calculés pour un total de $b bilans ($siren)...".EOL;
|
||||
echo date('Y/m/d - H:i:s') .' - ERREUR SQL n°'.mysql_errno().' : '.mysql_error().EOL;
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
if ($k%1000==0 && $f==0 && $i==0) {
|
||||
$pct=round(($k/$nbRows)*100,2);
|
||||
echo date('Y/m/d - H:i:s') ." - $k entreprises ($pct %) dont les ratios ont été calculés pour un total de $b bilans ($siren)...".EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
$iDb2->delete('ratios_tmp', "siren=$siren");
|
||||
if (mysql_errno()>0) echo date('Y/m/d - H:i:s') .' - ERREUR SQL lors de la suppression des informations temporaires, n°'.mysql_errno().' : '.mysql_error().EOL;
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Les ratios ont été mis à jour ; suppression des informations temporaires.".EOL;
|
||||
|
||||
$iDb2->query('DROP TABLE IF EXISTS jo.ratios_tmp;');
|
||||
|
||||
die(date('Y/m/d - H:i:s') ." - Fin du programme.".EOL);
|
||||
|
||||
?>
|
112
batch/calculRatiosIni.php
Normal file
112
batch/calculRatiosIni.php
Normal file
@ -0,0 +1,112 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Calcul des ratios de toute la base entreprise S&D.
|
||||
|
||||
Options :
|
||||
-t Calculer tous les ratios (*)
|
||||
-i:XXX Reprendre à la ligne XXX
|
||||
-c Mettre à jour le cache
|
||||
|
||||
(*) Option par défaut si aucun argument n'est passé.
|
||||
";/* -e:X Calculer pour les X derniers exercices (3 par défaut)
|
||||
-f Calculer les scores financiers
|
||||
*/
|
||||
$iDeb=0;
|
||||
$updateCache=false;
|
||||
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (strtolower(substr($argv[$i],1,1))) {
|
||||
case 't':
|
||||
break;
|
||||
case 'i':
|
||||
$iDeb=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'c':
|
||||
$updateCache=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . ' inconnue !'.EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//$iDbI=new WDB('insee');
|
||||
$iDb=new WDB('jo');
|
||||
$iDb2=new WDB('jo');
|
||||
$iInsee=new MInsee();
|
||||
$limit=1000000;
|
||||
$iFin=504;//2/*504*/;
|
||||
|
||||
$tabFormule=$tabSecteursMt=$tabSecteursNb=array();
|
||||
|
||||
$tabFormules=$iDb->select( 'ratios_formules',
|
||||
'id, libelle, formule, unite, commentaires, deleted, borneMin, borneMax',
|
||||
'deleted=0');
|
||||
foreach ($tabFormules as $i=>$formule) {
|
||||
$id=$formule['id']*1;
|
||||
//$tabFormule['f'.$id]['libelle']=$formule['libelle'];
|
||||
$tabFormule['f'.$id]['unite']=$formule['unite'];
|
||||
$tabFormule['f'.$id]['min']=$formule['borneMin'];
|
||||
$tabFormule['f'.$id]['max']=$formule['borneMax'];
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Formules mises en mémoire ...".EOL;
|
||||
//print_r($tabFormule);die();
|
||||
|
||||
for ($iDeb=0; $iDeb<=$iFin*$limit; $iDeb+=$limit) {
|
||||
$nbRows=$iDb->select( 'ratios_test2', 'siren, id, naf4, naf5, millesime, montant', "1 LIMIT $iDeb,$limit", false, MYSQL_ASSOC, true);
|
||||
$iDebAff=$iDeb/$limit;
|
||||
echo date('Y/m/d - H:i:s') ." - Tranche de ratios n°$iDebAff/$iFin...".EOL;
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
if ($tabFormule['f'.$entrep['id']]['unite']=='EUR') $mt=$entrep['montant']/1000;
|
||||
else $mt=$entrep['montant'];
|
||||
if ($tabFormule['f'.$entrep['id']]['min']!==NULL && $mt<$tabFormule['f'.$entrep['id']]['min']) {
|
||||
//echo 'Borne Mini non nulle ('.$tabFormule['f'.$entrep['id']]['min'].") et le montant est inférieur : $mt<".$tabFormule['f'.$entrep['id']]['min']."!\n";
|
||||
continue;
|
||||
} elseif ($tabFormule['f'.$entrep['id']]['max']!==NULL && $mt>$tabFormule['f'.$entrep['id']]['max']) {
|
||||
//echo 'Borne Maxi non nulle ('.$tabFormule['f'.$entrep['id']]['max'].") et le montant est supéreiur : $mt>".$tabFormule['f'.$entrep['id']]['max']."!\n";
|
||||
continue;
|
||||
} /*else
|
||||
echo 'Ratio compris entre bornes '.$tabFormule['f'.$entrep['id']]['min']." < $mt < ".$tabFormule['f'.$entrep['id']]['max'].".\n";
|
||||
*/
|
||||
$tabSecteursMt[$entrep['id'].'-'.$entrep['naf4'].'-'.$entrep['naf5'].'-'.$entrep['millesime']]+=$mt;
|
||||
$tabSecteursNb[$entrep['id'].'-'.$entrep['naf4'].'-'.$entrep['naf5'].'-'.$entrep['millesime']]++;
|
||||
}
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Insertion en base des ".count($tabSecteursMt)." ratios secteurs...".EOL;
|
||||
$dateInsert=date('YmdHis');
|
||||
foreach ($tabSecteursMt as $cleSecteur=>$mt) {
|
||||
$tmp=explode('-', $cleSecteur);
|
||||
|
||||
$tabInsert=array( 'id' => $tmp[0],
|
||||
'naf4' => $tmp[1],
|
||||
'naf5' => $tmp[2],
|
||||
'annee' => $tmp[3],
|
||||
'montant' => $mt,
|
||||
'nombre' => $tabSecteursNb[$cleSecteur],
|
||||
'dateInsert'=> $dateInsert,
|
||||
);
|
||||
if (!$iDb->insert('ratios_secteurs', $tabInsert)) {
|
||||
echo date('Y/m/d - H:i:s') ." - Erreur MySQL N°".mysql_errno().' : '.mysql_error().EOL;
|
||||
print_r($tabInsert);
|
||||
}
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Fin de l'insertion en base des ratios.".EOL;
|
||||
|
||||
die();
|
||||
?>
|
151
batch/calculRedevances.php
Normal file
151
batch/calculRedevances.php
Normal file
@ -0,0 +1,151 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMSirene.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBourse.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMLiens.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMFinancier.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMSolvabilite.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMMap.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(INCLUDE_PATH.'tmp/configMRatios.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMScores.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMRegression.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " <option>
|
||||
Calcul des redevances INSEE pour un mois donné.
|
||||
|
||||
Options :
|
||||
-v Mode debug (Verbosité au maximum)
|
||||
-m:SSAAMM Forcer le mois de calcul des redevances à SSAAMM (sinon mois précedent)
|
||||
-c:XXX Limiter au client XXX
|
||||
-t Table de test
|
||||
|
||||
";
|
||||
$tableRdv='inseeRdv';
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
|
||||
//$iDb=new WDB('jo');
|
||||
$iDb=new WDB('sdv1');
|
||||
$iDb2=new WDB('sdv1');
|
||||
$tabUser=array();
|
||||
|
||||
$modeDebug=$idClient=false;
|
||||
$dateMAJ=date('Ymt',mktime(0,0,0,date('m')-1,date('d'),date('Y')));
|
||||
$strMailInfo='';
|
||||
|
||||
for ($i=1,$j=0; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'v': $modeDebug=true; break;
|
||||
case 'c': $idClient = substr($argv[$i],3)*1; break;
|
||||
case 'm': $dateMAJ = date('Ymt',mktime(0,0,0,substr($argv[$i],7,2),1,substr($argv[$i],3,4))); break;
|
||||
case 't': $tableRdv='inseeRdv2'; break;
|
||||
case '-':
|
||||
case '?': die($strInfoScript); break;
|
||||
default: die('Option '. $argv[$i] . " inconnue !\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$moisEnCours=substr($dateMAJ,0,6);
|
||||
$dateDEB=substr($moisEnCours,0,6).'01';
|
||||
|
||||
/** Liste des clients **/
|
||||
if ($idClient) $strClient=" AND id=".$idClient;
|
||||
else $strClient='';
|
||||
$tabTmp=$iDb->select('clients', 'id, nom', "1 $strClient", false, MYSQL_ASSOC);
|
||||
$tabClient=array();
|
||||
foreach ($tabTmp as $tabTmp2) {
|
||||
$tabClient[$tabTmp2['id']]=$tabTmp2['nom'];
|
||||
}
|
||||
$nbClients=count($tabClient);
|
||||
|
||||
/** Liste des utilisateurs **/
|
||||
if ($idClient) $strClient=" AND idClient=".$idClient;
|
||||
else $strClient='';
|
||||
$tabTmp=$iDb->select('utilisateurs', "login, idClient", "1 $strClient", false, MYSQL_ASSOC);
|
||||
$tabUser=array();
|
||||
foreach ($tabTmp as $tabTmp2) {
|
||||
$tabUser['_'.$tabTmp2['login']]=$tabTmp2['idClient'];
|
||||
}
|
||||
$nbUsers=count($tabUser);
|
||||
|
||||
/** Calcul des redevances en niveau 1 : Navéa (Extranet/WS) **/
|
||||
$iClient=0;
|
||||
foreach ($tabClient as $idClient=>$nomClient) {
|
||||
$iClient++;
|
||||
echo date('Y/m/d H:i:s')." - Client $iClient/$nbClients - Calcul des redevances type 1 pour '".$tabClient[$idClient]. "' en $moisEnCours : ";
|
||||
$tabLogs=$iDb->select( 'logs',
|
||||
'siren, nic',
|
||||
"idClient=$idClient AND page='identite' AND test=0 AND actifInsee=1 AND source=2 AND dateHeure BETWEEN $dateDEB AND $dateMAJ GROUP BY siren, nic", false, MYSQL_ASSOC);
|
||||
$nbSiret=count($tabLogs);
|
||||
echo "$nbSiret siret".EOL;
|
||||
|
||||
$tabInsert=array('idClient'=>$idClient,
|
||||
'nomClient'=>$tabClient[$idClient],
|
||||
'mois'=>$moisEnCours,
|
||||
'produit'=>1,
|
||||
'nbSiret'=>$nbSiret,
|
||||
);
|
||||
if (!$iDb2->insert($tableRdv, $tabInsert, false))
|
||||
$iDb2->update($tableRdv, $tabInsert, "idClient=$idClient AND mois=$moisEnCours AND produit=1", false);
|
||||
}
|
||||
|
||||
/** Calcul des redevances en niveau 2 : Odéa (Ciblage, sortie prévue en 2012) **/
|
||||
|
||||
/** Calcul des redevances en niveau 3 : Sirenages Clients et enrichissement (Depuis Aout 2010) **/
|
||||
$iClient=0;
|
||||
foreach ($tabClient as $idClient=>$nomClient) {
|
||||
$iClient++;
|
||||
echo date('Y/m/d H:i:s')." - Client $iClient/$nbClients - Calcul des redevances type 3 pour '".$tabClient[$idClient]. "' en $moisEnCours : ";
|
||||
$tabLogs=$iDb->select( 'jo.sirenage_clients',
|
||||
'siren, nic',
|
||||
"idClient=$idClient AND siren>1000 AND nic>9 AND dateUpdate BETWEEN $dateDEB AND $dateMAJ GROUP BY siren, nic", false, MYSQL_ASSOC);
|
||||
$nbSiret=count($tabLogs);
|
||||
echo "$nbSiret siret".EOL;
|
||||
|
||||
$tabInsert=array('idClient'=>$idClient,
|
||||
'nomClient'=>$tabClient[$idClient],
|
||||
'mois'=>$moisEnCours,
|
||||
'produit'=>3,
|
||||
'nbSiret'=>$nbSiret,
|
||||
);
|
||||
if (!$iDb2->insert($tableRdv, $tabInsert, false))
|
||||
$iDb2->update($tableRdv, $tabInsert, "idClient=$idClient AND mois=$moisEnCours AND produit=3", false);
|
||||
}
|
||||
|
||||
/** Calcul des redevances en niveau 4 : Surveillances Insee (Depuis Janvier 2011) **/
|
||||
$iClient=0;
|
||||
foreach ($tabClient as $idClient=>$nomClient) {
|
||||
$iClient++;
|
||||
echo date('Y/m/d H:i:s')." - Client $iClient/$nbClients - Calcul des redevances type 4 pour '".$tabClient[$idClient]. "' en $moisEnCours : ";
|
||||
$tabLogs=$iDb->select( 'jo.surveillances_site s, sdv1.utilisateurs u, sdv1.clients c',
|
||||
's.siren, s.nic',
|
||||
"s.siren>1000 AND s.source='insee' AND s.login=u.login AND u.idClient=$idClient AND u.idClient=c.id and c.test='Non' AND u.typeCompte='PROD' AND s.dateAjout BETWEEN $dateDEB AND $dateMAJ GROUP BY s.siren, s.nic", false, MYSQL_ASSOC);
|
||||
$nbSiret=count($tabLogs);
|
||||
echo "$nbSiret siret".EOL;
|
||||
|
||||
$tabInsert=array('idClient'=>$idClient,
|
||||
'nomClient'=>$tabClient[$idClient],
|
||||
'mois'=>$moisEnCours,
|
||||
'produit'=>4,
|
||||
'nbSiret'=>$nbSiret,
|
||||
);
|
||||
if (!$iDb2->insert($tableRdv, $tabInsert, false))
|
||||
$iDb2->update($tableRdv, $tabInsert, "idClient=$idClient AND mois=$moisEnCours AND produit=4", false);
|
||||
}
|
||||
|
||||
/** Calcul des redevances en niveau 5 : INEXISTANT **/
|
||||
|
||||
die();
|
||||
|
||||
?>
|
151
batch/calculRedevancesTest.php
Normal file
151
batch/calculRedevancesTest.php
Normal file
@ -0,0 +1,151 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMSirene.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBourse.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMLiens.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMFinancier.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMSolvabilite.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMMap.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(INCLUDE_PATH.'tmp/configMRatios.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMScores.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMRegression.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " <option>
|
||||
Calcul des redevances INSEE pour un mois donné.
|
||||
|
||||
Options :
|
||||
-v Mode debug (Verbosité au maximum)
|
||||
-m:SSAAMM Forcer le mois de calcul des redevances à SSAAMM (sinon mois précedent)
|
||||
-c:XXX Limiter au client XXX
|
||||
-t Table de test
|
||||
|
||||
";
|
||||
$tableRdv='inseeRdv';
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
|
||||
//$iDb=new WDB('jo');
|
||||
$iDb=new WDB('sdv1');
|
||||
$iDb2=new WDB('sdv1');
|
||||
$tabUser=array();
|
||||
|
||||
$modeDebug=$idClient=false;
|
||||
$dateMAJ=date('Ymt',mktime(0,0,0,date('m')-1,date('d'),date('Y')));
|
||||
$strMailInfo='';
|
||||
|
||||
for ($i=1,$j=0; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'v': $modeDebug=true; break;
|
||||
case 'c': $idClient = substr($argv[$i],3)*1; break;
|
||||
case 'm': $dateMAJ = date('Ymt',mktime(0,0,0,substr($argv[$i],7,2),1,substr($argv[$i],3,4))); break;
|
||||
case 't': $tableRdv='inseeRdv2'; break;
|
||||
case '-':
|
||||
case '?': die($strInfoScript); break;
|
||||
default: die('Option '. $argv[$i] . " inconnue !\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$moisEnCours=substr($dateMAJ,0,6);
|
||||
$dateDEB=substr($moisEnCours,0,6).'01';
|
||||
|
||||
/** Liste des clients **/
|
||||
if ($idClient) $strClient=" AND id=".$idClient;
|
||||
else $strClient='';
|
||||
$tabTmp=$iDb->select('clients', 'id, nom', "1 $strClient", false, MYSQL_ASSOC);
|
||||
$tabClient=array();
|
||||
foreach ($tabTmp as $tabTmp2) {
|
||||
$tabClient[$tabTmp2['id']]=$tabTmp2['nom'];
|
||||
}
|
||||
$nbClients=count($tabClient);
|
||||
|
||||
/** Liste des utilisateurs **/
|
||||
if ($idClient) $strClient=" AND idClient=".$idClient;
|
||||
else $strClient='';
|
||||
$tabTmp=$iDb->select('utilisateurs', "login, idClient", "1 $strClient", false, MYSQL_ASSOC);
|
||||
$tabUser=array();
|
||||
foreach ($tabTmp as $tabTmp2) {
|
||||
$tabUser['_'.$tabTmp2['login']]=$tabTmp2['idClient'];
|
||||
}
|
||||
$nbUsers=count($tabUser);
|
||||
|
||||
/** Calcul des redevances en niveau 1 : Navéa (Extranet/WS) **/
|
||||
$iClient=0;
|
||||
foreach ($tabClient as $idClient=>$nomClient) {
|
||||
$iClient++;
|
||||
echo date('Y/m/d H:i:s')." - Client $iClient/$nbClients - Calcul des redevances type 1 pour '".$tabClient[$idClient]. "' en $moisEnCours : ";
|
||||
$tabLogs=$iDb->select( 'logs',
|
||||
'siren, nic/*, date(dateHeure) AS jour*/',
|
||||
"idClient=$idClient AND page='identite' AND test=0 AND actifInsee IN(0,1) AND source=2 AND dateHeure BETWEEN $dateDEB AND $dateMAJ GROUP BY siren, nic/*, jour*/", false, MYSQL_ASSOC);
|
||||
$nbSiret=count($tabLogs);
|
||||
echo "$nbSiret siret".EOL;
|
||||
|
||||
$tabInsert=array('idClient'=>$idClient,
|
||||
'nomClient'=>$tabClient[$idClient],
|
||||
'mois'=>$moisEnCours,
|
||||
'produit'=>1,
|
||||
'nbSiret'=>$nbSiret,
|
||||
);
|
||||
if (!$iDb2->insert($tableRdv, $tabInsert, false))
|
||||
$iDb2->update($tableRdv, $tabInsert, "idClient=$idClient AND mois=$moisEnCours AND produit=1", false);
|
||||
}
|
||||
|
||||
/** Calcul des redevances en niveau 2 : Odéa (Ciblage, sortie prévue en 2012) **/
|
||||
|
||||
/** Calcul des redevances en niveau 3 : Sirenages Clients et enrichissement (Depuis Aout 2010) **/
|
||||
$iClient=0;
|
||||
foreach ($tabClient as $idClient=>$nomClient) {
|
||||
$iClient++;
|
||||
echo date('Y/m/d H:i:s')." - Client $iClient/$nbClients - Calcul des redevances type 3 pour '".$tabClient[$idClient]. "' en $moisEnCours : ";
|
||||
$tabLogs=$iDb->select( 'jo.sirenage_clients',
|
||||
'siren, nic, date(dateHeure) AS jour',
|
||||
"idClient=$idClient AND siren>1000 AND nic>9 AND dateUpdate BETWEEN $dateDEB AND $dateMAJ GROUP BY siren, nic, jour", false, MYSQL_ASSOC);
|
||||
$nbSiret=count($tabLogs);
|
||||
echo "$nbSiret siret".EOL;
|
||||
|
||||
$tabInsert=array('idClient'=>$idClient,
|
||||
'nomClient'=>$tabClient[$idClient],
|
||||
'mois'=>$moisEnCours,
|
||||
'produit'=>3,
|
||||
'nbSiret'=>$nbSiret,
|
||||
);
|
||||
if (!$iDb2->insert($tableRdv, $tabInsert, false))
|
||||
$iDb2->update($tableRdv, $tabInsert, "idClient=$idClient AND mois=$moisEnCours AND produit=3", false);
|
||||
}
|
||||
|
||||
/** Calcul des redevances en niveau 4 : Surveillances Insee (Depuis Janvier 2011) **/
|
||||
$iClient=0;
|
||||
foreach ($tabClient as $idClient=>$nomClient) {
|
||||
$iClient++;
|
||||
echo date('Y/m/d H:i:s')." - Client $iClient/$nbClients - Calcul des redevances type 4 pour '".$tabClient[$idClient]. "' en $moisEnCours : ";
|
||||
$tabLogs=$iDb->select( 'jo.surveillances_site s, sdv1.utilisateurs u, sdv1.clients c',
|
||||
's.siren, s.nic, s.dateAjout',
|
||||
"s.siren>1000 AND s.source='insee' AND s.login=u.login AND u.idClient=$idClient AND u.idClient=c.id and c.test='Non' AND u.typeCompte='PROD' AND s.dateAjout BETWEEN $dateDEB AND $dateMAJ GROUP BY s.siren, s.nic, s.dateAjout", false, MYSQL_ASSOC);
|
||||
$nbSiret=count($tabLogs);
|
||||
echo "$nbSiret siret".EOL;
|
||||
|
||||
$tabInsert=array('idClient'=>$idClient,
|
||||
'nomClient'=>$tabClient[$idClient],
|
||||
'mois'=>$moisEnCours,
|
||||
'produit'=>4,
|
||||
'nbSiret'=>$nbSiret,
|
||||
);
|
||||
if (!$iDb2->insert($tableRdv, $tabInsert, false))
|
||||
$iDb2->update($tableRdv, $tabInsert, "idClient=$idClient AND mois=$moisEnCours AND produit=4", false);
|
||||
}
|
||||
|
||||
/** Calcul des redevances en niveau 5 : INEXISTANT **/
|
||||
|
||||
die();
|
||||
|
||||
?>
|
341
batch/calculScoreSurv.php
Normal file
341
batch/calculScoreSurv.php
Normal file
@ -0,0 +1,341 @@
|
||||
#!/usr/bin/php -c/var/www/ws/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
$tDeb=microtime(true);
|
||||
|
||||
$dateJour=date('Y-m-d');
|
||||
|
||||
function wsLog($service, $siret='', $ref='') {
|
||||
/* if (strlen($siret)==14) {
|
||||
$siren=substr($siret,0,9);
|
||||
$nic=substr($siret,9,5);
|
||||
} elseif (strlen($siret)==9) {
|
||||
$siren=$siret;
|
||||
$nic='';
|
||||
}
|
||||
|
||||
global $iDbCrm, $tabInfoUser;
|
||||
$tabInsert=array( 'login'=>$tabInfoUser['login'],
|
||||
'page'=>$service,
|
||||
'siren'=>$siren,
|
||||
'nic'=>$nic,
|
||||
'params'=>$ref);
|
||||
$rep=$iDbCrm->insert('logs', $tabInsert);
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMSirene.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBourse.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMLiens.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMFinancier.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMSolvabilite.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMMap.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(INCLUDE_PATH.'tmp/configMRatios.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMScores.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
|
||||
|
||||
$nbExercices=2;
|
||||
$sqlEncours=$modeDebug=$periAncien=$listeDeclencheur=$forceDeclencheur=false;
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Scorer toute la base entreprise S&D.
|
||||
|
||||
Options :
|
||||
-t Calculer tous les scores (*)
|
||||
-v Mode bavard ou debug
|
||||
-r Recalculer tous les scores avec indiscore>0 et un encours à 0 !
|
||||
-a Calculer tous les anciens ou nouveaux scores
|
||||
-l Lister les déclencheurs existants pour le recalcul des scores
|
||||
-d:XXX Lancer le calcul des scores pour le déclencheur XXX
|
||||
|
||||
(*) Option par défaut si aucun argument n'est passé.
|
||||
";/* -e:X Calculer pour les X derniers exercices (3 par défaut)
|
||||
-f Calculer les scores financiers
|
||||
*/
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (strtolower(substr($argv[$i],1,1))) {
|
||||
case 'a':
|
||||
$periAncien=true;
|
||||
break;
|
||||
case 't':
|
||||
break;
|
||||
case 'l':
|
||||
$listeDeclencheur=true;
|
||||
break;
|
||||
case 'd':
|
||||
$forceDeclencheur=strtolower(substr($argv[$i],3));
|
||||
break;
|
||||
case 'r':
|
||||
$sqlEncours=true;
|
||||
break;
|
||||
case 'v':
|
||||
$modeDebug=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . ' inconnue !'.EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT du programme de calcul des scores en surveillance...".EOL;
|
||||
|
||||
$iDb=new WDB();
|
||||
$iDb2=new WDB();
|
||||
$iDbHisto=new WDB('historiques');
|
||||
$iInsee=new MInsee();
|
||||
|
||||
// $iWs=new WsEntreprise();
|
||||
|
||||
//$tabScore=@$iWs->getIndiScore(552144503, 0, false);
|
||||
//$tabScore=@$iWs->getIndiScore(27020395, 0, false);
|
||||
//print_r($tabScore);die();
|
||||
if (!$listeDeclencheur && !$forceDeclencheur) {
|
||||
echo date('Y/m/d - H:i:s') ." - Mise en surveillance Scores de l'ensemble des demandes de scoring...".EOL;
|
||||
$query="INSERT IGNORE INTO scores_surveillance(siren)
|
||||
SELECT DISTINCT siren FROM sdv1.`logs`
|
||||
WHERE dateHeure> (SELECT max(dateUpdate) FROM scores_surveillance)
|
||||
AND page IN ('indiscore','scorecsf') AND siren>100 ";
|
||||
$res=$iDb->query($query);
|
||||
|
||||
$query="INSERT IGNORE INTO scores_surveillance(siren)
|
||||
SELECT DISTINCT siren FROM jo.surveillances_site
|
||||
WHERE source='score' AND siren>=100000 AND siren NOT IN
|
||||
(SELECT siren FROM scores_surveillance) ";
|
||||
$res=$iDb->query($query);
|
||||
}
|
||||
|
||||
$strSelect="s.siren, s.actif, s.procol, s.indiScore, s.indiScore20, s.encours, s.indiScoreDate, scoreSolv, scoreConf, scoreDir, scoreZ, scoreCH, scoreAfdcc1, scoreAfdcc2, scoreAfdcc2note, scoreAltman, scoreAltmanCote, scoreCCF, situFi, infoNote, noteStruct, noteFin, tendance, nbModifs, s.dateUpdate, s.cs, s.csMoisMaj, s.csMoisFin";
|
||||
|
||||
$tabQueries=array(
|
||||
/* Bilans Asso déposé(s) */
|
||||
'bilansasso'=> "SELECT $strSelect, 'bilansasso' as source FROM scores_surveillance s, asso_bilans b WHERE b.siren>1000 AND s.siren=b.siren AND b.dateInsert>s.dateUpdate AND s.procol NOT IN('P') GROUP BY siren",
|
||||
//asso_bilans', 'dateCloture, dateCloture*1 as dateClotureNum', "siren=$siren ORDER BY DESC LIMIT 0,5", true, MYSQL_ASSOC);
|
||||
/* Privileges Infogreffe */
|
||||
'privileges'=> "SELECT $strSelect, 'privileges' AS source FROM scores_surveillance s, greffes_privileges p WHERE p.siren>1000 AND s.siren = p.siren AND (p.dateInsert>s.dateUpdate OR p.dateUpdate>s.dateUpdate) AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Privileges Facto */
|
||||
'privileges2'=> "SELECT $strSelect, 'privileges2' AS source FROM jo.scores_surveillance s, sdv1.ge_cs2 p WHERE p.siren>1000 AND s.siren = p.siren AND (p.dateInsert>=s.dateUpdate OR p.dateConf>=s.dateUpdate) AND p.cs='P' AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* IMPAYES Facto */
|
||||
'impayes'=> "SELECT $strSelect, 'impayes' AS source FROM jo.scores_surveillance s, sdv1.ge_cs2 p WHERE p.siren>1000 AND s.siren = p.siren AND (p.dateInsert>=s.dateUpdate OR p.dateConf>=s.dateUpdate) AND p.cs='I' AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Ajout d'un nouveau score */
|
||||
'ajout'=> "SELECT $strSelect, 'ajout' AS source FROM scores_surveillance s WHERE s.siren>1000 AND ((DATEDIFF(NOW(),s.indiScoreDate) IS NULL AND s.dateUpdate<DATE(NOW()) OR s.indiScoreDate=0)) GROUP BY siren",
|
||||
/* IndiScores demandés ce jour */
|
||||
'jour'=> "SELECT $strSelect, 'jour' AS source FROM scores_surveillance s, sdv1.`logs` l WHERE l.siren>1000 AND s.siren=l.siren AND l.page='indiscore' AND l.dateHeure>s.dateUpdate AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Dirigeants */
|
||||
'dirigeants'=> "SELECT $strSelect, 'dirigeants' AS source FROM scores_surveillance s, rncs_dirigeants d WHERE d.siren>1000 AND s.siren = d.siren AND (d.dateInsert>s.dateUpdate OR d.dateUpdate>s.dateUpdate) AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Evenements INSEE */
|
||||
'insee'=> "SELECT $strSelect, 'insee' as source FROM jo.scores_surveillance s, insee.insee_even i WHERE i.insSIREN>1000 AND s.siren=i.insSIREN AND i.dateInsert>s.dateUpdate AND s.procol NOT IN('P') AND /*i.insEVE IN ('400','410','420','425') AND*/ i.insSIEGE=1 GROUP BY siren",
|
||||
/* Entreprises RNCS */
|
||||
'rncs'=> "SELECT $strSelect, 'rncs' as source FROM scores_surveillance s, rncs_entrep r WHERE s.siren>1000 AND s.siren=r.siren AND (r.dateInsert>s.dateUpdate OR r.dateUpdate>s.dateUpdate) AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Bodacc */
|
||||
'bodacc'=> "SELECT $strSelect, 'bodacc' as source FROM scores_surveillance s, bodacc_detail b WHERE b.siren>1000 AND s.siren=b.siren AND( b.dateInsert>s.dateUpdate OR b.dateUpdate>s.dateUpdate) AND s.procol NOT IN('P') AND b.Rubrique NOT IN('creations') GROUP BY siren",
|
||||
/* Collecte */
|
||||
'collecte'=> "SELECT $strSelect, 'collecte' as source FROM scores_surveillance s, annonces b WHERE b.siren>1000 AND s.siren=b.siren AND b.dateInsert>s.dateUpdate AND s.procol NOT IN('P') /*AND b.typeEven NOT IN(3200)*/ GROUP BY siren",
|
||||
/* Bilans en base */
|
||||
'bilans1'=> "SELECT $strSelect, 'bilans1' as source FROM scores_surveillance s, bilans b WHERE b.siren>1000 AND s.siren=b.siren AND b.dateInsert>s.dateUpdate AND (DATEDIFF(b.dateExercice,s.dateBilan)>1 OR DATEDIFF(b.dateExercice,s.dateBilan) IS NULL) AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Défaut divers Facto (D:Défaut, 24:Groupe en diff, 31:Cessation Annoncée, 50:Terrorisme)*/
|
||||
'defaut'=> "SELECT $strSelect, 'defaut' AS source FROM jo.scores_surveillance s, sdv1.ge_cs2 p WHERE p.siren>1000 AND s.siren = p.siren AND (p.dateInsert>=s.dateUpdate OR p.dateConf>=s.dateUpdate) AND p.cs IN ('D','24','31','50') AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* RAS Facto */
|
||||
'regulier'=> "SELECT $strSelect, 'regulier' AS source FROM jo.scores_surveillance s, sdv1.ge_cs2 p WHERE p.siren>1000 AND s.siren = p.siren AND (p.dateInsert>=s.dateUpdate OR p.dateConf>=s.dateUpdate) AND p.cs='00' AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Scores trop anciens */
|
||||
'ancien'=> "SELECT $strSelect, 'ancien' AS source FROM scores_surveillance s WHERE s.siren>1000 AND (DATEDIFF(NOW(),s.indiScoreDate)>365 /*OR DATEDIFF(NOW(),s.indiScoreDate) IS NULL*/) AND s.procol NOT IN('P') AND s.dateUpdate<DATE(NOW()) GROUP BY siren",
|
||||
/* RAS Facto */
|
||||
'regulier'=> "SELECT $strSelect, 'regulier' AS source FROM jo.scores_surveillance s, sdv1.ge_cs2 p WHERE p.siren>1000 AND s.siren = p.siren AND (p.dateInsert>=s.dateUpdate OR p.dateConf>=s.dateUpdate) AND p.cs='00' AND s.procol NOT IN('P') GROUP BY siren",
|
||||
|
||||
/** @todo A revoir
|
||||
**/
|
||||
/* Bilans déposés */
|
||||
// 'bilans2'=>"SELECT s.siren, s.actif, s.procol, s.indiScore, s.indiScore20, s.encours, s.indiScoreDate, scoreSolv, scoreConf, scoreDir, scoreZ, scoreCH, scoreAfdcc1, scoreAfdcc2, scoreAfdcc2note, scoreAltman, scoreAltmanCote, scoreCCF, situFi, infoNote, noteStruct, noteFin, tendance, nbModifs, 'bilans2' as source, s.dateUpdate FROM scores_surveillance s, bilans_deposes b WHERE b.siren>1000 AND s.siren=b.siren AND b.dateInsert>s.dateUpdate AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Liens fianciers */
|
||||
// 'liens'=>"SELECT s.siren, s.actif, s.procol, s.indiScore, s.indiScore20, s.encours, s.indiScoreDate, scoreSolv, scoreConf, scoreDir, scoreZ, scoreCH, scoreAfdcc1, scoreAfdcc2, scoreAfdcc2note, scoreAltman, scoreAltmanCote, scoreCCF, situFi, infoNote, noteStruct, noteFin, tendance, nbModifs, 'liens' as source, s.dateUpdate FROM scores_surveillance s, liens l WHERE l.siren>1000 AND (s.siren=l.Siren1 OR s.siren=l.Siren2) AND (l.dateInsert>s.dateUpdate OR l.dateUpdate>s.dateUpdate) AND s.procol NOT IN('P') GROUP BY siren",
|
||||
);
|
||||
|
||||
/*$query="SELECT s.siren, s.indiScore, s.indiScore20, s.encours, s.indiScoreDate, scoreSolv, scoreConf, scoreDir, scoreZ, scoreCH, scoreAfdcc1, scoreAfdcc2, scoreAfdcc2note, scoreAltman, scoreAltmanCote, scoreCCF, situFi, infoNote, noteStruct, noteFin, tendance, 'bodacc' as source, s.dateUpdate FROM scores_surveillance s";
|
||||
$query="SELECT s.siren, s.actif, s.procol, s.indiScore, s.indiScore20, s.encours, s.indiScoreDate, scoreSolv, scoreConf, scoreDir, scoreZ, scoreCH, scoreAfdcc1, scoreAfdcc2, scoreAfdcc2note, scoreAltman, scoreAltmanCote, scoreCCF, situFi, infoNote, noteStruct, noteFin, tendance, nbModifs, 'modifenc' as source, s.dateUpdate, c.cs FROM jo.scores_surveillance s WHERE s.siren>1000 AND s.actif=1 AND s.procol NOT IN('A','D','P') AND s.indiScore>0 AND s.indiScore20=0 ORDER BY s.siren ASC";
|
||||
$query="SELECT s.siren, s.actif, s.procol, s.indiScore, s.indiScore20, s.encours, s.indiScoreDate, scoreSolv, scoreConf, scoreDir, scoreZ, scoreCH, scoreAfdcc1, scoreAfdcc2, scoreAfdcc2note, scoreAltman, scoreAltmanCote, scoreCCF, situFi, infoNote, noteStruct, noteFin, tendance, nbModifs, 'collecte' as source, s.dateUpdate FROM scores_surveillance s, annonces b WHERE b.siren>1000 AND s.siren=b.siren AND b.dateInsert>s.dateUpdate AND s.procol NOT IN('P') AND b.typeEven NOT IN(3200) GROUP BY siren";
|
||||
if($periAncien)
|
||||
$query="/* Nouveaux scores OU Scores trop anciens *
|
||||
SELECT s.siren, s.actif, s.procol, s.indiScore, s.indiScore20, s.encours, s.indiScoreDate, scoreSolv, scoreConf, scoreDir, scoreZ, scoreCH, scoreAfdcc1, scoreAfdcc2, scoreAfdcc2note, scoreAltman, scoreAltmanCote, scoreCCF, situFi, infoNote, noteStruct, noteFin, tendance, nbModifs, 'ancien' AS source, s.dateUpdate FROM scores_surveillance s WHERE s.siren>1000 AND (DATEDIFF(now(),s.indiScoreDate)>365 OR DATEDIFF(now(),s.indiScoreDate) IS NULL) AND s.procol NOT IN('P') GROUP BY siren";
|
||||
*/
|
||||
if ($listeDeclencheur) {
|
||||
foreach($tabQueries as $key=>$querie)
|
||||
echo "\t- $key".EOL;
|
||||
die();
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Recherche des scores susceptibles d'avoir changés par déclencheur...".EOL;
|
||||
|
||||
$nbScoresSans=$nbScoresModif=$nbScoresNouv=$nbScoresProcol=$iRow=$nbRowsTot=0;
|
||||
|
||||
foreach ($tabQueries as $declencheur=>$query) {
|
||||
if ($forceDeclencheur && $declencheur<>$forceDeclencheur) continue;
|
||||
echo date('Y/m/d - H:i:s') ." - Recherche par le déclencheur '$declencheur'...";
|
||||
|
||||
$res=$iDb->query($query);
|
||||
echo mysql_error().EOL;
|
||||
$nbRows=mysql_num_rows($res);
|
||||
$nbRowsTot+=$nbRows;
|
||||
@$tabNbRows[$declencheur]++;
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows scores à recalculer par '$declencheur'...".EOL;
|
||||
//die();
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$iRow++;
|
||||
$siren=$entrep['siren']; // indiScorePre, encoursPre, indiScorePreDate','];
|
||||
if (!$iInsee->valideSiren($siren)) continue;
|
||||
$nic=0;
|
||||
|
||||
$indiScorePre = $entrep['indiScore']*1;
|
||||
$encoursPre = $entrep['encours']*1;
|
||||
$dateScore = str_replace('-','',$entrep['indiScoreDate'])*1;
|
||||
$sourceModif = $entrep['source'];
|
||||
$procol = $entrep['procol'];
|
||||
$nbModifs = ($entrep['nbModifs']*1)+1;
|
||||
if ($procol=='P') {
|
||||
$nbScoresProcol++;
|
||||
if ($modeDebug) echo date('Y/m/d - H:i:s') ." - Ligne $iRow/$nbRowsTot - Siren $siren : $indiScorePre / 100 ($encoursPre EUR) inchangé depuis $dateScore (Source=$sourceModif) car ProCol.".EOL;
|
||||
continue;
|
||||
}
|
||||
//echo date('Y/m/d - H:i:s') ." - Siren $siren : AVANT SCORE".EOL;
|
||||
$tabScore=@calculIndiScore($siren, $nic, false, 0);
|
||||
//echo date('Y/m/d - H:i:s') ." - Siren $siren : APRES SCORE".EOL;
|
||||
//print_r($tabScore);
|
||||
//die();
|
||||
$indiScore = $tabScore['Indiscore']*1;
|
||||
$naf = $tabScore['NafEnt'];
|
||||
$encours = round($tabScore['encours']);
|
||||
|
||||
/*if (!$iDb2->update('scores_surveillance', array('naf'=>$naf), "siren=$siren")) {
|
||||
die('prout');
|
||||
}
|
||||
continue;
|
||||
*/
|
||||
if ($indiScore==$indiScorePre &&
|
||||
$encours ==$encoursPre &&
|
||||
$dateScore<>0 ) {
|
||||
$nbScoresSans++;
|
||||
if ($modeDebug) echo date('Y/m/d - H:i:s') ." - Ligne $iRow/$nbRowsTot - Siren $siren : $indiScore / 100 ($encours EUR) inchangé depuis $dateScore (Source=$sourceModif).".EOL;
|
||||
$tabUpdate2=array('sourceModif'=>$sourceModif, 'nbModifs'=>$nbModifs);
|
||||
if (!$iDb2->update('scores_surveillance', $tabUpdate2, "siren=$siren")) {
|
||||
print_r($tabUpdate2);
|
||||
die("Erreur SQL sur la mise à jour de la date de dernière vérif du score pour le siren $siren");
|
||||
}
|
||||
/*print_r($tabUpdate2);
|
||||
echo 'Erreur SQL n° '.mysql_errno().' : '.mysql_error().EOL;
|
||||
*/
|
||||
} else {
|
||||
if ($dateScore==0) {
|
||||
$sourceModif='ajout';
|
||||
$nbScoresNouv++;
|
||||
}
|
||||
else {
|
||||
$nbScoresModif++;
|
||||
@$tabNbScoresModif[$declencheur]++;
|
||||
}
|
||||
echo date('Y/m/d - H:i:s') ." - Ligne $iRow/$nbRowsTot - Siren $siren : $indiScore<>$indiScorePre OU $encours<>$encoursPre (Source=$sourceModif) !".EOL;
|
||||
$tabUpdate=array( 'siren' => $siren,
|
||||
'naf' => $naf,
|
||||
'actif' => $tabScore['Actif'],
|
||||
'procol' => $tabScore['SituationJuridique'],
|
||||
'indiScore' => $tabScore['Indiscore'],
|
||||
'indiScore20' => $tabScore['Indiscore20'],
|
||||
'encours' => $tabScore['encours'],
|
||||
'indiScoreDate' => $dateJour,
|
||||
'dateBilan' => @$tabScore['Bilans'][0]['Millesime'],
|
||||
'scoreSolv' => $tabScore['ScoreSolvabilite'],
|
||||
'scoreConf' => $tabScore['ScoreConfor'],
|
||||
'scoreDir' => $tabScore['ScoreDirigeance'],
|
||||
'scoreZ' => $tabScore['scores']['Z'],
|
||||
'scoreCH' => $tabScore['scores']['ConanH'],
|
||||
|
||||
'scoreAfdcc1' => $tabScore['scores']['Afdcc1'],
|
||||
'scoreAfdcc2' => $tabScore['scores']['Afdcc2'],
|
||||
'scoreAfdcc2note' => $tabScore['scores']['Afdcc2note'],
|
||||
'scoreAltman' => $tabScore['scores']['Altman'],
|
||||
'scoreAltmanCote' => $tabScore['scores']['AltmanCote'],
|
||||
'scoreCCF' => $tabScore['scores']['CCF'],
|
||||
|
||||
'situFi' => $tabScore['tabInfosNotations']['SituationFinanciere'],
|
||||
'infoNote' => $tabScore['tabInfosNotations']['Notation'],
|
||||
'noteStruct' => $tabScore['Note_Structure'],
|
||||
'noteFin' => $tabScore['Note_Financiere'],
|
||||
'tendance' => $tabScore['TendanceIndiscore'],
|
||||
'cs' => $tabScore['cs'],
|
||||
'csMoisMaj' => $tabScore['csMoisMaj'],
|
||||
'csMoisFin' => $tabScore['csMoisFin'],
|
||||
'adresseDom' => $tabScore['AdresseDom'],
|
||||
|
||||
'sourceModif' => $sourceModif,
|
||||
'indiScorePre' => $entrep['indiScore'],
|
||||
'indiScore20Pre' => $entrep['indiScore20'],
|
||||
'indiScoreDatePre' => $entrep['indiScoreDate'],
|
||||
'encoursPre' => $entrep['encours'],
|
||||
'scoreSolvPre' => $entrep['scoreSolv'],
|
||||
'scoreConfPre' => $entrep['scoreConf'],
|
||||
'scoreDirPre' => $entrep['scoreDir'],
|
||||
'scoreZPre' => $entrep['scoreZ'],
|
||||
'scoreCHPre' => $entrep['scoreCH'],
|
||||
'scoreAfdcc1Pre' => $entrep['scoreAfdcc1'],
|
||||
'scoreAfdcc2Pre' => $entrep['scoreAfdcc2'],
|
||||
'scoreAfdcc2notePre'=> $entrep['scoreAfdcc2note'],
|
||||
|
||||
'scoreAltmanPre' => $entrep['scoreAltman'],
|
||||
'scoreAltmanCotePre'=> $entrep['scoreAltmanCote'],
|
||||
'scoreCCFPre' => $entrep['scoreCCF'],
|
||||
|
||||
'situFiPre' => $entrep['situFi'],
|
||||
'infoNotePre' => $entrep['infoNote'],
|
||||
'noteStructPre' => $entrep['noteStruct'],
|
||||
'noteFinPre' => $entrep['noteFin'],
|
||||
'tendancePre' => $entrep['tendance'],
|
||||
'csPre' => $entrep['cs'],
|
||||
'csMoisMajPre' => $entrep['csMoisMaj'],
|
||||
'csMoisFinPre' => $entrep['csMoisFin'],
|
||||
'adresseDomPre' => $entrep['adresseDom'],
|
||||
'nbModifs' => $nbModifs,
|
||||
|
||||
);
|
||||
if (!$iDb2->update('scores_surveillance', $tabUpdate, "siren=$siren")) {
|
||||
print_r($tabUpdate);
|
||||
echo mysql_error().EOL;
|
||||
die(date ('Y/m/d - H:i:s') . " - Erreur SQL sur la mise à jour du score pour le siren $siren".EOL);
|
||||
}
|
||||
// Historisation du score
|
||||
if (!$iDbHisto->insert('scores_surveillance', $tabUpdate)) {
|
||||
print_r($tabUpdate);
|
||||
echo mysql_error().EOL;
|
||||
die(date ('Y/m/d - H:i:s') . " - Erreur SQL sur l'historisation du score pour le siren $siren".EOL);
|
||||
}
|
||||
}
|
||||
if (date('Hi')*1>=430 && date('Hi')*1<=700) break 2;
|
||||
}
|
||||
}
|
||||
$message =date ('Y/m/d - H:i:s') . " - Nombre de scores inchangés .................. $nbScoresSans / $nbRowsTot.".EOL;
|
||||
$message.=date ('Y/m/d - H:i:s') . " - Nombre de scores inchangés car procol ....... $nbScoresProcol / $nbRowsTot.".EOL;
|
||||
$message.=date ('Y/m/d - H:i:s') . " - Nombre de scores ajoutés .................... $nbScoresNouv / $nbRowsTot.".EOL;
|
||||
$message.=date ('Y/m/d - H:i:s') . " - Nombre de scores modifiées .................. $nbScoresModif / $nbRowsTot.".EOL;
|
||||
foreach($tabNbRows as $declencheur=>$nbTot) {
|
||||
$nbModifs=$tabNbScoresModif[$declencheur]*1;
|
||||
$message.=date ('Y/m/d - H:i:s') . " - Nombre de modifs par '$declencheur'\t...... $nbModifs / $nbTot.".EOL;
|
||||
}
|
||||
echo $message;
|
||||
|
||||
$duree=round(microtime(true)-$tDeb);
|
||||
sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "Calculs des IndiScores ($nbRowsTot en $duree s)", $message);
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - Fin du traitement.".EOL;
|
||||
|
||||
die();
|
||||
?>
|
474
batch/calculScores.php
Normal file
474
batch/calculScores.php
Normal file
@ -0,0 +1,474 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
define('NOW', date('YmdHis'));
|
||||
define('TODAY', substr(NOW, 0, 8));
|
||||
define('YEAR', substr(TODAY, 0, 4));
|
||||
define('MONTH', substr(TODAY, 4, 2));
|
||||
define('DAY', substr(TODAY, 6, 2));
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Mise à jour quotidienne des scores secteurs / profils entreprise S&D.
|
||||
|
||||
Options :
|
||||
-d:SSAAMMJJ Initialiser tous les scores secteurs depuis SSAAMMJJ
|
||||
-f:SSAAMMJJ Initialiser tous les scores secteurs jusqu'au SSAAMMJJ
|
||||
-p Initialiser les scores profils mensuels (à défaut, seulement le 1er du mois)
|
||||
-s Initialiser les scores secteurs mensuels (à défaut, seulement le 1er du mois)
|
||||
-v Mode bavard
|
||||
|
||||
";
|
||||
|
||||
$dateDeb=$dateFin=0;
|
||||
$initStatProfil=$initStatSecteur=$modeDebug=false;
|
||||
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (strtolower(substr($argv[$i],1,1))) {
|
||||
case 'd':
|
||||
$dateDeb=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'f':
|
||||
$dateFin=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'p':
|
||||
$initStatProfil=true;
|
||||
break;
|
||||
case 's':
|
||||
$initStatSecteur=true;
|
||||
break;
|
||||
case 'v':
|
||||
$modeDebug=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . ' inconnue !'.EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$iDb=new WDB('jo');
|
||||
$iDb2=new WDB('jo');
|
||||
$iDbHisto=new WDB('historiques');
|
||||
|
||||
$iInsee=new MInsee();
|
||||
|
||||
|
||||
function getNaf5($naf4ou5) {
|
||||
$iDb=new WDB('insee');
|
||||
$tabTmp=$iDb->select( 'naf_conv', 'nafOut', "nafIn='$naf4ou5'");
|
||||
return $tabTmp[0]['nafOut'];
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début du traitement.".EOL;
|
||||
|
||||
/** Recherche de la dernière date de MAJ
|
||||
**/
|
||||
if (!$dateDeb) {
|
||||
echo date ('Y/m/d - H:i:s')." - Préparation des procédures à vérifier.".EOL;
|
||||
$tabLast=$iDb->select( 'scores_secteurs',
|
||||
'max(dateUpdate) AS lastUpdate, max(dateInsert) AS lastInsert',
|
||||
'1');
|
||||
$lastUpdate=$tabLast[0]['lastInsert'];
|
||||
if ($tabLast[0]['lastUpdate']>$lastUpdate) $lastUpdate=$tabLast[0]['lastUpdate'];
|
||||
echo date('Y/m/d - H:i:s') ." - La dernière vérification des procédures date de $lastUpdate !".EOL;
|
||||
} else {
|
||||
$lastUpdate=WDate::dateT('Ymd', 'Y-m-d', $dateDeb).' 00:00:00';
|
||||
if ($dateFin) {
|
||||
$strDateFin=" AND (dateInsert<='".WDate::dateT('Ymd', 'Y-m-d', $dateFin)." 23:59:59' OR
|
||||
dateUpdate<='".WDate::dateT('Ymd', 'Y-m-d', $dateFin)." 23:59:59' ) ";
|
||||
echo date('Y/m/d - H:i:s') ." - Réinitialisation des stats secteurs du $lastUpdate au $dateFin !".EOL;
|
||||
} else {
|
||||
$strDateFin='';
|
||||
echo date('Y/m/d - H:i:s') ." - Réinitialisation des stats secteurs depuis le $lastUpdate !".EOL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Traitements mensuels
|
||||
**/
|
||||
if (DAY*1==1 || $initStatSecteur) {
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Préparation des stats secteurs mensuelles.".EOL;
|
||||
$fields='ape_entrep, COUNT(*) AS nbEntrep';
|
||||
$where="source=2 AND actif=1 AND siege=1 GROUP BY ape_entrep ORDER BY ape_entrep ASC";
|
||||
|
||||
/** Initialisation des scores secteurs **/
|
||||
$tabTmp=$iDb->select('etablissements_old', $fields, $where, false, MYSQL_ASSOC);
|
||||
if (mysql_errno()==1146)
|
||||
$tabTmp=$iDb->select('etablissements', $fields, $where, false, MYSQL_ASSOC);
|
||||
|
||||
$nbApe=count($tabTmp);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbApe stats secteurs mensuelles à initialiser...".EOL;
|
||||
|
||||
$annee=YEAR;
|
||||
$mois=MONTH;
|
||||
$nbInsert=$nbUpdate=0;
|
||||
foreach ($tabTmp as $secteur) {
|
||||
$naf=$secteur['ape_entrep'];
|
||||
$tabInsert=array('naf5'=> $naf,
|
||||
'annee'=> YEAR,
|
||||
'mois'=> MONTH,
|
||||
'nbEntrep'=> $secteur['nbEntrep'],
|
||||
'dateInsert'=> NOW,
|
||||
);
|
||||
if ($iDb2->insert('scores_secteurs', $tabInsert))
|
||||
$nbInsert++;
|
||||
else {
|
||||
$iDb2->update('scores_secteurs', $tabInsert, "naf5='$naf' AND annee=$annee AND mois=$mois");
|
||||
$nbUpdate++;
|
||||
}
|
||||
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - $nbInsert secteurs initialisées et $nbUpdate mis à jour.".EOL;
|
||||
}
|
||||
|
||||
if (DAY*1==1 || $initStatProfil) {
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Préparation des stats profils mensuelles.".EOL;
|
||||
|
||||
/** Initialisation des scores profils **/
|
||||
//$nbPro=$iDb->select('insee.identite', 'APE_ENT, IF(ADR_DEP=97 OR ADR_DEP=98, SUBSTRING(ADR_CP,1,3), ADR_DEP) AS dep, SUBSTRING(CJ,1,2) as FJur, ROUND(if(DCRET>DCREN,DCRET/10000,DCREN/10000)) as anneeCrea, TEFF_ENT, TCA, count(*) as nbEntrep',
|
||||
$nbPro=$iDb->select('insee.identite', 'APE_ENT, IF(ADR_DEP=97 OR ADR_DEP=98, SUBSTRING(ADR_CP,1,3), ADR_DEP) AS dep, CJ as FJur, ROUND(if(DCRET>DCREN,DCRET/10000,DCREN/10000)) as anneeCrea, TEFF_ENT, TCA, count(*) as nbEntrep',
|
||||
"SIEGE=1 AND ACTIF=1 GROUP BY APE_ENT, dep, FJur, anneeCrea, TCA", false, MYSQL_ASSOC, true);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbPro stats profils mensuelles à initialiser...".EOL;
|
||||
$annee=YEAR;
|
||||
$mois=MONTH;
|
||||
$nbInsert=$nbUpdate=0;
|
||||
while ($secteur=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
//foreach ($tabTmp as $secteur) {
|
||||
$naf=$secteur['APE_ENT'];
|
||||
$dep=$secteur['dep'];
|
||||
$fj=$secteur['FJur'];
|
||||
$anneeCrea=$secteur['anneeCrea'];
|
||||
$trEff=$secteur['TEFF_ENT'];
|
||||
$trCA=$secteur['TCA'];
|
||||
$tabInsert=array('annee'=> YEAR,
|
||||
'mois'=> MONTH,
|
||||
'naf5'=> $naf,
|
||||
'depSiege'=> $dep,
|
||||
'formeJur'=> $fj,
|
||||
'anneeCrea'=> $anneeCrea,
|
||||
'trEffectif'=> $trEff,
|
||||
'trCA'=> $trCA,
|
||||
'nbEntrep'=> $secteur['nbEntrep'],
|
||||
'dateInsert'=> NOW,
|
||||
);
|
||||
if ($iDb2->insert('scores_profils', $tabInsert))
|
||||
$nbInsert++;
|
||||
else {
|
||||
$iDb2->update('scores_profils', $tabInsert, "annee=$annee AND mois=$mois AND naf5='$naf' AND depSiege=$dep AND formeJur=$fj AND anneeCrea=$anneeCrea AND trEffectif='$trEff' AND trCA=$trCA");
|
||||
$nbUpdate++;
|
||||
}
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - $nbInsert profils initialisées et $nbUpdate mis à jour.".EOL;
|
||||
}
|
||||
|
||||
|
||||
if (!$initStatProfil && !$initStatSecteur) {
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Préparation des stats secteurs et profils pour les interdictions quotidiennes.".EOL;
|
||||
$nbInsertSecteur=$nbUpdateSecteur=$nbInsertProfil=$nbUpdateProfil=0;
|
||||
|
||||
/** Mise à jour des Jugements FP IG **/
|
||||
$nbAnnonces=$iDb->select(
|
||||
'bodacc_detail',
|
||||
'siren, sirenValide, typeEven, dateJugement, Bodacc_Date_Parution AS dateSource, dateInsert, dateUpdate',
|
||||
"siren>1000 AND (dateInsert>'$lastUpdate' OR dateUpdate>'$lastUpdate') $strDateFin
|
||||
AND dateJugement>='2005-01-01' AND
|
||||
(typeEven LIKE '%1600%' OR typeEven LIKE '%1601%' OR typeEven LIKE '%1610%' OR typeEven LIKE '%1611%')
|
||||
ORDER BY dateSource ASC;",
|
||||
false, MYSQL_ASSOC, true);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbAnnonces annonces d'interdictions à vérifier...".EOL;
|
||||
while ($annonce=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$siren=$annonce['siren'];
|
||||
$typeEven=$annonce['typeEven'];
|
||||
$dateJuge=$annonce['dateJugement'];
|
||||
$dateInsert=$annonce['dateInsert'];
|
||||
/** Initialisation des scores secteurs **/
|
||||
$tabTmp=explode('-', $dateJuge);
|
||||
$annee=$tabTmp[0];
|
||||
$mois=$tabTmp[1];
|
||||
$tabIdentite=$iInsee->getIdentiteEntreprise($siren, 0, 0, false, false);
|
||||
$naf=$tabIdentite['NafEnt'];
|
||||
if (strlen($naf)<5) $naf=getNaf5($naf);
|
||||
|
||||
$fj=$tabIdentite['FJ'];
|
||||
$dep=$tabIdentite['Dept'];
|
||||
if ($dep>96 && $dep<99) $dep=''.$dep.substr($tabIdentite['codeCommune'],0,1);
|
||||
$anneeCrea=$tabIdentite['DateCreaEn'];
|
||||
if ($anneeCrea>$tabIdentite['DateCreaEt']) $anneeCrea=$tabIdentite['DateCreaEt'];
|
||||
$trEff=$tabIdentite['EffEnTr'];
|
||||
$trCA=$tabIdentite['TrancheCA'];
|
||||
|
||||
/** Mise à jour des scores secteurs **/
|
||||
if ($modeDebug) echo "IGFP $siren\t$typeEven\t$dateJuge\t$dateInsert ";
|
||||
$tabTmp=$iDb2->select( 'scores_secteurs',
|
||||
'nbInter, nbEntrep, annee, mois',
|
||||
"naf5='$naf' AND annee=$annee AND mois=$mois",
|
||||
false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) $nbInter=$tabTmp[0]['nbInter'] + 1;
|
||||
else $nbInter=1;
|
||||
|
||||
$tabUpdate=array('nbInter'=> $nbInter);
|
||||
$retTmp=$iDb2->update('scores_secteurs', $tabUpdate, "naf5='$naf' AND annee=$annee AND mois=$mois");
|
||||
if (!$retTmp || $iDb2->getAffectedRows()==0) {
|
||||
$tabInsert=array_merge($tabUpdate, array( 'naf5'=>$naf,
|
||||
'annee'=>$annee,
|
||||
'mois'=>$mois,
|
||||
'dateInsert'=>date('YmdHis'),
|
||||
));
|
||||
$iDb2->insert('scores_secteurs', $tabInsert);
|
||||
if ($modeDebug) echo "SECTEURS:INSERT=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbInsertSecteur++;
|
||||
} else {
|
||||
if ($modeDebug) echo "SECTEURS:UPDATE=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbUpdateSecteur++;
|
||||
}
|
||||
if ($modeDebug) echo EOL;
|
||||
|
||||
/** Mise à jour des scores profils **/
|
||||
if ($modeDebug) echo "IGFP $siren\t$typeEven\t$dateJuge\t$dateInsert ";
|
||||
$tabTmp=$iDb2->select( 'scores_profils',
|
||||
'nbInter, nbEntrep, annee, mois',
|
||||
"annee=$annee AND mois=$mois AND naf5='$naf' AND depSiege=$dep AND formeJur=$fj AND anneeCrea=$anneeCrea AND trEffectif='$trEff' AND trCA=$trCA",
|
||||
false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) $nbInter=$tabTmp[0]['nbInter'] + 1;
|
||||
else $nbInter=1;
|
||||
|
||||
$tabUpdate=array('nbInter'=> $nbInter);
|
||||
$retTmp=$iDb2->update('scores_profils', $tabUpdate, "annee=$annee AND mois=$mois AND naf5='$naf' AND depSiege=$dep AND formeJur=$fj AND anneeCrea=$anneeCrea AND trEffectif='$trEff' AND trCA=$trCA");
|
||||
if (!$retTmp || $iDb2->getAffectedRows()==0) {
|
||||
$tabInsert=array_merge($tabUpdate, array( 'annee'=>$annee,
|
||||
'mois'=>$mois,
|
||||
'naf5'=>$naf,
|
||||
'depSiege'=>$dep,
|
||||
'formeJur'=>$fj,
|
||||
'anneeCrea'=>$anneeCrea,
|
||||
'trEffectif'=>$trEff,
|
||||
'trCA'=>$trCA,
|
||||
'dateInsert'=>date('YmdHis'),
|
||||
));
|
||||
$iDb2->insert('scores_profils', $tabInsert);
|
||||
if ($modeDebug) echo "PROFILS:INSERT=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbInsertProfil++;
|
||||
} else {
|
||||
if ($modeDebug) echo "PROFILS:UPDATE=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbUpdateProfil++;
|
||||
}
|
||||
if ($modeDebug) echo EOL;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Interdictions : $nbAnnonces annonces vérifiées.".EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Stats Secteurs : $nbInsertSecteur ajouts et $nbUpdateSecteur MAJ.".EOL;
|
||||
echo date ('Y/m/d - H:i:s')." - Stats Profils : $nbInsertProfil ajouts et $nbUpdateProfil MAJ.".EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Fin des stats secteurs et profils pour les interdictions quotidiennes.".EOL;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Préparation des stats secteurs et profils pour les Procédures quotidiennes.".EOL;
|
||||
$nbDejaProcol=$nbNouvProcol=$nbInsertSecteur=$nbUpdateSecteur=$nbInsertProfil=$nbUpdateProfil=0;
|
||||
|
||||
/** Initialisation des scores secteurs **/
|
||||
$query="(SELECT siren, sirenValide, typeEven, dateJugement, Bodacc_Date_Parution AS dateSource, dateInsert FROM bodacc_detail WHERE siren>1000 AND dateInsert>'$lastUpdate' $strDateFin AND dateJugement>='2005-01-01' AND ( typeEven LIKE '%1100%' OR typeEven LIKE '%1101%' OR typeEven LIKE '%1200%' OR typeEven LIKE '%1201%' OR typeEven LIKE '%1202%' OR typeEven LIKE '%1207%' OR typeEven LIKE '%1209%' OR typeEven LIKE '%1210%' OR typeEven LIKE '%1211%' OR typeEven LIKE '%1212%' OR typeEven LIKE '%1214%' OR typeEven LIKE '%1216%' OR typeEven LIKE '%1300%' OR typeEven LIKE '%1301%' OR typeEven LIKE '%1302%' OR typeEven LIKE '%1303%' OR typeEven LIKE '%1304%' OR typeEven LIKE '%1305%' OR typeEven LIKE '%1306%' OR typeEven LIKE '%1307%' OR typeEven LIKE '%1308%' OR typeEven LIKE '%1309%' OR typeEven LIKE '%1310%' OR typeEven LIKE '%1311%' OR typeEven LIKE '%1312%' OR typeEven LIKE '%1313%' OR typeEven LIKE '%1410%' OR typeEven LIKE '%1415%' OR typeEven LIKE '%1416%' OR typeEven LIKE '%1417%' OR typeEven LIKE '%1418%' OR typeEven LIKE '%1419%' OR typeEven LIKE '%1507%' OR typeEven LIKE '%1515%' OR typeEven LIKE '%1540%' OR typeEven LIKE '%1541%' OR typeEven LIKE '%1542%' OR typeEven LIKE '%1543%' OR typeEven LIKE '%1544%' OR typeEven LIKE '%1545%' OR typeEven LIKE '%1546%' OR typeEven LIKE '%1550%' OR typeEven LIKE '%1600%' OR typeEven LIKE '%1601%' OR typeEven LIKE '%1602%' OR typeEven LIKE '%1603%' OR typeEven LIKE '%1604%' OR typeEven LIKE '%1610%' OR typeEven LIKE '%1611%' OR typeEven LIKE '%1999%' ))
|
||||
UNION
|
||||
(SELECT siren, sirenValide, typeEven, dateJugement, dateSource, dateInsert FROM annonces where siren>1000 AND dateInsert>'$lastUpdate' $strDateFin AND dateJugement>='2005-01-01' AND typeEven IN (1100,/*Ouverture sauvegarde*/
|
||||
1101,/*Jugement arrêtant plan de sauvegarde*/
|
||||
1200,/*Redressement Judiciaire*/
|
||||
1201,/*Conversion sauvegarde en Redressement Judiciaire*/
|
||||
1202,/*Renouvellement de la période d'observation*/
|
||||
1207,/*Règlements amiables*/
|
||||
1209,/*Règlement judiciaire*/
|
||||
1210,/*Production de titres et créances*/
|
||||
1211,/*Redressement Judiciaire par extension au(x) gérant(s)*/
|
||||
1212,/*Réforme de Liquidation Judiciaire en Redressement Judiciaire*/
|
||||
1214,/*Avis de dépôt de l'état des créances (Loi de 1985)*/
|
||||
1216,/*Autre avis de dépôt*/
|
||||
1300,/*Conversion Redressement Judiciaire en Liquidation Judiciaire*/
|
||||
1301,/*Ouverture Liquidation Judiciaire*/
|
||||
1302,/*Ouverture Liquidation Judiciaire Simplifiée*/
|
||||
1303,/*Ouverture Liquidation Judiciaire sur résolution du plan*/
|
||||
1304,/*Réouverture Liquidation Judiciaire*/
|
||||
1305,/*Liquidation Judiciaire*/
|
||||
1306,/*Liquidation Judiciaire simplifiée*/
|
||||
1307,/*Conversion sauvegarde en Liquidation Judiciaire*/
|
||||
1308,/*Fin du régime de Liquidation Judiciaire Simplifiée*/
|
||||
1309,/*Conversion Liquidation Judiciaire en Liquidation Judiciaire Simplifiée*/
|
||||
1310,/*Procédure d'insolvabilité européenne*/
|
||||
1311,/*Liquidation Judiciaire par extension au(x) gérant(s)*/
|
||||
1312,/*Liquidation Judiciaire avec continuation d'exploitation*/
|
||||
1313,/*Liquidation Judiciaire sans remise des accessoires*/
|
||||
1410,/*Suite règlement/liquidation*/
|
||||
1415,/*Prolongement du plan cession*/
|
||||
1416,/*Jugement constatant la bonne exécution du plan*/
|
||||
1417,/*Jugement d'extension de liquidation judiciaire*/
|
||||
1418,/*Jugement d'extension d'une procédure de redressement judiciaire*/
|
||||
1419,/*Jugement d'extension d'une procédure de sauvegarde*/
|
||||
1507,/*Extrait d'arrêt de la cour d'appel*/
|
||||
1515,/*Arrêt divers*/
|
||||
1540,/*Ordonnance statuant sur les contestations du projet de répartition*/
|
||||
1541,/*Rétractation de prononcé de liquidation judiciaire sur tierce opposition*/
|
||||
1542,/*Rétractation de jugement d'ouverture d'une procédure de sauvegarde sur tierce opposition*/
|
||||
1543,/*Rétractation de jugement d'ouverture d'une procédure de redressement judiciaire sur tierce opposition*/
|
||||
1544,/*Rétractation de jugement d'ouverture d'une procédure de liquidation judiciaire sur tierce opposition*/
|
||||
1545,/*Rétractation de jugement d'ouverture sur tierce opposition*/
|
||||
1546,/*Autre rétractation sur tierce opposition*/
|
||||
1550,/*Jugement d'homologation de l'accord*/
|
||||
1600,/*Faillite personnelle*/
|
||||
1601,/*Interdiction de gérer*/
|
||||
1602,/*Jugement de réhabilitation*/
|
||||
1603,/*Liquidation de biens*/
|
||||
1604,/*Banqueroute
|
||||
1605,/*Jugement autorisant la reprise des poursuites individuelles*/
|
||||
1610,/*Faillite personnelle (Loi de 1985)*/
|
||||
1611,/*Interdiction de gérer (Loi de 1985)*/
|
||||
1999 /*Autre procédure collective*/ )
|
||||
) ORDER BY dateSource ASC;";
|
||||
if ($modeDebug) echo date ('Y/m/d - H:i:s')." - $query".EOL;
|
||||
$res=$iDb->query($query);
|
||||
$nbAnnonces=mysql_num_rows($res);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbAnnonces annonces d'ouverture à vérifier...".EOL;
|
||||
$sirenPre=false;
|
||||
|
||||
while ($annonce=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$siren=$annonce['siren'];
|
||||
if ($siren==$sirenPre) continue;
|
||||
|
||||
$typeEven=$annonce['typeEven'];
|
||||
$dateJuge=$annonce['dateJugement'];
|
||||
$dateInsert=$annonce['dateInsert'];
|
||||
/** Initialisation des scores secteurs **/
|
||||
$query="(SELECT siren, sirenValide, typeEven, dateJugement, Bodacc_Date_Parution AS dateSource, dateInsert FROM bodacc_detail WHERE siren=$siren AND (dateInsert<'$dateInsert' OR dateJugement<'$dateJuge') AND Rubrique='procol')
|
||||
UNION
|
||||
(SELECT siren, sirenValide, typeEven, dateJugement, dateSource, dateInsert FROM annonces where siren=$siren AND (dateInsert<'$dateInsert' OR dateJugement<'$dateJuge') AND typeEven BETWEEN 1100 AND 1999) ORDER BY siren;";
|
||||
//echo date ('Y/m/d - H:i:s')." - $query".EOL;
|
||||
$res2=$iDb2->query($query);
|
||||
$nbProcol=mysql_num_rows($res2);
|
||||
|
||||
if ($modeDebug) echo "ProCol $siren\t$typeEven\t$dateJuge\t$dateInsert ";
|
||||
|
||||
if ($nbProcol>0) {
|
||||
if ($modeDebug) echo "($nbProcol ProCol)".EOL;
|
||||
$nbDejaProcol++;
|
||||
} else {
|
||||
$strIdAnn=" AND e.CODEVE BETWEEN 50 AND 79 AND e.DATE>=".(YEAR-12).MONTH.DAY;
|
||||
$res2=$iDbHisto->select(
|
||||
'entrep e, texte x, tribunaux t',
|
||||
'e.ANBASE, e.NOBOD, e.CODTRI, e.JAL, e.DATE, e.CODEVE, e.SSCODE, e.DEPT, e.NOANN, e.ROLE, e.SIREN, e.E1GSIR, e.E1GNIC, x.annonceNum, x.annonceTxt, t.triNom, t.triSiret',
|
||||
"e.E1GSIR=$siren AND e.ANBASE=x.annonceNum AND e.CODTRI=t.triCode $strIdAnn AND e.DATE BETWEEN 19960101 AND 20041231 GROUP BY e.ANBASE ORDER BY e.DATE DESC", true, MYSQL_ASSOC);
|
||||
$nbProcolHisto=count($res2);
|
||||
if ($nbProcolHisto>0) {
|
||||
if ($modeDebug) echo "($nbProcolHisto ProCol histo.)".EOL;
|
||||
$nbDejaProcol++;
|
||||
} else {
|
||||
if ($modeDebug) echo "NOUVELLE PROCEDURE ";
|
||||
$nbNouvProcol++;
|
||||
// Ajouter dans la table
|
||||
$tabTmp=explode('-', $dateJuge);
|
||||
$annee=$tabTmp[0];
|
||||
// if ($annee<2007) continue;
|
||||
$mois=$tabTmp[1];
|
||||
$tabIdentite=$iInsee->getIdentiteEntreprise($siren, 0, 0, false, false);
|
||||
$naf=$tabIdentite['NafEnt'];
|
||||
if (strlen($naf)<5) $naf=getNaf5($naf);
|
||||
|
||||
$fj=$tabIdentite['FJ'];
|
||||
$dep=$tabIdentite['Dept'];
|
||||
if ($dep>96 && $dep<99) $dep=''.$dep.substr($tabIdentite['codeCommune'],0,1);
|
||||
$anneeCrea=$tabIdentite['DateCreaEn'];
|
||||
if ($anneeCrea>$tabIdentite['DateCreaEt']) $anneeCrea=$tabIdentite['DateCreaEt'];
|
||||
$trEff=$tabIdentite['EffEnTr'];
|
||||
$trCA=$tabIdentite['TrancheCA'];
|
||||
|
||||
/** Mise à jour des scores secteurs **/
|
||||
$tabTmp=$iDb2->select( 'scores_secteurs',
|
||||
'nbProcol, nbEntrep, annee, mois',
|
||||
"naf5='$naf' AND annee=$annee AND mois=$mois",
|
||||
false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) $nbProcDB=$tabTmp[0]['nbProcol'] + 1;
|
||||
else $nbProcDB=1;
|
||||
|
||||
$tabUpdate=array('nbProcol'=> $nbProcDB);
|
||||
$retTmp=$iDb2->update('scores_secteurs', $tabUpdate, "naf5='$naf' AND annee=$annee AND mois=$mois");
|
||||
if (!$retTmp || $iDb2->getAffectedRows()==0) {
|
||||
$tabInsert=array_merge($tabUpdate, array( 'naf5'=>$naf,
|
||||
'annee'=>$annee,
|
||||
'mois'=>$mois,
|
||||
'dateInsert'=>date('YmdHis'),
|
||||
));
|
||||
$iDb2->insert('scores_secteurs', $tabInsert);
|
||||
if ($modeDebug) echo "SECTEURS:INSERT=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbInsertSecteur++;
|
||||
} else {
|
||||
if ($modeDebug) echo "SECTEURS:UPDATE=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbUpdateSecteur++;
|
||||
}
|
||||
if ($modeDebug) echo EOL;
|
||||
|
||||
/** Mise à jour des scores profils **/
|
||||
if ($modeDebug) echo "ProCol $siren\t$typeEven\t$dateJuge\t$dateInsert NOUVELLE PROCEDURE ";
|
||||
|
||||
$tabTmp=$iDb2->select( 'scores_profils',
|
||||
'nbProcol, nbEntrep, annee, mois',
|
||||
"annee=$annee AND mois=$mois AND naf5='$naf' AND depSiege=$dep AND formeJur=$fj AND
|
||||
anneeCrea=$anneeCrea AND trEffectif='$trEff' AND trCA=$trCA",
|
||||
false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) $nbProcDB=$tabTmp[0]['nbProcol'] + 1;
|
||||
else $nbProcDB=1;
|
||||
|
||||
$tabUpdate=array('nbProcol'=> $nbProcDB);
|
||||
$retTmp=$iDb2->update('scores_profils', $tabUpdate, "annee=$annee AND mois=$mois AND naf5='$naf' AND
|
||||
depSiege=$dep AND formeJur=$fj AND anneeCrea=$anneeCrea AND trEffectif='$trEff' AND trCA=$trCA");
|
||||
if (!$retTmp || $iDb2->getAffectedRows()==0) {
|
||||
$tabInsert=array_merge($tabUpdate, array( 'annee'=>$annee,
|
||||
'mois'=>$mois,
|
||||
'naf5'=>$naf,
|
||||
'depSiege'=>$dep,
|
||||
'formeJur'=>$fj,
|
||||
'anneeCrea'=>$anneeCrea,
|
||||
'trEffectif'=>$trEff,
|
||||
'trCA'=>$trCA,
|
||||
'dateInsert'=>date('YmdHis'),
|
||||
));
|
||||
$iDb2->insert('scores_profils', $tabInsert);
|
||||
if ($modeDebug) echo "PROFILS:INSERT=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbInsertProfil++;
|
||||
} else {
|
||||
if ($modeDebug) echo "PROFILS:UPDATE=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbUpdateProfil++;
|
||||
}
|
||||
|
||||
if ($modeDebug) echo EOL;
|
||||
}
|
||||
}
|
||||
$sirenPre=$siren;
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Procédures Collectives : $nbNouvProcol entreprises In Bonis sur $nbAnnonces annonces ($nbDejaProcol déjà en ProCol).".EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Stats Secteurs : $nbInsertSecteur ajouts et $nbUpdateSecteur MAJ pour $nbNouvProcol nouv. ProCol ($nbAnnonces annonces vérifiées).".EOL;
|
||||
echo date ('Y/m/d - H:i:s')." - Stats Profils : $nbInsertProfil ajouts et $nbUpdateProfil MAJ pour $nbNouvProcol nouv. ProCol ($nbAnnonces annonces vérifiées).".EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Fin des stats secteurs et profils pour les Procédures quotidiennes.".EOL;
|
||||
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Fin du traitement.".EOL;
|
||||
|
||||
?>
|
299
batch/calculStatsVentes.php
Normal file
299
batch/calculStatsVentes.php
Normal file
@ -0,0 +1,299 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
define('NOW', date('YmdHis'));
|
||||
define('TODAY', substr(NOW, 0, 8));
|
||||
define('YEAR', substr(TODAY, 0, 4));
|
||||
define('MONTH', substr(TODAY, 4, 2));
|
||||
define('DAY', substr(TODAY, 6, 2));
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Mise à jour quotidienne des statistiques de ventes de fonds de commerce
|
||||
|
||||
Options :
|
||||
-d:SSAAMMJJ Initialiser toutes les stats depuis SSAAMMJJ
|
||||
-f:SSAAMMJJ Initialiser tous les scores secteurs jusqu'au SSAAMMJJ
|
||||
-p Initialiser les scores profils mensuels (à défaut, seulement le 1er du mois)
|
||||
-s Initialiser les scores secteurs mensuels (à défaut, seulement le 1er du mois)
|
||||
-v Mode bavard
|
||||
|
||||
";
|
||||
|
||||
$dateDeb=$dateFin=0;
|
||||
$initStatProfil=$initStatSecteur=$modeDebug=false;
|
||||
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (strtolower(substr($argv[$i],1,1))) {
|
||||
case 'd':
|
||||
$dateDeb=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'f':
|
||||
$dateFin=substr($argv[$i],3)*1;
|
||||
break;
|
||||
case 'p':
|
||||
$initStatProfil=true;
|
||||
break;
|
||||
case 's':
|
||||
$initStatSecteur=true;
|
||||
break;
|
||||
case 'v':
|
||||
$modeDebug=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . ' inconnue !'.EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$iDb=new WDB('jo');
|
||||
$iDb2=new WDB('jo');
|
||||
$iDbHisto=new WDB('historiques');
|
||||
|
||||
$iInsee=new MInsee();
|
||||
|
||||
|
||||
function getNaf5($naf4ou5) {
|
||||
$iDb=new WDB('insee');
|
||||
$tabTmp=$iDb->select( 'naf_conv', 'nafOut', "nafIn='$naf4ou5'");
|
||||
return $tabTmp[0]['nafOut'];
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début du traitement.".EOL;
|
||||
|
||||
/** Recherche de la dernière date de MAJ
|
||||
**/
|
||||
if (!$dateDeb) {
|
||||
echo date ('Y/m/d - H:i:s')." - Préparation des statistiques à réaliser.".EOL;
|
||||
$tabLast=$iDb->select( 'stats_ventes',
|
||||
'max(dateInsert) AS lastInsert',
|
||||
'1');
|
||||
$lastUpdate=$tabLast[0]['lastInsert'];
|
||||
if ($tabLast[0]['lastUpdate']>$lastUpdate) $lastUpdate=$tabLast[0]['lastUpdate'];
|
||||
echo date('Y/m/d - H:i:s') ." - La dernière mise à jour des stats date de $lastUpdate !".EOL;
|
||||
} else {
|
||||
$lastUpdate=WDate::dateT('Ymd', 'Y-m-d', $dateDeb).' 00:00:00';
|
||||
if ($dateFin) {
|
||||
$strDateFin=" AND (dateInsert<='".WDate::dateT('Ymd', 'Y-m-d', $dateFin)." 23:59:59' OR
|
||||
dateUpdate<='".WDate::dateT('Ymd', 'Y-m-d', $dateFin)." 23:59:59' ) ";
|
||||
echo date('Y/m/d - H:i:s') ." - Réinitialisation des stats du $lastUpdate au $dateFin !".EOL;
|
||||
} else {
|
||||
$strDateFin='';
|
||||
echo date('Y/m/d - H:i:s') ." - Réinitialisation des stats depuis le $lastUpdate !".EOL;
|
||||
}
|
||||
}
|
||||
|
||||
//if (!$initStatProfil && !$initStatSecteur) {
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Préparation des stats les ventes quotidiennes.".EOL;
|
||||
//$nbDejaProcol=$nbNouvProcol=$nbInsertSecteur=$nbUpdateSecteur=$nbInsertProfil=$nbUpdateProfil=0;
|
||||
|
||||
/** Initialisation des scores secteurs **/
|
||||
$query="
|
||||
(SELECT siren, sirenValide, nic, nicValide, typeEven, IF(dateDebutActivite<>0,dateDebutActivite,IF(dateEffet<>0,dateEffet,IF(publicationDate<>0,publicationDate,0))) AS dateJugement, Bodacc_Date_Parution AS dateSource, dateInsert,
|
||||
typeEven, raisonSociale, adresse, codePostal, ville, Tribunal_Code AS tribunal, VenteMt AS montant, bienAcqui AS complement, 'bodacc' AS source
|
||||
FROM bodacc_detail
|
||||
WHERE siren>1000 AND dateInsert>'$lastUpdate' $strDateFin AND (
|
||||
typeEven LIKE '%5500%' /* Entreprise réalisant la vente */
|
||||
OR typeEven LIKE '%5501%' /* Entreprise réalisant la vente : Ancien propriétaire et ancien exploitant */
|
||||
OR typeEven LIKE '%5502%' /* Entreprise réalisant la vente : Ancien propriétaire en indivision */
|
||||
OR typeEven LIKE '%5503%' /* Entreprise réalisant la vente : Ancien propriétaire */
|
||||
OR typeEven LIKE '%5510%' /* Entreprise réalisant la vente : Co-propriétaire */
|
||||
OR typeEven LIKE '%5600%' /* Entreprise Précédent exploitant */
|
||||
OR typeEven LIKE '%5650%' /* Entreprise indemnisée */
|
||||
OR typeEven LIKE '%5900%' /* Autre achat, apport, attribution */
|
||||
OR typeEven LIKE '%5999%' /* Ventes/Cessions */ ) )
|
||||
UNION
|
||||
(SELECT siren, sirenValide, 00000 AS nic, 0 AS nicValide, typeEven, dateJugement, dateSource, dateInsert,
|
||||
CONCAT(typeEven,';',strEven) as codeEven, raisonSociale, adresse, codePostal, ville, tribunal, montant, complement, 'collecte' AS source
|
||||
FROM annonces
|
||||
WHERE siren>1000 AND dateInsert>'$lastUpdate' $strDateFin AND (typeEven BETWEEN 5500 AND 5650 OR strEven LIKE '%5500%' /* Entreprise réalisant la vente */
|
||||
OR strEven LIKE '%5501%' /* Entreprise réalisant la vente : Ancien propriétaire et ancien exploitant */
|
||||
OR strEven LIKE '%5502%' /* Entreprise réalisant la vente : Ancien propriétaire en indivision */
|
||||
OR strEven LIKE '%5503%' /* Entreprise réalisant la vente : Ancien propriétaire */
|
||||
OR strEven LIKE '%5510%' /* Entreprise réalisant la vente : Co-propriétaire */
|
||||
OR strEven LIKE '%5600%' /* Entreprise Précédent exploitant */
|
||||
OR strEven LIKE '%5650%' /* Entreprise indemnisée */)
|
||||
)
|
||||
ORDER BY dateSource ASC;";
|
||||
if ($modeDebug) echo date ('Y/m/d - H:i:s')." - $query".EOL;
|
||||
$res=$iDb->query($query);
|
||||
$nbAnnonces=mysql_num_rows($res);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbAnnonces annonces de ventes à vérifier...".EOL;
|
||||
$sirenPre=false;
|
||||
|
||||
while ($annonce=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
print_r($annonce);
|
||||
// die();
|
||||
$siren=$annonce['siren'];
|
||||
$nic=$annonce['nic'];
|
||||
$source=$annonce['source'];
|
||||
$cp=$annonce['codePostal'];
|
||||
$ville=strtoupper($annonce['ville']);
|
||||
$dep=substr($annonce['codePostal'],0,2)*1;
|
||||
if ($dep>96) $dep=substr($annonce['codePostal'],0,3)*1;
|
||||
$nbSrc[$source]++;
|
||||
|
||||
if ($nic==0) {
|
||||
if ($source=='collecte') {
|
||||
if (preg_match('/tablissement concern.*\((\d{5,5})\)(.*)$/Ui', $annonce['complement'], $matches)) {
|
||||
if (preg_match('/\((\d{5,5})\)/Ui',$matches[2])) die('Plusieurs établissements vendus !');
|
||||
$nic=$matches[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($nic*1==0){
|
||||
//$tabIdentite=$iInsee->getIdentiteEntreprise($siren, 0, 0, false, false);
|
||||
$tabEtabs=$iInsee->getEtablissements($siren, '', 0, 200, 200, $dep);
|
||||
foreach ($tabEtabs['reponses'] as $iRep=>$etab) {
|
||||
if ($cp<>$etab['CP'] && $ville<>strtoupper($etab['Ville']))
|
||||
continue;
|
||||
$nic=$etab['Nic'];
|
||||
if ($tabEtabs['nbReponses']==1) break;
|
||||
/*if (
|
||||
$levAdr=levenstein($etab['Adresse'], $annonce['adresse']);
|
||||
[Adresse2] => 116 A 118
|
||||
[CP] => 94000
|
||||
[Ville] => CRETEIL
|
||||
);*/
|
||||
}
|
||||
if ($nic*1==0) $nbNic0++;//die(print_r($tabEtabs));
|
||||
}
|
||||
//if ($siren==$sirenPre) continue;
|
||||
/*
|
||||
$typeEven=$annonce['typeEven'];
|
||||
$dateEven=$annonce['dateJugement'];
|
||||
$dateInsert=$annonce['dateInsert'];
|
||||
/** Initialisation des scores secteurs **
|
||||
$query="(SELECT siren, sirenValide, typeEven, dateJugement, Bodacc_Date_Parution AS dateSource, dateInsert FROM bodacc_detail WHERE siren=$siren AND (dateInsert<'$dateInsert' OR dateJugement<'$dateJuge') AND Rubrique='procol')
|
||||
UNION
|
||||
(SELECT siren, sirenValide, typeEven, dateJugement, dateSource, dateInsert FROM annonces where siren=$siren AND (dateInsert<'$dateInsert' OR dateJugement<'$dateJuge') AND typeEven BETWEEN 1100 AND 1999) ORDER BY siren;";
|
||||
//echo date ('Y/m/d - H:i:s')." - $query".EOL;
|
||||
$res2=$iDb2->query($query);
|
||||
$nbProcol=mysql_num_rows($res2);
|
||||
|
||||
if ($modeDebug) echo "Vente $siren\t$typeEven\t$dateJuge\t$dateInsert ";
|
||||
|
||||
if ($nbProcol>0) {
|
||||
if ($modeDebug) echo "($nbProcol ProCol)".EOL;
|
||||
$nbDejaProcol++;
|
||||
} else {
|
||||
$strIdAnn=" AND e.CODEVE BETWEEN 50 AND 79 AND e.DATE>=".(YEAR-12).MONTH.DAY;
|
||||
$res2=$iDbHisto->select(
|
||||
'entrep e, texte x, tribunaux t',
|
||||
'e.ANBASE, e.NOBOD, e.CODTRI, e.JAL, e.DATE, e.CODEVE, e.SSCODE, e.DEPT, e.NOANN, e.ROLE, e.SIREN, e.E1GSIR, e.E1GNIC, x.annonceNum, x.annonceTxt, t.triNom, t.triSiret',
|
||||
"e.E1GSIR=$siren AND e.ANBASE=x.annonceNum AND e.CODTRI=t.triCode $strIdAnn AND e.DATE BETWEEN 19960101 AND 20041231 GROUP BY e.ANBASE ORDER BY e.DATE DESC", true, MYSQL_ASSOC);
|
||||
$nbProcolHisto=count($res2);
|
||||
if ($nbProcolHisto>0) {
|
||||
if ($modeDebug) echo "($nbProcolHisto ProCol histo.)".EOL;
|
||||
$nbDejaProcol++;
|
||||
} else {
|
||||
if ($modeDebug) echo "NOUVELLE PROCEDURE ";
|
||||
$nbNouvProcol++;
|
||||
// Ajouter dans la table
|
||||
$tabTmp=explode('-', $dateJuge);
|
||||
$annee=$tabTmp[0];
|
||||
// if ($annee<2007) continue;
|
||||
$mois=$tabTmp[1];
|
||||
$tabIdentite=$iInsee->getIdentiteEntreprise($siren, 0, 0, false, false);
|
||||
$naf=$tabIdentite['NafEnt'];
|
||||
if (strlen($naf)<5) $naf=getNaf5($naf);
|
||||
|
||||
$fj=$tabIdentite['FJ'];
|
||||
$dep=$tabIdentite['Dept'];
|
||||
if ($dep>96 && $dep<99) $dep=''.$dep.substr($tabIdentite['codeCommune'],0,1);
|
||||
$anneeCrea=$tabIdentite['DateCreaEn'];
|
||||
if ($anneeCrea>$tabIdentite['DateCreaEt']) $anneeCrea=$tabIdentite['DateCreaEt'];
|
||||
$trEff=$tabIdentite['EffEnTr'];
|
||||
$trCA=$tabIdentite['TrancheCA'];
|
||||
|
||||
/** Mise à jour des scores secteurs **
|
||||
$tabTmp=$iDb2->select( 'scores_secteurs',
|
||||
'nbProcol, nbEntrep, annee, mois',
|
||||
"naf5='$naf' AND annee=$annee AND mois=$mois",
|
||||
false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) $nbProcDB=$tabTmp[0]['nbProcol'] + 1;
|
||||
else $nbProcDB=1;
|
||||
|
||||
$tabUpdate=array('nbProcol'=> $nbProcDB);
|
||||
$retTmp=$iDb2->update('scores_secteurs', $tabUpdate, "naf5='$naf' AND annee=$annee AND mois=$mois");
|
||||
if (!$retTmp || $iDb2->getAffectedRows()==0) {
|
||||
$tabInsert=array_merge($tabUpdate, array( 'naf5'=>$naf,
|
||||
'annee'=>$annee,
|
||||
'mois'=>$mois,
|
||||
'dateInsert'=>date('YmdHis'),
|
||||
));
|
||||
$iDb2->insert('scores_secteurs', $tabInsert);
|
||||
if ($modeDebug) echo "SECTEURS:INSERT=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbInsertSecteur++;
|
||||
} else {
|
||||
if ($modeDebug) echo "SECTEURS:UPDATE=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbUpdateSecteur++;
|
||||
}
|
||||
if ($modeDebug) echo EOL;
|
||||
|
||||
/** Mise à jour des scores profils **
|
||||
if ($modeDebug) echo "ProCol $siren\t$typeEven\t$dateJuge\t$dateInsert NOUVELLE PROCEDURE ";
|
||||
|
||||
$tabTmp=$iDb2->select( 'scores_profils',
|
||||
'nbProcol, nbEntrep, annee, mois',
|
||||
"annee=$annee AND mois=$mois AND naf5='$naf' AND depSiege=$dep AND formeJur=$fj AND
|
||||
anneeCrea=$anneeCrea AND trEffectif='$trEff' AND trCA=$trCA",
|
||||
false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) $nbProcDB=$tabTmp[0]['nbProcol'] + 1;
|
||||
else $nbProcDB=1;
|
||||
|
||||
$tabUpdate=array('nbProcol'=> $nbProcDB);
|
||||
$retTmp=$iDb2->update('scores_profils', $tabUpdate, "annee=$annee AND mois=$mois AND naf5='$naf' AND
|
||||
depSiege=$dep AND formeJur=$fj AND anneeCrea=$anneeCrea AND trEffectif='$trEff' AND trCA=$trCA");
|
||||
if (!$retTmp || $iDb2->getAffectedRows()==0) {
|
||||
$tabInsert=array_merge($tabUpdate, array( 'annee'=>$annee,
|
||||
'mois'=>$mois,
|
||||
'naf5'=>$naf,
|
||||
'depSiege'=>$dep,
|
||||
'formeJur'=>$fj,
|
||||
'anneeCrea'=>$anneeCrea,
|
||||
'trEffectif'=>$trEff,
|
||||
'trCA'=>$trCA,
|
||||
'dateInsert'=>date('YmdHis'),
|
||||
));
|
||||
$iDb2->insert('scores_profils', $tabInsert);
|
||||
if ($modeDebug) echo "PROFILS:INSERT=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbInsertProfil++;
|
||||
} else {
|
||||
if ($modeDebug) echo "PROFILS:UPDATE=>$nbProcDB ($naf/$annee-$mois)";
|
||||
$nbUpdateProfil++;
|
||||
}
|
||||
|
||||
if ($modeDebug) echo EOL;
|
||||
}
|
||||
}*/
|
||||
$sirenPre=$siren;
|
||||
}
|
||||
print_r($nbSrc);
|
||||
die("$nbNic0 nic non trouvés sur $nbAnnonces".EOL);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Procédures Collectives : $nbNouvProcol entreprises In Bonis sur $nbAnnonces annonces ($nbDejaProcol déjà en ProCol).".EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Stats Secteurs : $nbInsertSecteur ajouts et $nbUpdateSecteur MAJ pour $nbNouvProcol nouv. ProCol ($nbAnnonces annonces vérifiées).".EOL;
|
||||
echo date ('Y/m/d - H:i:s')." - Stats Profils : $nbInsertProfil ajouts et $nbUpdateProfil MAJ pour $nbNouvProcol nouv. ProCol ($nbAnnonces annonces vérifiées).".EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Fin des stats secteurs et profils pour les Procédures quotidiennes.".EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Fin du traitement.".EOL;
|
||||
|
||||
?>
|
238
batch/chercheDC.php
Normal file
238
batch/chercheDC.php
Normal file
@ -0,0 +1,238 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
|
||||
/** @todo Si MAJ en annule et remplace prévoir les manips SQL suivantes :
|
||||
** Création d'une table insee.tmp sans aucun index
|
||||
** A la fin du chargement construire les index
|
||||
** Si pas d'erreur :
|
||||
** 1. detruire insee
|
||||
** 2. Renommer insee.tmp en insee
|
||||
**/
|
||||
|
||||
set_time_limit(0);
|
||||
$heureDebut=TIME_LISIBLE;
|
||||
$dateJour=DATE;
|
||||
$dateJourFormat=substr(DATETIME,0,4).'-'.substr(DATETIME,4,2).'-'.substr(DATETIME,6,2);
|
||||
$j=0;
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']==1) die('Usage : '.basename($argv[0]). " [OPTION]... FICHIER
|
||||
Charger un fichier CSV dans une base de données avec création de la table qui aura le nom du fichier chargé..
|
||||
|
||||
Options disponibles:
|
||||
|
||||
|
||||
Les arguments obligatoires pour les options de formes longues le sont aussi
|
||||
pour les options de formes courtes.
|
||||
-s=CHAR séparateur de champs (virgule, point-virgule*, /t=tabulation, etc...)
|
||||
-c=CHAR caractère encadrant les zones alphanumériques (inopérationnel)
|
||||
|
||||
(*): Valeurs par défaut !
|
||||
");
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 's': $separator=substr($argv[$i],3); break;
|
||||
case 'c': $chaine=substr($argv[$i],3); break;
|
||||
default: die('Option '. $argv[$i] . " inconnue !".EOL);
|
||||
}
|
||||
} else {
|
||||
$fichier_csv[$j]=$argv[$i];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
|
||||
$db_name='jo';
|
||||
|
||||
$iDb=new WDB($db_name);
|
||||
|
||||
if ($separator=='/t') {
|
||||
$separator="\t";
|
||||
echo "séparateur = tabulation\n";
|
||||
} elseif (!isset($separator) || $separator=='') {
|
||||
$separator=';';
|
||||
echo "séparateur = '$separator'\n";
|
||||
}
|
||||
else
|
||||
echo "séparateur = '$separator'\n";
|
||||
|
||||
// Mise à jour de la table PARAM
|
||||
// -----------------------------
|
||||
// 2 - pour la date et l'heure d'exécution du traitement en cours
|
||||
|
||||
/* $tabDataToUpdate=array('VALEUR'=>DATETIME,
|
||||
'CLE'=>'INSEE_MAJ_ENCOURS');
|
||||
$iparam->setParamValeur($tabDataToUpdate);
|
||||
*/
|
||||
echo date ('Y/m/d - H:i:s') . " - Début du traitement".EOL;
|
||||
flush();
|
||||
|
||||
for ($nbFichiers=0; isset($fichier_csv[$nbFichiers]); $nbFichiers++)
|
||||
{
|
||||
$fp=fopen($fichier_csv[$nbFichiers], 'r');
|
||||
if (!$fp) {
|
||||
echo date ('Y/m/d - H:i:s')." - Impossible d'ouvrir le fichier : ".$fichier_csv[$nbFichiers]." !".EOL;
|
||||
/* $tabDataToUpdate=array( 'NUM'=>$numScript,
|
||||
'DATE_JOUR'=>$dateJour,
|
||||
'HEURE_DEBUT'=>$heureDebut,
|
||||
'HEURE_FIN'=>$heureFin,
|
||||
'CODE_RETOUR'=>0,
|
||||
'NB_MAIL'=>1,
|
||||
'RESUME_EXEC'=>"Impossible d'ouvrir le fichier n°$nbFichiers à traiter : $nomFichier.");*/
|
||||
echo date ('Y/m/d - H:i:s') . " - Fin du traitement".EOL;
|
||||
exit();
|
||||
}
|
||||
|
||||
$nbLignes=0;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début du traitement du fichier ". $fichier_csv[$nbFichiers] ."...".EOL;
|
||||
flush();
|
||||
|
||||
while (($data = fgetcsv($fp, 3000, $separator)) !== FALSE)
|
||||
{
|
||||
//echo "\nLigne #$nbLignes:\n";
|
||||
$nomIn=addslashes(trim($data[0]));
|
||||
$nom=trim(addslashes(substr($nomIn,0,5)));
|
||||
//$prenom='';
|
||||
$prenom=addslashes(trim($data[1]));
|
||||
//////$tabTmp=explode('/',$data[2]);
|
||||
$tabTmp=explode('/',$data[2]);
|
||||
$dateNaiss=$tabTmp[2].'-'.$tabTmp[1].'-'.$tabTmp[0];
|
||||
$nbLignes++;
|
||||
|
||||
$tabTmp=$iDb->select('insee_dc',
|
||||
"nom, prenom, sexe, dateNaiss, comInsee, comLib, pays, dateDeces, comInsee2, dateInsert,
|
||||
MATCH(nom) AGAINST ('$nom') AS ScoreNom, MATCH(prenom) AGAINST ('$prenom') AS ScorePrenom
|
||||
/* MATCH(nom, prenom) AGAINST ('$nomIn') AS ScoreNomPrenom */ ",
|
||||
"1 AND MATCH(nom) AGAINST ('$nom') AND MATCH(prenom) AGAINST ('$prenom')
|
||||
/* AND MATCH(nom,prenom) AGAINST ('$nomIn')
|
||||
AND dateNaiss='$dateNaiss' */
|
||||
AND nom LIKE '$nom%'
|
||||
ORDER BY ScoreNom DESC, ScorePrenom DESC
|
||||
", true);
|
||||
|
||||
if (isset($tabTmp[0])) {
|
||||
if (count($tabTmp)==1) $codeRet=1;
|
||||
else $codeRet=2;
|
||||
foreach ($tabTmp as $i=> $res) {
|
||||
echo "$ref;$nomIn;$prenom;$dateNaiss;$codeRet;". $res['nom'].';'.
|
||||
$res['prenom'].';'.
|
||||
$res['dateNaiss'].';'.
|
||||
$res['comInsee'].';'.
|
||||
$res['comLib'].';'.
|
||||
$res['sexe'].';'.
|
||||
$res['pays'].';'.
|
||||
$res['dateDeces'].';'.
|
||||
$res['comInsee2'].';'.
|
||||
$res['dateInsert'].';'.EOL;
|
||||
}
|
||||
} else {
|
||||
echo "$ref;$nomIn;$prenom;$dateNaiss;0;".EOL;
|
||||
}
|
||||
|
||||
/*
|
||||
if ($nbLignes==1)
|
||||
{ // L'entête contient la structure du fichier
|
||||
// On compte le nombre de colonnes du fichier
|
||||
$nbColonnes=count($data);
|
||||
$sql="CREATE TABLE IF NOT EXISTS `$nom_table` (";
|
||||
for($i=0; $i<$nbColonnes; $i++) {
|
||||
$sql.='`'.$data[$i].'` LONGTEXT,';
|
||||
$tabTailles[$i]=0;
|
||||
$champ[$i]=$data[$i];
|
||||
}
|
||||
$sql=substr($sql,0,strlen($sql)-1); // Retrait de la dernière virgule
|
||||
//$sql.="NOM LONGTEXT, PRENOM LONGTEXT, NUSAGE LONGTEXT) TYPE = MYISAM COMMENT = '$comment'";
|
||||
$sql.=") TYPE = MYISAM COMMENT = '$comment'";
|
||||
//echo $sql;
|
||||
if ($iDb->query($sql))
|
||||
echo date ('Y/m/d - H:i:s')." - Création de la table $nom_table OK...".EOL;
|
||||
else {
|
||||
echo $iDb->getLastError().EOL;
|
||||
die(date ('Y/m/d - H:i:s')." - Impossible de créer la table $nom_table !".EOL."Requête SQL = $sql".EOL);
|
||||
}
|
||||
flush();
|
||||
continue;
|
||||
}
|
||||
die();
|
||||
$tabDataToInsert=array();
|
||||
|
||||
for($i=0; $i<$nbColonnes; $i++) {
|
||||
if ($i==1) {
|
||||
$tabM=explode(' ', $data[$i]);
|
||||
if (strlen($tabM[0])<=2) {
|
||||
$nom=$tabM[0].' '.$tabM[1];
|
||||
// unset($tabM[0]);
|
||||
unset($tabM[1]);
|
||||
}
|
||||
else $nom=$tabM[0];
|
||||
unset($tabM[0]);
|
||||
$tabM=preg_split('/( NEE | NE )/i', implode(' ', $tabM));
|
||||
$prenom=$tabM[0];
|
||||
$usage=$tabM[1];
|
||||
$tabDataToInsert=array_merge($tabDataToInsert, array('NOM'=>$nom, 'PRENOM'=>$prenom, 'NUSAGE'=>$usage));
|
||||
} else
|
||||
$tabDataToInsert=array_merge($tabDataToInsert, array($champ[$i]=>$data[$i]));
|
||||
if (strlen($data[$i])>$tabTailles[$i])
|
||||
$tabTailles[$i]=strlen($data[$i]);
|
||||
}
|
||||
|
||||
//print_r($tabDataToInsert);
|
||||
$ret=$iDb->insert($nom_table, $tabDataToInsert);
|
||||
if ($ret!=1) {
|
||||
echo date ('Y/m/d - H:i:s') . " - ERREUR à l'insertion de la ligne n°$i : ". implode(';', $data) ." !".EOL;
|
||||
flush();
|
||||
}
|
||||
unset($tabDataToInsert);*/
|
||||
}
|
||||
fclose ($fp);
|
||||
die();
|
||||
// On réduit la taille des colonnes au max de chaque champ
|
||||
for($i=0; $i<$nbColonnes; $i++)
|
||||
{
|
||||
//$tabTailles[$i]=strlen($data[$i]);
|
||||
if ($tabTailles[$i]<256) {
|
||||
$sql="ALTER TABLE `$nom_table` CHANGE `".$champ[$i]."` `".$champ[$i]."` VARCHAR(".$tabTailles[$i].") NULL DEFAULT NULL ";
|
||||
echo $sql;
|
||||
if ($iDb->query($sql))
|
||||
echo date ('Y/m/d - H:i:s')." - Taille du champ $i (". $champ[$i] .") passée à ". $tabTailles[$i] ."...".EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Impossible de modifier la taille du champ $i (". $champ[$i] .") à ". $tabTailles[$i] ." !".EOL;
|
||||
flush();}
|
||||
}
|
||||
echo 'Tailles max / champ:'.EOL;
|
||||
print_r($tabTailles);
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Fin du traitement.".EOL;
|
||||
die();
|
||||
function ecrireFichier($fichier,$texte){
|
||||
$fp = fopen($fichier, "a");
|
||||
fwrite($fp, $texte."\r\n");
|
||||
fclose ($fp);
|
||||
}
|
||||
|
||||
function valideSiret($SIRET) {
|
||||
if (!is_numeric($SIRET))
|
||||
return false;
|
||||
|
||||
$somme=0;
|
||||
for ($i=0; $i<=12; $i+=2) { // Traitement PAIR
|
||||
$var_tmp=(string)(2*((integer)substr($SIRET,$i,1)));
|
||||
$som_tmp=0;
|
||||
for($j=0;$j<strlen($var_tmp);$j++)
|
||||
$som_tmp+=(integer)substr($var_tmp,$j,1);
|
||||
$somme+=$som_tmp;
|
||||
}
|
||||
for ($i=1; $i<=13; $i+=2) // Traitement IMPAIR
|
||||
$somme+=(integer)substr($SIRET,$i,1);
|
||||
|
||||
if ((integer)($somme/10)!=($somme/10))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
?>
|
63
batch/chercheLog.php
Normal file
63
batch/chercheLog.php
Normal file
@ -0,0 +1,63 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
/* $tabDossiers=file('/mnt/samba/public/listeCet.txt');
|
||||
$str=file_get_contents('/mnt/samba/public/SaisieCetelem_debug.old.log');
|
||||
//$i=>$ligne
|
||||
foreach ($tabDossiers as $i=>$ligne) {
|
||||
$ligne=trim($ligne);
|
||||
if (preg_match_all('/(.*) - CREDDEL : (.*)'.$ligne.'(.*)retour Cetelem =(.*)/i', $str, $matches)) {
|
||||
//if (preg_match_all('/(.*)'.$ligne.'(.*)/i', $str, $matches)) {
|
||||
//print_r($matches);
|
||||
$nbEssais=count($matches[1]);
|
||||
$lastEssai=end($matches[1]);
|
||||
$nomPrenom=end($matches[3]);
|
||||
$message=end($matches[4]);
|
||||
|
||||
echo "$i;$ligne;OK;$nbEssais;$lastEssai;$nomPrenom;$message\n";
|
||||
//die();
|
||||
}
|
||||
else
|
||||
echo "$i;$ligne;KO\n";
|
||||
}
|
||||
*/
|
||||
|
||||
$iDb=new WDB('insee');
|
||||
|
||||
$tabDossiers=file('./siretBasculesInconnus.csv');
|
||||
echo date ('Y/m/d - H:i:s')." - Chargement des siret...".EOL;
|
||||
foreach ($tabDossiers as $i=>$ligne) {
|
||||
$tabTmp=explode(';', $ligne);
|
||||
$siren=$tabTmp[0];
|
||||
$tabSirenTmp[]=$siren;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Chargement de $i siret...".EOL;
|
||||
|
||||
$tabSiren=array_unique($tabSirenTmp);
|
||||
$nb=count($tabSiren);
|
||||
echo date ('Y/m/d - H:i:s')." - Dédoublonnage des siret : $nb siret".EOL;
|
||||
sort($tabSiren);
|
||||
echo date ('Y/m/d - H:i:s')." - Trie des siret OK.".EOL;
|
||||
|
||||
foreach ($tabSiren as $i=>$siren) {
|
||||
$ret=$iDb->select('identite', 'count(*) as nbEtab, NOM, NOM2, SIGLE, DCREN, CJ, CIVILITE, PROCOL, PROCOL_TYPE, PROCOL_DATE, CAPITAL, EFF_ENT, NUMRC, DIR_FCT, DIR_IDEN, DIR_DATEN, DIR_LIEUN, CAPITAL_DATE, CAPITAL_DEV, TEFF_ENT, TCA, TCAEXP', "SIREN=$siren AND NOM<>'' GROUP BY SIREN", false, MYSQL_ASSOC);
|
||||
$entrep=$ret[0];
|
||||
if ($entrep['nbEtab']>0) {
|
||||
echo "$i/$nb : $siren;".$entrep['nbEtab'].';'.$entrep['NOM']."\n";
|
||||
$tabUpdate=$entrep;
|
||||
unset($tabUpdate['nbEtab']);
|
||||
//print_r($tabUpdate);
|
||||
//die();
|
||||
$retUpdate=$iDb->update('identite', $tabUpdate, "SIREN=$siren AND NOM=''");
|
||||
// die($retUpdate);
|
||||
} else {
|
||||
$fp=fopen('siren_a_recuperer.txt', 'a');
|
||||
fwrite($fp, "$siren\n");
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
|
||||
die();
|
||||
|
||||
?>
|
85
batch/chercheSiren.php
Normal file
85
batch/chercheSiren.php
Normal file
@ -0,0 +1,85 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
function wsLog($service, $siret='', $ref='') {
|
||||
/* if (strlen($siret)==14) {
|
||||
$siren=substr($siret,0,9);
|
||||
$nic=substr($siret,9,5);
|
||||
} elseif (strlen($siret)==9) {
|
||||
$siren=$siret;
|
||||
$nic='';
|
||||
}
|
||||
|
||||
global $iDbCrm, $tabInfoUser;
|
||||
$tabInsert=array( 'login'=>$tabInfoUser['login'],
|
||||
'page'=>$service,
|
||||
'siren'=>$siren,
|
||||
'nic'=>$nic,
|
||||
'params'=>$ref);
|
||||
$rep=$iDbCrm->insert('logs', $tabInsert);
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once('/var/www/html/ws/WsEntreprise.php');
|
||||
|
||||
$nbExercices=1;
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Scorer toute la base entreprise S&D.
|
||||
|
||||
Options :
|
||||
-t Calculer tous les scores (*)
|
||||
-i:XXX Reprendre à la ligne XXX
|
||||
|
||||
(*) Option par défaut si aucun argument n'est passé.
|
||||
";/* -e:X Calculer pour les X derniers exercices (3 par défaut)
|
||||
-f Calculer les scores financiers
|
||||
*/
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 't':
|
||||
case 'T':
|
||||
break;
|
||||
case 'i':
|
||||
case 'I':
|
||||
$iDeb=substr($argv[$i],3);
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . ' inconnue !'.EOL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$iDb=new WDB('tmp');
|
||||
|
||||
$iWs=new WsEntreprise();
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT du programme de recherche des siren manquants...".EOL;
|
||||
|
||||
$tabRows=$iDb->select( 'tmp.siren_surv', 'siren', 'siren>99999 AND siren NOT IN (SELECT siren FROM jo.etablissements) ORDER BY siren_surv.siren DESC', false, MYSQL_ASSOC);
|
||||
$nbRows=count($tabRows);
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows entreprises à scorer...".EOL;
|
||||
|
||||
foreach ($tabRows as $k=>$tabSiren) {
|
||||
if ($k<$iDeb) continue;
|
||||
|
||||
$siren=$tabSiren['siren'];
|
||||
$tabRet=@$iWs->searchSiren($siren);
|
||||
$nbReps=$tabRet['results']['nbReponses'];
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - Ligne $k, siren $siren : $nbReps entreprise trouvée...".EOL;
|
||||
randsleep(1,2);
|
||||
}
|
||||
|
||||
die();
|
||||
?>
|
3350
batch/cjBodacc.php
Normal file
3350
batch/cjBodacc.php
Normal file
File diff suppressed because it is too large
Load Diff
526
batch/cjBodaccInsee.php
Normal file
526
batch/cjBodaccInsee.php
Normal file
@ -0,0 +1,526 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(FWK_PATH.'common/curl.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
|
||||
$iInsee=new MInsee();
|
||||
|
||||
$siren=552144503;
|
||||
|
||||
print_r($iInsee->getAnnoncesLegales($siren));
|
||||
|
||||
die();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$tabLigne=file('/root/cjBodacc.txt');
|
||||
$tabCj=array();
|
||||
|
||||
foreach ($tabLigne as $i=>$ligne) {
|
||||
if ($i<1) continue;
|
||||
$tabTmp=explode("\t", $ligne);
|
||||
$libCj=strtoupper(trim(preg_replace('/[^a-z]/i','',$tabTmp[0])));
|
||||
$nbrCj=$tabTmp[1];
|
||||
@$tabCj[$libCj]+=$nbrCj;
|
||||
}
|
||||
$nbCj=count($tabCj);
|
||||
echo "$i CJ traitées => $nbCj filtrées !".EOL;
|
||||
|
||||
foreach ($tabCj as $libCj=>$nbrCj)
|
||||
echo "'$libCj'=>0,\t// $nbrCj".EOL;
|
||||
die();
|
||||
/*include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
*/
|
||||
/*
|
||||
function ferie($mois,$an, $alsace = false){
|
||||
if (is_array($mois)){
|
||||
$retour = array();
|
||||
foreach ($mois as $m) {
|
||||
$r = ferie($m, $an);
|
||||
$retour[$m] = ferie($m, $an);
|
||||
}
|
||||
return $retour;
|
||||
}
|
||||
|
||||
// calcul des jours feries pour un seul mois.
|
||||
if (mktime(0,0,0,$mois, 1,$an) == -1) { return FALSE;}
|
||||
list($mois, $an) = explode("-", date("m-Y", mktime(0,0,0,$mois, 1, $an)));
|
||||
$an = intval($an);
|
||||
$mois = intval($mois);
|
||||
|
||||
// une constante
|
||||
$jour = 3600*24;
|
||||
|
||||
// les jours fixes
|
||||
$ferie["Jour de l'an"][1] = 1;
|
||||
$ferie["Armistice 39-45 "][5] = 8;
|
||||
$ferie["Toussaint"][11] = 1;
|
||||
$ferie["Armistice 14-18"][11] = 11;
|
||||
$ferie["Assomption"][8] = 15;
|
||||
$ferie["Fête du travail "][5] = 1;
|
||||
$ferie["Fête nationale"][7] = 14;
|
||||
$ferie["Noël"][12] = 25;
|
||||
if ($alsace)
|
||||
$ferie["Lendemain de Noël (Alsace seulement)"][12] = 25;
|
||||
|
||||
// quelques fetes mobiles
|
||||
$lundi_de_paques['mois'] = date( "n", easter_date($an)+1*$jour);
|
||||
$lundi_de_paques['jour'] = date( "j", easter_date($an)+1*$jour);
|
||||
$lundi_de_paques['nom'] = "Lundi de Pâques";
|
||||
|
||||
$ascencion['mois'] = date( "n", easter_date($an)+39*$jour);
|
||||
$ascencion['jour'] = date( "j", easter_date($an)+39*$jour);
|
||||
$ascencion['nom'] = "Jeudi de l'ascenscion";
|
||||
|
||||
$vendredi_saint['mois'] = date( "n", easter_date($an)-2*$jour);
|
||||
$vendredi_saint['jour'] = date( "j", easter_date($an)-2*$jour);
|
||||
$vendredi_saint['nom'] = "Vendredi Saint";
|
||||
|
||||
$lundi_de_pentecote['mois'] = date( "n", easter_date($an)+50*$jour);
|
||||
$lundi_de_pentecote['jour'] = date( "j", easter_date($an)+50*$jour);
|
||||
$lundi_de_pentecote['nom'] = "Lundi de Pentecôte";
|
||||
|
||||
|
||||
$ferie[$lundi_de_paques['nom']][$lundi_de_paques['mois']] = $lundi_de_paques['jour'];
|
||||
$ferie[$lundi_de_pentecote['nom']][$lundi_de_pentecote['mois']] = $lundi_de_pentecote['jour'];
|
||||
$ferie[$ascencion['nom']][$ascencion['mois']] = $ascencion['jour'];
|
||||
if ($alsace)
|
||||
$ferie[$vendredi_saint['nom']." (Alsace)"][$vendredi_saint['mois']]= $vendredi_saint['jour'];
|
||||
|
||||
// reponse
|
||||
$reponse = array();
|
||||
while(list($nom, $date)= each($ferie)){
|
||||
if (isset($date[$mois])){
|
||||
// une fete a date calculable
|
||||
$reponse[$date[$mois]]=$nom;
|
||||
}
|
||||
}
|
||||
ksort($reponse);
|
||||
return $reponse;
|
||||
}
|
||||
function tab_jours_feriés($an) {
|
||||
return ferie(range(1,12),$an);
|
||||
}
|
||||
|
||||
|
||||
$année = date("Y");
|
||||
$tabFeriers = tab_jours_feriés($année);
|
||||
print_r($tabFeriers);
|
||||
die();
|
||||
|
||||
echo "<br>";
|
||||
while (list($mois, $tab) = each ($fériées)) {
|
||||
while (list($jour, $fete) = each ($tab)) {
|
||||
echo "$jour/$mois/$année => $fete \n<br>";
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
$iDb=new WDB();
|
||||
$tabRet=$iDb->select('boamp_detail' , 'id, raisonSociale, adresse, cp, ville', "1");
|
||||
foreach ($tabRet as $i=>$tabInsert) {
|
||||
$idTxtUnique=trim(strtoupper(preg_replace('/[^a-z0-9]/i', '',
|
||||
$tabInsert['raisonSociale'].$tabInsert['adresse'].
|
||||
$tabInsert['cp'].$tabInsert['ville'])));
|
||||
$id=$tabInsert['id'];
|
||||
if ($idTxtUnique<>'') {
|
||||
$iDb->update('boamp_detail',
|
||||
array( 'idTxtUnique'=>$idTxtUnique,
|
||||
'dateUpdate'=>0), "id=$id");
|
||||
//die($id);
|
||||
}
|
||||
}
|
||||
|
||||
//echo WDate::jourFerie($argv[1],1);
|
||||
|
||||
|
||||
die();
|
||||
|
||||
|
||||
$tabFormesJuridiques=array(
|
||||
"SociÉtÉ À responsabilitÉ limitÉe À capital variable" ,
|
||||
"Societe anonyme cooperative a capital variable" ,
|
||||
"Societe a responsabilite limitee" ,
|
||||
"Sarl membre de la ce ou partie À l'accord sur l'espace Économique europÉen" ,
|
||||
"Soci t par actions simplifi e" ,
|
||||
"Soci t responsabilit limit e" ,
|
||||
"Societe civile de personnes" ,
|
||||
"Societe civile particuliere" ,
|
||||
"Societe d'exercice liberal par actions simplifiee" ,
|
||||
"Societe anonyme cooperative" ,
|
||||
"Societe par actions simplifiee a associe unique" ,
|
||||
"Societe cooperative" ,
|
||||
"S a r l a capital variable" ,
|
||||
"Ste en commandite simple" ,
|
||||
"Soci t responsabilit limit e capital variable" ,
|
||||
"Groupememt d'interet economique commercial" ,
|
||||
"Societe par action simplifiee" ,
|
||||
"Societe d'exercice liberal par actions simplifiee - selas" ,
|
||||
"Entreprise unipersonnelle a responsabilite limitee" ,
|
||||
"Soci t en nom collectif" ,
|
||||
"SociÉtÉ par actions simplifiÉe unipersonnelle" ,
|
||||
"Societe civile de contruction/vente" ,
|
||||
"Societe anonyme a capital variable" ,
|
||||
"Societe cooperative de production a responsabilite limitee a capital variable" ,
|
||||
"Cooperative ouvriere de product. a resp. lim." ,
|
||||
"SociÉtÉ civile de moyens" ,
|
||||
"Affaire personnelle commerÇant" ,
|
||||
"SociÉtÉ civile professionnelle" ,
|
||||
"Societe anonyme d'economie mixte locale" ,
|
||||
"Sa a conseil d administration" ,
|
||||
"Societe cooperative agricole a capital variable" ,
|
||||
"Cooperative ouvriere de production en a.r.l." ,
|
||||
"Sarl a associe unique et a capital variable" ,
|
||||
"Societe anonyme d'h.l.m." ,
|
||||
"Cooperative agricole" ,
|
||||
"Soci t civile" ,
|
||||
"Soci t civile immobili re" ,
|
||||
"SociÉtÉ d'exercice libÉral À responsabilitÉ limitÉe" ,
|
||||
"Societe cooperative de production a responsabilite limitee" ,
|
||||
"Societe cooperative de travailleurs (anonyme)" ,
|
||||
"Soci?t? ? responsabilit? limit?e" ,
|
||||
"Cooperative ouvriere de production (anonyme)" ,
|
||||
"Sa coop de production a cap variable" ,
|
||||
"Sa À conseil d'administration" ,
|
||||
"Societe d'interet collectif agricole" ,
|
||||
"Societe civile agricole" ,
|
||||
"Societe cooperative de production anonyme a capital variable" ,
|
||||
"Sarl unipersonnelle" ,
|
||||
"Sarl cooperative" ,
|
||||
"Societe cooperative agricole" ,
|
||||
"Societe anonyme" ,
|
||||
"Societe par actions simplifiee a directoire et conseil de surveillance" ,
|
||||
"Ste coop. prod. a resp. limitee a capital personnel et variable" ,
|
||||
"Societe d'actions simplifiee a capital variable" ,
|
||||
"SociÉtÉ anonyme coopÉrative d'intÉrÊt collectif pour l'accession À la propriÉtÉ" ,
|
||||
"Groupement d'intÉrÊt Économique" ,
|
||||
"Societe d'exercice liberal a responsabilite limitee unipersonnelle%" ,
|
||||
"Societe cooperative de production" ,
|
||||
"Societe cooperative ouvriere de production anonyme a capital variable" ,
|
||||
"Sarl a capital variable" ,
|
||||
"Societe anonyme d'economie mixte" ,
|
||||
"Societe cooperative anonyme d interet collectif agricole" ,
|
||||
"Sasu sociÉtÉ par actions simplifiÉe À associÉ unique" ,
|
||||
"Societe d'investissements a capital variable (s.i.c.a.v)" ,
|
||||
"Societe cooperative de production (sarl)" ,
|
||||
"Societe d exercice liberal par actions simplifiees" ,
|
||||
"Union de cooperatives agricoles" ,
|
||||
"Societe cooperative ouvriere de production anonyme" ,
|
||||
"Soci t de droit tranger" ,
|
||||
"Societe civile professionnelle d'architectes" ,
|
||||
"Societe civile construction vente" ,
|
||||
"Soci t anonyme" ,
|
||||
"Societe a responsabilite limitee de presse" ,
|
||||
"Societe anonyme sportive professionnelle" ,
|
||||
"Societe anonyme a conseil d administration" ,
|
||||
"Cooperative d'utilisation de materiel agricole (c.u.m.a.)" ,
|
||||
"Societe civile cooperative de construction" ,
|
||||
"Sarl de presse" ,
|
||||
"Groupememt d interet economique commercial" ,
|
||||
"Sa À directoire" ,
|
||||
"Societe cooperative de production en a.r.l a capital variable" ,
|
||||
"Societe cooperative interet collectif agricole s.a." ,
|
||||
"Societe cooperative d'interet collectif anonyme" ,
|
||||
"Societe cooperative a capital et personnel variables" ,
|
||||
"SociÉtÉ coopÉrative À capital variable en la forme sarl" ,
|
||||
"Ste coop de banque a capital var." ,
|
||||
"Groupement agricole d'exploitation en commun - gaec" ,
|
||||
"SociÉtÉ civile d'exploitation agricole" ,
|
||||
"Societe cooperative a capital variable et a responsabilite limitee" ,
|
||||
"Societe anonyme cooperative de production d hlm" ,
|
||||
"Societe anonyme cooperative de commercants detaillants" ,
|
||||
"SociÉtÉ civile professionnelle de commissaires-priseurs" ,
|
||||
"Societe anonyme cooperative de banque populaire" ,
|
||||
"Cooperative de consommation en s.a" ,
|
||||
"Sa coopÉrative d'intÉrÊt collectif pour accession À la propriÉtÉ (sacicap)" ,
|
||||
"Cooperative de commercants detaillants" ,
|
||||
"Societe anonyme cooperative a capital et personnel variable" ,
|
||||
"SociÉtÉ coopÉrative de production À forme sarl." ,
|
||||
"SociÉtÉ civile immobiliÈre de construction vente" ,
|
||||
"Ano societe anonyme a directoire et conseil de surveillance" ,
|
||||
"Societe par actions simplifiee" ,
|
||||
"Societe cooperative ouvriere de production" ,
|
||||
"Societe civile d exploitation agricole a responsabilite limitee" ,
|
||||
"Exploitation agricole À responsabilitÉ limitÉe" ,
|
||||
"E.u.r.l." ,
|
||||
"Societe d'economie mixte a conseil d'administration" ,
|
||||
"Groupement europeen d'interet economique" ,
|
||||
"Societe anonyme cooperative de production d'hlm" ,
|
||||
"Groupement d int r t conomique" ,
|
||||
"Cooperative ouvriere de product a resp lim " ,
|
||||
"Soci t responsabilit limit e coop rative ouvri re de production et de cr dit" ,
|
||||
"Societe cooperative credit capital variable a.r.l." ,
|
||||
"Societe d'exercice liberal a forme anonyme _ selafa" ,
|
||||
"SociÉtÉ À responsabilitÉ limitÉe coopÉrative ouvriÈre de production et de crÉdit" ,
|
||||
"SociÉtÉ anonyme d'hlm" ,
|
||||
"Societe d interet collectif agricole" ,
|
||||
"Societe cooperative d'artisan en arl a capital variable" ,
|
||||
"SociÉtÉ d'exercice libÉral À forme anonyme" ,
|
||||
"SociÉtÉ d'investissement À capital variable" ,
|
||||
"Societe civile d exploitation agricole" ,
|
||||
"Societe en nom collectif" ,
|
||||
"Sarl cooperative ouvriere de production et de credit a capital variable" ,
|
||||
"SociÉtÉ par actions simplifiÉe À capital variable" ,
|
||||
"SociÉtÉ par actions simplifiÉe À associÉ unique et capital variable" ,
|
||||
"S a cooperative d entreprises a capital variable" ,
|
||||
"Sa a conseil d'administration" ,
|
||||
"Societe cooperative de credit" ,
|
||||
"Societe de presse" ,
|
||||
"Societe anonyme a participation ouvriere" ,
|
||||
"Groupement d interet economique commercial" ,
|
||||
"SociÉtÉ anonyme d'Économie mixte À conseil d'administration" ,
|
||||
"Ste d'exercice liberal a responsabilite limitee unipersonnel" ,
|
||||
"Societe cooperative d interet collectif a responsabilite limitee" ,
|
||||
"Sa d'economie mixte a conseil administratif" ,
|
||||
"Societe d'economie mixte a directoire" ,
|
||||
"Cette societe est une sas unipersonnelle" ,
|
||||
"Sa sportive professionnelle" ,
|
||||
"S.a.r.l. a capital personnel variable" ,
|
||||
"Societe civile professionnelle d'huissiers" ,
|
||||
"Sa cooperative ouvriere de production et de credit a conseil d administration" ,
|
||||
"Gaec a capital variable" ,
|
||||
"Groupement agricole d exploitation en commun" ,
|
||||
"Societe d'exercice liberal par actions simplifiees (selas)" ,
|
||||
"Societe civile d attribution" ,
|
||||
"Soci t par actions simplifi e associ unique" ,
|
||||
"Societe civile de construction vente" ,
|
||||
"Cooperative agricole a capital variable" ,
|
||||
"Societe cooperative de production en a.r.l. a capital variable" ,
|
||||
"Societe anonyme a capital et personnel variables" ,
|
||||
"SociÉtÉ anonyme À conseil d'administration" ,
|
||||
"Sa coop. ouvriere de production capital et personnel variables" ,
|
||||
"Union de societes cooperatives a directoire" ,
|
||||
"Societe d'exercice liber. forme anonyme" ,
|
||||
"Sarl d'intÉrÊt collectif et agricole À capital variable" ,
|
||||
"Sarl cooperative a capital variable" ,
|
||||
"Sa coop rative ouvri re de prod et cr dit conseil d adm capital variable" ,
|
||||
"Banque cooperative regie par la loi n.99-532 du 25.06.1999" ,
|
||||
"Societe anonyme au capital et personnel variable" ,
|
||||
"Soci?t? par actions simplifi?e unipersonnelle" ,
|
||||
"Sa d'int. collectif agri. a ca" ,
|
||||
"Soci t civile de moyens" ,
|
||||
"Societe a responsabilite limite de droit britanique" ,
|
||||
"Ste cooperative de banque populaire" ,
|
||||
"Societe cooperative de consommation anonyme" ,
|
||||
"Societe anonyme d hlm" ,
|
||||
"SociÉtÉ coopÉrative de travailleurs À forme sarl" ,
|
||||
"Cooperative d'interet collectif a conseil d'administration" ,
|
||||
"SociÉtÉ de placement À prÉpondÉrance immobiliÈre À capital variable" ,
|
||||
"Societe cooperative a capital variable" ,
|
||||
"Etablissement public national" ,
|
||||
"Sica anonyme a directoire et conseil de surveillance" ,
|
||||
"Eurl a capital variable" ,
|
||||
"Sarl cooperative ouvriere de production" ,
|
||||
"Sa coop. de production hlm a capital variable" ,
|
||||
"Socite civile cooperative de credit" ,
|
||||
"Societe a responsabilite limitee d'architecture" ,
|
||||
"Cooperative ouvriere de production en a r l " ,
|
||||
"Societe cooperative a responsabilite limitee a capital variable" ,
|
||||
"Sarl sous forme de eurl" ,
|
||||
"Ano societe anonyme cooperative a capital variable a directoire" ,
|
||||
"Cooperative artisanale en s.a.r.l" ,
|
||||
"SociÉtÉ civile professionnelle d'avocats" ,
|
||||
"Ste cooperative artisanale resp.lim.capital variable" ,
|
||||
"Societe anonyme capital fixe coop. de banque" ,
|
||||
"Societe cooperative de banque populaire a capital variable" ,
|
||||
"Cooperative ouvriere de production en s.a.r.l." ,
|
||||
"Societe cooperative ouvriere de production a.s.a" ,
|
||||
"SociÉtÉ coopÉrative de production À forme anonyme À capital variable" ,
|
||||
"Sa coopÉrative ouvriÈre de prod. et crÉdit À conseil d'adm. À capital variable" ,
|
||||
"Banque cooperative" ,
|
||||
"Sarl membre de la ce ou partie l accord sur l espace conomique europ en" ,
|
||||
"Sascop" ,
|
||||
"Sa cooperative de consommation a conseil d administration a capital variable" ,
|
||||
"Societe anonyme a conseil de surveillance" ,
|
||||
"Cooperative artisanale" ,
|
||||
"Cooperative maritime" ,
|
||||
"Ste d'investissements a capital variable a conseil -sicav-" ,
|
||||
"Societe civile en construction vente (loi de 1971) titre1" ,
|
||||
"Societe cooperative artisanale a resp. limitee et a capital variable" ,
|
||||
"SociÉtÉ anonyme coopÉrative de consommation À conseil d'administration" ,
|
||||
"Ville de" ,
|
||||
"Societe anonyme de presse" ,
|
||||
"Association loi 1901 Émettant des obligations" ,
|
||||
"Societe civile professionnelle de notaires" ,
|
||||
"Societe civile immobiliere d attribution" ,
|
||||
"Societe civile professionnelle de chirurgien-dentistes" ,
|
||||
"Ste cooperative d'interet collectif a responsabilite limitee a capital variable" ,
|
||||
"Arl societe a associe unique" ,
|
||||
"Soci?t? par actions simplifi?e" ,
|
||||
"SociÉtÉ coopÉrative ouvriÈre de production en la forme sarl" ,
|
||||
"Soci t responsabilit limit e coop rative capital variable" ,
|
||||
"Societe anonyme de consom a capital variable" ,
|
||||
"Entreprise unipersonnelle a responsabilite limitee (eurl) et a capital variable" ,
|
||||
"Societe cooperative de credit a capital variable" ,
|
||||
"Societe civile de placement immobilier" ,
|
||||
"Ste civile a participation ouvriere a capital variable" ,
|
||||
"Societe anonyme cooperative de banque populaire a capital variable" ,
|
||||
"Societe d'investissement a capital variable d'actionnariat salaries (sicavas)" ,
|
||||
"Cooperative a capital variable (sarl)" ,
|
||||
"Soci t en commandite simple" ,
|
||||
"Soci t d exercice lib ral responsabilit limit e" ,
|
||||
"Societe anonyme cooperative maritime a capital variable" ,
|
||||
"Societe d interet collectif agricole arl" ,
|
||||
"Societe anonyme cooperative a directoire" ,
|
||||
"Cooperative professionnelle" ,
|
||||
"S.a cooperative d'entreprises a capital variable" ,
|
||||
"SociÉtÉ ÉtrangÈre immatriculÉe au rcs" ,
|
||||
"Soci?t? ? responsabilit? limit?e ? associ? unique" ,
|
||||
"SociÉtÉ civile professionnelle d'huissiers de justice" ,
|
||||
"Soci t responsabilit limit e associ unique" ,
|
||||
"SociÉtÉ coopÉrative ouvriÈre de production en la forme sa" ,
|
||||
"Sa coop de commercants detail a ca" ,
|
||||
"StÉ de participation financiÈre de profession libÉrale À responsabilitÉ limitÉe" ,
|
||||
"Societe cooperative maritime" ,
|
||||
"Autres formes juridiques" ,
|
||||
"Societe civile immobiliere de construction / vente" ,
|
||||
"Banque coopÉrative rÉgie par la loi n°99-532 du 25 juin 1999" ,
|
||||
"SociÉtÉ coopÉrative exploitÉe sous forme de sarl" ,
|
||||
"Sarl associe unique" ,
|
||||
"Institution regie - articles l141-1 et suivants du code monetaire et financier" ,
|
||||
"Societe de droit anglais" ,
|
||||
"Societe cooperative de consommation anonyme a capital variable" ,
|
||||
"Union de cooperative" ,
|
||||
"Societe en commandite simple a capital variable" ,
|
||||
"StÉ coop de crÉdit À capital variable et À responsabilitÉ statutairement limitÉe" ,
|
||||
"Societe par actions" ,
|
||||
"Societe cooperative artisanale a responsabilite limitee" ,
|
||||
"Societe civile professionnelle de medecins" ,
|
||||
"Union de cooperatives a capital variable" ,
|
||||
"Societe anonyme d'h.l.m. a conseil" ,
|
||||
"Sarl cooperative artisanale" ,
|
||||
"Societe civile de construction" ,
|
||||
"Societe civile d exploitation viticole" ,
|
||||
"E.u.r.l a capital variable" ,
|
||||
"Entreprise unipersonnelle a responsabilite limitee et a capital variable" ,
|
||||
"Ste anonyme a directoire et conseil d'orientation & surveillance" ,
|
||||
"Sarl unipersonnelle sportive" ,
|
||||
"Scop a responsabilite limitee et a capital variable" ,
|
||||
"SociÉtÉ À responsabilitÉ limitÉe unipersonnelle À capital variable" ,
|
||||
"Sarl a capital et personnel variable" ,
|
||||
"Societe d exploitation agricole a responsabilite limitee" ,
|
||||
"Sarl - eurl a capital variable" ,
|
||||
"StÉ anonyme coopÉrative d'intÉrÊt collectif pour l'accession À la propriÉtÉ" ,
|
||||
"Ste anonyme cooperative a capital variable" ,
|
||||
"Etablissement de credit a but non lucratif" ,
|
||||
"Societe cooperative de travailleurs (sarl)" ,
|
||||
"E.a.r.l." ,
|
||||
"Societe d assurance" ,
|
||||
"Regie municipale" ,
|
||||
"Coop. de crÉdit À responsabilitÉ statutairement limitÉe et À capital variable" ,
|
||||
"Societe" ,
|
||||
"Sarl non membre de la ce ou non partie À l'accord sur l'espace Économique eur." ,
|
||||
"Cooperative a capital variable en a r l " ,
|
||||
"Societe anonyme a directoire et conseil de surveillance" ,
|
||||
"Cooperative ouvriere de production (sa)" ,
|
||||
"Societe civile d'attribution" ,
|
||||
"Societe civile de portefeuille" ,
|
||||
"SociÉtÉ anonyme coopÉrative d'intÉrÊt collectif pour accession À la propriÉtÉ" ,
|
||||
"Affaire personnelle artisan" ,
|
||||
"Scp de mandataires judiciaires À la liquidation des entreprises" ,
|
||||
"Societe civile immobiliere a capital variable" ,
|
||||
"S a r l de presse" ,
|
||||
"Sarl d'architecture" ,
|
||||
"Societe civile professionnelle de mandataires liquidateurs" ,
|
||||
"Societe anonyme cooperative de consommation" ,
|
||||
);
|
||||
|
||||
function getCodeFJ($forme_juridique) {
|
||||
$iDb=new WDB();
|
||||
$variable=false;
|
||||
$strVar='';
|
||||
if (preg_match('/capital variable/i', $forme_juridique)) {
|
||||
$fj2=addslashes(preg_replace('/capital variable/i',' ',$forme_juridique));
|
||||
$variable=true;
|
||||
$strVar='VAR';
|
||||
} else
|
||||
$fj2=addslashes($forme_juridique);
|
||||
|
||||
$tmp=$iDb->select(
|
||||
'tabFJur',
|
||||
"code, libelle, MATCH(libelle) AGAINST('$fj2') AS score",
|
||||
"code>1000 AND MATCH(libelle) AGAINST('$fj2')", false, MYSQL_ASSOC);
|
||||
echo "A RECHERCHER : '$forme_juridique'".EOL;
|
||||
foreach($tmp as $i=>$tabFj) {
|
||||
if ($i==0) {
|
||||
echo strtoupper(" $i - ".$tabFj['libelle']." ==> ".$tabFj['code']).EOL;
|
||||
$code=$tabFj['code'];
|
||||
} else
|
||||
echo " $i - ".$tabFj['libelle']." ==> ".$tabFj['code'].EOL;
|
||||
if ($i>20) break;
|
||||
}
|
||||
while(true){
|
||||
echo "Confirmez le code $code pour '$forme_juridique' ?".EOL;
|
||||
$saisie = trim(strtoupper(fgets(STDIN)));
|
||||
if (strlen($saisie)==4 && $saisie*1>1000) {
|
||||
$code=$saisie;
|
||||
break;
|
||||
/* if (!$iBodacc->addDeviseBodacc($devise, $saisie) && mysql_errno()<>1062) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR ".mysql_errno()." : Insertion des informations de chargement en base impossible :".EOL;
|
||||
echo date ('Y/m/d - H:i:s'). mysql_error();
|
||||
die();
|
||||
}
|
||||
$capital_devise=$saisie;
|
||||
break;*/
|
||||
} elseif ($saisie=='?') {
|
||||
$code=$saisie;
|
||||
break;
|
||||
} elseif (strlen($saisie)==0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return array('code'=>$code,'variable'=>$variable,'var'=>$strVar);
|
||||
}
|
||||
$fp=fopen('./libFJ.php','w+');
|
||||
$fp2=fopen('./libFJ.csv','w+');
|
||||
foreach($tabFormesJuridiques as $i=>$fj) {
|
||||
//echo "$i:$fj = "..EOL;
|
||||
$fj2=prepareString(strtoupper(trim($fj)));
|
||||
$tabCode=getCodeFJ($fj2);
|
||||
$code=$tabCode['code'];
|
||||
$var=$tabCode['variable'];
|
||||
$strVar=$tabCode['var'];
|
||||
fwrite($fp, "case '$fj2':\t\$cj=$code; \$capitalType='$strVar'; break;".EOL);
|
||||
fwrite($fp2, "$fj2\t$code\t$strVar".EOL);
|
||||
}
|
||||
|
||||
|
||||
echo simpleWhois('indiscore', 'fr', true);
|
||||
die();
|
||||
$tab = array( 'toto.com',
|
||||
'momo.com',
|
||||
'yoyo.fr',
|
||||
'65qs4df56q4qsdqsd.com',
|
||||
'koko.net',
|
||||
'zozo.net',
|
||||
'soso.net',
|
||||
'qoqo.net',
|
||||
'qs56d4qs56d4qs65d4qs564.net',
|
||||
'xoxo.net',
|
||||
'coco.com',
|
||||
'hoho.fr',
|
||||
'nono.net',
|
||||
'dodo.com',
|
||||
);
|
||||
// Récupération des résultats
|
||||
$output = false;
|
||||
// Exécution
|
||||
if($tab){
|
||||
foreach($tab as $host){
|
||||
list($domain, $tdl) = split(".", $host, 2); // le 2 permet de s'arreter après le 1er point ce qui permet d'avoir des extenssion du type .com.fr
|
||||
$output[$host] = simpleWhois($domain, $tdl);
|
||||
}
|
||||
}
|
||||
// Affichage "brut" des données traitées
|
||||
if($output){
|
||||
print_r($output);
|
||||
}
|
||||
?>
|
192
batch/cliSirenage.php
Normal file
192
batch/cliSirenage.php
Normal file
@ -0,0 +1,192 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Sirenage automatique des annonces Bodacc pas encore sirenées.
|
||||
|
||||
Options :
|
||||
-s Sirenage semi-automatique (Ligne de prompt pour les entreprises non sirenées)
|
||||
-p Sirenage de toutes les annonces sans propositions (en vu du traitement manuel)
|
||||
-a Re-sirenage de toutes les annonces Bodacc non sirenées !
|
||||
-i:XXX Reprise à partir du numéro d'annonce XXX
|
||||
";
|
||||
$semiManuel=$sansPropo=$toutes=$index=false;
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']==1) $semiManuel=false; // Fonctionnement normal du script, càd : on sirene que en auto
|
||||
else {
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 's':
|
||||
$semiManuel=true;
|
||||
break;
|
||||
case 'p':
|
||||
$sansPropo=true;
|
||||
break;
|
||||
case 'a':
|
||||
$toutes=true;
|
||||
break;
|
||||
case 'i':
|
||||
$index=trim(substr($argv[$i],3));
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT du programme de SIRENAGE des fichiers CLIENTS...".EOL;
|
||||
|
||||
$iDb=new WDB('tmp');
|
||||
$iInsee=new MInsee();
|
||||
$listeNonSirene=$iDb->select('mederic', 'ID_CLIENT, REF, RAISON_SOCIALE, ENSEIGNE2, SIGLE2, ADRESSE, CP, VILLE', 'SIREN=0', true);
|
||||
echo date('Y/m/d - H:i:s') ." - Nombre d'entreprises à traiter : ".count($listeNonSirene). EOL;
|
||||
foreach ($listeNonSirene as $k=>$entrep) {
|
||||
$siege='';$actif='';$deb=0;$nbRep=20;$maxRep=20;$pertinence=false;
|
||||
$avecSiren=true;
|
||||
|
||||
$tabEtabs=@$iInsee->rechercheEtab($entrep['RAISON_SOCIALE'], $entrep['ADRESSE'], $entrep['CP'], $entrep['VILLE'], $siege, $actif, $deb, $nbRep, $maxRep, $pertinence, $avecSiren);
|
||||
if (@$tabEtabs[nbReponses]==0 && $entrep['ENSEIGNE2']<>'') {
|
||||
$tabEtabs=@$iInsee->rechercheEtab($entrep['ENSEIGNE2'], $entrep['ADRESSE'], $entrep['CP'], $entrep['VILLE'], $siege, $actif, $deb, $nbRep, $maxRep, $pertinence, $avecSiren);
|
||||
} elseif (@$tabEtabs[nbReponses]==0 && $entrep['SIGLE2']<>'') {
|
||||
$tabEtabs=@$iInsee->rechercheEtab($entrep['SIGLE2'], $entrep['ADRESSE'], $entrep['CP'], $entrep['VILLE'], $siege, $actif, $deb, $nbRep, $maxRep, $pertinence, $avecSiren);
|
||||
}
|
||||
//print_r($tabEtabs);
|
||||
//die();
|
||||
$tabSiren=array();
|
||||
//echo "RECHERCHE DE : ". $entrep['RAISON_SOCIALE']. $entrep['ENSEIGNE2']. $entrep['SIGLE2']. $entrep['ADRESSE']. $entrep['CP']. $entrep['VILLE'].' ('.$tabEtabs['nbReponsesTotal']. " réponses)... ";
|
||||
|
||||
foreach ($tabEtabs['reponses'] as $i=>$etab) {
|
||||
$tabSiren[]=$etab['Siren'];
|
||||
/* $siret = $etab['Siret']; // 40847260300039
|
||||
$siege = $etab['Siege']; // 0
|
||||
$nom = $etab['Nom']; // SETTIER JEAN MARC
|
||||
$nom2 = $etab['Nom2']; //
|
||||
$sigle = $etab['Sigle']; //
|
||||
$sigle = $etab['Enseigne'];//
|
||||
$sigle = $etab['Adresse']; // 0059 R DE PATAY
|
||||
$sigle = $etab['CP']; // 45000
|
||||
$sigle = $etab['Ville']; // ORLEANS
|
||||
$sigle = $etab['Tel']; // 00000000
|
||||
$sigle = $etab['Fax']; // 00000000
|
||||
$sigle = $etab['FJ']; // 1500
|
||||
$sigle = $etab['FJLib']; // Profession libérale
|
||||
$siren = $etab['Siren']; // 408472603
|
||||
$nic = $etab['Nic']; // 00039
|
||||
$actif = $etab['Actif']; // 0
|
||||
*/
|
||||
}
|
||||
$tabUnique=array_unique($tabSiren);
|
||||
//echo "RECHERCHE DE : ". $entrep['RAISON_SOCIALE']. $entrep['ENSEIGNE2']. $entrep['SIGLE2']. $entrep['ADRESSE']. $entrep['CP']. $entrep['VILLE'].' ('.$tabEtabs['nbReponsesTotal']. " réponses)... ";
|
||||
if (count($tabUnique)==1) {
|
||||
echo '1;'.$entrep['REF'].';'.$tabUnique[0].';'.$etab['Nom'].';'.$entrep['RAISON_SOCIALE'].';'.$entrep['ENSEIGNE2'].';'.$entrep['SIGLE2'].';'.$entrep['ADRESSE'].';'.$entrep['CP'].';'.$entrep['VILLE'].EOL;
|
||||
} else {
|
||||
echo count($tabUnique).';'.$entrep['REF'].';000000000;;'.$etab['Nom'].';'.$entrep['RAISON_SOCIALE'].';'.$entrep['ENSEIGNE2'].';'.$entrep['SIGLE2'].';'.$entrep['ADRESSE'].';'.$entrep['CP'].';'.$entrep['VILLE'].EOL;
|
||||
}
|
||||
// die();//
|
||||
/* if (count($tabTrouve)==1) {
|
||||
$entrepT=$tabTrouve[0];
|
||||
$siren=substr($entrepT['Siret'],0,9);
|
||||
$nic=substr($entrepT['Siret'],9,5);
|
||||
echo "$siren $nic\n";
|
||||
//print_r($entrepT);die();
|
||||
/*if ($table['db']<>'jo')
|
||||
$iDb->update($table['table'], array($table['champSiren']=>$siren), "id='".$entrep['id']."'", true) or die($iDb->getLastError());
|
||||
else
|
||||
if (trim($siren)<>'') {
|
||||
$tabTmp=$iDb->select('bodacc_detail','count(*)', 'id='. $entrep['id'] ." AND siren=$siren", true);
|
||||
if ($tabTmp[0][0]<>0) { // Cette annonce est déjà ratachée au siren, on supprime donc ce lien inutile référençant le même siren
|
||||
//$iDb->delete('bodacc_detail', 'id='. $entrep['id'] .' AND siren='.$entrep['sir'], true);
|
||||
} else
|
||||
$iDb->update('bodacc_detail', array('siren'=>$siren, $table['champNic']=>$nic, $table['champSirenValide']=>3, $table['champNicValide']=>3), 'id='.$entrep['id'].' AND siren='.$entrep['sir'], true) or die($iDb->getLastError());
|
||||
// On efface l'information de la table A sirener au cas où !
|
||||
$iDb->delete('bodacc_sirenage', 'idAnn='.$entrep['id'].' AND siren='.$entrep['sir']) or die($iDb->getLastError());
|
||||
}
|
||||
} elseif (count($tabTrouve)==0) {
|
||||
echo " Pas de réponse !\n";
|
||||
$tabInsert=array( 'idAnn'=>$entrep['id'],
|
||||
'siren'=>$entrep['sir']);
|
||||
if (!$iDb->insert('bodacc_sirenage', $tabInsert))
|
||||
$iDb->update('bodacc_sirenage', array('siretProposes'=>''), 'idAnn='.$entrep['id'].' AND siren='.$entrep['sir']) or die($iDb->getLastError());
|
||||
} else { // Plusieurs siren possibles
|
||||
echo "\n";
|
||||
$siren1=substr($tabTrouve[0]['Siret'],0,9);
|
||||
$nic1=substr($tabTrouve[0]['Siret'],9,5);
|
||||
$sirenDiff=$sirenNomIdem=$sirenAdrIdem=false;
|
||||
$tabSiren=array(0=>0);
|
||||
$tabSiret=array();
|
||||
foreach ($tabTrouve as $j=>$entrepT) {
|
||||
if($j==0) echo "PROBABLES : \n";
|
||||
$siren=substr($entrepT['Siret'],0,9);
|
||||
$nic=substr($entrepT['Siret'],9,5);
|
||||
$tabSiren[]=$siren;
|
||||
$nomT=strtr($entrep['RS'], '/(),-',' ');
|
||||
$adresseT=trim(strtoupper(preg_replace("/[0-9]{1,4}(.*)( R | AV | RUE | AVENUE | BD | BOULEVARD )/i",'',strtr($entrepT['Adresse'], '/(),-',' '))));
|
||||
if (levenshtein($raisonSociale,$nomT)>2) $sirenNomIdem=$siren;
|
||||
if ($siren<>$siren1) $sirenDiff=true;
|
||||
if (levenshtein($adresse,$adresseT)<2) $sirenAdrIdem=$siren;
|
||||
$num=$j+1;
|
||||
echo "$num. $siren $nic, ". $entrepT['Nom'].', '.$entrepT['Nom2'].', '.$entrepT['Enseigne'].', '.$entrepT['Adresse'].', '.$entrepT['CP'].', '.$entrepT['Ville']."\n";
|
||||
$tabSiret[]=$entrepT['Siret'].'-'.$entrepT['Pertinence'];
|
||||
}
|
||||
|
||||
if ($sirenDiff==false) {
|
||||
// Tous les SIREN sont identiques, l'entreprise ttouvée est la bonne !
|
||||
echo "$num. Siren trouvé = $siren (tous les Sirens sont identiques) !\n";
|
||||
$iDb->update('bodacc_detail', array('siren'=>$siren, $table['champSirenValide']=>4, $table['champNicValide']=>0), 'id='.$entrep['id'].' AND siren='.$entrep['sir'], true) or die($iDb->getLastError());
|
||||
// On efface l'information de la table A sirener au cas où !
|
||||
$iDb->delete('bodacc_sirenage', 'idAnn='.$entrep['id'].' AND siren='.$entrep['sir']) or die($iDb->getLastError());
|
||||
} else {
|
||||
/** On insère en base toutes les multipropositions pour le sirenage manuel
|
||||
$tabInsert=array( 'idAnn'=>$entrep['id'],
|
||||
'siren'=>$entrep['sir'],
|
||||
'siretProposes'=>implode(';',$tabSiret));
|
||||
if ($iDb->insert('bodacc_sirenage', $tabInsert))
|
||||
$iDb->update('bodacc_sirenage', array('siretProposes'=>implode(';',$tabSiret)), 'idAnn='.$entrep['id'].' AND siren='.$entrep['sir']) or die($iDb->getLastError());
|
||||
}
|
||||
//, 'id='.$entrep['id'].' AND '. $table['champSiren'] .'='.$entrep['sir'], true) or die(mysql_error());
|
||||
|
||||
/*elseif ($sirenNomIdem!=false) {
|
||||
echo "$num. Siren trouvé = $sirenNomIdem (raisons sociales identiques) !\n";
|
||||
if ($table['db']<>'jo')
|
||||
$iDb->update($table['table'], array($table['champSiren']=>$sirenNomIdem), "id='".$entrep['id']."'", true) or die(mysql_error());
|
||||
else
|
||||
$iDb->update($table['table'], array($table['champSiren']=>$sirenNomIdem, $table['champSirenValide']=>5), 'id='.$entrep['id'], true) or die(mysql_error());
|
||||
} elseif ($sirenAdrIdem!=false) {
|
||||
echo "$num. Siren trouvé = $sirenNomIdem (adresses identiques) !\n";
|
||||
if ($table['db']<>'jo')
|
||||
$iDb->update($table['table'], array($table['champSiren']=>$sirenAdrIdem), "id='".$entrep['id']."'", true) or die(mysql_error());
|
||||
else
|
||||
$iDb->update($table['table'], array($table['champSiren']=>$sirenAdrIdem, $table['champSirenValide']=>6), 'id='.$entrep['id'], true) or die(mysql_error());
|
||||
} else
|
||||
{ //if ($semiManuel==true);
|
||||
$saisie='';
|
||||
while($semiManuel==true && $saisie=='') {
|
||||
echo "Veuillez saisir le numéro qui identifie la bonne entreprise (0 si pas de réponse) : ";
|
||||
$saisie = trim(fgets(STDIN));
|
||||
if ($saisie==0) break;
|
||||
elseif ($saisie>0 && $saisie<=$j+1) {
|
||||
$sir=$tabSiren[$saisie];
|
||||
if ($table['db']<>'jo')
|
||||
$iDb->update($table['table'], array($table['champSiren']=>$sir), "id='".$entrep['id']."'", true) or die(mysql_error());
|
||||
else
|
||||
$iDb->update($table['table'], array($table['champSiren']=>$sir, $table['champSirenValide']=>2),
|
||||
'id='.$entrep['id'], true) or die(mysql_error());
|
||||
break;
|
||||
}
|
||||
else $saisie='';
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - FIN du programme de SIRENAGE.".EOL;
|
||||
die();
|
||||
?>
|
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
170
batch/consolideBodacc.php
Normal file
170
batch/consolideBodacc.php
Normal file
@ -0,0 +1,170 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Programme automatique de consolidation des annonces Bodacc.
|
||||
|
||||
Options :
|
||||
-f Récupération des informations dirigeants en IG/FP*
|
||||
-i:XXX Reprendre à la ligne XXX
|
||||
|
||||
(*) Options non encore opérationnelles !
|
||||
";
|
||||
$semiManuel=$sansPropo=$toutes=$index=false;
|
||||
|
||||
$mInsee=new MInsee();
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']==1) $semiManuel=false; // Fonctionnement normal du script, càd : on sirene que en auto
|
||||
else {
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 's':
|
||||
$semiManuel=true;
|
||||
break;
|
||||
case 'p':
|
||||
$sansPropo=true;
|
||||
break;
|
||||
case 'a':
|
||||
$toutes=true;
|
||||
break;
|
||||
case 'i':
|
||||
$index=trim(substr($argv[$i],3));
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT du programme de post traitement des annonces BODACC...".EOL;
|
||||
$iDb=new WDB('jo');
|
||||
$iDbInsee=new WDB('insee');
|
||||
/*
|
||||
$nbPP=$iDbInsee->select('identite', 'SIREN, NOM, CIVILITE, DIR_IDEN, DIR_DATEN, DIR_LIEUN', "(CJ BETWEEN 10 AND 19 OR CJ BETWEEN 1000 AND 1999) AND DIR_IDEN <> '' AND (DIR_DATEN<>0 OR DIR_LIEUN <> '') GROUP BY SIREN",false,MYSQL_ASSOC,true);
|
||||
$dateInsert=date('YmdHis');
|
||||
while ($tab=$iDbInsee->fetch(MYSQL_ASSOC)) {
|
||||
$siren=$tab['SIREN']*1;
|
||||
$nom=$prenom=$naissNom='';
|
||||
if ($tab['CIVILITE']==1) $civ='M';
|
||||
elseif ($tab['CIVILITE']==2) { $civ='MME'; $naissNom=strtr($tab['NOM'],'/*',' '); }
|
||||
else $civ='';
|
||||
|
||||
$tabId=explode(' ', $tab['DIR_IDEN']);
|
||||
foreach ($tabId as $mot) {
|
||||
if (strtoupper($mot)==$mot) {
|
||||
$nom.=' '.$mot;
|
||||
$naissNom=str_ireplace($mot,'',$naissNom);
|
||||
}
|
||||
else {
|
||||
$prenom.=' '.$mot;
|
||||
$naissNom=str_ireplace($mot,'',$naissNom);
|
||||
}
|
||||
}
|
||||
$nom=trim($nom);
|
||||
$prenom=trim($prenom);
|
||||
$naissNom=strtoupper(trim($naissNom));
|
||||
$naissDate=$tab['DIR_DATEN'];
|
||||
$naissLieu=trim($tab['DIR_LIEUN']);
|
||||
|
||||
echo $siren.' '.trim($tab['DIR_IDEN'])."\t:\t$civ Nom='$nom', Prenom='$prenom', Usage='$naissNom' né le $naissDate à $naissLieu\t";
|
||||
//echo "?";
|
||||
//$saisie = trim(strtoupper(fgets(STDIN)));
|
||||
|
||||
//$civ='M', 'MME', 'MLLE')
|
||||
$tabUpdate=array( 'siren'=>$siren,
|
||||
'raisonSociale'=>strtr($tab['NOM'],'/*',' '),
|
||||
'civilite'=>$civ,
|
||||
'nom'=>$nom,
|
||||
'prenom'=>$prenom,
|
||||
'naissance_nom'=>$naissNom,
|
||||
'naissance_date'=>$naissDate,
|
||||
'naissance_lieu'=>$naissLieu,
|
||||
'fonction_code'=>1050,
|
||||
'fonction_lib'=>'Personne physique',
|
||||
'actif'=>1,
|
||||
'dateInsert'=>$dateInsert);
|
||||
if (!$iDb->insert('rncs_dirigeants', $tabUpdate))
|
||||
echo "ERREUR !!!\n";
|
||||
else
|
||||
echo "OK\n";
|
||||
//die();
|
||||
}
|
||||
*/
|
||||
|
||||
$client = new SoapClient(null, array( 'trace' => 1,
|
||||
'soap_version' => SOAP_1_1,
|
||||
'location' => 'http://localhost/ws/',
|
||||
'uri' => 'http://localhost/',
|
||||
'login' => 'ylenaour',
|
||||
'password' => 'bzh4231*'));
|
||||
|
||||
// Faire tourner en auto ce programme pour l'ensemble des annonces Bodacc à compter du 9 juin 2008
|
||||
|
||||
//$nbBod=$iDb->select('bodacc_detail d LEFT JOIN rncs_dirigeants r ON d.siren=r.siren', 'd.siren, Bodacc_Date_Parution, typeEven, d.raisonSociale, dateJugement',"d.siren>1000 AND
|
||||
/*siren between 490000001 AND 500000000 AND */
|
||||
//r.siren IS NULL AND
|
||||
//Bodacc_Date_Parution>='2008-10-08' AND (
|
||||
// typeEven LIKE '%1500%' OR typeEven LIKE '%1501%' OR typeEven LIKE '%1502%' OR typeEven LIKE '%1503%' OR /* CIA */
|
||||
// typeEven LIKE '%1600%' OR typeEven LIKE '%1601%' OR typeEven LIKE '%1610%' OR typeEven LIKE '%1611%' OR /* IG FP */
|
||||
// typeEven LIKE '%2202%' OR typeEven LIKE '%2203%' OR typeEven LIKE '%2204%' or typeEven LIKE '%2210%' /* DISSOLUTION */
|
||||
// )
|
||||
//GROUP BY d.siren
|
||||
//ORDER BY Bodacc_Date_Parution ASC
|
||||
//", true, MYSQL_ASSOC, true);
|
||||
|
||||
$nbBod=$iDb->select('rncs_requetes', 'siren', "siren>1000 AND type='QINF' AND presta=12001 AND strXml NOT LIKE '%Erreur base%'", true, MYSQL_ASSOC, true);
|
||||
|
||||
// 1503 : Cloture de la procedure pour insuffisance d'actif
|
||||
$rec=0;
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbBod dirigeants en IG/FP à mettre à jour...".EOL;
|
||||
while ($tab=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
/*$tab2=file('/mnt/samba/partage/production/igfp.csv');
|
||||
/*shuffle($tab2);
|
||||
file_put_contents('/mnt/samba/partage/production/igfp2.csv',implode('', $tab2),FILE_APPEND);*
|
||||
$nbBod=count($tab2);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbBod dirigeants en IG/FP à mettre à jour...".EOL;
|
||||
foreach ($tab2 as $tab) {*/
|
||||
|
||||
$rec++;
|
||||
$siren=$tab['siren']*1;
|
||||
/*if ($siren<>417512753) continue;
|
||||
else die('Rec='.$rec."\n");*/
|
||||
if ($rec<=$index) continue;
|
||||
|
||||
$even=@$tab['typeEven'];
|
||||
$rs=@$tab['raisonSociale'];
|
||||
$dateJuge=@$tab['dateJugement'];
|
||||
|
||||
//print_r($tab);
|
||||
$tdeb=microtime(true);
|
||||
$O = $client->getDirigeants($siren, false);
|
||||
$tfin=microtime(true);
|
||||
$duree=$tfin-$tdeb;
|
||||
$dirs=$O['result'];
|
||||
$nbDirs=count($dirs);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - $rec : Siren $siren, $rs, $even le $dateJuge : $nbDirs dirigeants ($duree)".EOL;
|
||||
if ($nbDirs>0) print_r($dirs);
|
||||
if ($duree>1){
|
||||
echo '...'.EOL;
|
||||
//randsleep(7, 21);//,59);
|
||||
//randsleep(21,59);
|
||||
//randsleep(31,190);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - FIN du programme de post traitement des annonces BODACC.".EOL;
|
||||
die();
|
||||
|
||||
?>
|
163
batch/consolideDiri.php
Normal file
163
batch/consolideDiri.php
Normal file
@ -0,0 +1,163 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
/**
|
||||
** @todo
|
||||
**
|
||||
**/
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - DEBUT de la consolidation de la base Etablissements".EOL;
|
||||
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMRncs.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
|
||||
$all=true;
|
||||
$joAsso=$joBodacc=$baseInsee=$baseInpi=$reset=$pageRankOnly=$iGreffe=false;
|
||||
// Compteurs
|
||||
$nbInsertAsso=$nbInsertRncs1=$nbInsertRncs2=$nbInsertBod=$nbConjoints=$nbInsertBodNS=$nbInsertGreffes=$nbInsertMarques=$nbUpdateAsso=0;
|
||||
|
||||
$table='etablissements_tmp';
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Consolide la table des dirigeants d'entreprises à partir des dernières mises à jours des différentes sources.
|
||||
Sans aucune options, consolide toutes les sources.
|
||||
|
||||
Options :
|
||||
-n Consolider les infos RNCS (Inpi)
|
||||
-b Consolider le Bodacc
|
||||
-h Consolider le Bodacc en historique
|
||||
";
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']>1)
|
||||
{
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'b':
|
||||
$all=false;
|
||||
$baseBodacc=true;
|
||||
break;
|
||||
case 'n':
|
||||
$all=false;
|
||||
$baseInpi=true;
|
||||
break;
|
||||
case 'h':
|
||||
$all=false;
|
||||
$baseBodaccHisto=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists(REP_TEMP.'stockInsee.lock')) {
|
||||
$message='Stock en cours de chargement "'.file_get_contents(REP_TEMP.'stockInsee.lock').'"';
|
||||
sendMail('webmaster@scores-decisions.com', 'ylenaour@scores-decisions.com', 'Consolidation des dirigeants non traitée car trimestriel en cours', $message);
|
||||
die();
|
||||
}
|
||||
|
||||
/** Par défaut, on consolide toutes les sources **/
|
||||
if ($all) {
|
||||
$baseInpi=$baseBodacc=$baseBodaccHisto=true;
|
||||
}
|
||||
|
||||
$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());
|
||||
|
||||
if (!$iDb->query("CREATE TABLE jo.dirigeants_tmp (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`source` tinyint(3) unsigned zerofill NOT NULL,
|
||||
`source_id` bigint(20) unsigned NOT NULL,
|
||||
`siren` int(9) unsigned zerofill NOT NULL,
|
||||
`adr_dep` smallint(3) unsigned NOT NULL,
|
||||
`typeDir` enum('PP','PM') NOT NULL,
|
||||
`dirSiren` int(9) unsigned zerofill NOT NULL,
|
||||
`dirRS` varchar( 60 ) NOT NULL,
|
||||
`civilite` enum('M','MME','MLLE') DEFAULT NULL,
|
||||
`nom` char(60) NOT NULL,
|
||||
`prenom` char(40) NOT NULL,
|
||||
`naissance_nom` char(60) NOT NULL,
|
||||
`naissance_date` date NOT NULL,
|
||||
`naissance_lieu` char(35) NOT NULL,
|
||||
`fonction_code` smallint(4) unsigned zerofill NOT NULL,
|
||||
`actif` tinyint(1) unsigned NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `source` (`source`,`source_id`),
|
||||
UNIQUE KEY `idxUnique` (`siren`,`typeDir`,`dirSiren`,`dirRS`,`nom`,`prenom`,`naissance_nom`,`naissance_date`,`naissance_lieu`,`fonction_code`),
|
||||
KEY `idxSiren` (`siren`),
|
||||
KEY `idxDirSiren` (`dirSiren`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Index des Dirigeants';", true))
|
||||
die($iDb->getLastError());
|
||||
|
||||
$strMailInfo=date ('Y/m/d - H:i:s')." - Consolidation des dirigeants.".EOL;
|
||||
if ($baseInpi) {
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour de la nouvelle table dirigeants depuis le RNCS.".EOL;
|
||||
|
||||
$retTmp=$iDb->select('jo.rncs_dirigeants', 'COUNT(*) AS nbEtab', '1', false,MYSQL_ASSOC);
|
||||
$nbEtab=$retTmp[0]['nbEtab'];
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants à consolider depuis le RNCS...".EOL;
|
||||
|
||||
if(!$iDb->query("INSERT IGNORE INTO jo.dirigeants_tmp SELECT 0 AS id, 5 AS source, id AS source_id, siren, adr_dep,
|
||||
typeDir, dirSiren, dirRS, civilite, nom, prenom, naissance_nom, naissance_date, naissance_lieu,
|
||||
fonction_code, actif%10 as actif
|
||||
FROM jo.rncs_dirigeants"))
|
||||
die($iDb->getLastError());
|
||||
|
||||
$retTmp=$iDb->select('jo.dirigeants_tmp', 'COUNT(*) AS nbEtab', '1', false,MYSQL_ASSOC);
|
||||
$nbEtab=$retTmp[0]['nbEtab'];
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants RNCS consolidés.".EOL;
|
||||
$strMailInfo.=date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants RNCS consolidés.".EOL;
|
||||
}
|
||||
|
||||
if ($baseBodacc) {
|
||||
$retTmp=$iDb->select('jo.bodacc_dirigeants', 'COUNT(*) AS nbEtab', '1', false,MYSQL_ASSOC);
|
||||
$nbEtab=$retTmp[0]['nbEtab'];
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants à consolider depuis le Bodacc...".EOL;
|
||||
|
||||
if(!$iDb->query("INSERT IGNORE INTO dirigeants_tmp
|
||||
SELECT NULL AS id, 1 AS source, id AS source_id, siren, NULL AS dep, IF(prenom<>'','PP','PM') AS typeDir, 0 AS dirSiren, rs AS dirRS, NULL AS civilite, nom, prenom, nomUsage AS naissance_nom, 0 AS naissance_date, NULL AS naissance_lieu, fonction AS fonction_code, IF(depart=1,0,1) AS actif
|
||||
FROM bodacc_dirigeants;"))
|
||||
die($iDb->getLastError());
|
||||
|
||||
$retTmp=$iDb->select('jo.dirigeants_tmp', 'COUNT(*) AS nbEtab', 'source=1', false,MYSQL_ASSOC);
|
||||
$nbEtab=$retTmp[0]['nbEtab'];
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants BODACC consolidés.".EOL;
|
||||
$strMailInfo.=date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants BODACC consolidés.".EOL;
|
||||
}
|
||||
|
||||
if ($baseBodaccHisto) {
|
||||
$retTmp=$iDb->select('jo.bodacc_dirigeants_histo', 'COUNT(*) AS nbEtab', '1', false,MYSQL_ASSOC);
|
||||
$nbEtab=$retTmp[0]['nbEtab'];
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants à consolider depuis le Bodacc Histo...".EOL;
|
||||
|
||||
if(!$iDb->query("INSERT IGNORE INTO dirigeants_tmp
|
||||
SELECT NULL AS id, 6 AS source, id AS source_id, siren, NULL AS dep, IF(prenom<>'','PP','PM') AS typeDir, 0 AS dirSiren, rs AS dirRS, NULL AS civilite, nom, prenom, nomUsage AS naissance_nom, 0 AS naissance_date, NULL AS naissance_lieu, fonction AS fonction_code, IF(depart=1,0,1) AS actif
|
||||
FROM bodacc_dirigeants_histo;"))
|
||||
die($iDb->getLastError());
|
||||
|
||||
$retTmp=$iDb->select('jo.dirigeants_tmp', 'COUNT(*) AS nbEtab', 'source=6', false,MYSQL_ASSOC);
|
||||
$nbEtab=$retTmp[0]['nbEtab'];
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants BODACC Histo consolidés.".EOL;
|
||||
$strMailInfo.=date ('Y/m/d - H:i:s')." - Il y a $nbEtab dirigeants BODACC Histo consolidés.".EOL;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
sendMail('production@scores-decisions.com', 'support@scores-decisions.com', 'Consolidation des dirigeants', $strMailInfo);
|
||||
die();
|
||||
?>
|
1217
batch/consolideEtab.php
Normal file
1217
batch/consolideEtab.php
Normal file
File diff suppressed because it is too large
Load Diff
6
batch/consolideEtab.sh
Normal file
6
batch/consolideEtab.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#VALEUR=$(/var/www/batch/consolideEtab.php)
|
||||
#echo ${VALEUR}
|
||||
#echo $?
|
||||
/var/www/batch/consolideEtab.php
|
||||
searchd
|
||||
indexer --all --rotate
|
775
batch/consolideEtab2.php
Normal file
775
batch/consolideEtab2.php
Normal file
@ -0,0 +1,775 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
/**
|
||||
** @todo
|
||||
**
|
||||
**/
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - DEBUT de la consolidation de la base Etablissements".EOL;
|
||||
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
|
||||
$all=true;
|
||||
$joAsso=$joBodacc=$baseInsee=$reset=$pageRankOnly=$iGreffe=false;
|
||||
// Compteurs
|
||||
$nbInsertAsso=$nbInsertBod=$nbInsertBodNS=$nbInsertGreffes=$nbInsertMarques=$nbUpdateAsso=0;
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Consolide la table des établissement et des entreprises à partir des dernières mises à jours des différentes sources.
|
||||
Sans aucune options, consolide toutes les sources dernièrement mises à jour.
|
||||
|
||||
Options :
|
||||
-a Consolider seulement le JO association.
|
||||
-b Consolider seulement le Bodacc
|
||||
-i Consolider les infos INSEE
|
||||
-g Consolider les entreprises en provenance des Greffes
|
||||
-m Mettre à jour les données sur les marques
|
||||
-r Reconstruire complètement la base
|
||||
-p traiter uniquement la construction du 'page rank'
|
||||
";
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']>1)
|
||||
{
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'a':
|
||||
$all=false;
|
||||
$joAsso=true;
|
||||
break;
|
||||
case 'g':
|
||||
$all=false;
|
||||
$iGreffe=true;
|
||||
break;
|
||||
case 'm':
|
||||
$all=false;
|
||||
$iMarques=true;
|
||||
break;
|
||||
case 'b':
|
||||
$all=false;
|
||||
$joBodacc=true;
|
||||
break;
|
||||
case 'i':
|
||||
$all=false;
|
||||
$baseInsee=true;
|
||||
break;
|
||||
case 'r':
|
||||
$reset=true;
|
||||
break;
|
||||
case 'p':
|
||||
$pageRankOnly=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Par défaut, on consolide toutes les sources **/
|
||||
if ($all) {
|
||||
$joAsso=$joBodacc=$baseInsee=$iGreffe=$iMarques=true;
|
||||
}
|
||||
|
||||
$iDb=new WDB('jo');
|
||||
|
||||
if (!$pageRankOnly) {
|
||||
|
||||
$iDb2=new WDB('jo');
|
||||
$iDbInsee=new WDB('insee');
|
||||
|
||||
$iInsee=new MInsee();
|
||||
//if (0==1) {
|
||||
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Création de la nouvelle table établissements.".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` 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` smallint(3) unsigned zerofill NOT NULL,
|
||||
`tel` bigint(8) unsigned zerofill NOT NULL,
|
||||
`fax` bigint(8) unsigned zerofill NOT NULL,
|
||||
`cj` smallint(4) unsigned zerofill NOT NULL,
|
||||
`ape_etab` char(5) NOT NULL,
|
||||
`ape_entrep` char(5) NOT NULL,
|
||||
`rang` smallint unsigned zerofill 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 `tel` (`tel`),
|
||||
KEY `fax` (`fax`),
|
||||
KEY `siren` (`siren`,`nic`),
|
||||
KEY `autre_id` (`autre_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;", true))
|
||||
die($iDb->getLastError());
|
||||
|
||||
if ($baseInsee) {
|
||||
/*$dateInsert=date('YmdHis');
|
||||
if (!$reset) {
|
||||
$tabTmp=$iDb->select('etablissements_tmp', 'max(source_id)', 'source=2', true);
|
||||
$last_id=$tabTmp[0][0]*1;
|
||||
} else {
|
||||
$last_id=0;
|
||||
$iDb->query('DELETE FROM etablissements_tmp WHERE source=2', true);
|
||||
}*/
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour de la nouvelle table établissements depuis l'Insee.".EOL;
|
||||
|
||||
$retTmp=$iDb->select('insee.identite', 'COUNT(*) AS nbEtab', '1', false,MYSQL_ASSOC);
|
||||
$nbEtab=$retTmp[0]['nbEtab'];
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbEtab établissements à consolider depuis l'Insee...".EOL;
|
||||
|
||||
$iDb->query("INSERT INTO jo.etablissements_tmp SELECT 0 AS id, '2' AS source, id AS source_id, '' AS triCode, NUMRC AS autre_id, SIREN AS siren, NIC AS nic, ACTIF%10 as actif,
|
||||
SIEGE as siege, NOM as raisonSociale, ENSEIGNE AS enseigne, SIGLE AS sigle, CONCAT(IDENTITE_PRE, ' ',NOM2) 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,
|
||||
TEL as tel, FAX as fax, CJ as cj, APE_ETAB as ape_etab, APE_ENT as apen_entrep, 0 as rank, DATE_MAJ as dateInsert,
|
||||
0 as dateUpdate FROM insee.identite");
|
||||
|
||||
$retTmp=$iDb->select('jo.etablissements_tmp', 'COUNT(*) AS nbEtab', '1', false,MYSQL_ASSOC);
|
||||
$nbEtab=$retTmp[0]['nbEtab'];
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbEtab établissements Insee consolidés.".EOL;
|
||||
|
||||
/* $hier=date('YmdHis');
|
||||
$nbAsso=$iDbInsee->select('identite', 'id, SIREN, NIC, NUMRC, NOM, NOM2, ENSEIGNE, SIGLE, SIEGE, ADR_NUMVOIE, ADR_BTQ, ADR_TYPVOIE, ADR_LIBVOIE, ADR_COMP, ADR_CP, ADR_LIBCOM, ADR_DEP, TEL, FAX, CJ, APE_ETAB, APE_ENT', "id>$last_id OR dateUpdate>$hier", false, MYSQL_ASSOC, true);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbAsso fiches INSEE à consolider depuis $last_id...".EOL;
|
||||
|
||||
while ($tabSiren=$iDbInsee->fetch(MYSQL_ASSOC)) {
|
||||
$tabEtab=array( 'source'=>2,
|
||||
'source_id'=>$tabSiren['id'],
|
||||
'siren'=>$tabSiren['SIREN'],
|
||||
'nic'=>$tabSiren['NIC'],
|
||||
'triCode'=>'',
|
||||
'autre_id'=>$tabSiren['NUMRC'],
|
||||
'siege'=>$tabSiren['SIEGE'],
|
||||
'raisonSociale'=>$tabSiren['NOM'].$tabSiren['NOM2'],
|
||||
'enseigne'=>$tabSiren['ENSEIGNE'],
|
||||
'sigle'=>$tabSiren['SIGLE'],
|
||||
'adr_num'=>$tabSiren['ADR_NUMVOIE'],
|
||||
'adr_btq'=>$tabSiren['ADR_BTQ'],
|
||||
'adr_typeVoie'=>$tabSiren['ADR_TYPVOIE'],
|
||||
'adr_libVoie'=>$tabSiren['ADR_LIBVOIE'],
|
||||
'adr_comp'=>$tabSiren['ADR_COMP'],
|
||||
'adr_cp'=>$tabSiren['ADR_CP'],
|
||||
'adr_ville'=>$tabSiren['ADR_LIBCOM'],
|
||||
'adr_dep'=>$tabSiren['ADR_DEP'],
|
||||
'tel'=>$tabSiren['TEL'],
|
||||
'fax'=>$tabSiren['FAX'],
|
||||
'cj'=>$tabSiren['CJ'],
|
||||
'ape_etab'=>$tabSiren['APE_ETAB'],
|
||||
'ape_entrep'=>$tabSiren['APE_ENT'],
|
||||
'dateInsert'=>$dateInsert,
|
||||
|
||||
);
|
||||
if (!$iDb->insert('etablissements',$tabEtab))
|
||||
$zerqzfqsd=0;
|
||||
// $iDb->update('etablissements',$tabEtab);
|
||||
}*/
|
||||
}
|
||||
|
||||
if ($joBodacc) {
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour de la nouvelle table établissements depuis le Bodacc.".EOL;
|
||||
|
||||
$dateInsert=date('YmdHis');
|
||||
/* if (!$reset) {
|
||||
$tabTmp=$iDb->select('etablissements', 'max(source_id)', 'source=1', true);
|
||||
$last_id=$tabTmp[0][0]*1;
|
||||
} else*/ $last_id=0;
|
||||
$nbBodS=$iDb->select('bodacc_detail d LEFT JOIN etablissements_tmp e ON d.siren = e.siren', 'd.id, d.typeEven, d.siren, d.nic, d.Bodacc_Date_Parution, d.Tribunal_Code, d.Rubrique_Bodacc, d.Rubrique, d.typeAnnonce, d.RC, d.raisonSociale, d.nomCommercial, d.sigle, d.enseigne, d.FJ, d.Capital, d.CapitalDev, d.adrSiegeNum, d.adrSiegeIndRep, d.adrSiegeTypVoie, d.adrSiegeLibVoie, d.adrSiegeComp1, d.adrSiegeComp2, d.codePostalSiege, d.villeSiege, d.adrNum, d.adrIndRep, d.adrTypVoie, d.adrLibVoie, d.adrComp1, d.adrComp2, d.codePostal, d.ville, d.activite', "d.siren>1000 AND e.siren IS NULL", false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbBodS annonces BODACC dont le siren est absent de l'insee à consolider depuis $last_id...".EOL;
|
||||
|
||||
while ($tabBodacc=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
// Si le siren n'existe pas dans la base etablissement, on l'ajoute
|
||||
$cj=$naf='';
|
||||
$dep=floor($tabBodacc['codePostalSiege']/1000);
|
||||
if ($dep>96) $dep=floor($tabBodacc['codePostalSiege']/100);
|
||||
|
||||
$actif=1;
|
||||
$tabEven=explode(';',$tabBodacc['typeEven']);
|
||||
foreach ($tabEven as $even) {
|
||||
$typeEven=$even*1;
|
||||
if ($typeEven>=6000 && $typeEven<=6700) $actif=0;
|
||||
elseif ($typeEven==2000 || $typeEven==2206) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven==2720) $actif=0;
|
||||
}
|
||||
|
||||
if (trim(@$tabBodacc['adresseSiege'])<>'') {
|
||||
$siege=1;
|
||||
$adr_num=$tabBodacc['adrSiegeNum'];
|
||||
$adr_btq=$tabBodacc['adrSiegeIndRep'];
|
||||
$adr_typeVoie=$tabBodacc['adrSiegeTypVoie'];
|
||||
$adr_libVoie=$tabBodacc['adrSiegeLibVoie'];
|
||||
$adr_comp=trim(strtoupper($tabBodacc['adrSiegeComp1'].' '.$tabBodacc['adrSiegeComp2']));
|
||||
$adr_cp=$tabBodacc['codePostalSiege'];
|
||||
$adr_ville=strtoupper(trim(strtr($tabBodacc['villeSiege'], '{.!}',' ')));
|
||||
} else {
|
||||
$siege=0;
|
||||
$adr_num=$tabBodacc['adrNum'];
|
||||
$adr_btq=$tabBodacc['adrIndRep'];
|
||||
$adr_typeVoie=$tabBodacc['adrTypVoie'];
|
||||
$adr_libVoie=$tabBodacc['adrLibVoie'];
|
||||
$adr_comp=trim(strtoupper($tabBodacc['adrComp1'].' '.$tabBodacc['adrComp2']));
|
||||
$adr_cp=$tabBodacc['codePostal'];
|
||||
$adr_ville=strtoupper(trim(strtr($tabBodacc['ville'], '{.!}',' ')));
|
||||
}
|
||||
|
||||
$matches1=$matches2=array();
|
||||
$raisonSociale=trim($tabBodacc['raisonSociale']);
|
||||
if (preg_match("/ Nom d'usage (.*)/i", $raisonSociale, $matches1))
|
||||
$raisonSociale=trim(preg_replace("/ Nom d'usage .*/i", '', $raisonSociale));
|
||||
if (preg_match("/ Pseudonyme (.*)/i", $raisonSociale, $matches2))
|
||||
$raisonSociale=trim(preg_replace("/ Pseudonyme .*/i", '', $raisonSociale));
|
||||
|
||||
if (preg_match("/^S E L A R L /i", $raisonSociale) || preg_match("/ S E L A R L$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S E L A R L','SELARL',$raisonSociale));
|
||||
elseif (preg_match("/^S A R L /i", $raisonSociale) || preg_match("/ S A R L$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S A R L','SARL',$raisonSociale));
|
||||
elseif (preg_match("/^S A S /i", $raisonSociale) || preg_match("/ S A S$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S A S','SAS',$raisonSociale));
|
||||
elseif (preg_match("/^S C I /i", $raisonSociale) || preg_match("/ S C I$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S A S','SAS',$raisonSociale));
|
||||
elseif (preg_match("/^S C P /i", $raisonSociale) || preg_match("/ S C P$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S C P','SCP',$raisonSociale));
|
||||
elseif (preg_match("/^S N C /i", $raisonSociale) || preg_match("/ S N C$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S N C','SNC',$raisonSociale));
|
||||
elseif (preg_match("/^S A /i", $raisonSociale) || preg_match("/ S A$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S A','SA',$raisonSociale));
|
||||
elseif (preg_match("/^S C E A /i", $raisonSociale) || preg_match("/ S C E A$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S C E A','SCEA',$raisonSociale));
|
||||
elseif (preg_match("/^S C A /i", $raisonSociale) || preg_match("/ S C A$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S C A','SCA',$raisonSociale));
|
||||
elseif (preg_match("/^S C /i", $raisonSociale) || preg_match("/ S C$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S C','SC',$raisonSociale));
|
||||
elseif (preg_match("/^E A R L /i", $raisonSociale) || preg_match("/ E A R L$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('E A R L','EARL',$raisonSociale));
|
||||
elseif (preg_match("/^E A R /i", $raisonSociale) || preg_match("/ E A R$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('E A R','EAR',$raisonSociale));
|
||||
elseif (preg_match("/^E A /i", $raisonSociale) || preg_match("/ E A$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('E A','EA',$raisonSociale));
|
||||
elseif (preg_match("/^E U R L /i", $raisonSociale) || preg_match("/ E U R L$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('E U R L','EURL',$raisonSociale));
|
||||
|
||||
$raisonSociale=trim(preg_replace("/ +/",' ', strtr(' '.strtoupper($raisonSociale).' ', array(' DENOMINATION '=>' ', ' SUCCESSION '=>' '))));
|
||||
|
||||
$identitePre=trim(@$matches1[1].' '.@$matches1[2]);
|
||||
|
||||
$tabEtab=array( 'source'=>1,
|
||||
'source_id'=>$tabBodacc['id'],
|
||||
'siren'=>$tabBodacc['siren'],
|
||||
'nic'=>$tabBodacc['nic'],
|
||||
'triCode'=>$tabBodacc['Tribunal_Code'],
|
||||
'autre_id'=>$tabBodacc['RC'],
|
||||
'siege'=>$siege,
|
||||
'actif'=>$actif,
|
||||
'raisonSociale'=>$raisonSociale,
|
||||
'enseigne'=>$tabBodacc['enseigne'],
|
||||
'sigle'=>$tabBodacc['sigle'],
|
||||
'identite_pre'=>$identitePre,
|
||||
'adr_num'=>$adr_num,
|
||||
'adr_btq'=>$adr_btq,
|
||||
'adr_typeVoie'=>$adr_typeVoie,
|
||||
'adr_libVoie'=>$adr_libVoie,
|
||||
'adr_comp'=>$adr_comp,
|
||||
'adr_cp'=>$adr_cp,
|
||||
'adr_ville'=>$adr_ville,
|
||||
'adr_dep'=>substr($adr_cp,0,2),
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$cj,
|
||||
'ape_etab'=>$naf,
|
||||
'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 BODACC sur le siren ". $tabBodacc['siren'] .' : '. $tabBodacc['raisonSociale'] .' ('. $tabBodacc['id'].') !'.EOL;
|
||||
echo date ('Y/m/d - H:i:s'). mysql_error();
|
||||
} else
|
||||
$nbInsertBod++;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbInsertBod établissements Bodacc consolidés.".EOL;
|
||||
|
||||
$dateInsert=date('YmdHis');
|
||||
/* if (!$reset) {
|
||||
$tabTmp=$iDb->select('etablissements', 'max(source_id)', 'source=1', true);
|
||||
$last_id=$tabTmp[0][0]*1;
|
||||
} else*/ $last_id=0;
|
||||
$nbBodS=$iDb->select('bodacc_detail d', 'd.id, d.typeEven, d.siren, d.sirenValide, d.nic, d.Bodacc_Date_Parution, d.Tribunal_Code, d.Rubrique_Bodacc, d.Rubrique, d.typeAnnonce, d.RC, d.raisonSociale, d.nomCommercial, d.sigle, d.enseigne, d.FJ, d.Capital, d.CapitalDev, d.adrSiegeNum, d.adrSiegeIndRep, d.adrSiegeTypVoie, d.adrSiegeLibVoie, d.adrSiegeComp1, d.adrSiegeComp2, d.codePostalSiege, d.villeSiege, d.adrNum, d.adrIndRep, d.adrTypVoie, d.adrLibVoie, d.adrComp1, d.adrComp2, d.codePostal, d.ville, d.activite', "d.siren<=1000", false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbBodS annonces BODACC non sirenées à consolider depuis $last_id...".EOL;
|
||||
|
||||
while ($tabBodacc=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
//if ($tabBodacc['siren']<>0)
|
||||
// $ret=$iDb2->select('etablissements_tmp', 'count(*)', 'SIREN='.$tabBodacc['siren']);
|
||||
|
||||
// Si le siren n'existe pas dans la base etablissement, on l'ajoute
|
||||
$cj=$naf='';
|
||||
$dep=floor($tabBodacc['codePostalSiege']/1000);
|
||||
if ($dep>96) $dep=floor($tabBodacc['codePostalSiege']/100);
|
||||
|
||||
$actif=1;
|
||||
$tabEven=explode(';',$tabBodacc['typeEven']);
|
||||
foreach ($tabEven as $even) {
|
||||
$typeEven=$even*1;
|
||||
if ($typeEven>=6000 && $typeEven<=6700) $actif=0;
|
||||
elseif ($typeEven==2000 || $typeEven==2206) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven==2720) $actif=0;
|
||||
}
|
||||
|
||||
if (@$tabBodacc['adresseSiege']<>'') {
|
||||
$siege=1;
|
||||
$adr_num=$tabBodacc['adrSiegeNum'];
|
||||
$adr_btq=$tabBodacc['adrSiegeIndRep'];
|
||||
$adr_typeVoie=$tabBodacc['adrSiegeTypVoie'];
|
||||
$adr_libVoie=$tabBodacc['adrSiegeLibVoie'];
|
||||
$adr_comp=trim(strtoupper($tabBodacc['adrSiegeComp1'].' '.$tabBodacc['adrSiegeComp2']));
|
||||
$adr_cp=$tabBodacc['codePostalSiege'];
|
||||
$adr_ville=strtoupper(trim(strtr($tabBodacc['villeSiege'], '{.!}',' ')));
|
||||
} else {
|
||||
$siege=0;
|
||||
$adr_num=$tabBodacc['adrNum'];
|
||||
$adr_btq=$tabBodacc['adrIndRep'];
|
||||
$adr_typeVoie=$tabBodacc['adrTypVoie'];
|
||||
$adr_libVoie=$tabBodacc['adrLibVoie'];
|
||||
$adr_comp=trim(strtoupper($tabBodacc['adrComp1'].' '.$tabBodacc['adrComp2']));
|
||||
$adr_cp=$tabBodacc['codePostal'];
|
||||
$adr_ville=strtoupper(trim(strtr($tabBodacc['ville'], '{.!}',' ')));
|
||||
}
|
||||
/** Suppression des Noms d'usage et Pseudonymes dans la raison sociale **/
|
||||
$matches1=$matches2=array();
|
||||
$raisonSociale=trim($tabBodacc['raisonSociale']);
|
||||
if (preg_match("/ Nom d'usage (.*)/i", $raisonSociale, $matches1))
|
||||
$raisonSociale=trim(preg_replace("/ Nom d'usage .*/i", '', $raisonSociale));
|
||||
if (preg_match("/ Pseudonyme (.*)/i", $raisonSociale, $matches2))
|
||||
$raisonSociale=trim(preg_replace("/ Pseudonyme .*/i", '', $raisonSociale));
|
||||
|
||||
if (preg_match("/^S E L A R L /i", $raisonSociale) || preg_match("/ S E L A R L$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S E L A R L','SELARL',$raisonSociale));
|
||||
elseif (preg_match("/^S A R L /i", $raisonSociale) || preg_match("/ S A R L$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S A R L','SARL',$raisonSociale));
|
||||
elseif (preg_match("/^S A S /i", $raisonSociale) || preg_match("/ S A S$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S A S','SAS',$raisonSociale));
|
||||
elseif (preg_match("/^S C I /i", $raisonSociale) || preg_match("/ S C I$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S A S','SAS',$raisonSociale));
|
||||
elseif (preg_match("/^S C P /i", $raisonSociale) || preg_match("/ S C P$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S C P','SCP',$raisonSociale));
|
||||
elseif (preg_match("/^S N C /i", $raisonSociale) || preg_match("/ S N C$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S N C','SNC',$raisonSociale));
|
||||
elseif (preg_match("/^S A /i", $raisonSociale) || preg_match("/ S A$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S A','SA',$raisonSociale));
|
||||
elseif (preg_match("/^S C E A /i", $raisonSociale) || preg_match("/ S C E A$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S C E A','SCEA',$raisonSociale));
|
||||
elseif (preg_match("/^S C A /i", $raisonSociale) || preg_match("/ S C A$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S C A','SCA',$raisonSociale));
|
||||
elseif (preg_match("/^S C /i", $raisonSociale) || preg_match("/ S C$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('S C','SC',$raisonSociale));
|
||||
elseif (preg_match("/^E A R L /i", $raisonSociale) || preg_match("/ E A R L$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('E A R L','EARL',$raisonSociale));
|
||||
elseif (preg_match("/^E A R /i", $raisonSociale) || preg_match("/ E A R$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('E A R','EAR',$raisonSociale));
|
||||
elseif (preg_match("/^E A /i", $raisonSociale) || preg_match("/ E A$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('E A','EA',$raisonSociale));
|
||||
elseif (preg_match("/^E U R L /i", $raisonSociale) || preg_match("/ E U R L$/i", $raisonSociale))
|
||||
$raisonSociale=trim(str_replace('E U R L','EURL',$raisonSociale));
|
||||
|
||||
$raisonSociale=trim(preg_replace("/ +/",' ', strtr(' '.strtoupper($raisonSociale).' ', array(' DENOMINATION '=>' ', ' SUCCESSION '=>' '))));
|
||||
|
||||
$identitePre=trim(@$matches1[1].' '.@$matches1[2]);
|
||||
|
||||
$tabEtab=array( 'source'=>1,
|
||||
'source_id'=>$tabBodacc['id'],
|
||||
'siren'=>$tabBodacc['siren'],
|
||||
'nic'=>$tabBodacc['nic'],
|
||||
'triCode'=>$tabBodacc['Tribunal_Code'],
|
||||
'autre_id'=>$tabBodacc['RC'],
|
||||
'siege'=>$siege,
|
||||
'actif'=>$actif,
|
||||
'raisonSociale'=>$raisonSociale,
|
||||
'enseigne'=>$tabBodacc['enseigne'],
|
||||
'sigle'=>$tabBodacc['sigle'],
|
||||
'identite_pre'=>$identitePre,
|
||||
'adr_num'=>$adr_num,
|
||||
'adr_btq'=>$adr_btq,
|
||||
'adr_typeVoie'=>$adr_typeVoie,
|
||||
'adr_libVoie'=>$adr_libVoie,
|
||||
'adr_comp'=>$adr_comp,
|
||||
'adr_cp'=>$adr_cp,
|
||||
'adr_ville'=>$adr_ville,
|
||||
'adr_dep'=>substr($adr_cp,0,2),
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$cj,
|
||||
'ape_etab'=>$naf,
|
||||
'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 BODACC sur le siren ". $tabBodacc['siren'] .' : '. $tabBodacc['raisonSociale'] .' ('. $tabBodacc['id'].') !'.EOL;
|
||||
echo date ('Y/m/d - H:i:s'). mysql_error();
|
||||
} else
|
||||
$nbInsertBodNS++;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbInsertBodNS établissements Bodacc NS consolidés.".EOL;
|
||||
|
||||
/*
|
||||
$dateInsert=date('YmdHis');
|
||||
if (!$reset) {
|
||||
$tabTmp=$iDb->select('etablissements', 'max(source_id)', 'source=1 AND siege=0', true);
|
||||
$last_id=$tabTmp[0][0]*1;
|
||||
} else $last_id=0;
|
||||
$nbBodE=$iDb->select('bodacc_detail', 'id, typeEven, siren, nic, Bodacc_Date_Parution, Tribunal_Code, Rubrique_Bodacc, Rubrique, typeAnnonce, RC, raisonSociale, nomCommercial, enseigne, FJ, Capital, CapitalDev, adrNum, adrIndRep, adrTypVoie, adrLibVoie, adrComp1, adrComp2, codePostal, ville, activite', "adresse<>'' AND id>$last_id", false,MYSQL_ASSOC,true);
|
||||
//
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbBodE annonces BODACC établissement à consolider depuis $last_id...".EOL;
|
||||
|
||||
while ($tabBodacc=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
if ($tabBodacc['siren']<>0)
|
||||
$ret=$iDb2->select('etablissements', 'count(*)', 'SIREN='.$tabBodacc['siren']);
|
||||
|
||||
if ($ret[0][0]==0 || $tabBodacc['siren']==0) {
|
||||
// Si le siren n'existe pas dans la base etablissement, on l'ajoute
|
||||
$cj=$naf='';
|
||||
$dep=floor($tabBodacc['codePostal']/1000);
|
||||
if ($dep>96) $dep=floor($tabBodacc['codePostal']/100);
|
||||
|
||||
$actif=1;
|
||||
$tabEven=explode(';',$tabBodacc['typeEven']);
|
||||
foreach ($tabEven as $even) {
|
||||
$typeEven=$even*1;
|
||||
if ($typeEven>=6000 && $typeEven<=6700) $actif=0;
|
||||
elseif ($typeEven==2000 || $typeEven==2206) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven>=2200 && $typeEven<=2204) $actif=0;
|
||||
elseif ($typeEven==2720) $actif=0;
|
||||
}
|
||||
|
||||
$tabEtab=array( 'source'=>1,
|
||||
'source_id'=>$tabBodacc['id'],
|
||||
'siren'=>$tabBodacc['siren'],
|
||||
'nic'=>$tabBodacc['nic'],
|
||||
'triCode'=>$tabBodacc['Tribunal_Code'],
|
||||
'autre_id'=>$tabBodacc['RC'],
|
||||
'siege'=>0,
|
||||
'actif'=>$actif,
|
||||
'raisonSociale'=>$tabBodacc['raisonSociale'],
|
||||
'enseigne'=>$tabBodacc['enseigne'],
|
||||
'sigle'=>'',
|
||||
'adr_num'=>$tabBodacc['adrNum'],
|
||||
'adr_btq'=>$tabBodacc['adrIndRep'],
|
||||
'adr_typeVoie'=>$tabBodacc['adrTypVoie'],
|
||||
'adr_libVoie'=>strtoupper($tabBodacc['adrLibVoie']),
|
||||
'adr_comp'=>trim(strtoupper($tabBodacc['adrComp1'].' '.$tabBodacc['adrComp2'])),
|
||||
'adr_cp'=>$tabBodacc['codePostal'],
|
||||
'adr_dep'=>$dep,
|
||||
'adr_ville'=>strtoupper(trim(strtr($tabBodacc['ville'], '{.!}',' '))),
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$cj,
|
||||
'ape_etab'=>$naf,
|
||||
'dateInsert'=>$dateInsert,
|
||||
);
|
||||
$iDb->insert('etablissements',$tabEtab);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
if ($joAsso) {
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour de la nouvelle table établissements depuis le JO Association.".EOL;
|
||||
$dateInsert=date('YmdHis');
|
||||
/* if (!$reset) {
|
||||
$tabTmp=$iDb->select('etablissements', 'max(source_id)', 'source=3', true);
|
||||
$last_id=$tabTmp[0][0]*1;
|
||||
} else*/ $last_id=0;
|
||||
$nbAsso=$iDb->select('asso', 'id, Assoc_Nom, siren, nic, Waldec, Activite, Type_Annonce, Date_Parution, Departement, Sous_Prefecture, Assoc_Adresse, Assoc_NAdresse, Assoc_ANom, Assoc_NNom, Assoc_Date_Declaration2, dateInsert', "id>$last_id AND siren<100", false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbAsso annonces ASSOCIATIONS à consolider depuis $last_id...".EOL;
|
||||
|
||||
while ($tabAsso=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
/*
|
||||
9110 Syndicat de copropriété
|
||||
9210 Association non déclarée
|
||||
9221 Association déclarée "entreprises d'insertion par l'économique"
|
||||
9222 Association intermédiaire
|
||||
9223 Groupement d'employeurs
|
||||
9230 Association déclarée reconnue d'utilité publique
|
||||
9240 Congrégation
|
||||
*/
|
||||
/** Initialisation des valeurs par défaut
|
||||
**/
|
||||
$naf='';
|
||||
$actif=1;
|
||||
$cj=9220; // Association déclarée
|
||||
|
||||
if (preg_match('/ASL/i', $tabAsso['Type_Annonce']) || preg_match('/syndicale/i', $tabAsso['Type_Annonce'])) {
|
||||
$cj=9150; // ASL
|
||||
$naf='8110Z'; // Activités combinées de soutien lié aux bâtiments
|
||||
}
|
||||
elseif (preg_match('/Fondation/i', $tabAsso['Type_Annonce']))
|
||||
$cj=9300; // FONDATION
|
||||
elseif ($tabAsso['Departement']==57 || $tabAsso['Departement']==67 || $tabAsso['Departement']==68)
|
||||
$cj=9260; // Association de droit local
|
||||
|
||||
if (preg_match('/cr(é|e)ation/i', $tabAsso['Type_Annonce']) && preg_match('/Annulation/i', $tabAsso['Type_Annonce']))
|
||||
$actif=0;
|
||||
elseif (preg_match('/Dissolution/i', $tabAsso['Type_Annonce']) && !preg_match('/Annulation/i', $tabAsso['Type_Annonce']))
|
||||
$actif=0;
|
||||
|
||||
if ($naf=='') {
|
||||
if (preg_match('/sport/i', $tabAsso['Activite'])) // 0015
|
||||
$naf='9319Z';//'926C'; // Autres activités sportives
|
||||
elseif (preg_match('/(culte|religieu)/i', $tabAsso['Activite'])) // 0004
|
||||
$naf='9491Z';//913A'; // Organisations religieuses
|
||||
elseif (preg_match('/communication/i', $tabAsso['Activite'])) // 0003
|
||||
$naf='6399Z'; // Autres services d'information n.c.a.
|
||||
elseif (preg_match('/Politique/i', $tabAsso['Activite'])) // 0012
|
||||
$naf='9492Z'; // Activités des organisations politiques
|
||||
elseif (preg_match('/(Enseignement|Education|formation)/i', $tabAsso['Activite'])) // 0008
|
||||
$naf='8559B';
|
||||
elseif (preg_match('/(Social|Humanitaire)/i', $tabAsso['Activite']) ) // 0014
|
||||
$naf='8899B';//853K'; // Autres formes d'action sociale
|
||||
elseif (preg_match('/(Recherche|Technique)/i', $tabAsso['Activite'])) // 0010
|
||||
$naf='7219Z'; // Recherche-développement en autres sciences physiques et naturelles
|
||||
elseif (preg_match('/Loisir/i', $tabAsso['Activite'])) // 0005
|
||||
$naf='9329Z'; // Autres activités récréatives et de loisirs
|
||||
elseif (preg_match('/Art/i', $tabAsso['Activite'])) // 0005
|
||||
$naf='9003B'; // Autre création artistique
|
||||
else
|
||||
$naf='9499Z'; // Autres organisations fonctionnant par adhésion volontaire
|
||||
}
|
||||
|
||||
if ($tabAsso['Assoc_NAdresse']<>'')
|
||||
$adr=$iInsee->structureVoie($tabAsso['Assoc_NAdresse']);
|
||||
else
|
||||
$adr=$iInsee->structureVoie($tabAsso['Assoc_Adresse']);
|
||||
$adrComp=strtoupper(@$adr['adrComp0']);
|
||||
if (@$adr['adrComp1']<>'')
|
||||
$adrComp.=' '.strtoupper(@$adr['adrComp1']);
|
||||
|
||||
$raisonSociale=trim($tabAsso['Assoc_Nom']);
|
||||
if ($raisonSociale=='')
|
||||
$raisonSociale=trim($tabAsso['Assoc_ANom']);
|
||||
|
||||
if (preg_match("/^(.*) \((.*)\)$/U", $raisonSociale, $matches)) {
|
||||
$raisonSociale=trim($matches[1]);
|
||||
$sigle=trim(strtr($matches[2],array('.'=>'')));
|
||||
}
|
||||
else
|
||||
$sigle='';
|
||||
|
||||
$tabEtab=array( 'source'=>3,
|
||||
'source_id'=>$tabAsso['id'],
|
||||
'siren'=>$tabAsso['siren'],
|
||||
'nic'=>$tabAsso['nic'],
|
||||
'triCode'=>$tabAsso['Sous_Prefecture'], // Gérer la table des préfecture
|
||||
'autre_id'=>$tabAsso['Waldec'],
|
||||
'siege'=>1,
|
||||
'actif'=>$actif,
|
||||
'raisonSociale'=>$raisonSociale,
|
||||
'enseigne'=>'',
|
||||
'identite_pre'=>$tabAsso['Assoc_ANom'],
|
||||
'sigle'=>$sigle,
|
||||
'adr_num'=>@$adr['num'],
|
||||
'adr_btq'=>@$adr['indRep'],
|
||||
'adr_typeVoie'=>@$adr['typeVoie'],
|
||||
'adr_libVoie'=>strtoupper(@$adr['libVoie']),
|
||||
'adr_comp'=>$adrComp,
|
||||
'adr_cp'=>@$adr['cp'],
|
||||
'adr_ville'=>trim(strtoupper(@$adr['ville'])),
|
||||
'adr_dep'=>$tabAsso['Departement'],
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$cj,
|
||||
'ape_etab'=>$naf,
|
||||
'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++;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbInsertAsso établissements Associations consolidés.".EOL;
|
||||
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour de la nouvelle table établissements depuis le JO Association Sirené (Waldec, etc...)".EOL;
|
||||
$dateInsert=date('YmdHis');
|
||||
$last_id=0;
|
||||
$nbAsso=$iDb->select('asso', 'id, Assoc_Nom, siren, nic, Waldec, Activite, Type_Annonce, Date_Parution, Departement, Sous_Prefecture, Assoc_Adresse, Assoc_NAdresse, Assoc_ANom, Assoc_NNom, Assoc_Date_Declaration2, dateInsert', "id>$last_id AND siren>100", false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbAsso annonces ASSOCIATIONS à mettre à jour depuis $last_id...".EOL;
|
||||
|
||||
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'],
|
||||
);
|
||||
$ret=$iDb->update('etablissements_tmp',$tabEtab, 'siren='.$tabAsso['siren']);
|
||||
if (!$ret || mysql_errno()<>0) {
|
||||
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
|
||||
$nbUpdateAsso++;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbUpdateAsso établissements Associations avec SIREN consolidés.".EOL;
|
||||
}
|
||||
|
||||
|
||||
if ($iGreffe) {
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour de la nouvelle table établissements depuis les Greffes.".EOL;
|
||||
|
||||
$dateInsert=date('YmdHis');
|
||||
$nbBodS=$iDb->select('greffes_identite g LEFT JOIN etablissements_tmp e ON g.siren = e.siren', 'g.id, g.siren, g.nom, g.adresse, g.cp, g.ville, g.enseigne, g.siege, g.fj, g.fjLib, g.naf, g.nafLib, g.numGreffe, g.libGreffe, g.numRC, g.dateCreation, g.dateRadiation, g.dateInsert', "e.siren IS NULL", false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbBodS entreprises en provenance des Greffes dont le siren est absent de l'insee à consolider depuis $last_id...".EOL;
|
||||
|
||||
while ($tabBodacc=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$adr=$iInsee->structureVoie($tabBodacc['adresse']);
|
||||
$adr_cp=@$tabBodacc['cp'];
|
||||
$tabEtab=array( 'source'=>4,
|
||||
'source_id'=>$tabBodacc['id'],
|
||||
'siren'=>$tabBodacc['siren'],
|
||||
'nic'=>0,
|
||||
'triCode'=>$tabBodacc['libGreffe'],//@todo Correspondance Tribunal_Code
|
||||
'autre_id'=>$tabBodacc['numRC'],
|
||||
'siege'=>1,
|
||||
'actif'=>0,
|
||||
'raisonSociale'=>$tabBodacc['nom'],
|
||||
'enseigne'=>$tabBodacc['enseigne'],
|
||||
'sigle'=>'',
|
||||
'identite_pre'=>'',
|
||||
'adr_num'=>@$adr['num'],
|
||||
'adr_btq'=>@$adr['adr_btq'],
|
||||
'adr_typeVoie'=>@$adr['typeVoie'],
|
||||
'adr_libVoie'=>strtoupper(@$adr['libVoie']),
|
||||
'adr_comp'=>'',
|
||||
'adr_cp'=>$adr_cp,
|
||||
'adr_ville'=>strtoupper(@$tabBodacc['ville']),
|
||||
'adr_dep'=>substr($adr_cp,0,2),
|
||||
'tel'=>'',
|
||||
'fax'=>'',
|
||||
'cj'=>$tabBodacc['fj'],
|
||||
'ape_etab'=>$tabBodacc['naf'],
|
||||
'ape_entrep'=>$tabBodacc['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 GREFFES sur le siren ". $tabBodacc['siren'] .' : '. $tabBodacc['raisonSociale'] .' ('. $tabBodacc['id'].') !'.EOL;
|
||||
echo date ('Y/m/d - H:i:s'). mysql_error();
|
||||
} else
|
||||
$nbInsertGreffes++;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbInsertGreffes établissements Greffes consolidés.".EOL;
|
||||
}
|
||||
|
||||
|
||||
if ($iMarques) {
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour des marques.".EOL;
|
||||
|
||||
$nbMarques=$iDb->select('marques', 'Siren, Marques', '1 ORDER BY Siren ASC', false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbMarques marques à mettre à jour...".EOL;
|
||||
$sirenPre=false;
|
||||
$strMarques='';
|
||||
while ($tabMarques=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$siren =$tabMarques['Siren'];
|
||||
$strMarques.=$tabMarques['Marques'];
|
||||
if ($sirenPre<>$siren && $sirenPre<>false) {
|
||||
/** Il faut mettre à jour l'ensemble des marques pour ce siren **/
|
||||
$tabUpdate=array( 'marques'=>$strMarques );
|
||||
$ret=$iDb->update('etablissements_tmp',$tabUpdate, "siren=$siren");
|
||||
if (!$ret) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR ". mysql_errno()." : Insertion des informations MARQUES sur le siren $siren impossible ($strMarques) !".EOL;
|
||||
echo date ('Y/m/d - H:i:s'). mysql_error();
|
||||
} else $nbInsertMarques++;
|
||||
$strMarques='';
|
||||
}
|
||||
$sirenPre=$siren;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbInsertMarques établissements avec Marques consolidés.".EOL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
echo date ('Y/m/d - H:i:s')." - Remise à 0 de tous les ranks de la table etablissements...".EOL;
|
||||
$tab=array( 'rang'=>0 );
|
||||
$iDb->update('etablissements', $tab, 'siren=0');
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Mise à jour du rank de l'entreprise pour les recherches par nom".EOL;
|
||||
$iDbRanks=new WDB('sdv1');
|
||||
$nbRanks=$iDbRanks->select('`logs`', 'siren, count(*) AS `rang`', "page='identite' AND siren<>0 GROUP BY siren ORDER BY `rang` DESC", false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbRanks ranks à mettre à jour...".EOL;
|
||||
while ($tabRank=$iDbRanks->fetch(MYSQL_ASSOC)) {
|
||||
$tab=array( 'rang'=>$tabRank['rang'] );
|
||||
if ($pageRankOnly) $tableEtab='etablissements';
|
||||
else $tableEtab='etablissements_tmp';
|
||||
$iDb->update($tableEtab, $tab, 'siren='.substr($tabRank['siren'],0,9));
|
||||
}
|
||||
|
||||
if (!$pageRankOnly) {
|
||||
echo date ('Y/m/d - H:i:s')." - Mise en place des tables pour l'indexation.".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;");
|
||||
//echo date ('Y/m/d - H:i:s')." - Sauvegarde de l'ancienne table établissements : Debug erreur n°".mysql_errno().' - '.mysql_error().EOL;
|
||||
//$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;
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - FIN de la consolidation de la base Etablissements".EOL;
|
||||
//echo date ('Y/m/d - H:i:s')." - Lancement de la commande : indexer --all --config /usr/local/etc/sphinx.conf --rotate".EOL;
|
||||
/*$nb=@$nbAsso+@$nbBodS+@$nbBodE;
|
||||
if ($nb>0) die(0);
|
||||
else die(1);*/
|
||||
die();
|
||||
?>
|
1191
batch/consolideEtabHebdo.php
Normal file
1191
batch/consolideEtabHebdo.php
Normal file
File diff suppressed because it is too large
Load Diff
122
batch/consolideTelFaxIdentite.php
Normal file
122
batch/consolideTelFaxIdentite.php
Normal file
@ -0,0 +1,122 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Reconsolidation de la table des téléphones/fax
|
||||
|
||||
Options :
|
||||
-a Reconsolidation de toute la base des téléphones/fax
|
||||
";
|
||||
$semiManuel=$sansPropo=$toutes=$index=false;
|
||||
|
||||
$mInsee=new MInsee();
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']==1) $semiManuel=false; // Fonctionnement normal du script, càd : on sirene que en auto
|
||||
else {
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 's':
|
||||
$semiManuel=true;
|
||||
break;
|
||||
case 'p':
|
||||
$sansPropo=true;
|
||||
break;
|
||||
case 'a':
|
||||
$toutes=true;
|
||||
break;
|
||||
case 'i':
|
||||
$index=trim(substr($argv[$i],3));
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT du programme de SIRENAGE des annonces mal sirenés du BODACC...".EOL;
|
||||
|
||||
$pertinence=false;
|
||||
$nbRep=30;
|
||||
$siege=0;
|
||||
|
||||
$tabTables=array(
|
||||
/* array('db'=>'sugarcrm', 'table'=>'accounts', 'champRS'=>'name',
|
||||
'champAdresse'=>'billing_address_street',
|
||||
'champCP'=>'billing_address_postalcode',
|
||||
'champVille'=>'billing_address_city',
|
||||
'champSiren'=>'ticker_symbol',
|
||||
'champSirenValide'=>'(ticker_symbol<30000 OR ticker_symbol IS NULL)AND deleted')*/
|
||||
array('db'=>'jo', 'table'=>'bodacc_detail b LEFT JOIN bodacc_sirenage s ON s.idAnn = b.id AND s.siren = b.siren',
|
||||
'champRS'=>'CONCAT(raisonSociale," ",nomCommercial," ",enseigne)',
|
||||
'champAdresse'=>'adrLibVoie',
|
||||
'champCP'=>'codePostal',
|
||||
'champVille'=>'ville',
|
||||
'champSiren'=>'b.siren',
|
||||
'champNic'=>'nic',
|
||||
'champSirenValide'=>'sirenValide',
|
||||
'champNicValide'=>'nicValide'),
|
||||
/* array('db'=>'sdv1', 'table'=>'sirenage', 'champRS'=>'concat( RAISON_SOCIALE , \' \' , RAISON_SOCIALE2 )',//REF NIC RAISON_SOCIALE2 ADRESSE2 NUM_VOIE ADRESSE3
|
||||
'champAdresse'=>'ADRESSE',
|
||||
'champCP'=>'CP',
|
||||
'champVille'=>'VILLE',
|
||||
'champSiren'=>'SIREN',
|
||||
'champSirenValide'=>'SIREN'),*/
|
||||
);
|
||||
$iDbSel=new WDB('jo');
|
||||
$iDbMaj=new WDB('insee');
|
||||
echo date ('Y/m/d - H:i:s')." - DEBUT de la mise à jour des TEL/FAX des entreprises...".EOL;
|
||||
$strDate=' AND dateUpdate>DATE_SUB(NOW(), INTERVAL 2 DAY) ';
|
||||
if ($toutes)
|
||||
$strDate='';
|
||||
|
||||
$nbTel=$iDbSel->select('infos_entrep', 'siren, tel, fax',"siren>1000 AND (tel<>'' OR fax<>'') $strDate", false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbTel lignes de TEL/FAX à mettre à jour...".EOL;
|
||||
$nbAvecMaj=$nbSansMaj=$nbErr=0;
|
||||
while ($tabTel=$iDbSel->fetch(MYSQL_ASSOC)) {
|
||||
$siren=$tabTel['siren'];
|
||||
$tel=trim(strtr($tabTel['tel'], array('.'=>'', ' '=>'', '-'=>'')));
|
||||
$fax=trim(strtr($tabTel['fax'], array('.'=>'', ' '=>'', '-'=>'')));
|
||||
$tabTmp=$iDbMaj->select('identite', 'id, SIREN, NIC, ACTIF, SIEGE, TEL, FAX',"SIREN=$siren ORDER BY SIEGE DESC, ACTIF DESC LIMIT 0,1", false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) {
|
||||
$tabUpdate=array();
|
||||
$etab=$tabTmp[0];
|
||||
$id=$etab['id'];
|
||||
$telPrev=$etab['TEL'];
|
||||
$faxPrev=$etab['FAX'];
|
||||
if ($telPrev=='' && $tel<>'') $tabUpdate['TEL']=$tel;
|
||||
if ($faxPrev=='' && $fax<>'') $tabUpdate['FAX']=$fax;
|
||||
if (count($tabUpdate)>0) {
|
||||
$iDbMaj->update('identite',$tabUpdate, "id=$id");
|
||||
echo date ('Y/m/d - H:i:s')." - Siren $siren, Tel $tel, Fax $fax : Mise à jour OK".EOL;
|
||||
$nbAvecMaj++;
|
||||
}
|
||||
else {
|
||||
$nbSansMaj++;
|
||||
// echo date ('Y/m/d - H:i:s')." - Siren $siren, Tel $tel, Fax $fax : PAS de mise à jour".EOL;
|
||||
}
|
||||
} else {
|
||||
echo date ('Y/m/d - H:i:s')." - Siren $siren, Tel $tel, Fax $fax : Pas de fiche identite !".EOL;
|
||||
$nbErr++;
|
||||
// die();
|
||||
}
|
||||
|
||||
/*print_r($tabTel);
|
||||
print_r($tabTmp);
|
||||
die();*/
|
||||
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - FIN de la mise à jour des TEL/FAX des entreprises ($nbAvecMaj MAJ/$nbTel avec $nbErr erreurs).".EOL;
|
||||
die();
|
||||
?>
|
166
batch/consolideWebMail.php
Normal file
166
batch/consolideWebMail.php
Normal file
@ -0,0 +1,166 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Consolidation des sites Web et Emails disponibles.
|
||||
|
||||
Options :
|
||||
-a Reconsolidation de toute la base des téléphones/fax
|
||||
";
|
||||
$semiManuel=$sansPropo=$toutes=$index=false;
|
||||
|
||||
$mInsee=new MInsee();
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']==1) $semiManuel=false; // Fonctionnement normal du script, càd : on sirene que en auto
|
||||
else {
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 's':
|
||||
$semiManuel=true;
|
||||
break;
|
||||
case 'p':
|
||||
$sansPropo=true;
|
||||
break;
|
||||
case 'a':
|
||||
$toutes=true;
|
||||
break;
|
||||
case 'i':
|
||||
$index=trim(substr($argv[$i],3));
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - DEBUT du programme...".EOL;
|
||||
die("SELECT siren, sirenValide, raisonSociale, nomCommercial, enseigne, sigle, activite, typeEven FROM bodacc_detail WHERE activite LIKE '%www.%'
|
||||
OR activite LIKE '%.fr%'
|
||||
OR activite LIKE '%.com%'
|
||||
OR activite LIKE '%.net%'
|
||||
OR activite LIKE '%.info%'
|
||||
OR activite LIKE '%.biz%'
|
||||
OR activite LIKE '%.eu%'
|
||||
OR activite LIKE '%.org%'
|
||||
|
||||
OR raisonSociale LIKE '%www.%'
|
||||
OR raisonSociale LIKE '%.fr%'
|
||||
OR raisonSociale LIKE '%.com%'
|
||||
OR raisonSociale LIKE '%.net%'
|
||||
OR raisonSociale LIKE '%.info%'
|
||||
OR raisonSociale LIKE '%.biz%'
|
||||
OR raisonSociale LIKE '%.eu%'
|
||||
OR raisonSociale LIKE '%.org%'
|
||||
|
||||
OR nomCommercial LIKE '%www.%'
|
||||
OR nomCommercial LIKE '%.fr%'
|
||||
OR nomCommercial LIKE '%.com%'
|
||||
OR nomCommercial LIKE '%.net%'
|
||||
OR nomCommercial LIKE '%.info%'
|
||||
OR nomCommercial LIKE '%.biz%'
|
||||
OR nomCommercial LIKE '%.eu%'
|
||||
OR nomCommercial LIKE '%.org%'
|
||||
|
||||
OR enseigne LIKE '%www.%'
|
||||
OR enseigne LIKE '%.fr%'
|
||||
OR enseigne LIKE '%.com%'
|
||||
OR enseigne LIKE '%.net%'
|
||||
OR enseigne LIKE '%.info%'
|
||||
OR enseigne LIKE '%.biz%'
|
||||
OR enseigne LIKE '%.eu%'
|
||||
OR enseigne LIKE '%.org%'
|
||||
|
||||
OR sigle LIKE '%www.%'
|
||||
OR sigle LIKE '%.fr%'
|
||||
OR sigle LIKE '%.com%'
|
||||
OR sigle LIKE '%.net%'
|
||||
OR sigle LIKE '%.info%'
|
||||
OR sigle LIKE '%.biz%'
|
||||
OR sigle LIKE '%.eu%'
|
||||
OR sigle LIKE '%.org%'");
|
||||
|
||||
$pertinence=false;
|
||||
$nbRep=30;
|
||||
$siege=0;
|
||||
|
||||
$tabTables=array(
|
||||
/* array('db'=>'sugarcrm', 'table'=>'accounts', 'champRS'=>'name',
|
||||
'champAdresse'=>'billing_address_street',
|
||||
'champCP'=>'billing_address_postalcode',
|
||||
'champVille'=>'billing_address_city',
|
||||
'champSiren'=>'ticker_symbol',
|
||||
'champSirenValide'=>'(ticker_symbol<30000 OR ticker_symbol IS NULL)AND deleted')*/
|
||||
array('db'=>'jo', 'table'=>'bodacc_detail b LEFT JOIN bodacc_sirenage s ON s.idAnn = b.id AND s.siren = b.siren',
|
||||
'champRS'=>'CONCAT(raisonSociale," ",nomCommercial," ",enseigne)',
|
||||
'champAdresse'=>'adrLibVoie',
|
||||
'champCP'=>'codePostal',
|
||||
'champVille'=>'ville',
|
||||
'champSiren'=>'b.siren',
|
||||
'champNic'=>'nic',
|
||||
'champSirenValide'=>'sirenValide',
|
||||
'champNicValide'=>'nicValide'),
|
||||
/* array('db'=>'sdv1', 'table'=>'sirenage', 'champRS'=>'concat( RAISON_SOCIALE , \' \' , RAISON_SOCIALE2 )',//REF NIC RAISON_SOCIALE2 ADRESSE2 NUM_VOIE ADRESSE3
|
||||
'champAdresse'=>'ADRESSE',
|
||||
'champCP'=>'CP',
|
||||
'champVille'=>'VILLE',
|
||||
'champSiren'=>'SIREN',
|
||||
'champSirenValide'=>'SIREN'),*/
|
||||
);
|
||||
$iDbSel=new WDB('jo');
|
||||
$iDbMaj=new WDB('insee');
|
||||
echo date ('Y/m/d - H:i:s')." - DEBUT de la mise à jour des TEL/FAX des entreprises...".EOL;
|
||||
$strDate=' AND dateUpdate>DATE_SUB(NOW(), INTERVAL 2 DAY) ';
|
||||
if ($toutes)
|
||||
$strDate='';
|
||||
|
||||
$nbTel=$iDbSel->select('infos_entrep', 'siren, tel, fax',"siren>1000 AND (tel<>'' OR fax<>'') $strDate", false,MYSQL_ASSOC,true);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbTel lignes de TEL/FAX à mettre à jour...".EOL;
|
||||
$nbAvecMaj=$nbSansMaj=$nbErr=0;
|
||||
while ($tabTel=$iDbSel->fetch(MYSQL_ASSOC)) {
|
||||
$siren=$tabTel['siren'];
|
||||
$tel=trim(strtr($tabTel['tel'], array('.'=>'', ' '=>'', '-'=>'')));
|
||||
$fax=trim(strtr($tabTel['fax'], array('.'=>'', ' '=>'', '-'=>'')));
|
||||
$tabTmp=$iDbMaj->select('identite', 'id, SIREN, NIC, ACTIF, SIEGE, TEL, FAX',"SIREN=$siren ORDER BY SIEGE DESC, ACTIF DESC LIMIT 0,1", false, MYSQL_ASSOC);
|
||||
if (count($tabTmp)>0) {
|
||||
$tabUpdate=array();
|
||||
$etab=$tabTmp[0];
|
||||
$id=$etab['id'];
|
||||
$telPrev=$etab['TEL'];
|
||||
$faxPrev=$etab['FAX'];
|
||||
if ($telPrev=='' && $tel<>'') $tabUpdate['TEL']=$tel;
|
||||
if ($faxPrev=='' && $fax<>'') $tabUpdate['FAX']=$fax;
|
||||
if (count($tabUpdate)>0) {
|
||||
$iDbMaj->update('identite',$tabUpdate, "id=$id");
|
||||
echo date ('Y/m/d - H:i:s')." - Siren $siren, Tel $tel, Fax $fax : Mise à jour OK".EOL;
|
||||
$nbAvecMaj++;
|
||||
}
|
||||
else {
|
||||
$nbSansMaj++;
|
||||
// echo date ('Y/m/d - H:i:s')." - Siren $siren, Tel $tel, Fax $fax : PAS de mise à jour".EOL;
|
||||
}
|
||||
} else {
|
||||
echo date ('Y/m/d - H:i:s')." - Siren $siren, Tel $tel, Fax $fax : Pas de fiche identite !".EOL;
|
||||
$nbErr++;
|
||||
// die();
|
||||
}
|
||||
|
||||
/*print_r($tabTel);
|
||||
print_r($tabTmp);
|
||||
die();*/
|
||||
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - FIN de la mise à jour des TEL/FAX des entreprises ($nbAvecMaj MAJ/$nbTel avec $nbErr erreurs).".EOL;
|
||||
die();
|
||||
?>
|
71
batch/convertSd2BilSO2000.php
Normal file
71
batch/convertSd2BilSO2000.php
Normal file
@ -0,0 +1,71 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'conversion/bilAltares.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Conversion d'un flux surveillance/diffusion Bodacc S&D en fichier SO2000.
|
||||
|
||||
Options :
|
||||
-a:123456789 Ajouter le numéro d'abonné BIL 123456789
|
||||
-i:ISCEN Options de la fiche d'identité (I:Identifiant, S:Standard, C:Complète, E:option ext. Insee, N:option Score)
|
||||
-v Mode bavard
|
||||
-f Continuer même si numéro d'abonné n'est pas communiqué ou autre erreur...
|
||||
|
||||
";
|
||||
|
||||
$tabFichLigneCmd=array();
|
||||
$numeroAbonneBil=$optionsIdBil='';
|
||||
$modeDebug=$forceContinue=false;
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'a': $numeroAbonneBil=substr($argv[$i],3)*1; break;
|
||||
case 'i': $optionsIdBil=substr($argv[$i],3); break;
|
||||
case 'v': $modeDebug=true; break;
|
||||
case 'f': $forceContinue=true; break;
|
||||
case '-':
|
||||
case '?': die($strInfoScript); break;
|
||||
default: die('Option '. $argv[$i] . " inconnue !\n"); break;
|
||||
}
|
||||
} else $tabFichLigneCmd[]=$argv[$i];
|
||||
}
|
||||
|
||||
if ($numeroAbonneBil*1==0) {
|
||||
echo date ('Y/m/d - H:i:s') . " - Numéro d'abonnée BIL manquant !".EOL;
|
||||
if (!$forceContinue) die();
|
||||
}
|
||||
if ($optionsIdBil=='') {
|
||||
echo date ('Y/m/d - H:i:s') . " - Type de fiche identité BIL absente, fiche Identifiant utilisée par défaut !".EOL;
|
||||
$optionsIdBil='I';
|
||||
}
|
||||
|
||||
if (count($tabFichLigneCmd)==0) die(date ('Y/m/d - H:i:s') . " - Aucun fichier S&D à convertir en BIL/SO2000 !".EOL);
|
||||
|
||||
$message='';
|
||||
|
||||
for ($iFic=0; isset($tabFichLigneCmd[$iFic]); $iFic++)
|
||||
{
|
||||
$fichierIn=$tabFichLigneCmd[$iFic];
|
||||
if (preg_match('/APICIL/',$fichierIn)) { $numeroAbonneBil='019400018'; $optionsIdBil='I'; }
|
||||
if (preg_match('/SOFID/',$fichierIn)) { $numeroAbonneBil='000960030'; $optionsIdBil='I'; }
|
||||
elseif (preg_match('/METRO/',$fichierIn)) { $numeroAbonneBil='013990040'; $optionsIdBil='IN'; }
|
||||
echo date('Y/m/d - H:i:s') . " - Fichier S&D $fichierIn début de conversion en BIL/SO2000 (abonné $numeroAbonneBil, options $optionsIdBil) !".EOL;
|
||||
$ret=conversionSd2So2000($fichierIn, $numeroAbonneBil, '', $optionsIdBil);
|
||||
if ($ret===true)
|
||||
echo date('Y/m/d - H:i:s') . " - Fichier S&D $fichierIn converti en BIL/SO2000 (abonné $numeroAbonneBil) !".EOL;
|
||||
else
|
||||
echo date('Y/m/d - H:i:s') . " - ERREUR lors de la conversion du fichier S&D $fichierIn en BIL/SO2000 (abonné $numeroAbonneBil) : $ret !".EOL;
|
||||
}
|
||||
|
||||
//sendMail('infoslegales@scores-decisions.com', 'ylenaour@scores-decisions.com', "Surveillance Annonces Legales SOFID", "Conversion terminée. Penser à déposer le fichier !!!");
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Fin du traitement !" . EOL;
|
||||
die();
|
||||
|
||||
?>
|
278
batch/convertSdCsv.php
Normal file
278
batch/convertSdCsv.php
Normal file
@ -0,0 +1,278 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
define('VERSION_FICHIER_BODACC','0106');
|
||||
|
||||
/**
|
||||
* @todo
|
||||
* 1. Numéroter toutes les procédures OK
|
||||
* 2. Pouvoir faire du multiligne avec : 100 Annonce Bodacc
|
||||
* 101 Commentaire
|
||||
* 102 Activite déclaré au Bodacc
|
||||
* 103 texte rectificatif
|
||||
* 104 Annonce complète au format texte
|
||||
* 105 Structure Dirigeants BODACC
|
||||
* 106 Libellé du Périmètre de la vente
|
||||
* 3.
|
||||
* 5. JugesCommissaires à intégrer correctement
|
||||
|
||||
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
|
||||
*/
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMRncs.php');
|
||||
|
||||
$iBodacc=new MBodacc();
|
||||
$iInsee=new MInsee();
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Conversion d'un flux surveillance/diffusion Bodacc S&D en fichier CSV.
|
||||
|
||||
Options :
|
||||
-v Mode verbose
|
||||
-n Ajout des nics A6CMO
|
||||
-x Formater la sortie standard en CSV pour exploitation
|
||||
";
|
||||
|
||||
$tabFichier=array();
|
||||
$verbose=false;
|
||||
$sortieCSV=false;
|
||||
$ajoutNic=false;
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
/*case 'i':
|
||||
$incrementationDesTour=false;
|
||||
break;
|
||||
case 's':
|
||||
$typePrestaton='surveillanceBodacc';
|
||||
break;*/
|
||||
case 'n':
|
||||
$ajoutNic=true;
|
||||
break;
|
||||
case 'v':
|
||||
$verbose=true;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
} else $tabFichier[]=$argv[$i];
|
||||
}
|
||||
if (count($tabFichier)<1)
|
||||
die($strInfoScript);
|
||||
|
||||
$ligne001tot=$ligne100tot=$ligne104tot=$ligne999tot=0;
|
||||
$ligne100chaptot=array('comptes'=>0, 'creations'=>0, 'mmd'=>0, 'procol'=>0, 'radiations'=>0, 'ventes'=>0);
|
||||
$procoltot=array('CONC'=>0, 'SAUV'=>0, 'RJ'=>0, 'LJ'=>0, 'SUITE'=>0);
|
||||
|
||||
foreach ($tabFichier as $iFic=>$fichier) {
|
||||
|
||||
$ligne001=$ligne100=$ligne104=$ligne999=0;
|
||||
$ligne100chap=array('comptes'=>0, 'creations'=>0, 'mmd'=>0, 'procol'=>0, 'radiations'=>0, 'ventes'=>0);
|
||||
$procol=array('CONC'=>0, 'SAUV'=>0, 'RJ'=>0, 'LJ'=>0, 'SUITE'=>0);
|
||||
$tabLignes=file($fichier);
|
||||
$fp=fopen($fichier.'.csv', 'w');
|
||||
|
||||
foreach ($tabLignes as $i=>$ligne) {
|
||||
$ecrireLignePre=false;
|
||||
$typeLigne=substr($ligne, 0, 3)*1;
|
||||
switch ($typeLigne) {
|
||||
case 1: // Ligne ignorée
|
||||
// Ecriture de l'entête
|
||||
$siren ='Siren';
|
||||
$nic ='Nic';
|
||||
$ref ='Référence';
|
||||
$numPar ='Parution';
|
||||
$bodacc ='Bodacc';
|
||||
$datePar='Date parution';
|
||||
$numAnn ='Numéro Annonce';
|
||||
$cor ='Type Annonce';
|
||||
$libTri ='Tribunal';
|
||||
$numRC ='Numéro RCS';
|
||||
$raisonS='Raison sociale';
|
||||
$catEven='Chapitre';
|
||||
$txtEven='Evènement(s)';
|
||||
$txtAnn ='Texte Annonce';
|
||||
|
||||
$ligneOut='';
|
||||
$ligne001++;
|
||||
$ligne001tot++;
|
||||
break;
|
||||
case 100: // Structure Bodacc
|
||||
$ligneOut="$siren;$nic;$ref;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$numRC;$raisonS;$catEven;$txtEven;$txtAnn";
|
||||
$ligne100++;
|
||||
$ligne100tot++;
|
||||
|
||||
$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
|
||||
$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;
|
||||
}
|
||||
$codeTri= substr($ligne, 89 , 6 ); // Code Tribunal Codification interne utilisée par le Bodacc
|
||||
$libTri=$iBodacc->getTribunalNom($codeTri);
|
||||
|
||||
$adrEtNum= substr($ligne, 596 , 4 ); // Adresse de l'établissement : Numéro dans la voie
|
||||
$adrEtVoie= substr($ligne, 606 , 50 ); // Adresse de l'établissement : Libellé de la voie
|
||||
$adrEtCp= substr($ligne, 746 , 5 ); // Code Postal de l'établissement
|
||||
$adrEtVille=substr($ligne, 751 , 45 ); // Ville de l'établissement
|
||||
$adrEnNum= substr($ligne, 796 , 4 ); // Adresse de l'établissement : Numéro dans la voie
|
||||
$adrEnVoie= substr($ligne, 806 , 50 ); // Adresse de l'établissement : Libellé de la voie
|
||||
$adrEnCp= substr($ligne, 946 , 5 ); // Code Postal de l'établissement
|
||||
$adrEnVille=substr($ligne, 951 , 45 ); // Ville de l'établissement
|
||||
|
||||
$numRC = trim(substr($ligne, 95 , 9 )); // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
$raisonS= trim(substr($ligne, 104 , 150 )); // Raison sociale de l'entreprise
|
||||
$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='';
|
||||
foreach ($even as $codeEven)
|
||||
if ($codeEven<>0) {
|
||||
$txtEven.=$iBodacc->getEvenement($codeEven).', ';
|
||||
$catEven=$iBodacc->getChapitreEvenement($codeEven);
|
||||
}
|
||||
else
|
||||
$txtEven.='';
|
||||
if ($catEven=='procol') {
|
||||
switch($codeEven) {
|
||||
case 1050:
|
||||
case 1055: $procol['CONC']++; $procoltot['CONC']++; break;
|
||||
case 1100: $procol['SAUV']++; $procoltot['SAUV']++; break;
|
||||
case 1200:
|
||||
case 1201:
|
||||
case 1211:
|
||||
case 1212: $procol['RJ']++; $procoltot['RJ']++; break;
|
||||
case 1300:
|
||||
case 1301:
|
||||
case 1302:
|
||||
case 1303:
|
||||
case 1304:
|
||||
case 1305:
|
||||
case 1306:
|
||||
case 1307:
|
||||
case 1311:
|
||||
case 1312:
|
||||
case 1313: $procol['LJ']++; $procoltot['LJ']++; break;
|
||||
default: $procol['SUITE']++; $procoltot['SUITE']++; break;
|
||||
}
|
||||
}
|
||||
@$ligne100chap[$catEven]++;
|
||||
@$ligne100chaptot[$catEven]++;
|
||||
$txtEven=substr($txtEven,0,strlen($txtEven)-2);
|
||||
$txtAnn='';
|
||||
$ecrireLignePre=true;
|
||||
break;
|
||||
case 104: // Annonce
|
||||
$ligne104++;
|
||||
$ligne104tot++;
|
||||
$txtAnn=trim($txtAnn.' '.str_replace(';','.',trim(substr($ligne, 89 , 1910)))); // Texte Annonce
|
||||
break;
|
||||
case 999: // Ligne ignorée
|
||||
$ligneOut="$siren;$nic;$ref;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$numRC;$raisonS;$catEven;$txtEven;$txtAnn";
|
||||
$ligne999++;
|
||||
$ligne999tot++;
|
||||
$ecrireLignePre=true;
|
||||
break;
|
||||
default: // Ligne non gérée
|
||||
break;
|
||||
}
|
||||
if ($ecrireLignePre)
|
||||
fwrite($fp, $ligneOut.EOL);
|
||||
if ($ajoutNic && ($typeLigne==1 || $typeLigne==999 || $catEven=='procol' ||
|
||||
($catEven<>'comptes' &&
|
||||
(preg_match('/VITRY.*SEINE/i', $adrEtVille) || preg_match('/VITRY.*SEINE/i', $adrEnVille)))
|
||||
)) {
|
||||
// $nic=0;
|
||||
if ($siren*1>1000) {
|
||||
$tabEt=$iInsee->getEtablissements($siren, '', 0, 200, 200, 94);
|
||||
//print_r($tabEt);
|
||||
//die();
|
||||
}
|
||||
if ($tabEt['nbReponsesTotal']==1) {
|
||||
// 1 seul établissement connu : on le valide en auto @todo : Vérifier adresser
|
||||
$nic=$tabEt['reponses'][0]['Nic'];
|
||||
} elseif ($tabEt['nbReponsesTotal']==0) {
|
||||
continue;
|
||||
} else {
|
||||
$nicTrouve=$nbNic=0;
|
||||
foreach ($tabEt['reponses'] as $iEt=>$tabIdEt) {
|
||||
$villeRec=$tabIdEt['Ville'];
|
||||
$numRec=substr($tabIdEt['Adresse'],0,4)*1;
|
||||
$numDemEt=$adrEtNum*1;
|
||||
$numDemEn=$adrEnNum*1;
|
||||
if (($numDemEt==0 && $numDemEn==0) || $numRec==0) continue;
|
||||
if ($numDemEt==$numRec && preg_match('/VITRY.*SEINE/i', $villeRec)) {
|
||||
$nicTrouve=$tabIdEt['Nic'];
|
||||
$nbNic++;
|
||||
} elseif ($numDemEn==$numRec && preg_match('/VITRY.*SEINE/i', $villeRec)) {
|
||||
$nicTrouve=$tabIdEt['Nic'];
|
||||
$nbNic++;
|
||||
}
|
||||
}
|
||||
//if ($nbNic==1) {
|
||||
$nic=$nicTrouve;
|
||||
//}
|
||||
}
|
||||
|
||||
echo substr($ligne,0,22).initstr($nic*1,5,'0',ALIGN_RIGHT).substr($ligne,27,2000);
|
||||
}
|
||||
}
|
||||
if ($ajoutNic) echo EOL;
|
||||
fclose($fp);
|
||||
if ($verbose) echo date ('Y/m/d - H:i:s')." - Conversion terminée de $fichier ($ligne100 annonces)" . EOL;
|
||||
elseif ($sortieCSV) {
|
||||
echo "$fichier;$ligne100;";
|
||||
foreach ($ligne100chap as $chap=>$nb) echo "$nb;";
|
||||
foreach ($procol as $chap=>$nb) echo "$nb;";
|
||||
echo EOL;
|
||||
}
|
||||
}
|
||||
|
||||
if ($sortieCSV) {
|
||||
echo "$iFic fichiers;$ligne100tot;";
|
||||
foreach ($ligne100chaptot as $chap=>$nb) echo "$nb;";
|
||||
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;
|
||||
|
||||
die();
|
||||
|
||||
?>
|
323
batch/convertSdRecordati.php
Normal file
323
batch/convertSdRecordati.php
Normal file
@ -0,0 +1,323 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
//define('VERSION_FICHIER_BODACC','0106');
|
||||
define('DIR_RECORDATI_IN','/mnt/samba/partage/production/');
|
||||
|
||||
/**
|
||||
* @todo
|
||||
* 1. Numéroter toutes les procédures OK
|
||||
* 2. Pouvoir faire du multiligne avec : 100 Annonce Bodacc
|
||||
* 101 Commentaire
|
||||
* 102 Activite déclaré au Bodacc
|
||||
* 103 texte rectificatif
|
||||
* 104 Annonce complète au format texte
|
||||
* 105 Structure Dirigeants BODACC
|
||||
* 106 Libellé du Périmètre de la vente
|
||||
* 3.
|
||||
* 5. JugesCommissaires à intégrer correctement
|
||||
|
||||
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
|
||||
*/
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
|
||||
$iBodacc=new MBodacc();
|
||||
|
||||
$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).
|
||||
";*/
|
||||
|
||||
$tabFichLigneCmd=$tabFichier=array();
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
} else $tabFichLigneCmd[]=$argv[$i];
|
||||
}
|
||||
if (count($tabFichLigneCmd)==0) {
|
||||
$dh = opendir(DIR_RECORDATI_IN);
|
||||
while (false !== ($filename = readdir($dh))) {
|
||||
if ($filename<>'.' && $filename<>'..' && substr($filename, -4)=='.txt' &&
|
||||
substr($filename, 0,34)=='diffusionBodacc_DIFBODPRDMAIRECORD')
|
||||
$tabFichier[] = $filename;
|
||||
}
|
||||
sort($tabFichier);
|
||||
} else $tabFichier=$tabFichLigneCmd;
|
||||
|
||||
if (count($tabFichier)==0 && count($tabFichLigneCmd)==0) die(date ('Y/m/d - H:i:s') . " - Aucun fichier Recordati à traiter !".EOL);
|
||||
//print_r($tabFichier);
|
||||
//die();
|
||||
|
||||
for ($iFic=0; isset($tabFichier[$iFic]); $iFic++)
|
||||
{
|
||||
$nomFichier =$tabFichier[$iFic];
|
||||
|
||||
$ligne001=$ligne100=$ligne104=$ligne999=0;
|
||||
|
||||
$tabLignes=file(DIR_RECORDATI_IN.$nomFichier);
|
||||
$fp=fopen(DIR_RECORDATI_IN.$nomFichier.'.csv', 'w');
|
||||
$message='';
|
||||
|
||||
foreach ($tabLignes as $i=>$ligne) {
|
||||
$ecrireLignePre=false;
|
||||
$typeLigne=substr($ligne, 0, 3)*1;
|
||||
switch ($typeLigne) {
|
||||
case 1: // Ligne ignorée
|
||||
// Ecriture de l'entête
|
||||
$idannPre ='Identifiant Annonce';
|
||||
$siren ='Siren';
|
||||
$nic ='Nic';
|
||||
$ref ='Référence';
|
||||
$numPar ='Parution';
|
||||
$bodacc ='Bodacc';
|
||||
$datePar='Date parution';
|
||||
$numAnn ='Numéro Annonce';
|
||||
$cor ='Type Annonce';
|
||||
$libTri ='Tribunal';
|
||||
$numRC ='Numéro RCS';
|
||||
$raisonS='Raison sociale';
|
||||
$catEven='Chapitre';
|
||||
$txtEven='Evènement(s)';
|
||||
$txtAnn ='Texte Annonce';
|
||||
$inter ='Acheteur/Vendeur';
|
||||
$sirenV ='Siren Vendeur';
|
||||
$raisonSV='Nom Vendeur';
|
||||
$sirenA ='Siren Acheteur';
|
||||
$raisonSA='Nom Acheteur';
|
||||
$adresseFond='Adresse du fond';
|
||||
$montantVente='Montant de la vente';
|
||||
$deviseVente='Devise';
|
||||
$dateVente='Date de la vente';
|
||||
$opposition=$txtAnn='Opposition';
|
||||
|
||||
$ligne001++;
|
||||
break;
|
||||
case 100: // Structure Bodacc
|
||||
|
||||
/*Identité du vendeur Rubrique Siren acheteur Raison Sociale Adresse du fonds */
|
||||
$ligne100++;
|
||||
$idann = substr($ligne, 3 , 10 )*1; // Id interne de l'annonce S&D
|
||||
if ($idannPre<>$idann) {
|
||||
/** Recherche de l'oppositions
|
||||
**/
|
||||
if (preg_match('/Oppositions(?: )\:(.*)(?:Commentaires|\.$)/Uis', $txtAnn, $matches))
|
||||
$opposition=trim($matches[1]);
|
||||
/** Rechercher du montant de la vente
|
||||
**/
|
||||
if (preg_match("/(?:prix|montant|indémni|indemni|évalu|evalu|éstim|estim)\D{1,15}([0-9\.,\?\s ]*)(?:eur|euro|euros)/i", $txtAnn, $matches)) {
|
||||
$montantVente=''.trim($matches[1]);
|
||||
echo "Montant de la vente AV: $montantVente\n";
|
||||
if (substr($montantVente,-3,1)==',') {
|
||||
$montantVente=substr($montantVente,0,strlen($montantVente)-3);
|
||||
// echo "ICI1\n";
|
||||
}
|
||||
elseif (substr($montantVente,-3,1)=='.') {
|
||||
echo "'".substr($montantVente,-3,3)."'\n";
|
||||
$montantVente=substr($montantVente,0,strlen($montantVente)-3);
|
||||
// echo "ICI2\n";
|
||||
}
|
||||
$montantVente=strtr($montantVente,array('.'=>'',','=>'',' '=>''));
|
||||
|
||||
$deviseVente='EUR';
|
||||
//echo "Montant de la vente AP: $montantVente\n";
|
||||
}
|
||||
/** Recherche de la date de la vente
|
||||
**/
|
||||
if ($dateVente=='00/00/0000') {
|
||||
if (preg_match_all("/([0-9].{1,3})(janvier|f.vrier|mars|avril|mai|juin|juillet|ao.t|septembre|octobre|novembre|d.cembre).{1,2}([0-9]{4,4})/i", $txtAnn, $matches)) {
|
||||
//print_r($matches);
|
||||
//echo "Date de la vente : $dateVente\n";
|
||||
$dateVente=end($matches[0]);
|
||||
//die($txtAnn);
|
||||
}
|
||||
}
|
||||
if ($catEven=='procol') {
|
||||
$adresseFond=$adresse;
|
||||
if (preg_match('/Complément de jugement(?: )\:(.*)$/Uis', $txtAnn, $matches))
|
||||
$opposition=trim($matches[1]);
|
||||
else
|
||||
$opposition='';
|
||||
}
|
||||
|
||||
$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 );
|
||||
|
||||
$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;
|
||||
}
|
||||
$codeTri= substr($ligne, 89 , 6 ); // Code Tribunal Codification interne utilisée par le Bodacc
|
||||
$libTri=$iBodacc->getTribunalNom($codeTri);
|
||||
|
||||
$numRC = trim(substr($ligne, 95 , 9 )); // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
$raisonS= trim(substr($ligne, 104 , 150 )); // Raison sociale de l'entreprise
|
||||
$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";
|
||||
// $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 ($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);
|
||||
|
||||
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();
|
||||
|
||||
?>
|
786
batch/convertSdSO2000.php
Normal file
786
batch/convertSdSO2000.php
Normal file
@ -0,0 +1,786 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
define('DIR_SOFID_IN','/home/data/ftp/sofid ste fire de developpement/recv/');
|
||||
define('DIR_SOFID_OUT','/home/data/ftp/sofid/recv/');
|
||||
|
||||
$tabEvenSolib=array(10=>'CR',
|
||||
11=>'CR',
|
||||
13=>'CR',
|
||||
14=>'CR',
|
||||
15=>'CR',
|
||||
16=>'CR',
|
||||
17=>'CR',
|
||||
18=>'CR',
|
||||
19=>'CR',
|
||||
20=>'VT',
|
||||
21=>'VT',
|
||||
22=>'VT',
|
||||
24=>'VT',
|
||||
25=>'VT',
|
||||
30=>'CE',
|
||||
31=>'ME',
|
||||
32=>'ME',
|
||||
33=>'ME',
|
||||
34=>'ME',
|
||||
35=>'Rec',
|
||||
36=>'MAF',
|
||||
37=>'LG',
|
||||
38=>'LG',
|
||||
39=>'MD',
|
||||
40=>'RD',
|
||||
41=>'DIS',
|
||||
42=>'FLG',
|
||||
51=>'RJ',
|
||||
52=>'RJ',
|
||||
53=>'RA',
|
||||
56=>'PIE',
|
||||
57=>'SAUVJ',
|
||||
58=>'SAUVP',
|
||||
59=>'RR',
|
||||
60=>'R&L',
|
||||
61=>'LB',
|
||||
62=>'LJ',
|
||||
63=>'FP',
|
||||
64=>'INT',
|
||||
65=>'LQ',
|
||||
69=>'RL',
|
||||
70=>'Suite',
|
||||
71=>'SRJ',
|
||||
72=>'SRLJ',
|
||||
73=>'SP',
|
||||
74=>'AP',
|
||||
75=>'MP',
|
||||
76=>'EP',
|
||||
77=>'PRO',
|
||||
78=>'DC',
|
||||
79=>'CIA',
|
||||
80=>'INFR');
|
||||
|
||||
|
||||
$tabEven2SO=array( // PROCOL
|
||||
1010=>92, // Déclaration de cessation de paiement
|
||||
1050=>70, // Homologation de la conciliation
|
||||
1055=>70, // Résolution de la conciliation
|
||||
1100=>57, // Jugement de sauvegarde
|
||||
1101=>58, // Plan de sauvegarde
|
||||
1200=>52, // Redressement Judiciaire
|
||||
1201=>52, // Conversion sauvegarde en Redressement Judiciaire
|
||||
1202=>75, // Renouv. Periode Observation
|
||||
1203=>78, // Avis de dépot de l'état de collocation
|
||||
1204=>78, // Dépôt des créances
|
||||
1205=>78,
|
||||
1206=>78,
|
||||
1207=>53, // Règlemement amiable
|
||||
1208=>78,
|
||||
1209=>51, // Règlement Judiciaire
|
||||
1210=>77, // Production
|
||||
1211=>52, // Redressement Judiciaire par extension au(x) gérant(s)
|
||||
1212=>69, // Rectif ou Annul.LJ
|
||||
1214=>78, // Avis de dépôt de l'état des créances (Loi de 1985)
|
||||
1215=>70, // Jugement de désignation des organes de la procédure
|
||||
1216=>78, // Autre avis de dépôt
|
||||
1300=>62, // Conversion Redressement Judiciaire en Liquidation
|
||||
1301=>62, // Ouverture Liquidation Judiciaire
|
||||
1302=>66, // Ouverture Liquidation Judiciaire Simplifiée
|
||||
1303=>62, // Ouverture Liquidation Judiciaire sur résolution
|
||||
1304=>62, // Réouverture Liquidation Judiciaire
|
||||
1305=>62, // Liquidation Judiciaire
|
||||
1306=>66, // Liquidation Judiciaire simplifiée
|
||||
1307=>62, // Conversion sauvegarde en Liquidation Judiciaire
|
||||
1308=>62, // Fin du régime de Liquidation Judiciaire Simplifiée
|
||||
1309=>62, // Conversion Liquidation Judiciaire en Liquidation
|
||||
1310=>56, // Procédure d'Insolvabilité Européenne
|
||||
1311=>62, // Liquidation Judiciaire par extension au(x) gérants
|
||||
1312=>62, // Liquidation Judiciaire avec continuation d'exploitation
|
||||
1313=>62, // Liquidation Judiciaire sans remise des accessoires
|
||||
1346=>70, // Procédure d'insolvabilité (Règlement 1346/2000 du Conseil Européen)
|
||||
1400=>70, // Nomination d'un administrateur judiciaire
|
||||
1401=>70, // Nomination d'un mandataire judiciaire
|
||||
1402=>70, // Nomination d'un représentant des créanciers
|
||||
1403=>70, // Nominnation/Remplacement de commissaire à l'exécution du plan
|
||||
1404=>70, // Prolongement de la mission du commissaire à l'exécution du plan
|
||||
1405=>70, // Nomination d'un juge commissaire
|
||||
1406=>70, // Changement de SYNDIC
|
||||
1407=>75, // Modif. de Plan
|
||||
1408=>75, // Modification du plan de cession
|
||||
1409=>75, // Modif. de de continuation
|
||||
1410=>75, // Suite de jugement/règlement/liquidation
|
||||
1411=>75, // Arrêt du plan de cession
|
||||
1412=>75, // Arrêt du plan de cession partielle
|
||||
1413=>75, // Arrêt du plan de continuation
|
||||
1414=>75, // Arrêt du plan de redressement
|
||||
1415=>75, // Prolongement du plan cession
|
||||
1416=>75, // Jugement constatant la bonne exécution du plan
|
||||
1417=>62, // Jugement d'extension de liquidation judiciaire
|
||||
1418=>52, // Jugement d'extension d'une procédure de redressement judiciaire
|
||||
1419=>57, // Jugement d'extension d'une procédure de sauvegarde
|
||||
1420=>70, // Nomination d'un liquidateur judiciaire
|
||||
1421=>70, // Jugement prorogeant le plan de redressement
|
||||
1425=>70, // Plan de cession avec location gérance
|
||||
1430=>70, // Jugement autorisant la poursuite d'activité
|
||||
1431=>70, // Jugement de cessation partielle d'activité
|
||||
1435=>70, // Suspension de l'exécution provisoire
|
||||
1436=>70, // Suspension provisoire des poursuites
|
||||
1440=>70, // Jugement accordant un délai pour déposer la liste des créances
|
||||
1445=>70, // Concordat
|
||||
1450=>92, //Cessation paiement
|
||||
1455=>70, // Jugement arrêtant le plan d'apurement du passif
|
||||
1460=>70, // Homologation du plan
|
||||
1470=>70, // Fin de mission d'administrateur judiciaire
|
||||
1480=>70, // Jugement ordonnant la jonction des procédures
|
||||
1500=>79, // Clôture de la procédure
|
||||
1501=>79, // Clôture de la procédure après cession totale
|
||||
1502=>76, // Clôture de la procédure pour extinction du passif
|
||||
1503=>79, // Cloture insuf.Actif
|
||||
1504=>79, // Clôture sauvegarde pour absence de projet de plan
|
||||
1505=>74, // Appel de jugement
|
||||
1506=>59, // Rectif ou Annulation RJ
|
||||
1507=>74, // Appel de jugement
|
||||
1508=>70, // Extinction du plan de sauvegarde
|
||||
1509=>70, // Extinction du plan de redressement
|
||||
1510=>74, // Rejet du plan
|
||||
1511=>70, // Résolution du plan de cession
|
||||
1512=>70, // Résolution du plan de continuation
|
||||
1513=>70, // Résolution du plan de sauvegarde
|
||||
1515=>74, // Arrêt divers
|
||||
1517=>59, // Rectification d'une erreur matérielle
|
||||
1520=>70, // Ordonnance
|
||||
1525=>74, // Appel du ministère public
|
||||
1530=>70, // Jugement constatant l'impécuniosité de la procédure de liquidation
|
||||
1540=>70, // Ordonnance statuant sur les contestations du projet de répartition
|
||||
1541=>74, // Rétractation de prononcé de liquidation judiciaire sur tierce opposition
|
||||
1542=>74, // Rétractation de jugement d'ouverture d'une procédure de sauvegarde sur tierce opposition
|
||||
1543=>74, // Rétractation de jugement d'ouverture d'une procédure de redressement judiciaire sur tierce opposition
|
||||
1544=>74, // Rétractation de jugement d'ouverture d'une procédure de liquidation judiciaire sur tierce opposition
|
||||
1545=>74, // Rétractation de jugement d'ouverture sur tierce opposition
|
||||
1546=>74, // Autre rétractation sur tierce opposition
|
||||
1550=>70, // Suites de jugements
|
||||
1580=>70, // Jugement prononçant la continuation de l'activité par apurement du passif
|
||||
1600=>63, // Faillite personnelle
|
||||
1601=>64, // Interdiction de gérer
|
||||
1602=>70, // Jugement de réhabilitation
|
||||
1603=>61, // Liquidation de Biens
|
||||
1604=>80, // Banqueroute
|
||||
1605=>70, // Jugement autorisant la reprise des poursuites individuelles
|
||||
1610=>80, // Faillite personnelle (Loi de 1985)
|
||||
1611=>80, // Interdiction de gérer (Loi de 1985)
|
||||
1620=>70, // Jugement condamnant le dirigeant en comblement du passif
|
||||
1650=>80, // Rétablissement Personnel
|
||||
1700=>70, // Décision soumise à publicité
|
||||
1900=>80, // Interdiction temporaire d'exercice de la profession de CAC
|
||||
1901=>80, // Radiation de la liste des CAC
|
||||
1999=>70, // Autre procédure collective
|
||||
// MMD
|
||||
2000=>40, // Mention d'office
|
||||
2100=>39, // Chg.Capital/Cess.apport de parts
|
||||
2101=>39, // Chg.Capital/Cess.apport de parts
|
||||
2102=>39, // Chg.Capital/Cess.apport de parts
|
||||
2200=>40, // Cessation d'activité
|
||||
2201=>40, // Cessation d'activité temporaire
|
||||
2202=>41, // Dissolution
|
||||
2203=>41, // Dissolution de la société
|
||||
2204=>41, // Cessation d'activité avec dissolution
|
||||
2205=>40, // Fermeture du fonds
|
||||
2206=>39, // Mise en sommeil de la société
|
||||
2207=>39, // Suppression d'une branche d'activité
|
||||
2208=>39, // Suppression de l'établissement principal
|
||||
2209=>39, // Vente du fonds
|
||||
2210=>39, // Déclaration de dissolution par l'associé unique.
|
||||
2211=>39, // Clôture de la liquidation
|
||||
2212=>39, // Liquidation amiable
|
||||
2300=>39, // Changement d'Adresse
|
||||
2301=>39, // Modification de l'adresse du siège
|
||||
2302=>39, // Modification de l'enseigne
|
||||
2303=>39, // Modification de la date de clôture de l'exercice
|
||||
2304=>39, // Modification de la date de début d'activité
|
||||
2305=>39, // Modification de la dénomination
|
||||
2306=>39, // Modification de la durée de la société
|
||||
2307=>39, // Modification de la forme juridique
|
||||
2308=>39, // Modification du nom
|
||||
2309=>39, // Modification du nom commercial
|
||||
2310=>39, // Modification du pseudonyme
|
||||
2311=>39, // Modification sur l'exploitation
|
||||
2312=>39, // Modification(s) diverse(s)
|
||||
2313=>39, // Modification de l'activité
|
||||
2314=>39, // Poursuite de l'activité
|
||||
2315=>39, // Modification de l'administration
|
||||
2316=>39, // Mise en activité de la société
|
||||
2317=>39, // Modification du sigle
|
||||
2318=>39, // Modifications diverses
|
||||
2319=>39, // Poursuite de l'activité malgré la perte de plus de...
|
||||
2320=>39, // Reconsitution de l'actif net
|
||||
2321=>39, // Reconsitution de la moitié de l'actif net
|
||||
2350=>39, // Déclaration des associés (loi du 1er février 2005)
|
||||
2401=>39, // Changement de régime matrimonial
|
||||
2402=>39, // Changement de régime matrimonial (divorce)
|
||||
2403=>39, // Changement de régime matrimonial (mariage)
|
||||
2404=>39, // Changement de régime matrimonial (veuvage)
|
||||
2405=>39, // Changement de régime matrimonial (contrat de maria...
|
||||
2406=>39, // Reprise du fonds par le conjoint
|
||||
2407=>39, // Mention du conjoint collaborateur
|
||||
2408=>39, // Radiation du conjoint collaborateur
|
||||
2500=>30, // Confirmation établissement principal ou secondaire
|
||||
2510=>39, // L'établissement secondaire devient principal
|
||||
2520=>39, // Extension de l'établissement principal
|
||||
2600=>39, // Décès
|
||||
2610=>39, // Décision de l'unique actionnaire
|
||||
2620=>39, // Transmission universelle du patrimoine
|
||||
2630=>39, // Donation/Partage
|
||||
2635=>39, // Cession de parts
|
||||
2639=>39, // Nantissement de parts sociales
|
||||
2640=>39, // Changement de domicile personnel
|
||||
2650=>39, // Changement de nationalité
|
||||
2660=>39, // Réalisation de l'apport partiel d'actif
|
||||
2661=>39, // Apport partiel
|
||||
2700=>39, // Fusion/Absorption (entitée absorbante)
|
||||
2701=>39, // Fusion/Absorption (Entitée absorbante. Entité abso...
|
||||
2702=>39, // Fusion/Absorption (Entitée absorbante. Entité abso...
|
||||
2703=>39, // Fusion/Absorption (Entitée absorbante. Entité abso...
|
||||
2710=>39, // Projet de fusion (entitée absorbante)
|
||||
2720=>39, // Fusion/Absorption (entitée absorbée)
|
||||
2721=>39, // Fusion/Absorption (entitée absorbée non identifiée...
|
||||
2725=>39, // Fusion/Absorption
|
||||
2726=>39, // Projet de Fusion/Absorption
|
||||
2730=>39, // Projet de fusion (entitée absorbée)
|
||||
2740=>39, // Scission
|
||||
2750=>39, // Société participation
|
||||
2800=>37, // Location gérance reçue
|
||||
2840=>38, // Location/Gérance
|
||||
2850=>38, // Location gérance donnée : Précédent propriétaire e...
|
||||
2851=>38, // Location gérance donnée : Précédent propriétaire
|
||||
2860=>38, // Location gérance donnée : Précédent exploitant
|
||||
2870=>38, // Location gérance donnée
|
||||
2875=>38, // Gérance/Mandat
|
||||
2880=>38, // Renouvellement de location gérance
|
||||
2881=>38, // Changement de location gérance
|
||||
2885=>42, // Fin de location gérance
|
||||
2890=>38, // Location gérance relative à une branche
|
||||
2891=>39, // Location gérance relative à un établissement
|
||||
2892=>39, // Location gérance relative à un fond
|
||||
2900=>32, // Transfert d'établissement
|
||||
2901=>32, // Transfert de siège
|
||||
2902=>32, // Transfert du fonds
|
||||
2903=>32, // Projet de transfert du siège
|
||||
2904=>32, // Transfert du siège à l'étranger
|
||||
2950=>32, // Création de fonds
|
||||
2980=>32, // Transfert entre tribunaux
|
||||
// DEPOTS DES COMPTES
|
||||
3100=>91,
|
||||
3200=>91,
|
||||
3300=>91,
|
||||
3999=>91,
|
||||
// CREATIONS
|
||||
4000=>10, // Création d'entreprise
|
||||
4050=>10, // Création d'entreprise sans activité
|
||||
4100=>10, // Création d'entreprise sans établissement
|
||||
4200=>17, // Création d'établissement
|
||||
4250=>17, // Création suite à transfert
|
||||
4300=>17, // Création suite à reprise d'activité
|
||||
4350=>10, // Création suite à fin de location-gérance
|
||||
4355=>10, // Création suite à prise en location-gérance
|
||||
4360=>10, // Reprise d'activité par suite de la résolution de v
|
||||
4400=>10, // Création suite à changement de FJ
|
||||
4410=>10, // Création suite à héritage ou donation
|
||||
4450=>10, // Création suite à reprise par le conjoint
|
||||
4500=>17, // Fonds acquis dans le cadre d'une PC
|
||||
4501=>17, // Fonds acquis par achat
|
||||
4502=>17, // Fonds acquis par apport
|
||||
4600=>10, // Immatriculation d'une société de droit européen
|
||||
4999=>10, // Création
|
||||
|
||||
// ventes !!!
|
||||
5500=>20, // Entreprise réalisant la vente
|
||||
5501=>20, // Entreprise réalisant la vente : Ancien propriétair... BODA ventes 12 0000-00-00 00:00:00
|
||||
5502=>20, // Entreprise réalisant la vente : Ancien propriétair... BODA ventes 12 0000-00-00 00:00:00
|
||||
5503=>20, // Entreprise réalisant la vente : Ancien propriétair... BODA ventes 12 0000-00-00 00:00:00
|
||||
5510=>20, // Entreprise réalisant la vente : Co-propriétaire BODA ventes 12 0000-00-00 00:00:00
|
||||
5600=>20, // Entreprise réalisant l'acquisition BODA ventes 12 0000-00-00 00:00:00
|
||||
5650=>20,
|
||||
5700=>20, // Entreprise réalisant l'acquisition BODA ventes 12 0000-00-00 00:00:00
|
||||
5999=>20,
|
||||
|
||||
// RADIATIONS
|
||||
6000=>40, //Radiation pour cause de clôture de la liquidation (amiable/simplifié/général)
|
||||
6001=>40, //Radiation pour cause de clôture de la liquidation amiable
|
||||
6002=>40, //Radiation pour cause de clôture de la liquidation judiciaire pour IA
|
||||
6003=>40, //Radiation pour cause de clôture de la liquidation judiciaire
|
||||
6004=>40, //Radiation pour cause de clôture de la liquidation judiciaire simplifié
|
||||
6005=>40, //Radiation pour clôture du plan de cession
|
||||
6100=>40, //Radiation pour cause de décès
|
||||
6200=>40, //Radiation pour cause de mention d'office
|
||||
6201=>40, //Radiation pour cause de cessation d'activité
|
||||
6300=>40, //Radiation pour cause de non-exercice
|
||||
6400=>40, //Radiation pour cause de transfert
|
||||
6500=>40, //Radiation pour cause de jugement de clôture du plan de cession
|
||||
6600=>40, //Radiation d'un établissement
|
||||
6700=>40, //Radiation
|
||||
);
|
||||
$tabEven2RO=array( 2305=>'a',
|
||||
2308=>'a', // Chg de dénomination(RS,Ens,Sigle)
|
||||
2309=>'a', // Modification du nom commercial BODB mmd 12 0000-00-00 00:00:00
|
||||
2310=>'a', // Modification du pseudonyme
|
||||
2300=>'b', // Changement d'Adresse
|
||||
2301=>'b',
|
||||
2900=>'b', // Transfert d'établissement
|
||||
2901=>'b', // Transfert de siège
|
||||
2902=>'b', // Transfert du fonds
|
||||
2903=>'b', // Projet de transfert du siège
|
||||
2904=>'b', // Transfert du siège à l'étranger
|
||||
2950=>'b', // Création de fonds
|
||||
2980=>'b', // Transfert entre tribunaux
|
||||
2101=>'c', // Chg.Capital/Cess.apport de parts
|
||||
2315=>'d', // Changement de Dirigeants
|
||||
2313=>'e', // Mod Act/obj.soc./Cess./Mise somm.
|
||||
2307=>'f', // Changement de Forme juridique
|
||||
2318=>'g', // Opération sur Participations
|
||||
2725=>'h', // Fusion Absorption
|
||||
2318=>'i', // Mod.garantie financière/Caution
|
||||
2401=>'j', // Changement de régime matrimonial
|
||||
2319=>'k', // Non dissolution anticipée
|
||||
2318=>'l', // Non dissolution anticipée
|
||||
2318=>'m', // Dissolution anticipée (ou non)
|
||||
2303=>'n', // Mod.date cloture exercice social
|
||||
5500=>'V', // Entreprise réalisant la vente
|
||||
5501=>'V', // Entreprise réalisant la vente : Ancien propriétair... BODA ventes 12 0000-00-00 00:00:00
|
||||
5502=>'V', // Entreprise réalisant la vente : Ancien propriétair... BODA ventes 12 0000-00-00 00:00:00
|
||||
5503=>'V', // Entreprise réalisant la vente : Ancien propriétair... BODA ventes 12 0000-00-00 00:00:00
|
||||
5510=>'V', // Entreprise réalisant la vente : Co-propriétaire BODA ventes 12 0000-00-00 00:00:00
|
||||
5600=>'V',
|
||||
5650=>'V',
|
||||
5700=>'A', // Entreprise réalisant l'acquisition BODA ventes 12 0000-00-00 00:00:00
|
||||
1411=>'F', // Arrêt du plan de cession
|
||||
1408=>'G', // Modification du plan de cession
|
||||
1409=>'N', // Modification du plan de continuation
|
||||
1414=>'M', // Arrêt du plan de redressement
|
||||
|
||||
);
|
||||
|
||||
|
||||
function exporte($txt, $lon, $sep='') {
|
||||
$txt=strtr(trim($txt),array('''=>"'",'&'=>'&', '²'=>'²', "\r"=>'', "\n"=>'', "\t"=>''));
|
||||
|
||||
if ($sep=='') return sprintf("%-".$lon.'.'.$lon."s", $txt);
|
||||
|
||||
return trim(sprintf("%-".$lon.'.'.$lon."s", $txt)).$sep;
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo
|
||||
* 1. Numéroter toutes les procédures OK
|
||||
* 2. Pouvoir faire du multiligne avec : 100 Annonce Bodacc
|
||||
* 101 Commentaire
|
||||
* 102 Activite déclaré au Bodacc
|
||||
* 103 texte rectificatif
|
||||
* 104 Annonce complète au format texte
|
||||
* 105 Structure Dirigeants BODACC
|
||||
* 106 Libellé du Périmètre de la vente
|
||||
* 3.
|
||||
* 5. JugesCommissaires à intégrer correctement
|
||||
|
||||
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
|
||||
*/
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMRncs.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
$iBodacc=new MBodacc();
|
||||
$iInsee=new MInsee();
|
||||
$iRncs=new MRncs();
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Conversion d'un flux surveillance/diffusion Bodacc S&D en fichier SO2000.
|
||||
|
||||
";/*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).
|
||||
";*/
|
||||
|
||||
$tabFichLigneCmd=array();
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
/*case 'i':
|
||||
$incrementationDesTour=false;
|
||||
break;
|
||||
case 's':
|
||||
$typePrestaton='surveillanceBodacc';
|
||||
break;
|
||||
case 'd':
|
||||
$typePrestaton='diffusionBodacc';
|
||||
break;
|
||||
case 'e':
|
||||
$ignoreDateDerExec=true;
|
||||
break;*/
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
} else $tabFichLigneCmd[]=$argv[$i];
|
||||
}
|
||||
|
||||
if (count($tabFichLigneCmd)==0) {
|
||||
$dh = opendir(DIR_SOFID_IN);
|
||||
while (false !== ($filename = readdir($dh))) {
|
||||
if ($filename<>'.' && $filename<>'..' && substr($filename, -4)=='.txt' &&
|
||||
substr($filename, 0,37)=='surveillanceBodacc_SURBODPRDFTSSOFID_')
|
||||
$tabFichier[] = $filename;
|
||||
}
|
||||
sort($tabFichier);
|
||||
} else $tabFichier=$tabFichLigneCmd;
|
||||
|
||||
if (count($tabFichier)==0 && count($tabFichLigneCmd)==0) die(date ('Y/m/d - H:i:s') . " - Aucun fichier Kronenbourg Sofid à traiter !".EOL);
|
||||
|
||||
$message='';
|
||||
|
||||
for ($iFic=0; isset($tabFichier[$iFic]); $iFic++)
|
||||
{
|
||||
$nomFichierIn=$tabFichier[$iFic];
|
||||
$tabLignes=file(DIR_SOFID_IN.$nomFichierIn);
|
||||
|
||||
$ligne001=$ligne100=$ligne104=$ligne999=0;
|
||||
$nomFichierOut='kro800'.substr($nomFichierIn, 37,-4).'.fic';
|
||||
|
||||
$fp=fopen(DIR_SOFID_OUT.$nomFichierOut, 'w');
|
||||
$dateJ=date('Ymd');
|
||||
$ecrireLignePre=false;
|
||||
|
||||
/** Codes/Variables à gérer **/
|
||||
$depPar=0;
|
||||
$SOSTAE='';
|
||||
|
||||
foreach ($tabLignes as $i=>$ligne) {
|
||||
$typeLigne=substr($ligne, 0, 3)*1;
|
||||
switch ($typeLigne) {
|
||||
case 1: // Ligne ignorée
|
||||
// Ecriture de l'entête
|
||||
$ligne001++;
|
||||
break;
|
||||
case 100: // Structure Bodacc
|
||||
case 999: // Fin
|
||||
$strTxt=wordwrap($txtAnn, 39, EOL);
|
||||
$tabTxt=explode(EOL, $strTxt);
|
||||
foreach($tabTxt as $j=>$txt) {
|
||||
$SOSEQ++;
|
||||
if($j%16==0) {
|
||||
// Type d'enregistrement 1=EntConf, 2=Rejet, 4=Multipropo, 5=Suivi MAJ Entrep, 7=Infos, 8=Envoi documen, 9=Annonce
|
||||
$typEnr=9;
|
||||
if ($j==0) $ligneTXT =initstr($SONABO, 9, '0', ALIGN_RIGHT); // Numéro d'abonné BIL ?
|
||||
else $ligneTXT.=EOL.initstr($SONABO, 9, '0', ALIGN_RIGHT); // Numéro d'abonné BIL ?
|
||||
$ligneTXT.=initstr($SONUME, 9, '0', ALIGN_RIGHT); // Numéro d'entreprise BIL ?
|
||||
$ligneTXT.=initstr($SONUS, 9, '0', ALIGN_RIGHT); // Numéro d'UFS BIL ?
|
||||
$ligneTXT.=initstr($nann, 9, '0', ALIGN_RIGHT); // Numéro d'annonce BIL ?
|
||||
$ligneTXT.=initstr($siren, 9, '0', ALIGN_RIGHT); // Siren
|
||||
$ligneTXT.=initstr($nic, 5, '0', ALIGN_RIGHT); // Nic
|
||||
$ligneTXT.=exporte('SE', 2); // Code produit BIL ? SE, DE, DI, SJ
|
||||
$ligneTXT.=initstr($SOSEQ, 5, '0', ALIGN_RIGHT); // Numéro dans la séquence
|
||||
$ligneTXT.=initstr($dateJ, 8, '0', ALIGN_RIGHT); // Numéro dans la séquence
|
||||
$ligneTXT.=exporte($typEnr, 1); // Type d'enregistrement 1=EntConf, 2=Rejet, 4=Multipropo, 5=Suivi MAJ Entrep, 7=Infos, 8=Envoi documen, 9=Annonce
|
||||
$ligneTXT.=exporte('TXT', 3); // Structure identité
|
||||
$ligneTXT.=exporte('A', 1); // Confirmation 'A'uto ou 'C' pour manuelle
|
||||
$ligneTXT.=exporte($ref, 30); // Réf. Client
|
||||
$ligneTXT.=exporte($SOORIG, 1); // 1:Insee actif, 2=Ufs, 3=Annonce, 4=Manuelle, 5=Asso, 7=RCS actif, 8=Insee cessa eco, 9=Insee/RCS radié
|
||||
$ligneTXT.=exporte($SOJAL, 3); // 001=Bodacc A, 200=Bodacc B, 300=Bodacc C
|
||||
$ligneTXT.=exporte($datePar, 8); // Date de parution
|
||||
$ligneTXT.=initstr(0, 5, '0', ALIGN_RIGHT); // Page
|
||||
$ligneTXT.=exporte($codeEve, 2); //
|
||||
$ligneTXT.=initstr($depPar, 2, '0', ALIGN_RIGHT);
|
||||
$ligneTXT.=initstr($numAnn, 6, '0', ALIGN_RIGHT);
|
||||
$ligneTXT.=exporte($codeRol, 1); //
|
||||
$ligneTXT.=exporte('T', 1);
|
||||
}
|
||||
$ligneTXT.=exporte($txt, 40);
|
||||
}
|
||||
$codeEve=$codeRol='';
|
||||
$ligneOut=$ligneID.EOL.$ligneANN.EOL.$ligneTXT;
|
||||
if ($ligne100>1) $ecrireLignePre=true;
|
||||
if($typeLigne==999) {
|
||||
$ligne999++;
|
||||
break;
|
||||
}
|
||||
|
||||
$nann = trim(substr($ligne, 3 , 10 ))*1; // N° d'annonce
|
||||
$siren = substr($ligne, 13 , 9 ); // Siren de l'entreprise concernée par l'annonce
|
||||
$tabIdentite=@$iInsee->getIdentiteEntreprise($siren);
|
||||
$nic = trim(substr($ligne, 22, 5 ))*1; // 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= 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
|
||||
$numRC = trim(substr($ligne,95 , 9 )); // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
$rs = trim(substr($ligne,104, 150 )); // Raison sociale de l'entreprise
|
||||
$nomCom = trim(substr($ligne,254, 100 )); // Nom Commerciale
|
||||
$ens = trim(substr($ligne,354, 100 )); // Enseigne
|
||||
$fj = trim(substr($ligne,484, 4 ))*1; // FJ
|
||||
$fjLib = trim(substr($ligne,488, 90 )); // FJ libellé
|
||||
$capMnt = trim(substr($ligne,578, 15 )); // Capital
|
||||
$capDev = trim(substr($ligne,593, 3 )); // Capital Devise
|
||||
$adrNum = trim(substr($ligne,596, 4 )); //
|
||||
$adrBtq = trim(substr($ligne,600, 1 )); // FJ libellé
|
||||
$adrVoi = trim(substr($ligne,601, 5 )); // FJ libellé
|
||||
$adrLib = trim(substr($ligne,606, 50 )); // FJ libellé
|
||||
$adrL2 = trim(substr($ligne,656, 50 )); // FJ libellé
|
||||
$adrL3 = trim(substr($ligne,706, 40 )); // FJ libellé
|
||||
$adrCP = trim(substr($ligne,746, 5 ))*1; // FJ libellé
|
||||
$adrVil = trim(substr($ligne,751, 45 )); // FJ libellé
|
||||
if ($adrCP==0) {
|
||||
$adrNum = trim(substr($ligne,796, 4 )); // FJ libellé
|
||||
$adrBtq = trim(substr($ligne,800, 1 )); // FJ libellé
|
||||
$adrVoi = trim(substr($ligne,801, 5 )); // FJ libellé
|
||||
$adrLib = trim(substr($ligne,806, 50 )); // FJ libellé
|
||||
$adrL2 = trim(substr($ligne,856, 50 )); // FJ libellé
|
||||
$adrL3 = trim(substr($ligne,906, 40 )); // FJ libellé
|
||||
$adrCP = trim(substr($ligne,946, 5 ))*1; // FJ libellé
|
||||
$adrVil = trim(substr($ligne,951, 45 )); // FJ libellé
|
||||
}
|
||||
$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='';
|
||||
foreach ($even as $codeEven)
|
||||
if ($codeEven<>0) {
|
||||
if (@$codeEve=='') $codeEve=$tabEven2SO[$codeEven];
|
||||
if (@$codeRol=='') $codeRol=$tabEven2RO[$codeEven];
|
||||
$txtEven.=$iBodacc->getEvenement($codeEven).', ';
|
||||
$catEven=$iBodacc->getChapitreEvenement($codeEven);
|
||||
}
|
||||
else
|
||||
$txtEven.='';
|
||||
$txtEven=substr($txtEven,0,strlen($txtEven)-2);
|
||||
$dateCess= substr($ligne, 1136, 8 ); // Date de cessat° des paiements
|
||||
$dateJuge= substr($ligne, 1144, 8 ); // Date de jugement
|
||||
$dateEffet=substr($ligne, 1161, 8 ); // Date d'effet
|
||||
if ($dateEffet*1==0) $dateEffet=$dateJuge;
|
||||
|
||||
$vteMnt=substr($ligne, 1169, 15 ); // Montant de la vente
|
||||
$vteDev=substr($ligne, 1184, 3 ); // Devise de la vente
|
||||
|
||||
|
||||
if ($nic*1==0) $nic=$tabIdentite['Nic'];
|
||||
|
||||
$SONABO='000960030';
|
||||
if ($tabIdentite['Actif']==1) $SOORIG=1;
|
||||
elseif (!isset($tabIdentite['Actif'])) $SOORIG=3;
|
||||
elseif ($tabIdentite['Actif']==0 && ($tabIdentite['EntActiveRCS']==1||$tabIdentite['EtabActifRCS']==1)) $SOORIG=7;
|
||||
elseif ($tabIdentite['Actif']==0 && $tabIdentite['EntActiveRCS']==0 && $tabIdentite['EtabActifRCS']==0) $SOORIG=9;
|
||||
else $SOORIG=8;
|
||||
|
||||
if ($tabIdentite['Civilite']==1) $SOTSEX='M';
|
||||
elseif ($tabIdentite['Civilite']==2) $SOTSEX='F';
|
||||
else $SOTSEX='';
|
||||
$SONUME=''.preg_replace('/^0+/','', $tabIdentite['Source']).$tabIdentite['SourceId'];
|
||||
$SONUS='000000000';
|
||||
$SOSEQ=1;
|
||||
if ($adrCP==0) {
|
||||
$adrNum = $tabIdentite['AdresseNum'];
|
||||
$adrBtq = $tabIdentite['AdresseBtq'];
|
||||
$adrVoi = $tabIdentite['AdresseVoie'];
|
||||
$adrLib = $tabIdentite['AdresseRue'];
|
||||
$adrL2 = $tabIdentite['Adresse2'];
|
||||
$adrL3 = '';
|
||||
$adrCP = $tabIdentite['CP'];
|
||||
$adrVil = $tabIdentite['Ville'];
|
||||
}
|
||||
$typEnr=1;
|
||||
$DBILS2 =initstr($SONABO, 9, '0', ALIGN_RIGHT); // Numéro d'abonné BIL ?
|
||||
$DBILS2.=initstr($SONUME, 9, '0', ALIGN_RIGHT); // Numéro d'entreprise BIL ?
|
||||
$DBILS2.=initstr($SONUS, 9, '0', ALIGN_RIGHT); // Numéro d'UFS BIL ?
|
||||
$DBILS2.=initstr($nann, 9, '0', ALIGN_RIGHT); // Numéro d'annonce BIL ?
|
||||
$DBILS2.=initstr($siren, 9, '0', ALIGN_RIGHT); // Siren
|
||||
$DBILS2.=initstr($nic, 5, '0', ALIGN_RIGHT); // Nic
|
||||
$DBILS2.=exporte('SE', 2); // Code produit BIL ? SE, DE, DI, SJ
|
||||
$DBILS2.=initstr($SOSEQ, 5, '0', ALIGN_RIGHT); // Numéro dans la séquence
|
||||
$DBILS2.=initstr($dateJ, 8, '0', ALIGN_RIGHT); // Numéro dans la séquence
|
||||
$DBILS2.=exporte($typEnr, 1); // Type d'enregistrement 1=EntConf, 2=Rejet, 4=Multipropo, 5=Suivi MAJ Entrep, 7=Infos, 8=Envoi documen, 9=Annonce
|
||||
$DBILS2.=exporte('ID', 3); // Structure identité
|
||||
$DBILS2.=exporte('A', 1); // Confirmation 'A'uto ou 'C' pour manuelle
|
||||
$DBILS2.=exporte($ref, 30); // Réf. Client
|
||||
//($annonce['codePostalSiege'], 5, '0', ALIGN_RIGHT)
|
||||
$DBILS2.=exporte($SOORIG, 1); // 1:Insee actif, 2=Ufs, 3=Annonce, 4=Manuelle, 5=Asso, 7=RCS actif, 8=Insee cessa eco, 9=Insee/RCS radié
|
||||
$DBILS2.=exporte('', 1); // D=Siren douteux
|
||||
$DBILS2.=initstr('', 9); // Témoin de MAJ
|
||||
$DBILS2.=exporte($rs, 60); //
|
||||
$DBILS2.=exporte(substr($rs,60),30); //
|
||||
$DBILS2.=exporte($tabIdentite['Sigle'], 30); // Vide !
|
||||
$DBILS2.=exporte($ens, 60); //
|
||||
$DBILS2.=initstr($adrNum, 4, '0', ALIGN_RIGHT); //
|
||||
$DBILS2.=exporte($adrBtq, 1); //
|
||||
$DBILS2.=exporte(preg_replace('/ +/',' ',$adrVoi.' '.$adrLib), 33); //
|
||||
$DBILS2.=exporte($adrVil, 32); //
|
||||
$DBILS2.=initstr($adrCP, 5, '0', ALIGN_RIGHT); //
|
||||
$DBILS2.=exporte(preg_replace('/ +/',' ',$adrL2.' '.$adrL3), 30); //
|
||||
$DBILS2.=exporte($tabIdentite['DateCreaEn'], 8); // Date créa ENT
|
||||
$DBILS2.=exporte($tabIdentite['Siege'], 1); // Statut de l'établissement
|
||||
$DBILS2.=initstr($tabIdentite['FJ'], 4, 0, ALIGN_RIGHT);
|
||||
$DBILS2.=exporte($SOTSEX, 1); // Sexe M/F
|
||||
|
||||
$DBILS2.=initstr($tabIdentite['NbEtab']*1, 4, 0, ALIGN_RIGHT);
|
||||
$DBILS2.=exporte($SOSTAE, 4); // NAF4 ENT
|
||||
$DBILS2.=exporte('', 4); // Famille ENT
|
||||
$DBILS2.=exporte($SOSTAE, 4); // NAF4 ETAB
|
||||
$DBILS2.=exporte('', 4); // Famille ETAB
|
||||
$DBILS2.=exporte('', 3);
|
||||
$DBILS2.=initstr(0, 13, '0', ALIGN_RIGHT); // Filler A1
|
||||
$DBILS2.=exporte('', 16); // Filler A2
|
||||
$DBILS2.=initstr(strtr($tabIdentite['Tel'],array('.'=>'','+'=>'00',' '=>'','-'=>'','/'=>'')), 10, '0', ALIGN_RIGHT);
|
||||
$DBILS2.=initstr(strtr($tabIdentite['Fax'],array('.'=>'','+'=>'00',' '=>'','-'=>'','/'=>'')), 10, '0', ALIGN_RIGHT);
|
||||
//5630Z5630Z RUE 00000000 00000000 2901929019
|
||||
$DBILS2.=exporte($tabIdentite['Web'], 40); //
|
||||
$DBILS2.=exporte('', 63); // Filler B1
|
||||
$DBILS2.=initstr(0, 8, '0', ALIGN_RIGHT); // Filler B2
|
||||
$DBILS2.=exporte('', 79);
|
||||
$DBILS2.=exporte($tabIdentite['NafEnt'], 5);
|
||||
$DBILS2.=exporte($tabIdentite['NafEtab'], 5);
|
||||
$DBILS2.=exporte('', 18);
|
||||
$DBILS2.=exporte('', 9); // RUE ?
|
||||
$DBILS2.=initstr(0, 8, '0', ALIGN_RIGHT); // Filler B2
|
||||
$DBILS2.=exporte('', 6);
|
||||
$DBILS2.=initstr(0, 8, '0', ALIGN_RIGHT); // Filler B2
|
||||
$DBILS2.=exporte('', 20);
|
||||
$DBILS2.=exporte($tabIdentite['Dept'], 2); // Département du siège
|
||||
$DBILS2.=exporte($tabIdentite['codeCommune'], 3); // Localité
|
||||
$DBILS2.=exporte($tabIdentite['Dept'], 2); // Département de l'étab
|
||||
$DBILS2.=exporte($tabIdentite['codeCommune'], 3); // Localité
|
||||
$DBILS2.=exporte('', 39); // Filler C
|
||||
|
||||
$ligneID=$DBILS2;
|
||||
$ligne100++;
|
||||
$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;
|
||||
}
|
||||
$codeTri= substr($ligne, 89 , 6 ); // Code Tribunal Codification interne utilisée par le Bodacc
|
||||
$libTri=$iBodacc->getTribunalNom($codeTri);
|
||||
|
||||
$SOSEQ++;
|
||||
if ($bodacc=='A') $SOJAL='001';
|
||||
elseif ($bodacc=='B') $SOJAL='200';
|
||||
elseif ($bodacc=='C') $SOJAL='300';
|
||||
else $SOJAL='999';
|
||||
$DBILS2 =initstr($SONABO, 9, '0', ALIGN_RIGHT); // Numéro d'abonné BIL ?
|
||||
$DBILS2.=initstr($SONUME, 9, '0', ALIGN_RIGHT); // Numéro d'entreprise BIL ?
|
||||
$DBILS2.=initstr($SONUS, 9, '0', ALIGN_RIGHT); // Numéro d'UFS BIL ?
|
||||
$DBILS2.=initstr($nann, 9, '0', ALIGN_RIGHT); // Numéro d'annonce BIL ?
|
||||
$DBILS2.=initstr($siren, 9, '0', ALIGN_RIGHT); // Siren
|
||||
$DBILS2.=initstr($nic, 5, '0', ALIGN_RIGHT); // Nic
|
||||
$DBILS2.=exporte('SE', 2); // Code produit BIL ? SE, DE, DI, SJ
|
||||
$DBILS2.=initstr($SOSEQ, 5, '0', ALIGN_RIGHT); // Numéro dans la séquence
|
||||
$DBILS2.=initstr($dateJ, 8, '0', ALIGN_RIGHT); // Numéro dans la séquence
|
||||
$DBILS2.=exporte('9', 1); // Type d'enregistrement 1=EntConf, 2=Rejet, 4=Multipropo, 5=Suivi MAJ Entrep, 7=Infos, 8=Envoi documen, 9=Annonce
|
||||
$DBILS2.=exporte('ANN', 3); // Structure identité
|
||||
$DBILS2.=exporte('A', 1); // Confirmation 'A'uto ou 'C' pour manuelle
|
||||
$DBILS2.=exporte($ref, 30); // Réf. Client
|
||||
//($annonce['codePostalSiege'], 5, '0', ALIGN_RIGHT)
|
||||
$DBILS2.=exporte($SOORIG, 1); // 1:Insee actif, 2=Ufs, 3=Annonce, 4=Manuelle, 5=Asso, 7=RCS actif, 8=Insee cessa eco, 9=Insee/RCS radié
|
||||
$DBILS2.=exporte($SOJAL, 3); // 001=Bodacc A, 200=Bodacc B, 300=Bodacc C
|
||||
$DBILS2.=exporte($datePar, 8); // Date de parution
|
||||
$DBILS2.=initstr(0, 5, '0', ALIGN_RIGHT); // Page
|
||||
if ($codeEve=='') {
|
||||
$message.="Code évènement non géré : '$codeEven'".EOL;
|
||||
sendMail('infoslegales@scores-decisions.com', 'ylenaour@scores-decisions.com', "Surveillance Annonces Legales SOFID (ERREUR)", $message);
|
||||
die($message);
|
||||
}
|
||||
$DBILS2.=exporte($codeEve, 2); //
|
||||
$DBILS2.=initstr($depPar, 2, '0', ALIGN_RIGHT);
|
||||
$DBILS2.=initstr($numAnn, 6, '0', ALIGN_RIGHT);
|
||||
$DBILS2.=exporte($codeRol, 1); //
|
||||
$DBILS2.=exporte($tabEvenSolib[$codeEve], 5);
|
||||
$DBILS2.=exporte($codeTri, 6); //
|
||||
$DBILS2.=exporte($numPar, 3); //
|
||||
$DBILS2.=initstr($dateJuge, 8, '0', ALIGN_RIGHT); // Date de jugement
|
||||
$DBILS2.=initstr($dateEffet, 8, '0', ALIGN_RIGHT); // Date d'effet
|
||||
$DBILS2.=initstr($dateCess, 8, '0', ALIGN_RIGHT); // Date de cessat° des paiements
|
||||
$DBILS2.=exporte($vteDev, 2); // Devise de la vente
|
||||
$DBILS2.=initstr($vteMnt, 11, '0', ALIGN_RIGHT); // Montant de la vente
|
||||
$DBILS2.=exporte('', 33); // Particularité
|
||||
$DBILS2.=exporte('', 4); // Code rubrique du Bodacc A1xx
|
||||
$DBILS2.=exporte('', 6); // Code lib injecté
|
||||
|
||||
$tabJuge=$iRncs->getIntervenants($siren);
|
||||
foreach ($tabJuge as $iDepot=>$depot) {
|
||||
$DBILS2.=exporte('', 5); // Mot clé Nom
|
||||
$DBILS2.=exporte('', 1); // Type officier ministeriel
|
||||
$DBILS2.=exporte($depot['admcode'], 7); // Code Bil
|
||||
$DBILS2.=exporte($depot['admnom'], 30); // Nom syndic
|
||||
$DBILS2.=exporte($depot['admadrNum'], 4); // N° rue
|
||||
$DBILS2.=exporte($depot['admadrInd'], 1); // Bis
|
||||
$DBILS2.=exporte('', 3); // Type Voie
|
||||
$DBILS2.=exporte($depot['admadrVoie'], 33); // Lib Voie
|
||||
$DBILS2.=exporte('', 32); // Lieu
|
||||
$DBILS2.=exporte($depot['admadrCP'], 5); // CP
|
||||
$DBILS2.=exporte($depot['admadrVille'], 32); // Ville
|
||||
$DBILS2.=exporte('', 10); // Tel
|
||||
if ($iDepot==1) break;
|
||||
}
|
||||
|
||||
$ligneANN=$DBILS2;
|
||||
$txtAnn='';
|
||||
//if ($ligne100>1) $ecrireLignePre=true;
|
||||
break;
|
||||
case 104: // Annonce
|
||||
$ligne104++;
|
||||
$txtAnn=trim($txtAnn.' '.trim(substr($ligne, 89 , 1910))); // Texte Annonce
|
||||
break;
|
||||
default: // Ligne non gérée
|
||||
break;
|
||||
}
|
||||
if ($ecrireLignePre) {
|
||||
fwrite($fp, $ligneOut.EOL);
|
||||
$ecrireLignePre=false;
|
||||
}
|
||||
}
|
||||
fclose($fp);
|
||||
|
||||
// die('FIN PROVISOIRE !'.EOL);
|
||||
if (bzip2(DIR_SOFID_IN.$nomFichierIn, DIR_SOFID_IN.$nomFichierIn)) {
|
||||
unlink(DIR_SOFID_IN.$nomFichierIn);
|
||||
echo date ('Y/m/d - H:i:s') . " - Le fichier n°$iFic, $nomFichierIn vient d'être historisé.".EOL;
|
||||
}
|
||||
|
||||
if ($ligne100==0) {
|
||||
// Le fichier est vide, on le supprime
|
||||
unlink(DIR_SOFID_OUT.$nomFichierOut);
|
||||
} else {
|
||||
// On génère un AR de fin de transmission
|
||||
file_put_contents(DIR_SOFID_OUT.str_replace('.fic','.top',$nomFichierOut),'OK');
|
||||
}
|
||||
}
|
||||
|
||||
sendMail('infoslegales@scores-decisions.com', 'ylenaour@scores-decisions.com', "Surveillance Annonces Legales SOFID", "Conversion terminée. Penser à déposer le fichier !!!");
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Conversion terminée !" . EOL;
|
||||
die();
|
||||
|
||||
?>
|
468
batch/convertSdVerdoso.php
Normal file
468
batch/convertSdVerdoso.php
Normal file
@ -0,0 +1,468 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
//define('VERSION_FICHIER_BODACC','0106');
|
||||
define('DIR_RECORDATI_IN','/mnt/samba/partage/production/');
|
||||
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMScores.php');
|
||||
//include_once(INCLUDE_PATH.'partenaires/classMRncs.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
|
||||
$iBodacc=new MBodacc();
|
||||
$iInsee=new MInsee();
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Conversion d'un flux surveillance/diffusion Bodacc S&D en fichier spécifique Verdoso.
|
||||
|
||||
";/*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).
|
||||
";*/
|
||||
|
||||
$tabFichLigneCmd=$tabFichier=array();
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
} else $tabFichLigneCmd[]=$argv[$i];
|
||||
}
|
||||
if (count($tabFichLigneCmd)==0) {
|
||||
$dh = opendir(DIR_RECORDATI_IN);
|
||||
while (false !== ($filename = readdir($dh))) {
|
||||
if ($filename<>'.' && $filename<>'..' && substr($filename, -4)=='.txt' &&
|
||||
substr($filename, 0,35)=='diffusionBodacc_DIFBODPRDMAIVERDOSO')
|
||||
$tabFichier[] = $filename;
|
||||
}
|
||||
sort($tabFichier);
|
||||
} else $tabFichier=$tabFichLigneCmd;
|
||||
|
||||
if (count($tabFichier)==0 && count($tabFichLigneCmd)==0) die(date ('Y/m/d - H:i:s') . " - Aucun fichier Verdoso à traiter !".EOL);
|
||||
//print_r($tabFichier);
|
||||
//die();
|
||||
|
||||
$message='';
|
||||
$ligne001=$ligne100=$ligne104=$ligne999=0;
|
||||
|
||||
for ($iFic=0; isset($tabFichier[$iFic]); $iFic++)
|
||||
{
|
||||
$nomFichier =$tabFichier[$iFic];
|
||||
|
||||
$ligne001=$ligne100=$ligne104=$ligne999=0;
|
||||
|
||||
$tabLignes=file(DIR_RECORDATI_IN.$nomFichier);
|
||||
$nomFichierHebdo=DIR_RECORDATI_IN.'SD_Verdoso_'.date('Y\sW').'.csv';
|
||||
$fp=fopen($nomFichierHebdo, 'a+');
|
||||
while(!feof($fp)) {
|
||||
fgets($fp,4096);
|
||||
$nbLignesDeja++;
|
||||
}
|
||||
rewind($fp);
|
||||
|
||||
/*
|
||||
echo "Fichier Hebdomadaire: $nomFichierHebdo".EOL;
|
||||
echo "Il y a $nbLignesDeja ligne(s) dans le fichier à l'ouverture".EOL;
|
||||
*/
|
||||
foreach ($tabLignes as $i=>$ligne) {
|
||||
$ecrireLignePre=false;
|
||||
$typeLigne=substr($ligne, 0, 3)*1;
|
||||
switch ($typeLigne) {
|
||||
case 1: // Ligne ignorée
|
||||
// Ecriture de l'entête
|
||||
$idannPre ='Identifiant Annonce';
|
||||
$siren ='Siren';
|
||||
$nic ='Nic';
|
||||
$ref ='Référence';
|
||||
$numPar ='Parution';
|
||||
$bodacc ='Bodacc';
|
||||
$datePar='Date parution';
|
||||
$numAnn ='Numéro Annonce';
|
||||
$cor ='Type Annonce';
|
||||
$libTri ='Tribunal';
|
||||
$numRC ='Numéro RCS';
|
||||
$raisonS='Raison sociale';
|
||||
$catEven='Chapitre';
|
||||
$txtEven='Evènement(s)';
|
||||
$txtAnn ='Texte Annonce';
|
||||
$inter ='Acheteur/Vendeur';
|
||||
$sirenV ='Siren Vendeur';
|
||||
$raisonSV='Nom Vendeur';
|
||||
$sirenA ='Siren Acheteur';
|
||||
$raisonSA='Nom Acheteur';
|
||||
$adresseFond='Adresse du fond';
|
||||
$montantVente='Montant de la vente';
|
||||
$deviseVente='Devise';
|
||||
$dateVente='Date de la vente';
|
||||
$opposition='Opposition';
|
||||
|
||||
$naf='NAF';
|
||||
$nafLib='Libellé NAF';
|
||||
$fj='Forme Jur.';
|
||||
$fjLib='Libellé Forme Juridique';
|
||||
$effectif='Effectif';
|
||||
$typeEf="Type d'effectif";
|
||||
$dateBilan='Date Bilan';
|
||||
$ca="Chiffre d'affaire en ME";
|
||||
$typeCa='Type CA';
|
||||
$capital='Capital';
|
||||
$dept='Dépt. Siège';
|
||||
$annee='Année de Création';
|
||||
|
||||
$ligneOut="$siren;$datePar;$raisonS;$txtEven;$naf;$nafLib;$fj;$fjLib;$effectif;$typeEf;$dateBilan;$ca;$typeCa;$capital;$dept;$annee;$txtAnn";
|
||||
if ($nbLignesDeja<2) {
|
||||
fwrite($fp, $ligneOut.EOL);
|
||||
}
|
||||
$ligne001++;
|
||||
break;
|
||||
case 100: // Structure Bodacc
|
||||
|
||||
/*Identité du vendeur Rubrique Siren acheteur Raison Sociale Adresse du fonds */
|
||||
$ligne100++;
|
||||
$idann = substr($ligne, 3 , 10 )*1; // Id interne de l'annonce S&D
|
||||
if ($idannPre<>$idann) {
|
||||
/** Recherche de l'oppositions
|
||||
**/
|
||||
if (preg_match('/Oppositions(?: )\:(.*)(?:Commentaires|\.$)/Uis', $txtAnn, $matches))
|
||||
$opposition=trim($matches[1]);
|
||||
/** Rechercher du montant de la vente
|
||||
**/
|
||||
if (preg_match("/(?:prix|montant|indémni|indemni|évalu|evalu|éstim|estim)\D{1,15}([0-9\.,\?\s ]*)(?:eur|euro|euros)/i", $txtAnn, $matches)) {
|
||||
$montantVente=''.trim($matches[1]);
|
||||
echo "Montant de la vente AV: $montantVente\n";
|
||||
if (substr($montantVente,-3,1)==',') {
|
||||
$montantVente=substr($montantVente,0,strlen($montantVente)-3);
|
||||
// echo "ICI1\n";
|
||||
}
|
||||
elseif (substr($montantVente,-3,1)=='.') {
|
||||
echo "'".substr($montantVente,-3,3)."'\n";
|
||||
$montantVente=substr($montantVente,0,strlen($montantVente)-3);
|
||||
// echo "ICI2\n";
|
||||
}
|
||||
$montantVente=strtr($montantVente,array('.'=>'',','=>'',' '=>''));
|
||||
|
||||
$deviseVente='EUR';
|
||||
//echo "Montant de la vente AP: $montantVente\n";
|
||||
}
|
||||
/** Recherche de la date de la vente
|
||||
**/
|
||||
if ($dateVente=='00/00/0000') {
|
||||
if (preg_match_all("/([0-9].{1,3})(janvier|f.vrier|mars|avril|mai|juin|juillet|ao.t|septembre|octobre|novembre|d.cembre).{1,2}([0-9]{4,4})/i", $txtAnn, $matches)) {
|
||||
//print_r($matches);
|
||||
//echo "Date de la vente : $dateVente\n";
|
||||
$dateVente=end($matches[0]);
|
||||
//die($txtAnn);
|
||||
}
|
||||
}
|
||||
if ($catEven=='procol') {
|
||||
$adresseFond=$adresse;
|
||||
if (preg_match('/Complément de jugement(?: )\:(.*)$/Uis', $txtAnn, $matches))
|
||||
$opposition=trim($matches[1]);
|
||||
else
|
||||
$opposition='';
|
||||
}
|
||||
|
||||
//$ligneOut="$idannPre;$sirenV;$raisonSV;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$sirenA;$raisonSA;$catEven;$txtEven;$adresseFond;$montantVente;$deviseVente;$dateVente;$opposition;$txtAnn";
|
||||
|
||||
if ($idannPre<>'Identifiant Annonce' && !$ignoreAnnPre) {
|
||||
|
||||
// $ligneOut="$idann;$siren;$nic;$inter;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$numRC;$raisonS;$catEven;$txtEven;$naf;$nafLib;$fj;$fjLib;$effectif;$typeEf;$dateBilan;$ca;$typeCa;$capital;$dept;$annee;$txtAnn";
|
||||
$ligneOut="$siren;$datePar;$raisonS;$txtEven;$naf;$nafLib;$fj;$fjLib;$effectif;$typeEf;$dateBilan;$ca;$typeCa;$capital;$dept;$annee;$txtAnn";
|
||||
fwrite($fp, $ligneOut.EOL);
|
||||
|
||||
$sirenAffV=implode(' ', str_split($sirenV,3));
|
||||
if ($sirenA*1>0) $sirenAffA='(Siren : '.implode(' ', str_split($sirenA,3)).')';
|
||||
else $sirenAffA='';
|
||||
$message.="Siren : $sirenAffV\r\n";
|
||||
$message.="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.="NAF : $nafLib ($naf)\r\n";
|
||||
$message.="FJ : $fjLib ($fj)\r\n";
|
||||
$message.="Effectif $typeEf : $effectif\r\n";
|
||||
$message.="Dernier Bilan : $dateBilan\r\n";
|
||||
$message.="Chiffre d'Affaire $typeCa: $ca ME\r\n";
|
||||
$message.="Capital : $capital\r\n";
|
||||
$message.="Département : $dept\r\n";
|
||||
$message.="Année de création : $annee\r\n";
|
||||
/*
|
||||
|
||||
|
||||
|
||||
[dir1Titre] => Gérant
|
||||
[dir1NomPrenom] => TROJMAN Stella
|
||||
|
||||
[Activite] => Travaux de revêtement des sols et des murs
|
||||
[dir1DateNaiss] => 1941
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$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;
|
||||
}
|
||||
$codeTri= substr($ligne, 89 , 6 ); // Code Tribunal Codification interne utilisée par le Bodacc
|
||||
$libTri=$iBodacc->getTribunalNom($codeTri);
|
||||
|
||||
$numRC = trim(substr($ligne, 95 , 9 )); // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
$raisonS= trim(substr($ligne, 104 , 150 )); // Raison sociale de l'entreprise
|
||||
$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;
|
||||
if ($sirenV>1000)
|
||||
$tabIdentite=@$iInsee->getIdentiteEntreprise($sirenV,0,0,0,0);
|
||||
else
|
||||
$tabIdentite=array();
|
||||
|
||||
//getIdentiteEntreprise($siren, $nic=0, $id=0, $forceVerif=false, $accesDist=true) {
|
||||
$naf=$tabIdentite['NafEnt'];
|
||||
$nafLib=$tabIdentite['NafEntLib'];
|
||||
$fj=$tabIdentite['FJ'];
|
||||
$fjLib=$tabIdentite['FJ_lib'];
|
||||
$capital=$tabIdentite['Capital'].' '.$tabIdentite['CapitalDev'];
|
||||
$dept=$tabIdentite['Dept'];
|
||||
$annee=substr($tabIdentite['DateCreaEt'],0,4)*1;
|
||||
if ($annee>substr($tabIdentite['DateCreaEn'],0,4)*1)
|
||||
$annee=substr($tabIdentite['DateCreaEn'],0,4);
|
||||
if ($annee>substr($tabIdentite['dateImmat'],0,4)*1)
|
||||
$annee=substr($tabIdentite['dateImmat'],0,4);
|
||||
|
||||
$effInsee=$tabIdentite['Effectif'];
|
||||
$caInsee=$tabIdentite['TrancheCA'];
|
||||
|
||||
$effBilan=$tabIdentite['bilanYP'];
|
||||
$caBilan=$tabIdentite['bilanFL'];
|
||||
$dateBilan=str_replace('//','',WDate::dateT('Ymd','d/m/Y',$tabIdentite['bilanDate']));
|
||||
|
||||
if ($effBilan>0) { $effectif=$effBilan; $typeEf='Réel'; }
|
||||
elseif ($effInsee>0) { $effectif=$effInsee; $typeEf='Estimé'; }
|
||||
else { $effectif='N/C'; $typeEf=''; }
|
||||
|
||||
$caEstime=0;
|
||||
if ($caInsee<5 || $tabIdentite['bilanDate']*1==0)
|
||||
$caEstime=$iInsee->getCAnafEffectif($naf, $effInsee);
|
||||
|
||||
if ($caInsee>=5 || $caEstime>=10000000 || $caBilan>=10000000) {
|
||||
if ($caBilan>0) { $ca=round($caBilan/1000000); $typeCa='Réel'; }
|
||||
elseif ($caInsee==5){ $ca=10; $typeCa='Approchant'; }
|
||||
elseif ($caInsee==6){ $ca=20; $typeCa='Approchant'; }
|
||||
elseif ($caInsee==7){ $ca=50; $typeCa='Approchant'; }
|
||||
elseif ($caInsee==8){ $ca=100; $typeCa='Approchant'; }
|
||||
elseif ($caInsee==9){ $ca=200; $typeCa='Approchant'; }
|
||||
else { $ca=round($caEstime/1000000); $typeCa='Estimé'; }
|
||||
$ignoreAnnPre=false;
|
||||
} else {
|
||||
// On ignore cette ligne
|
||||
$txtEven=substr($txtEven,0,strlen($txtEven)-2);
|
||||
$txtAnn='';
|
||||
if ($idannPre<>$idann) $ecrireLignePre=true;
|
||||
else $ecrireLignePre=false;
|
||||
$idannPre=$idann;
|
||||
$ignoreAnnPre=true;
|
||||
}
|
||||
/*print_r($tabIdentite);
|
||||
die();
|
||||
*/
|
||||
}
|
||||
|
||||
$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";
|
||||
if ($idann<>'Identifiant Annonce' && !$ignoreAnnPre) {
|
||||
//$ligneOut="$idann;$siren;$nic;$inter;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$numRC;$raisonS;$catEven;$txtEven;$naf;$nafLib;$fj;$fjLib;$effectif;$typeEf;$dateBilan;$ca;$typeCa;$capital;$dept;$annee;$txtAnn";
|
||||
$ligneOut="$siren;$datePar;$raisonS;$txtEven;$naf;$nafLib;$fj;$fjLib;$effectif;$typeEf;$dateBilan;$ca;$typeCa;$capital;$dept;$annee;$txtAnn";
|
||||
fwrite($fp, $ligneOut.EOL);
|
||||
$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.="NAF : $nafLib ($naf)\r\n";
|
||||
$message.="FJ : $fjLib ($fj)\r\n";
|
||||
$message.="Effectif $typeEf : $effectif\r\n";
|
||||
$message.="Dernier Bilan : $dateBilan\r\n";
|
||||
$message.="Chiffre d'Affaire $typeCa: $ca ME\r\n";
|
||||
$message.="Capital : $capital\r\n";
|
||||
$message.="Département : $dept\r\n";
|
||||
$message.="Année de création : $annee\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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
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°$iFic, $nomFichier vient d'être historisé.".EOL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (date('w')==5) {
|
||||
$tabAttached=array($nomFichierHebdo);
|
||||
$messageInfo="Bonjour,
|
||||
|
||||
Veuillez trouver le fichier hebdomadaire des Jugements d'Ouvertures de Sauvegarde et de Redressement Judiciaire.
|
||||
|
||||
Bien Cordialement,
|
||||
Le service Support.
|
||||
|
||||
--
|
||||
|
||||
SCORES & DECISIONS
|
||||
Service support
|
||||
1, rue de Clairefontaine - 78120 RAMBOUILLET
|
||||
tél : 33 (0)1 75 43 80 10
|
||||
fax : 33 (0)1 75 43 85 74
|
||||
support@scores-decisions.com
|
||||
http://www.scores-decisions.com/
|
||||
Scores & Décisions est l'acteur nouvelle génération de l'information et de l'évaluation des entreprises
|
||||
|
||||
Pensez à l'environnement avant d'imprimer ce message !
|
||||
Save paper - think before you print";
|
||||
|
||||
//$emailEnvoi='vfahmy@verdoso.com,contact@scores-decisions.com';
|
||||
$emailEnvoi='ylenaour@scores-decisions.com';
|
||||
if ($catEven<>'Chapitre') {
|
||||
sendMail('infoslegales@scores-decisions.com', $emailEnvoi, "Surveillance Annonces Legales", $messageInfo, '', $tabAttached);
|
||||
//sendMail('infoslegales@scores-decisions.com', 'jean.frederic.lambert@gmail.com', "Surveillance Annonces Legales", $messageInfo, '', $tabAttached);
|
||||
}
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Conversion terminée !" . EOL;
|
||||
die();
|
||||
|
||||
?>
|
552
batch/diffusionAsso.php
Normal file
552
batch/diffusionAsso.php
Normal file
@ -0,0 +1,552 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
/**
|
||||
* @todo
|
||||
* 1. Numéroter toutes les procédures OK
|
||||
* 2. Pouvoir faire du multiligne avec : 100 Annonce Bodacc
|
||||
* 101 Commentaire
|
||||
* 102 Activite déclaré au Bodacc
|
||||
* 103 texte rectificatif
|
||||
* 104 Annonce complète au format texte
|
||||
* 105 Structure Dirigeants BODACC
|
||||
* 106 Libellé du Périmètre de la vente
|
||||
* 3.
|
||||
* 5. JugesCommissaires à intégrer correctement
|
||||
|
||||
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
|
||||
*/
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
|
||||
$repProduction='/mnt/samba/partage/production/';
|
||||
|
||||
$incrementationDesTour=true;
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Génère les fichiers de diffusion des des annonces BODACC.
|
||||
|
||||
Options :
|
||||
-i Ne pas incrémenter les numéros de tour (pour les tests).
|
||||
";
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']>1)
|
||||
{
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'i':
|
||||
$incrementationDesTour=false;
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$typePrestaton='diffusionBodacc';
|
||||
$iDb=new WDB('jo');
|
||||
$iDb2=new WDB('jo');
|
||||
|
||||
function genereMultiLigne($typeLigne, $enteteLigne, $chaine, $eol="\r\n", &$nbLignes=0) {
|
||||
$lonLigne=LONGUEUR_LIGNE_SORTIE-90;
|
||||
$str='';
|
||||
switch ($typeLigne) {
|
||||
case '102': // Activité déclarée au Bodacc
|
||||
case '103': // Texte rectificatif
|
||||
case '104': // Annonce Bodacc Complète
|
||||
case '105': // Structure dirigeants
|
||||
$tabLigne=str_split($chaine, $lonLigne);
|
||||
foreach ($tabLigne as $i=>$ligne) {
|
||||
$str.=rtrim($typeLigne.$enteteLigne.$ligne).$eol;
|
||||
$nbLignes++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
die("ERREUR : Structure de sortie n°$typeLigne non prise en charge !\n");
|
||||
break;
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
function getListeAdherents($prestation) {
|
||||
$iDbCrm=new WDB('sugarcrm');
|
||||
$rep=$iDbCrm->select('cases_cstm q, accounts a, cases p LEFT JOIN contacts_cases k ON p.id = k.case_id LEFT JOIN contacts c ON k.contact_id = c.id LEFT JOIN contacts_cstm s ON c.id = s.id_c',
|
||||
'p.id, p.case_number, p.name, p.account_id, a.name, q.typeprestation_c, q.datemiseenplace_c, q.datefinprestation_c, q.prestatest_c, q.loginprestation_c, q.passwordprestation_c, q.supportprestation_c, q.optionsupport_c, q.freqenvois_c, q.formatdesenvois_c, q.trtnumerotour_c, q.trtdatederniereexec_c, q.optionsprestation_c, k.contact_id, k.deleted as lienContactDeleted, c.deleted as ContactDeleted, c.salutation, c.first_name, c.last_name, c.title, c.department, c.phone_mobile, c.phone_work, c.phone_fax, c.email1, c.email2, c.primary_address_street, c.primary_address_city, c.primary_address_postalcode, s.typedecontact_c', "p.deleted=0 AND p.id=q.id_c AND q.typeprestation_c='$prestation' AND q.prestationactive_c=1 AND p.account_id=a.id AND a.deleted=0 ORDER BY p.case_number ASC", true, MYSQL_ASSOC);
|
||||
//print_r($rep);
|
||||
$tabPrestation=array();
|
||||
foreach ($rep as $i=>$contacts) {
|
||||
$numPrestation=$contacts['case_number'];
|
||||
if ($contacts['lienContactDeleted']==0 && $contacts['ContactDeleted']==0) {
|
||||
if ($contacts['email1']<>'') $email=$contacts['email1'];
|
||||
else $email=$contacts['email2'];
|
||||
if (!isset($tabPrestation[$numPrestation])) {
|
||||
// echo "Ligne $i, prestation $numPrestation : ".$contacts['last_name']."\n";
|
||||
$tabPrestation[$numPrestation]=array('id'=>$contacts['case_number'],
|
||||
'idPrestationBdd'=>$contacts['id'],
|
||||
'nomClient'=>$contacts['name'],
|
||||
'typePrestation'=>$contacts['typeprestation_c'],
|
||||
'dateDebut'=>$contacts['datemiseenplace_c'],
|
||||
'dateFin'=>$contacts['datefinprestation_c'],
|
||||
'test'=>$contacts['prestatest_c'],
|
||||
'loginPrestation'=>$contacts['loginprestation_c'],
|
||||
'passwPrestation'=>$contacts['passwordprestation_c'],
|
||||
'supportPrestation'=>$contacts['supportprestation_c'],
|
||||
'optionSupport'=>$contacts['optionsupport_c'],
|
||||
'freqEnvois'=>$contacts['freqenvois_c'],
|
||||
'formatEnvois'=>$contacts['formatdesenvois_c'],
|
||||
'numeroDeTour'=>$contacts['trtnumerotour_c'],
|
||||
'dateDerniereExec'=>$contacts['trtdatederniereexec_c'],
|
||||
'optionPrestation'=>$contacts['optionsprestation_c'],
|
||||
'contacts'=>array(array( 'salutation'=>$contacts['salutation'],
|
||||
'prenom'=>$contacts['first_name'],
|
||||
'nom'=>$contacts['last_name'],
|
||||
'fonction'=>$contacts['title'],
|
||||
'tel_por'=>$contacts['phone_mobile'],
|
||||
'tel_bur'=>$contacts['phone_work'],
|
||||
'tel_fax'=>$contacts['phone_fax'],
|
||||
'email'=>$email,
|
||||
'adresse'=>$contacts['primary_address_street'],
|
||||
'ville'=>$contacts['primary_address_city'],
|
||||
'codePos'=>$contacts['primary_address_postalcode'],
|
||||
'typeContact'=>$contacts['typedecontact_c'])));
|
||||
} else {
|
||||
// echo "Ligne $i, prestation $numPrestation : ".$contacts['last_name']."\n";
|
||||
$tabPrestation[$numPrestation]['contacts']=array_merge($tabPrestation[$numPrestation]['contacts'], array(
|
||||
array( 'salutation'=>$contacts['salutation'],
|
||||
'prenom'=>$contacts['first_name'],
|
||||
'nom'=>$contacts['last_name'],
|
||||
'fonction'=>$contacts['title'],
|
||||
'tel_por'=>$contacts['phone_mobile'],
|
||||
'tel_bur'=>$contacts['phone_work'],
|
||||
'tel_fax'=>$contacts['phone_fax'],
|
||||
'email'=>$email,
|
||||
'adresse'=>$contacts['primary_address_street'],
|
||||
'ville'=>$contacts['primary_address_city'],
|
||||
'codePos'=>$contacts['primary_address_postalcode'],
|
||||
'typeContact'=>$contacts['typedecontact_c'])));
|
||||
}
|
||||
}}
|
||||
return $tabPrestation;
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début du traitement diffusion BODACC.\n";
|
||||
|
||||
/** On récupère la liste des Adhérents **/
|
||||
|
||||
$tabAdherents=getListeAdherents($typePrestaton);
|
||||
//print_r($tabAdherents);
|
||||
$nbClients=count($tabAdherents);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbClients client(s) à servir en diffusion BODACC.".EOL;
|
||||
//print_r($tabAdherents);die();
|
||||
foreach ($tabAdherents as $i=>$tabAdherent) // On boucle sur les prestations
|
||||
{
|
||||
$clientNumTourFichier=($tabAdherent['numeroDeTour']*1)+1;
|
||||
$clientIdentifiant=trim($tabAdherent['loginPrestation']);
|
||||
$nomClient=trim($tabAdherent['nomClient']);
|
||||
$numPrestation=$tabAdherent['id'];
|
||||
/** Le client souhaite une compression du fichier ? **/
|
||||
if (strpos($tabAdherent['optionSupport'], 'gzip')) $optionZip='gzip';
|
||||
elseif (strpos($tabAdherent['optionSupport'], 'zip')) $optionZip='zip';
|
||||
else $optionZip='none';
|
||||
|
||||
/** Le client préfère un paramétrage UNIX ou Window pour ses fins de lignes **/
|
||||
if (strpos($tabAdherent['optionSupport'], 'os=dos')) $optionEOL="\r\n";
|
||||
elseif (strpos($tabAdherent['optionSupport'], 'os=unix')) $optionEOL="\n";
|
||||
else $optionEOL=EOL;
|
||||
|
||||
$tabOptOutput=array();
|
||||
|
||||
if($tabAdherent['dateDebut']<>'' && $tabAdherent['dateDebut']<>'0000-00-00')
|
||||
$dateDebutPrestation=WDate::dateT('Y-m-d', 'Ymd', $tabAdherent['dateDebut']);
|
||||
else
|
||||
$dateDebutPrestation=false;
|
||||
|
||||
if($tabAdherent['dateFin']<>'' && $tabAdherent['dateFin']<>'0000-00-00')
|
||||
$dateFinPrestation=WDate::dateT('Y-m-d', 'Ymd', $tabAdherent['dateFin']);
|
||||
else
|
||||
$dateFinPrestation=false;
|
||||
|
||||
if($tabAdherent['dateDerniereExec']<>'' && $tabAdherent['dateDerniereExec']<>'0000-00-00')
|
||||
$dateDernierTraitement=WDate::dateT('Y-m-d', 'Ymd', $tabAdherent['dateDerniereExec']);
|
||||
else
|
||||
$dateDernierTraitement=false;
|
||||
|
||||
if ($dateDebutPrestation && $dateDebutPrestation>DATE) // La date de démarrage de la prestation n'est pas encore arrivée
|
||||
{
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : La prestation démarre le $dateDebutPrestation !".EOL;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($dateFinPrestation && $dateFinPrestation>DATE) // La date de fin de la prestation est révolue
|
||||
{ echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Fin de la prestation le $dateFinPrestation (Dernière exécution le $dateDernierTraitement) !".EOL;
|
||||
continue;
|
||||
}
|
||||
/****
|
||||
if ($dateDernierTraitement && $dateDernierTraitement==DATE)
|
||||
{ echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Traitement déjà exécuté aujourd'hui !".EOL;
|
||||
continue;
|
||||
} elseif ($dateDernierTraitement==0) {
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Jamais exécutée pour ce client !".EOL;
|
||||
$dateDernierTraitement=false;
|
||||
/* Il faudra vérifier si on génère le stocke et depuis quand sinon on prond le dernier Bodacc */
|
||||
//} Bloc a décommenter
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Export des annonces en cours... (dernier traitement le $dateDernierTraitement)".EOL;
|
||||
|
||||
/**
|
||||
** On génère la ligne d'entête
|
||||
**/
|
||||
$fp=fopen(REP_TEMP . $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt', 'w');
|
||||
if ($fp==false) die('ERREUR : Impossible de créer le fichier !');
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
$str= initstr('001', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr(date('YmdHis'), 14) . // Date de génération du fichier
|
||||
initstr($clientNumTourFichier, 10, '0', ALIGN_RIGHT) . // Numéro de tour du fichier pour le client
|
||||
initstr($clientIdentifiant, 36) . // Identifiant Client
|
||||
initstr($typePrestaton, 32) . // Type de prestation
|
||||
'';
|
||||
fwrite($fp, $str.$optionEOL);
|
||||
$nbLignes=1;
|
||||
|
||||
/**
|
||||
** On génère les lignes de détail
|
||||
**/
|
||||
$strRubrique='';
|
||||
if (strpos($tabAdherent['optionPrestation'], 'comptes')) // Export du Bodacc C - Dépôt des comptes
|
||||
$strRubrique.="'comptes',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'creations')) // Export des créations
|
||||
$strRubrique.="'creations',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'mmd')) // Export des MMD
|
||||
$strRubrique.="'mmd',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'procol')) // Export des ProCol
|
||||
$strRubrique.="'procol',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'radiations')) // Export des radiations
|
||||
$strRubrique.="'radiations',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'ventes')) // Export des ventes cessions
|
||||
$strRubrique.="'ventes',";
|
||||
|
||||
if (strpos($tabAdherent['optionPrestation'], '101')) // Commentaire inclus dans l'annonce si nécessaire
|
||||
$tabOptOutput[101]=true; else $tabOptOutput[101]=false;
|
||||
if (strpos($tabAdherent['optionPrestation'], '102')) // Activite déclaré au Bodacc
|
||||
$tabOptOutput[102]=true; else $tabOptOutput[102]=false;
|
||||
if (strpos($tabAdherent['optionPrestation'], '104')) // Annonce complète au format texte
|
||||
$tabOptOutput[104]=true; else $tabOptOutput[104]=false;
|
||||
if (strpos($tabAdherent['optionPrestation'], '105')) // Structure Dirigeants BODACC
|
||||
$tabOptOutput[105]=true; else $tabOptOutput[105]=false;
|
||||
|
||||
$tabSiren=$iDb->select('mederic', 'distinct(siren)', '1', true, MYSQL_ASSOC);
|
||||
$nbSirenClient=count($tabSiren);
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : $nbSirenClient siren en surveillance.".EOL;
|
||||
$tabSiren2=array();
|
||||
foreach ($tabSiren as $siren) {
|
||||
$tabSiren2[]=$siren['siren'];
|
||||
}
|
||||
sort($tabSiren2);
|
||||
$tabSiren=$tabSiren2;
|
||||
unset($tabSiren2);
|
||||
//die();
|
||||
|
||||
$fields='id, d.siren, sirenValide, Bodacc_Num, Bodacc_Date_Parution, Num_Annonce, Rubrique_Bodacc, Rubrique, typeAnnonce, corrNum_Annonce, corrBodacc_Date_Parution, corrPage, corrNumParution, corrTexteRectificatif, RC, raisonSociale, nomCommercial, enseigne, nationalite, FJ, Capital, CapitalDev, adresse, adrNum, adrIndRep, adrTypVoie, adrLibVoie, adrComp1, adrComp2, codePostal, ville, adresseSiege, adrSiegeNum, adrSiegeIndRep, adrSiegeTypVoie, adrSiegeLibVoie, adrSiegeComp1, adrSiegeComp2, codePostalSiege, villeSiege, administration, activite, typeEven, commentaires, dateEffet, publication, publicationNom, publicationDate, fusion, dateDebutActivite, dateCessationActivite, dateCessationPaiement, dateJugement, Numero, VenteMt, VenteDev, bienAcqui, Mandataire, mandNom, mandRepr, mandAdresse, mandCP, mandVille, JugeCommissaire, jugeCommissaireSuppleant, ReprCreanciers, creaNom, creaRepr, creaAdresse, creaCP, creaVille, administrateur, admNom, admRepr, admAdresse, admCP, admVille, oppositions, oppoNom, oppoRepr, oppoAdresse, oppoCP, oppoVille, perimetre, dateFinDepotCreances, delaiDepotCreances, dateFinObservation, FinObservationBodacc, d.dateInsert';
|
||||
$where='1';
|
||||
// On filtre les rubriques demandées
|
||||
if ($strRubrique<>'') $where.=' AND Rubrique IN('. substr($strRubrique,0,strlen($strRubrique)-1) .') ';
|
||||
// On ne prend que les dernières annonces depuis la dernière exécution de la prestation pour le client
|
||||
/**
|
||||
if ($dateDernierTraitement) $where.=" AND dateInsert>'$dateDernierTraitement' ";
|
||||
// ... sinon on prend les annonces depuis la date de début de la prestation
|
||||
elseif ($dateDebutPrestation) $where.=" AND dateInsert>'$dateDebutPrestation' ";
|
||||
else $where.=" AND dateInsert>='MAX(DATE_FORMAT(dateInsert,'%Y-%m-%d'))') ";
|
||||
**/
|
||||
$where.=" AND d.siren=s.siren AND Bodacc_Date_Parution BETWEEN 20060901 AND 20070930 ";
|
||||
|
||||
//echo date ('Y/m/d - H:i:s')." - SQL : ... WHERE $where;".EOL;
|
||||
//$tabAnnonces
|
||||
$nbAnnonces=$iDb->select('bodacc_detail d, mederic s', $fields, $where, true, MYSQL_ASSOC, true); // Gérer la table surveillance
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : $nbAnnonces annonces à traiter...".EOL;
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Début de génération du fichier client...".EOL;
|
||||
|
||||
//while(=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
while ($annonce=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
//print_r($annonce);
|
||||
//$k++;
|
||||
//$siren=$record['siren'];***/
|
||||
|
||||
//foreach ($tabAnnonces as $numAnn=>$annonce) {
|
||||
// On récupère les 2 intervenants de la procédure
|
||||
//if (!in_array($annonce['siren'], $tabSiren)) continue;
|
||||
|
||||
$numInter=0;
|
||||
$inter=array();
|
||||
if ($annonce['mandNom']<>'' || $annonce['mandCP']<>0) {
|
||||
$inter[$numInter]['type']='M'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['mandNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['mandRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['mandAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['mandCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['mandVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
if ($annonce['creaNom']<>'' || $annonce['creaCP']<>0) {
|
||||
$inter[$numInter]['type']='R'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['creaNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['creaRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['creaAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['creaCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['creaVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
if ($annonce['admNom']<>'' || $annonce['admCP']<>0) {
|
||||
$inter[$numInter]['type']='A'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['admNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['admRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['admAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['admCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['admVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
/* if ($annonce['oppoNom']<>'' || $annonce['oppoCP']<>0) {
|
||||
$inter[$numInter]['type']='O'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['oppoNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['oppoRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['oppoAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['oppoCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['oppoVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}*/
|
||||
$tribunalCode=$iDb2->select('bodacc', 'Tribunal_Code', 'id='.$annonce['id'], false);
|
||||
$tribunalCode=$tribunalCode[0][0];
|
||||
|
||||
$str= initstr('100', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr($annonce['id'], 10, '0', ALIGN_RIGHT) . // Numéro unique d'identification interne d'une annonce
|
||||
initstr(FILLER, 1) . // On garde de la place
|
||||
initstr($annonce['siren'], 9, '0', ALIGN_RIGHT) . // Siren de l'entreprise concernée par l'annonce
|
||||
initstr(FILLER, 5) . // On garde la place pour le NIC
|
||||
initstr($annonce['Bodacc_Num'], 3, '0', ALIGN_RIGHT) . // Numéro de parution du Bodacc dans l'année
|
||||
initstr(substr($annonce['Rubrique_Bodacc'],0,1), 1) . // Code Bodacc (A, B ou C)
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['Bodacc_Date_Parution']), 8) . // Date de parution du Bodacc
|
||||
initstr($annonce['Num_Annonce'], 5, '0', ALIGN_RIGHT) . // Numéro de l'annonce dans le Bodacc
|
||||
initstr(substr($annonce['Rubrique_Bodacc'],1,3), 3, '0') . // Rubrique dans le Bodacc
|
||||
initstr($annonce['typeAnnonce'], 1) . // Type d'annonce Bodacc : I=Insertion, A=Additif,
|
||||
// R=Rectif, S=Suppression
|
||||
initstr($annonce['corrNum_Annonce'], 5, '0', ALIGN_RIGHT) . // Si annonce diff. de I, numéro de l'annonce corrigée
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['corrBodacc_Date_Parution']), 8) . // Si diff. I, date du Bodacc de l'annonce corrigée
|
||||
initstr($annonce['corrPage'], 6, '0', ALIGN_RIGHT) . // Si diff. I, page du Bodacc de l'annonce corrigée
|
||||
initstr($annonce['corrNumParution'], 4, '0', ALIGN_RIGHT) . // Si diff. I, Num parut°/année de annonce corrigée
|
||||
// (ex: 230A, 001B)
|
||||
// initstr($annonce['corrTexteRectificatif'], XXXXXX, '0', ALIGN_RIGHT) . // Si diff. I,
|
||||
// initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateInsert']), 8, '0') . // Date de l'intégration en bae S&D
|
||||
initstr(FILLER, 18) . // REFERENCE DU CLIENT
|
||||
initstr($tribunalCode, 6) .
|
||||
initstr($annonce['RC'], 9) . // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
initstr($annonce['raisonSociale'], 150) . // Raison sociale de l'entreprise
|
||||
initstr($annonce['nomCommercial'], 100) . // Nom commercial de l'entreprise
|
||||
initstr($annonce['enseigne'], 100) . // Enseigne de l'établissement
|
||||
initstr($annonce['nationalite'], 30) . // Nationalité si Personne physique
|
||||
//initstr(MInsee::getFJInsee($annonce['siren']), 4) . // FJ codification Insee
|
||||
initstr('0000', 4) . // FJ codification Insee
|
||||
initstr($annonce['FJ'], 90) . // Forme juridique de l'entreprise déclarée au BODACC
|
||||
initstr($annonce['Capital'], 15, '0', ALIGN_RIGHT) . // Capital
|
||||
initstr($annonce['CapitalDev'], 3) . // Devise du capital (format ISO)
|
||||
// Adresse / 150 car
|
||||
initstr($annonce['adrNum'], 4, '0', ALIGN_RIGHT) . //
|
||||
initstr($annonce['adrIndRep'], 1) . //
|
||||
initstr($annonce['adrTypVoie'], 5) .
|
||||
initstr($annonce['adrLibVoie'], 50) .
|
||||
initstr($annonce['adrComp1'], 50) .
|
||||
initstr($annonce['adrComp2'], 40) .
|
||||
initstr($annonce['codePostal'], 5, '0', ALIGN_RIGHT) . // Code Postal de l'établissement
|
||||
initstr($annonce['villeSiege'], 45) . // Ville de l'établissement
|
||||
// Adresse du siège / 150 car
|
||||
initstr($annonce['adrNumSiege'], 4, '0', ALIGN_RIGHT) . //
|
||||
initstr($annonce['adrIndRepSiege'], 1) . //
|
||||
initstr($annonce['adrTypVoieSiege'], 5) .
|
||||
initstr($annonce['adrLibVoieSiege'], 50) .
|
||||
initstr($annonce['adrComp1Siege'], 50) .
|
||||
initstr($annonce['adrComp2Siege'], 40) .
|
||||
initstr($annonce['codePostalSiege'], 5, '0', ALIGN_RIGHT) . // Code Postal de l'établissement
|
||||
initstr($annonce['villeSiege'], 45) . // Ville de l'établissement
|
||||
initstr(str_replace(';','', $annonce['typeEven']), 32, '0', ALIGN_RIGHT) . // Code Evènement Bodacc n°1 à 8
|
||||
initstr($annonce['publicationNom'], 100) . // NOM du JAL si publication
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['publicationDate']), 8) . // Date de publication du JAL si publication
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateCessationPaiement']), 8) . // Date de cessation des paiements
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateJugement']), 8) . // Date du jugement
|
||||
initstr(FILLER, 1) . // FILLER (Replace type de création)
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateDebutActivite']), 8) . // Date de début d'activité
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateEffet']), 8) . // Date d'effet (Ventes/MMD)
|
||||
// ou Date clôture exercice si ann dépôt comptes
|
||||
initstr($annonce['VenteMt'], 15, '0', ALIGN_RIGHT) . // Montant de la vente
|
||||
initstr($annonce['VenteDev'], 3) . // Devise de la ventre
|
||||
initstr($annonce['Numero'], 35) . // Numéro de l'affaire au greffe
|
||||
initstr($inter[0]['type'], 1) . // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
initstr($inter[0]['SIRET'], 14, '0', ALIGN_RIGHT) . // Intervenant A : Siret
|
||||
initstr($inter[0]['Nom'], 80) . // Raison sociale
|
||||
initstr($inter[0]['Repr'], 80) . // Représentant
|
||||
initstr($inter[0]['adrNum'], 4, '0', ALIGN_RIGHT) . // Adresse, numéro dans la voie
|
||||
initstr($inter[0]['adrBis'], 1) . // Adresse, Bis/Ter
|
||||
initstr($inter[0]['adrType'], 4) . // Adresse, type de voie
|
||||
initstr($inter[0]['adrLib'], 32) . // Adresse, libellé de la voie
|
||||
initstr($inter[0]['CP'], 5, '0', ALIGN_RIGHT) . // Adresse, code Postal
|
||||
initstr($inter[0]['Ville'], 45) . // Adresse, commune
|
||||
initstr($inter[0]['Tel'], 10, '0', ALIGN_RIGHT) . // Téléphone
|
||||
initstr($inter[1]['type'], 1) . // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
initstr($inter[1]['SIRET'], 14, '0', ALIGN_RIGHT) . // Intervenant A : Siret
|
||||
initstr($inter[1]['Nom'], 80) . // Raison sociale
|
||||
initstr($inter[1]['Repr'], 80) . // Représentant
|
||||
initstr($inter[1]['adrNum'], 4, '0', ALIGN_RIGHT) . // Adresse, numéro dans la voie
|
||||
initstr($inter[1]['adrBis'], 1) . // Adresse, Bis/Ter
|
||||
initstr($inter[1]['adrType'], 4) . // Adresse, type de voie
|
||||
initstr($inter[1]['adrLib'], 32) . // Adresse, libellé de la voie
|
||||
initstr($inter[1]['CP'], 5, '0', ALIGN_RIGHT) . // Adresse, code Postal
|
||||
initstr($inter[1]['Ville'], 45) . // Adresse, commune
|
||||
initstr($inter[1]['Tel'], 10, '0', ALIGN_RIGHT) . // Téléphone
|
||||
initstr(FILLER/*$annonce['JugeCommissaireNom']*/, 30) . // NOM du JugeCommissaire
|
||||
initstr(FILLER/*$annonce['JugeCommissairePrenom']*/, 30) . // Prénom du JugeCommissaire
|
||||
initstr(FILLER/*$annonce['JugeCommissaireSupplNom']*/, 30) . // NOM du JugeCommissaire suppléant
|
||||
initstr(FILLER/*$annonce['JugeCommissaireSupplPrenom']*/, 30) . // Prénom du JugeCommissaire suppléant
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateFinDepotCreances']), 8) . // Date limite pour le dépôt des créances
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateFinObservation']), 8) . // Date de fin de la période d'observation
|
||||
initstr(FILLER, 89) .
|
||||
'';
|
||||
fwrite($fp, rtrim($str).$optionEOL);
|
||||
$nbLignes++;
|
||||
// if ($tabOptOutput['commentaire']==true && $annonce['commentaires']<>'')
|
||||
// fwrite($fp, '101'.initsrt($annonce['commentaires'],1500).$eol); // Commentaire textuel si nécessaire
|
||||
$enteteL= initstr($annonce['id'], 10, '0', ALIGN_RIGHT) . // Numéro unique d'identification interne d'une annonce
|
||||
initstr(FILLER, 1) . // On garde de la place
|
||||
initstr($annonce['siren'], 9, '0', ALIGN_RIGHT) . // Siren de l'entreprise concernée par l'annonce
|
||||
initstr(FILLER, 5) . // On garde la place pour le NIC
|
||||
initstr($annonce['Bodacc_Num'], 3, '0', ALIGN_RIGHT) . // Numéro de parution du Bodacc dans l'année
|
||||
initstr(substr($annonce['Rubrique_Bodacc'],0,1), 1) . // Code Bodacc (A, B ou C)
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['Bodacc_Date_Parution']), 8) . // Date de parution du Bodacc
|
||||
initstr($annonce['Num_Annonce'], 5, '0', ALIGN_RIGHT) . // Numéro de l'annonce dans le Bodacc
|
||||
initstr(substr($annonce['Rubrique_Bodacc'],1,3), 3, '0') . // Rubrique dans le Bodacc
|
||||
initstr($annonce['typeAnnonce'], 1) . // Type d'annonce Bodacc : I=Insertion, A=Additif,
|
||||
// R=Rectificatif, S=Suppression
|
||||
initstr($annonce['corrNum_Annonce'], 5, '0', ALIGN_RIGHT) . // Si annonce différent de I, numéro de l'annonce corrigée
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['corrBodacc_Date_Parution']), 8) . // Si diff. I, date du Bodacc de l'annonce corrigée
|
||||
initstr($annonce['corrPage'], 6, '0', ALIGN_RIGHT) . // Si diff. I, page du Bodacc de l'annonce corrigée
|
||||
initstr($annonce['corrNumParution'], 4, '0', ALIGN_RIGHT) . // Si diff. I, Num parution dans l'année de annonce corri(ex: 230A, 001B)
|
||||
initstr(FILLER, 18) . // REF CLI
|
||||
'';
|
||||
|
||||
if ($tabOptOutput[101]==true && $annonce['commentaires']<>'') // Commentaires
|
||||
fwrite($fp, genereMultiLigne('101', $enteteL, $annonce['commentaires'], $optionEOL, $nbLignes));
|
||||
if ($tabOptOutput[102]==true && $annonce['activite']<>'') // Activité déclarée au Bodacc
|
||||
fwrite($fp, genereMultiLigne('102', $enteteL, $annonce['activite'], $optionEOL, $nbLignes));
|
||||
if ($annonce['corrTexteRectificatif']<>'') // Texte rectificatif
|
||||
fwrite($fp, genereMultiLigne('103', $enteteL, $annonce['corrTexteRectificatif'], $optionEOL, $nbLignes));
|
||||
if ($tabOptOutput[104]==true) { // Annonce Bodacc Complète
|
||||
$annoncetxt=$iDb2->select('bodacc', 'annonce', 'id='.$annonce['id'], false);
|
||||
$annoncetxt=$annoncetxt[0][0];
|
||||
fwrite($fp, genereMultiLigne('104', $enteteL, $annoncetxt, $optionEOL, $nbLignes));
|
||||
}
|
||||
if ($tabOptOutput[105]==true) { // Liste des dirigeants
|
||||
$annonceDir=$iDb2->select('bodacc_dirigeants', 'id, num, dateEffet, fonction, rs, nom, prenom, nomUsage', 'id='.$annonce['id'], true);
|
||||
$strDir='';
|
||||
foreach ($annonceDir as $k=>$dir) {
|
||||
$strDir.=initstr(WDate::dateT('Y-m-d','Ymd',$dir['dateEffet']), 8, '0', ALIGN_RIGHT) . // Date de la prise de fonction
|
||||
initstr($dir['fonction'], 4) . // Code Fonction S&D
|
||||
initstr($dir['rs'], 80) . // Raison Sociale du dirigeant
|
||||
initstr($dir['nom'], 50) . // NOM du dirigeant
|
||||
initstr($dir['prenom'], 100) . // Prenom
|
||||
initstr($dir['usage'], 50); // Nom d'usage
|
||||
if ($k%6==0) $strDir.=initstr(' ', 28);
|
||||
else $strDir.=initstr(' ', 26);
|
||||
}
|
||||
fwrite($fp, genereMultiLigne('105', $enteteL, $strDir, $optionEOL, $nbLignes));
|
||||
}
|
||||
if ($nbLignes%1000==1) echo date ('Y/m/d - H:i:s')." - Nb lignes=$nbLignes\n";
|
||||
}
|
||||
|
||||
/**
|
||||
** On génère la ligne de fin de fichier
|
||||
**/
|
||||
$nbLignes++;
|
||||
$str= initstr('999', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr(date('YmdHis'), 14) . // Date & Heure de fin génération du fichier
|
||||
initstr($clientNumTourFichier, 10, '0', ALIGN_RIGHT) . // Numéro de tour du fichier pour le client
|
||||
initstr($clientIdentifiant, 36) . // Identifiant Client
|
||||
initstr($typePrestaton, 32) . // Type de prestation
|
||||
initstr($nbLignes, 10, '0', ALIGN_RIGHT) . // Nombre de lignes Total du fichier
|
||||
'';
|
||||
fwrite($fp, $str); // Pas de fin de ligne sur la dernière ligne
|
||||
fclose($fp);
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient :Fichier client terminé.".EOL;
|
||||
|
||||
/** Mise à jour des numéros de tour et des date de dernières exécutions
|
||||
**/
|
||||
if ($incrementationDesTour) {
|
||||
$iDbCrm=new WDB('sugarcrm');
|
||||
$rep=$iDbCrm->update('cases_cstm', array('trtdatederniereexec_c'=>date('YmdHis'), 'trtnumerotour_c'=> $clientNumTourFichier),
|
||||
"id_c='".$tabAdherent['idPrestationBdd']."'");
|
||||
}
|
||||
/*Gzip ou zip zt envoi par mail ou dépot sur le site FTP*/
|
||||
switch ($optionZip) {
|
||||
case 'zip':
|
||||
$zip = new ZipArchive;
|
||||
$res = $zip->open($repProduction. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.zip', ZipArchive::CREATE);
|
||||
if ($res === TRUE) {
|
||||
// $zip->addFromString('test.txt', 'file content goes here');
|
||||
$zip->addFile( REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt',
|
||||
$typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
$zip->close();
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.zip OK...'.EOL;
|
||||
} else {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
}
|
||||
break;
|
||||
case 'gzip':
|
||||
$string=file_get_contents(REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
$gz = gzopen($repProduction. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt.gz','w9');
|
||||
if (!$gz) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
} else {
|
||||
gzwrite($gz, $string);
|
||||
gzclose($gz);
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt.gz OK...'.EOL;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (!copy(REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt', $repProduction. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt'))
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Déplacement du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt a été créé...'.EOL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Fin du traitement diffusion BODACC.\n";
|
||||
die();
|
||||
?>
|
1565
batch/diffusionBodacc.php
Normal file
1565
batch/diffusionBodacc.php
Normal file
File diff suppressed because it is too large
Load Diff
456
batch/diffusionBodaccCSF.php
Normal file
456
batch/diffusionBodaccCSF.php
Normal file
@ -0,0 +1,456 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
define('VERSION_FICHIER_BODACC','0106');
|
||||
|
||||
/**
|
||||
* @todo
|
||||
* 1. Numéroter toutes les procédures OK
|
||||
* 2. Pouvoir faire du multiligne avec : 100 Annonce Bodacc
|
||||
* 101 Commentaire
|
||||
* 102 Activite déclaré au Bodacc
|
||||
* 103 texte rectificatif
|
||||
* 104 Annonce complète au format texte
|
||||
* 105 Structure Dirigeants BODACC
|
||||
* 106 Libellé du Périmètre de la vente
|
||||
* 3.
|
||||
* 5. JugesCommissaires à intégrer correctement
|
||||
|
||||
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
|
||||
*/
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
|
||||
$repProduction='/mnt/samba/partage/production/';
|
||||
|
||||
$incrementationDesTour=true;
|
||||
$typePrestaton='diffusionBodacc';
|
||||
$ignoreDateDerExec=$retroActivite=false;
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Extaction Bodacc pour CSF.
|
||||
|
||||
Options :
|
||||
-a:2004 Année 2004
|
||||
";
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']>1)
|
||||
{
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'a':
|
||||
$annee=substr($argv[$i],3,strlen($argv[$i])-3);
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$iDb=new WDB('historiques');
|
||||
$iDb2=new WDB('historiques');
|
||||
//$iDb2=new WDB('jo');
|
||||
$iBodacc=new MBodacc();
|
||||
|
||||
function genereMultiLigne($typeLigne, $enteteLigne, $chaine, $eol="\r\n", &$nbLignes=0) {
|
||||
$lonLigne=LONGUEUR_LIGNE_SORTIE-90;
|
||||
$str='';
|
||||
$chaine=preg_replace('/ +/', ' ', strtr($chaine, array("\n"=>' ',"\r"=>' ',";"=>' ')));
|
||||
switch ($typeLigne) {
|
||||
case '102': // Activité déclarée au Bodacc
|
||||
case '103': // Texte rectificatif
|
||||
case '104': // Annonce Bodacc Complète
|
||||
case '105': // Structure dirigeants
|
||||
$tabLigne=str_split($chaine, $lonLigne);
|
||||
foreach ($tabLigne as $i=>$ligne) {
|
||||
$str.=initstr($typeLigne.$enteteLigne.$ligne, LONGUEUR_LIGNE_SORTIE).$eol;
|
||||
$nbLignes++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
die("ERREUR : Structure de sortie n°$typeLigne non prise en charge !\n");
|
||||
break;
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début du traitement diffusion BODACC.\n";
|
||||
|
||||
/** On récupère la liste des Adhérents **/
|
||||
|
||||
$optionZip='none';
|
||||
$optionEOL="\r\n";
|
||||
$tabOptOutput=array();
|
||||
$dateDernierTraitement=false;
|
||||
|
||||
$dateDebutPrestation=''.$annee.'0301';
|
||||
$dateFinPrestation=''.$annee.'1231';
|
||||
//$dateFinPrestation=''.$annee.'0631';
|
||||
|
||||
$clientIdentifiant='CSF_BodaccAB_'.$annee;
|
||||
|
||||
/**
|
||||
** On génère la ligne d'entête
|
||||
**/
|
||||
$fp=fopen(REP_TEMP . $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt', 'w');
|
||||
if ($fp==false) die('ERREUR : Impossible de créer le fichier !');
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
$str= initstr('001', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr(date('YmdHis'), 14) . // Date de génération du fichier
|
||||
initstr(0, 10, '0', ALIGN_RIGHT) . // Numéro de tour du fichier pour le client
|
||||
initstr($clientIdentifiant, 36) . // Identifiant Client
|
||||
initstr($typePrestaton, 32) . // Type de prestation
|
||||
initstr(VERSION_FICHIER_BODACC, 4) . // Type de prestation
|
||||
initstr(FILLER, 1901) . // FILLER
|
||||
'';
|
||||
fwrite($fp, initstr($str,LONGUEUR_LIGNE_SORTIE).$optionEOL);
|
||||
$nbLignes=1;
|
||||
|
||||
/**
|
||||
** On génère les lignes de détail
|
||||
**/
|
||||
$strRubrique='';
|
||||
$tabOptOutput[104]=true;
|
||||
$tabNaf=array();
|
||||
$versionEvenClient=11;
|
||||
|
||||
$tables='entrep e, texte x, annonce_hiz z';
|
||||
$fields='e.ANBASE, e.NOBOD, e.CODTRI, e.JAL, e.DATE, e.CODEVE, e.SSCODE, e.DEPT, e.NOANN, e.ROLE, e.SIREN, e.E1GSIR, e.E1GNIC, x.annonceNum, x.annonceTxt, E1TNOM, E1TSIG, E1ENRU, E1EBTQ, E1ETVI, E1EVOI, E1ECPI, E1EVIL, z.DATEZ, z.DTEFFZ, z.RUBODZ';
|
||||
//d.id, d.siren, sirenValide, Bodacc_Num, Bodacc_Date_Parution, Num_Annonce, Rubrique_Bodacc, Rubrique, typeAnnonce, corrNum_Annonce, corrBodacc_Date_Parution, corrPage, corrNumParution, corrTexteRectificatif, RC, d.raisonSociale, nomCommercial, d.enseigne, nationalite, FJ, Capital, CapitalDev, adresse, adrNum, adrIndRep, adrTypVoie, adrLibVoie, adrComp1, adrComp2, codePostal, d.ville, adresseSiege, adrSiegeNum, adrSiegeIndRep, adrSiegeTypVoie, adrSiegeLibVoie, adrSiegeComp1, adrSiegeComp2, codePostalSiege, villeSiege, administration, activite, typeEven, commentaires, dateEffet, publication, publicationNom, publicationDate, fusion, dateDebutActivite, dateCessationActivite, dateCessationPaiement, dateJugement, Numero, VenteMt, VenteDev, bienAcqui, Mandataire, mandNom, mandRepr, mandAdresse, mandCP, mandVille, JugeCommissaire, jugeCommissaireSuppleant, ReprCreanciers, creaNom, creaRepr, creaAdresse, creaCP, creaVille, administrateur, admNom, admRepr, admAdresse, admCP, admVille, oppositions, oppoNom, oppoRepr, oppoAdresse, oppoCP, oppoVille, perimetre, dateFinDepotCreances, delaiDepotCreances, dateFinObservation, FinObservationBodacc, d.dateInsert';
|
||||
$where="e.E1GSIR>10000 AND e.DATE BETWEEN $dateDebutPrestation AND $dateFinPrestation AND e.ANBASE=x.annonceNum AND e.ANBASE=z.ANBAZ AND E1GSTB=1";
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - SELECT $fields FROM $tables WHERE $where".EOL;
|
||||
$nbAnnonces=$iDb->select($tables, $fields, $where, true, MYSQL_ASSOC, true); // Gérer la table surveillance
|
||||
echo date ('Y/m/d - H:i:s')." - $nbAnnonces annonces à traiter...".EOL;
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début de génération du fichier client en version $versionEvenClient...".EOL;
|
||||
|
||||
$numAnnonceSD=0010000000+(($annee*1)-1995)*3000000;
|
||||
$numPre=-1;
|
||||
while ($annonce=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
|
||||
if ($annonce['ANBASE']==$numPre) continue;
|
||||
$numPre=$annonce['ANBASE'];
|
||||
|
||||
if ($annonce['JAL']==1) $Bodacc_Code='A';
|
||||
elseif ($annonce['JAL']==200) $Bodacc_Code='B';
|
||||
|
||||
if ($annonce['CODEVE']<20) $tabEven=array('4999');
|
||||
elseif ($annonce['CODEVE']<=25) $tabEven=array('5999');
|
||||
elseif ($annonce['CODEVE']<40) $tabEven=array('2312');
|
||||
elseif ($annonce['CODEVE']<42) $tabEven=array('6700');
|
||||
elseif ($annonce['CODEVE']<50) $tabEven=array('2312');
|
||||
elseif ($annonce['CODEVE']<80) $tabEven=array('1999');
|
||||
|
||||
$tabTmp=$iDb2->select('annonce_hinl', 'NUMEZ, DATEZ, DTEFFZ', 'ANBAZ='.$annonce['ANBASE'], false, MYSQL_ASSOC);
|
||||
$dateJ=@$tabTmp[0]['DATEZ'];
|
||||
|
||||
$tabTmp=$iDb2->select('annonce_hia', 'DATEZ, DTEFFZ, MOVENA, MTVENA', 'ANBAZ='.$annonce['ANBASE'], false, MYSQL_ASSOC);
|
||||
$VenteMt=$tabTmp[0]['MTVENA']*1;
|
||||
$VenteDev=@$tabTmp[0]['MOVENA'];
|
||||
|
||||
/* $tabRet[$k]=array( 'id'=>-$ann['ANBASE'],
|
||||
'BodaccCode'=>$Bodacc_Code,
|
||||
'BodaccNum'=>$ann['NOBOD'],
|
||||
'NumAnnonce'=>$ann['NOANN'],
|
||||
'DateParution'=>substr($ann['DATE'],0,4).'-'.substr($ann['DATE'],4,2).'-'.substr($ann['DATE'],6,2),
|
||||
'Departement'=>$ann['DEPT'],
|
||||
'Tribunal'=>$ann['triNom'],
|
||||
'TribunalSiret'=>$ann['triSiret'],
|
||||
'Rubrique'=>$rub,
|
||||
'typeAnnonce'=>'Insertion',/** @todo à GERER $ann['SSCODE'],
|
||||
//'texteRectificatif'=>$ann['corrTexteRectificatif'],
|
||||
// 'texteAnnonce'=>$ann['annonceTxt'],
|
||||
'dateEffet'=>$ann['DATE'],
|
||||
'dateJugement'=>$ann['DATE'],
|
||||
'dateInsertionSD'=>'',
|
||||
'evenements'=>array(array('CodeEven'=>$tabTmp[$ann['CODEVE']],'LibEven'=>$this->iBodacc->getEvenement($tabTmp[$ann['CODEVE']]))),
|
||||
);
|
||||
if ($idAnnonce<>0) $tabRet[$k]['texteAnnonce']=$ann['NOANN'].' - '.$ann['annonceTxt'];
|
||||
} */
|
||||
$numInter=0;
|
||||
$inter=array();
|
||||
if ($annonce['mandNom']<>'' || $annonce['mandCP']<>0) {
|
||||
$inter[$numInter]['type']='M'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['mandNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['mandRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['mandAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['mandCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['mandVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
if ($annonce['creaNom']<>'' || $annonce['creaCP']<>0) {
|
||||
$inter[$numInter]['type']='R'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['creaNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['creaRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['creaAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['creaCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['creaVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
if ($annonce['admNom']<>'' || $annonce['admCP']<>0) {
|
||||
$inter[$numInter]['type']='A'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['admNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['admRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['admAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['admCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['admVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
/* if ($annonce['oppoNom']<>'' || $annonce['oppoCP']<>0) {
|
||||
$inter[$numInter]['type']='O'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['oppoNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['oppoRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['oppoAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['oppoCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['oppoVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}*/
|
||||
$numAnnonceSD++;
|
||||
$str= initstr('100', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr($numAnnonceSD, 10, '0', ALIGN_RIGHT) . // Numéro unique d'identification interne d'une annonce
|
||||
initstr($annonce['E1GSIR'], 9, '0', ALIGN_RIGHT) . // Siren de l'entreprise concernée par l'annonce
|
||||
initstr(FILLER, 5) . // On garde la place pour le NIC
|
||||
initstr($annonce['NOBOD'], 3, '0', ALIGN_RIGHT) . // Numéro de parution du Bodacc dans l'année
|
||||
initstr($Bodacc_Code, 1) . // Code Bodacc (A, B ou C)
|
||||
initstr($annonce['DATE'], 8) . // Date de parution du Bodacc
|
||||
initstr($annonce['NOANN'], 5, '0', ALIGN_RIGHT) . // Numéro de l'annonce dans le Bodacc
|
||||
initstr($annonce['RUBODZ'], 3, '0') . // Rubrique dans le Bodacc
|
||||
initstr('I', 1) . // Type d'annonce Bodacc : I=Insertion, A=Additif,
|
||||
// R=Rectif, S=Suppression
|
||||
initstr(FILLER, 5, '0', ALIGN_RIGHT) . // Si annonce diff. de I, numéro de l'annonce corrigée
|
||||
initstr(FILLER, 8) . // Si diff. I, date du Bodacc de l'annonce corrigée
|
||||
initstr(FILLER, 6, '0', ALIGN_RIGHT) . // Si diff. I, page du Bodacc de l'annonce corrigée
|
||||
initstr(FILLER, 4, '0', ALIGN_RIGHT) . // Si diff. I, Num parut°/année de annonce corrigée
|
||||
// (ex: 230A, 001B)
|
||||
initstr(FILLER, 18) . // REFERENCE DU CLIENT
|
||||
initstr($annonce['CODTRI'], 6) .
|
||||
initstr(FILLER, 9) . // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
initstr($annonce['E1TNOM'], 150) . // Raison sociale de l'entreprise
|
||||
initstr(FILLER, 100) . // Nom commercial de l'entreprise
|
||||
initstr($annonce['E1TSIG'], 100) . // Enseigne de l'établissement
|
||||
initstr(FILLER, 30) . // Nationalité si Personne physique
|
||||
//initstr(MInsee::getFJInsee($annonce['siren']), 4) . // FJ codification Insee
|
||||
initstr('0000', 4) . // FJ codification Insee
|
||||
initstr(FILLER, 90) . // Forme juridique de l'entreprise déclarée au BODACC
|
||||
initstr(FILLER, 15, '0', ALIGN_RIGHT) . // Capital
|
||||
initstr(FILLER, 3) . // Devise du capital (format ISO)
|
||||
// Adresse / 150 car
|
||||
initstr(FILLER, 4, '0', ALIGN_RIGHT) . //
|
||||
initstr(FILLER, 1) . //
|
||||
initstr(FILLER, 5) .
|
||||
initstr(FILLER, 50) .
|
||||
initstr(FILLER, 50) .
|
||||
initstr(FILLER, 40) .
|
||||
initstr(FILLER, 5, '0', ALIGN_RIGHT) . // Code Postal de l'établissement
|
||||
initstr(FILLER, 45) . // Ville de l'établissement
|
||||
// Adresse du siège / 150 car
|
||||
initstr($annonce['E1ENRU'], 4, '0', ALIGN_RIGHT) . //
|
||||
initstr($annonce['E1EBTQ'], 1) . //
|
||||
initstr($annonce['E1ETVI'], 5) .
|
||||
initstr($annonce['E1EVOI'], 50) .
|
||||
initstr(FILLER, 50) .
|
||||
initstr(FILLER, 40) .
|
||||
initstr($annonce['E1ECPI'], 5, '0', ALIGN_RIGHT) . // Code Postal de l'établissement
|
||||
initstr($annonce['E1EVIL'], 45) . // Ville de l'établissement
|
||||
initstr(implode('',$tabEven), 32, '0', ALIGN_RIGHT) . // Code Evènement Bodacc n°1 à 8
|
||||
initstr(FILLER, 100) . // NOM du JAL si publication
|
||||
initstr(FILLER, 8) . // Date de publication du JAL si publication
|
||||
initstr(FILLER, 8) . // Date de cessation des paiements
|
||||
initstr($dateJ, 8) . // Date du jugement
|
||||
initstr(FILLER, 1) . // FILLER (Replace type de création)
|
||||
initstr(FILLER, 8) . // Date de début d'activité
|
||||
initstr($annonce['DTEFFZ'], 8) . // Date d'effet (Ventes/MMD)
|
||||
// ou Date clôture exercice si ann dépôt comptes
|
||||
initstr($VenteMt, 15, '0', ALIGN_RIGHT) . // Montant de la vente
|
||||
initstr($VenteDev, 3) . // Devise de la ventre
|
||||
initstr(FILLER, 35) . // Numéro de l'affaire au greffe
|
||||
initstr($inter[0]['type'], 1) . // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
initstr($inter[0]['SIRET'], 14, '0', ALIGN_RIGHT) . // Intervenant A : Siret
|
||||
initstr($inter[0]['Nom'], 80) . // Raison sociale
|
||||
initstr($inter[0]['Repr'], 80) . // Représentant
|
||||
initstr($inter[0]['adrNum'], 4, '0', ALIGN_RIGHT) . // Adresse, numéro dans la voie
|
||||
initstr($inter[0]['adrBis'], 1) . // Adresse, Bis/Ter
|
||||
initstr($inter[0]['adrType'], 4) . // Adresse, type de voie
|
||||
initstr($inter[0]['adrLib'], 32) . // Adresse, libellé de la voie
|
||||
initstr($inter[0]['CP'], 5, '0', ALIGN_RIGHT) . // Adresse, code Postal
|
||||
initstr($inter[0]['Ville'], 45) . // Adresse, commune
|
||||
initstr($inter[0]['Tel'], 10, '0', ALIGN_RIGHT) . // Téléphone
|
||||
initstr($inter[1]['type'], 1) . // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
initstr($inter[1]['SIRET'], 14, '0', ALIGN_RIGHT) . // Intervenant A : Siret
|
||||
initstr($inter[1]['Nom'], 80) . // Raison sociale
|
||||
initstr($inter[1]['Repr'], 80) . // Représentant
|
||||
initstr($inter[1]['adrNum'], 4, '0', ALIGN_RIGHT) . // Adresse, numéro dans la voie
|
||||
initstr($inter[1]['adrBis'], 1) . // Adresse, Bis/Ter
|
||||
initstr($inter[1]['adrType'], 4) . // Adresse, type de voie
|
||||
initstr($inter[1]['adrLib'], 32) . // Adresse, libellé de la voie
|
||||
initstr($inter[1]['CP'], 5, '0', ALIGN_RIGHT) . // Adresse, code Postal
|
||||
initstr($inter[1]['Ville'], 45) . // Adresse, commune
|
||||
initstr($inter[1]['Tel'], 10, '0', ALIGN_RIGHT) . // Téléphone
|
||||
initstr(FILLER/*$annonce['JugeCommissaireNom']*/, 30) . // NOM du JugeCommissaire
|
||||
initstr(FILLER/*$annonce['JugeCommissairePrenom']*/, 30) . // Prénom du JugeCommissaire
|
||||
initstr(FILLER/*$annonce['JugeCommissaireSupplNom']*/, 30) . // NOM du JugeCommissaire suppléant
|
||||
initstr(FILLER/*$annonce['JugeCommissaireSupplPrenom']*/, 30) . // Prénom du JugeCommissaire suppléant
|
||||
initstr(FILLER, 8) . // Date limite pour le dépôt des créances
|
||||
initstr(FILLER, 8) . // Date de fin de la période d'observation
|
||||
'';
|
||||
fwrite($fp, initstr($str,LONGUEUR_LIGNE_SORTIE).$optionEOL);
|
||||
$nbLignes++;
|
||||
// if ($tabOptOutput['commentaire']==true && $annonce['commentaires']<>'')
|
||||
// fwrite($fp, '101'.initsrt($annonce['commentaires'],1500).$eol); // Commentaire textuel si nécessaire
|
||||
$enteteL= initstr($numAnnonceSD, 10, '0', ALIGN_RIGHT) . // Numéro unique d'identification interne d'une annonce
|
||||
initstr($annonce['E1GSIR'], 9, '0', ALIGN_RIGHT) . // Siren de l'entreprise concernée par l'annonce
|
||||
initstr(FILLER, 5) . // On garde la place pour le NIC
|
||||
initstr($annonce['NOBOD'], 3, '0', ALIGN_RIGHT) . // Numéro de parution du Bodacc dans l'année
|
||||
initstr($Bodacc_Code, 1) . // Code Bodacc (A, B ou C)
|
||||
initstr($annonce['DATE'], 8) . // Date de parution du Bodacc
|
||||
initstr($annonce['NOANN'], 5, '0', ALIGN_RIGHT) . // Numéro de l'annonce dans le Bodacc
|
||||
initstr($annonce['RUBODZ'], 3, '0') . // Rubrique dans le Bodacc
|
||||
initstr('I', 1) . // Type d'annonce Bodacc : I=Insertion, A=Additif,
|
||||
initstr(FILLER, 5, '0', ALIGN_RIGHT) . // Si annonce diff. de I, numéro de l'annonce corrigée
|
||||
initstr(FILLER, 8) . // Si diff. I, date du Bodacc de l'annonce corrigée
|
||||
initstr(FILLER, 6, '0', ALIGN_RIGHT) . // Si diff. I, page du Bodacc de l'annonce corrigée
|
||||
initstr(FILLER, 4, '0', ALIGN_RIGHT) . // Si diff. I, Num parut°/année de annonce corrigée // (ex: 230A, 001B)
|
||||
initstr(FILLER, 18) .
|
||||
'';
|
||||
|
||||
$texte=trim(strtr(preg_replace('/ +/', ' ', strtr(preg_replace('/ +/', ' ',$annonce['annonceTxt'].'.'),
|
||||
array( ' Jugement '=>'. Jugement ',
|
||||
' RCS '=>'. RCS ',
|
||||
' RCS non encore inscrit '=>'. RCS non encore inscrit. ',
|
||||
'RCSnon encore inscrit '=>'RCS non encore inscrit. ',
|
||||
'RCSNon encore inscrits '=>'RCS non encore inscrit. ',
|
||||
'RCSRCS '=>'RCS ',
|
||||
' Forme:'=>'. Forme : ',
|
||||
' Capital:'=>'. Capital : ',
|
||||
' Enseigne:'=>'. Enseigne : ',
|
||||
' Sigle:'=>'. Sigle : ',
|
||||
' Activité:'=>'. Activité : ',
|
||||
' Commentaires:'=>'. Commentaires : ',
|
||||
' Adresse:'=>'. Adresse : ',
|
||||
' Date de cessation des paiements:'=>'. Date de cessation des paiements : ',
|
||||
' Mandataire judiciaire:'=>'. Mandataire judiciaire : ',
|
||||
' Les déclarations de créances '=>' Les déclarations de créances ',
|
||||
' Fonds acquis par achat '=>'. Fonds acquis par achat ',
|
||||
" Date d'effet:"=>". Date d'effet : ",
|
||||
" Date d' effet:"=>". Date d'effet : ",
|
||||
' Précédent propriétaire '=>'. Précédent propriétaire : ',
|
||||
' Précédent exploitant '=>'. Précédent exploitant : ',
|
||||
' Première insertion:'=>'. Première insertion : ',
|
||||
' oppositions:'=>'. Oppositions : ',
|
||||
' Oppositions:'=>'. Oppositions : ',
|
||||
' Adresse du siège social:'=>'. Adresse du siège social : ',
|
||||
" Adresse de l'établissement principal:"=>". Adresse de l'établissement principal : ",
|
||||
' Administration:'=>'. Administration : ',
|
||||
))), array(':.'=>':', '..'=>'.', '. .'=>'.')));
|
||||
|
||||
fwrite($fp, genereMultiLigne('104', $enteteL, $texte, $optionEOL, $nbLignes));
|
||||
|
||||
if ($nbLignes%1000==1) echo date ('Y/m/d - H:i:s')." - Nb lignes=$nbLignes\n";
|
||||
}
|
||||
|
||||
/**
|
||||
** On génère la ligne de fin de fichier
|
||||
**/
|
||||
$nbLignes++;
|
||||
$str= initstr('999', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr(date('YmdHis'), 14) . // Date & Heure de fin génération du fichier
|
||||
initstr($clientNumTourFichier, 10, '0', ALIGN_RIGHT) . // Numéro de tour du fichier pour le client
|
||||
initstr($clientIdentifiant, 36) . // Identifiant Client
|
||||
initstr($typePrestaton, 32) . // Type de prestation
|
||||
initstr($nbLignes, 10, '0', ALIGN_RIGHT) . // Nombre de lignes Total du fichier
|
||||
'';
|
||||
fwrite($fp, initstr($str,LONGUEUR_LIGNE_SORTIE)); // Pas de fin de ligne sur la dernière ligne
|
||||
fclose($fp);
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient :Fichier client terminé.".EOL;
|
||||
|
||||
/** Mise à jour des numéros de tour et des date de dernières exécutions
|
||||
**/
|
||||
if ($incrementationDesTour) {
|
||||
$iDbCrm=new WDB('sugarcrm');
|
||||
$rep=$iDbCrm->update('cases_cstm', array('trtdatederniereexec_c'=>date('YmdHis'), 'trtnumerotour_c'=> $clientNumTourFichier),
|
||||
"id_c='".$tabAdherent['idPrestationBdd']."'");
|
||||
}
|
||||
/*Gzip ou zip zt envoi par mail ou dépot sur le site FTP*/
|
||||
switch ($optionZip) {
|
||||
case 'zip':
|
||||
$zip = new ZipArchive;
|
||||
$res = $zip->open($repProduction. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.zip', ZipArchive::CREATE);
|
||||
if ($res === TRUE) {
|
||||
// $zip->addFromString('test.txt', 'file content goes here');
|
||||
$zip->addFile( REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt',
|
||||
$typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
$zip->close();
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.zip OK...'.EOL;
|
||||
} else {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression Zip du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
}
|
||||
break;
|
||||
case 'gzip':
|
||||
$string=file_get_contents(REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
$gz = gzopen($repProduction. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt.gz','w9');
|
||||
if (!$gz) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression Gzip du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
} else {
|
||||
gzwrite($gz, $string);
|
||||
gzclose($gz);
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt.gz OK...'.EOL;
|
||||
}
|
||||
break;
|
||||
case 'bzip2':
|
||||
$string=file_get_contents(REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
$bz = bzopen($repProduction. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt.bz2','w');
|
||||
// Ne sait pas si le niveau de compression 1 à 9 est implémenté pour cette fonction
|
||||
if (!$bz) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression Bzip2 impossible pour ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
} else {
|
||||
bzwrite($bz, $string, strlen($string));
|
||||
bzclose($bz);
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt.bz2 OK...'.EOL;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (!copy(REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt', $repProduction. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt'))
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Déplacement du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt a été créé...'.EOL;
|
||||
break;
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Fin du traitement diffusion BODACC.\n";
|
||||
die();
|
||||
?>
|
1022
batch/diffusionBodaccNew.php
Normal file
1022
batch/diffusionBodaccNew.php
Normal file
File diff suppressed because it is too large
Load Diff
882
batch/diffusionBodaccPrev.php
Normal file
882
batch/diffusionBodaccPrev.php
Normal file
@ -0,0 +1,882 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
|
||||
if (!defined('VERSION_FICHIER_BODACC'))
|
||||
define('VERSION_FICHIER_BODACC','0106');
|
||||
|
||||
/**
|
||||
* @todo
|
||||
* 2. Pouvoir faire du multiligne avec : 106 Libellé du Périmètre de la vente
|
||||
* 5. JugesCommissaires à intégrer correctement
|
||||
*/
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
|
||||
$repProduction='/mnt/samba/partage/production/';
|
||||
|
||||
$incrementationDesTour=true;
|
||||
$typePrestaton='diffusionBodacc';
|
||||
$ignoreDateDerExec=$retroActivite=false;
|
||||
$codeAdherent='';
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Génère les fichiers des clients en surveillance ou diffusion des annonces BODACC.
|
||||
|
||||
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 exécuter en réel (pas de MAJ des infos d'exécution: n°tour, dates trt, fichier en rép tempo...)
|
||||
-c:AAA Limiter le traitement au fichier de l'abonné AAA
|
||||
-r:XX Faire une rétroactivté de XX jours
|
||||
";
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']>1)
|
||||
{
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'i':
|
||||
$incrementationDesTour=false;
|
||||
$repProduction=REP_TEMP;
|
||||
break;
|
||||
case 's':
|
||||
$typePrestaton='surveillanceBodacc';
|
||||
break;
|
||||
case 'd':
|
||||
$typePrestaton='diffusionBodacc';
|
||||
break;
|
||||
case 'e':
|
||||
$ignoreDateDerExec=true;
|
||||
break;
|
||||
case 'r':
|
||||
$retroActivite=substr($argv[$i],3,strlen($argv[$i])-3);
|
||||
break;
|
||||
case 'c':
|
||||
$codeAdherent=substr($argv[$i],3,strlen($argv[$i])-3);
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$iDb=new WDB('jo');
|
||||
$iDb2=new WDB('jo');
|
||||
$iBodacc=new MBodacc();
|
||||
|
||||
function genereMultiLigne($typeLigne, $enteteLigne, $chaine, $eol="\r\n", &$nbLignes=0) {
|
||||
$lonLigne=LONGUEUR_LIGNE_SORTIE-90;
|
||||
$str='';
|
||||
$chaine=preg_replace('/ +/', ' ', strtr($chaine, array("\n"=>' ',"\r"=>' ',";"=>' ')));
|
||||
switch ($typeLigne) {
|
||||
case '102': // Activité déclarée au Bodacc
|
||||
case '103': // Texte rectificatif
|
||||
case '104': // Annonce Bodacc Complète
|
||||
case '105': // Structure dirigeants
|
||||
$tabLigne=str_split($chaine, $lonLigne);
|
||||
foreach ($tabLigne as $i=>$ligne) {
|
||||
$str.=initstr($typeLigne.$enteteLigne.$ligne, LONGUEUR_LIGNE_SORTIE).$eol;
|
||||
$nbLignes++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
die("ERREUR : Structure de sortie n°$typeLigne non prise en charge !\n");
|
||||
break;
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
function getListeAdherents($prestation, $codeAdherent='') {
|
||||
$strCodeAdherent='';
|
||||
if ($codeAdherent<>'') $strCodeAdherent.=" AND q.loginprestation_c='$codeAdherent' ";
|
||||
$iDbCrm=new WDB('sugarcrm');
|
||||
$rep=$iDbCrm->select('cases_cstm q, accounts a, cases p LEFT JOIN contacts_cases k ON p.id = k.case_id LEFT JOIN contacts c ON k.contact_id = c.id LEFT JOIN contacts_cstm s ON c.id = s.id_c',
|
||||
'p.id, p.case_number, p.name, p.account_id, a.name, q.typeprestation_c, q.datemiseenplace_c, q.datefinprestation_c, q.prestatest_c, q.loginprestation_c, q.passwordprestation_c, q.supportprestation_c, q.optionsupport_c, q.freqenvois_c, q.formatdesenvois_c, q.trtnumerotour_c, q.trtdatederniereexec_c*1 as derniereExec, q.optionsprestation_c, k.contact_id, k.deleted as lienContactDeleted, c.deleted as ContactDeleted, c.salutation, c.first_name, c.last_name, c.title, c.department, c.phone_mobile, c.phone_work, c.phone_fax, c.email1, c.email2, c.primary_address_street, c.primary_address_city, c.primary_address_postalcode, s.typedecontact_c', "p.deleted=0 AND p.id=q.id_c AND q.typeprestation_c='$prestation' AND q.prestationactive_c=1 AND p.account_id=a.id AND a.deleted=0 $strCodeAdherent ORDER BY p.case_number ASC", true, MYSQL_ASSOC);
|
||||
//print_r($rep);
|
||||
$tabPrestation=array();
|
||||
foreach ($rep as $i=>$contacts) {
|
||||
$numPrestation=$contacts['case_number'];
|
||||
if ($contacts['lienContactDeleted']==0 && $contacts['ContactDeleted']==0) {
|
||||
if ($contacts['email1']<>'') $email=$contacts['email1'];
|
||||
else $email=$contacts['email2'];
|
||||
if (!isset($tabPrestation[$numPrestation])) {
|
||||
// echo "Ligne $i, prestation $numPrestation : ".$contacts['last_name']."\n";
|
||||
$tabPrestation[$numPrestation]=array(
|
||||
'id'=>$contacts['case_number'],
|
||||
'idPrestationBdd'=>$contacts['id'],
|
||||
'nomClient'=>$contacts['name'],
|
||||
'typePrestation'=>$contacts['typeprestation_c'],
|
||||
'dateDebut'=>$contacts['datemiseenplace_c'],
|
||||
'dateFin'=>$contacts['datefinprestation_c'],
|
||||
'test'=>$contacts['prestatest_c'],
|
||||
'loginPrestation'=>$contacts['loginprestation_c'],
|
||||
'passwPrestation'=>$contacts['passwordprestation_c'],
|
||||
'supportPrestation'=>$contacts['supportprestation_c'],
|
||||
'optionSupport'=>$contacts['optionsupport_c'],
|
||||
'freqEnvois'=>$contacts['freqenvois_c'],
|
||||
'formatEnvois'=>$contacts['formatdesenvois_c'],
|
||||
'numeroDeTour'=>$contacts['trtnumerotour_c'],
|
||||
'dateDerniereExec'=>$contacts['derniereExec']*1,
|
||||
'optionPrestation'=>$contacts['optionsprestation_c'],
|
||||
'contacts'=>array(array( 'salutation'=>$contacts['salutation'],
|
||||
'prenom'=>$contacts['first_name'],
|
||||
'nom'=>$contacts['last_name'],
|
||||
'fonction'=>$contacts['title'],
|
||||
'tel_por'=>$contacts['phone_mobile'],
|
||||
'tel_bur'=>$contacts['phone_work'],
|
||||
'tel_fax'=>$contacts['phone_fax'],
|
||||
'email'=>$email,
|
||||
'adresse'=>$contacts['primary_address_street'],
|
||||
'ville'=>$contacts['primary_address_city'],
|
||||
'codePos'=>$contacts['primary_address_postalcode'],
|
||||
'typeContact'=>$contacts['typedecontact_c'])));
|
||||
} else {
|
||||
// echo "Ligne $i, prestation $numPrestation : ".$contacts['last_name']."\n";
|
||||
$tabPrestation[$numPrestation]['contacts']=array_merge($tabPrestation[$numPrestation]['contacts'], array(
|
||||
array( 'salutation'=>$contacts['salutation'],
|
||||
'prenom'=>$contacts['first_name'],
|
||||
'nom'=>$contacts['last_name'],
|
||||
'fonction'=>$contacts['title'],
|
||||
'tel_por'=>$contacts['phone_mobile'],
|
||||
'tel_bur'=>$contacts['phone_work'],
|
||||
'tel_fax'=>$contacts['phone_fax'],
|
||||
'email'=>$email,
|
||||
'adresse'=>$contacts['primary_address_street'],
|
||||
'ville'=>$contacts['primary_address_city'],
|
||||
'codePos'=>$contacts['primary_address_postalcode'],
|
||||
'typeContact'=>$contacts['typedecontact_c'])));
|
||||
}
|
||||
}}
|
||||
return $tabPrestation;
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début du traitement diffusion BODACC.\n";
|
||||
|
||||
/** On récupère la liste des Adhérents **/
|
||||
|
||||
//die(print_r(getListeAdherents('extranet')));
|
||||
$tabAdherents=getListeAdherents($typePrestaton, $codeAdherent);
|
||||
//print_r($tabAdherents);die();
|
||||
$nbClients=count($tabAdherents);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbClients client(s) à servir en diffusion BODACC.".EOL;
|
||||
//print_r($tabAdherents);die();
|
||||
foreach ($tabAdherents as $i=>$tabAdherent) // On boucle sur les prestations
|
||||
{
|
||||
$clientNumTourFichier=($tabAdherent['numeroDeTour']*1)+1;
|
||||
$clientIdentifiant=trim($tabAdherent['loginPrestation']);
|
||||
$nomClient=trim($tabAdherent['nomClient']);
|
||||
$numPrestation=$tabAdherent['id'];
|
||||
/** Le client souhaite une compression du fichier ? **/
|
||||
if (strpos($tabAdherent['optionSupport'], 'gzip')) $optionZip='gzip';
|
||||
elseif (strpos($tabAdherent['optionSupport'], 'zip')) $optionZip='zip';
|
||||
else $optionZip='none';
|
||||
|
||||
/** Le client préfère un paramétrage UNIX ou Window pour ses fins de lignes **/
|
||||
if (strpos($tabAdherent['optionSupport'], 'os=dos')) $optionEOL="\r\n";
|
||||
elseif (strpos($tabAdherent['optionSupport'], 'os=unix')) $optionEOL="\n";
|
||||
else $optionEOL=EOL;
|
||||
|
||||
$tabOptOutput=array();
|
||||
|
||||
if($tabAdherent['dateDebut']<>'' && $tabAdherent['dateDebut']<>'0000-00-00')
|
||||
$dateDebutPrestation=WDate::dateT('Y-m-d', 'Ymd', $tabAdherent['dateDebut']);
|
||||
else
|
||||
$dateDebutPrestation=false;
|
||||
|
||||
if($tabAdherent['dateFin']<>'' && $tabAdherent['dateFin']<>'0000-00-00')
|
||||
$dateFinPrestation=WDate::dateT('Y-m-d', 'Ymd', $tabAdherent['dateFin']);
|
||||
else
|
||||
$dateFinPrestation=false;
|
||||
|
||||
//die($tabAdherent['dateDerniereExec']);
|
||||
if ($ignoreDateDerExec)
|
||||
$dateDernierTraitement=false;
|
||||
elseif ($tabAdherent['dateDerniereExec']<>0)
|
||||
$dateDernierTraitement=$tabAdherent['dateDerniereExec'];//WDate::dateT('Y-m-d', 'Ymd', $tabAdherent['dateDerniereExec']);
|
||||
else
|
||||
$dateDernierTraitement=false;
|
||||
|
||||
|
||||
if ($dateDebutPrestation && $dateDebutPrestation>DATE) // La date de démarrage de la prestation n'est pas encore arrivée
|
||||
{
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : La prestation démarre le $dateDebutPrestation !".EOL;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($dateFinPrestation && DATE>$dateFinPrestation) // La date de fin de la prestation est révolue
|
||||
{
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Fin de la prestation le $dateFinPrestation (Dernière exécution le $dateDernierTraitement) !".EOL;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($dateDernierTraitement && substr($dateDernierTraitement,0,8)*1==DATE*1)
|
||||
{ echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Traitement déjà exécuté aujourd'hui !".EOL;
|
||||
continue;
|
||||
} elseif ($dateDernierTraitement==0) {
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Jamais exécutée pour ce client !".EOL;
|
||||
$dateDernierTraitement=false;
|
||||
/* Il faudra vérifier si on génère le stocke et depuis quand sinon on prond le dernier Bodacc */
|
||||
}// Bloc a décommenter
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Export des annonces en cours... (dernier traitement le $dateDernierTraitement)".EOL;
|
||||
|
||||
/**
|
||||
** On génère la ligne d'entête
|
||||
**/
|
||||
$fp=fopen(REP_TEMP . $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt', 'w');
|
||||
if ($fp==false) die('ERREUR : Impossible de créer le fichier !');
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
$str= initstr('001', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr(date('YmdHis'), 14) . // Date de génération du fichier
|
||||
initstr($clientNumTourFichier, 10, '0', ALIGN_RIGHT) . // Numéro de tour du fichier pour le client
|
||||
initstr($clientIdentifiant, 36) . // Identifiant Client
|
||||
initstr($typePrestaton, 32) . // Type de prestation
|
||||
initstr(VERSION_FICHIER_BODACC, 4) . // Type de prestation
|
||||
initstr(FILLER, 1901) . // FILLER
|
||||
'';
|
||||
fwrite($fp, initstr($str,LONGUEUR_LIGNE_SORTIE).$optionEOL);
|
||||
$nbLignes=1;
|
||||
|
||||
/**
|
||||
** On génère les lignes de détail
|
||||
**/
|
||||
$strRubrique='';
|
||||
if (strpos($tabAdherent['optionPrestation'], 'comptes')) // Export du Bodacc C - Dépôt des comptes
|
||||
$strRubrique.="'comptes',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'creations')) // Export des créations
|
||||
$strRubrique.="'creations',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'mmd')) // Export des MMD
|
||||
$strRubrique.="'mmd',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'procol')) // Export des ProCol
|
||||
$strRubrique.="'procol',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'radiations')) // Export des radiations
|
||||
$strRubrique.="'radiations',";
|
||||
if (strpos($tabAdherent['optionPrestation'], 'ventes')) // Export des ventes cessions
|
||||
$strRubrique.="'ventes',";
|
||||
|
||||
if (strpos($tabAdherent['optionPrestation'], '101')) // Commentaire inclus dans l'annonce si nécessaire
|
||||
$tabOptOutput[101]=true; else $tabOptOutput[101]=false;
|
||||
if (strpos($tabAdherent['optionPrestation'], '102')) // Activite déclaré au Bodacc
|
||||
$tabOptOutput[102]=true; else $tabOptOutput[102]=false;
|
||||
if (strpos($tabAdherent['optionPrestation'], '104')) // Annonce complète au format texte
|
||||
$tabOptOutput[104]=true; else $tabOptOutput[104]=false;
|
||||
if (strpos($tabAdherent['optionPrestation'], '105')) // Structure Dirigeants BODACC
|
||||
$tabOptOutput[105]=true; else $tabOptOutput[105]=false;
|
||||
|
||||
$tabNaf=array();
|
||||
$posNaf=stripos($tabAdherent['optionPrestation'], 'NAF=');
|
||||
if ($posNaf!==false) {
|
||||
if (preg_match('/NAF=(.*)(?:$|\n|\r)/i',$tabAdherent['optionPrestation'],$matches))
|
||||
$tabNaf=preg_split('(;|,)', $matches[1]);
|
||||
//die(print_r($tabNaf));
|
||||
}
|
||||
|
||||
$versionEvenClient=0;
|
||||
if (preg_match('/^versionEven=(.*)$/mUi', $tabAdherent['optionPrestation'], $matches))
|
||||
$versionEvenClient=$matches[1]*1;
|
||||
|
||||
/*$tabSiren2=array();
|
||||
foreach ($tabSiren as $siren) {
|
||||
$tabSiren2[]=$siren['siren'];
|
||||
}
|
||||
sort($tabSiren2);
|
||||
$tabSiren=$tabSiren2;
|
||||
unset($tabSiren2);
|
||||
//die();*/
|
||||
|
||||
$fields='d.id, d.siren, sirenValide, Bodacc_Num, Bodacc_Date_Parution, Num_Annonce, Rubrique_Bodacc, Rubrique, typeAnnonce, corrNum_Annonce, corrBodacc_Date_Parution, corrPage, corrNumParution, corrTexteRectificatif, RC, d.raisonSociale, nomCommercial, d.enseigne, nationalite, FJ, Capital, CapitalDev, adresse, adrNum, adrIndRep, adrTypVoie, adrLibVoie, adrComp1, adrComp2, codePostal, d.ville, adresseSiege, adrSiegeNum, adrSiegeIndRep, adrSiegeTypVoie, adrSiegeLibVoie, adrSiegeComp1, adrSiegeComp2, codePostalSiege, villeSiege, administration, activite, typeEven, commentaires, dateEffet, publication, publicationNom, publicationDate, fusion, dateDebutActivite, dateCessationActivite, dateCessationPaiement, dateJugement, Numero, VenteMt, VenteDev, bienAcqui, Mandataire, mandNom, mandRepr, mandAdresse, mandCP, mandVille, JugeCommissaire, jugeCommissaireSuppleant, ReprCreanciers, creaNom, creaRepr, creaAdresse, creaCP, creaVille, administrateur, admNom, admRepr, admAdresse, admCP, admVille, oppositions, oppoNom, oppoRepr, oppoAdresse, oppoCP, oppoVille, perimetre, dateFinDepotCreances, delaiDepotCreances, dateFinObservation, FinObservationBodacc, d.dateInsert';
|
||||
$where='1';
|
||||
// On filtre les rubriques demandées
|
||||
if ($strRubrique<>'') $where.=' AND Rubrique IN('. substr($strRubrique,0,strlen($strRubrique)-1) .') ';
|
||||
// On ne prend que les dernières annonces depuis la dernière exécution de la prestation pour le client
|
||||
if ($dateDernierTraitement) {
|
||||
if (!$retroActivite)
|
||||
$where.=" AND (d.dateInsert>$dateDernierTraitement OR d.dateUpdate>$dateDernierTraitement) ";
|
||||
else {
|
||||
$where.=" AND (d.dateInsert>$dateDernierTraitement OR d.dateUpdate>$dateDernierTraitement OR (d.dateInsert>DATE_SUB(s.dateAjout, INTERVAL $retroActivite DAY) AND s.dateConf=0 AND s.dateSuppr=0) OR (d.dateUpdate>DATE_SUB(s.dateAjout, INTERVAL $retroActivite DAY) AND s.dateConf=0 AND s.dateSuppr=0) ) ";
|
||||
}
|
||||
}
|
||||
// ... sinon on prend les annonces depuis la date de début de la prestation
|
||||
elseif ($dateDebutPrestation)
|
||||
if (!$retroActivite)
|
||||
$where.=" AND (d.dateInsert>'$dateDebutPrestation' OR d.dateUpdate>'$dateDebutPrestation') ";
|
||||
else
|
||||
$where.=" AND (d.dateInsert>'$dateDebutPrestation' OR d.dateUpdate>'$dateDebutPrestation' OR (d.dateInsert>DATE_SUB(s.dateAjout, INTERVAL $retroActivite DAY) AND s.dateSuppr=0) OR (d.dateUpdate>DATE_SUB(s.dateAjout, INTERVAL $retroActivite DAY) AND s.dateSuppr=0) ) ";
|
||||
else
|
||||
$where.=" AND (d.dateInsert>='MAX(DATE_FORMAT(d.dateInsert,'%Y-%m-%d'))' OR d.dateUpdate>='MAX(DATE_FORMAT(d.dateUpdate,'%Y-%m-%d'))') ";
|
||||
|
||||
|
||||
|
||||
|
||||
/*if (!$retroActivite)
|
||||
$where.=" AND (d.dateInsert>$dateDernierTraitement OR d.dateUpdate>$dateDernierTraitement) ";
|
||||
else {
|
||||
$where.=" AND (d.dateInsert>$dateDernierTraitement OR d.dateUpdate>$dateDernierTraitement OR (d.dateInsert>DATE_SUB(s.dateAjout, INTERVAL $retroActivite DAY) AND s.dateConf=0 AND s.dateSuppr=0) OR (d.dateUpdate>DATE_SUB(s.dateAjout, INTERVAL $retroActivite DAY) AND s.dateConf=0 AND s.dateSuppr=0) ) ";
|
||||
}*/
|
||||
|
||||
|
||||
// $where.=" AND Bodacc_Date_Parution>'2007-11-01' "; // Mederic a supprimer après la rétro du 22 mai 2008
|
||||
|
||||
if ($typePrestaton=='diffusionBodacc') {
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : diffusion...".EOL;
|
||||
$tables='bodacc_detail d';
|
||||
|
||||
// Credit safe
|
||||
// if ($numPrestation==11)
|
||||
// $where=" d.siren<>0 AND d.sirenValide=1 AND Bodacc_Date_Parution BETWEEN '2007-01-01' AND '2007-12-31' ";
|
||||
|
||||
if (count($tabNaf)>0) {
|
||||
$strNaf="'".implode("','",$tabNaf)."'";
|
||||
$fields='d.id';
|
||||
$tables='bodacc_detail d, etablissements e';
|
||||
$where.=" AND d.siren=e.siren AND d.siren<>0 AND (e.ape_etab IN ($strNaf) OR e.ape_entrep IN ($strNaf)) AND DATEDIFF(NOW(), Bodacc_Date_Parution)<=60 GROUP BY d.id;";
|
||||
// OR (d.siren<>e.siren AND d.siren=0 AND (d.activite LIKE '%pharmacie%' OR d.activite LIKE '%officine%')) GROUP BY d.id
|
||||
}
|
||||
}
|
||||
elseif ($typePrestaton=='surveillanceBodacc') {
|
||||
$tabSiren=$iDb->select('surveillances_listes', 'siren, ref', "idClient='$clientIdentifiant' AND dateSuppr='0000-00-00'", true, MYSQL_ASSOC);
|
||||
$nbSirenClient=count($tabSiren);
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : $nbSirenClient unités en surveillance...".EOL;
|
||||
$fields.=', s.ref';
|
||||
$tables='bodacc_detail d, surveillances_listes s';
|
||||
$where.=" AND d.siren=s.siren AND s.siren<>0 AND s.idClient='$clientIdentifiant' AND s.dateSuppr='0000-00-00' ";
|
||||
if (!$retroActivite)
|
||||
$where.=" AND DATEDIFF(NOW(), Bodacc_Date_Parution)<=60 ";
|
||||
/*dateAjout dateConf dateSuppr rs cp ville indTrt dateDerEnvoi
|
||||
Modifier SURBODPRDFTSMEDERIC 484968573 00010 201278081 2008-04-04 0000-00-00 0000-00-00*/
|
||||
}
|
||||
else die('Type de prestation non gérée : '.$typePrestaton.EOL);
|
||||
|
||||
//$where.=" AND DATEDIFF(NOW(), Bodacc_Date_Parution)<=60 "; // NE PAS ENVOYER D'ANNONCES DONT LES DELAIS DE FORCLUSION SONT PASSEES
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - SELECT $fields FROM $tables WHERE $where".EOL;
|
||||
$nbAnnonces=$iDb->select($tables, $fields, $where, true, MYSQL_ASSOC, true); // Gérer la table surveillance
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : $nbAnnonces annonces à traiter...".EOL;
|
||||
//echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Début de génération du fichier client en version $versionEvenClient...".EOL;
|
||||
if (count($tabNaf)>0) {
|
||||
$fields='d.id, d.siren, sirenValide, Bodacc_Num, Bodacc_Date_Parution, Num_Annonce, Rubrique_Bodacc, Rubrique, typeAnnonce, corrNum_Annonce, corrBodacc_Date_Parution, corrPage, corrNumParution, corrTexteRectificatif, RC, d.raisonSociale, nomCommercial, d.enseigne, nationalite, FJ, Capital, CapitalDev, adresse, adrNum, adrIndRep, adrTypVoie, adrLibVoie, adrComp1, adrComp2, codePostal, d.ville, adresseSiege, adrSiegeNum, adrSiegeIndRep, adrSiegeTypVoie, adrSiegeLibVoie, adrSiegeComp1, adrSiegeComp2, codePostalSiege, villeSiege, administration, activite, typeEven, commentaires, dateEffet, publication, publicationNom, publicationDate, fusion, dateDebutActivite, dateCessationActivite, dateCessationPaiement, dateJugement, Numero, VenteMt, VenteDev, bienAcqui, Mandataire, mandNom, mandRepr, mandAdresse, mandCP, mandVille, JugeCommissaire, jugeCommissaireSuppleant, ReprCreanciers, creaNom, creaRepr, creaAdresse, creaCP, creaVille, administrateur, admNom, admRepr, admAdresse, admCP, admVille, oppositions, oppoNom, oppoRepr, oppoAdresse, oppoCP, oppoVille, perimetre, dateFinDepotCreances, delaiDepotCreances, dateFinObservation, FinObservationBodacc, d.dateInsert';
|
||||
$tables='bodacc_detail d';
|
||||
$where='d.id IN (0';
|
||||
while ($annonce=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$where.=','.$annonce['id'];
|
||||
}
|
||||
$where.=')';
|
||||
echo date ('Y/m/d - H:i:s')." - SELECT $fields FROM $tables WHERE $where".EOL;
|
||||
$nbAnnonces=$iDb->select($tables, $fields, $where, true, MYSQL_ASSOC, true);
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : $nbAnnonces liens entrep/annonces à traiter...".EOL;
|
||||
}
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Début de génération du fichier client en version $versionEvenClient...".EOL;
|
||||
|
||||
//echo date ('Y/m/d - H:i:s')." - SELECT $fields FROM $tables WHERE $where".EOL;
|
||||
|
||||
//while(=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
while ($annonce=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
|
||||
/** Marquer les liens REF/SIREN envoyées à chaque client
|
||||
** Gérer les versions de tables even pour les clients
|
||||
**
|
||||
** Renvoyer le stock à médéric
|
||||
**/
|
||||
|
||||
//print_r($annonce);
|
||||
//$k++;
|
||||
//$siren=$record['siren'];***/
|
||||
|
||||
//foreach ($tabAnnonces as $numAnn=>$annonce) {
|
||||
// On récupère les 2 intervenants de la procédure
|
||||
//if (!in_array($annonce['siren'], $tabSiren)) continue;
|
||||
|
||||
$numInter=0;
|
||||
$inter=array();
|
||||
if ($annonce['mandNom']<>'' || $annonce['mandCP']<>0) {
|
||||
$inter[$numInter]['type']='M'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['mandNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['mandRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['mandAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['mandCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['mandVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
if ($annonce['creaNom']<>'' || $annonce['creaCP']<>0) {
|
||||
$inter[$numInter]['type']='R'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['creaNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['creaRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['creaAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['creaCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['creaVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
if ($annonce['admNom']<>'' || $annonce['admCP']<>0) {
|
||||
$inter[$numInter]['type']='A'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['admNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['admRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['admAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['admCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['admVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}
|
||||
/* if ($annonce['oppoNom']<>'' || $annonce['oppoCP']<>0) {
|
||||
$inter[$numInter]['type']='O'; // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
$inter[$numInter]['SIRET']=0;
|
||||
$inter[$numInter]['Nom']=$annonce['oppoNom'];
|
||||
$inter[$numInter]['Repr']=$annonce['oppoRepr'];
|
||||
$inter[$numInter]['adrNum']='';
|
||||
$inter[$numInter]['adrBis']='';
|
||||
$inter[$numInter]['adrType']='';
|
||||
$inter[$numInter]['adrLib']=$annonce['oppoAdresse'];
|
||||
$inter[$numInter]['CP']=$annonce['oppoCP'];
|
||||
$inter[$numInter]['Ville']=$annonce['oppoVille'];
|
||||
$inter[$numInter]['Tel']='';
|
||||
$numInter++;
|
||||
}*/
|
||||
$tribunalCode=$iDb2->select('bodacc', 'Tribunal_Code', 'id='.$annonce['id'], false);
|
||||
$tribunalCode=$tribunalCode[0][0];
|
||||
$refLigneClient=@$annonce['ref'];
|
||||
|
||||
$tabEven2=explode(';',$annonce['typeEven']);
|
||||
$tabEven=array();
|
||||
foreach ($tabEven2 as $even) {
|
||||
$versionEven=$iBodacc->getVersionEvenement($even);
|
||||
if ($versionEven==0 || $versionEven<=$versionEvenClient)
|
||||
$tabEven[]=$even;
|
||||
else {
|
||||
if ($even<2000) $even2=1999;
|
||||
elseif ($even<3000) $even2=2312;
|
||||
elseif ($even<4000) $even2=3999;
|
||||
elseif ($even<5000) $even2=4999;
|
||||
elseif ($even<6000) $even2=5999;
|
||||
elseif ($even<7000) $even2=6700;
|
||||
else $even2=1999;
|
||||
$tabEven[]=$even2;
|
||||
// echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient : Evènement $even non géré en v$versionEvenClient : $even2".EOL;
|
||||
}
|
||||
}
|
||||
$str= initstr('100', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr($annonce['id'], 10, '0', ALIGN_RIGHT) . // Numéro unique d'identification interne d'une annonce
|
||||
initstr($annonce['siren'], 9, '0', ALIGN_RIGHT) . // Siren de l'entreprise concernée par l'annonce
|
||||
initstr(FILLER, 5) . // On garde la place pour le NIC
|
||||
initstr($annonce['Bodacc_Num'], 3, '0', ALIGN_RIGHT) . // Numéro de parution du Bodacc dans l'année
|
||||
initstr(substr($annonce['Rubrique_Bodacc'],0,1), 1) . // Code Bodacc (A, B ou C)
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['Bodacc_Date_Parution']), 8) . // Date de parution du Bodacc
|
||||
initstr($annonce['Num_Annonce'], 5, '0', ALIGN_RIGHT) . // Numéro de l'annonce dans le Bodacc
|
||||
initstr(substr($annonce['Rubrique_Bodacc'],1,3), 3, '0') . // Rubrique dans le Bodacc
|
||||
initstr($annonce['typeAnnonce'], 1) . // Type d'annonce Bodacc : I=Insertion, A=Additif,
|
||||
// R=Rectif, S=Suppression
|
||||
initstr($annonce['corrNum_Annonce'], 5, '0', ALIGN_RIGHT) . // Si annonce diff. de I, numéro de l'annonce corrigée
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['corrBodacc_Date_Parution']), 8) . // Si diff. I, date du Bodacc de l'annonce corrigée
|
||||
initstr($annonce['corrPage'], 6, '0', ALIGN_RIGHT) . // Si diff. I, page du Bodacc de l'annonce corrigée
|
||||
initstr($annonce['corrNumParution'], 4, '0', ALIGN_RIGHT) . // Si diff. I, Num parut°/année de annonce corrigée
|
||||
// (ex: 230A, 001B)
|
||||
// initstr($annonce['corrTexteRectificatif'], XXXXXX, '0', ALIGN_RIGHT) . // Si diff. I,
|
||||
// initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateInsert']), 8, '0') . // Date de l'intégration en bae S&D
|
||||
|
||||
initstr($refLigneClient, 18) . // REFERENCE DU CLIENT
|
||||
initstr($tribunalCode, 6) .
|
||||
initstr($annonce['RC'], 9) . // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
initstr($annonce['raisonSociale'], 150) . // Raison sociale de l'entreprise
|
||||
initstr($annonce['nomCommercial'], 100) . // Nom commercial de l'entreprise
|
||||
initstr($annonce['enseigne'], 100) . // Enseigne de l'établissement
|
||||
initstr($annonce['nationalite'], 30) . // Nationalité si Personne physique
|
||||
//initstr(MInsee::getFJInsee($annonce['siren']), 4) . // FJ codification Insee
|
||||
initstr('0000', 4) . // FJ codification Insee
|
||||
initstr($annonce['FJ'], 90) . // Forme juridique de l'entreprise déclarée au BODACC
|
||||
initstr($annonce['Capital'], 15, '0', ALIGN_RIGHT) . // Capital
|
||||
initstr($annonce['CapitalDev'], 3) . // Devise du capital (format ISO)
|
||||
// Adresse / 150 car
|
||||
initstr($annonce['adrNum'], 4, '0', ALIGN_RIGHT) . //
|
||||
initstr($annonce['adrIndRep'], 1) . //
|
||||
initstr($annonce['adrTypVoie'], 5) .
|
||||
initstr($annonce['adrLibVoie'], 50) .
|
||||
initstr($annonce['adrComp1'], 50) .
|
||||
initstr($annonce['adrComp2'], 40) .
|
||||
initstr($annonce['codePostal'], 5, '0', ALIGN_RIGHT) . // Code Postal de l'établissement
|
||||
initstr($annonce['villeSiege'], 45) . // Ville de l'établissement
|
||||
// Adresse du siège / 150 car
|
||||
initstr($annonce['adrNumSiege'], 4, '0', ALIGN_RIGHT) . //
|
||||
initstr($annonce['adrIndRepSiege'], 1) . //
|
||||
initstr($annonce['adrTypVoieSiege'], 5) .
|
||||
initstr($annonce['adrLibVoieSiege'], 50) .
|
||||
initstr($annonce['adrComp1Siege'], 50) .
|
||||
initstr($annonce['adrComp2Siege'], 40) .
|
||||
initstr($annonce['codePostalSiege'], 5, '0', ALIGN_RIGHT) . // Code Postal de l'établissement
|
||||
initstr($annonce['villeSiege'], 45) . // Ville de l'établissement
|
||||
initstr(implode('',$tabEven), 32, '0', ALIGN_RIGHT) . // Code Evènement Bodacc n°1 à 8
|
||||
initstr($annonce['publicationNom'], 100) . // NOM du JAL si publication
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['publicationDate']), 8) . // Date de publication du JAL si publication
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateCessationPaiement']), 8) . // Date de cessation des paiements
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateJugement']), 8) . // Date du jugement
|
||||
initstr(FILLER, 1) . // FILLER (Replace type de création)
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateDebutActivite']), 8) . // Date de début d'activité
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateEffet']), 8) . // Date d'effet (Ventes/MMD)
|
||||
// ou Date clôture exercice si ann dépôt comptes
|
||||
initstr($annonce['VenteMt'], 15, '0', ALIGN_RIGHT) . // Montant de la vente
|
||||
initstr($annonce['VenteDev'], 3) . // Devise de la ventre
|
||||
initstr($annonce['Numero'], 35) . // Numéro de l'affaire au greffe
|
||||
initstr($inter[0]['type'], 1) . // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
initstr($inter[0]['SIRET'], 14, '0', ALIGN_RIGHT) . // Intervenant A : Siret
|
||||
initstr($inter[0]['Nom'], 80) . // Raison sociale
|
||||
initstr($inter[0]['Repr'], 80) . // Représentant
|
||||
initstr($inter[0]['adrNum'], 4, '0', ALIGN_RIGHT) . // Adresse, numéro dans la voie
|
||||
initstr($inter[0]['adrBis'], 1) . // Adresse, Bis/Ter
|
||||
initstr($inter[0]['adrType'], 4) . // Adresse, type de voie
|
||||
initstr($inter[0]['adrLib'], 32) . // Adresse, libellé de la voie
|
||||
initstr($inter[0]['CP'], 5, '0', ALIGN_RIGHT) . // Adresse, code Postal
|
||||
initstr($inter[0]['Ville'], 45) . // Adresse, commune
|
||||
initstr($inter[0]['Tel'], 10, '0', ALIGN_RIGHT) . // Téléphone
|
||||
initstr($inter[1]['type'], 1) . // Type d'intervenant A : Mand/Adm/ReprCre/Oppo
|
||||
initstr($inter[1]['SIRET'], 14, '0', ALIGN_RIGHT) . // Intervenant A : Siret
|
||||
initstr($inter[1]['Nom'], 80) . // Raison sociale
|
||||
initstr($inter[1]['Repr'], 80) . // Représentant
|
||||
initstr($inter[1]['adrNum'], 4, '0', ALIGN_RIGHT) . // Adresse, numéro dans la voie
|
||||
initstr($inter[1]['adrBis'], 1) . // Adresse, Bis/Ter
|
||||
initstr($inter[1]['adrType'], 4) . // Adresse, type de voie
|
||||
initstr($inter[1]['adrLib'], 32) . // Adresse, libellé de la voie
|
||||
initstr($inter[1]['CP'], 5, '0', ALIGN_RIGHT) . // Adresse, code Postal
|
||||
initstr($inter[1]['Ville'], 45) . // Adresse, commune
|
||||
initstr($inter[1]['Tel'], 10, '0', ALIGN_RIGHT) . // Téléphone
|
||||
initstr(FILLER/*$annonce['JugeCommissaireNom']*/, 30) . // NOM du JugeCommissaire
|
||||
initstr(FILLER/*$annonce['JugeCommissairePrenom']*/, 30) . // Prénom du JugeCommissaire
|
||||
initstr(FILLER/*$annonce['JugeCommissaireSupplNom']*/, 30) . // NOM du JugeCommissaire suppléant
|
||||
initstr(FILLER/*$annonce['JugeCommissaireSupplPrenom']*/, 30) . // Prénom du JugeCommissaire suppléant
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateFinDepotCreances']), 8) . // Date limite pour le dépôt des créances
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateFinObservation']), 8) . // Date de fin de la période d'observation
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['dateInsert']), 8) . // Date d'insertion dans la base S&D
|
||||
'';
|
||||
fwrite($fp, initstr($str,LONGUEUR_LIGNE_SORTIE).$optionEOL);
|
||||
$nbLignes++;
|
||||
// if ($tabOptOutput['commentaire']==true && $annonce['commentaires']<>'')
|
||||
// fwrite($fp, '101'.initsrt($annonce['commentaires'],1500).$eol); // Commentaire textuel si nécessaire
|
||||
$enteteL= initstr($annonce['id'], 10, '0', ALIGN_RIGHT) . // Numéro unique d'identification interne d'une annonce
|
||||
initstr($annonce['siren'], 9, '0', ALIGN_RIGHT) . // Siren de l'entreprise concernée par l'annonce
|
||||
initstr(FILLER, 5) . // On garde la place pour le NIC
|
||||
initstr($annonce['Bodacc_Num'], 3, '0', ALIGN_RIGHT) . // Numéro de parution du Bodacc dans l'année
|
||||
initstr(substr($annonce['Rubrique_Bodacc'],0,1), 1) . // Code Bodacc (A, B ou C)
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['Bodacc_Date_Parution']), 8) . // Date de parution du Bodacc
|
||||
initstr($annonce['Num_Annonce'], 5, '0', ALIGN_RIGHT) . // Numéro de l'annonce dans le Bodacc
|
||||
initstr(substr($annonce['Rubrique_Bodacc'],1,3), 3, '0') . // Rubrique dans le Bodacc
|
||||
initstr($annonce['typeAnnonce'], 1) . // Type d'annonce Bodacc : I=Insertion, A=Additif,
|
||||
// R=Rectificatif, S=Suppression
|
||||
initstr($annonce['corrNum_Annonce'], 5, '0', ALIGN_RIGHT) . // Si annonce différent de I, numéro de l'annonce corrigée
|
||||
initstr(WDate::dateT('Y-m-d','Ymd',$annonce['corrBodacc_Date_Parution']), 8) . // Si diff. I, date du Bodacc de l'annonce corrigée
|
||||
initstr($annonce['corrPage'], 6, '0', ALIGN_RIGHT) . // Si diff. I, page du Bodacc de l'annonce corrigée
|
||||
initstr($annonce['corrNumParution'], 4, '0', ALIGN_RIGHT) . // Si diff. I, Num parution dans l'année de annonce corri(ex: 230A, 001B)
|
||||
initstr($refLigneClient, 18) . // REF CLI
|
||||
'';
|
||||
|
||||
if ($tabOptOutput[101]==true && $annonce['commentaires']<>'') // Commentaires
|
||||
fwrite($fp, genereMultiLigne('101', $enteteL, $annonce['commentaires'], $optionEOL, $nbLignes));
|
||||
if ($tabOptOutput[102]==true && $annonce['activite']<>'') // Activité déclarée au Bodacc
|
||||
fwrite($fp, genereMultiLigne('102', $enteteL, $annonce['activite'], $optionEOL, $nbLignes));
|
||||
if ($annonce['corrTexteRectificatif']<>'') // Texte rectificatif
|
||||
fwrite($fp, genereMultiLigne('103', $enteteL, $annonce['corrTexteRectificatif'], $optionEOL, $nbLignes));
|
||||
if ($tabOptOutput[104]==true) { // Annonce Bodacc Complète
|
||||
$annoncetxt=$iDb2->select('bodacc', 'annonce', 'id='.$annonce['id'], false);
|
||||
$annoncetxt=$annoncetxt[0][0];
|
||||
fwrite($fp, genereMultiLigne('104', $enteteL, $annoncetxt, $optionEOL, $nbLignes));
|
||||
}
|
||||
if ($tabOptOutput[105]==true) { // Liste des dirigeants
|
||||
$annonceDir=$iDb2->select('bodacc_dirigeants', 'id, num, dateEffet, fonction, rs, nom, prenom, nomUsage', 'id='.$annonce['id'], true);
|
||||
$strDir='';
|
||||
foreach ($annonceDir as $k=>$dir) {
|
||||
$strDir.=initstr(WDate::dateT('Y-m-d','Ymd',$dir['dateEffet']), 8, '0', ALIGN_RIGHT) . // Date de la prise de fonction
|
||||
initstr($dir['fonction'], 4) . // Code Fonction S&D
|
||||
initstr($dir['rs'], 80) . // Raison Sociale du dirigeant
|
||||
initstr($dir['nom'], 50) . // NOM du dirigeant
|
||||
initstr($dir['prenom'], 100) . // Prenom
|
||||
initstr($dir['usage'], 50); // Nom d'usage
|
||||
if ($k%6==0) $strDir.=initstr(' ', 28);
|
||||
else $strDir.=initstr(' ', 26);
|
||||
}
|
||||
fwrite($fp, genereMultiLigne('105', $enteteL, $strDir, $optionEOL, $nbLignes));
|
||||
}
|
||||
if ($nbLignes%1000==1) echo date ('Y/m/d - H:i:s')." - Nb lignes=$nbLignes\n";
|
||||
}
|
||||
|
||||
/**
|
||||
** On génère la ligne de fin de fichier
|
||||
**/
|
||||
$nbLignes++;
|
||||
$str= initstr('999', 3, '0', ALIGN_RIGHT) . // Type de ligne
|
||||
initstr(date('YmdHis'), 14) . // Date & Heure de fin génération du fichier
|
||||
initstr($clientNumTourFichier, 10, '0', ALIGN_RIGHT) . // Numéro de tour du fichier pour le client
|
||||
initstr($clientIdentifiant, 36) . // Identifiant Client
|
||||
initstr($typePrestaton, 32) . // Type de prestation
|
||||
initstr($nbLignes, 10, '0', ALIGN_RIGHT) . // Nombre de lignes Total du fichier
|
||||
'';
|
||||
fwrite($fp, initstr($str,LONGUEUR_LIGNE_SORTIE)); // Pas de fin de ligne sur la dernière ligne
|
||||
fclose($fp);
|
||||
echo date ('Y/m/d - H:i:s')." - Prestation n°$numPrestation, Client $nomClient :Fichier client terminé.".EOL;
|
||||
|
||||
/** Mise à jour des numéros de tour et des date de dernières exécutions
|
||||
**/
|
||||
if ($incrementationDesTour) {
|
||||
$iDbCrm=new WDB('sugarcrm');
|
||||
$rep=$iDbCrm->update('cases_cstm', array('trtdatederniereexec_c'=>date('YmdHis'), 'trtnumerotour_c'=> $clientNumTourFichier),
|
||||
"id_c='".$tabAdherent['idPrestationBdd']."'");
|
||||
}
|
||||
|
||||
/** Conversion du fichier si nécessaire en CSV
|
||||
**/
|
||||
if ($tabAdherent['formatEnvois']=='csv') {
|
||||
$ligneOut='';
|
||||
$ligne001=$ligne100=$ligne104=$ligne999=0;
|
||||
$tabLignes=file(REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
$fichier_csv=$typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.csv';
|
||||
$fp=fopen(REP_TEMP . $fichier_csv, 'w');
|
||||
foreach ($tabLignes as $i=>$ligne) {
|
||||
$ecrireLignePre=false;
|
||||
$typeLigne=substr($ligne, 0, 3)*1;
|
||||
switch ($typeLigne) {
|
||||
case 1: // Ligne ignorée
|
||||
// Ecriture de l'entête
|
||||
$siren ='Siren';
|
||||
$nic ='Nic';
|
||||
$ref ='Référence';
|
||||
$numPar ='Parution';
|
||||
$bodacc ='Bodacc';
|
||||
$datePar='Date parution';
|
||||
$numAnn ='Numéro Annonce';
|
||||
$cor ='Type Annonce';
|
||||
$libTri ='Tribunal';
|
||||
$numRC ='Numéro RCS';
|
||||
$raisonS='Raison sociale';
|
||||
$catEven='Chapitre';
|
||||
$txtEven='Evènement(s)';
|
||||
$dateEve='Date évènement';
|
||||
$txtAnn ='Texte Annonce';
|
||||
$ligne001++;
|
||||
break;
|
||||
case 100: // Structure Bodacc
|
||||
$ligneOut="$siren;$nic;$ref;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$numRC;$raisonS;$catEven;$txtEven;$dateEve;$txtAnn";
|
||||
$ligne100++;
|
||||
$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
|
||||
$dateEve1=substr($ligne, 1144, 8 ); // Date de jugezment
|
||||
$dateEve2=substr($ligne, 1161, 8 ); // Date d'effet, etc...
|
||||
if ($dateEve1>0)
|
||||
$dateEve=WDate::dateT('Ymd','d/M/Y',$dateEve1);
|
||||
elseif ($dateEve2>0)
|
||||
$dateEve=WDate::dateT('Ymd','d/M/Y',$dateEve2);
|
||||
else
|
||||
$dateEve='';
|
||||
$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;
|
||||
}
|
||||
$codeTri= substr($ligne, 89 , 6 ); // Code Tribunal Codification interne utilisée par le Bodacc
|
||||
$libTri=$iBodacc->getTribunalNom($codeTri);
|
||||
|
||||
$numRC = trim(substr($ligne, 95 , 9 )); // Numéro de RC (Registre du Commerce) de l'entreprise
|
||||
$raisonS= trim(substr($ligne, 104 , 150 )); // Raison sociale de l'entreprise
|
||||
$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='';
|
||||
foreach ($even as $codeEven)
|
||||
if ($codeEven<>0) {
|
||||
$txtEven.=$iBodacc->getEvenement($codeEven)." ($codeEven), ";
|
||||
$catEven=$iBodacc->getChapitreEvenement($codeEven);
|
||||
}
|
||||
else
|
||||
$txtEven.='';
|
||||
$txtEven=substr($txtEven,0,strlen($txtEven)-2);
|
||||
$txtAnn='';
|
||||
$ecrireLignePre=true;
|
||||
break;
|
||||
case 104: // Annonce
|
||||
$ligne104++;
|
||||
$txtAnn=trim($txtAnn.' '.str_replace(';','.',trim(substr($ligne, 89 , 1910)))); // Texte Annonce
|
||||
break;
|
||||
case 999: // Ligne ignorée
|
||||
$ligneOut="$siren;$nic;$ref;$numPar;$bodacc;$datePar;$numAnn;$cor;$libTri;$numRC;$raisonS;$catEven;$txtEven;$dateEve;$txtAnn";
|
||||
$ligne999++;
|
||||
$ecrireLignePre=true;
|
||||
break;
|
||||
default: // Ligne non gérée
|
||||
break;
|
||||
}
|
||||
if ($ecrireLignePre) fwrite($fp, $ligneOut.EOL);
|
||||
}
|
||||
fclose($fp);
|
||||
echo date ('Y/m/d - H:i:s')." - Conversion du fichier $fichier_csv terminée !".EOL;
|
||||
}
|
||||
|
||||
/*Gzip ou zip zt envoi par mail ou dépot sur le site FTP*/
|
||||
switch ($optionZip) {
|
||||
case 'zip':
|
||||
$zip = new ZipArchive;
|
||||
$ficProduction=$typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.zip';
|
||||
$res = $zip->open($repProduction.$ficProduction, ZipArchive::CREATE);
|
||||
if ($res === TRUE) {
|
||||
// $zip->addFromString('test.txt', 'file content goes here');
|
||||
$zip->addFile( REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt',
|
||||
$typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
if ($tabAdherent['formatEnvois']=='csv')
|
||||
$zip->addFile(REP_TEMP. $fichier_csv, $fichier_csv);
|
||||
$zip->close();
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.zip OK...'.EOL;
|
||||
} else {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression Zip du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
}
|
||||
break;
|
||||
case 'gzip':
|
||||
$ficProduction= $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt.gz';
|
||||
$string=file_get_contents(REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
$gz = gzopen($repProduction.$ficProduction,'w9');
|
||||
if (!$gz) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression Gzip du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
} else {
|
||||
gzwrite($gz, $string);
|
||||
gzclose($gz);
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt.gz OK...'.EOL;
|
||||
}
|
||||
|
||||
if ($tabAdherent['formatEnvois']=='csv') {
|
||||
$ficProduction_csv= $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.csv.gz';
|
||||
$string=file_get_contents(REP_TEMP. $fichier_csv);
|
||||
$gz = gzopen($repProduction.$ficProduction_csv,'w9');
|
||||
if (!$gz) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression Gzip du fichier $fichier_csv impossible !".EOL;
|
||||
} else {
|
||||
gzwrite($gz, $string);
|
||||
gzclose($gz);
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier $ficProduction_csv OK...".EOL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'bzip2':
|
||||
$ficProduction=$typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt.bz2';
|
||||
$string=file_get_contents(REP_TEMP. $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt');
|
||||
$bz = bzopen($repProduction.$ficProduction,'w');
|
||||
// Ne sait pas si le niveau de compression 1 à 9 est implémenté pour cette fonction
|
||||
if (!$bz) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression Bzip2 impossible pour ". $typePrestaton .'_'. $clientIdentifiant .'.txt impossible !'.EOL;
|
||||
} else {
|
||||
bzwrite($bz, $string, strlen($string));
|
||||
bzclose($bz);
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier ". $typePrestaton .'_'. $clientIdentifiant .'.txt.bz2 OK...'.EOL;
|
||||
}
|
||||
if ($tabAdherent['formatEnvois']=='csv') {
|
||||
$ficProduction_csv= $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.csv.bz2';
|
||||
$string=file_get_contents(REP_TEMP. $fichier_csv);
|
||||
$bz = bzopen($repProduction.$ficProduction_csv,'w');
|
||||
if (!$bz) {
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Compression Bzip2 du fichier $fichier_csv impossible !".EOL;
|
||||
} else {
|
||||
bzwrite($bz, $string, strlen($string));
|
||||
bzclose($bz);
|
||||
echo date ('Y/m/d - H:i:s')." - Compression du fichier $ficProduction_csv OK...".EOL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$ficProduction= $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.txt';
|
||||
$ficProduction_csv= $typePrestaton.'_'.$clientIdentifiant.'_'.DATETIME.'.csv';
|
||||
if (!copy(REP_TEMP.$ficProduction, $repProduction.$ficProduction))
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Déplacement du fichier $ficProduction impossible !".EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier $ficProduction a été créé...".EOL;
|
||||
if ($tabAdherent['formatEnvois']=='csv') {
|
||||
if (!copy(REP_TEMP.$ficProduction_csv, $repProduction.$ficProduction_csv))
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Déplacement du fichier $ficProduction_csv impossible !".EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier $ficProduction_csv a été créé...".EOL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/** Sauvegarde des fichiers dans clients **/
|
||||
$repBakClient='/home/data/clients/'.strtolower($tabAdherent['nomClient']);
|
||||
if (!file_exists($repBakClient)) {
|
||||
echo date ('Y/m/d - H:i:s')." - ATTENTION : Les dossiers BACKUP du client ne sont pas correctement créés !".EOL;
|
||||
if (!file_exists($repBakClient) && mkdir($repBakClient))
|
||||
echo date ('Y/m/d - H:i:s')." - Le dossier Backup du client a été créé ($repBakClient)".EOL;
|
||||
// if (!file_exists($repFtpClient.'/recv') && mkdir($repFtpClient.'/recv'))
|
||||
// echo date ('Y/m/d - H:i:s')." - Le dossier FTP/RECV du client a été créé ($repFtpClient/recv)".EOL;
|
||||
}
|
||||
if (!copy($repProduction.$ficProduction, $repBakClient.'/'.$ficProduction))
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Copy du fichier $ficProduction dans Backup impossible !".EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier $ficProduction a été historisé...".EOL;
|
||||
|
||||
if ($tabAdherent['formatEnvois']=='csv') {
|
||||
if (!copy($repProduction.$ficProduction_csv, $repBakClient.'/'.$ficProduction_csv))
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Historisation du fichier $ficProduction_csv impossible !".EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier $ficProduction_csv a été historisé...".EOL;
|
||||
}
|
||||
|
||||
/** Si FTP, déplacement dans les dossiers adéquats **/
|
||||
if ($tabAdherent['supportPrestation']=='ftp' || $tabAdherent['supportPrestation']=='web') {//$repProduction.$ficProduction
|
||||
$repFtpClient='/home/data/ftp/'.strtolower($tabAdherent['nomClient']);
|
||||
if (!file_exists($repFtpClient) || !file_exists($repFtpClient.'/recv')) {
|
||||
echo date ('Y/m/d - H:i:s')." - ATTENTION : Les dossiers FTP du client ne sont pas correctement créés !".EOL;
|
||||
if (!file_exists($repFtpClient) && mkdir($repFtpClient))
|
||||
echo date ('Y/m/d - H:i:s')." - Le dossier FTP du client a été créé ($repFtpClient)".EOL;
|
||||
if (!file_exists($repFtpClient.'/recv') && mkdir($repFtpClient.'/recv'))
|
||||
echo date ('Y/m/d - H:i:s')." - Le dossier FTP/RECV du client a été créé ($repFtpClient/recv)".EOL;
|
||||
}
|
||||
if (!move($repProduction.$ficProduction, $repFtpClient.'/recv/'.$ficProduction))
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Déplacement du fichier $ficProduction dans FTP/RECV impossible !".EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier $ficProduction a été déplacé dans FTP/RECV...".EOL;
|
||||
|
||||
if ($tabAdherent['formatEnvois']=='csv') {
|
||||
if (!move($repProduction.$ficProduction_csv, $repFtpClient.'/recv/'.$ficProduction_csv))
|
||||
echo date ('Y/m/d - H:i:s')." - ERREUR : Déplacement du fichier $ficProduction_csv dans FTP/RECV impossible !".EOL;
|
||||
else
|
||||
echo date ('Y/m/d - H:i:s')." - Le fichier $ficProduction_csv a été déplacé dans FTP/RECV...".EOL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
echo date ('Y/m/d - H:i:s')." - Fin du traitement diffusion BODACC.\n";
|
||||
die();
|
||||
?>
|
1428
batch/diffusionBodaccPrev2011.php
Normal file
1428
batch/diffusionBodaccPrev2011.php
Normal file
File diff suppressed because it is too large
Load Diff
457
batch/diffusionEntrep.php
Normal file
457
batch/diffusionEntrep.php
Normal file
@ -0,0 +1,457 @@
|
||||
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
||||
<?php
|
||||
/*
|
||||
$tabSiret=array(19330142100015,
|
||||
19331460600016,
|
||||
39186692800016,
|
||||
15400073100013,
|
||||
39909992800018,
|
||||
18330008600067
|
||||
);*/
|
||||
|
||||
function exporte($txt, $lon, $sep="\t") {
|
||||
$txt=strtr(trim($txt),array('''=>"'",'&'=>'&', '²'=>'²', "\r"=>'', "\n"=>'', "\t"=>''));
|
||||
|
||||
if ($sep=='') return sprintf("%-".$lon.'.'.$lon."s", $txt);
|
||||
|
||||
return trim(sprintf("%-".$lon.'.'.$lon."s", $txt)).$sep;
|
||||
}
|
||||
|
||||
function choixAdr($bodEtab, $bodSiege, $insee) {
|
||||
|
||||
if (strlen(trim($bodSiege))>0) $adr=trim($bodSiege);
|
||||
elseif (strlen(trim($bodEtab))>0) $adr=trim($bodEtab);
|
||||
else $adr='';
|
||||
|
||||
if (isset($insee) && trim($insee)<>'') return $insee;
|
||||
else return $adr;
|
||||
}
|
||||
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
include_once(FWK_PATH.'common/chiffres.php');
|
||||
include_once(FWK_PATH.'common/dates.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMBilans.php');
|
||||
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
||||
include_once(INCLUDE_PATH.'partenaires/classMLiens.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMFinancier.php');
|
||||
include_once(INCLUDE_PATH.'scores/classMScores.php');
|
||||
include_once(FWK_PATH.'mail/sendMail.php');
|
||||
|
||||
$siretReprise=0;
|
||||
|
||||
$strInfoScript='Usage : '.basename($argv[0]). " [OPTION]
|
||||
Mise à jour des champs complexes de la table 'etablissement_act' et génération du fichier spécifique Véolia.
|
||||
|
||||
Options :
|
||||
-r:SIRET Reprendre après ce siret
|
||||
-v Verbosité maximum
|
||||
";
|
||||
|
||||
$argv=$_SERVER['argv'];
|
||||
if ($_SERVER['argc']>1)
|
||||
{
|
||||
for ($i=1; isset($argv[$i]); $i++) {
|
||||
if (substr($argv[$i],0,1)=='-') {
|
||||
switch (substr($argv[$i],1,1)) {
|
||||
case 'r':
|
||||
$siretReprise=substr($argv[$i],3,strlen($argv[$i])-3);
|
||||
break;
|
||||
case '-':
|
||||
case '?':
|
||||
die($strInfoScript);
|
||||
break;
|
||||
default:
|
||||
die('Option '. $argv[$i] . " inconnue !\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$iDb=new WDB('jo');
|
||||
$iDb2=new WDB('jo');
|
||||
$iInsee=new MInsee();
|
||||
|
||||
/** Chargement des depCom des communes ayant au moins une adresse de domiciliation **/
|
||||
$tabComDom=array();
|
||||
$nbRows=$iDb->select('tabAdrDom', 'depComEt', '(enActif=1 OR etActif=1) AND nbEntrep>30 AND pasEntrepDom=0 AND siren>1000 GROUP BY depComEt', false, MYSQL_ASSOC, true);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbRows communes avec des adresses de domiciliation...".EOL;
|
||||
while($tabCom=$iDb->fetch(MYSQL_ASSOC))
|
||||
$tabComDom['_'.$tabCom['depComEt']]=1;
|
||||
|
||||
|
||||
/*
|
||||
$nbRows=$iDb->select('etablissements_act', 'DISTINCT sirenGrp', 'sirenGrp>1000', false, MYSQL_ASSOC, true);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbRows groupes à mettre à jour...".EOL;
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$siren=$entrep['sirenGrp'];
|
||||
$iDb2->update('etablissements_act', array('sirenGrp'=>$siren), "siren=$siren") or die('Err4:'.mysql_error());
|
||||
}
|
||||
|
||||
die();
|
||||
*
|
||||
$fields='id, siren, nic, adr_num, adr_btq, adr_typeVoie, adr_libVoie, adr_comp, adr_cp, adr_ville, adr_dep, adr_com';
|
||||
|
||||
$nbRows=$iDb->select('etablissements_act', 'COUNT(*) AS nb', '1', true, MYSQL_ASSOC);
|
||||
$nbRowsTot=$nbRows[0]['nb'];
|
||||
echo date('Y/m/d - H:i:s') ." - Début de l'export des $nbRowsTot établissements actifs...".EOL;
|
||||
$iLimitNb=100000;
|
||||
|
||||
for ($iLimit=8100000; $iLimit<$nbRowsTot; $iLimit+=$iLimitNb) {
|
||||
$nbRows=$iDb->select('etablissements_act', $fields, "1 LIMIT $iLimit, $iLimitNb", true, MYSQL_ASSOC, true);
|
||||
if (mysql_errno()>0) die(date('Y/m/d - H:i:s') ." - Erreur SQL : ".mysql_error().EOL);
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows entreprises à diffuser ($iLimit, $iLimitNb)...".EOL;
|
||||
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$numRow++;
|
||||
$siren=$entrep['siren'];
|
||||
$nic=$entrep['nic'];
|
||||
$siret=$siren.$nic;
|
||||
$dep=$entrep['adr_dep'];
|
||||
$com=$entrep['adr_com'];
|
||||
if ($dep*1>0 && $dep*1<10) { $dep=$dep*1; $depCom='0'.$dep.$com; }
|
||||
else $depCom=substr(''.$dep,0,2).$com;
|
||||
if (@$tabComDom['_'.$depCom]==1) {
|
||||
//echo date('Y/m/d - H:i:s') ." - $depCom dans \$tabCom...".EOL;
|
||||
|
||||
$tabDom=@$iInsee->infoAdresseDom( $entrep['adr_num'],
|
||||
$entrep['adr_btq'],
|
||||
$entrep['adr_typeVoie'],
|
||||
$entrep['adr_libVoie'],
|
||||
$entrep['adr_comp'],
|
||||
$entrep['adr_cp'],
|
||||
$entrep['adr_ville']);
|
||||
if (is_array($tabDom) && count($tabDom)>0) {
|
||||
$nbDom++;
|
||||
$tabUpdate=array('adrDom'=>1);
|
||||
if (preg_match('/^CHEZ (.*)$/i',$entrep['adr_comp'], $matches) &&
|
||||
!preg_match('/ M | M. | MR | MME | MLLE /i',$entrep['adr_comp']))
|
||||
$tabUpdate=array('adrDom'=>2);
|
||||
|
||||
$iDb->update('etablissements_act', $tabUpdate, "siren=$siren AND nic=$nic");
|
||||
}
|
||||
}// else echo date('Y/m/d - H:i:s') ." - $depCom hors \$tabCom...".EOL;
|
||||
}
|
||||
}
|
||||
|
||||
die();
|
||||
*/
|
||||
|
||||
$iBilan=new MBilans(0);
|
||||
$iCotation=new ICotation(array());
|
||||
$iLiens=new MLiens(0);
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Début du traitement diffusion des Etablissements.\n";
|
||||
/*
|
||||
// DEBUT TEST maisonMere
|
||||
//$nbRows=$iDb->select('etablissements_act', 'DISTINCT siren', 'nbActio>0 AND siren>10000 AND sirenGrp IS NULL', true, MYSQL_ASSOC, true);
|
||||
$nbRows=$iDb->select('etablissements_act', 'DISTINCT siren', 'nbActio>0 AND siren>439752767 AND sirenGrp IS NULL', true, MYSQL_ASSOC, true);
|
||||
$j=0;
|
||||
$tabSirenVisites=array();
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$j++;
|
||||
$siren=$entrep['siren'];
|
||||
echo date ('Y/m/d - H:i:s')." - $j/$nbRows - Siren $siren : ";
|
||||
if (isset($tabSirenVisites[$siren*1])) {
|
||||
$sirenMere=$tabSirenVisites[$siren];
|
||||
if ($siren<>$sirenMere)
|
||||
echo "maison mère $sirenMere (EN CACHE)";
|
||||
} else {
|
||||
$sirenMere=@$iLiens->getMaisonMereFr($siren);
|
||||
if ($siren<>$sirenMere) {
|
||||
echo "maison mère $sirenMere";
|
||||
foreach ($iLiens->tabSirenVisites as $siren1) {
|
||||
$tabSirenVisites[$siren1*1]=$sirenMere;
|
||||
}
|
||||
}
|
||||
}
|
||||
echo EOL;
|
||||
if ($siren<>$sirenMere)
|
||||
$iDb2->update('etablissements_act', array('sirenGrp'=>$sirenMere), "siren=$siren") or die('Err3:'.mysql_error());
|
||||
}
|
||||
die("$nbRows traitées".EOL);
|
||||
// FIN TEST maisonMere
|
||||
*/
|
||||
/*
|
||||
$tabBilans=array();
|
||||
$nbRows=$iDb->select('bilans', 'DISTINCT siren', "dateExercice>=20080101 AND typeBilan IN('N','S')", true, MYSQL_ASSOC, true);
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows entreprises avec Bilans...".EOL;
|
||||
while($tabBilan=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$tabBilans[]=$tabBilan['siren'];
|
||||
}*/
|
||||
|
||||
$fields='id, source, source_id, triCode, autre_id, siren, nic, siege, raisonSociale, enseigne, sigle,
|
||||
adr_num, adr_btq, adr_typeVoie, adr_libVoie, adr_comp, adr_cp, adr_ville, adr_dep, adr_com, tel, fax,
|
||||
cj, capital, capitalDev, capitalSrc, ape_etab, ape_entrep, age_entrep, age_etab, tca, tcaexp,
|
||||
ape4_etab, ape4_entrep, dateCrea_etab, teff_entrep, teff_etab, eff_entrep, eff_etab, distSP, achPost,
|
||||
dirCiv, dirNom, dirPrenom, dirFct, nbEtab, nbActio, bilType, bilEE, bilFL, bilFK, bilFR, bilGF, bilGP, bilGU, bilGW, bilHD, bilHH, bilHL, bilHM, bilHN, bilYP, tvaIntraValide, tvaIntraCle';
|
||||
|
||||
//if (0) {
|
||||
$nbRows=$iDb->select('etablissements_actmp', 'COUNT(*) AS nb', '1', false, MYSQL_ASSOC);
|
||||
$nbRowsTot=$nbRows[0]['nb'];
|
||||
echo date('Y/m/d - H:i:s') ." - Début de l'export des $nbRowsTot établissements actifs...".EOL;
|
||||
$iLimitNb=100000;
|
||||
$fp=fopen('./veolia_'.date('Ymd').'.txt','w');
|
||||
|
||||
for ($iLimit=0; $iLimit<$nbRowsTot; $iLimit+=$iLimitNb) {
|
||||
$nbRows=$iDb->select('etablissements_actmp', $fields, "1 LIMIT $iLimit, $iLimitNb", false, MYSQL_ASSOC, true);
|
||||
if (mysql_errno()>0) die(date('Y/m/d - H:i:s') ." - Erreur SQL : ".mysql_error().EOL);
|
||||
|
||||
echo date('Y/m/d - H:i:s') ." - Il y a $nbRows entreprises à diffuser ($iLimit, $iLimitNb)...".EOL;
|
||||
|
||||
$numRow=$sirenPre=0;
|
||||
$tabTva=array();
|
||||
$anneeEstime=date('Y')-2;
|
||||
$tabSirenVisites=array();
|
||||
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$numRow++;
|
||||
$siren=$entrep['siren'];
|
||||
$nic=$entrep['nic'];
|
||||
$siret=$siren.$nic;
|
||||
|
||||
// Ne prendre que les siren passés en paramètre ?
|
||||
//if (!in_array($siret, $tabSiret)) continue;
|
||||
|
||||
// Reprendre que à partir du siret...
|
||||
if ($siret*1<$siretReprise) continue;
|
||||
//if ($entrep['bilType']<>'R') continue;
|
||||
|
||||
$strOutput =exporte("A", 1);
|
||||
$strOutput.=$entrep['source'].exporte(sprintf("%010s", $entrep['source_id']), 10);
|
||||
$strOutput.=exporte(sprintf("%09s", $entrep['siren']), 9);
|
||||
$strOutput.=exporte(sprintf("%05s", $entrep['nic']), 5);
|
||||
$strOutput.=exporte($entrep['enseigne'], 40);
|
||||
$strOutput.=exporte($entrep['sigle'], 20);
|
||||
$strOutput.=exporte($entrep['raisonSociale'], 32);
|
||||
$strOutput.=exporte(substr($entrep['raisonSociale'],32), 32);
|
||||
$strOutput.=exporte($entrep['distSP'], 32); // ENTREE BATIMENT RESIDENCE
|
||||
|
||||
$adresse=$entrep['adr_num']*1;
|
||||
if ($adresse==0) $adresse='';
|
||||
else $adresse.=' ';
|
||||
$adresse.=trim(preg_replace('/ +/', ' ', $entrep['adr_btq'].' '.$entrep['adr_typeVoie'].' '.$entrep['adr_libVoie']));
|
||||
$strOutput.=exporte($adresse, 32);
|
||||
$strOutput.=exporte($entrep['adr_comp'], 32);
|
||||
$strOutput.=exporte(sprintf("%05s",$entrep['adr_cp']), 6);
|
||||
$strOutput.=exporte($entrep['adr_ville'], 32);
|
||||
$strOutput.=exporte($entrep['achPost'], 32); // CEDEX
|
||||
|
||||
if (strtoupper(trim($entrep['adr_dep']))=='2A' || strtoupper(trim($entrep['adr_dep']))=='2B')
|
||||
$depCom=trim($entrep['adr_dep']).sprintf("%03s",$entrep['adr_com']);
|
||||
else
|
||||
$depCom=sprintf("%02s",substr($entrep['adr_dep']*1,0,2)).sprintf("%03s",$entrep['adr_com']);
|
||||
$strOutput.=exporte($depCom, 5);
|
||||
|
||||
if (($entrep['source']*1)==2 && ($entrep['capitalSrc']*1)==2)
|
||||
$strOutput.=exporte('I', 1); // Source INSEE
|
||||
else
|
||||
$strOutput.=exporte('S', 1); // Source Scores & Décisions
|
||||
|
||||
if ($entrep['dirCiv']==0 || $entrep['dirCiv']=='') $civ='';
|
||||
elseif ($entrep['dirCiv']*1==1) $civ='M';
|
||||
elseif ($entrep['dirCiv']*1==2) $civ='MME';
|
||||
else $civ=$entrep['dirCiv'];
|
||||
|
||||
$strOutput.=exporte($civ, 4); // Civilite
|
||||
$strOutput.=exporte($entrep['dirNom'], 20); // NOM
|
||||
$strOutput.=exporte($entrep['dirPrenom'], 30); // PRENOM
|
||||
$strOutput.=exporte($entrep['dirFct'], 4); // Code Fct
|
||||
$strOutput.=exporte(sprintf("%10s",preg_replace('/( |\-|\.)/', '', $entrep['tel'])), 10);
|
||||
$strOutput.=exporte(sprintf("%10s",preg_replace('/( |\-|\.)/', '', $entrep['fax'])), 10);
|
||||
$strOutput.=exporte($entrep['dateCrea_etab'], 8);
|
||||
if (($entrep['siege']*1)==1) $strOutput.=exporte('01', 2);
|
||||
else $strOutput.=exporte('02', 2);
|
||||
$strOutput.=exporte($entrep['nbEtab'], 5);
|
||||
$strOutput.=exporte($entrep['cj'], 4);
|
||||
$strOutput.=exporte($entrep['capital'], 13);
|
||||
if ($entrep['capitalDev']=='EUR' || $entrep['capitalDev']=='')
|
||||
$strOutput.=exporte('Euro', 10);
|
||||
else
|
||||
$strOutput.=exporte($entrep['capitalDev'], 10);
|
||||
|
||||
$naf4=$entrep['ape4_etab'];
|
||||
$naf5=$entrep['ape_etab'];
|
||||
if ($naf4=='') $naf4=@$iCotation->tabNaf21[$naf5];
|
||||
$naf4lib=@$iInsee->getLibelleNaf($naf4);
|
||||
if ($naf4lib=='') $tabNaf4inconnu[]=$naf4;
|
||||
$strOutput.=exporte($naf4, 4); // NAF4
|
||||
$strOutput.=exporte($naf4lib, 90);
|
||||
$tabNace=array( 'NaceEtab'=>@$iInsee->getCodeNace($entrep['ape_etab']),
|
||||
'NaceEntrep'=>@$iInsee->getCodeNace($entrep['ape_entrep']));
|
||||
if (@$tabComDom['_'.$depCom]==1) {
|
||||
$tabDom=@$iInsee->infoAdresseDom( $entrep['adr_num'],
|
||||
$entrep['adr_btq'],
|
||||
$entrep['adr_typeVoie'],
|
||||
$entrep['adr_libVoie'],
|
||||
$entrep['adr_comp'],
|
||||
$entrep['adr_cp'],
|
||||
$entrep['adr_ville']);
|
||||
if (is_array($tabDom) && count($tabDom)>0) {
|
||||
//$nbDom++;
|
||||
$tabNace['adrDom']=1;
|
||||
if (preg_match('/^CHEZ (.*)$/i',$entrep['adr_comp'], $matches) &&
|
||||
!preg_match('/ M | M. | MR | MME | MLLE /i',$entrep['adr_comp']))
|
||||
$tabNace['adrDom']=2;
|
||||
}
|
||||
}
|
||||
|
||||
if ($siren<>$sirenPre) {
|
||||
// Lecture du numéro de TVA
|
||||
$tvaValide=$entrep['tvaIntraValide'];
|
||||
$tvaCle=$entrep['tvaIntraCle'];
|
||||
if ($tvaCle===null) {
|
||||
$iTva=@new MTva($siren, false);
|
||||
$tabTva=array('tvaIntraCle'=>substr($iTva->vatNumber,2,2));
|
||||
} else
|
||||
$tabTva=array();
|
||||
|
||||
// Recherche du siren de la maison mère
|
||||
if ($entrep['nbActio']>0) {
|
||||
if (isset($tabSirenVisites[$siren*1])) {
|
||||
$sirenMere=$tabSirenVisites[$siren];
|
||||
} else {
|
||||
$sirenMere=@$iLiens->getMaisonMereFr($siren);
|
||||
if ($siren<>$sirenMere) {
|
||||
foreach ($iLiens->tabSirenVisites as $siren1) {
|
||||
$tabSirenVisites[$siren1*1]=$sirenMere;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($siren<>$sirenMere) $tabTva['sirenGrp']=$sirenMere;
|
||||
}
|
||||
|
||||
// Lecture du dernier bilan
|
||||
$uniteMultiple=1;
|
||||
$tabPostes=array();
|
||||
//if (in_array($siren, $tabBilans)) {
|
||||
$tabBilan=$iDb2->select('bilans', 'siren, dateExercice, dureeExercice, unite, typeBilan, postes', "siren=$siren AND typeBilan IN ('N','S') ORDER BY dateExercice DESC LIMIT 1", false, MYSQL_ASSOC);
|
||||
$tabBilan=@$tabBilan[0];
|
||||
$tabTmp=explode(';', $tabBilan['postes']);
|
||||
foreach($tabTmp as $poste) {
|
||||
if (trim($poste)<>'') {
|
||||
$tabTmp2=explode('=',$poste);
|
||||
$tabPostes[trim($tabTmp2[0])]=trim($tabTmp2[1]);
|
||||
}
|
||||
}
|
||||
switch (strtoupper($tabBilan['unite'])) {
|
||||
case 'K': $uniteMultiple=1000; break;
|
||||
case 'M': $uniteMultiple=1000000; break;
|
||||
}
|
||||
if ($tabBilan['typeBilan']=='S')
|
||||
$tabPostes=@$iBilan->bilanSimplifie2Normal($tabPostes);
|
||||
}
|
||||
|
||||
$effectifFr=@$tabPostes['YP']*1;
|
||||
if ($effectifFr==0)
|
||||
$effectifFr=$entrep['eff_entrep'];
|
||||
|
||||
$strOutput.=exporte($effectifFr, 6);
|
||||
$strOutput.=exporte($entrep['eff_etab'], 6);
|
||||
|
||||
if (@count($tabPostes)>10) {
|
||||
$montantCA=@$tabPostes['FL']*$uniteMultiple;
|
||||
$strOutput.=exporte('R', 1); // Réel , Inconnu, Estimé
|
||||
$strOutput.=exporte(str_replace('NS','', @$tabPostes['FL']*$uniteMultiple), 13);
|
||||
$strOutput.=exporte(str_replace('NS','', @$tabPostes['FK']*$uniteMultiple), 13);
|
||||
$strOutput.=exporte(str_replace('NS','', @$tabPostes['HN']*$uniteMultiple), 13);
|
||||
|
||||
$iDb2->update('etablissements_actmp',
|
||||
array_merge($tabTva, $tabNace,
|
||||
array( 'bilType' =>'R',
|
||||
'bilAnnee' =>@substr($tabBilan['dateExercice'],0,4),
|
||||
'bilCloture'=>@$tabBilan['dateExercice'],
|
||||
'bilDuree' =>@$tabBilan['dureeExercice'],
|
||||
'bilTca' =>$iInsee->getTca($montantCA),
|
||||
'bilEE' =>@$tabPostes['EE']*$uniteMultiple,
|
||||
'bilFL' =>$montantCA,
|
||||
'bilFK' =>@$tabPostes['FK']*$uniteMultiple,
|
||||
'bilFR' =>@$tabPostes['FR']*$uniteMultiple,
|
||||
'bilGF' =>@$tabPostes['GF']*$uniteMultiple,
|
||||
'bilGP' =>@$tabPostes['GP']*$uniteMultiple,
|
||||
'bilGU' =>@$tabPostes['GU']*$uniteMultiple,
|
||||
'bilGW' =>@$tabPostes['GW']*$uniteMultiple,
|
||||
'bilHD' =>@$tabPostes['HD']*$uniteMultiple,
|
||||
'bilHH' =>@$tabPostes['HH']*$uniteMultiple,
|
||||
'bilHL' =>@$tabPostes['HL']*$uniteMultiple,
|
||||
'bilHM' =>@$tabPostes['HM']*$uniteMultiple,
|
||||
'bilHN' =>@$tabPostes['HN']*$uniteMultiple,
|
||||
'bilYP' =>@$tabPostes['YP'])),
|
||||
"siren=$siren AND nic=$nic") or die('Err1:'.mysql_error());
|
||||
|
||||
} elseif ($naf5<>'' && $naf5<>'0000Z' && $effectifFr>0) {
|
||||
$caEstime=$iInsee->getCAnafEffectif($naf5, $effectifFr);
|
||||
$strOutput.=exporte('E', 1); // Réel , Inconnu, Estimé
|
||||
$strOutput.=exporte($caEstime, 13); // CA France
|
||||
$strOutput.=exporte('', 13); // CA Export
|
||||
$strOutput.=exporte('', 13); // Résultat Net
|
||||
$iDb2->update('etablissements_actmp',
|
||||
array_merge($tabTva, $tabNace,
|
||||
array( 'bilType' =>'E',
|
||||
'bilAnnee' =>$anneeEstime,
|
||||
'bilCloture'=>$anneeEstime.'-12-31',
|
||||
'bilDuree' =>12,
|
||||
'bilTca' =>$iInsee->getTca($caEstime),
|
||||
'bilFL' =>$caEstime)),
|
||||
"siren=$siren AND nic=$nic") or die('Err2');
|
||||
} else {
|
||||
$strOutput.=exporte('I', 1); // Réel , Inconnu, Estimé
|
||||
$strOutput.=exporte('', 13);
|
||||
$strOutput.=exporte('', 13);
|
||||
$strOutput.=exporte('', 13);
|
||||
$iDb2->update('etablissements_actmp', array_merge($tabTva, $tabNace), "siren=$siren AND nic=$nic") or die('Err3:'.mysql_error());
|
||||
}
|
||||
|
||||
$strOutput.=exporte($naf5, 5);
|
||||
$naf5lib=@$iInsee->getLibelleNaf($naf5);
|
||||
if ($naf5lib=='') $tabNaf5inconnu[]=$naf5;
|
||||
$strOutput.=exporte($naf5lib, 90);
|
||||
|
||||
fwrite($fp, $strOutput.EOL);
|
||||
$sirenPre=$siren;
|
||||
if ($numRow%10000==0)
|
||||
echo date ('Y/m/d - H:i:s')." - $numRow/$nbRows : $strOutput".EOL;
|
||||
}
|
||||
}
|
||||
|
||||
$nbRows=$iDb->select('etablissements_actmp', 'DISTINCT sirenGrp', 'sirenGrp>1000', false, MYSQL_ASSOC, true);
|
||||
echo date ('Y/m/d - H:i:s')." - Il y a $nbRows groupes à mettre à jour...".EOL;
|
||||
while($entrep=$iDb->fetch(MYSQL_ASSOC)) {
|
||||
$siren=$entrep['sirenGrp'];
|
||||
$iDb2->update('etablissements_actmp', array('sirenGrp'=>$siren), "siren=$siren") or die('Err4:'.mysql_error());
|
||||
}
|
||||
|
||||
$tabNaf5inconnu=array_unique($tabNaf5inconnu);
|
||||
$tabNaf4inconnu=array_unique($tabNaf4inconnu);
|
||||
//}
|
||||
|
||||
/** Mise à jour de la date de fin de création de la table **/
|
||||
$iDb=new WDB('sdv1');
|
||||
$ret=$iDb->select('sphinx_idx', 'id', "nom='jo.etablissements_act' AND createBegin IS NOT NULL AND createBegin<NOW() AND createEnd IS NULL AND indexingBegin IS NULL AND indexingEnd IS NULL", false);
|
||||
$id=@$ret[0][0];
|
||||
$iDb->update('sphinx_idx', array('createEnd'=>date('YmdHis')), "id=$id") or die('Err5:'.mysql_error());
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Historisation des anciens établissements...".EOL;
|
||||
if (!$iDb->query("INSERT IGNORE INTO jo.etablissements_act_histo SELECT * FROM jo.etablissements_act;"))
|
||||
die($iDb->getLastError());
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Rotation des tables 'etablissements_act'...".EOL;
|
||||
if (!$iDb->query("DROP TABLE jo.etablissements_act_old;"))
|
||||
die($iDb->getLastError());
|
||||
if (!$iDb->query("RENAME TABLE jo.etablissements_act TO jo.etablissements_act_old;"))
|
||||
die($iDb->getLastError());
|
||||
if (!$iDb->query("RENAME TABLE jo.etablissements_actmp TO jo.etablissements_act;"))
|
||||
die($iDb->getLastError());
|
||||
|
||||
echo date ('Y/m/d - H:i:s')." - Fin du traitement diffusion des Entreprises.\n";
|
||||
|
||||
sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "Diffusion Entreprise", "$numRow établissements actifs diffusés".EOL.print_r($tabNaf5inconnu, true) .EOL. print_r($tabNaf4inconnu,true) );
|
||||
|
||||
// etablissements_act_old
|
||||
die();
|
||||
|
||||
?>
|
1055
batch/diffusionEntrepA6cmo.php
Normal file
1055
batch/diffusionEntrepA6cmo.php
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user