TTNSingle v2.xsd — различия между версиями
Материал из Фабиус wiki
Hisava (обсуждение | вклад) (Новая страница: «<?xml version="1.0" encoding="utf-8"?> <xs:schema version="1.0" xmlns:ns="http://fsrar.ru/WEGAIS/TTNSingle_v2" targetNamespace="http://fsrar…») |
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/TTNSingle_v2" | + | xmlns:ns = "http://fsrar.ru/WEGAIS/TTNSingle_v2" |
− | targetNamespace="http://fsrar.ru/WEGAIS/TTNSingle_v2" | + | targetNamespace = "http://fsrar.ru/WEGAIS/TTNSingle_v2" |
− | 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: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/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="WayBillType_v2"> | + | <xs:complexType name = "WayBillType_v2"> |
<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:WbType" default="WBInvoiceFromMe" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Type" type = "ns:WbType" default = "WBInvoiceFromMe" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Тип накладной: WBInvoiceFromMe - расход; WBReturnToMe - возврат мне; WBInvoiceToMe - приход; WBReturnFromMe - возврат от меня;</xs:documentation> | <xs:documentation>Тип накладной: WBInvoiceFromMe - расход; WBReturnToMe - возврат мне; WBInvoiceToMe - приход; WBReturnFromMe - возврат от меня;</xs:documentation> | ||
Строка 35: | Строка 35: | ||
</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> | ||
Строка 41: | Строка 41: | ||
</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> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="ShippingDate" type="c:DateNoTime" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "ShippingDate" type = "c:DateNoTime" nillable = "false" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Дата отгрузки продукции</xs:documentation> | <xs:documentation>Дата отгрузки продукции</xs:documentation> | ||
Строка 52: | Строка 52: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Transport" type="ns:TransportType" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "Transport" type = "ns:TransportType" minOccurs = "0" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Транспортный раздел</xs:documentation> | <xs:documentation>Транспортный раздел</xs:documentation> | ||
Строка 58: | Строка 58: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Shipper" type="oref:OrgInfoRus_v2" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Shipper" type = "oref:OrgInfoRus_v2" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Грузоотправитель</xs:documentation> | <xs:documentation>Грузоотправитель</xs:documentation> | ||
Строка 64: | Строка 64: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Consignee" type="oref:OrgInfo_v2" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Consignee" type = "oref:OrgInfo_v2" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Грузополучатель</xs:documentation> | <xs:documentation>Грузополучатель</xs:documentation> | ||
Строка 70: | Строка 70: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Base" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "Base" 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: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:element name="VarField1" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "VarField1" 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="100"/> | + | <xs:maxLength value = "100"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="VarField2" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "VarField2" 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="100"/> | + | <xs:maxLength value = "100"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="VarField3" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "VarField3" 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="100"/> | + | <xs:maxLength value = "100"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
Строка 126: | Строка 126: | ||
</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> | ||
Строка 136: | Строка 136: | ||
</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> | ||
</xs:element> | </xs:element> | ||
Строка 144: | Строка 144: | ||
</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="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> | ||
Строка 155: | Строка 155: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Pack_ID" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "Pack_ID" type = "c:NoEmptyString50" minOccurs = "0" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Идентификатор упаковки</xs:documentation> | <xs:documentation>Идентификатор упаковки</xs:documentation> | ||
Строка 161: | Строка 161: | ||
</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> | ||
Строка 167: | Строка 167: | ||
</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> | ||
Строка 173: | Строка 173: | ||
</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> | ||
Строка 179: | Строка 179: | ||
</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> | ||
Строка 185: | Строка 185: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Price" type="c:NoNegativeDecimalType" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Price" type = "c:NoNegativeDecimalType" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Цена за единицу товара</xs:documentation> | <xs:documentation>Цена за единицу товара</xs:documentation> | ||
Строка 191: | Строка 191: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Party" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "Party" type = "c:NoEmptyString50" minOccurs = "0" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Номер партии</xs:documentation> | <xs:documentation>Номер партии</xs:documentation> | ||
Строка 197: | Строка 197: | ||
</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> | ||
Строка 203: | Строка 203: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="InformF1" type="pref:InformF1Type" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "InformF1" type = "pref:InformF1Type" nillable = "false" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Справка 1</xs:documentation> | <xs:documentation>Справка 1</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="InformF2" type="pref:InformF2Type" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "InformF2" type = "pref:InformF2Type" nillable = "false" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Справка 2</xs:documentation> | <xs:documentation>Справка 2</xs:documentation> | ||
Строка 216: | Строка 216: | ||
</xs:complexType> | </xs:complexType> | ||
− | <xs:simpleType name="WbType"> | + | <xs:simpleType name = "WbType"> |
<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="WBReturnToMe"/> | + | <xs:enumeration value = "WBReturnToMe"/> |
− | <xs:enumeration value="WBInvoiceToMe"/> | + | <xs:enumeration value = "WBInvoiceToMe"/> |
− | <xs:enumeration value="WBReturnFromMe"/> | + | <xs:enumeration value = "WBReturnFromMe"/> |
− | <xs:enumeration value="WBInvoiceFromMe"/> | + | <xs:enumeration value = "WBInvoiceFromMe"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:simpleType name="WbUnitType"> | + | <xs:simpleType name = "WbUnitType"> |
<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="Packed"/> | + | <xs:enumeration value = "Packed"/> |
− | <xs:enumeration value="Unpacked"/> | + | <xs:enumeration value = "Unpacked"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
− | <xs:complexType name="TransportType"> | + | <xs:complexType name = "TransportType"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Транспортный раздел</xs:documentation> | <xs:documentation>Транспортный раздел</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
<xs:all> | <xs:all> | ||
− | <xs:element name="TRAN_TYPE" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_TYPE" 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="50"/> | + | <xs:maxLength value = "50"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_COMPANY" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_COMPANY" 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="255"/> | + | <xs:maxLength value = "255"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_CAR" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_CAR" 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="255"/> | + | <xs:maxLength value = "255"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_TRAILER" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_TRAILER" 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="255"/> | + | <xs:maxLength value = "255"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_CUSTOMER" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_CUSTOMER" 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="255"/> | + | <xs:maxLength value = "255"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_DRIVER" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_DRIVER" 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="255"/> | + | <xs:maxLength value = "255"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_LOADPOINT" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_LOADPOINT" 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="2000"/> | + | <xs:maxLength value = "2000"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_UNLOADPOINT" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_UNLOADPOINT" 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="2000"/> | + | <xs:maxLength value = "2000"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_REDIRECT" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_REDIRECT" 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="2000"/> | + | <xs:maxLength value = "2000"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TRAN_FORWARDER" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "TRAN_FORWARDER" 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="255"/> | + | <xs:maxLength value = "255"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
Строка 346: | Строка 346: | ||
</xs:all> | </xs:all> | ||
</xs:complexType> | </xs:complexType> | ||
− | + | </xs:schema> | |
− | </xs:schema> | + | = Смотрите также = |
+ | [[Документы и их типы для отправки ( версия 4 )]] |
Версия 10:04, 26 апреля 2021
<?xml version = "1.0" encoding = "utf-8"?> <xs:schema version = "1.0"
xmlns:ns = "http://fsrar.ru/WEGAIS/TTNSingle_v2" targetNamespace = "http://fsrar.ru/WEGAIS/TTNSingle_v2" 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_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/ClientRef_v2" schemaLocation = "ClientRef_v2.xsd"/> <xs:import namespace = "http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/>
<xs:complexType name = "WayBillType_v2"> <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:WbType" default = "WBInvoiceFromMe" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Тип накладной: WBInvoiceFromMe - расход; WBReturnToMe - возврат мне; WBInvoiceToMe - приход; WBReturnFromMe - возврат от меня;</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 = "ShippingDate" type = "c:DateNoTime" nillable = "false" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Дата отгрузки продукции</xs:documentation> </xs:annotation> </xs:element>
<xs:element name = "Transport" type = "ns:TransportType" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Транспортный раздел</xs:documentation> </xs:annotation> </xs:element>
<xs:element name = "Shipper" type = "oref:OrgInfoRus_v2" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Грузоотправитель</xs:documentation> </xs:annotation> </xs:element>
<xs:element name = "Consignee" type = "oref:OrgInfo_v2" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Грузополучатель</xs:documentation> </xs:annotation> </xs:element>
<xs:element name = "Base" 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: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:element name = "VarField1" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Дополнительное примечание 1</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base = "xs:string"> <xs:maxLength value = "100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name = "VarField2" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Дополнительное примечание 2</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base = "xs:string"> <xs:maxLength value = "100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name = "VarField3" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Дополнительное примечание 3</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base = "xs:string"> <xs:maxLength value = "100"/> </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:sequence> </xs:complexType>
<xs:complexType name = "PositionType"> <xs:annotation> <xs:documentation>Позиция</xs:documentation> </xs:annotation> <xs:all> <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 = "Pack_ID" type = "c:NoEmptyString50" minOccurs = "0" 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 = "Price" type = "c:NoNegativeDecimalType" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Цена за единицу товара</xs:documentation> </xs:annotation> </xs:element>
<xs:element name = "Party" type = "c:NoEmptyString50" minOccurs = "0" 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 = "InformF1" type = "pref:InformF1Type" nillable = "false" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Справка 1</xs:documentation> </xs:annotation> </xs:element> <xs:element name = "InformF2" type = "pref:InformF2Type" nillable = "false" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Справка 2</xs:documentation> </xs:annotation> </xs:element> </xs:all> </xs:complexType>
<xs:simpleType name = "WbType"> <xs:annotation> <xs:documentation>Типы накладных</xs:documentation> </xs:annotation> <xs:restriction base = "xs:string"> <xs:enumeration value = "WBReturnToMe"/> <xs:enumeration value = "WBInvoiceToMe"/> <xs:enumeration value = "WBReturnFromMe"/> <xs:enumeration value = "WBInvoiceFromMe"/> </xs:restriction> </xs:simpleType> <xs:simpleType name = "WbUnitType"> <xs:annotation> <xs:documentation>Типы продукции</xs:documentation> </xs:annotation> <xs:restriction base = "xs:string"> <xs:enumeration value = "Packed"/> <xs:enumeration value = "Unpacked"/> </xs:restriction> </xs:simpleType>
<xs:complexType name = "TransportType"> <xs:annotation> <xs:documentation>Транспортный раздел</xs:documentation> </xs:annotation> <xs:all> <xs:element name = "TRAN_TYPE" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Тип перевозки</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base = "xs:string"> <xs:maxLength value = "50"/> </xs:restriction> </xs:simpleType> </xs:element>
<xs:element name = "TRAN_COMPANY" minOccurs = "0" 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 = "TRAN_CAR" minOccurs = "0" 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 = "TRAN_TRAILER" minOccurs = "0" 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 = "TRAN_CUSTOMER" minOccurs = "0" 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 = "TRAN_DRIVER" minOccurs = "0" 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 = "TRAN_LOADPOINT" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Место погрузки</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base = "xs:string"> <xs:maxLength value = "2000"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name = "TRAN_UNLOADPOINT" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Место разгрузки</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base = "xs:string"> <xs:maxLength value = "2000"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name = "TRAN_REDIRECT" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Перенаправление</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base = "xs:string"> <xs:maxLength value = "2000"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name = "TRAN_FORWARDER" minOccurs = "0" 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:all> </xs:complexType> </xs:schema>