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:/…») |
Hisava (обсуждение | вклад) м |
||
| Строка 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/RequestAddProducts" | + | xmlns:ns = "http://fsrar.ru/WEGAIS/RequestAddProducts" |
| − | targetNamespace="http://fsrar.ru/WEGAIS/RequestAddProducts" | + | targetNamespace = "http://fsrar.ru/WEGAIS/RequestAddProducts" |
| − | xmlns:c="http://fsrar.ru/WEGAIS/Common" | + | xmlns:c = "http://fsrar.ru/WEGAIS/Common" |
| − | xmlns:cn="http://fsrar.ru/WEGAIS/CommonEnum" | + | xmlns:cn = "http://fsrar.ru/WEGAIS/CommonEnum" |
| − | xmlns:xs="http://www.w3.org/2001/XMLSchema" | + | xmlns:xs = "http://www.w3.org/2001/XMLSchema" |
| − | xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef_v2" | + | xmlns:pref = "http://fsrar.ru/WEGAIS/ProductRef_v2" |
| − | elementFormDefault="qualified" | + | elementFormDefault = "qualified" |
| − | attributeFormDefault="unqualified" | + | attributeFormDefault = "unqualified" |
> | > | ||
| − | <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/ProductRef_v2" schemaLocation="ProductRef_v2.xsd"/> | + | <xs:import namespace = "http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/> |
| − | <xs:complexType name="RequestAddProducts"> | + | <xs:complexType name = "RequestAddProducts"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Запрос на добавление в справочник продукции</xs:documentation> | <xs:documentation>Запрос на добавление в справочник продукции</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
<xs:all> | <xs:all> | ||
| − | <xs:element name="ClientId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "ClientId" type = "c:NoEmptyString50" 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="RequestNumber" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "RequestNumber" type = "c:NoEmptyString50" 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="RequestDate" type="xs:date" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "RequestDate" type = "xs:date" 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="Content" type="ns:RequestAddSSPPositionType" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Content" type = "ns:RequestAddSSPPositionType" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Содержимое запроса должно содержать 1 позицию</xs:documentation> | <xs:documentation>Содержимое запроса должно содержать 1 позицию</xs:documentation> | ||
| Строка 43: | Строка 43: | ||
| − | <xs:complexType name="RequestAddSSPPositionType"> | + | <xs:complexType name = "RequestAddSSPPositionType"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Позиция</xs:documentation> | <xs:documentation>Позиция</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
<xs:all> | <xs:all> | ||
| − | <xs:element name="Producer" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Producer" type = "c:NoEmptyString50" 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 type="pref:ProductType" name="Type" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element type = "pref:ProductType" name = "Type" 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 type="cn:Digits3" name="VidCode" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element type = "cn:Digits3" name = "VidCode" 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 type="cn:Digits3" name="CountryCode" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element type = "cn:Digits3" name = "CountryCode" 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="FullName" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "FullName" nillable = "false" minOccurs = "1" 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="255"/> | + | <xs:maxLength value = "255"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
| − | <xs:element name="ShortName" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "ShortName" nillable = "false" minOccurs = "1" 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="64"/> | + | <xs:maxLength value = "64"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
| − | <xs:element name="Unpacked_Flag" type="ns:UnpackedType" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Unpacked_Flag" type = "ns:UnpackedType" nillable = "false" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Признак нефасованной продукции (0 - фасованная, 1 - нефасованная)</xs:documentation> | <xs:documentation>Признак нефасованной продукции (0 - фасованная, 1 - нефасованная)</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
| − | <xs:element name="Capacity" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "Capacity" type = "c:PositiveDecimalType" 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="PERCENT_ALC" type="c:PositiveDecimalType" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "PERCENT_ALC" type = "c:PositiveDecimalType" 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="PERCENT_ALC_min" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "PERCENT_ALC_min" type = "c:PositiveDecimalType" 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="PERCENT_ALC_max" type="c:PositiveDecimalType" nillable="false" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "PERCENT_ALC_max" type = "c:PositiveDecimalType" 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="FRAPID" type="c:NoEmptyString20" nillable="false" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "FRAPID" type = "c:NoEmptyString20" 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 ="Brand" type="c:BrandString" nillable="false" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "Brand" type = "c:BrandString" 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="PackageType" type="c:packageTypeString" nillable="false" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "PackageType" type = "c:packageTypeString" nillable = "false" minOccurs = "0" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Код типа упаковки</xs:documentation> | <xs:documentation>Код типа упаковки</xs:documentation> | ||
| Строка 131: | Строка 131: | ||
</xs:complexType> | </xs:complexType> | ||
| − | <xs:simpleType name="UnpackedType"> | + | <xs:simpleType name = "UnpackedType"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Типы продукции: упакованная, неупакованная</xs:documentation> | <xs:documentation>Типы продукции: упакованная, неупакованная</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
| − | <xs:restriction base="xs:integer"> | + | <xs:restriction base = "xs:integer"> |
| − | <xs:enumeration value="0"/> | + | <xs:enumeration value = "0"/> |
| − | <xs:enumeration value="1"/> | + | <xs:enumeration value = "1"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
| − | </xs:schema> | + | </xs:schema> |
| + | |||
| + | = Смотрите также = | ||
| + | [[Документы и их типы для отправки ( версия 4 )]] | ||
Версия 11:33, 27 апреля 2021
<?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>