-
Notifications
You must be signed in to change notification settings - Fork 5
/
report.cpp
86 lines (68 loc) · 1.11 KB
/
report.cpp
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
#include "report.h"
Report::Report(QDate date)
:id(0),date(date)
{
}
Report::~Report() {
foreach(Function* func, functions) {
delete func;
}
}
QDate Report::getDate() const
{
return date;
}
void Report::setDate(const QDate &value)
{
date = value;
}
QString Report::getFreeText() const
{
return freeText;
}
void Report::setFreeText(const QString &value)
{
freeText = value;
}
QList<Function *> Report::getFunctions(Function::Art actArt)
{
QList<Function*> result;
foreach (Function* func, functions) {
if (func->getArt() == actArt) {
result.append(func);
}
}
return result;
}
int Report::getPatientId() const
{
return patientId;
}
void Report::setPatientId(int value)
{
patientId = value;
}
int Report::getTherapistId() const
{
return therapistId;
}
void Report::setTherapistId(int value)
{
therapistId = value;
}
int Report::getId() const
{
return id;
}
void Report::setId(int value)
{
id = value;
}
QString Report::getType() const
{
return type;
}
void Report::setType(const QString &value)
{
type = value;
}