ReplyRests.xsd

Материал из Фабиус wiki
Перейти к: навигация, поиск

<?xml version="1.0" encoding="utf-8"?>

<xs:schema version="1.0"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns:ns="http://fsrar.ru/WEGAIS/ReplyRests"
          targetNamespace="http://fsrar.ru/WEGAIS/ReplyRests"
          xmlns:c="http://fsrar.ru/WEGAIS/Common"
          elementFormDefault="qualified"
          attributeFormDefault="unqualified"
          xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef">
<xs:import namespace="http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
<xs:import namespace="http://fsrar.ru/WEGAIS/ProductRef" schemaLocation="ProductRef.xsd"/>
<xs:complexType name="ReplyRests">
  <xs:annotation>
    <xs:documentation>Ответ на запрос об остатках по складу</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="RestsDate" type="c:DateWTime" minOccurs="1" maxOccurs="1">
      <xs:annotation>
        <xs:documentation>Остатки на эту дату</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Products"  minOccurs="0" maxOccurs="1">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="StockPosition" type="ns:StockPositionType" minOccurs="0" maxOccurs="unbounded">
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:complexType>
<xs:complexType name="StockPositionType">
  <xs:annotation>
    <xs:documentation>Позиция</xs:documentation>
  </xs:annotation>
  <xs:all>
    <xs:element name="Product" type="pref:ProductInfo" minOccurs="1" maxOccurs="1">
      <xs:annotation>
        <xs:documentation>Информация о продукции</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Quantity" type="xs:decimal" minOccurs="1" maxOccurs="1">
      <xs:annotation>
        <xs:documentation>Количество</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="InformARegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
      <xs:annotation>
        <xs:documentation>Справка А</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="InformBRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
      <xs:annotation>
        <xs:documentation>Справка Б</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:all>
</xs:complexType>
</xs:schema>