1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.leave.calendar.web;
17
18 import java.math.BigDecimal;
19 import java.util.List;
20 import java.util.Map;
21
22 import org.apache.commons.lang.StringUtils;
23 import org.kuali.kpme.tklm.common.CalendarForm;
24 import org.kuali.kpme.tklm.common.LMConstants;
25 import org.kuali.kpme.tklm.leave.accrual.bucket.KPMEAccrualCategoryBucket;
26 import org.kuali.kpme.tklm.leave.calendar.LeaveCalendar;
27 import org.kuali.kpme.tklm.leave.calendar.LeaveCalendarDocument;
28 import org.kuali.kpme.tklm.leave.summary.LeaveSummary;
29 import org.kuali.kpme.tklm.leave.transfer.BalanceTransfer;
30 import org.kuali.rice.core.api.config.property.ConfigContext;
31
32 @SuppressWarnings("serial")
33 public class LeaveCalendarForm extends CalendarForm {
34
35 private LeaveCalendar leaveCalendar;
36 private LeaveCalendarDocument leaveCalendarDocument;
37
38 private String startDate;
39 private String endDate;
40 private String selectedEarnCode;
41 private BigDecimal leaveAmount;
42 private String description;
43 private String leaveBlockId;
44
45
46 private Map<String,String> assignmentDescriptions;
47 private String selectedAssignment;
48 private String spanningWeeks;
49 private String leaveBlockString;
50 private boolean isDocEditable;
51 private LeaveSummary leaveSummary;
52 private boolean leavePlanningCalendar;
53 private List<BalanceTransfer> forfeitures;
54 private String startTime;
55 private String endTime;
56 private KPMEAccrualCategoryBucket bucket;
57 private String approval;
58 private boolean isBlockSubmittable;
59 private Boolean displayYTDFMLA;
60
61 public boolean isDisplayYTDFMLA() {
62 if(displayYTDFMLA == null) {
63 String displayColumn = ConfigContext.getCurrentContextConfig().getProperty(LMConstants.DISPLAY_YTD_FMLA_LEAVESUMMARY);
64 if (StringUtils.equals(displayColumn, "Yes")) {
65 displayYTDFMLA = Boolean.TRUE;
66 } else {
67 displayYTDFMLA = Boolean.FALSE;
68 }
69 }
70 return displayYTDFMLA;
71 }
72
73 public void setDisplayYTDFMLA(boolean displayYTDFMLA) {
74 this.displayYTDFMLA = displayYTDFMLA;
75 }
76
77 public boolean isBlockSubmittable() {
78 return isBlockSubmittable;
79 }
80
81 public void setBlockSubmittable(boolean isBlockSubmittable) {
82 this.isBlockSubmittable = isBlockSubmittable;
83 }
84
85 public String getApproval() {
86 return approval;
87 }
88
89 public void setApproval(String approval) {
90 this.approval = approval;
91 }
92
93 public boolean isDocEditable() {
94 return isDocEditable;
95 }
96
97 public void setDocEditable(boolean isDocEditable) {
98 this.isDocEditable = isDocEditable;
99 }
100
101 public boolean isLeavePlanningCalendar() {
102 return leavePlanningCalendar;
103 }
104
105 public void setLeavePlanningCalendar(boolean leavePlanningCalendar) {
106 this.leavePlanningCalendar = leavePlanningCalendar;
107 }
108
109 public String getLeaveBlockString() {
110 return leaveBlockString;
111 }
112
113 public void setLeaveBlockString(String leaveBlockString) {
114 this.leaveBlockString = leaveBlockString;
115 }
116
117 public String getSpanningWeeks() {
118 return spanningWeeks;
119 }
120
121 public void setSpanningWeeks(String spanningWeeks) {
122 this.spanningWeeks = spanningWeeks;
123 }
124
125 public String getSelectedAssignment() {
126 return selectedAssignment;
127 }
128
129 public void setSelectedAssignment(String selectedAssignment) {
130 this.selectedAssignment = selectedAssignment;
131 }
132
133 public Map<String, String> getAssignmentDescriptions() {
134 return assignmentDescriptions;
135 }
136
137 public void setAssignmentDescriptions(Map<String, String> assignmentDescriptions) {
138 this.assignmentDescriptions = assignmentDescriptions;
139 }
140
141 public LeaveCalendar getLeaveCalendar() {
142 return leaveCalendar;
143 }
144
145 public void setLeaveCalendar(LeaveCalendar leaveCalendar) {
146 this.leaveCalendar = leaveCalendar;
147 }
148
149 public LeaveCalendarDocument getLeaveCalendarDocument() {
150 return leaveCalendarDocument;
151 }
152
153 public void setLeaveCalendarDocument(LeaveCalendarDocument leaveCalendarDocument) {
154 this.leaveCalendarDocument = leaveCalendarDocument;
155 }
156
157 public String getStartDate() {
158 return startDate;
159 }
160
161 public void setStartDate(String startDate) {
162 this.startDate = startDate;
163 }
164
165 public String getEndDate() {
166 return endDate;
167 }
168
169 public void setEndDate(String endDate) {
170 this.endDate = endDate;
171 }
172
173 public BigDecimal getLeaveAmount() {
174 return leaveAmount;
175 }
176
177 public void setLeaveAmount(BigDecimal leaveAmount) {
178 this.leaveAmount = leaveAmount;
179 }
180
181 public String getDescription() {
182 return description;
183 }
184
185 public void setDescription(String description) {
186 this.description = description;
187 }
188
189 public String getLeaveBlockId() {
190 return leaveBlockId;
191 }
192
193 public void setLeaveBlockId(String leaveBlockId) {
194 this.leaveBlockId = leaveBlockId;
195 }
196
197 public String getSelectedEarnCode() {
198 return selectedEarnCode;
199 }
200
201 public void setSelectedEarnCode(String selectedEarnCode) {
202 this.selectedEarnCode = selectedEarnCode;
203 }
204
205 public LeaveSummary getLeaveSummary() {
206 return leaveSummary;
207 }
208
209 public void setLeaveSummary(LeaveSummary leaveSummary) {
210 this.leaveSummary = leaveSummary;
211 }
212
213 public List<BalanceTransfer> getForfeitures() {
214 return forfeitures;
215 }
216
217 public void setForfeitures(List<BalanceTransfer> forfeitures) {
218 this.forfeitures = forfeitures;
219 }
220
221 public String getStartTime() {
222 return startTime;
223 }
224
225 public void setStartTime(String startTime) {
226 this.startTime = startTime;
227 }
228
229 public String getEndTime() {
230 return endTime;
231 }
232
233 public void setEndTime(String endTime) {
234 this.endTime = endTime;
235 }
236
237 public void setBucket(KPMEAccrualCategoryBucket bucket) {
238 this.bucket = bucket;
239 }
240
241 public KPMEAccrualCategoryBucket getKPMEAccrualCategoryBucket() {
242 return bucket;
243 }
244
245 }