RepProducedProduct.xsd — различия между версиями

Материал из Фабиус wiki
Перейти к: навигация, поиск
(Новая страница: «<?xml version="1.0" encoding="utf-8"?> <xs:schema version="1.0" xmlns:ns="http://fsrar.ru/WEGAIS/RepProducedProduct" targetNamespace="http:/…»)
 
м
 
(не показано 9 промежуточных версий этого же участника)
Строка 1: Строка 1:
<?xml version="1.0" encoding="utf-8"?>
+
<?xml version = "1.0" encoding = "utf-8"?>
<xs:schema version="1.0"
+
<xs:schema version = "1.0"
          xmlns:ns="http://fsrar.ru/WEGAIS/RepProducedProduct"
+
  xmlns:ns         = "http://fsrar.ru/WEGAIS/RepProducedProduct"
          targetNamespace="http://fsrar.ru/WEGAIS/RepProducedProduct"
+
  targetNamespace   = "http://fsrar.ru/WEGAIS/RepProducedProduct"
         
+
  xmlns:xs           = "http://www.w3.org/2001/XMLSchema"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
  elementFormDefault = "qualified"
          elementFormDefault="qualified"
+
  attributeFormDefault = "unqualified"
          attributeFormDefault="unqualified"
+
  xmlns:c             = "http://fsrar.ru/WEGAIS/Common"
         
+
  xmlns:ce             = "http://fsrar.ru/WEGAIS/CommonEnum"
          xmlns:c="http://fsrar.ru/WEGAIS/Common"
+
  xmlns:oref           = "http://fsrar.ru/WEGAIS/ClientRef_v2"
          xmlns:ce="http://fsrar.ru/WEGAIS/CommonEnum"
+
  xmlns:pref           = "http://fsrar.ru/WEGAIS/ProductRef_v2">
          xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef_v2"
+
   <xs:import namespace = "http://fsrar.ru/WEGAIS/Common"       schemaLocation = "EGCommon.xsd"/>
          xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef_v2"
+
   <xs:import namespace = "http://fsrar.ru/WEGAIS/CommonEnum"   schemaLocation = "EGCommonEnum.xsd"/>
>
+
   <xs:import namespace = "http://fsrar.ru/WEGAIS/ClientRef_v2" schemaLocation = "ClientRef_v2.xsd"/>
   <xs:import namespace="http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
+
   <xs:import namespace = "http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/>
   <xs:import namespace="http://fsrar.ru/WEGAIS/CommonEnum" schemaLocation="EGCommonEnum.xsd"/>
+
   <xs:import namespace="http://fsrar.ru/WEGAIS/ClientRef_v2" schemaLocation="ClientRef_v2.xsd"/>
+
   <xs:import namespace="http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation="ProductRef_v2.xsd"/>
+
  
   <xs:complexType name="RepProducedType">
+
   <xs:complexType name = "RepProducedType">
    <xs:annotation>
+
  <xs:annotation>
      <xs:documentation>Отчет о производстве продукции</xs:documentation>
+
    <xs:documentation>'''Отчет о производстве''' продукции</xs:documentation>
    </xs:annotation>
+
  </xs:annotation>
    <xs:sequence>
+
  <xs:sequence>
      <xs:element name="Identity" type="c:IdentityType" nillable="false" minOccurs="0" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Идентификатор отчета (клиентский, к заполнению необязательный)</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
      <xs:element name="Header">
+
        <xs:complexType>
+
          <xs:all>
+
            <xs:element name="Type" type="ns:OperType" default="OperProduction" minOccurs="1" maxOccurs="1">
+
              <xs:annotation>
+
                <xs:documentation>Операция: OperProduction - производство; OperConversion - переработка; OperMaterials - производство сырья для собственного использования;</xs:documentation>
+
              </xs:annotation>
+
            </xs:element>
+
  
            <xs:element name="NUMBER" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1">
+
    <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "0" maxOccurs = "1">
              <xs:annotation>
+
    <xs:annotation>
                <xs:documentation>Номер документа</xs:documentation>
+
       <xs:documentation>Идентификатор отчета ( клиентский, к заполнению необязательный )</xs:documentation>
              </xs:annotation>
+
    </xs:annotation>
            </xs:element>
+
    </xs:element>
 
+
            <xs:element name="Date" type="c:DateNoTime" minOccurs="1" maxOccurs="1">
+
              <xs:annotation>
+
                <xs:documentation>Дата составления</xs:documentation>
+
              </xs:annotation>
+
            </xs:element>
+
            <xs:element name="ProducedDate" type="c:DateNoTime" nillable="false" minOccurs="1" maxOccurs="1">
+
              <xs:annotation>
+
                <xs:documentation>Дата производства</xs:documentation>
+
              </xs:annotation>
+
            </xs:element>
+
 
+
            <xs:element name="Producer" type="oref:OrgInfoRus_v2" minOccurs="1" maxOccurs="1">
+
              <xs:annotation>
+
                <xs:documentation>Производитель</xs:documentation>
+
              </xs:annotation>
+
            </xs:element>
+
 
+
            <xs:element name="Note" minOccurs="0" maxOccurs="1">
+
              <xs:annotation>
+
                <xs:documentation>Примечание к документу о производстве</xs:documentation>
+
              </xs:annotation>
+
              <xs:simpleType>
+
                <xs:restriction base="xs:string">
+
                  <xs:maxLength value="200"/>
+
                </xs:restriction>
+
              </xs:simpleType>
+
            </xs:element>
+
 
+
          </xs:all>
+
        </xs:complexType>
+
       </xs:element>
+
      <xs:element name="Content">
+
        <xs:complexType>
+
          <xs:sequence>
+
            <xs:element name="Position" type="ns:PositionType" minOccurs="1" maxOccurs="unbounded">
+
              <xs:annotation>
+
                <xs:documentation>Содержимое отчета о производстве должно содержать 1 и более позиций</xs:documentation>
+
              </xs:annotation>
+
            </xs:element>
+
          </xs:sequence>
+
        </xs:complexType>
+
 
+
        <xs:unique name="PosUn">
+
          <xs:selector xpath="ns:Position"/>
+
          <xs:field xpath="ns:Identity"/>
+
        </xs:unique>
+
      </xs:element>
+
     
+
      <xs:element name="ContentResource" minOccurs="0">
+
        <xs:complexType>
+
          <xs:sequence>
+
            <xs:element name="Resource" type="ns:UsedResourceType" minOccurs="1" maxOccurs="unbounded">
+
              <xs:annotation>
+
                <xs:documentation>Использованное сырье</xs:documentation>
+
              </xs:annotation>
+
            </xs:element>
+
          </xs:sequence>
+
        </xs:complexType>
+
 
+
        <xs:unique name="PosUnRes">
+
          <xs:selector xpath="ns:Resource"/>
+
          <xs:field xpath="ns:IdentityRes"/>
+
        </xs:unique>
+
      </xs:element>
+
    </xs:sequence>
+
  </xs:complexType>
+
  
  <xs:complexType name="PositionType">
+
    <xs:element name = "Header">
    <xs:annotation>
+
    <xs:complexType>
       <xs:documentation>Позиция</xs:documentation>
+
       <xs:all>
    </xs:annotation>
+
      <xs:element name = "Type" type = "ns:OperType" default = "OperProduction" minOccurs = "1" maxOccurs = "1">
    <xs:all>
+
      <xs:element name="ProductCode" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1">
+
 
         <xs:annotation>
 
         <xs:annotation>
          <xs:documentation>Регистрационный код произведенной продукции</xs:documentation>
+
        <xs:documentation>
 +
          Операция:
 +
          OperProduction - производство;
 +
          OperConversion - переработка;
 +
          OperMaterials  - производство сырья для собственного использования;
 +
        </xs:documentation>
 
         </xs:annotation>
 
         </xs:annotation>
      </xs:element>
+
      </xs:element>
  
      <xs:element name="Quantity" type="c:PositiveDecimalType" minOccurs="1" maxOccurs="1">
+
      <xs:element name = "NUMBER" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
 
         <xs:annotation>
 
         <xs:annotation>
          <xs:documentation>Количество</xs:documentation>
+
        <xs:documentation>Номер документа</xs:documentation>
 
         </xs:annotation>
 
         </xs:annotation>
      </xs:element>
+
      </xs:element>
     
+
      <xs:element name="alcPercent" type="c:AlcPercentType" nillable="false" minOccurs="0" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Содержание этилового спирта, %</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
  
      <xs:element name="alcPercentMin" type="c:AlcPercentType" nillable="false" minOccurs="0" maxOccurs="1">
+
      <xs:element name = "Date" type = "c:DateNoTime" minOccurs = "1" maxOccurs = "1">
 
         <xs:annotation>
 
         <xs:annotation>
          <xs:documentation>Минимальное содержание этилового спирта, %</xs:documentation>
+
        <xs:documentation>Дата составления</xs:documentation>
 
         </xs:annotation>
 
         </xs:annotation>
      </xs:element>
+
      </xs:element>
  
      <xs:element name="alcPercentMax" type="c:AlcPercentType" nillable="false" minOccurs="0" maxOccurs="1">
+
      <xs:element name = "ProducedDate" type = "c:DateNoTime" nillable = "false" minOccurs = "1" maxOccurs = "1">
 
         <xs:annotation>
 
         <xs:annotation>
          <xs:documentation>Максимальное содержание этилового спирта, %</xs:documentation>
+
        <xs:documentation>Дата производства</xs:documentation>
 
         </xs:annotation>
 
         </xs:annotation>
      </xs:element>
+
      </xs:element>
  
      <xs:element name="Party" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1">
+
      <xs:element name = "Producer" type = "oref:OrgInfoRus_v2" minOccurs = "1" maxOccurs = "1">
 
         <xs:annotation>
 
         <xs:annotation>
          <xs:documentation>Номер партии</xs:documentation>
+
        <xs:documentation>Производитель</xs:documentation>
 
         </xs:annotation>
 
         </xs:annotation>
      </xs:element>
+
      </xs:element>
  
      <xs:element name="Identity" type="c:IdentityType" nillable="false" minOccurs="1" maxOccurs="1">
+
      <xs:element name = "Note" minOccurs = "0" maxOccurs = "1">
 
         <xs:annotation>
 
         <xs:annotation>
          <xs:documentation>Идентификатор позиции внутри отчета о производстве</xs:documentation>
+
        <xs:documentation>Примечание к документу о производстве</xs:documentation>
        </xs:annotation>
+
      </xs:element>
+
 
+
      <xs:element name="Comment1" minOccurs="0" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Коментарий №1 к позиции по производстве</xs:documentation>
+
 
         </xs:annotation>
 
         </xs:annotation>
 
         <xs:simpleType>
 
         <xs:simpleType>
          <xs:restriction base="xs:string">
+
        <xs:restriction base = "xs:string">
            <xs:maxLength value="200"/>
+
          <xs:maxLength value = "200"/>
          </xs:restriction>
+
        </xs:restriction>
 
         </xs:simpleType>
 
         </xs:simpleType>
       </xs:element>
+
      </xs:element>
       <xs:element name="Comment2" minOccurs="0" maxOccurs="1">
+
       </xs:all>
 +
    </xs:complexType>
 +
    </xs:element>
 +
 
 +
    <xs:element name = "Content">
 +
    <xs:complexType>
 +
       <xs:sequence>
 +
      <xs:element name = "Position" type = "ns:PositionType" minOccurs = "1" maxOccurs = "unbounded">
 
         <xs:annotation>
 
         <xs:annotation>
          <xs:documentation>Коментарий №2 к позиции по производстве</xs:documentation>
+
        <xs:documentation>Содержимое отчета о производстве должно содержать 1 и более позиций</xs:documentation>
 
         </xs:annotation>
 
         </xs:annotation>
        <xs:simpleType>
+
      </xs:element>
          <xs:restriction base="xs:string">
+
       </xs:sequence>
            <xs:maxLength value="200"/>
+
    </xs:complexType>
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
       <xs:element name="Comment3" minOccurs="0" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Коментарий №3 к позиции по производстве</xs:documentation>
+
        </xs:annotation>
+
        <xs:simpleType>
+
          <xs:restriction base="xs:string">
+
            <xs:maxLength value="200"/>
+
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
  
       <xs:element name="MarkInfo" type="pref:MarkInfoType" nillable="false" minOccurs="0" maxOccurs="1">
+
    <xs:unique name = "PosUn">
 +
       <xs:selector xpath = "ns:Position"/>
 +
      <xs:field xpath = "ns:Identity"/>
 +
    </xs:unique>
 +
    </xs:element>
 +
     
 +
    <xs:element name = "ContentResource" minOccurs = "0">
 +
    <xs:complexType>
 +
      <xs:sequence>
 +
      <xs:element name = "Resource" type = "ns:UsedResourceType" minOccurs = "1" maxOccurs = "unbounded">
 
         <xs:annotation>
 
         <xs:annotation>
          <xs:documentation>Нанесённые диапазоны марок</xs:documentation>
+
        <xs:documentation>Использованное сырье</xs:documentation>
 
         </xs:annotation>
 
         </xs:annotation>
      </xs:element>
+
      </xs:element>
 +
      </xs:sequence>
 +
    </xs:complexType>
  
     </xs:all>
+
    <xs:unique name = "PosUnRes">
 +
      <xs:selector xpath = "ns:Resource"/>
 +
      <xs:field xpath = "ns:IdentityRes"/>
 +
    </xs:unique>
 +
     </xs:element>
 +
  </xs:sequence>
 
   </xs:complexType>
 
   </xs:complexType>
  
   <xs:simpleType name="OperType">
+
   <xs:complexType name = "PositionType">
    <xs:annotation>
+
  <xs:annotation>
      <xs:documentation>Типы операций</xs:documentation>
+
    <xs:documentation>Позиция</xs:documentation>
    </xs:annotation>
+
  </xs:annotation>
    <xs:restriction base="xs:string">
+
  <xs:all>
      <xs:enumeration value="OperProduction"/>
+
    <xs:element name = "ProductCode" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
      <xs:enumeration value="OperConversion"/>
+
    <xs:annotation>
       <xs:enumeration value="OperMaterials"/>
+
       <xs:documentation>Регистрационный код произведенной продукции</xs:documentation>
    </xs:restriction>
+
    </xs:annotation>
  </xs:simpleType>
+
    </xs:element>
  
  <xs:complexType name="UsedResourceType">
+
    <xs:element name = "Quantity" type = "c:PositiveDecimalType" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
+
    <xs:annotation>
       <xs:documentation>Сырье использованное для производства продукции</xs:documentation>
+
       <xs:documentation>Количество</xs:documentation>
    </xs:annotation>
+
    </xs:annotation>
     <xs:all>
+
     </xs:element>
       <xs:element name="IdentityRes" type="c:IdentityType" minOccurs="1" maxOccurs="1">
+
        
        <xs:annotation>
+
    <xs:element name = "alcPercent" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
          <xs:documentation>Идентификатор в списке использованных ресурсов</xs:documentation>
+
    <xs:annotation>
        </xs:annotation>
+
      <xs:documentation>Содержание этилового спирта, %</xs:documentation>
      </xs:element>
+
    </xs:annotation>
      <xs:element name="Product" type="pref:ProductInfo_v2" minOccurs="1" maxOccurs="1">
+
    </xs:element>
        <xs:annotation>
+
 
          <xs:documentation>Используемая при производстве продукция</xs:documentation>
+
    <xs:element name = "alcPercentMin" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
        </xs:annotation>
+
    <xs:annotation>
      </xs:element>
+
      <xs:documentation>Минимальное содержание этилового спирта, %</xs:documentation>
      <xs:element name="RegForm2" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
    </xs:annotation>
        <xs:annotation>
+
    </xs:element>
          <xs:documentation>Регистрационный номер справки 2 используемой продукции</xs:documentation>
+
 
        </xs:annotation>
+
    <xs:element name = "alcPercentMax" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
      </xs:element>
+
    <xs:annotation>
       <xs:element name="Quantity" type="c:PositiveDecimalType" minOccurs="1" maxOccurs="1">
+
      <xs:documentation>Максимальное содержание этилового спирта, %</xs:documentation>
        <xs:annotation>
+
    </xs:annotation>
          <xs:documentation>Количество</xs:documentation>
+
    </xs:element>
        </xs:annotation>
+
 
       </xs:element>
+
    <xs:element name = "Party" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
     </xs:all>
+
    <xs:annotation>
 +
       <xs:documentation>Номер партии</xs:documentation>
 +
    </xs:annotation>
 +
    </xs:element>
 +
 
 +
    <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "1" maxOccurs = "1">
 +
    <xs:annotation>
 +
      <xs:documentation>Идентификатор позиции внутри отчета о производстве</xs:documentation>
 +
    </xs:annotation>
 +
    </xs:element>
 +
 
 +
    <xs:element name = "Comment1" minOccurs = "0" maxOccurs = "1">
 +
    <xs:annotation>
 +
       <xs:documentation>Коментарий №1 к позиции по производстве</xs:documentation>
 +
    </xs:annotation>
 +
    <xs:simpleType>
 +
      <xs:restriction base = "xs:string">
 +
      <xs:maxLength value = "200"/>
 +
      </xs:restriction>
 +
    </xs:simpleType>
 +
    </xs:element>
 +
 
 +
     <xs:element name = "Comment2" minOccurs = "0" maxOccurs = "1">
 +
    <xs:annotation>
 +
      <xs:documentation>Коментарий №2 к позиции по производстве</xs:documentation>
 +
    </xs:annotation>
 +
    <xs:simpleType>
 +
      <xs:restriction base = "xs:string">
 +
      <xs:maxLength value = "200"/>
 +
      </xs:restriction>
 +
    </xs:simpleType>
 +
    </xs:element>
 +
 
 +
    <xs:element name = "Comment3" minOccurs = "0" maxOccurs = "1">
 +
    <xs:annotation>
 +
      <xs:documentation>Коментарий №3 к позиции по производстве</xs:documentation>
 +
    </xs:annotation>
 +
    <xs:simpleType>
 +
      <xs:restriction base = "xs:string">
 +
      <xs:maxLength value = "200"/>
 +
      </xs:restriction>
 +
    </xs:simpleType>
 +
    </xs:element>
 +
 
 +
    <xs:element name = "MarkInfo" type = "pref:MarkInfoType" nillable = "false" minOccurs = "0" maxOccurs = "1">
 +
    <xs:annotation>
 +
      <xs:documentation>Нанесённые диапазоны марок</xs:documentation>
 +
    </xs:annotation>
 +
    </xs:element>
 +
 
 +
  </xs:all>
 
   </xs:complexType>
 
   </xs:complexType>
  
 +
  <xs:simpleType name = "OperType">
 +
  <xs:annotation>
 +
    <xs:documentation>Типы операций</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:restriction base = "xs:string">
 +
    <xs:enumeration value = "OperProduction"/>
 +
    <xs:enumeration value = "OperConversion"/>
 +
    <xs:enumeration value = "OperMaterials"/>
 +
  </xs:restriction>
 +
  </xs:simpleType>
  
</xs:schema>
+
  <xs:complexType name = "UsedResourceType">
 +
  <xs:annotation>
 +
    <xs:documentation>Сырье использованное для производства продукции</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
 
 +
    <xs:element name = "IdentityRes" type = "c:IdentityType" minOccurs = "1" maxOccurs = "1">
 +
    <xs:annotation>
 +
      <xs:documentation>Идентификатор в списке использованных ресурсов</xs:documentation>
 +
    </xs:annotation>
 +
    </xs:element>
 +
 
 +
    <xs:element name = "Product" type = "pref:ProductInfo_v2" minOccurs = "1" maxOccurs = "1">
 +
    <xs:annotation>
 +
      <xs:documentation>Используемая при производстве продукция</xs:documentation>
 +
    </xs:annotation>
 +
    </xs:element>
 +
 
 +
    <xs:element name = "RegForm2" type = "c:NoEmptyString50" minOccurs = "0" maxOccurs = "1">
 +
    <xs:annotation>
 +
      <xs:documentation>Регистрационный номер справки 2 используемой продукции</xs:documentation>
 +
    </xs:annotation>
 +
    </xs:element>
 +
 
 +
    <xs:element name = "Quantity" type = "c:PositiveDecimalType" minOccurs = "1" maxOccurs = "1">
 +
    <xs:annotation>
 +
      <xs:documentation>Количество</xs:documentation>
 +
    </xs:annotation>
 +
    </xs:element>
 +
 
 +
  </xs:all>
 +
  </xs:complexType>
 +
</xs:schema>
 +
= Смотрите также =
 +
[[Документы и их типы для отправки ( версия 4 )]]

Текущая версия на 15:54, 19 апреля 2021

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

<xs:schema version = "1.0"
 xmlns:ns          = "http://fsrar.ru/WEGAIS/RepProducedProduct"
 targetNamespace   = "http://fsrar.ru/WEGAIS/RepProducedProduct"
 xmlns:xs           = "http://www.w3.org/2001/XMLSchema"
 elementFormDefault  = "qualified"
 attributeFormDefault = "unqualified"
 xmlns:c              = "http://fsrar.ru/WEGAIS/Common"
 xmlns:ce             = "http://fsrar.ru/WEGAIS/CommonEnum"
 xmlns:oref           = "http://fsrar.ru/WEGAIS/ClientRef_v2"
 xmlns:pref           = "http://fsrar.ru/WEGAIS/ProductRef_v2">
 <xs:import namespace = "http://fsrar.ru/WEGAIS/Common"        schemaLocation = "EGCommon.xsd"/>
 <xs:import namespace = "http://fsrar.ru/WEGAIS/CommonEnum"    schemaLocation = "EGCommonEnum.xsd"/>
 <xs:import namespace = "http://fsrar.ru/WEGAIS/ClientRef_v2"  schemaLocation = "ClientRef_v2.xsd"/>
 <xs:import namespace = "http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/>
 <xs:complexType name = "RepProducedType">
  <xs:annotation>
   <xs:documentation>Отчет о производстве продукции</xs:documentation>
  </xs:annotation>
  <xs:sequence>
   <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Идентификатор отчета ( клиентский, к заполнению необязательный )</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "Header">
    <xs:complexType>
     <xs:all>
      <xs:element name = "Type" type = "ns:OperType" default = "OperProduction" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>
         Операция:
         OperProduction - производство;
         OperConversion - переработка;
         OperMaterials  - производство сырья для собственного использования;
        </xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "NUMBER" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Номер документа</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "Date" type = "c:DateNoTime" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Дата составления</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "ProducedDate" type = "c:DateNoTime" nillable = "false" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Дата производства</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "Producer" type = "oref:OrgInfoRus_v2" minOccurs = "1" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Производитель</xs:documentation>
       </xs:annotation>
      </xs:element>
      <xs:element name = "Note" minOccurs = "0" maxOccurs = "1">
       <xs:annotation>
        <xs:documentation>Примечание к документу о производстве</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
        <xs:restriction base = "xs:string">
         <xs:maxLength value = "200"/>
        </xs:restriction>
       </xs:simpleType>
      </xs:element>
     </xs:all>
    </xs:complexType>
   </xs:element>
   <xs:element name = "Content">
    <xs:complexType>
     <xs:sequence>
      <xs:element name = "Position" type = "ns:PositionType" minOccurs = "1" maxOccurs = "unbounded">
       <xs:annotation>
        <xs:documentation>Содержимое отчета о производстве должно содержать 1 и более позиций</xs:documentation>
       </xs:annotation>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
    <xs:unique name = "PosUn">
     <xs:selector xpath = "ns:Position"/>
     <xs:field xpath = "ns:Identity"/>
    </xs:unique>
   </xs:element>
     
   <xs:element name = "ContentResource" minOccurs = "0">
    <xs:complexType>
     <xs:sequence>
      <xs:element name = "Resource" type = "ns:UsedResourceType" minOccurs = "1" maxOccurs = "unbounded">
       <xs:annotation>
        <xs:documentation>Использованное сырье</xs:documentation>
       </xs:annotation>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
    <xs:unique name = "PosUnRes">
     <xs:selector xpath = "ns:Resource"/>
     <xs:field xpath = "ns:IdentityRes"/>
    </xs:unique>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name = "PositionType">
  <xs:annotation>
   <xs:documentation>Позиция</xs:documentation>
  </xs:annotation>
  <xs:all>
   <xs:element name = "ProductCode" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Регистрационный код произведенной продукции</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "Quantity" type = "c:PositiveDecimalType" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Количество</xs:documentation>
    </xs:annotation>
   </xs:element>
     
   <xs:element name = "alcPercent" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Содержание этилового спирта, %</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "alcPercentMin" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Минимальное содержание этилового спирта, %</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "alcPercentMax" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Максимальное содержание этилового спирта, %</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "Party" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Номер партии</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Идентификатор позиции внутри отчета о производстве</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "Comment1" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Коментарий №1 к позиции по производстве</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
     <xs:restriction base = "xs:string">
      <xs:maxLength value = "200"/>
     </xs:restriction>
    </xs:simpleType>
   </xs:element>
   <xs:element name = "Comment2" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Коментарий №2 к позиции по производстве</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
     <xs:restriction base = "xs:string">
      <xs:maxLength value = "200"/>
     </xs:restriction>
    </xs:simpleType>
   </xs:element>
   <xs:element name = "Comment3" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Коментарий №3 к позиции по производстве</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
     <xs:restriction base = "xs:string">
      <xs:maxLength value = "200"/>
     </xs:restriction>
    </xs:simpleType>
   </xs:element>
   <xs:element name = "MarkInfo" type = "pref:MarkInfoType" nillable = "false" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Нанесённые диапазоны марок</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:all>
 </xs:complexType>
 <xs:simpleType name = "OperType">
  <xs:annotation>
   <xs:documentation>Типы операций</xs:documentation>
  </xs:annotation>
  <xs:restriction base = "xs:string">
   <xs:enumeration value = "OperProduction"/>
   <xs:enumeration value = "OperConversion"/>
   <xs:enumeration value = "OperMaterials"/>
  </xs:restriction>
 </xs:simpleType>
 <xs:complexType name = "UsedResourceType">
  <xs:annotation>
   <xs:documentation>Сырье использованное для производства продукции</xs:documentation>
  </xs:annotation>
  <xs:all>
   <xs:element name = "IdentityRes" type = "c:IdentityType" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Идентификатор в списке использованных ресурсов</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "Product" type = "pref:ProductInfo_v2" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Используемая при производстве продукция</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "RegForm2" type = "c:NoEmptyString50" minOccurs = "0" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Регистрационный номер справки 2 используемой продукции</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "Quantity" type = "c:PositiveDecimalType" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Количество</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:all>
 </xs:complexType>
</xs:schema>

Смотрите также

Документы и их типы для отправки ( версия 4 )