View Javadoc

1   /**
2    * Copyright 2004-2012 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.time.base.web.TkCommonCalendarForm;
20  import org.kuali.hr.time.calendar.CalendarEntries;
21  import org.kuali.hr.time.timesheet.TimesheetDocument;
22  
23  import javax.servlet.http.HttpServletRequest;
24  import java.util.Map;
25  
26  public class TimesheetActionForm extends TkCommonCalendarForm {
27  
28  	/**
29  	 *
30  	 */
31  	private static final long serialVersionUID = 6938733178369007689L;
32  	private TimesheetDocument timesheetDocument;
33  
34  
35  	/**Job Number -> Formatted department earn codes  */
36  	private Map<Long,String> earnCodeDescriptions;
37  	/** String (concat(job number, work_area, task)) -> Formatted Assignment Descriptions */
38  	private Map<String,String>  assignmentDescriptions;
39  	private CalendarEntries payCalendarDates;
40  	private String selectedAssignment;
41  	private String selectedEarnCode;
42  
43  	private String calNav;
44  	private String documentId;
45  
46  	private java.util.Date beginPeriodDateTime;
47  	private java.util.Date endPeriodDateTime;
48  
49      private String prevDocumentId;
50      private String nextDocumentId;
51  
52  	@Override
53  	public void reset(ActionMapping mapping, HttpServletRequest request) {
54  		super.reset(mapping, request);
55  		//setDocumentId("");
56  	}
57  
58  	public TimesheetDocument getTimesheetDocument() {
59  		return timesheetDocument;
60  	}
61  
62  	public void setTimesheetDocument(TimesheetDocument timesheetDocument) {
63  		this.timesheetDocument = timesheetDocument;
64  	}
65  
66  	public Map<Long,String> getEarnCodeDescriptions() {
67  		return earnCodeDescriptions;
68  	}
69  
70  	public void setEarnCodeDescriptions(Map<Long,String> earnCodeDescriptions) {
71  		this.earnCodeDescriptions = earnCodeDescriptions;
72  	}
73  
74  	public Map<String,String>  getAssignmentDescriptions() {
75  		return assignmentDescriptions;
76  	}
77  
78  	public void setAssignmentDescriptions(Map<String,String>  assignmentDescriptions) {
79  		this.assignmentDescriptions = assignmentDescriptions;
80  	}
81  
82  	public String getSelectedAssignment() {
83  		return selectedAssignment;
84  	}
85  
86  	public void setSelectedAssignment(String selectedAssignment) {
87  		this.selectedAssignment = selectedAssignment;
88  	}
89  
90  	public String getSelectedEarnCode() {
91  		return selectedEarnCode;
92  	}
93  
94  	public void setSelectedEarnCode(String selectedEarnCode) {
95  		this.selectedEarnCode = selectedEarnCode;
96  	}
97  
98  	public CalendarEntries getPayCalendarDates() {
99  		return payCalendarDates;
100 	}
101 
102 	public void setPayCalendarDates(CalendarEntries payCalendarDates) {
103 		this.payCalendarDates = payCalendarDates;
104 	}
105 
106 	public String getCalNav() {
107 		return calNav;
108 	}
109 
110 	public void setCalNav(String calNav) {
111 		this.calNav = calNav;
112 	}
113 
114 	public java.util.Date getBeginPeriodDateTime() {
115 		return getPayCalendarDates().getBeginPeriodDateTime();
116 	}
117 
118 	public java.util.Date getEndPeriodDateTime() {
119 		return getPayCalendarDates().getEndPeriodDateTime();
120 	}
121 
122 	public String getDocumentId() {
123 		return documentId;
124 	}
125 
126 	public void setDocumentId(String documentId) {
127 		this.documentId = documentId;
128 	}
129 
130     public String getPrevDocumentId() {
131         return prevDocumentId;
132     }
133 
134     public void setPrevDocumentId(String prevDocumentId) {
135         this.prevDocumentId = prevDocumentId;
136     }
137 
138     public String getNextDocumentId() {
139         return nextDocumentId;
140     }
141 
142     public void setNextDocumentId(String nextDocumentId) {
143         this.nextDocumentId = nextDocumentId;
144     }
145 }