forked from ChengUU/KernoManage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecord.cpp
More file actions
82 lines (65 loc) · 1.26 KB
/
Record.cpp
File metadata and controls
82 lines (65 loc) · 1.26 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include "Record.h"
Record::Record(){}
Record::Record(const string startTime, const string endTime)
{
this->startTime=startTime;
this->endTime=endTime;
}
Record::Record(const Record &re)
{
id = re.id;
startTime = re.startTime;
endTime = re.endTime;
count = re.count;
stuId = re.stuId;
}
void Record::setStartTime(string startTime)
{
this->startTime=startTime;
}
void Record::setEndTime(string endTime)
{
this->endTime=endTime;
}
string Record::getStartTime()
{
return this->startTime;
}
string Record::getEndTime()
{
return this->endTime;
}
void Record::setId(int id)
{
this->id=id;
}
int Record::getId()
{
return this->id;
}
void Record::setStuId(string stuId)
{
this->stuId=stuId;
}
string Record::getStuId()
{
return this->stuId;
}
void Record::setCount(float count)
{
this->count=count;
}
float Record::getCount()
{
return this->count;
}
string Record::toString()
{
string str;
stringstream ss;
ss<<this->count;
if(this->endTime.empty())
str.append(this->startTime+" "+"未签退"+" "+"打卡失败");
else str.append(this->startTime+" "+this->endTime+" "+ss.str());
return str;
}