浏览代码

change na restriction Error #0|389: Error Parsing Schema - expected 'complexType/complexContent/extension/sequence'

a.binder 8 年之前
父节点
当前提交
c17acef6f7

+ 176 - 115
SE/schema/ant-object/default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd

@@ -1,22 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
-   xmlns:default_db__x3A__ADMIN_USERS="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
-   xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.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"
-   xmlns:default_db__x3A__DEVICES="https://biuro.biall-net.pl/wfs/default_db/table/DEVICES.xsd"
-   xmlns:default_db__x3A__PROBLEMS="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
-   xmlns:default_db__x3A__USERS2_MARKETING="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
-   xmlns:default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
-   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types" elementFormDefault="qualified"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
-   vc:minVersion="1.1">
+           xmlns:default_db__x3A__ADMIN_USERS="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.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"
+           xmlns:default_db__x3A__DEVICES="https://biuro.biall-net.pl/wfs/default_db/table/DEVICES.xsd"
+           xmlns:default_db__x3A__PROBLEMS="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.xsd"
+           xmlns:default_db__x3A__USERS2_MARKETING="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
+           xmlns:default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
+           xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+           xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+           vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
-      schemaLocation="../../../types.xsd"/>
+              schemaLocation="../../../types.xsd"/>
    <xs:import namespace="http://www.opengis.net/gml/3.2"
    <xs:import namespace="http://www.opengis.net/gml/3.2"
-      schemaLocation="http://www.opengis.net/gml/3.2"/>
+              schemaLocation="http://www.opengis.net/gml/3.2"/>
    <xs:annotation>
    <xs:annotation>
       <xs:appinfo>
       <xs:appinfo>
          <system_cache__appinfo:binding bindPolicy="single">
          <system_cache__appinfo:binding bindPolicy="single">
@@ -27,16 +28,15 @@
       <xs:documentation>Shcematy dla kont systemowych / pracownikow, ktorzy moga byc przywiazywani do stanowisk oraz moga dla nich byc zapewniane zasoby w rocumieniu odpowiedzialnosci</xs:documentation>
       <xs:documentation>Shcematy dla kont systemowych / pracownikow, ktorzy moga byc przywiazywani do stanowisk oraz moga dla nich byc zapewniane zasoby w rocumieniu odpowiedzialnosci</xs:documentation>
    </xs:annotation>
    </xs:annotation>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
-      schemaLocation="../../default_db.CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW.xsd"/>
+              schemaLocation="../../default_db.CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW/CRM_LISTA_ZASOBOW.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/DEVICES.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/DEVICES.xsd"
-      schemaLocation="../../default_db.DEVICES/DEVICES/DEVICES.xsd"/>
+              schemaLocation="../../default_db.DEVICES/DEVICES/DEVICES.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
-      schemaLocation="../../default_db.USERS2_MARKETING/USERS2_MARKETING/USERS2_MARKETING.xsd"/>
+              schemaLocation="../../default_db.USERS2_MARKETING/USERS2_MARKETING/USERS2_MARKETING.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/PROBLEMS.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/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
-      schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
+              schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
+              schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
    <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
    <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
@@ -82,12 +82,14 @@
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
-               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:ADMIN_USERS" system_cache__appinfo:heritage_acl="true">
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:ADMIN_USERS"
+                                              system_cache__appinfo:heritage_acl="true">
                   <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
                   <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
                   <acl_rule_inherit_to_all_refs_by_primary/>
                   <acl_rule_inherit_to_all_refs_by_primary/>
                   <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
                   <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
                </system_cache__appinfo:inherit>
                </system_cache__appinfo:inherit>
-               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
@@ -96,9 +98,10 @@
          <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
          <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
          <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
          <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
          <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="ADM_PASSWD" type="xs:string"/>
-         <xs:element name="A_STATUS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+         <xs:element name="A_STATUS"
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-            type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
          <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
          <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
@@ -158,7 +161,9 @@
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                   </system_cache__appinfo:flat_relation_cache>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                </xs:appinfo>
                <xs:documentation>
                <xs:documentation>
@@ -166,7 +171,9 @@
                 </xs:documentation>
                 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__DEVICES:DEVICES">
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -175,8 +182,9 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING" maxOccurs="unbounded"
-            minOccurs="0">
+         <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                     maxOccurs="unbounded"
+                     minOccurs="0">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -185,7 +193,9 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__PROBLEMS:PROBLEMS">
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -194,12 +204,15 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <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:IN7_MK_BAZA_DYSTRYBUCJI">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ADM_ACCOUNT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ADM_ACCOUNT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
                   </system_cache__appinfo:flat_relation_cache>
                   </system_cache__appinfo:flat_relation_cache>
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
@@ -224,9 +237,10 @@ Kombinacja: bazowa</xs:documentation>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
-               <xs:element name="A_STATUS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
@@ -285,53 +299,61 @@ Kombinacja: bazowa</xs:documentation>
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
                      <xs:documentation>
                      <xs:documentation>
                     TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
                     TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
                 </xs:documentation>
                 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__DEVICES:DEVICES">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
-                  maxOccurs="unbounded" minOccurs="0">
+                           maxOccurs="unbounded"
+                           minOccurs="0">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__PROBLEMS:PROBLEMS">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <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:IN7_MK_BAZA_DYSTRYBUCJI">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
-                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ADM_ACCOUNT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
-                  </system_cache__appinfo:flat_relation_cache>
-               </xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
             </xs:sequence>
             </xs:sequence>
@@ -350,9 +372,9 @@ Kombinacja: bazowa</xs:documentation>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
@@ -412,7 +434,9 @@ Kombinacja: bazowa</xs:documentation>
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                      <xs:documentation>
                      <xs:documentation>
@@ -420,8 +444,9 @@ Kombinacja: bazowa</xs:documentation>
                 </xs:documentation>
                 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__DEVICES:DEVICES">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -431,7 +456,8 @@ Kombinacja: bazowa</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
-                  maxOccurs="unbounded" minOccurs="0">
+                           maxOccurs="unbounded"
+                           minOccurs="0">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -440,8 +466,9 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__PROBLEMS:PROBLEMS">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -454,7 +481,8 @@ Kombinacja: bazowa</xs:documentation>
          </xs:restriction>
          </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="user_status__NORMAL" type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:element name="user_status__NORMAL"
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
    <xs:complexType name="user_status__OFF_HARD">
    <xs:complexType name="user_status__OFF_HARD">
       <xs:complexContent>
       <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
@@ -464,9 +492,9 @@ Kombinacja: bazowa</xs:documentation>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
@@ -526,7 +554,9 @@ Kombinacja: bazowa</xs:documentation>
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                      <xs:documentation>
                      <xs:documentation>
@@ -534,8 +564,9 @@ Kombinacja: bazowa</xs:documentation>
                 </xs:documentation>
                 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__DEVICES:DEVICES">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -548,7 +579,8 @@ Kombinacja: bazowa</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
-                  maxOccurs="unbounded" minOccurs="0">
+                           maxOccurs="unbounded"
+                           minOccurs="0">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -557,8 +589,9 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__PROBLEMS:PROBLEMS">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -567,12 +600,15 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <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:IN7_MK_BAZA_DYSTRYBUCJI">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ADM_ACCOUNT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
@@ -582,7 +618,7 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-      type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
    <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
    <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
    <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
    <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
@@ -601,9 +637,10 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
-               <xs:element name="A_STATUS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
@@ -663,7 +700,9 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                      <xs:documentation>
                      <xs:documentation>
@@ -671,8 +710,9 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                 </xs:documentation>
                 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__DEVICES:DEVICES">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -682,7 +722,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
-                  maxOccurs="unbounded" minOccurs="0">
+                           maxOccurs="unbounded"
+                           minOccurs="0">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -691,12 +732,15 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <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:IN7_MK_BAZA_DYSTRYBUCJI">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ADM_ACCOUNT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
@@ -705,7 +749,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
          </xs:restriction>
          </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="person_contatct" type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:element name="person_contatct"
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
    <xs:complexType name="person_contact_with_details">
    <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
@@ -718,9 +763,10 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
-               <xs:element name="A_STATUS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
@@ -780,7 +826,9 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                      <xs:documentation>
                      <xs:documentation>
@@ -788,8 +836,9 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                 </xs:documentation>
                 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__DEVICES:DEVICES">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -799,7 +848,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
-                  maxOccurs="unbounded" minOccurs="0">
+                           maxOccurs="unbounded"
+                           minOccurs="0">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -808,12 +858,15 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <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:IN7_MK_BAZA_DYSTRYBUCJI">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ADM_ACCOUNT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
@@ -823,7 +876,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-      type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
    <xs:complexType name="worker">
    <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
@@ -836,9 +889,9 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                  type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
@@ -898,7 +951,9 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                      <xs:documentation>
                      <xs:documentation>
@@ -906,8 +961,9 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                 </xs:documentation>
                 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__DEVICES:DEVICES">
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -917,7 +973,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
-                  maxOccurs="unbounded" minOccurs="0">
+                           maxOccurs="unbounded"
+                           minOccurs="0">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -926,12 +983,15 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <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:IN7_MK_BAZA_DYSTRYBUCJI">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
-                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ADM_ACCOUNT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
                         </system_cache__appinfo:flat_relation_cache>
                         </system_cache__appinfo:flat_relation_cache>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
@@ -940,8 +1000,9 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
          </xs:restriction>
          </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="worker" type="default_db__x3A__ADMIN_USERS:worker"
-      substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="worker"
+               type="default_db__x3A__ADMIN_USERS:worker"
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
    <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/ADMIN_USERS_ID/ADMIN_USERS_ID.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/AccessOwner/AccessOwner.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/CUSTOMER_ADMIN_USER/CUSTOMER_ADMIN_USER.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/L_APPOITMENT_USER/L_APPOITMENT_USER.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/person_contact_with_details/person_contact_with_details.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/person_contatct/person_contatct.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/user/user.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/user_status__NORMAL/user_status__NORMAL.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/user_status__OFF_HARD/user_status__OFF_HARD.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>

+ 245 - 343
SE/schema/ant-object/default_db.ADMIN_USERS/worker/worker.xsd

@@ -37,8 +37,7 @@
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
               schemaLocation="../../default_db.PROBLEMS/PROBLEMS/PROBLEMS.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE"
-                  id="ADMIN_USERS___d4e4101-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
          <xs:enumeration value=""/>
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
@@ -48,19 +47,17 @@
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details"
-                  id="ADMIN_USERS___d4e4109-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__person_contact_with_details">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Kontakt"/>
          <xs:enumeration value="Kontakt"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker"
-                  id="ADMIN_USERS___d4e4112-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__EMPLOYE_TYPE__worker">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE">
          <xs:enumeration value="Pracownik"/>
          <xs:enumeration value="Pracownik"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS" id="ADMIN_USERS___d4e4115-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="WAITING"/>
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -71,19 +68,17 @@
          <xs:enumeration value="DELETED"/>
          <xs:enumeration value="DELETED"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL"
-                  id="ADMIN_USERS___d4e4124-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_NORMAL">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD"
-                  id="ADMIN_USERS___d4e4127-1_ADMIN_USER">
+   <xs:simpleType name="ADMIN_USERS__A_STATUS_OFF_HARD">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
       <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS">
          <xs:enumeration value="OFF_HARD"/>
          <xs:enumeration value="OFF_HARD"/>
       </xs:restriction>
       </xs:restriction>
    </xs:simpleType>
    </xs:simpleType>
-   <xs:complexType name="ADMIN_USERS" id="ADMIN_USERS___d5e4252-1_ADMIN_USER">
+   <xs:complexType name="ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:appinfo>
          <xs:appinfo>
             <system_cache__appinfo:heritage>
             <system_cache__appinfo:heritage>
@@ -98,80 +93,48 @@
             </system_cache__appinfo:heritage>
             </system_cache__appinfo:heritage>
          </xs:appinfo>
          </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
-      <xs:sequence id="ADMIN_USERS___d4e4134-1">
-         <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4135-1_ID"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_NAME"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4136-1_ADM_NAME"/>
-         <xs:element maxOccurs="1"
-                     minOccurs="1"
-                     name="ADM_ACCOUNT"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4137-1_ADM_ACCOUN"/>
-         <xs:element name="ADM_PASSWD"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4138-1_ADM_PASSWD"/>
+      <xs:sequence>
+         <xs:element name="ID" type="xs:int"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+         <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+         <xs:element name="ADM_PASSWD" type="xs:string"/>
          <xs:element name="A_STATUS"
          <xs:element name="A_STATUS"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                     id="ADMIN_USERS___d4e4139-1_A_STATUS"/>
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
          <xs:element name="EMPLOYEE_TYPE"
          <xs:element name="EMPLOYEE_TYPE"
-                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                     id="ADMIN_USERS___d4e4140-1_EMPLOYEE_T"/>
-         <xs:element name="ADM_OTHER_DOC"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4141-1_ADM_OTHER_">
+                     type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+         <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PESEL"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4145-1_ADM_PESEL">
+         <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="ADM_PHONE"
-                     minOccurs="0"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4149-1_ADM_PHONE">
+         <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="DEFAULT_ACL_GROUP"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4153-1_DEFAULT_AC">
+         <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_CLASSIFIED"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4157-1_A_CLASSIFI">
+         <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element minOccurs="0"
-                     name="A_ADM_COMPANY"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4162-1_A_ADM_COMP">
+         <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>todo make ref</xs:documentation>
                <xs:documentation>todo make ref</xs:documentation>
             </xs:annotation>
             </xs:annotation>
          </xs:element>
          </xs:element>
-         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                     type="xs:string"
-                     id="ADMIN_USERS___d4e4185-1_EMAIL_LOCA"/>
+         <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
          <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                      id="ADMIN_USERS___d4e4166-1">
                      id="ADMIN_USERS___d4e4166-1">
             <xs:annotation>
             <xs:annotation>
@@ -194,7 +157,6 @@
                </xs:appinfo>
                </xs:appinfo>
             </xs:annotation>
             </xs:annotation>
          </xs:element>-->
          </xs:element>-->
-         
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
          <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
@@ -211,8 +173,7 @@
          </xs:element>
          </xs:element>
          <xs:element maxOccurs="unbounded"
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
                      minOccurs="0"
-                     ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1">
+                     ref="default_db__x3A__DEVICES:DEVICES">
             <xs:annotation>
             <xs:annotation>
                <xs:appinfo>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                   <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -258,104 +219,195 @@
          </xs:element>
          </xs:element>
       </xs:sequence>
       </xs:sequence>
    </xs:complexType>
    </xs:complexType>
-   <xs:element name="ADMIN_USERS"
-               type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-               id="ADMIN_USERS___d5e4302-1_ADMIN_USER"/>
+   <xs:element name="ADMIN_USERS" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS"/>
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
    <xs:element name="ADMIN_USERS_ID" type="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
          <xs:documentation>Uzywane w TELBOXES jako osoba odpowiadajaca za sprzet</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="user" id="ADMIN_USERS___d4e4130-1_user">
+   <xs:complexType name="user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
          <xs:documentation>@20160708 bindera: na bazie jsona Piotrowego, do testow GUI
 Kombinacja: bazowa</xs:documentation>
 Kombinacja: bazowa</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d5e4307-1">
-         <xs:extension base="default_db__x3A__ADMIN_USERS:ADMIN_USERS"
-                       id="ADMIN_USERS___d5e4308-1"/>
+      <xs:complexContent>
+         <xs:restriction base="default_db__x3A__ADMIN_USERS:ADMIN_USERS">
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
+               <xs:element name="A_STATUS"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
+               <xs:element name="EMPLOYEE_TYPE"
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
+                  <xs:annotation>
+                     <xs:documentation>todo make ref</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ADMIN_USERS___d4e4166-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ADMIN_USERS___d4e4171-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/name"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__DEVICES:DEVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
+                           maxOccurs="unbounded"
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <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:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADM_ACCOUNT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/L_APPOITMENT_USER"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
-   <xs:complexType name="user_status__NORMAL" id="ADMIN_USERS___d4e4181-1_user_statu">
+   <xs:complexType name="user_status__NORMAL">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
          <xs:documentation>do generowania : typ obiektu na NORMAL do tworzenia kombinacji</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4185-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4187-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4188-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4189-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4190-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4191-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4192-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4193-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4194-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4198-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4202-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4206-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4210-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4215-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4239-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4219-1">
                            id="ADMIN_USERS___d4e4219-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -378,7 +430,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -395,8 +446,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -432,85 +482,52 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__NORMAL"
    <xs:element name="user_status__NORMAL"
-               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"
-               id="ADMIN_USERS___d4e4235-1_user_statu"/>
-   <xs:complexType name="user_status__OFF_HARD" id="ADMIN_USERS___d4e4236-1_user_statu">
-      <xs:complexContent id="ADMIN_USERS___d4e4237-1">
+               type="default_db__x3A__ADMIN_USERS:user_status__NORMAL"/>
+   <xs:complexType name="user_status__OFF_HARD">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4239-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4240-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4241-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4242-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4243-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"
-                           id="ADMIN_USERS___d4e4244-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_OFF_HARD"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4245-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4246-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4250-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4254-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4258-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4262-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4267-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4292-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4271-1">
                            id="ADMIN_USERS___d4e4271-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -533,7 +550,6 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -550,8 +566,7 @@ Kombinacja: bazowa</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -603,99 +618,62 @@ Kombinacja: bazowa</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="user_status__OFF_HARD"
    <xs:element name="user_status__OFF_HARD"
-               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"
-               id="ADMIN_USERS___d4e4286-1_user_statu"/>
-   <xs:element name="user"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4287-1_user"/>
-   <xs:element name="AccessOwner"
-               type="default_db__x3A__ADMIN_USERS:user"
-               id="ADMIN_USERS___d4e4288-1_AccessOwne">
+               type="default_db__x3A__ADMIN_USERS:user_status__OFF_HARD"/>
+   <xs:element name="user" type="default_db__x3A__ADMIN_USERS:user"/>
+   <xs:element name="AccessOwner" type="default_db__x3A__ADMIN_USERS:user">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
          <xs:documentation>Odpowiednik L_APPOITMENT_USER</xs:documentation>
       </xs:annotation>
       </xs:annotation>
    </xs:element>
    </xs:element>
-   <xs:complexType name="person_contatct" id="ADMIN_USERS___d4e4292-1_person_con">
+   <xs:complexType name="person_contatct">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
          <xs:documentation>TODO podstawowy obiekt do wprowadzania jako kontakt do osoby fizycznej z mozliwoscia ewnetualnego logowania i widzenia spraw powiazanych
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4296-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4298-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4299-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4300-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4301-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4302-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4303-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4304-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4305-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4309-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4313-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4317-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4321-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4326-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4352-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4330-1">
                            id="ADMIN_USERS___d4e4330-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -718,7 +696,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -735,8 +712,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -774,90 +750,56 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contatct"
    <xs:element name="person_contatct"
-               type="default_db__x3A__ADMIN_USERS:person_contatct"
-               id="ADMIN_USERS___d4e4345-1_person_con"/>
-   <xs:complexType name="person_contact_with_details"
-                   id="ADMIN_USERS___d4e4346-1_person_con">
+               type="default_db__x3A__ADMIN_USERS:person_contatct"/>
+   <xs:complexType name="person_contact_with_details">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
          <xs:documentation>Kontakt do dodawania do umow, rozszerzony o pesel i dane dokładne adresowe zamieszkania
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
 Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4350-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4352-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4353-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4354-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4355-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4356-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"
-                           id="ADMIN_USERS___d4e4357-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"
-                           id="ADMIN_USERS___d4e4358-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4359-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4363-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="1"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4367-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="1" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4371-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4375-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4380-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4407-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4384-1">
                            id="ADMIN_USERS___d4e4384-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -880,7 +822,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -897,8 +838,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -936,88 +876,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
       </xs:complexContent>
       </xs:complexContent>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="person_contact_with_details"
    <xs:element name="person_contact_with_details"
-               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"
-               id="ADMIN_USERS___d4e4399-1_person_con"/>
-   <xs:complexType name="worker" id="ADMIN_USERS___d4e4400-1_worker">
+               type="default_db__x3A__ADMIN_USERS:person_contact_with_details"/>
+   <xs:complexType name="worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
          <xs:documentation>kombinacja - jest to EMPLOYEE TYPE = Pracownik</xs:documentation>
       </xs:annotation>
       </xs:annotation>
-      <xs:complexContent id="ADMIN_USERS___d4e4404-1">
+      <xs:complexContent>
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
          <xs:restriction base="default_db__x3A__ADMIN_USERS:user">
-            <xs:sequence id="ADMIN_USERS___d4e4406-1">
-               <xs:element name="ID" type="xs:int" id="ADMIN_USERS___d4e4407-1_ID"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_NAME"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4408-1_ADM_NAME"/>
-               <xs:element maxOccurs="1"
-                           minOccurs="1"
-                           name="ADM_ACCOUNT"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4409-1_ADM_ACCOUN"/>
-               <xs:element name="ADM_PASSWD"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4410-1_ADM_PASSWD"/>
+            <xs:sequence>
+               <xs:element name="ID" type="xs:int"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_NAME" type="xs:string"/>
+               <xs:element maxOccurs="1" minOccurs="1" name="ADM_ACCOUNT" type="xs:string"/>
+               <xs:element name="ADM_PASSWD" type="xs:string"/>
                <xs:element name="A_STATUS"
                <xs:element name="A_STATUS"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"
-                           id="ADMIN_USERS___d4e4411-1_A_STATUS"/>
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__A_STATUS_NORMAL"/>
                <xs:element name="EMPLOYEE_TYPE"
                <xs:element name="EMPLOYEE_TYPE"
-                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"
-                           id="ADMIN_USERS___d4e4412-1_EMPLOYEE_T"/>
-               <xs:element name="ADM_OTHER_DOC"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4413-1_ADM_OTHER_">
+                           type="default_db__x3A__ADMIN_USERS:ADMIN_USERS__EMPLOYE_TYPE__worker"/>
+               <xs:element name="ADM_OTHER_DOC" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PESEL"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4417-1_ADM_PESEL">
+               <xs:element name="ADM_PESEL" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users
 </xs:documentation>
 </xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="ADM_PHONE"
-                           minOccurs="0"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4421-1_ADM_PHONE">
+               <xs:element name="ADM_PHONE" minOccurs="0" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                      <xs:documentation>todo: nalezy zdefiniowac komorke w admin users</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="DEFAULT_ACL_GROUP"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4425-1_DEFAULT_AC">
+               <xs:element minOccurs="0" name="DEFAULT_ACL_GROUP" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_CLASSIFIED"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4429-1_A_CLASSIFI">
+               <xs:element minOccurs="0" name="A_CLASSIFIED" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element minOccurs="0"
-                           name="A_ADM_COMPANY"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4434-1_A_ADM_COMP">
+               <xs:element minOccurs="0" name="A_ADM_COMPANY" type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>todo make ref</xs:documentation>
                      <xs:documentation>todo make ref</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>
                </xs:element>
-               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS"
-                           type="xs:string"
-                           id="ADMIN_USERS___d4e4462-1_EMAIL_LOCA"/>
+               <xs:element name="EMAIL_LOCAL_ACCOUNT_ADDRESS" type="xs:string"/>
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                <!--<xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
                            id="ADMIN_USERS___d4e4438-1">
                            id="ADMIN_USERS___d4e4438-1">
                   <xs:annotation>
                   <xs:annotation>
@@ -1040,7 +947,6 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                      </xs:appinfo>
                   </xs:annotation>
                   </xs:annotation>
                </xs:element>-->
                </xs:element>-->
-               
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
@@ -1057,8 +963,7 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                </xs:element>
                </xs:element>
                <xs:element maxOccurs="unbounded"
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
                            minOccurs="0"
-                           ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6">
+                           ref="default_db__x3A__DEVICES:DEVICES">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:appinfo>
                      <xs:appinfo>
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
                         <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
@@ -1097,11 +1002,8 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
    </xs:complexType>
    </xs:complexType>
    <xs:element name="worker"
    <xs:element name="worker"
                type="default_db__x3A__ADMIN_USERS:worker"
                type="default_db__x3A__ADMIN_USERS:worker"
-               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-               id="ADMIN_USERS___d4e4453-1_worker"/>
-   <xs:element name="L_APPOITMENT_USER"
-               type="default_db__x3A__ADMIN_USERS:worker"
-               id="ADMIN_USERS___d4e4455-1_L_APPOITME"/>
+               substitutionGroup="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"/>
+   <xs:element name="L_APPOITMENT_USER" type="default_db__x3A__ADMIN_USERS:worker"/>
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
    <xs:element name="CUSTOMER_ADMIN_USER" type="default_db__x3A__ADMIN_USERS:worker">
       <xs:annotation>
       <xs:annotation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>
          <xs:documentation>GLownie w zadaniach jest taka relacja</xs:documentation>