-
Notifications
You must be signed in to change notification settings - Fork 1
/
documentbuilder.h
115 lines (102 loc) · 5.43 KB
/
documentbuilder.h
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#ifndef HTMLBUILDER_H
#define HTMLBUILDER_H
#include <QUrl>
#include <QSqlQueryModel>
#include "vfktablemodel.h"
#include "htmldocument.h"
typedef QMap<QString, QString > TaskMap;
typedef QMap<QString, QString > StringMap;
typedef QPair<QString, QString> Coordinates;
class DocumentBuilder
{
public:
DocumentBuilder();
DocumentBuilder( QString connectionName );
~DocumentBuilder();
void buildHtml( VfkDocument *document, TaskMap taskMap );
void initKatUzemi();
QStringList currentParIds() { return mCurrentPageParIds; }
QStringList currentBudIds() { return mCurrentPageBudIds; }
Coordinates currentDefinitionPoint() { return mCurrentDefinitionPoint; }
private:
bool mHasConnection;
QString mConnectionName;
QString mStringBezZapisu;
bool mDveRadyCislovani;
VfkDocument *mDocument;
QStringList mCurrentPageParIds;
QStringList mCurrentPageBudIds;
Coordinates mCurrentDefinitionPoint;
void pageTelesa();
void pageTeleso( QString id );
void partTelesoHlavicka( QString id );
void partTelesoNemovitosti( QString id, QStringList &parIds,
QStringList &budIds, QStringList &jedIds );
void partVlastnikNemovitosti( QString opsubId );
void partTelesoParcely( QString opsubId, QStringList &parIds );
void partVlastnikParcely( QString id );
void tableParcely( const VfkTableModel *model, QStringList &parIds, bool LVcolumn );
void partTelesoBudovy( QString opsubId, QStringList &budIds );
void partVlastnikBudovy( QString id );
void tableBudovy( const VfkTableModel *model, QStringList &budIds, bool LVcolumn );
void partTelesoJednotky( QString id, QStringList &jedIds );
void partVlastnikJednotky( QString opsubId );
void tableJednotky( const VfkTableModel *model, QStringList &jedIds, bool LVcolumn );
void partTelesoJednotkaDetail( QString budId );
void partTelesoB1( const QStringList &parIds,
const QStringList &budIds, const QStringList &jedIds,
const QStringList &opsubIds, bool forLV );
void partTelesoC( const QStringList &parIds,
const QStringList &budIds, const QStringList &jedIds,
const QStringList &opsubIds, bool forLV );
void partTelesoD( const QStringList &parIds,
const QStringList &budIds, const QStringList &jedIds,
const QStringList &opsubIds, bool forLV );
void partTelesoE( const QStringList &parIds,
const QStringList &budIds, const QStringList &jedIds );
void partTelesoF( const QStringList &parIds, bool forLV );
bool partTelesoJinaPrava( const QStringList ids, VfkTableModel::OpravnenyPovinny opravneny );
bool partNemovitostJinaPrava(const QStringList ids, VfkTableModel::OpravnenyPovinny opravneny);
bool partTelesoOmezeniPrava( const QStringList ids, VfkTableModel::OpravnenyPovinny povinny );
bool partNemovitostOmezeniPrava( const QStringList ids, VfkTableModel::OpravnenyPovinny povinny );
bool partTelesoJineZapisy( const QStringList ids, VfkTableModel::OpravnenyPovinny povinny );
bool partNemovitostJineZapisy( const QStringList ids, VfkTableModel::OpravnenyPovinny povinny );
bool partTelesoB1CDSubjekt( const QStringList ids,
VfkTableModel::OpravnenyPovinny pravniSubjekt,
VfkTableModel::Pravo pravo, bool sekceD, bool showListiny );
void partTelesoListiny( QString jpvId );
void pageParcela( QString id );
void partTelesoVlastnici( QString id, QStringList &opsubIds, bool forLV );
// QString partParcelaBpej( QString id );
void partNemovitostOchrana( QString id, VfkTableModel::Nemovitost nemovitost);
// QString partParcelaJpv( QString id, VfkTableModel::Pravo pravo);
void pageBudova( QString id );
void pageJednotka( QString id );
void pageOpravnenySubjekt( QString id );
void pageSeznamParcel( QStringList ids );
void pageSeznamOsob( QStringList ids );
void pageSeznamBudov( QStringList ids );
void pageSeznamJednotek( QStringList ids );
// void pageSeznamOsob( QString name );
void pageSearchVlastnici( QString jmeno, QString identifikator, bool sjm, bool opo, bool ofo, QString lv );
void pageSearchParcely( QString parcelniCislo, QString typIndex, QString druhKod, QString lv );
void pageSearchBudovy( QString domovniCislo, QString naParcele, QString zpusobVyuziti, QString lv );
void pageSearchJednotky( QString cisloJednotky, QString domovniCislo,
QString naParcele, QString zpusobVyuziti, QString lv );
void pageHelp();
QString makeShortDescription( QString id, VfkTableModel::OpravnenyPovinny nemovitost );
QString makeLongDescription( QString id, VfkTableModel::OpravnenyPovinny nemovitost );
QString makeAdresa( const VfkTableModel *model, int row );
QString makeJmeno( const VfkTableModel *model, int row );
QString makeIdentifikator( const VfkTableModel *model, int row );
QString makeParcelniCislo( const VfkTableModel *model, int row );
QString makeDomovniCislo( const VfkTableModel *model, int row );
QString makeJednotka( const VfkTableModel *model, int row );
QString makeListina( const VfkTableModel *model, int row );
QString makeLVCislo( const VfkTableModel *model, int row );
QString makeKatastrUzemi( const VfkTableModel *model, int row );
QString makeCastObce(const VfkTableModel *model, int row);
QString makeObec(const VfkTableModel *model, int row);
void saveDefinitionPoint( QString id, VfkTableModel::Nemovitost nemovitost);
};
#endif // HTMLBUILDER_H