-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathChartOfCalculationTypes.cpp
More file actions
53 lines (45 loc) · 1.51 KB
/
ChartOfCalculationTypes.cpp
File metadata and controls
53 lines (45 loc) · 1.51 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
//---------------------------------------------------------------------------
#pragma hdrstop
#include "Common.h"
#include "ChartOfCalculationTypes.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
static MetadataTreePaths GetChartOfCalculationTypesPaths()
{
MetadataTreePaths paths;
// TODO: пути скопированы из Catalogs - необходимо проверить и исправить для ПВР
paths.attIdx = 4;
paths.attItemPath = {0, 1, 1, 1, 2};
paths.tabIdx = 3;
paths.tabItemPath = {0, 1, 5, 1, 2};
paths.formsIdx = 7;
paths.cmdIdx = 5;
paths.cmdItemPath = {0, 1, 3, 2, 9, 2};
paths.moxIdx = 6;
paths.getFormNameFunc = GetNameFormCatalogs;
paths.hasTabulars = true;
return paths;
}
__fastcall TChartOfCalculationTypes::TChartOfCalculationTypes()
: MetadataObjectWithSections()
{
}
__fastcall TChartOfCalculationTypes::TChartOfCalculationTypes(v8catalog *_parent, const String& _guid)
: MetadataObjectWithSections(_parent, _guid)
{
initializeFromTree();
root_data.reset();
}
__fastcall TChartOfCalculationTypes::TChartOfCalculationTypes(v8catalog *_parent, const String& _guid, const String& _name)
: MetadataObjectWithSections(_parent, _guid, _name)
{
initializeFromTree();
root_data.reset();
}
__fastcall TChartOfCalculationTypes::~TChartOfCalculationTypes()
{
}
void __fastcall TChartOfCalculationTypes::initializeFromTree()
{
MetadataObjectWithSections::initializeFromTreeWithPaths(GetChartOfCalculationTypesPaths());
}