Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
570 changes: 570 additions & 0 deletions Refactoring_MD.md

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions src/BusinessProceses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,51 @@

#pragma hdrstop

#include "Common.h"
#include "BusinessProceses.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)

static MetadataTreePaths GetBusinessProcessesPaths()
{
MetadataTreePaths paths;
paths.attIdx = 5;
paths.attItemPath = {0, 1, 1, 1, 2};
paths.tabIdx = 3;
paths.tabItemPath = {0, 1, 5, 1, 2};
paths.formsIdx = 7;
paths.cmdIdx = 6;
paths.cmdItemPath = {0, 1, 3, 2, 9, 2};
paths.moxIdx = 4;
paths.getFormNameFunc = GetNameFormCatalogs;
paths.hasTabulars = true;
return paths;
}

__fastcall TBusinessProceses::TBusinessProceses()
: MetadataObjectWithSections()
{
}

__fastcall TBusinessProceses::TBusinessProceses(v8catalog *_parent, const String& _guid)
: MetadataObjectWithSections(_parent, _guid)
{
initializeFromTree();
root_data.reset();
}

__fastcall TBusinessProceses::TBusinessProceses(v8catalog *_parent, const String& _guid, const String& _name)
: MetadataObjectWithSections(_parent, _guid, _name)
{
initializeFromTree();
root_data.reset();
}

__fastcall TBusinessProceses::~TBusinessProceses()
{
}

void __fastcall TBusinessProceses::initializeFromTree()
{
MetadataObjectWithSections::initializeFromTreeWithPaths(GetBusinessProcessesPaths());
}
15 changes: 15 additions & 0 deletions src/BusinessProceses.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,20 @@

#ifndef BusinessProcesesH
#define BusinessProcesesH

#include "MetadataObjectWithSections.h"
//---------------------------------------------------------------------------

class TBusinessProceses : public MetadataObjectWithSections
{
public:
__fastcall TBusinessProceses();
__fastcall TBusinessProceses(v8catalog *_parent, const String& _guid);
__fastcall TBusinessProceses(v8catalog *_parent, const String& _guid, const String& _name);
__fastcall ~TBusinessProceses();

void __fastcall initializeFromTree() override;
};

//---------------------------------------------------------------------------
#endif
Loading
Loading