01: package com.technoetic.xplanner.domain.virtual;
02:
03: import java.io.Serializable;
04: import java.math.BigDecimal;
05:
06: public class TimesheetEntry implements Serializable {
07:
08: private String projectName;
09: private String iterationName;
10: private String storyName;
11: private BigDecimal totalDuration = new BigDecimal(0.0);
12: private String personName;
13: private int projectId;
14: private int iterationId;
15: private int storyId;
16:
17: public TimesheetEntry() {
18: }
19:
20: public String getProjectName() {
21: return projectName;
22: }
23:
24: public void setProjectName(String projectName) {
25: this .projectName = projectName;
26: }
27:
28: public String getIterationName() {
29: return iterationName;
30: }
31:
32: public void setIterationName(String iterationName) {
33: this .iterationName = iterationName;
34: }
35:
36: public String getStoryName() {
37: return storyName;
38: }
39:
40: public void setStoryName(String storyName) {
41: this .storyName = storyName;
42: }
43:
44: public BigDecimal getTotalDuration() {
45: return totalDuration.setScale(1, BigDecimal.ROUND_HALF_EVEN);
46: }
47:
48: public void setTotalDuration(BigDecimal totalDuration) {
49: this .totalDuration = totalDuration;
50: }
51:
52: public void setTotalDuration(double totalDuration) {
53: this .totalDuration = this .totalDuration.add(new BigDecimal(
54: totalDuration));
55: }
56:
57: public String getPersonName() {
58: return personName;
59: }
60:
61: public void setPersonName(String personName) {
62: this .personName = personName;
63: }
64:
65: public int getProjectId() {
66: return projectId;
67: }
68:
69: public void setProjectId(int projectId) {
70: this .projectId = projectId;
71: }
72:
73: public int getIterationId() {
74: return iterationId;
75: }
76:
77: public void setIterationId(int iterationId) {
78: this .iterationId = iterationId;
79: }
80:
81: public int getStoryId() {
82: return storyId;
83: }
84:
85: public void setStoryId(int storyId) {
86: this.storyId = storyId;
87: }
88:
89: }
|