XML document format template — различия между версиями
м |
|||
Строка 1: | Строка 1: | ||
− | === | + | ===Description of the universal XML file format template for a document=== |
* [[#1|File]] | * [[#1|File]] | ||
** [[#2|Document]] | ** [[#2|Document]] | ||
Строка 10: | Строка 10: | ||
*** [[#9 |Items]] | *** [[#9 |Items]] | ||
− | |||
{{Шаблон:ШапкаТаблицыОписанияФормата}} | {{Шаблон:ШапкаТаблицыОписанияФормата}} | ||
{{Шаблон:XML_document_format_template_File|hideheader=1}} | {{Шаблон:XML_document_format_template_File|hideheader=1}} |
Версия 18:32, 29 мая 2020
Description of the universal XML file format template for a document
Сокращенное наименование (код) элемента |
Наименование элемента | Признак типа элемента |
Формат элемента |
Признак обязательности элемента |
Дополнительная информация |
---|---|---|---|---|---|
file | Table 1.1 | ||||
name | File name | А | O | ||
format | Format ID | А | O | ||
format_version | Format version | А | O | ||
form | Form ID | A | O | ||
create | Create datetime | A | O | ||
author | File creator | A | O | ||
program | name of the program that created the file | А | O | ||
program_version | varsion of the program that created the file | А | O | ||
document | Document content | N | O | Состав элемента представлен в табл. 1.2 | |
document | Table 1.2 | ||||
id | document ID | A | O | ||
ext_id | identifier for the external system | A | O | ||
type | document type | A | R | ||
title | document title | A | R | ||
number | Document number | А | R | ||
date | Document date | А | YYYY-MM-DD | R | |
comment | document comment | А | O | ||
route | А | O | |||
status_code | А | O | |||
status_comment | status | А | O | ||
roles | participants | N | R | Details in table 3 | |
list_action | N | O | Details in table 4 | ||
list_attachment | N | O | Details in table 8 | ||
list_event | N | O | Details in table 7 | ||
list_item | N | O | Details in table 9 | ||
list_linkdoc | N | O | Details in table 5 | ||
list_param | N | O | Details in table 6 | ||
roles | Table 3 | ||||
role | roles of document | NM | H | Details in table 3.1 | |
role | Table 3.1 | ||||
id | member ID | A | O | ||
ext_id | identifier for the external system | A | O | ||
type | member type | A | R | org/businesman/employee/department | |
title | member title | A | R | ||
role | role name | А | Н | ||
org | N (xor1) | H | Details in table 3.2 | ||
businessman | N (xor1) | H | Details in table 3.2 | ||
employee | N (xor1) | H | Details in table 3.3 | ||
org | Table 3.2 | ||||
name | full name | N | H | ||
inn | N | H | |||
kpp | N | H | |||
country | country code | N | H | ||
businesman | Table 3.3 | ||||
name | full name | N | H | ||
last_name | N | H | |||
first_name | N | H | |||
middle_name | N | H | |||
employee | Table 3.3 | ||||
name | full name | N | H | ||
last_name | N | H | |||
first_name | N | H | |||
middle_name | N | H | |||
list_linkdoc | Table 5 | ||||
linkdoc | links of document | NM | O | Details in table 5.1 | |
linkdoc | Table 5.1 | ||||
id | А | O | |||
type | А | O | |||
number | А | O | |||
date | А | O | |||
title | А | O | |||
list_param | Table 6 | ||||
param | NM | O | Details in table 9.1 | ||
param | Table 6.1 | ||||
name | А | S(255) | O | ||
value | А | S(255) | O | ||
list_event | Table 7 | ||||
event | attachments of document | NM | O | Details in table 7.1 | |
event | Table 7.1 | ||||
id | А | O | |||
name | event name | А | O | ||
comment | А | O | |||
stage_name | А | O | |||
datetime | А | yyyy-mm-dd HH:MM:SS | O | ||
attachments | signature file | N | O | Details in table 8 | |
list_attachment | Table 8 | ||||
attachment | attachments of document | NM | O | Details in table 8.1 | |
attachment | Table 8.1 | ||||
id | file ID | A | O | ||
ext_id | identifier for the external system | A | O | ||
type | file type | A | R | attachment/service/signature/report | |
title | file title | A | R | ||
format | Format ID | А | O | ||
format_version | Format version | А | O | ||
download_link | link to download content | N | O | ||
download_pdf_link | link to download pdf preview | N | O | ||
web_view_link | link to go to the web interface | N | O | ||
file | attachment file | N | O | Details in table 8.4 | |
list_signature | electronic signatures of a document | N | O | Details in table 8.2 | |
list_signature | Table 8.2 | ||||
signature | NM | O | Details in table 8.3 | ||
signature | Table 8.3 | ||||
signer_name | signer name (last name + first name + middle name) | А | O | ||
signer_inn | signer name (last name + first name + middle name) | А | O | ||
org_name | organization name | А | O | ||
file | signature file | N | O | Details in table 8.4 | |
file | Table 8.4 | ||||
name | file name | А | O | ||
link | download link | А | O | ||
base64 | file data in base64 string | А | O | ||
list_item | Table 9 | ||||
item | items of document | NM | O | Details in table 9.1 | |
item | Table 9.1 | ||||
id | Item ID | A | O | ||
ext_id | identifier for the external system | A | O | ||
type | Item type | A | R | product / service | |
title | Item title | A | R | ||
gtin | А | O | |||
marking | А | O | tyres / shoes | ||
amount | А | O | |||
unit_code | А | O | |||
unit_name | А | O | |||
price | А | O | |||
sum | А | O | |||
tax_rate | А | O | |||
price_without_tax | А | O | |||
sum_without_tax | А | O | |||
list_param | N | O | Details in table 6 | ||
list_serial | N | O | Details in table 9.2 | ||
list_serial | Table 9.2 | ||||
serial | serial number or marking code | NM | S(255) | O | Details in table 9.3 |
serial | Table 9.3 | ||||
type | serial type. if not specified, considered as marking code. | А | 1/0 | O | |
check | code has been verified by scanning | А | 1/0 | O |