-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCalculationRegisters.cpp
More file actions
68 lines (52 loc) · 2.18 KB
/
CalculationRegisters.cpp
File metadata and controls
68 lines (52 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//---------------------------------------------------------------------------
#pragma hdrstop
#include "CalculationRegisters.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
// Конфигурация путей в дереве парсинга для регистров расчета
static InfoRegisterTreePaths GetCalculationRegistersPaths()
{
InfoRegisterTreePaths paths;
// Пути для регистров расчета
paths.attIdx = 3;
paths.attItemPath = {0, 1, 1, 1, 2};
paths.dimIdx = 9; // измерения
paths.dimItemPath = {0, 1, 1, 1, 2};
paths.resIdx = 6; // ресурсы
paths.resItemPath = {0, 1, 1, 1, 2};
paths.formsIdx = 7;
paths.cmdIdx = 8;
paths.cmdItemPath = {0, 1, 2, 9, 2};
paths.moxIdx = 5;
paths.getFormNameFunc = GetNameFormCatalogs;
return paths;
}
//---------------------------------------------------------------------------
__fastcall TCalculationRegisters::TCalculationRegisters()
: MetadataObjectInformationRegister()
{
}
//---------------------------------------------------------------------------
__fastcall TCalculationRegisters::TCalculationRegisters(v8catalog *_parent, const String& _guid)
: MetadataObjectInformationRegister(_parent, _guid)
{
initializeFromTree();
root_data.reset();
}
//---------------------------------------------------------------------------
__fastcall TCalculationRegisters::TCalculationRegisters(v8catalog *_parent, const String& _guid, const String& _name)
: MetadataObjectInformationRegister(_parent, _guid, _name)
{
initializeFromTree();
root_data.reset();
}
//---------------------------------------------------------------------------
__fastcall TCalculationRegisters::~TCalculationRegisters()
{
}
//---------------------------------------------------------------------------
void __fastcall TCalculationRegisters::initializeFromTree()
{
// Инициализируем стандартные поля (реквизиты, измерения, ресурсы, формы, команды, макеты)
MetadataObjectInformationRegister::initializeFromTreeWithPaths(GetCalculationRegistersPaths());
}