View Javadoc

1   /**
2    * Copyright 2004-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.hr.time.timesheet.web;
17  
18  import org.apache.struts.action.ActionMapping;
19  import org.kuali.hr.lm.balancetransfer.BalanceTransfer;
20  import org.kuali.hr.time.base.web.TkCommonCalendarForm;
21  import org.kuali.hr.time.calendar.CalendarEntries;
22  import org.kuali.hr.time.timesheet.TimesheetDocument;
23  
24  import javax.servlet.http.HttpServletRequest;
25  
26  import java.util.List;
27  import java.util.Map;
28  
29  public class TimesheetActionForm extends TkCommonCalendarForm {
30  
31  	/**
32  	 *
33  	 */
34  	private static final long serialVersionUID = 6938733178369007689L;
35  	private TimesheetDocument timesheetDocument;
36  
37  
38  	/**Job Number -> Formatted department earn codes  */
39  	private Map<Long,String> earnCodeDescriptions;
40  	/** String (concat(job number, work_area, task)) -> Formatted Assignment Descriptions */
41  	private Map<String,String>  assignmentDescriptions;
42  	private CalendarEntries payCalendarDates;
43  	private String selectedAssignment;
44  	private String selectedEarnCode;
45  	private String transferAccrualCategory;
46  
47  	private String calNav;
48  	private String documentId;
49  
50  	private java.util.Date beginPeriodDateTime;
51  	private java.util.Date endPeriodDateTime;
52  
53      private String prevDocumentId;
54      private String nextDocumentId;
55      private List<BalanceTransfer> forfeitures;
56  
57  	@Override
58  	public void reset(ActionMapping mapping, HttpServletRequest request) {
59  		super.reset(mapping, request);
60  		//setDocumentId("");
61  	}
62  
63  	public TimesheetDocument getTimesheetDocument() {
64  		return timesheetDocument;
65  	}
66  
67  	public void setTimesheetDocument(TimesheetDocument timesheetDocument) {
68  		this.timesheetDocument = timesheetDocument;
69  	}
70  
71  	public Map<Long,String> getEarnCodeDescriptions() {
72  		return earnCodeDescriptions;
73  	}
74  
75  	public void setEarnCodeDescriptions(Map<Long,String> earnCodeDescriptions) {
76  		this.earnCodeDescriptions = earnCodeDescriptions;
77  	}
78  
79  	public Map<String,String>  getAssignmentDescriptions() {
80  		return assignmentDescriptions;
81  	}
82  
83  	public void setAssignmentDescriptions(Map<String,String>  assignmentDescriptions) {
84  		this.assignmentDescriptions = assignmentDescriptions;
85  	}
86  
87  	public String getSelectedAssignment() {
88  		return selectedAssignment;
89  	}
90  
91  	public void setSelectedAssignment(String selectedAssignment) {
92  		this.selectedAssignment = selectedAssignment;
93  	}
94  
95  	public String getSelectedEarnCode() {
96  		return selectedEarnCode;
97  	}
98  
99  	public void setSelectedEarnCode(String selectedEarnCode) {
100 		this.selectedEarnCode = selectedEarnCode;
101 	}
102 
103 	public CalendarEntries getPayCalendarDates() {
104 		return payCalendarDates;
105 	}
106 
107 	public void setPayCalendarDates(CalendarEntries payCalendarDates) {
108 		this.payCalendarDates = payCalendarDates;
109 	}
110 
111 	public String getCalNav() {
112 		return calNav;
113 	}
114 
115 	public void setCalNav(String calNav) {
116 		this.calNav = calNav;
117 	}
118 
119 	public java.util.Date getBeginPeriodDateTime() {
120 		return getPayCalendarDates().getBeginPeriodDateTime();
121 	}
122 
123 	public java.util.Date getEndPeriodDateTime() {
124 		return getPayCalendarDates().getEndPeriodDateTime();
125 	}
126 
127 	public String getDocumentId() {
128 		return documentId;
129 	}
130 
131 	public void setDocumentId(String documentId) {
132 		this.documentId = documentId;
133 	}
134 
135     public String getPrevDocumentId() {
136         return prevDocumentId;
137     }
138 
139     public void setPrevDocumentId(String prevDocumentId) {
140         this.prevDocumentId = prevDocumentId;
141     }
142 
143     public String getNextDocumentId() {
144         return nextDocumentId;
145     }
146 
147     public void setNextDocumentId(String nextDocumentId) {
148         this.nextDocumentId = nextDocumentId;
149     }
150 
151 	public String getTransferAccrualCategory() {
152 		return transferAccrualCategory;
153 	}
154 
155 	public void setTransferAccrualCategory(String transferAccrualCategory) {
156 		this.transferAccrualCategory = transferAccrualCategory;
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 }