BILLING_NUMBERS.xsd 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
  3. xmlns:Types__x3A__default_Default="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd"
  4. xmlns:default_db__x3A__IN7_DZIENNIK_KORESP="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
  5. xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  6. xmlns:default_db__x3A__ADMIN_USERS="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
  7. xmlns:default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
  8. xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
  9. xmlns:SystemObjects__x3A__AccessOwner="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
  10. xmlns:default_db__x3A__BILLING_NUMBERS="https://biuro.biall-net.pl/wfs/default_db/table/BILLING_NUMBERS.xsd"
  11. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  12. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  13. xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
  14. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  15. xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
  16. xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
  17. targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/BILLING_NUMBERS.xsd"
  18. vc:minVersion="1.1"
  19. xmlns:default_db__x3A__BILLING_NUMBERS_TYPE="https://biuro.biall-net.pl/wfs/default_db/table/BILLING_NUMBERS_TYPE.xsd"
  20. xmlns:default_db__x3A__COMPANIES="https://biuro.biall-net.pl/wfs/default_db/table/COMPANIES.xsd"
  21. xmlns:default_db__x3A__BILLS_FVAT="https://biuro.biall-net.pl/wfs/default_db/table/BILLS_FVAT.xsd">
  22. <xs:annotation>
  23. <xs:documentation>Proba zamodelowania faktur dla raportow sprzedazy
  24. TODO niegotowy, koncepcyjny @2018-03</xs:documentation>
  25. </xs:annotation>
  26. <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
  27. schemaLocation="../../../types.xsd"/>
  28. <xs:import namespace="http://www.opengis.net/gml/3.2"
  29. schemaLocation="http://www.opengis.net/gml/3.2"/>
  30. <!---->
  31. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
  32. schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
  33. <xs:import
  34. namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
  35. schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
  36. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BILLING_NUMBERS_TYPE.xsd"
  37. schemaLocation="../../default_db.BILLING_NUMBERS_TYPE/BILLING_NUMBERS_TYPE/BILLING_NUMBERS_TYPE.xsd"/>
  38. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/COMPANIES.xsd"
  39. schemaLocation="../../default_db.COMPANIES/COMPANIES/COMPANIES.xsd"/>
  40. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BILLS_FVAT.xsd"
  41. schemaLocation="../../default_db.BILLS_FVAT/BILLS_FVAT/BILLS_FVAT.xsd"/>
  42. <xs:simpleType name="A_STATUS_Type">
  43. <xs:restriction base="xs:string">
  44. <xs:enumeration value="NORMAL"/>
  45. <xs:enumeration value="WAITING"/>
  46. <xs:enumeration value="MONITOR"/>
  47. <xs:enumeration value="DELETED"/>
  48. <xs:enumeration value="WARNING"/>
  49. <xs:enumeration value="OFF_SOFT"/>
  50. <xs:enumeration value="OFF_HARD"/>
  51. </xs:restriction>
  52. </xs:simpleType>
  53. <xs:complexType name="BILLING_NUMBERS">
  54. <xs:annotation>
  55. <xs:appinfo>
  56. <system_cache__appinfo:heritage>
  57. <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:BILLING_NUMBERS" system_cache__appinfo:heritage_acl="true">
  58. <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
  59. <acl_rule_inherit_to_all_refs_by_primary/>
  60. <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
  61. </system_cache__appinfo:inherit>
  62. <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
  63. </system_cache__appinfo:heritage>
  64. </xs:appinfo>
  65. </xs:annotation>
  66. <xs:sequence>
  67. <xs:element name="ID" type="xs:integer"/>
  68. <xs:element name="TIMESTAMP" type="xs:string"/>
  69. <xs:element name="ID_BILLING_NUMBERS_TYPE" type="xs:integer"/>
  70. <xs:choice>
  71. <xs:element ref="default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE">
  72. <xs:annotation>
  73. <xs:appinfo>
  74. <system_cache__appinfo:flat_relation_cache>
  75. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_BILLING_NUMBERS_TYPE" system_cache__appinfo:xpath="default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE/ID_BILLING_NUMBERS_TYPE"/>
  76. </system_cache__appinfo:flat_relation_cache>
  77. </xs:appinfo>
  78. </xs:annotation>
  79. </xs:element>
  80. <xs:element
  81. ref="default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE_SELL_WINIEN__BILLS_FVAT"/>
  82. <xs:element
  83. ref="default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE_SELL_WINIEN__BILLS_RU"
  84. />
  85. </xs:choice>
  86. <xs:element name="ID_BILLING_PREFIXES" type="xs:integer"/>
  87. <xs:element name="NUMBER" type="xs:integer"/>
  88. <xs:element name="ID_BILLING_USERS" type="xs:integer"/>
  89. <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS">
  90. <xs:annotation>
  91. <xs:appinfo>
  92. <system_cache__appinfo:flat_relation_cache>
  93. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_BILLING_USERS" system_cache__appinfo:xpath="default_db__x3A__COMPANIES:ID_BILLING_USERS/ID"/>
  94. </system_cache__appinfo:flat_relation_cache>
  95. </xs:appinfo>
  96. </xs:annotation>
  97. </xs:element>
  98. </xs:sequence>
  99. <xs:assert
  100. test="ID_BILLING_PREFIXES = default_db__x3A__COMPANIES:ID_BILLING_USERS/ID_BILLING_PREFIXES">
  101. <xs:annotation>
  102. <xs:documentation>Prefix dla faktur bierzse sie z klienta</xs:documentation>
  103. </xs:annotation>
  104. </xs:assert>
  105. </xs:complexType>
  106. <xs:complexType name="BILLING_NUMBERS_BILLS_FVAT">
  107. <xs:complexContent>
  108. <xs:restriction base="default_db__x3A__BILLING_NUMBERS:BILLING_NUMBERS">
  109. <xs:sequence>
  110. <xs:element name="ID" type="xs:integer"/>
  111. <xs:element name="TIMESTAMP" type="xs:string"/>
  112. <xs:element name="ID_BILLING_NUMBERS_TYPE" type="xs:integer"/>
  113. <xs:choice>
  114. <xs:element ref="default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE"
  115. maxOccurs="0" minOccurs="0">
  116. <xs:annotation>
  117. <xs:appinfo>
  118. <system_cache__appinfo:flat_relation_cache>
  119. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_BILLING_NUMBERS_TYPE" system_cache__appinfo:xpath="default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE/ID_BILLING_NUMBERS_TYPE"/>
  120. </system_cache__appinfo:flat_relation_cache>
  121. </xs:appinfo>
  122. </xs:annotation>
  123. </xs:element>
  124. <xs:sequence>
  125. <xs:element
  126. ref="default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE_SELL_WINIEN__BILLS_FVAT"
  127. />
  128. </xs:sequence>
  129. <xs:element
  130. ref="default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE_SELL_WINIEN__BILLS_RU"
  131. maxOccurs="0" minOccurs="0"/>
  132. </xs:choice>
  133. <xs:element name="ID_BILLING_PREFIXES" type="xs:integer"/>
  134. <xs:element name="NUMBER" type="xs:integer"/>
  135. <xs:element name="ID_BILLING_USERS" type="xs:integer"/>
  136. <xs:element ref="default_db__x3A__COMPANIES:ID_BILLING_USERS">
  137. <xs:annotation>
  138. <xs:appinfo>
  139. <system_cache__appinfo:flat_relation_cache>
  140. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_BILLING_USERS" system_cache__appinfo:xpath="default_db__x3A__COMPANIES:ID_BILLING_USERS/ID"/>
  141. </system_cache__appinfo:flat_relation_cache>
  142. </xs:appinfo>
  143. </xs:annotation>
  144. </xs:element>
  145. </xs:sequence>
  146. <xs:assert
  147. test="ID_BILLING_NUMBERS_TYPE = default_db__x3A__BILLING_NUMBERS_TYPE:BILLING_NUMBERS_TYPE_SELL_WINIEN__BILLS_FVAT/ID">
  148. <xs:annotation>
  149. <xs:documentation>Typ danych dla wprowadzania faktury</xs:documentation>
  150. </xs:annotation>
  151. </xs:assert>
  152. <xs:assert
  153. test="ID_BILLING_PREFIXES = default_db__x3A__COMPANIES:ID_BILLING_USERS/ID_BILLING_PREFIXES">
  154. <xs:annotation>
  155. <xs:documentation>Prefix dla faktur bierzse sie z klienta</xs:documentation>
  156. </xs:annotation>
  157. </xs:assert>
  158. <xs:assert test="ID_BILLING_USERS = default_db__x3A__COMPANIES:ID_BILLING_USERS/ID">
  159. <xs:annotation>
  160. <xs:documentation>Płatnik to ID z Companies</xs:documentation>
  161. </xs:annotation>
  162. </xs:assert>
  163. </xs:restriction>
  164. </xs:complexContent>
  165. </xs:complexType>
  166. <xs:element name="BILLING_NUMBERS_BILLS_FVAT"
  167. type="default_db__x3A__BILLING_NUMBERS:BILLING_NUMBERS_BILLS_FVAT">
  168. <xs:annotation>
  169. <xs:documentation>Obiekt do wystawiania lub/i przegladania faktur</xs:documentation>
  170. </xs:annotation>
  171. </xs:element>
  172. <xs:element name="BILLING_NUMBERS" type="default_db__x3A__BILLING_NUMBERS:BILLING_NUMBERS"/>
  173. </xs:schema>