Przeglądaj źródła

Merge branch 'master' of bn.git:plabudda/se

Piotr Labudda 8 lat temu
rodzic
commit
a9ee683af9

+ 101 - 0
SE/schema/ant-object/default_db.BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY.xsd

@@ -166,6 +166,7 @@
          </xs:element>
          <xs:element name="nip" type="xs:string" id="_PRACOWNICY___d4e4836-1_nip"/>
          <xs:element name="regon" type="xs:string" id="_PRACOWNICY___d4e4837-1_regon"/>
+         <xs:element name="krs" type="xs:string"/>
          <xs:element name="source" type="xs:string" id="_PRACOWNICY___d5e4853-1_source"/>
          <xs:element name="A_RECORD_CREATE_DATE" type="xs:dateTime"
             id="_PRACOWNICY___d5e4871-1_A_RECORD_C"/>
@@ -269,6 +270,106 @@
       <xs:attribute id="_PRACOWNICY___d5e75973-1_label" name="label"/>
       <xs:assert id="_PRACOWNICY___d6e76324-1"
          test="@label = concat(imiona, ' ', nazwisko, ' ', miejscowosc)"/>
+      <!--<xs:assert test="source = */name()">
+         <xs:annotation>
+            <xs:documentation>
+               Dziedziczenie z nazwy refowego obiektu - TODO definicja jakich refow to dotyczy
+            </xs:documentation>
+         </xs:annotation>
+      </xs:assert>-->
+    
+      <!-- CEIDG -->
+      <xs:assert test="source = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/local-name()"/>
+      <xs:assert test="imiona = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/concat(imie,' ',firma)"/>
+      <xs:assert test="nazwisko = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/concat(firma,' ',nazwisko)"/>
+      <!--<xs:assert test="pesel = cuncat(*/pesel ,' ',*/pesel)"/>-->
+      <xs:assert test="ulica = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/ulica"/>
+      <xs:assert test="nr = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/budynek"/>
+      <xs:assert test="nrLokalu = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/lokal"/>
+      <xs:assert test="kodPocztowy = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/kodPocztowy"/>
+      <xs:assert test="miejscowosc = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/miejscowosc"/>
+      <xs:assert test="nip = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/nip"/>
+      <xs:assert test="regon = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/regon"/>
+      <!--<xs:assert test="krs = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/krs"/>-->
+      
+      
+ 
+      
+      
+      <!-- KRS_person -->
+      <xs:assert test="source = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/local-name()"/>
+      <xs:assert test="imiona = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/imiona"/>
+      <xs:assert test="nazwisko = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/nazwisko"/>
+      <xs:assert test="pesel = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/pesel"/>
+    <!--  <xs:assert test="ulica = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/ulica"/>
+      <xs:assert test="nr = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/budynek"/>
+      <xs:assert test="nrLokalu = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/lokal"/>
+      <xs:assert test="kodPocztowy = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/kodPocztowy"/>
+      <xs:assert test="miejscowosc = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/miejscowosc"/>
+      <xs:assert test="nip = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/nip"/>
+      <xs:assert test="regon = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/regon"/>-->
+      <!--<xs:assert test="krs = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/krs"/>-->
+      
+      <!-- MSIG_person -->
+      <xs:assert test="source = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/local-name()"/>
+      <xs:assert test="imiona = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/imiona"/>
+      <xs:assert test="nazwisko = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/nazwisko"/>
+      <xs:assert test="pesel = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/pesel"/>
+      <!--  <xs:assert test="ulica = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/ulica"/>
+      <xs:assert test="nr = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/budynek"/>
+      <xs:assert test="nrLokalu = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/lokal"/>
+      <xs:assert test="kodPocztowy = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/kodPocztowy"/>
+      <xs:assert test="miejscowosc = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/miejscowosc"/>
+      <xs:assert test="nip = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/nip"/>
+      <xs:assert test="regon = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/regon"/>-->
+      <!--<xs:assert test="krs = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/krs"/>-->
+      
+      <!-- BI_audit_KRS -->
+      <xs:assert test="source = default_db__x3A__BI_audit_KRS:BI_audit_KRS/local-name()"/>
+      <!--<xs:assert test="imiona = default_db__x3A__BI_audit_KRS:BI_audit_KRS/imiona"/>-->
+      <xs:assert test="nazwisko = default_db__x3A__BI_audit_KRS:BI_audit_KRS/nazwa"/>
+      <!--<xs:assert test="pesel = default_db__x3A__BI_audit_KRS:BI_audit_KRS/pesel"/>-->
+      <xs:assert test="ulica = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_ulica"/>
+      <xs:assert test="nr = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_nrDomu"/>
+      <xs:assert test="nrLokalu = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_nrLokalu"/>
+      <xs:assert test="kodPocztowy = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_kod"/>
+      <xs:assert test="miejscowosc = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_miejscowosc"/>
+      <xs:assert test="nip = default_db__x3A__BI_audit_KRS:BI_audit_KRS/nip"/>
+      <xs:assert test="regon = default_db__x3A__BI_audit_KRS:BI_audit_KRS/regon"/>
+      <xs:assert test="krs = default_db__x3A__BI_audit_KRS:BI_audit_KRS/krs"/>
+      
+      <!-- BI_audit_MSIG -->
+      <xs:assert test="source = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/local-name()"/>
+      <!--<xs:assert test="imiona = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/imiona"/>-->
+      <xs:assert test="nazwisko = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/nazwa"/>
+      <!--<xs:assert test="pesel = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/pesel"/>-->
+      <xs:assert test="ulica = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_ulica"/>
+      <xs:assert test="nr = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_nrDomu"/>
+      <xs:assert test="nrLokalu = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_nrLokalu"/>
+      <xs:assert test="kodPocztowy = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_kod"/>
+      <xs:assert test="miejscowosc = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_miejscowosc"/>
+      <xs:assert test="nip = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/nip"/>
+      <xs:assert test="regon = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/regon"/>
+      <xs:assert test="krs = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/krs"/>
+      
+      <!-- BI_audit_ENERGA_RUM_KONTRAHENCI -->
+      <xs:assert test="source = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/local-name()"/>
+      <!--<xs:assert test="imiona = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/imiona"/>-->
+      <xs:assert test="nazwisko = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Pelna_nazwa_kontrahenta"/>
+      <xs:assert test="pesel = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/PESEL"/>
+      <xs:assert test="ulica = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Ulica"/>
+      <xs:assert test="nr = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Numer_budynku"/>
+      <xs:assert test="nrLokalu = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Numer_mieszkania_lokalu"/>
+      <xs:assert test="kodPocztowy = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Kod_pocztowy"/>
+      <xs:assert test="miejscowosc = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Miejscowosc"/>
+      <xs:assert test="nip = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/NIP"/>
+      <xs:assert test="regon = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/REGON"/>
+      <xs:assert test="krs = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/KRS"/>
+      
+      
+      
+      
+      
    </xs:complexType>
    <xs:element name="BI_audit_ENERGA_PRACOWNICY"
       type="default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY"

+ 20 - 5
SE/schema/ant-object/default_db.BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_PRACOWNICY_group.xsd

@@ -97,14 +97,29 @@
             </xs:annotation>
          </xs:element>
          <xs:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY"/>
+            ref="default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY">
+            <xs:annotation>
+               <xs:documentation>Grupowanie podreczne dla PER_USER na bazie ID_USER , celowo wylaczone backref od strony obiektu PRACOWNICY, w celu prawdopodobnie nie zaklocania grafow. </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI"/>
+            ref="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI">
+            <xs:annotation>
+               <xs:documentation>Grupowanie podreczne dla PER_USER na bazie ID_USER , celowo wylaczone backref od strony obiektu KONTRAHENCI, w celu prawdopodobnie nie zaklocania grafow. </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__BI_audit_operational_raport_note:BI_audit_operational_raport_note"/>
+            ref="default_db__x3A__BI_audit_operational_raport_note:BI_audit_operational_raport_note">
+            <xs:annotation>
+               <xs:documentation>Grupowanie podreczne dla PER_USER na bazie ID_USER , celowo wylaczone backref od strony obiektu operational_note, w celu prawdopodobnie nie zaklocania grafow. </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"
-         />
+            ref="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA">
+            <xs:annotation>
+               <xs:documentation>Grupowanie podreczne dla PER_USER na bazie ID_USER , celowo wylaczone backref od strony obiektu POWIAZANIA, w celu prawdopodobnie nie zaklocania grafow. </xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
       <xs:attribute name="label" type="xs:string"/>
       <xs:assert test="@label = concat(ID, NAZWA)"/>

+ 99 - 0
SE/schema/ant-object/default_db.BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.xsd

@@ -242,6 +242,105 @@
          test="@sum = sum(default_db__x3A__BI_audit_ENERGA_RUM_UMOWY:BI_audit_ENERGA_RUM_UMOWY/Wartosc_przedmiotu_umowy_netto_w_PLN__aktualna_)"/>
       <xs:assert id="KONTRAHENCI___d6e76526-1"
          test="@label = concat(substr(Pelna_nazwa_kontrahenta, 0, 20, '\n umów na kwotę ', @sum))"/>
+    
+      
+      
+      <!-- CEIDG -->
+      <xs:assert test="uwagi = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/local-name()"/>
+      <!--<xs:assert test="imiona = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/concat(imie,' ',firma)"/>-->
+      <xs:assert test="Pelna_nazwa_kontrahenta = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/concat(firma,' ',nazwisko)"/>
+      <!--<xs:assert test="PESEL = cuncat(*/pesel ,' ',*/pesel)"/>-->
+      <xs:assert test="Ulica = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/ulica"/>
+      <xs:assert test="Numer_mieszkania_lokalu = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/budynek"/>
+      <xs:assert test="Numer_budynku = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/lokal"/>
+      <xs:assert test="Kod_pocztowy = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/kodPocztowy"/>
+      <xs:assert test="Miejscowosc = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/miejscowosc"/>
+      <xs:assert test="Kraj = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/kraj"/>
+      <xs:assert test="NIP = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/nip"/>
+      <xs:assert test="REGON = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/regon"/>
+      <!--<xs:assert test="KRS = default_db__x3A__BI_audit_CEIDG:BI_audit_CEIDG/krs"/>-->
+      
+      
+      
+      
+      
+      <!-- KRS_person -->
+      <xs:assert test="uwagi = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/local-name()"/>
+      <xs:assert test="imiona = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/imiona"/>
+      <xs:assert test="Pelna_nazwa_kontrahenta = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/nazwisko"/>
+      <xs:assert test="PESEL = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/pesel"/>
+      <!--  <xs:assert test="Ulica = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/ulica"/>
+      <xs:assert test="Numer_mieszkania_lokalu = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/budynek"/>
+      <xs:assert test="Numer_budynku = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/lokal"/>
+      <xs:assert test="Kod_pocztowy = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/kodPocztowy"/>
+      <xs:assert test="Miejscowosc = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/miejscowosc"/>
+      <xs:assert test="NIP = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/nip"/>
+      <xs:assert test="REGON = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/regon"/>-->
+      <!--<xs:assert test="KRS = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/krs"/>-->
+      
+      <!-- MSIG_person -->
+      <xs:assert test="uwagi = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/local-name()"/>
+      <xs:assert test="imiona = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/imiona"/>
+      <xs:assert test="Pelna_nazwa_kontrahenta = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/nazwisko"/>
+      <xs:assert test="PESEL = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/pesel"/>
+      <!--  <xs:assert test="Ulica = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/ulica"/>
+      <xs:assert test="Numer_mieszkania_lokalu = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/budynek"/>
+      <xs:assert test="Numer_budynku = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/lokal"/>
+      <xs:assert test="Kod_pocztowy = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/kodPocztowy"/>
+      <xs:assert test="Miejscowosc = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/miejscowosc"/>
+      <xs:assert test="NIP = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/nip"/>
+      <xs:assert test="REGON = default_db__x3A__BI_audit_MSIG_person:BI_audit_MSIG_person/regon"/>-->
+      <!--<xs:assert test="KRS = default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person/krs"/>-->
+      
+      <!-- BI_audit_KRS -->
+      <xs:assert test="uwagi = default_db__x3A__BI_audit_KRS:BI_audit_KRS/local-name()"/>
+      <!--<xs:assert test="imiona = default_db__x3A__BI_audit_KRS:BI_audit_KRS/imiona"/>-->
+      <xs:assert test="Pelna_nazwa_kontrahenta = default_db__x3A__BI_audit_KRS:BI_audit_KRS/nazwa"/>
+      <!--<xs:assert test="PESEL = default_db__x3A__BI_audit_KRS:BI_audit_KRS/pesel"/>-->
+      <xs:assert test="Ulica = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_ulica"/>
+      <xs:assert test="Numer_mieszkania_lokalu = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_nrDomu"/>
+      <xs:assert test="Numer_budynku = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_nrLokalu"/>
+      <xs:assert test="Kod_pocztowy = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_kod"/>
+      <xs:assert test="Miejscowosc = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_miejscowosc"/>
+      <xs:assert test="Kraj = default_db__x3A__BI_audit_KRS:BI_audit_KRS/A_kraj"/>
+      <xs:assert test="NIP = default_db__x3A__BI_audit_KRS:BI_audit_KRS/nip"/>
+      <xs:assert test="REGON = default_db__x3A__BI_audit_KRS:BI_audit_KRS/regon"/>
+      <xs:assert test="KRS = default_db__x3A__BI_audit_KRS:BI_audit_KRS/krs"/>
+      
+      <!-- BI_audit_MSIG -->
+      <xs:assert test="uwagi = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/local-name()"/>
+      <!--<xs:assert test="imiona = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/imiona"/>-->
+      <xs:assert test="Pelna_nazwa_kontrahenta = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/nazwa"/>
+      <!--<xs:assert test="PESEL = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/pesel"/>-->
+      <xs:assert test="Ulica = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_ulica"/>
+      <xs:assert test="Numer_mieszkania_lokalu = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_nrDomu"/>
+      <xs:assert test="Numer_budynku = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_nrLokalu"/>
+      <xs:assert test="Kod_pocztowy = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_kod"/>
+      <xs:assert test="Miejscowosc = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_miejscowosc"/>
+      <xs:assert test="Kraj = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/A_kraj"/>
+      <xs:assert test="NIP = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/nip"/>
+      <xs:assert test="REGON = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/regon"/>
+      <xs:assert test="KRS = default_db__x3A__BI_audit_MSIG:BI_audit_MSIG/krs"/>
+      
+      <!-- BI_audit_ENERGA_RUM_KONTRAHENCI -->
+      <xs:assert test="uwagi = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/local-name()"/>
+      <!--<xs:assert test="imiona = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/imiona"/>-->
+      <xs:assert test="Pelna_nazwa_kontrahenta = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Pelna_nazwa_kontrahenta"/>
+      <xs:assert test="PESEL = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/PESEL"/>
+      <xs:assert test="Ulica = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Ulica"/>
+      <xs:assert test="Numer_mieszkania_lokalu = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Numer_budynku"/>
+      <xs:assert test="Numer_budynku = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Numer_mieszkania_lokalu"/>
+      <xs:assert test="Kod_pocztowy = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Kod_pocztowy"/>
+      <xs:assert test="Miejscowosc = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Miejscowosc"/>
+      <xs:assert test="Kraj = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/Kraj"/>
+      <xs:assert test="NIP = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/NIP"/>
+      <xs:assert test="REGON = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/REGON"/>
+      <xs:assert test="KRS = default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI/KRS"/>
+      
+      
+      
+      
+      
    </xs:complexType>
    <xs:element name="BI_audit_ENERGA_RUM_KONTRAHENCI"
       type="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI"

+ 0 - 1
SE/schema/ant-object/default_db.BI_audit_KRS/BI_audit_KRS/BI_audit_KRS.xsd

@@ -99,7 +99,6 @@
          <xs:element name="S_kraj" type="xs:NCName" id="I_audit_KRS___d4e4529-1_S_kraj"/>
          <xs:element name="A_kraj" type="xs:NCName" id="I_audit_KRS___d4e4530-1_A_kraj"/>
          <xs:element name="A_poczta" type="xs:string" id="I_audit_KRS___d4e4531-1_A_poczta"/>
-         <xs:element name="A_poczta" type="xs:string" id="I_audit_KRS___d4e4532-1_A_poczta"/>
          <xs:element name="A_kod" type="xs:NMTOKEN" id="I_audit_KRS___d4e4534-1_A_kod"/>
          <xs:element name="A_miejscowosc" type="xs:string" id="I_audit_KRS___d4e4535-1_A_miejscow"/>
          <xs:element name="A_nrLokalu" type="xs:string" id="I_audit_KRS___d4e4536-1_A_nrLokalu"/>

+ 2 - 0
SE/se-lib/Route/UrlAction/BiAuditGenerate.php

@@ -1244,6 +1244,7 @@ Router::getRoute("UrlAction_BiAuditGenerate")->' . $function . ';
 				'jednostka_organizacyjna',
 				'nip',
 				'regon',
+				'krs',
 				'source',
 			],
 			'BI_audit_ENERGA_PRACOWNICY_adresy' => [
@@ -1666,6 +1667,7 @@ SQL;
 					'nip' => 'nip',
 					'regon' => 'regon',
 					'pesel' => 'pesel',
+					'krs' => 'krs',
 				],
 				'base' => '0',
 				//'where' => '',

+ 35 - 0
SE/superedit-INSTALL_SES_PROCESY_A.php

@@ -2750,6 +2750,39 @@ function INSTALL_SES_PROCESY_A() {
 			</form>
 
 		";
+		//When not working - this is DEFAULT PROCESS BASH COMMAND TO EXEC MANUALLY from biuro.biall-net.pl @2018-03-13
+	 		$create_refrence_process_structure='#bin/sh
+	 		#based on superedit-INSTALL_SES_PROCESY_A from BEGIN DEFAULT PROCESS to END DEFAULT PROCES TAGS @2018-03-13 generated always when run superedit-INSTALL_SES_PROCESY_A.php , TODO TO BE REPLACED BY XML PROCESS/RESOURCES CONFIG FILES
+	 		#tested working @2018-03-13
+	 		echo "type password for database  94.158.130.34 (local on biuro.biall-net.pl) - we will drop database test and create new one"
+	 		read password_db
+	 		echo "drop database test" |mysql -uroot -h94.158.130.34 -Dtest -p\$password_db"
+	 		echo "create database test" |mysql -uroot -h94.158.130.34 -Dtest -p\$password_db"
+	 		
+	 		php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'default_db\',\'default_db\',0,\'WYSLIJ_DO_BAZY\',\'CREATE_ZASOBY_STRUCTURES_CONFIG\'); " '.$_SERVER['SERVER_NAME'].' FILTR
+	 		php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'test_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'SYNC_ZASOBY_STRUCTURES_FROM_CONFIG\',null,array(\'SKIP-PROCEDURE\',\'SKIP-VIEW\')); " '.$_SERVER['SERVER_NAME'].' FILTR
+	 		php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'test_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'CREATE_ZASOBY_DATABASE_DESC\',\'3\'); " '.$_SERVER['SERVER_NAME'].' FILTR
+	 		php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'default_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'FROM_ZASOBY_TO_ZASOBY\',\'3\'); " '.$_SERVER['SERVER_NAME'].' %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%
+	 		';
+	 		$create_refrence_process_structure_file=fopen($OPTIONS->SE_config.'/config/create_refrence_process_structure.sh', "w") or die('Cannot open file:  '.$OPTIONS->SE_config.'/config/create_refrence_process_structure.sh');
+	 			fwrite($create_refrence_process_structure_file,$create_refrence_process_structure."\n");
+	 			fclose($create_refrence_process_structure_file);
+	 			
+	 			echo "<br> We created bash script to run from bash in case of problems on ".$OPTIONS->SE_config."/config/create_refrence_process_structure.sh 
+	 			<br>";
+	 		/* 	
+		 		echo "drop database test on IP 94.158.130.34 and confirm " 
+		 		read
+		 		echo "create database test on IP 94.158.130.34 and confirm " 
+		 		read
+		 		cd /Library/Server/Web/Data/Sites/SE-production-git/SE
+		 		php -r"include('superedit-SQIX_STRUCTURE_DB_SYNC.php') ; SQIX_STRUCTURE_DB_SYNC('default_db','default_db',0,'WYSLIJ_DO_BAZY','CREATE_ZASOBY_STRUCTURES_CONFIG'); " biuro.biall-net.pl FILTR
+		 		php -r"include('superedit-SQIX_STRUCTURE_DB_SYNC.php') ; SQIX_STRUCTURE_DB_SYNC('test_db','test_db',0,'WYSLIJ_DO_BAZY','SYNC_ZASOBY_STRUCTURES_FROM_CONFIG',null,array('SKIP-PROCEDURE','SKIP-VIEW')); " biuro.biall-net.pl FILTR
+		 		php -r"include('superedit-SQIX_STRUCTURE_DB_SYNC.php') ; SQIX_STRUCTURE_DB_SYNC('test_db','test_db',0,'WYSLIJ_DO_BAZY','CREATE_ZASOBY_DATABASE_DESC','3'); " biuro.biall-net.pl FILTR
+		 		php -r"include('superedit-SQIX_STRUCTURE_DB_SYNC.php') ; SQIX_STRUCTURE_DB_SYNC('default_db','test_db',0,'WYSLIJ_DO_BAZY','FROM_ZASOBY_TO_ZASOBY','3'); " '.$_SERVER['SERVER_NAME'].' %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%'
+		 	*/
+	 	
+	 	
 
 		// 	$ldap_dc_generated=implode(',dc=',explode("",$h->SERVER_ADDRESS));
 	$needed=array($h->ADMIN_USERNAME,$h->SERVER_ADDRESS_IP,$h->ADMIN_USERNAME_PASSWD,$h->SERVER_ADDRESS,$h->SERVER_ADDRESS_LDAP_DC,$INSTALL_ROOT,$REMOTE_FOLDER_ROOT,$h->ADMIN_USERNAME_L1,$h->ADMIN_USERNAME_L1_PASS,$h->ADMIN_USERNAME_DIRECTORY,$h->SERVER_VERSION,$OPTIONS);
@@ -2773,6 +2806,7 @@ function INSTALL_SES_PROCESY_A() {
 		DEBUG_S(-3,'cmd WYKONAJ_REFERENCYJNA_BAZE_DANYCH params: INSTALL_ROOT ',array($INSTALL_ROOT),__FILE__,__FUNCTION__,__LINE__);
 		set_time_limit(36000);
 
+		//BEGIN DEFAULT PROCESS
 		$CONNTEST = DB::getDB('test_db');
 
 		$CONNTEST->query('drop   database test');
@@ -2789,6 +2823,7 @@ function INSTALL_SES_PROCESY_A() {
 	 	$exec='php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'test_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'CREATE_ZASOBY_DATABASE_DESC\',\'3\'); " '.$_SERVER['SERVER_NAME'].' FILTR'; //@2013-10-15 staje recznie ?
 	 	exec($exec,$out,$exit);	 	DEBUG_S(-3,$command_id.':out of2/3 CREATE_ZASOBY_DATABASE_DESC',array($exec,$out,$exit),__FILE__,__FUNCTION__,__LINE__);flush();$out="";$exit="";
 	 	$exec='php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'default_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'FROM_ZASOBY_TO_ZASOBY\',\'3\'); " '.$_SERVER['SERVER_NAME'].' %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%'; //import procesow z tagami PISMO  -
+	 	//END DEFAULT PROCESS
 	 	// this help is in case of my death ;-)
 	 	// to dump important data process mysqldump -uroot -p SES_USERS2 CRM_PROCES CRM_WSKAZNIK CRM_LISTA_ZASOBOW CRM_TESTY_PYTANIA CRM_IMAGE CRM_IMPORT_TRANSLATE > process_table.sql
 	 	//  or locally copy tables: