Browse Source

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

Piotr Labudda 8 years ago
parent
commit
8b03cda0b7

+ 8 - 15
SE/schema/ant-object/default_db.BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY.xsd

@@ -8,7 +8,6 @@
    xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
    xmlns:SystemObjects__x3A__AccessOwner="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
    xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_PRACOWNICY.xsd"
-   xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY_group="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_PRACOWNICY_group.xsd"
    xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY_adresy="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_PRACOWNICY_adresy.xsd"
    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
@@ -23,9 +22,7 @@
       schemaLocation="../SystemObjects/AccessGroup.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
       schemaLocation="../SystemObjects/AccessOwner.xsd"/>-->
-   <xs:import
-      namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_PRACOWNICY_group.xsd"
-      schemaLocation="../../default_db.BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_PRACOWNICY_group.xsd"/>
+   
    <xs:import
       namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_PRACOWNICY_adresy.xsd"
       schemaLocation="../../default_db.BI_audit_ENERGA_PRACOWNICY_adresy/BI_audit_ENERGA_PRACOWNICY_adresy/BI_audit_ENERGA_PRACOWNICY_adresy.xsd"/>
@@ -41,6 +38,13 @@
       </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="BI_audit_ENERGA_PRACOWNICY" id="_PRACOWNICY___d4e4805-1_BI_audit_E">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:heritage>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+            </system_cache__appinfo:heritage>
+         </xs:appinfo>
+      </xs:annotation>
       <xs:sequence id="_PRACOWNICY___d4e4806-1">
          <xs:element name="ID" type="xs:integer" id="_PRACOWNICY___d4e4831-1_ID"/>
          <xs:element name="imiona" id="_PRACOWNICY___d4e4832-1_imiona">
@@ -155,17 +159,6 @@ Należy mieć na uwadze, że zjebie sie - TODO</xs:documentation>
                </xs:appinfo>
             </xs:annotation>-->
          </xs:element>
-         <xs:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__BI_audit_ENERGA_PRACOWNICY_group:BI_audit_ENERGA_PRACOWNICY_group"
-            id="_PRACOWNICY___d5e16938-1">
-            <!--<xs:annotation>
-               <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__BI_audit_ENERGA_PRACOWNICY_group:BI_audit_ENERGA_PRACOWNICY_group/TODO_FIX_REF_STD"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
-            </xs:annotation>-->
-         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="BI_audit_ENERGA_PRACOWNICY"

+ 1 - 1
SE/schema/ant-object/default_db.BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_PRACOWNICY_group.xsd

@@ -67,7 +67,7 @@
             id="WNICY_group___d5e17047-1_L_APPOITME"/>
          <xs:element name="L_APPOITMENT_TYPE" type="xs:string"
             id="WNICY_group___d5e17048-1_L_APPOITME"/>-->
-         <xs:element name="ID_USER" type="xs:integer"/>
+         <!--<xs:element name="ID_USER" type="xs:integer"/>-->
          <xs:element name="NAZWA" type="xs:string"/>
          <xs:element maxOccurs="unbounded" minOccurs="0"
             ref="default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY"/>

+ 4 - 4
SE/schema/ant-object/default_db.BI_audit_ENERGA_RUM_UMOWY/BI_audit_ENERGA_RUM_UMOWY/BI_audit_ENERGA_RUM_UMOWY.xsd

@@ -16,9 +16,9 @@
               schemaLocation="../SystemObjects/AccessGroup.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
               schemaLocation="../SystemObjects/AccessOwner.xsd"/>-->
-   <xs:import
+   <!--<xs:import
       namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_ENERGA_RUM_KONTRAHENCI.xsd"
-      schemaLocation="../../default_db.BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.xsd"/>
+      schemaLocation="../../default_db.BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.xsd"/>-->
    <xs:simpleType name="A_STATUS_Type" id="A_RUM_UMOWY___d4e5023-1_A_STATUS_T">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
@@ -179,8 +179,8 @@
             id="A_RUM_UMOWY___d5e5414-1_A_RECORD_U"/>
          <xs:element name="A_CLASSIFIED" type="xs:string" id="A_RUM_UMOWY___d4e5046-1_A_CLASSIFI"/>
          <xs:element name="A_ADM_COMPANY" type="xs:string" id="A_RUM_UMOWY___d4e5052-1_A_ADM_COMP"/>
-         <xs:element
-            ref="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI" id="A_RUM_UMOWY___d4e5052-1_A_ADkontr"/>
+         <!--<xs:element
+            ref="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI" id="A_RUM_UMOWY___d4e5052-1_A_ADkontr"/>-->
       </xs:sequence>
    </xs:complexType>
    <xs:element name="BI_audit_ENERGA_RUM_UMOWY"

+ 163 - 304
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_INIT/PROCES_INIT.xsd

@@ -1,19 +1,16 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-           xmlns:default_db__x3A__CRM_PROCES="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-           xmlns:gml="http://www.opengis.net/gml/3.2"
-           xmlns:default_db__x3A__CRM_WSKAZNIK="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
-           xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
-           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-           elementFormDefault="qualified"
-           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-           vc:minVersion="1.0"
-           vc:maxVersion="1.1">
-   <xsd:import namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="../Types/gml.xsd"/>
+   xmlns:default_db__x3A__CRM_PROCES="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:gml="http://www.opengis.net/gml/3.2"
+   xmlns:default_db__x3A__CRM_WSKAZNIK="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+   xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   elementFormDefault="qualified"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   vc:minVersion="1.0" vc:maxVersion="1.1">
+   <xsd:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="../Types/gml.xsd"/>
    <xsd:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
-              schemaLocation="CRM_WSKAZNIK.xsd"/>
+      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
    <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
       <xsd:restriction base="xsd:string">
          <xsd:enumeration value="PROCES_INIT"/>
@@ -44,8 +41,7 @@
          <xsd:enumeration value="PROCES_GROUP_2"/>
       </xsd:restriction>
    </xsd:simpleType>
-   <xsd:simpleType name="PROCES_BENEFIT_INFO_Simple"
-                  id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+   <xsd:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
       <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
          <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
       </xsd:restriction>
@@ -53,14 +49,11 @@
    <xsd:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES">
       <xsd:sequence id="_CRM_PROCES___d4e4692-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4693-1_ID"/>
-         <xsd:element name="PARENT_ID"
-                     type="xsd:int"
-                     id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+         <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
@@ -70,97 +63,77 @@
          <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4701-1_path"/>
          <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
          <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
-         <xsd:element name="TYPE"
-                     type="default_db__x3A__CRM_PROCES:TYPE_Simple"
-                     id="_CRM_PROCES___d4e4703-1_TYPE"/>
-         <xsd:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__CRM_PROCES:PROCES"
-                     id="_CRM_PROCES___d4e4704-1">
+         <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+            id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xsd:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+            id="_CRM_PROCES___d4e4704-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
-                     id="_CRM_PROCES___d4e4711-1">
+         <xsd:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
-                     id="_CRM_PROCES___d4e4718-1">
+         <xsd:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
-                     id="_CRM_PROCES___d4e4725-1">
+         <xsd:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-                     id="_CRM_PROCES___d4e4732-1">
+         <xsd:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded"
-                     minOccurs="0"
-                     ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
-                     id="_CRM_PROCES___d4e4739-1">
+         <xsd:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
             </xsd:annotation>
          </xsd:element>
       </xsd:sequence>
    </xsd:complexType>
-   <xsd:element name="CRM_PROCES"
-               type="default_db__x3A__CRM_PROCES:CRM_PROCES"
-               id="_CRM_PROCES___d4e4744-1_CRM_PROCES"/>
+   <xsd:element name="CRM_PROCES" type="default_db__x3A__CRM_PROCES:CRM_PROCES"
+      id="_CRM_PROCES___d4e4744-1_CRM_PROCES"/>
    <!--<xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
       <xsd:sequence id="_CRM_PROCES___d14e4417-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d14e4418-1_ID"/>
@@ -267,63 +240,50 @@
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4750-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4751-1_ID"/>
-               <xsd:element name="PARENT_ID"
-                           type="xsd:int"
-                           id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                    </xsd:documentation>
-                 </xsd:annotation>
+                  </xsd:annotation>
                </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4759-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
-               <xsd:element name="TYPE"
-                           type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
-                           id="_CRM_PROCES___d4e4761-1_TYPE"/>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES"
-                           id="_CRM_PROCES___d4e4762-1">
+               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-                           id="_CRM_PROCES___d4e4790-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
-                           id="_CRM_PROCES___d4e4797-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -332,103 +292,83 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES_INIT"
-               type="default_db__x3A__CRM_PROCES:PROCES_INIT"
-               id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xsd:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
    <xsd:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO">
       <xsd:complexContent id="_CRM_PROCES___d4e4804-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4806-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4807-1_ID"/>
-               <xsd:element name="PARENT_ID"
-                           type="xsd:int"
-                           id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
-                   </xsd:annotation>
-                 </xsd:element>
+                  </xsd:annotation>
+               </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4815-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
-               <xsd:element name="TYPE"
-                           type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
-                           id="_CRM_PROCES___d4e4817-1_TYPE"/>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
-                           id="_CRM_PROCES___d4e4825-1">
+               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
-                           id="_CRM_PROCES___d4e4832-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
-                           id="_CRM_PROCES___d4e4839-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="1"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-                           id="_CRM_PROCES___d4e4846-1">
+               <xsd:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
-                           id="_CRM_PROCES___d4e4853-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -437,103 +377,83 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES_GROUP_1"
-               type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
-               id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xsd:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
    <xsd:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO">
       <xsd:complexContent id="_CRM_PROCES___d4e4860-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4862-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4863-1_ID"/>
-               <xsd:element name="PARENT_ID"
-                           type="xsd:int"
-                           id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                </xsd:documentation>
-             </xsd:annotation>
-           </xsd:element>
+                  </xsd:annotation>
+               </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4871-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
-               <xsd:element name="TYPE"
-                           type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
-                           id="_CRM_PROCES___d4e4873-1_TYPE"/>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
-                           id="_CRM_PROCES___d4e4881-1">
+               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
-                           id="_CRM_PROCES___d4e4888-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
-                           id="_CRM_PROCES___d4e4895-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="1"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-                           id="_CRM_PROCES___d4e4902-1">
+               <xsd:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
-                           id="_CRM_PROCES___d4e4909-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -542,73 +462,59 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES_GROUP_2"
-               type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
-               id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xsd:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
    <xsd:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES">
       <xsd:complexContent id="_CRM_PROCES___d4e4916-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4918-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4919-1_ID"/>
-               <xsd:element name="PARENT_ID"
-                           type="xsd:int"
-                           id="_CRM_PROCES___d4e4920-1_PARENT_ID">
+               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                    </xsd:documentation>
-                 </xsd:annotation>
+                  </xsd:annotation>
                </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4927-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
-               <xsd:element name="TYPE"
-                           type="default_db__x3A__CRM_PROCES:PROCES_Simple"
-                           id="_CRM_PROCES___d4e4929-1_TYPE"/>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES"
-                           id="_CRM_PROCES___d4e4930-1">
+               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="1"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-                           id="_CRM_PROCES___d4e4958-1">
+               <xsd:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
-                           id="_CRM_PROCES___d4e4965-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -617,28 +523,24 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES"
-               type="default_db__x3A__CRM_PROCES:PROCES"
-               id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xsd:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
+      id="_CRM_PROCES___d4e4970-1_PROCES"/>
    <xsd:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN">
       <xsd:complexContent id="_CRM_PROCES___d4e4972-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4974-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4975-1_ID"/>
-               <xsd:element name="PARENT_ID"
-                           type="xsd:int"
-                           id="_CRM_PROCES___d4e4976-1_PARENT_ID">
+               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                </xsd:documentation>
-             </xsd:annotation>
-           </xsd:element>
+                  </xsd:annotation>
+               </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4983-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
@@ -649,90 +551,72 @@
                      </xsd:restriction>
                   </xsd:simpleType>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES"
-                           id="_CRM_PROCES___d4e4989-1">
+               <xsd:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e4989-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
-                           id="_CRM_PROCES___d4e4996-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4996-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
-                           id="_CRM_PROCES___d4e5003-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
-                           id="_CRM_PROCES___d4e5010-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-                           id="_CRM_PROCES___d4e5017-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
-                           id="_CRM_PROCES___d4e5024-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -741,113 +625,90 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES_BENEFIT_INFO"
-               type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-               id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xsd:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
    <xsd:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE">
       <xsd:complexContent id="_CRM_PROCES___d4e5031-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e5033-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e5034-1_ID"/>
-               <xsd:element name="PARENT_ID"
-                           type="xsd:int"
-                           id="_CRM_PROCES___d4e5035-1_PARENT_ID">
+               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                </xsd:documentation>
-             </xsd:annotation>
-           </xsd:element>
+                  </xsd:annotation>
+               </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e5042-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
-               <xsd:element name="TYPE"
-                           type="default_db__x3A__CRM_PROCES:TYPE_Simple"
-                           id="_CRM_PROCES___d4e5044-1_TYPE"/>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES"
-                           id="_CRM_PROCES___d4e5045-1">
+               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xsd:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e5045-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
-                           id="_CRM_PROCES___d4e5052-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e5052-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
-                           id="_CRM_PROCES___d4e5059-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
-                           id="_CRM_PROCES___d4e5066-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-                           id="_CRM_PROCES___d4e5073-1">
+               <xsd:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0"
-                           minOccurs="0"
-                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
-                           id="_CRM_PROCES___d4e5080-1">
+               <xsd:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
-                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -856,8 +717,6 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element abstract="true"
-               name="PROCES_TREE"
-               type="default_db__x3A__CRM_PROCES:PROCES_TREE"
-               id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+   <xsd:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
 </xsd:schema>

+ 2 - 2
SE/se-lib/Route/Install.php

@@ -680,7 +680,7 @@ ssh {$sshArgs} {$this->sshArgsSkipHostKey} {$sshHostUsr} '[ ! -d ~/se.encrypted.
 ssh {$sshArgs} {$this->sshArgsSkipHostKey} {$sshHostUsr} 'rm -rf ~/se.encrypted.upgrade/SE';
 ssh {$sshArgs} {$this->sshArgsSkipHostKey} {$sshHostUsr} 'cp -r /Library/Server/Web/Data/Sites/Default/SE ~/se.encrypted.upgrade/SE';
 ssh {$sshArgs} {$this->sshArgsSkipHostKey} {$sshHostUsr} 'rm -rf ~/se.encrypted.upgrade/SE/config';
-rsync -e \"{$this->sshArgsSkipHostKey}\" --archive --times --delete --compress --one-file-system --omit-dir-times --no-g --no-perms {$dryRunOnly} \
+rsync --archive --times --delete --compress --one-file-system --omit-dir-times --no-g --no-perms {$dryRunOnly} \
 	--verbose {$rsyncSshPort} \
 	--exclude='stuff' \
 	--exclude='stuff/**' \
@@ -692,7 +692,7 @@ rsync -e \"{$this->sshArgsSkipHostKey}\" --archive --times --delete --compress -
 ssh {$sshArgs} {$this->sshArgsSkipHostKey} {$sshHostUsr} 'cp -r /Library/Server/Web/Data/Sites/Default/SE/config ~/se.encrypted.upgrade/SE/';
 ssh {$sshArgs} {$this->sshArgsSkipHostKey} {$sshHostUsr} 'rm /Library/Server/Web/Data/Sites/Default/se.encrypted.upgrade'
 ssh {$sshArgs} {$this->sshArgsSkipHostKey} {$sshHostUsr} 'ln -s ~/se.encrypted.upgrade/SE /Library/Server/Web/Data/Sites/Default/se.encrypted.upgrade'
-		";
+		"; //todo rsync ... -e \"{$this->sshArgsSkipHostKey}\" - maybe not working
 		V::exec("$cmd 2>&1", $out, $ret);
 		DBG::log([ 'cmd-remote' => $cmd, 'output' => $out ], 'array', "return: {$ret}");
 		if (0 !== $ret) throw new Exception("Cannot run remote command using rsa key! #{$ret}. cmd: {$cmd} . out: {$out}");

+ 7 - 2
SE/se-lib/Route/Storage/TestXsd.php

@@ -26,7 +26,11 @@ class Route_Storage_TestXsd extends RouteBase {
 		$xmlWriter->startElement('xs:schema');
 		$xmlWriter->writeAttribute('xmlns:xs', 'http://www.w3.org/2001/XMLSchema');
 		$xmlWriter->writeAttribute('xmlns:vc', 'http://www.w3.org/2007/XMLSchema-versioning');
+		$xmlWriter->writeAttribute('xmlns:system_cache__appinfo', 'http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd');
 		$xmlWriter->writeAttribute("xmlns:{$p5TypePrefix}", $p5TypeNsUri);
+		if(DB::getPDO()->getZasobId() === $idStorage) {} else  {
+			$xmlWriter->writeAttribute('xmlns:p5_zasob_'.$idStorage, $objNsUri ); //brakuje deklaracji xmlns dla innego zasobu
+		}
 		$xmlWriter->writeAttribute('elementFormDefault', 'qualified');
 		$xmlWriter->writeAttribute('targetNamespace', $objNsUri);
 		$xmlWriter->writeAttribute('vc:minVersion', '1.1');
@@ -88,7 +92,7 @@ class Route_Storage_TestXsd extends RouteBase {
 		$struct = $schema->getStruct();
 		DBG::_('DBG', '>1', "struct", $struct, __CLASS__, __FUNCTION__, __LINE__);
 
-		$typeName = "{$tblName}Type";
+		$typeName = "{$tblName}"; //.Type is not like others xsd. objects
 
 		$xmlWriter->startElement('xs:complexType');
 		$xmlWriter->writeAttribute('name', $typeName);
@@ -164,8 +168,9 @@ class Route_Storage_TestXsd extends RouteBase {
 		if (!empty($foreignKeys)) {
 			foreach ($foreignKeys as $key) {
 				$xmlWriter->startElement('xs:element');
+				$xmlWriter->writeAttribute('name', $key['COLUMN_NAME']); //todo may not be unique - to be set table__x3A__name
 				$refPrefix = (DB::getPDO()->getZasobId() === $idStorage) ? 'p5_default_db' : "p5_zasob_{$idStorage}";
-				$xmlWriter->writeAttribute('ref', "{$refPrefix}:{$key['REFERENCED_TABLE_NAME']}");
+				$xmlWriter->writeAttribute('type', "{$refPrefix}:{$key['REFERENCED_TABLE_NAME']}"); //it is better to show it as type to be than translated to references than having fake ref
 					$xmlWriter->startElement('xs:annotation');
 						$xmlWriter->startElement('xs:appinfo');
 							$xmlWriter->startElement('system_cache__appinfo:flat_relation_cache');

+ 21 - 8
SE/superedit-SQIX_STRUCTURE_DB_SYNC.php

@@ -473,7 +473,7 @@ $CONNLOCAL->query('set global max_allowed_packet=1000000000');
 		//use before function 	SYSTEM_IMPORT_FIX_ZASOB_FIX_PROC_FIX_ALIAS($CONNREMOTE);
 
 		
-		
+		//! function EXPORT_DATA_WITH_TRANSLATE_TABLE(
 		function EXPORT_DATA_WITH_TRANSLATE_TABLE($CONNLOCAL,$CONNREMOTE,$TABLE,$ARRAY_WITH_IDS,$CONFIRM_SQL_UPDATE,$CRM_IMPORT_TRANSLATE) {
 				foreach($ARRAY_WITH_IDS as $ID_TO_IMPORT => $NIC) {
 				flush();
@@ -493,12 +493,12 @@ $CONNLOCAL->query('set global max_allowed_packet=1000000000');
 						  						DEBUG_S(2,'(CRM_LISTA_ZASOBOW->ALIAS_ID) NARZUCAM INNY PARENT ID '.$TABLE.' dla ID="'.$h->ID.'" "'.$h->ALIAS_ID.'" na "'.$CRM_IMPORT_TRANSLATE[$TABLE][$h->ALIAS_ID].'"','',__FILE__,__FUNCTION__,__LINE__);
 						  						$h->ALIAS_ID=$CRM_IMPORT_TRANSLATE[$TABLE][$h->ALIAS_ID];
 						  		}
-						  		if(isset($h->A_CLASSIFIED)) $h->A_CLASSIFIED='';
-						  		if(isset($h->A_ADM_COMPANY)) $h->A_ADM_COMPANY='';
 						  		
 						  	}
 						  	
-						  
+						  		if(isset($h->A_CLASSIFIED)) $h->A_CLASSIFIED='';
+						  		if(isset($h->A_ADM_COMPANY)) $h->A_ADM_COMPANY='';
+						  		
 						  	//dodatkowo sprawdzamy liste przekierowanych wczesniej importow TRANSLATE
 						  	$sql="select `DST_TABLE_ID` from `CRM_IMPORT_TRANSLATE` where  `REM_TABLE`='".$TABLE."' and `SRC_TABLE_ID`='".$h->ID."' ;" ;
 							$result_tst=$CONNREMOTE->query($sql) or DEBUG_S(-3,'Problem ze sql ',$sql,__FILE__, __FUNCTION__, __LINE__) or die1('');
@@ -507,8 +507,9 @@ $CONNLOCAL->query('set global max_allowed_packet=1000000000');
 									//$h->PARENT_ID=$tst->DST_TABLE_ID;
 									$DST_FOUND_ID=$tst->DST_TABLE_ID;
 									$IF_NOT_REPLACED=false; //zaznaczamy, ze nie byl wczesniej zaimportowany
-									DEBUG_S(3,'ZNALAZLEM_REKORD_IGNORUJE_IMPORT:" w tabeli '.$TABLE.' , src_id:'.$h->ID.', dst_id: '.$tst->DST_TABLE_ID.'" "'.$h->PARENT_ID.'"',$sql,__FILE__,__FUNCTION__,__LINE__);
-									if($CONFIRM_SQL_UPDATE!='REPLACE') break 2;
+									if($CONFIRM_SQL_UPDATE!='REPLACE') { 
+										break 2; 
+									} else DEBUG_S(-3,'ZNALAZLEM_REKORD_IGNORUJE_IMPORT:" w tabeli '.$TABLE.' , src_id:'.$h->ID.', dst_id: '.$tst->DST_TABLE_ID.'" "'.$h->PARENT_ID.'"',$sql,__FILE__,__FUNCTION__,__LINE__);
 								}
 		
 							// ! sprawdzmy czy w naszej tabeli nie ma jakiegos parenta, ktory zostal juz wstawiony jako inny ID - mozna z nim wstawic rekord nowy jako nadrzedny ?
@@ -569,7 +570,7 @@ $CONNLOCAL->query('set global max_allowed_packet=1000000000');
 						  		  } else if($IF_NOT_REPLACED) {
 						  		  	//$CRM_IMPORT_TRANSLATE[$TABLE][$SRC_TABLE_ID]=$last_inserted_id; //zapisujemy jaki dostal id nowy rekord
 						  		  	$sql_translate="insert into CRM_IMPORT_TRANSLATE (`REM_TABLE`,`SRC_TABLE_ID`,`DST_TABLE_ID` ) values ('".$TABLE."','".$SRC_TABLE_ID."','".$last_inserted_id."')";
-						  		  	DEBUG_S(3,'Dopisujemy ID do tabeli slownikowej',$sql_translate,__FILE__, __FUNCTION__, __LINE__) ;
+						  		  	DEBUG_S(-3,'Dopisujemy ID do tabeli slownikowej',$sql_translate,__FILE__, __FUNCTION__, __LINE__) ;
 						  		  if(!empty($CONFIRM_SQL_UPDATE))	$result_trans=$CONNREMOTE->query($sql_translate) or 	DEBUG_S(-3,'Blad dodania do bazy translate 2/2 SQL',$sql_translate,__FILE__, __FUNCTION__, __LINE__) or DIE();							
 						  		  }
 						  		
@@ -751,7 +752,16 @@ $CONNLOCAL->query('set global max_allowed_packet=1000000000');
 						}
 						unset($zasoby_to_import);
 
-		
+		//@2017-11-23 nie da sie robic update w zasobach - z uwagi na tabele  _zasob_path_idx - ktora to zawiesza - trzeba ja wyczyscic - dwa razy - przy update i translate update
+//		$sql='truncate table _zasob_path_idx;';
+//		if(!empty($CONFIRM_SQL_UPDATE)) $CONNREMOTE->query($sql) or DEBUG_S(-3,'Problem ze sql ',$sql,__FILE__, __FUNCTION__, __LINE__);
+		//_CRM_LISTA_ZASOBOW_tree_AFTER_UPDATE
+		$sql='drop trigger if exists _CRM_LISTA_ZASOBOW_tree_AFTER_UPDATE ;';
+		if(!empty($CONFIRM_SQL_UPDATE)) $CONNREMOTE->query($sql) or DEBUG_S(-3,'Problem ze sql ',$sql,__FILE__, __FUNCTION__, __LINE__);
+		//_CRM_LISTA_ZASOBOW_tree_UPDATE
+		$sql='drop trigger if exists _CRM_LISTA_ZASOBOW_tree_UPDATE ;';
+		if(!empty($CONFIRM_SQL_UPDATE)) $CONNREMOTE->query($sql) or DEBUG_S(-3,'Problem ze sql ',$sql,__FILE__, __FUNCTION__, __LINE__);
+		//todo 
 		
 		DEBUG_S(-3,'Importuje CRM_PROCES Bede importowac dane, bo Znaleziono liste wskaznikow oraz zasobow do exportu wskazniki_to_import,zasoby_to_import_arr,pytania_to_import:',$childs_of_proces_arr_zjebany,__FILE__, __FUNCTION__, __LINE__);
 		//importuje PROCESU
@@ -798,6 +808,9 @@ $CONNLOCAL->query('set global max_allowed_packet=1000000000');
 
 			}
 
+		//@2017-11-23 nie da sie robic update w zasobach - z uwagi na tabele  _zasob_path_idx - ktora to zawiesza - trzeba ja wyczyscic - dwa razy - przy update i translate update
+//		$sql='truncate table _zasob_path_idx;';
+//		if(!empty($CONFIRM_SQL_UPDATE)) $CONNREMOTE->query($sql) or DEBUG_S(-3,'Problem ze sql ',$sql,__FILE__, __FUNCTION__, __LINE__);
 		// ! aktualizujemy numery P_ID powiazanych tabel po tabeli translate dla IMPORTow z wyjatkiem celowo nadpisanych P_ID
 		$sql='select * from CRM_IMPORT_TRANSLATE ;' ;
 		$result=$CONNREMOTE->query($sql) or DEBUG_S(-3,'Problem ze sql ',$sql,__FILE__, __FUNCTION__, __LINE__) or die1('');