a.binder há 8 anos atrás
pai
commit
562ae4fd6d

+ 17 - 168
SE/schema/ant-object/default_db.BADANIA_W_TERENIE/BADANIA_W_TERENIE/BADANIA_W_TERENIE.xsd

@@ -15,6 +15,7 @@
            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"
+           xmlns:default_db__x3A__MK_Rewiry="https://biuro.biall-net.pl/wfs/default_db/table/MK_Rewiry.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/BADANIA_W_TERENIE.xsd"
            vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
@@ -25,6 +26,10 @@
               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/MK_Rewiry.xsd"
+              schemaLocation="../../default_db.MK_Rewiry/MK_Rewiry/MK_Rewiry.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:simpleType name="A_STATUS_Type" id="A_W_TERENIE___d5e73626-1_A_STATUS_T">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
@@ -84,20 +89,7 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73657-1_L_APPOITME"/>
-         <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -162,37 +154,11 @@
          <xs:element name="M_REWIR"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73673-1_M_REWIR"/>
-         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                   system_cache__appinfo:name="M_REWIR"
-                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-               <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-            </xs:annotation>
-         </xs:element>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      id="A_W_TERENIE___d5e73674-1_ID_PROJECT"/>
-         <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
       </xs:sequence>
       <xs:attribute name="label" id="A_W_TERENIE___d5e73675-1_label"/>
       <xs:assert test="@label = concat(A_STATUS, ' ', L_APPOITMENT_USER)"
@@ -227,20 +193,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73693-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -305,37 +258,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73709-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73710-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -369,20 +296,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73726-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -447,37 +361,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73742-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73743-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -511,20 +399,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73759-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -589,37 +464,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73775-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73776-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 17 - 168
SE/schema/ant-object/default_db.BADANIA_W_TERENIE/BADANIA_W_TERENIE_NORMAL/BADANIA_W_TERENIE_NORMAL.xsd

@@ -15,6 +15,7 @@
            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"
+           xmlns:default_db__x3A__MK_Rewiry="https://biuro.biall-net.pl/wfs/default_db/table/MK_Rewiry.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/BADANIA_W_TERENIE.xsd"
            vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
@@ -25,6 +26,10 @@
               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/MK_Rewiry.xsd"
+              schemaLocation="../../default_db.MK_Rewiry/MK_Rewiry/MK_Rewiry.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:simpleType name="A_STATUS_Type" id="A_W_TERENIE___d5e73626-1_A_STATUS_T">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
@@ -84,20 +89,7 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73657-1_L_APPOITME"/>
-         <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -162,37 +154,11 @@
          <xs:element name="M_REWIR"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73673-1_M_REWIR"/>
-         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                   system_cache__appinfo:name="M_REWIR"
-                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-               <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-            </xs:annotation>
-         </xs:element>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      id="A_W_TERENIE___d5e73674-1_ID_PROJECT"/>
-         <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
       </xs:sequence>
       <xs:attribute name="label" id="A_W_TERENIE___d5e73675-1_label"/>
       <xs:assert test="@label = concat(A_STATUS, ' ', L_APPOITMENT_USER)"
@@ -227,20 +193,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73693-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -305,37 +258,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73709-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73710-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -369,20 +296,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73726-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -447,37 +361,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73742-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73743-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -511,20 +399,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73759-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -589,37 +464,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73775-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73776-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 17 - 168
SE/schema/ant-object/default_db.BADANIA_W_TERENIE/BADANIA_W_TERENIE_OFF_HARD/BADANIA_W_TERENIE_OFF_HARD.xsd

@@ -15,6 +15,7 @@
            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"
+           xmlns:default_db__x3A__MK_Rewiry="https://biuro.biall-net.pl/wfs/default_db/table/MK_Rewiry.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/BADANIA_W_TERENIE.xsd"
            vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
@@ -25,6 +26,10 @@
               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/MK_Rewiry.xsd"
+              schemaLocation="../../default_db.MK_Rewiry/MK_Rewiry/MK_Rewiry.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:simpleType name="A_STATUS_Type" id="A_W_TERENIE___d5e73626-1_A_STATUS_T">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
@@ -84,20 +89,7 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73657-1_L_APPOITME"/>
-         <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -162,37 +154,11 @@
          <xs:element name="M_REWIR"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73673-1_M_REWIR"/>
-         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                   system_cache__appinfo:name="M_REWIR"
-                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-               <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-            </xs:annotation>
-         </xs:element>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      id="A_W_TERENIE___d5e73674-1_ID_PROJECT"/>
-         <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
       </xs:sequence>
       <xs:attribute name="label" id="A_W_TERENIE___d5e73675-1_label"/>
       <xs:assert test="@label = concat(A_STATUS, ' ', L_APPOITMENT_USER)"
@@ -227,20 +193,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73693-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -305,37 +258,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73709-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73710-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -369,20 +296,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73726-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -447,37 +361,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73742-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73743-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -511,20 +399,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73759-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -589,37 +464,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73775-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73776-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 17 - 168
SE/schema/ant-object/default_db.BADANIA_W_TERENIE/BADANIA_W_TERENIE_WAITING/BADANIA_W_TERENIE_WAITING.xsd

@@ -15,6 +15,7 @@
            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"
+           xmlns:default_db__x3A__MK_Rewiry="https://biuro.biall-net.pl/wfs/default_db/table/MK_Rewiry.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/BADANIA_W_TERENIE.xsd"
            vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
@@ -25,6 +26,10 @@
               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/MK_Rewiry.xsd"
+              schemaLocation="../../default_db.MK_Rewiry/MK_Rewiry/MK_Rewiry.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:simpleType name="A_STATUS_Type" id="A_W_TERENIE___d5e73626-1_A_STATUS_T">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
@@ -84,20 +89,7 @@
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73657-1_L_APPOITME"/>
-         <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -162,37 +154,11 @@
          <xs:element name="M_REWIR"
                      type="xs:string"
                      id="A_W_TERENIE___d5e73673-1_M_REWIR"/>
-         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-            <xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                   system_cache__appinfo:name="M_REWIR"
-                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-               <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-            </xs:annotation>
-         </xs:element>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      id="A_W_TERENIE___d5e73674-1_ID_PROJECT"/>
-         <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
       </xs:sequence>
       <xs:attribute name="label" id="A_W_TERENIE___d5e73675-1_label"/>
       <xs:assert test="@label = concat(A_STATUS, ' ', L_APPOITMENT_USER)"
@@ -227,20 +193,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73693-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -305,37 +258,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73709-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73710-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -369,20 +296,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73726-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -447,37 +361,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73742-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73743-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -511,20 +399,7 @@
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73759-1_L_APPOITME"/>
-               <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="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
             id="A_W_TERENIE___d4e4506-1">
             <xs:annotation>
@@ -589,37 +464,11 @@
                <xs:element name="M_REWIR"
                            type="xs:string"
                            id="A_W_TERENIE___d5e73775-1_M_REWIR"/>
-               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry">
-                  <xs:annotation>
-                     <xs:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
-                                                         system_cache__appinfo:name="M_REWIR"
-                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
-                        </system_cache__appinfo:flat_relation_cache>
-                     </xs:appinfo>
-                     <xs:documentation>
-                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
-                </xs:documentation>
-                  </xs:annotation>
-               </xs:element>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"/>
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            id="A_W_TERENIE___d5e73776-1_ID_PROJECT"/>
-               <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 ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>