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

Материал из Фабиус wiki
Перейти к: навигация, поиск
м
м
 
(не показаны 2 промежуточные версии этого же участника)
Строка 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_v3"
+
   xmlns:ns         = "http://fsrar.ru/WEGAIS/RepProducedProduct_v3"
   targetNamespace   = "http://fsrar.ru/WEGAIS/RepProducedProduct_v3"
+
   targetNamespace   = "http://fsrar.ru/WEGAIS/RepProducedProduct_v3"
   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:c             = "http://fsrar.ru/WEGAIS/Common"
   xmlns:ce           = "http://fsrar.ru/WEGAIS/CommonEnum"
+
   xmlns:ce             = "http://fsrar.ru/WEGAIS/CommonEnum"
   xmlns:cee         = "http://fsrar.ru/WEGAIS/CommonV3"
+
   xmlns:cee           = "http://fsrar.ru/WEGAIS/CommonV3"
   xmlns:oref         = "http://fsrar.ru/WEGAIS/ClientRef_v2"
+
   xmlns:oref           = "http://fsrar.ru/WEGAIS/ClientRef_v2"
   xmlns:pref         = "http://fsrar.ru/WEGAIS/ProductRef_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/Common"       schemaLocation = "EGCommon.xsd"/>
   <xs:import namespace = "http://fsrar.ru/WEGAIS/CommonEnum" schemaLocation="EGCommonEnum.xsd"/>
+
   <xs:import namespace = "http://fsrar.ru/WEGAIS/CommonEnum"   schemaLocation = "EGCommonEnum.xsd"/>
   <xs:import namespace = "http://fsrar.ru/WEGAIS/CommonV3" schemaLocation="EGCommonV3.xsd"/>
+
   <xs:import namespace = "http://fsrar.ru/WEGAIS/CommonV3"     schemaLocation = "EGCommonV3.xsd"/>
   <xs:import namespace = "http://fsrar.ru/WEGAIS/ClientRef_v2" schemaLocation="ClientRef_v2.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:import namespace = "http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/>
  
   <xs:complexType name="RepProducedType_v3">
+
   <xs:complexType name = "RepProducedType_v3">
 
   <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: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="Header">
+
     <xs:element name = "Header">
 
     <xs:complexType>
 
     <xs:complexType>
 
       <xs:all>
 
       <xs:all>
       <xs:element name="Type" type="ns:OperType" default="OperProduction" minOccurs="1" maxOccurs="1">
+
 
 +
       <xs:element name = "Type" type = "ns:OperType" default = "OperProduction" minOccurs = "1" maxOccurs = "1">
 
         <xs:annotation>
 
         <xs:annotation>
 
         <xs:documentation>Операция: OperProduction - производство; OperConversion - переработка; OperMaterials - производство сырья для собственного использования;</xs:documentation>
 
         <xs:documentation>Операция: OperProduction - производство; OperConversion - переработка; OperMaterials - производство сырья для собственного использования;</xs:documentation>
Строка 38: Строка 39:
 
       </xs:element>
 
       </xs:element>
  
       <xs:element name="NUMBER" type="c:NoEmptyString50" 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>
Строка 44: Строка 45:
 
       </xs:element>
 
       </xs:element>
  
       <xs:element name="Date" type="c:DateNoTime" minOccurs="1" 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>
Строка 50: Строка 51:
 
       </xs:element>
 
       </xs:element>
  
       <xs:element name="ProducedDate" type="c:DateNoTime" nillable="false" minOccurs="1" 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>
Строка 56: Строка 57:
 
       </xs:element>
 
       </xs:element>
  
       <xs:element name="Producer" type="oref:OrgInfoRus_v2" 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>
Строка 62: Строка 63:
 
       </xs:element>
 
       </xs:element>
  
       <xs:element name="Note" minOccurs="0" 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: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:all>
 
       </xs:all>
 
     </xs:complexType>
 
     </xs:complexType>
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="Content">
+
     <xs:element name = "Content">
 
     <xs:complexType>
 
     <xs:complexType>
 
       <xs:sequence>
 
       <xs:sequence>
       <xs:element name="Position" type="ns:PositionType" minOccurs="1" maxOccurs="unbounded">
+
       <xs:element name = "Position" type = "ns:PositionType" minOccurs = "1" maxOccurs = "unbounded">
 
         <xs:annotation>
 
         <xs:annotation>
 
         <xs:documentation>Содержимое отчета о производстве должно содержать 1 и более позиций</xs:documentation>
 
         <xs:documentation>Содержимое отчета о производстве должно содержать 1 и более позиций</xs:documentation>
 
         </xs:annotation>
 
         </xs:annotation>
 
       </xs:element>
 
       </xs:element>
 +
 
       </xs:sequence>
 
       </xs:sequence>
 
     </xs:complexType>
 
     </xs:complexType>
  
     <xs:unique name="PosUn">
+
     <xs:unique name = "PosUn">
       <xs:selector xpath="ns:Position"/>
+
       <xs:selector xpath = "ns:Position"/>
       <xs:field xpath="ns:Identity"/>
+
       <xs:field xpath = "ns:Identity"/>
    </xs:unique>
+
    <xs:unique name="MarkUn">
+
      <xs:selector xpath="ns:Position/ns:MarkInfo/cee:amc"/>
+
      <xs:field xpath="."/>
+
 
     </xs:unique>
 
     </xs:unique>
 
     </xs:element>
 
     </xs:element>
 
        
 
        
     <xs:element name="ContentResource" minOccurs="0">
+
     <xs:element name = "ContentResource" minOccurs = "0">
 
     <xs:complexType>
 
     <xs:complexType>
 
       <xs:sequence>
 
       <xs:sequence>
       <xs:element name="Resource" type="ns:UsedResourceType" minOccurs="1" maxOccurs="unbounded">
+
 
 +
       <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:sequence>
 
     </xs:complexType>
 
     </xs:complexType>
  
     <xs:unique name="PosUnRes">
+
     <xs:unique name = "PosUnRes">
       <xs:selector xpath="ns:Resource"/>
+
       <xs:selector xpath = "ns:Resource"/>
       <xs:field xpath="ns:IdentityRes"/>
+
       <xs:field xpath = "ns:IdentityRes"/>
 
     </xs:unique>
 
     </xs:unique>
 
     </xs:element>
 
     </xs:element>
 +
 
   </xs:sequence>
 
   </xs:sequence>
 
   </xs:complexType>
 
   </xs:complexType>
  
   <xs:complexType name="PositionType">
+
   <xs:complexType name = "PositionType">
 
   <xs:annotation>
 
   <xs:annotation>
 
     <xs:documentation>Позиция</xs:documentation>
 
     <xs:documentation>Позиция</xs:documentation>
 
   </xs:annotation>
 
   </xs:annotation>
 
 
   <xs:all>
 
   <xs:all>
     <xs:element name="ProductCode" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1">
+
     <xs:element name = "ProductCode" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Регистрационный код произведенной продукции</xs:documentation>
 
       <xs:documentation>Регистрационный код произведенной продукции</xs:documentation>
Строка 129: Строка 129:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="Quantity" type="c:PositiveDecimalType" minOccurs="1" maxOccurs="1">
+
     <xs:element name = "Quantity" type = "c:PositiveDecimalType" minOccurs = "1" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Количество</xs:documentation>
 
       <xs:documentation>Количество</xs:documentation>
Строка 135: Строка 135:
 
     </xs:element>
 
     </xs:element>
 
        
 
        
     <xs:element name="alcPercent" type="c:AlcPercentType" nillable="false" minOccurs="0" maxOccurs="1">
+
     <xs:element name = "alcPercent" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Содержание этилового спирта, %</xs:documentation>
 
       <xs:documentation>Содержание этилового спирта, %</xs:documentation>
Строка 141: Строка 141:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="alcPercentMin" type="c:AlcPercentType" nillable="false" minOccurs="0" maxOccurs="1">
+
     <xs:element name = "alcPercentMin" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Минимальное содержание этилового спирта, %</xs:documentation>
 
       <xs:documentation>Минимальное содержание этилового спирта, %</xs:documentation>
Строка 147: Строка 147:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="alcPercentMax" type="c:AlcPercentType" nillable="false" minOccurs="0" maxOccurs="1">
+
     <xs:element name = "alcPercentMax" type = "c:AlcPercentType" nillable = "false" minOccurs = "0" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Максимальное содержание этилового спирта, %</xs:documentation>
 
       <xs:documentation>Максимальное содержание этилового спирта, %</xs:documentation>
Строка 153: Строка 153:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="Party" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1">
+
     <xs:element name = "Party" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Номер партии</xs:documentation>
 
       <xs:documentation>Номер партии</xs:documentation>
Строка 159: Строка 159:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="Identity" type="c:IdentityType" nillable="false" minOccurs="1" maxOccurs="1">
+
     <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "1" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Идентификатор позиции внутри отчета о производстве</xs:documentation>
 
       <xs:documentation>Идентификатор позиции внутри отчета о производстве</xs:documentation>
Строка 165: Строка 165:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="Comment1" minOccurs="0" maxOccurs="1">
+
     <xs:element name = "Comment1" minOccurs = "0" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
       <xs:documentation>Комментарий №1 к позиции по производстве</xs:documentation>
+
       <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:element name = "Comment2" minOccurs = "0" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
       <xs:documentation>Комментарий №2 к позиции по производстве</xs:documentation>
+
       <xs:documentation>Коментарий №2 к позиции по производстве</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="Comment3" minOccurs="0" maxOccurs="1">
+
     <xs:element name = "Comment3" minOccurs = "0" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
       <xs:documentation>Комментарий №3 к позиции по производстве</xs:documentation>
+
       <xs:documentation>Коментарий №3 к позиции по производстве</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="MarkInfo" type="cee:AMCforDocType" nillable="false" minOccurs="0" maxOccurs="1">
+
     <xs:element name = "MarkInfo" type = "cee:AMCforDocType" 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:all>
 
   </xs:all>
 
   </xs:complexType>
 
   </xs:complexType>
  
   <xs:simpleType name="OperType">
+
   <xs:simpleType name = "OperType">
 
   <xs:annotation>
 
   <xs:annotation>
 
     <xs:documentation>Типы операций</xs:documentation>
 
     <xs:documentation>Типы операций</xs:documentation>
 
   </xs:annotation>
 
   </xs:annotation>
   <xs:restriction base="xs:string">
+
   <xs:restriction base = "xs:string">
     <xs:enumeration value="OperProduction"/>
+
     <xs:enumeration value = "OperProduction"/>
     <xs:enumeration value="OperConversion"/>
+
     <xs:enumeration value = "OperConversion"/>
     <xs:enumeration value="OperMaterials"/>
+
     <xs:enumeration value = "OperMaterials"/>
 
   </xs:restriction>
 
   </xs:restriction>
 
   </xs:simpleType>
 
   </xs:simpleType>
  
   <xs:complexType name="UsedResourceType">
+
   <xs:complexType name = "UsedResourceType">
 
   <xs:annotation>
 
   <xs:annotation>
 
     <xs:documentation>Сырье использованное для производства продукции</xs:documentation>
 
     <xs:documentation>Сырье использованное для производства продукции</xs:documentation>
 
   </xs:annotation>
 
   </xs:annotation>
 
 
   <xs:all>
 
   <xs:all>
     <xs:element name="IdentityRes" type="c:IdentityType" minOccurs="1" maxOccurs="1">
+
 
 +
     <xs:element name = "IdentityRes" type = "c:IdentityType" minOccurs = "1" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Идентификатор в списке использованных ресурсов</xs:documentation>
 
       <xs:documentation>Идентификатор в списке использованных ресурсов</xs:documentation>
Строка 229: Строка 230:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="Product" type="pref:ProductInfo_v2" minOccurs="1" maxOccurs="1">
+
     <xs:element name = "Product" type = "pref:ProductInfo_v2" minOccurs = "1" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Используемая при производстве продукция</xs:documentation>
 
       <xs:documentation>Используемая при производстве продукция</xs:documentation>
Строка 235: Строка 236:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="RegForm2" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
     <xs:element name = "RegForm2" type = "c:NoEmptyString50" minOccurs = "0" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
 
       <xs:documentation>Регистрационный номер справки 2 используемой продукции</xs:documentation>
 
       <xs:documentation>Регистрационный номер справки 2 используемой продукции</xs:documentation>
Строка 241: Строка 242:
 
     </xs:element>
 
     </xs:element>
  
     <xs:element name="Quantity" type="c:PositiveDecimalType" minOccurs="1" maxOccurs="1">
+
     <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:element>
 
     </xs:element>
 +
 
   </xs:all>
 
   </xs:all>
 
   </xs:complexType>
 
   </xs:complexType>
 
  </xs:schema>
 
  </xs:schema>
 +
= Смотрите также =
 +
[[Документы и их типы для отправки ( версия 4 )]]

Текущая версия на 14:30, 27 апреля 2021

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

<xs:schema version = "1.0"
 xmlns:ns          = "http://fsrar.ru/WEGAIS/RepProducedProduct_v3"
 targetNamespace   = "http://fsrar.ru/WEGAIS/RepProducedProduct_v3"
 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:cee            = "http://fsrar.ru/WEGAIS/CommonV3"
 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/CommonV3"      schemaLocation = "EGCommonV3.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_v3">
  <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 = "cee:AMCforDocType" 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 )