Переглянути джерело

updated ref to DEALS_TABLE i REWIRS

a.binder 8 роки тому
батько
коміт
5b5e42ab92

+ 150 - 13
SE/schema/ant-object/default_db.IN7_MK_BAZA_DYSTRYBUCJI/ID_PROJECT/ID_PROJECT.xsd

@@ -28,6 +28,7 @@
            xmlns:default_db__x3A__USERS2_MARKETING="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.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:default_db__x3A__PROBLEMS="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
+           xmlns:default_db__x3A__MK_Rewiry="https://biuro.biall-net.pl/wfs/default_db/table/MK_Rewiry.xsd"
            elementFormDefault="qualified"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
            vc:minVersion="1.1"
@@ -74,6 +75,12 @@
               schemaLocation="../../default_db.USERS2_MARKETING/USERS2_MARKETING/USERS2_MARKETING.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.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:annotation>
+         <xs:documentation>relacja do rewirow bedzie potrzebna do raportu sprzedazy , bo za rewirem kryja sie umowy, z ktorych wynika sprzedaz na fakturach</xs:documentation>
+      </xs:annotation>
+   </xs:import>
    <xs:simpleType name="M_DIST_TYPE">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
@@ -100,6 +107,18 @@
       <xs:sequence>
          <xs:element name="ID" type="xs:int"/>
          <xs:element name="P_ID" type="xs:int"/>
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="P_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="1"
                      minOccurs="0"
                      name="M_DIST_TYPE"
@@ -116,7 +135,16 @@
                      type="gml:AbstractFeatureType"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                        <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD/ID_PROJECT"/>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD"
                      id="DYSTRYBUCJI___d4e5715-1">
             <xs:annotation>
@@ -135,9 +163,6 @@
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
-         <xs:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
          <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -615,10 +640,36 @@
          </xs:element>-->
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
@@ -627,7 +678,31 @@
                      minOccurs="0"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__PROBLEMS:PROBLEMS/ID_PROJECT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"
+                     maxOccurs="unbounded"
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/ID_PROJECT"/>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+               <xs:documentation>Rewiry sa potrzebne dla potrzeby zrobienia raportu sprzedazy - idziemy do umowy i serwisu i faktur</xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="IN7_MK_BAZA_DYSTRYBUCJI"
@@ -652,6 +727,18 @@
             <xs:sequence>
                <xs:element name="ID" type="xs:int"/>
                <xs:element name="P_ID" type="xs:int"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="P_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="1"
                            minOccurs="0"
                            name="M_DIST_TYPE"
@@ -663,7 +750,20 @@
                            type="gml:AbstractFeatureType"/>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="the_geom"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--<xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD"
                      id="DYSTRYBUCJI___d4e5715-1">
             <xs:annotation>
@@ -682,9 +782,6 @@
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
-               <xs:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
                <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -1162,10 +1259,36 @@
          </xs:element>-->
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
@@ -1175,6 +1298,20 @@
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                         system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/ID_PROJECT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Rewiry sa potrzebne dla potrzeby zrobienia raportu sprzedazy - idziemy do umowy i serwisu i faktur</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

Різницю між файлами не показано, бо вона завелика
+ 454 - 370
SE/schema/ant-object/default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd


+ 150 - 13
SE/schema/ant-object/default_db.IN7_MK_BAZA_DYSTRYBUCJI/INWESTYCJA_BUDOWA_SIECI/INWESTYCJA_BUDOWA_SIECI.xsd

@@ -28,6 +28,7 @@
            xmlns:default_db__x3A__USERS2_MARKETING="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.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:default_db__x3A__PROBLEMS="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
+           xmlns:default_db__x3A__MK_Rewiry="https://biuro.biall-net.pl/wfs/default_db/table/MK_Rewiry.xsd"
            elementFormDefault="qualified"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
            vc:minVersion="1.1"
@@ -74,6 +75,12 @@
               schemaLocation="../../default_db.USERS2_MARKETING/USERS2_MARKETING/USERS2_MARKETING.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.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:annotation>
+         <xs:documentation>relacja do rewirow bedzie potrzebna do raportu sprzedazy , bo za rewirem kryja sie umowy, z ktorych wynika sprzedaz na fakturach</xs:documentation>
+      </xs:annotation>
+   </xs:import>
    <xs:simpleType name="M_DIST_TYPE">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
@@ -100,6 +107,18 @@
       <xs:sequence>
          <xs:element name="ID" type="xs:int"/>
          <xs:element name="P_ID" type="xs:int"/>
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="P_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="1"
                      minOccurs="0"
                      name="M_DIST_TYPE"
@@ -116,7 +135,16 @@
                      type="gml:AbstractFeatureType"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                        <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD/ID_PROJECT"/>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD"
                      id="DYSTRYBUCJI___d4e5715-1">
             <xs:annotation>
@@ -135,9 +163,6 @@
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
-         <xs:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
          <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -615,10 +640,36 @@
          </xs:element>-->
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
@@ -627,7 +678,31 @@
                      minOccurs="0"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__PROBLEMS:PROBLEMS/ID_PROJECT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"
+                     maxOccurs="unbounded"
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/ID_PROJECT"/>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+               <xs:documentation>Rewiry sa potrzebne dla potrzeby zrobienia raportu sprzedazy - idziemy do umowy i serwisu i faktur</xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="IN7_MK_BAZA_DYSTRYBUCJI"
@@ -652,6 +727,18 @@
             <xs:sequence>
                <xs:element name="ID" type="xs:int"/>
                <xs:element name="P_ID" type="xs:int"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="P_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="1"
                            minOccurs="0"
                            name="M_DIST_TYPE"
@@ -663,7 +750,20 @@
                            type="gml:AbstractFeatureType"/>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="the_geom"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--<xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD"
                      id="DYSTRYBUCJI___d4e5715-1">
             <xs:annotation>
@@ -682,9 +782,6 @@
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
-               <xs:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
                <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -1162,10 +1259,36 @@
          </xs:element>-->
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
@@ -1175,6 +1298,20 @@
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                         system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/ID_PROJECT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Rewiry sa potrzebne dla potrzeby zrobienia raportu sprzedazy - idziemy do umowy i serwisu i faktur</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 150 - 13
SE/schema/ant-object/default_db.IN7_MK_BAZA_DYSTRYBUCJI/INWESTYCJA_BUDOWA_SIECI_UZG/INWESTYCJA_BUDOWA_SIECI_UZG.xsd

@@ -28,6 +28,7 @@
            xmlns:default_db__x3A__USERS2_MARKETING="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.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:default_db__x3A__PROBLEMS="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
+           xmlns:default_db__x3A__MK_Rewiry="https://biuro.biall-net.pl/wfs/default_db/table/MK_Rewiry.xsd"
            elementFormDefault="qualified"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
            vc:minVersion="1.1"
@@ -74,6 +75,12 @@
               schemaLocation="../../default_db.USERS2_MARKETING/USERS2_MARKETING/USERS2_MARKETING.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.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:annotation>
+         <xs:documentation>relacja do rewirow bedzie potrzebna do raportu sprzedazy , bo za rewirem kryja sie umowy, z ktorych wynika sprzedaz na fakturach</xs:documentation>
+      </xs:annotation>
+   </xs:import>
    <xs:simpleType name="M_DIST_TYPE">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
@@ -100,6 +107,18 @@
       <xs:sequence>
          <xs:element name="ID" type="xs:int"/>
          <xs:element name="P_ID" type="xs:int"/>
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="P_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="1"
                      minOccurs="0"
                      name="M_DIST_TYPE"
@@ -116,7 +135,16 @@
                      type="gml:AbstractFeatureType"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                        <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD/ID_PROJECT"/>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD"
                      id="DYSTRYBUCJI___d4e5715-1">
             <xs:annotation>
@@ -135,9 +163,6 @@
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
-         <xs:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
          <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -615,10 +640,36 @@
          </xs:element>-->
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
@@ -627,7 +678,31 @@
                      minOccurs="0"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__PROBLEMS:PROBLEMS/ID_PROJECT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"
+                     maxOccurs="unbounded"
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/ID_PROJECT"/>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+               <xs:documentation>Rewiry sa potrzebne dla potrzeby zrobienia raportu sprzedazy - idziemy do umowy i serwisu i faktur</xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="IN7_MK_BAZA_DYSTRYBUCJI"
@@ -652,6 +727,18 @@
             <xs:sequence>
                <xs:element name="ID" type="xs:int"/>
                <xs:element name="P_ID" type="xs:int"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="P_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="1"
                            minOccurs="0"
                            name="M_DIST_TYPE"
@@ -663,7 +750,20 @@
                            type="gml:AbstractFeatureType"/>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="the_geom"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--<xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD"
                      id="DYSTRYBUCJI___d4e5715-1">
             <xs:annotation>
@@ -682,9 +782,6 @@
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
-               <xs:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
                <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -1162,10 +1259,36 @@
          </xs:element>-->
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
@@ -1175,6 +1298,20 @@
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                         system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/ID_PROJECT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Rewiry sa potrzebne dla potrzeby zrobienia raportu sprzedazy - idziemy do umowy i serwisu i faktur</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 150 - 13
SE/schema/ant-object/default_db.IN7_MK_BAZA_DYSTRYBUCJI/UMOWA/UMOWA.xsd

@@ -28,6 +28,7 @@
            xmlns:default_db__x3A__USERS2_MARKETING="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.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:default_db__x3A__PROBLEMS="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
+           xmlns:default_db__x3A__MK_Rewiry="https://biuro.biall-net.pl/wfs/default_db/table/MK_Rewiry.xsd"
            elementFormDefault="qualified"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
            vc:minVersion="1.1"
@@ -74,6 +75,12 @@
               schemaLocation="../../default_db.USERS2_MARKETING/USERS2_MARKETING/USERS2_MARKETING.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.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:annotation>
+         <xs:documentation>relacja do rewirow bedzie potrzebna do raportu sprzedazy , bo za rewirem kryja sie umowy, z ktorych wynika sprzedaz na fakturach</xs:documentation>
+      </xs:annotation>
+   </xs:import>
    <xs:simpleType name="M_DIST_TYPE">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
@@ -100,6 +107,18 @@
       <xs:sequence>
          <xs:element name="ID" type="xs:int"/>
          <xs:element name="P_ID" type="xs:int"/>
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="P_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="1"
                      minOccurs="0"
                      name="M_DIST_TYPE"
@@ -116,7 +135,16 @@
                      type="gml:AbstractFeatureType"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                        <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD/ID_PROJECT"/>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD"
                      id="DYSTRYBUCJI___d4e5715-1">
             <xs:annotation>
@@ -135,9 +163,6 @@
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
-         <xs:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
          <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -615,10 +640,36 @@
          </xs:element>-->
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
@@ -627,7 +678,31 @@
                      minOccurs="0"/>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__PROBLEMS:PROBLEMS/ID_PROJECT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"
+                     maxOccurs="unbounded"
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                   system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/ID_PROJECT"/>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+               <xs:documentation>Rewiry sa potrzebne dla potrzeby zrobienia raportu sprzedazy - idziemy do umowy i serwisu i faktur</xs:documentation>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="IN7_MK_BAZA_DYSTRYBUCJI"
@@ -652,6 +727,18 @@
             <xs:sequence>
                <xs:element name="ID" type="xs:int"/>
                <xs:element name="P_ID" type="xs:int"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="P_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="1"
                            minOccurs="0"
                            name="M_DIST_TYPE"
@@ -663,7 +750,20 @@
                            type="gml:AbstractFeatureType"/>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="the_geom"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--<xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_BUD"
                      id="DYSTRYBUCJI___d4e5715-1">
             <xs:annotation>
@@ -682,9 +782,6 @@
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__SALES_PLAN:SALES_PLAN"/>
-               <xs:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
                <!--<xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:INWESTYCJA_BUDOWA_SIECI"/>-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS"
@@ -1162,10 +1259,36 @@
          </xs:element>-->
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
@@ -1175,6 +1298,20 @@
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+               <xs:element ref="default_db__x3A__MK_Rewiry:MK_Rewiry"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                                                         system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/ID_PROJECT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Rewiry sa potrzebne dla potrzeby zrobienia raportu sprzedazy - idziemy do umowy i serwisu i faktur</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

Деякі файли не було показано, через те що забагато файлів було змінено