001 /**
002 * Copyright 2004-2013 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.hr.time.detail.web;
017
018 import java.math.BigDecimal;
019 import java.util.ArrayList;
020 import java.util.List;
021
022 import org.kuali.hr.lm.balancetransfer.BalanceTransfer;
023 import org.kuali.hr.time.timesheet.web.TimesheetActionForm;
024
025 /**
026 * Base form for both WS and Regular TimeDetail action.
027 */
028 @SuppressWarnings("serial")
029 public class TimeDetailActionFormBase extends TimesheetActionForm {
030
031 private String tkTimeBlockId;
032 private String outputString;
033 private List<String> warnings = new ArrayList<String>();
034 private String startTime;
035 private String endTime;
036 private String acrossDays;
037 private String startDate;
038 private String endDate;
039 private BigDecimal hours;
040 private BigDecimal amount;
041 private String overtimePref;
042 private String spanningWeeks; // KPME-1446
043 private String lmLeaveBlockId;
044 private BigDecimal leaveAmount; // for leave blocks
045 private List<BalanceTransfer> forfeitures;
046
047 public String getSpanningWeeks() {
048 return spanningWeeks;
049 }
050
051 public void setSpanningWeeks(String spanningWeeks) {
052 this.spanningWeeks = spanningWeeks;
053 }
054
055 public String getTkTimeBlockId() {
056 return tkTimeBlockId;
057 }
058
059 public void setTkTimeBlockId(String tkTimeBlockId) {
060 this.tkTimeBlockId = tkTimeBlockId;
061 }
062
063 public BigDecimal getHours() {
064 return hours;
065 }
066
067 public void setHours(BigDecimal hours) {
068 this.hours = hours;
069 }
070
071 public BigDecimal getAmount() {
072 return amount;
073 }
074
075 public void setAmount(BigDecimal amount) {
076 this.amount = amount;
077 }
078
079 public String getStartDate() {
080 return startDate;
081 }
082
083 public void setStartDate(String startDate) {
084 this.startDate = startDate;
085 }
086
087 public String getEndDate() {
088 return endDate;
089 }
090
091 public void setEndDate(String endDate) {
092 this.endDate = endDate;
093 }
094
095 public String getEndTime() {
096 return endTime;
097 }
098
099 public void setEndTime(String endTime) {
100 this.endTime = endTime;
101 }
102
103 public String getAcrossDays() {
104 return acrossDays;
105 }
106
107 public void setAcrossDays(String acrossDays) {
108 this.acrossDays = acrossDays;
109 }
110
111 public String getStartTime() {
112 return startTime;
113 }
114
115 public void setStartTime(String startTime) {
116 this.startTime = startTime;
117 }
118
119 public String getOutputString() {
120 return outputString;
121 }
122
123 public void setOutputString(String outputString) {
124 this.outputString = outputString;
125 }
126
127 public List<String> getWarnings() {
128 return warnings;
129 }
130
131 public void setWarnings(List<String> warnings) {
132 this.warnings = warnings;
133 }
134
135 public String getOvertimePref() {
136 return overtimePref;
137 }
138
139 public void setOvertimePref(String overtimePref) {
140 this.overtimePref = overtimePref;
141 }
142
143 public String getLmLeaveBlockId() {
144 return lmLeaveBlockId;
145 }
146
147 public void setLmLeaveBlockId(String lmLeaveBlockId) {
148 this.lmLeaveBlockId = lmLeaveBlockId;
149 }
150
151 public BigDecimal getLeaveAmount() {
152 return leaveAmount;
153 }
154
155 public void setLeaveAmount(BigDecimal leaveAmount) {
156 this.leaveAmount = leaveAmount;
157 }
158
159 public List<BalanceTransfer> getForfeitures() {
160 return forfeitures;
161 }
162
163 public void setForfeitures(List<BalanceTransfer> forfeitures) {
164 this.forfeitures = forfeitures;
165 }
166 }