-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloan.cpp
75 lines (47 loc) · 867 Bytes
/
loan.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
#include "loan.h"
Loan::Loan() {
loanId = 0;
patronId = 0;
bookId = 0;
//dueDate = "XXXX";
status = "None";
}
void Loan::SetLoanId(int loanId) {
this->loanId = loanId;
}
void Loan::SetPatronId(int patronId) {
this->patronId = patronId;
}
void Loan::SetBookId(int bookId) {
this->bookId = bookId;
}
void Loan::SetDueDateSec(int dueDateSec) {
this->dueDateSec = dueDateSec;
}
void Loan::SetDueDate(string due) {
this->dueDate = due;
}
void Loan::SetDueDate2(string due) {
this->dueDate2 = due;
}
void Loan::SetStatus(string status) {
this->status = status;
}
int Loan::GetDueDateSec() {
return dueDateSec;
}
int Loan::GetLoanId() {
return loanId;
}
int Loan::GetPatron() {
return patronId;
}
int Loan::GetBookId() {
return bookId;
}
string Loan::GetDueDate() {
return dueDate;
}
string Loan::GetStatus() {
return status;
}