TransferToShop.xsd — различия между версиями
Материал из Фабиус wiki
Hisava (обсуждение | вклад) м (Содержимое страницы заменено на «= Смотрите также = Документы и их типы для отправки ( версия 4 )») |
Hisava (обсуждение | вклад) м |
||
| (не показана одна промежуточная версия этого же участника) | |||
| Строка 1: | Строка 1: | ||
| + | <?xml version = "1.0" encoding = "utf-8"?> | ||
| + | <xs:schema version = "1.0" | ||
| + | xmlns:ns = "http://fsrar.ru/WEGAIS/TransferToShop" | ||
| + | targetNamespace = "http://fsrar.ru/WEGAIS/TransferToShop" | ||
| + | xmlns:xs = "http://www.w3.org/2001/XMLSchema" | ||
| + | elementFormDefault = "qualified" | ||
| + | attributeFormDefault = "unqualified" | ||
| + | xmlns:c = "http://fsrar.ru/WEGAIS/Common" | ||
| + | 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/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/> | ||
| + | |||
| + | <xs:complexType name = "TransferToShopType"> | ||
| + | <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 = "TransferNumber" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1"> | ||
| + | <xs:annotation> | ||
| + | <xs:documentation>Номер документа</xs:documentation> | ||
| + | </xs:annotation> | ||
| + | </xs:element> | ||
| + | |||
| + | <xs:element name = "TransferDate" 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:TransferToShopPositionType" 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 = "TransferToShopPositionType"> | ||
| + | <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 = "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 = "InformF2" type = "pref:InformF2TypeItem" nillable = "false" minOccurs = "1" maxOccurs = "1"> | ||
| + | <xs:annotation> | ||
| + | <xs:documentation>Информация о форме зачисления продукции на склад (последняя)</xs:documentation> | ||
| + | </xs:annotation> | ||
| + | </xs:element> | ||
| + | |||
| + | </xs:all> | ||
| + | </xs:complexType> | ||
| + | </xs:schema> | ||
| + | |||
= Смотрите также = | = Смотрите также = | ||
[[Документы и их типы для отправки ( версия 4 )]] | [[Документы и их типы для отправки ( версия 4 )]] | ||
Текущая версия на 09:26, 26 апреля 2021
<?xml version = "1.0" encoding = "utf-8"?>
<xs:schema version = "1.0" xmlns:ns = "http://fsrar.ru/WEGAIS/TransferToShop" targetNamespace = "http://fsrar.ru/WEGAIS/TransferToShop" xmlns:xs = "http://www.w3.org/2001/XMLSchema" elementFormDefault = "qualified" attributeFormDefault = "unqualified" xmlns:c = "http://fsrar.ru/WEGAIS/Common" 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/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/>
<xs:complexType name = "TransferToShopType"> <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 = "TransferNumber" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1">
<xs:annotation>
<xs:documentation>Номер документа</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name = "TransferDate" 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:TransferToShopPositionType" 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 = "TransferToShopPositionType"> <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 = "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 = "InformF2" type = "pref:InformF2TypeItem" nillable = "false" minOccurs = "1" maxOccurs = "1">
<xs:annotation>
<xs:documentation>Информация о форме зачисления продукции на склад (последняя)</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all> </xs:complexType> </xs:schema>