Revision 39068
Added by Antonis Lempesis over 8 years ago
Budget.java | ||
---|---|---|
7 | 7 |
/** |
8 | 8 |
* Created by antleb on 3/8/15. |
9 | 9 |
*/ |
10 |
public class Budget implements IsSerializable { |
|
10 |
public class Budget extends GoldBean implements IsSerializable {
|
|
11 | 11 |
|
12 | 12 |
public enum Status implements IsSerializable { |
13 | 13 |
INCOMPLETE("Incomplete", 1), |
... | ... | |
33 | 33 |
} |
34 | 34 |
} |
35 | 35 |
|
36 |
private String id; |
|
37 | 36 |
private Date date; |
38 | 37 |
private Date startDate; |
39 | 38 |
private Date endDate; |
... | ... | |
49 | 48 |
public Budget() { |
50 | 49 |
} |
51 | 50 |
|
51 |
public Budget(String budgetId) { |
|
52 |
super(budgetId); |
|
53 |
} |
|
54 |
|
|
52 | 55 |
public Budget(String id, Date date, Date startDate, Date endDate, float amountRequested, float amountGranted, Currency currency, float remaining, int statusCode, String user, String organisation, BankAccount bankAccount) { |
53 |
this.id = id;
|
|
56 |
super(id);
|
|
54 | 57 |
this.date = date; |
55 | 58 |
this.startDate = startDate; |
56 | 59 |
this.endDate = endDate; |
... | ... | |
64 | 67 |
this.bankAccount = bankAccount; |
65 | 68 |
} |
66 | 69 |
|
67 |
public Budget(String id) { |
|
68 |
this.id = id; |
|
69 |
} |
|
70 |
|
|
71 |
public String getId() { |
|
72 |
return id; |
|
73 |
} |
|
74 |
|
|
75 |
public void setId(String id) { |
|
76 |
this.id = id; |
|
77 |
} |
|
78 |
|
|
79 | 70 |
public Date getDate() { |
80 | 71 |
return date; |
81 | 72 |
} |
Also available in: Unified diff
first step