ActInventorySingle.xml

Материал из Фабиус wiki
Перейти к: навигация, поиск
<?xml version="1.0" encoding="utf-8"?>
<xs:schema version="1.0"
          xmlns:ns="http://fsrar.ru/WEGAIS/ActInventorySingle"
          targetNamespace="http://fsrar.ru/WEGAIS/ActInventorySingle"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          elementFormDefault="qualified"
          attributeFormDefault="unqualified"
          xmlns:c="http://fsrar.ru/WEGAIS/Common"
          xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef"
          xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef"
          xmlns:iab="http://fsrar.ru/WEGAIS/ActInventoryABInfo">
 <xs:import namespace="http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
 <xs:import namespace="http://fsrar.ru/WEGAIS/ClientRef" schemaLocation="ClientRef.xsd"/>
 <xs:import namespace="http://fsrar.ru/WEGAIS/ProductRef" schemaLocation="ProductRef.xsd"/>
 <xs:import namespace="http://fsrar.ru/WEGAIS/ActInventoryABInfo" schemaLocation="ActInventoryABInfo.xsd"/>
 <xs:complexType name="ActInventoryType">
   <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="Number" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1">
             <xs:annotation>
               <xs:documentation>Номер документа</xs:documentation>
             </xs:annotation>
           </xs:element>
           <xs:element name="DivisionName"  minOccurs="0" maxOccurs="1">
             <xs:annotation>
               <xs:documentation>Подразделение</xs:documentation>
             </xs:annotation>
             <xs:simpleType>
               <xs:restriction base="c:NoEmptyString">
                 <xs:maxLength value="255"/>
               </xs:restriction>
             </xs:simpleType>
           </xs:element>
           <xs:element name="InventoryBasis" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1">
             <xs:annotation>
               <xs:documentation>Основание проведения инвентаризации</xs:documentation>
             </xs:annotation>
           </xs:element>
           <xs:element name="InventoryBasisNumber" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1">
             <xs:annotation>
               <xs:documentation>Номер основания проведения инвентаризации</xs:documentation>
             </xs:annotation>
           </xs:element>
           <xs:element name="InventoryBasisDate" type="c:DateNoTime" minOccurs="1" maxOccurs="1">
             <xs:annotation>
               <xs:documentation>Дата основания проведения инвентаризации</xs:documentation>
             </xs:annotation>
           </xs:element>
           <xs:element name="InventoryDateBegin" type="c:DateNoTime" minOccurs="1" maxOccurs="1">
             <xs:annotation>
               <xs:documentation>Дата начала инвентеризации</xs:documentation>
             </xs:annotation>
           </xs:element>
           <xs:element name="InventoryDateEnd" type="c:DateNoTime" 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="500"/>
               </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:ActInventoryPositionType" 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:sequence>
 </xs:complexType>
 <xs:complexType name="ActInventoryPositionType">
   <xs:annotation>
     <xs:documentation>Позиция</xs:documentation>
   </xs:annotation>
   <xs:all>
     <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="Product" type="pref:ProductInfo" 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="InformA" type="iab:InformARegType" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Справка А</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="InformB">
       <xs:complexType>
         <xs:sequence>
           <xs:element name="InformBItem" type="iab:InformBTypeRegItem" nillable="false" minOccurs="1" maxOccurs="unbounded">
             <xs:annotation>
               <xs:documentation>Справка Б</xs:documentation>
             </xs:annotation>
           </xs:element>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
   </xs:all>
 </xs:complexType>
</xs:schema>