Quellcode durchsuchen

na razie te kilka relacji dla bzyka. Kurde wydaje mi sie, ze nie powinnismy robic zwrotnych relacji - jezeli system zwróci informacje o backrefach to jest to wystarczające aby nie bylo KRS->KRS_person->KRS, bo to bez sensu... w teorii może być, ale jest to zbędna relacja i będę je jakoś wykrywać i analizować je, która jest główna i jak je przetwarzać.

Jeżeli będziemy jeździć przez jakieś tabele typu ADRES aby sobie z czymś powiązać - to jest to jakaś instancja i w teorii do tego powinniśmy robić relacje... a jeżeli tam są obiekty różnych klas - typu dane z KRS , MSIG, pracowników - to powinniśmy robić restrykcje na TYPE i instancjonować z jednej tabeli - główny element, lub dziedziczone elementy, aby dokładnie wskazać co do czego się relacjonuje. Potem będziemy stwierdzać, że ten sam adres jest instancją ADRES_KRS oraz ADRES_MSIG, łączenie instancji będzie jakoś w tabeli instancji musiąło być załatwione... jakąś metodą
a.binder vor 8 Jahren
Ursprung
Commit
24239e35c2

+ 17 - 2
SE/schema/ant-object/default_db.BI_audit_MSIG/BI_audit_MSIG/BI_audit_MSIG.xsd

@@ -17,7 +17,8 @@
    xmlns:default_db__x3A__BI_audit_MSIG_person="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_person.xsd"
    xmlns:default_db__x3A__BI_audit_MSIG_PKD="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_PKD.xsd"
    xmlns:default_db__x3A__BI_audit_taxpayer="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_taxpayer.xsd"
-   vc:minVersion="1.1">
+   vc:minVersion="1.1"
+   xmlns:default_db__x3A__BI_audit_KRS="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS.xsd">
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_company.xsd"
       schemaLocation="../../default_db.BI_audit_MSIG_company/BI_audit_MSIG_company/BI_audit_MSIG_company.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_person.xsd"
@@ -30,6 +31,8 @@
       schemaLocation="../../default_db.BI_audit_MSIG_PKD/BI_audit_MSIG_PKD/BI_audit_MSIG_PKD.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_taxpayer.xsd"
       schemaLocation="../../default_db.BI_audit_taxpayer/BI_audit_taxpayer/BI_audit_taxpayer.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS.xsd"
+      schemaLocation="../../default_db.BI_audit_KRS/BI_audit_KRS/BI_audit_KRS.xsd"/>
    <xs:complexType name="BI_audit_MSIG" id="_audit_MSIG___d5e6015-1_BI_audit_M">
       <xs:sequence id="_audit_MSIG___d5e6016-1">
          <xs:element name="ID" type="xs:integer" id="_audit_MSIG___d5e6017-1_ID"/>
@@ -67,7 +70,8 @@
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="nip" system_cache__appinfo:xpath="default_db__x3A__BI_audit_taxpayer:BI_audit_taxpayer/nip"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="nip" system_cache__appinfo:ref_engine="view" 
+                        system_cache__appinfo:xpath="default_db__x3A__BI_audit_taxpayer:BI_audit_taxpayer/nip"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                <!--<xs:documentation>Informacja o aktualnym płatniku VAT w tabeli referencyjnej (relacja
@@ -81,6 +85,17 @@
                   (referencja).</xs:documentation>
             </xs:annotation>
          </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__BI_audit_KRS:BI_audit_KRS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="krs" system_cache__appinfo:xpath="default_db__x3A__BI_audit_KRS:BI_audit_KRS/krs"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Domyślne powiązanie dla podmiotów pomiędzy KRS a MSIG</xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
       <xs:attribute name="label" type="xs:string"/>
       <xs:assert test="@label = substring(nazwa, 1, 20)"/>

+ 6 - 1
SE/schema/ant-object/default_db.BI_audit_MSIG_address/BI_audit_MSIG_address/BI_audit_MSIG_address.xsd

@@ -11,7 +11,8 @@
    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
    xmlns:default_db__x3A__BI_audit_MSIG_address="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_address.xsd"
    targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_address.xsd"
-   vc:minVersion="1.1">
+   vc:minVersion="1.1"
+   xmlns:default_db__x3A__BI_audit_KRS_address="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS_address.xsd">
    <!--  <xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="../Types/gml.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
       schemaLocation="../table/IN7_DZIENNIK_KORESP.xsd"/>
@@ -22,6 +23,8 @@
       schemaLocation="../SystemObjects/AccessGroup.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
       schemaLocation="../SystemObjects/AccessOwner.xsd"/>-->
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS_address.xsd"
+      schemaLocation="../../default_db.BI_audit_KRS_address/BI_audit_KRS_address/BI_audit_KRS_address.xsd"/>
    <xs:complexType name="BI_audit_MSIG_address">
       <xs:sequence>
          <xs:element name="ID" type="xs:integer"/>
@@ -45,6 +48,8 @@
                   (referencja).</xs:documentation>
             </xs:annotation>
          </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__BI_audit_KRS_address:BI_audit_KRS_address"/>
       </xs:sequence>
       <xs:attribute name="label" type="xs:string"/>
       <xs:assert test="@label = substring(S_miejscowosc, 1, 20)"/>

+ 6 - 1
SE/schema/ant-object/default_db.BI_audit_MSIG_person/BI_audit_MSIG_person/BI_audit_MSIG_person.xsd

@@ -6,9 +6,12 @@
    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
    targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_person.xsd"
    vc:minVersion="1.1"
-   xmlns:default_db__x3A__BI_audit_MSIG="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG.xsd">
+   xmlns:default_db__x3A__BI_audit_MSIG="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG.xsd"
+   xmlns:default_db__x3A__BI_audit_KRS_person="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS_person.xsd">
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG.xsd"
       schemaLocation="../../default_db.BI_audit_MSIG/BI_audit_MSIG/BI_audit_MSIG.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS_person.xsd"
+      schemaLocation="../../default_db.BI_audit_KRS_person/BI_audit_KRS_person/BI_audit_KRS_person.xsd"/>
    <xs:complexType name="BI_audit_MSIG_person" id="_MSIG_person___d4e4621-1_BI_audit_K">
       <xs:annotation>
          <xs:documentation>Do dowiazania do BI_audit_MSIG</xs:documentation>
@@ -28,6 +31,8 @@
             </xs:annotation>
          </xs:element>
          <xs:element name="cached" id="_MSIG_person___d5e5635-1_cached" type="xs:int"> </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person"/>
       </xs:sequence>
       <xs:attribute name="label" type="xs:string"/>
       <xs:assert test="label = nazwisko"/>