Главная страница Случайная страница КАТЕГОРИИ: АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатикаИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханикаОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторикаСоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансыХимияЧерчениеЭкологияЭкономикаЭлектроника |
XSD-схема файла обмена
<? xml version=" 1.0" encoding=" windows-1251"? > − < xsd: schema xmlns: xsd=" https://www.w3.org/2001/XMLSchema " attributeFormDefault=" unqualified " elementFormDefault=" qualified " > − < xsd: complexType name= " contragent" > − < xsd: all> < xsd: element name=" inn " type= " xsd: string" /> < xsd: element name=" kpp " type= " xsd: string" /> < xsd: element name=" client_code " type=" xsd: string " /> < /xsd: all> < /xsd: complexType> − < xsd: complexType name= " data_file" > − < xsd: sequence> < xsd: element maxOccurs=" 999999999 " minOccurs=" 1 " name=" document " type=" documents " /> < /xsd: sequence> < xsd: attribute name=" file_ID " type= " xsd: string" use= " required " /> < xsd: attribute name=" format_version " type=" xsd: string " use=" required " /> < xsd: attribute name=" file_date " type=" xsd: dateTime " use=" required " /> < xsd: attribute name=" doc_count " type=" xsd: integer " use=" required " /> < /xsd: complexType> − < xsd: complexType name= " details" > − < xsd: all> < xsd: element name= " prod_alco_code" type=" xsd: string " /> < xsd: element name= " count" nillable= " true" type= " xsd: integer" /> < xsd: element name= " volume" type= " xsd: decimal" /> < xsd: element name= " price" type= " xsd: decimal" /> < xsd: element name= " pack_name" nillable= " true" type= " xsd: string" /> < xsd: element name= " place_count" nillable= " true" type= " xsd: integer" /> < xsd: element name= " summa" type= " xsd: decimal" /> < xsd: element name= " gtd_number" nillable= " true" type= " xsd: string" /> < xsd: element name= " gtd_date" nillable= " true" type= " xsd: date" /> < /xsd: all> < /xsd: complexType> − < xsd: simpleType name= " doc_types" > − < xsd: restriction base= " xsd: string" > < xsd: enumeration value= " shipping" /> < xsd: enumeration value= " acquisition" /> < xsd: enumeration value= " expenses" /> < xsd: enumeration value= " remains" /> < /xsd: restriction> < /xsd: simpleType> − < xsd: complexType name= " documents" > − < xsd: sequence> < xsd: element name=" doc_type " type=" doc_types " /> < xsd: element name=" is_spirit" type= " xsd: boolean" /> < xsd: element name= " ttn_inform" type= " ttn_informs" /> < xsd: element name= " sender" type= " contragent" /> < xsd: element name= " recipient" type=" contragent " /> < xsd: element name=" payer " type=" contragent " /> < xsd: element name= " transport" type= " transports" /> < xsd: element maxOccurs= " 99999" minOccurs= " 1" name= " detail" type= " details" /> < /xsd: sequence> < /xsd: complexType> − < xsd: complexType name= " transports" > − < xsd: all> < xsd: element name= " acomp_name" nillable=" true " type= " xsd: string" /> < xsd: element name= " acomp_addr" nillable= " true" type= " xsd: string" /> < xsd: element name=" car_type" nillable= " true" type= " xsd: string" /> < xsd: element name= " car_num" nillable= " true" type= " xsd: string" /> < xsd: element name= " driver" nillable= " true" type=" xsd: string " /> < xsd: element name= " customer" type= " xsd: string" /> < xsd: element name= " loadpoint" type= " xsd: string" /> < xsd: element name= " unloadpoint" type= " xsd: string" /> < xsd: element name= " redirection" nillable= " true " type= " xsd: string" /> < xsd: element name= " trailer_type" nillable= " true " type= " xsd: string" /> < xsd: element name= " trailer_num" nillable= " true " type= " xsd: string" /> < xsd: element name= " forwarder" nillable= " true " type= " xsd: string" /> < /xsd: all> < /xsd: complexType> − < xsd: complexType name= " ttn_informs" > − < xsd: all> < xsd: element name= " ship_date" type= " xsd: dateTime" /> < xsd: element name= " load_date" nillable= " true" type= " xsd: dateTime" /> < xsd: element name= " doc_serial" nillable= " true" type= " xsd: string" /> < xsd: element name= " doc_number" type= " xsd: string" /> < xsd: element name= " doc_date" type= " xsd: dateTime" /> < xsd: element name= " vtd_number" nillable= " true" type= " xsd: string" /> < xsd: element name= " vtd_date" nillable= " true" type= " xsd: date" /> < xsd: element name= " is_export" type= " xsd: boolean" /> < xsd: element name= " is_import" type= " xsd: boolean" /> < xsd: element name= " is_return" type= " xsd: boolean" /> < xsd: element name= " is_packed" type= " xsd: boolean" /> < /xsd: all> < /xsd: complexType> < xsd: element name= " data_file" type= " data_file" > < /xsd: element> < /xsd: schema>
Ниже приведен пример файла с конкретными значениями параметров для фасованной импортной продукции. <? xml version=" 1.0" encoding=" windows-1251"? > - < data_file xmlns: xsi=" https://www.w3.org/2001/XMLSchema-instance " xsi: noNamespaceSchemaLocation=" EG_TTN_01.xsd " file_ID=" EG_TTN_20090413_105500 " format_version=" 0.1 " file_date=" 2009-04-13T11: 09: 50 " doc_count=" 1 " > - < document> < doc_type> shipping< /doc_type> < is_spirit> false< /is_spirit> - < ttn_inform> < ship_date> 2009-04-13T09: 00: 00< /ship_date> < load_date> 2009-04-13T09: 15: 00< /load_date> < doc_serial> 5IM< /doc_serial> < doc_number> 1-фас имп< /doc_number> < doc_date> 2009-04-13T09: 00: 00< /doc_date> < is_export> false< /is_export> < is_import> true< /is_import> < is_return> false< /is_return> < is_packed> true< /is_packed> < gtd_number> 12345678/901234/п12345< /gtd_number> < gtd_date> 2009-04-13< /gtd_date> < /ttn_inform> - < sender> < inn> 7810222533< /inn> < kpp> 784601001< /kpp> < client_code> 93000001268913 < /client_code> < /sender> - < recipient> < inn> 1111111117< /inn> < kpp> 000000001< /kpp> < client_code> 1112456 < /client_code> < /recipient> - < payer> < inn> 7826018300< /inn> < kpp> 784601001< /kpp> < client_code> 1109727 < /client_code> < /payer> - < transport> < acomp_name> Наименование автопредприятия< /acomp_name> < acomp_addr> Адрес автопредприятия< /acomp_addr> < car_type> Марка< /car_type> < car_num> Номер автомобиля< /car_num> < driver> О водителе< /driver> < customer> Заказчик< /customer> < loadpoint> Пункт погрузки< /loadpoint> < unloadpoint> Пункт разгрузки< /unloadpoint> < redirection> Переадресовка< /redirection> < trailer_type> Марка прицепа< /trailer_type> < trailer_num> номер прицепа< /trailer_num> < forwarder> Водитель-экспедитор< /forwarder> < /transport> - < detail> < prod_alco_code> 0150245000001187244< /prod_alco_code> < count> 10< /count> < volume> 0.1< /volume> < price> 1236.12< /price> < pack_name> бут< /pack_name> < place_count> 1< /place_count> < summa> 1295.12< /summa> < /detail> - < detail> < prod_alco_code> 0178124000001186800< /prod_alco_code> < count> 10< /count> < volume> 0.1< /volume> < pack_name> бут< /pack_name> < place_count> 3< /place_count> < price> 0< /price> < summa> 0< /summa> < gtd_number> 12345678/901234/п678901< /gtd_number> < gtd_date> 2009-04-13< /gtd_date> < /detail> - < detail> < prod_alco_code> 0178124000001186750< /prod_alco_code> < count> 10< /count> < volume> 0.1< /volume> < pack_name> бут< /pack_name> < place_count> 3< /place_count> < price> 0< /price> < summa> 0< /summa> < gtd_number> 12345678/901234/п678902< /gtd_number> < gtd_date> 2009-04-13< /gtd_date> < /detail> - < detail> < prod_alco_code> 1178124000001190172< /prod_alco_code> < count> 10< /count> < volume> 0.1< /volume> < pack_name> бут< /pack_name> < place_count> 3< /place_count> < price> 0< /price> < summa> 0< /summa> < gtd_number> 12345678/901234/п678903< /gtd_number> < gtd_date> 2009-04-13< /gtd_date> < /detail> < /document> < /data_file>
|