a.binder před 8 roky
rodič
revize
c4434fc8f8

+ 185 - 64
SE/schema/ant-object/default_db.Dzialki/Dzialki/Dzialki.xsd

@@ -1,74 +1,78 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:Types__x3A__default_Infrastructure="https://biuro.biall-net.pl/wfs/default_db/Types/Infrastructure.xsd"
-   xmlns:default_db__x3A__IN7_DZIENNIK_KORESP="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
-   xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
-   xmlns:default_db__x3A__ADMIN_USERS="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
-   xmlns:default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
-   xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
-   xmlns:SystemObjects__x3A__AccessOwner="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
-   xmlns:default_db__x3A__CRM_LISTA_ZASOBOW="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
-   xmlns:default_db__x3A__Dzialki="https://biuro.biall-net.pl/wfs/default_db/table/Dzialki.xsd"
-   xmlns:default_db__x3A__COMPANIES="https://biuro.biall-net.pl/wfs/default_db/table/COMPANIES.xsd"
-   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
-   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/Dzialki.xsd" vc:minVersion="1.1">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:Types__x3A__default_Infrastructure="https://biuro.biall-net.pl/wfs/default_db/Types/Infrastructure.xsd"
+           xmlns:default_db__x3A__IN7_DZIENNIK_KORESP="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
+           xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+           xmlns:default_db__x3A__ADMIN_USERS="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+           xmlns:default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
+           xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
+           xmlns:SystemObjects__x3A__AccessOwner="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
+           xmlns:default_db__x3A__CRM_LISTA_ZASOBOW="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
+           xmlns:default_db__x3A__Dzialki="https://biuro.biall-net.pl/wfs/default_db/table/Dzialki.xsd"
+           xmlns:default_db__x3A__COMPANIES="https://biuro.biall-net.pl/wfs/default_db/table/COMPANIES.xsd"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+           xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/Dzialki.xsd"
+           vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
-      schemaLocation="../../../types.xsd"/>
+              schemaLocation="../../../types.xsd"/>
    <xs:import namespace="http://www.opengis.net/gml/3.2"
-      schemaLocation="http://www.opengis.net/gml/3.2"/>
+              schemaLocation="http://www.opengis.net/gml/3.2"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
-      schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
-   <xs:import
-      namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
-      schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
-      schemaLocation="../../default_db.CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW.xsd"/>
+              schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
+              schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/COMPANIES.xsd"
-      schemaLocation="../../default_db.COMPANIES/COMPANIES/COMPANIES.xsd"/>
+              schemaLocation="../../default_db.COMPANIES/COMPANIES/COMPANIES.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
-      schemaLocation="../../default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd"/>
-   <xs:complexType name="Dzialki" id="cza_Dzialki___d4e6430-1_Rozdzielcz">
+              schemaLocation="../../default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
+              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW.xsd"/>
+   <xs:complexType name="Dzialki">
       <xs:annotation>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
-               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:Dzialki" system_cache__appinfo:heritage_acl="true">
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:Dzialki"
+                                              system_cache__appinfo:heritage_acl="true">
                   <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
                   <acl_rule_inherit_to_all_refs_by_primary/>
                   <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
                </system_cache__appinfo:inherit>
-               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          <xs:documentation>Instancyjny - Protopyowy obiekt, który powinien mieć typy konkretnych
             rodzaji dla różnych technologii. Podzielony z uwagi na stany projektowania oraz
             realizacji. </xs:documentation>
       </xs:annotation>
-      <xs:sequence id="cza_Dzialki___d4e6434-1">
-         <xs:element name="ID" type="xs:int" id="cza_Dzialki___d4e6435-1_ID"/>
-         <xs:element name="the_geom" id="cza_Dzialki___d4e6436-1_the_geom"
-            type="gml:AbstractFeatureType">
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element name="the_geom" type="gml:AbstractFeatureType">
             <xs:annotation>
                <xs:documentation>Dane geograficzne obiektu - linia, punkt,
                   polygon</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="A_STATUS_INFO" type="xs:string" id="cza_Dzialki___d4e6440-1_A_STATUS_I"/>
-         <xs:element name="opis" type="xs:string" id="cza_Dzialki___d4e6441-1_opis">
+         <xs:element name="A_STATUS_INFO" type="xs:string"/>
+         <xs:element name="opis" type="xs:string">
             <xs:annotation>
                <xs:documentation>To zmiany na ID_ZASOBU pod katem kosztorysowym</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="ID_ZASOB" type="xs:int" id="cza_Dzialki___d4e6445-1_ID_ZASOB"/>
+         <xs:element name="ID_ZASOB" type="xs:int"/>
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_ZASOB" system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB/ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_ZASOB"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                <xs:documentation>
@@ -76,25 +80,26 @@
                 </xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
-            id="cza_Dzialki___d4e6446-1">
+         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB" system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
          </xs:element>
-         <xs:element name="Dlugosc" type="xs:double" id="cza_Dzialki___d4e6451-1_Dlugosc"/>
-         <xs:element name="Powierzchnia" type="xs:double" id="cza_Dzialki___d4e6452-1_Powierzchn"/>
-         <xs:element name="L_APPOITMENT_USER" type="xs:string"
-            id="cza_Dzialki___d4e6453-1_L_APPOITME"/>
+         <xs:element name="Dlugosc" type="xs:double"/>
+         <xs:element name="Powierzchnia" type="xs:double"/>
+         <xs:element name="L_APPOITMENT_USER" type="xs:string"/>
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                <xs:documentation>
@@ -111,7 +116,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="A_CLASSIFIED" type="xs:string" id="cza_Dzialki___d4e6459-1_A_CLASSIFI"/>
+         <xs:element name="A_CLASSIFIED" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
             id="cza_Dzialki___d4e6461-1">
             <xs:annotation>
@@ -122,7 +127,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="A_ADM_COMPANY" type="xs:string" id="cza_Dzialki___d4e6466-1_A_ADM_COMP"/>
+         <xs:element name="A_ADM_COMPANY" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
             id="cza_Dzialki___d4e6467-1">
             <xs:annotation>
@@ -133,12 +138,14 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="ID_PROJECT" type="xs:int" id="cza_Dzialki___d4e6472-1_ID_PROJECT"/>
+         <xs:element name="ID_PROJECT" type="xs:int"/>
          <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                <xs:documentation>
@@ -146,30 +153,144 @@
                 </xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="ID_BILLING_USERS" type="xs:int" id="a3A__Dzialki___d4e6313-1_ID_BILLING"/>
-         <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS" id="a3A__Dzialki___d4e6310-1">
+         <xs:element name="ID_BILLING_USERS" type="xs:int"/>
+         <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID_BILLING_USERS" system_cache__appinfo:xpath="default_db__x3A__COMPANIES:ID_BILLING_USERS/ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_BILLING_USERS"
+                                                   system_cache__appinfo:xpath="default_db__x3A__COMPANIES:ID_BILLING_USERS/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
             </xs:annotation>
          </xs:element>
       </xs:sequence>
    </xs:complexType>
-   <xs:element name="Dzialki" type="default_db__x3A__Dzialki:Dzialki"
-      id="cza_Dzialki___d4e6571-1_Rozdzielcz"/>
-   <xs:complexType name="Dzialki_Known" id="a3A__Dzialki___d4e6315-1_Dzialki_Kn">
-      <xs:complexContent id="a3A__Dzialki___d4e6316-1">
-         <xs:extension base="default_db__x3A__Dzialki:Dzialki" id="a3A__Dzialki___d4e6317-1"/>
+   <xs:element name="Dzialki" type="default_db__x3A__Dzialki:Dzialki"/>
+   <xs:complexType name="Dzialki_Known">
+      <xs:complexContent>
+         <xs:extension base="default_db__x3A__Dzialki:Dzialki"/>
       </xs:complexContent>
    </xs:complexType>
-   <xs:element name="Dzialki_Known" type="default_db__x3A__Dzialki:Dzialki_Known"
-      id="a3A__Dzialki___d4e6318-1_Dzialki_Kn"/>
-   <xs:complexType name="Dzialki_Unknown" id="a3A__Dzialki___d4e6320-1_Dzialki_Un">
-      <xs:complexContent id="a3A__Dzialki___d4e6321-1">
-         <xs:extension base="default_db__x3A__Dzialki:Dzialki" id="a3A__Dzialki___d4e6322-1"/>
+   <xs:element name="Dzialki_Known" type="default_db__x3A__Dzialki:Dzialki_Known"/>
+   <xs:complexType name="Dzialki_Unknown">
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__Dzialki:Dzialki">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element name="the_geom" type="gml:AbstractFeatureType">
+                  <xs:annotation>
+                     <xs:documentation>Dane geograficzne obiektu - linia, punkt,
+                  polygon</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_STATUS_INFO" type="xs:string"/>
+               <xs:element name="opis" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB" type="xs:int"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #51112 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc" type="xs:double"/>
+               <xs:element name="Powierzchnia" type="xs:double"/>
+               <xs:element name="L_APPOITMENT_USER" type="xs:string"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner" id="cza_Dzialki___d4e6454-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="A_CLASSIFIED" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+            id="cza_Dzialki___d4e6461-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="A_ADM_COMPANY" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+            id="cza_Dzialki___d4e6467-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="ID_PROJECT" type="xs:int"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_BILLING_USERS" type="xs:int"/>
+               <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BILLING_USERS"
+                                                         system_cache__appinfo:xpath="default_db__x3A__COMPANIES:ID_BILLING_USERS/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
    </xs:complexType>
    <xs:element name="Dzialki_Unknown" type="default_db__x3A__Dzialki:Dzialki_Unknown"/>

+ 141 - 50
SE/schema/ant-object/default_db.Dzialki/Dzialki_Known/Dzialki_Known.xsd

@@ -27,13 +27,13 @@
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
-              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/COMPANIES.xsd"
               schemaLocation="../../default_db.COMPANIES/COMPANIES/COMPANIES.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
               schemaLocation="../../default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd"/>
-   <xs:complexType name="Dzialki" id="cza_Dzialki___d4e6430-1_Rozdzielcz">
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
+              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW.xsd"/>
+   <xs:complexType name="Dzialki">
       <xs:annotation>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
@@ -51,25 +51,21 @@
             rodzaji dla różnych technologii. Podzielony z uwagi na stany projektowania oraz
             realizacji. </xs:documentation>
       </xs:annotation>
-      <xs:sequence id="cza_Dzialki___d4e6434-1">
-         <xs:element name="ID" type="xs:int" id="cza_Dzialki___d4e6435-1_ID"/>
-         <xs:element name="the_geom"
-                     id="cza_Dzialki___d4e6436-1_the_geom"
-                     type="gml:AbstractFeatureType">
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element name="the_geom" type="gml:AbstractFeatureType">
             <xs:annotation>
                <xs:documentation>Dane geograficzne obiektu - linia, punkt,
                   polygon</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="A_STATUS_INFO"
-                     type="xs:string"
-                     id="cza_Dzialki___d4e6440-1_A_STATUS_I"/>
-         <xs:element name="opis" type="xs:string" id="cza_Dzialki___d4e6441-1_opis">
+         <xs:element name="A_STATUS_INFO" type="xs:string"/>
+         <xs:element name="opis" type="xs:string">
             <xs:annotation>
                <xs:documentation>To zmiany na ID_ZASOBU pod katem kosztorysowym</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="ID_ZASOB" type="xs:int" id="cza_Dzialki___d4e6445-1_ID_ZASOB"/>
+         <xs:element name="ID_ZASOB" type="xs:int"/>
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB">
             <xs:annotation>
                <xs:appinfo>
@@ -84,8 +80,7 @@
                 </xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
-                     id="cza_Dzialki___d4e6446-1">
+         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
@@ -95,15 +90,9 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>
-         <xs:element name="Dlugosc"
-                     type="xs:double"
-                     id="cza_Dzialki___d4e6451-1_Dlugosc"/>
-         <xs:element name="Powierzchnia"
-                     type="xs:double"
-                     id="cza_Dzialki___d4e6452-1_Powierzchn"/>
-         <xs:element name="L_APPOITMENT_USER"
-                     type="xs:string"
-                     id="cza_Dzialki___d4e6453-1_L_APPOITME"/>
+         <xs:element name="Dlugosc" type="xs:double"/>
+         <xs:element name="Powierzchnia" type="xs:double"/>
+         <xs:element name="L_APPOITMENT_USER" type="xs:string"/>
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
                <xs:appinfo>
@@ -127,9 +116,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="cza_Dzialki___d4e6459-1_A_CLASSIFI"/>
+         <xs:element name="A_CLASSIFIED" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
             id="cza_Dzialki___d4e6461-1">
             <xs:annotation>
@@ -140,9 +127,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="cza_Dzialki___d4e6466-1_A_ADM_COMP"/>
+         <xs:element name="A_ADM_COMPANY" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
             id="cza_Dzialki___d4e6467-1">
             <xs:annotation>
@@ -153,9 +138,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="ID_PROJECT"
-                     type="xs:int"
-                     id="cza_Dzialki___d4e6472-1_ID_PROJECT"/>
+         <xs:element name="ID_PROJECT" type="xs:int"/>
          <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
             <xs:annotation>
                <xs:appinfo>
@@ -170,11 +153,8 @@
                 </xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="ID_BILLING_USERS"
-                     type="xs:int"
-                     id="a3A__Dzialki___d4e6313-1_ID_BILLING"/>
-         <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS"
-                     id="a3A__Dzialki___d4e6310-1">
+         <xs:element name="ID_BILLING_USERS" type="xs:int"/>
+         <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
@@ -186,20 +166,131 @@
          </xs:element>
       </xs:sequence>
    </xs:complexType>
-   <xs:element name="Dzialki"
-               type="default_db__x3A__Dzialki:Dzialki"
-               id="cza_Dzialki___d4e6571-1_Rozdzielcz"/>
-   <xs:complexType name="Dzialki_Known" id="a3A__Dzialki___d4e6315-1_Dzialki_Kn">
-      <xs:complexContent id="a3A__Dzialki___d4e6316-1">
-         <xs:extension base="default_db__x3A__Dzialki:Dzialki" id="a3A__Dzialki___d4e6317-1"/>
+   <xs:element name="Dzialki" type="default_db__x3A__Dzialki:Dzialki"/>
+   <xs:complexType name="Dzialki_Known">
+      <xs:complexContent>
+         <xs:extension base="default_db__x3A__Dzialki:Dzialki"/>
       </xs:complexContent>
    </xs:complexType>
-   <xs:element name="Dzialki_Known"
-               type="default_db__x3A__Dzialki:Dzialki_Known"
-               id="a3A__Dzialki___d4e6318-1_Dzialki_Kn"/>
-   <xs:complexType name="Dzialki_Unknown" id="a3A__Dzialki___d4e6320-1_Dzialki_Un">
-      <xs:complexContent id="a3A__Dzialki___d4e6321-1">
-         <xs:extension base="default_db__x3A__Dzialki:Dzialki" id="a3A__Dzialki___d4e6322-1"/>
+   <xs:element name="Dzialki_Known" type="default_db__x3A__Dzialki:Dzialki_Known"/>
+   <xs:complexType name="Dzialki_Unknown">
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__Dzialki:Dzialki">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element name="the_geom" type="gml:AbstractFeatureType">
+                  <xs:annotation>
+                     <xs:documentation>Dane geograficzne obiektu - linia, punkt,
+                  polygon</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_STATUS_INFO" type="xs:string"/>
+               <xs:element name="opis" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB" type="xs:int"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #51112 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc" type="xs:double"/>
+               <xs:element name="Powierzchnia" type="xs:double"/>
+               <xs:element name="L_APPOITMENT_USER" type="xs:string"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner" id="cza_Dzialki___d4e6454-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="A_CLASSIFIED" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+            id="cza_Dzialki___d4e6461-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="A_ADM_COMPANY" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+            id="cza_Dzialki___d4e6467-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="ID_PROJECT" type="xs:int"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_BILLING_USERS" type="xs:int"/>
+               <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BILLING_USERS"
+                                                         system_cache__appinfo:xpath="default_db__x3A__COMPANIES:ID_BILLING_USERS/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
    </xs:complexType>
    <xs:element name="Dzialki_Unknown" type="default_db__x3A__Dzialki:Dzialki_Unknown"/>

+ 141 - 50
SE/schema/ant-object/default_db.Dzialki/Dzialki_Unknown/Dzialki_Unknown.xsd

@@ -27,13 +27,13 @@
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
-              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/COMPANIES.xsd"
               schemaLocation="../../default_db.COMPANIES/COMPANIES/COMPANIES.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
               schemaLocation="../../default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd"/>
-   <xs:complexType name="Dzialki" id="cza_Dzialki___d4e6430-1_Rozdzielcz">
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
+              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW.xsd"/>
+   <xs:complexType name="Dzialki">
       <xs:annotation>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
@@ -51,25 +51,21 @@
             rodzaji dla różnych technologii. Podzielony z uwagi na stany projektowania oraz
             realizacji. </xs:documentation>
       </xs:annotation>
-      <xs:sequence id="cza_Dzialki___d4e6434-1">
-         <xs:element name="ID" type="xs:int" id="cza_Dzialki___d4e6435-1_ID"/>
-         <xs:element name="the_geom"
-                     id="cza_Dzialki___d4e6436-1_the_geom"
-                     type="gml:AbstractFeatureType">
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element name="the_geom" type="gml:AbstractFeatureType">
             <xs:annotation>
                <xs:documentation>Dane geograficzne obiektu - linia, punkt,
                   polygon</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="A_STATUS_INFO"
-                     type="xs:string"
-                     id="cza_Dzialki___d4e6440-1_A_STATUS_I"/>
-         <xs:element name="opis" type="xs:string" id="cza_Dzialki___d4e6441-1_opis">
+         <xs:element name="A_STATUS_INFO" type="xs:string"/>
+         <xs:element name="opis" type="xs:string">
             <xs:annotation>
                <xs:documentation>To zmiany na ID_ZASOBU pod katem kosztorysowym</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="ID_ZASOB" type="xs:int" id="cza_Dzialki___d4e6445-1_ID_ZASOB"/>
+         <xs:element name="ID_ZASOB" type="xs:int"/>
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB">
             <xs:annotation>
                <xs:appinfo>
@@ -84,8 +80,7 @@
                 </xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
-                     id="cza_Dzialki___d4e6446-1">
+         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
@@ -95,15 +90,9 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>
-         <xs:element name="Dlugosc"
-                     type="xs:double"
-                     id="cza_Dzialki___d4e6451-1_Dlugosc"/>
-         <xs:element name="Powierzchnia"
-                     type="xs:double"
-                     id="cza_Dzialki___d4e6452-1_Powierzchn"/>
-         <xs:element name="L_APPOITMENT_USER"
-                     type="xs:string"
-                     id="cza_Dzialki___d4e6453-1_L_APPOITME"/>
+         <xs:element name="Dlugosc" type="xs:double"/>
+         <xs:element name="Powierzchnia" type="xs:double"/>
+         <xs:element name="L_APPOITMENT_USER" type="xs:string"/>
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
                <xs:appinfo>
@@ -127,9 +116,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="cza_Dzialki___d4e6459-1_A_CLASSIFI"/>
+         <xs:element name="A_CLASSIFIED" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
             id="cza_Dzialki___d4e6461-1">
             <xs:annotation>
@@ -140,9 +127,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="cza_Dzialki___d4e6466-1_A_ADM_COMP"/>
+         <xs:element name="A_ADM_COMPANY" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
             id="cza_Dzialki___d4e6467-1">
             <xs:annotation>
@@ -153,9 +138,7 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element name="ID_PROJECT"
-                     type="xs:int"
-                     id="cza_Dzialki___d4e6472-1_ID_PROJECT"/>
+         <xs:element name="ID_PROJECT" type="xs:int"/>
          <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
             <xs:annotation>
                <xs:appinfo>
@@ -170,11 +153,8 @@
                 </xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="ID_BILLING_USERS"
-                     type="xs:int"
-                     id="a3A__Dzialki___d4e6313-1_ID_BILLING"/>
-         <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS"
-                     id="a3A__Dzialki___d4e6310-1">
+         <xs:element name="ID_BILLING_USERS" type="xs:int"/>
+         <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
@@ -186,20 +166,131 @@
          </xs:element>
       </xs:sequence>
    </xs:complexType>
-   <xs:element name="Dzialki"
-               type="default_db__x3A__Dzialki:Dzialki"
-               id="cza_Dzialki___d4e6571-1_Rozdzielcz"/>
-   <xs:complexType name="Dzialki_Known" id="a3A__Dzialki___d4e6315-1_Dzialki_Kn">
-      <xs:complexContent id="a3A__Dzialki___d4e6316-1">
-         <xs:extension base="default_db__x3A__Dzialki:Dzialki" id="a3A__Dzialki___d4e6317-1"/>
+   <xs:element name="Dzialki" type="default_db__x3A__Dzialki:Dzialki"/>
+   <xs:complexType name="Dzialki_Known">
+      <xs:complexContent>
+         <xs:extension base="default_db__x3A__Dzialki:Dzialki"/>
       </xs:complexContent>
    </xs:complexType>
-   <xs:element name="Dzialki_Known"
-               type="default_db__x3A__Dzialki:Dzialki_Known"
-               id="a3A__Dzialki___d4e6318-1_Dzialki_Kn"/>
-   <xs:complexType name="Dzialki_Unknown" id="a3A__Dzialki___d4e6320-1_Dzialki_Un">
-      <xs:complexContent id="a3A__Dzialki___d4e6321-1">
-         <xs:extension base="default_db__x3A__Dzialki:Dzialki" id="a3A__Dzialki___d4e6322-1"/>
+   <xs:element name="Dzialki_Known" type="default_db__x3A__Dzialki:Dzialki_Known"/>
+   <xs:complexType name="Dzialki_Unknown">
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__Dzialki:Dzialki">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element name="the_geom" type="gml:AbstractFeatureType">
+                  <xs:annotation>
+                     <xs:documentation>Dane geograficzne obiektu - linia, punkt,
+                  polygon</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_STATUS_INFO" type="xs:string"/>
+               <xs:element name="opis" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB" type="xs:int"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:ID_ZASOB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #51112 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc" type="xs:double"/>
+               <xs:element name="Powierzchnia" type="xs:double"/>
+               <xs:element name="L_APPOITMENT_USER" type="xs:string"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner" id="cza_Dzialki___d4e6454-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="A_CLASSIFIED" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+            id="cza_Dzialki___d4e6461-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="A_ADM_COMPANY" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+            id="cza_Dzialki___d4e6467-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="ID_PROJECT" type="xs:int"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_BILLING_USERS" type="xs:int"/>
+               <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_BILLING_USERS"
+                                                         system_cache__appinfo:xpath="default_db__x3A__COMPANIES:ID_BILLING_USERS/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
    </xs:complexType>
    <xs:element name="Dzialki_Unknown" type="default_db__x3A__Dzialki:Dzialki_Unknown"/>