RequestAddProducts.xsd — различия между версиями
Материал из Фабиус wiki
Hisava (обсуждение | вклад) (Новая страница: «<?xml version="1.0" encoding="utf-8"?> <xs:schema version="1.0" xmlns:ns="http://fsrar.ru/WEGAIS/RequestAddProducts" targetNamespace="http:/…») |
(нет различий)
|
Версия 12:04, 1 марта 2019
<?xml version="1.0" encoding="utf-8"?> <xs:schema version="1.0"
xmlns:ns="http://fsrar.ru/WEGAIS/RequestAddProducts" targetNamespace="http://fsrar.ru/WEGAIS/RequestAddProducts" xmlns:c="http://fsrar.ru/WEGAIS/Common" xmlns:cn="http://fsrar.ru/WEGAIS/CommonEnum" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef_v2" elementFormDefault="qualified" attributeFormDefault="unqualified"
>
<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/ProductRef_v2" schemaLocation="ProductRef_v2.xsd"/>
<xs:complexType name="RequestAddProducts">
<xs:annotation>
<xs:documentation>Запрос на добавление в справочник продукции</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="ClientId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Код клиента</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RequestNumber" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Номер запроса на добавление в справочник продукции</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RequestDate" type="xs:date" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Дата/время запроса на добавление в справочник продукции</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Content" type="ns:RequestAddSSPPositionType" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Содержимое запроса должно содержать 1 позицию</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="RequestAddSSPPositionType">
<xs:annotation>
<xs:documentation>Позиция</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="Producer" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Регистрационный код производителя продукции</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="pref:ProductType" name="Type" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Тип продукции (АП | ССП | ССНП ) Если не указано, то АП</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="cn:Digits3" name="VidCode" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Код вида продукции</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="cn:Digits3" name="CountryCode" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Код страны присхождения продукции</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FullName" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Наименование продукции полное</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ShortName" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Наименование продукции краткое</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Unpacked_Flag" type="ns:UnpackedType" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Признак нефасованной продукции (0 - фасованная, 1 - нефасованная)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Capacity" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Количество</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PERCENT_ALC" type="c:PositiveDecimalType" nillable="false" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Количество</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PERCENT_ALC_min" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Количество</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PERCENT_ALC_max" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Количество</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FRAPID" type="c:NoEmptyString20" nillable="false" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Регистрационный код продукции по ФРАП</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name ="Brand" type="c:BrandString" nillable="false" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Бренд</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PackageType" type="c:packageTypeString" nillable="false" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Код типа упаковки</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:simpleType name="UnpackedType">
<xs:annotation>
<xs:documentation>Типы продукции: упакованная, неупакованная</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:integer">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>