KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > event_registrations > struts > ViewRegistrationsForm


1 package com.dotmarketing.portlets.event_registrations.struts;
2
3 import java.text.SimpleDateFormat JavaDoc;
4 import java.util.Date JavaDoc;
5 import org.apache.struts.validator.ValidatorForm;
6 import com.dotmarketing.util.UtilMethods;
7
8 public class ViewRegistrationsForm extends ValidatorForm {
9
10     private static final long serialVersionUID = 1L;
11     private String JavaDoc eventInode;
12     private String JavaDoc locationInode;
13     private Date JavaDoc startDate;
14     private Date JavaDoc endDate;
15     private String JavaDoc strStartDate;
16     private String JavaDoc strEndDate;
17     private String JavaDoc firstName;
18     private String JavaDoc lastName;
19     private String JavaDoc system;
20     private String JavaDoc facility;
21     private String JavaDoc facilityTitle;
22     private String JavaDoc registrationNumber;
23     private String JavaDoc orderBy;
24     private int institute;
25     private String JavaDoc selectedColumn;
26     private String JavaDoc selectedDirection;
27     private String JavaDoc invoiceNumber;
28     private int paymentStatus;
29     private int[] paymentStatusArray;
30     
31     public ViewRegistrationsForm() {
32         eventInode = "0";
33         locationInode = "";
34         strStartDate = "";
35         strEndDate = "";
36         firstName = "";
37         lastName = "";
38         system = "";
39         facility = "";
40         facilityTitle = "";
41         registrationNumber = "";
42         institute = 1;
43     }
44     
45     /**
46      * @return Returns the endDate.
47      */

48     public Date JavaDoc getEndDate() {
49         return endDate;
50     }
51     /**
52      * @param endDate The endDate to set.
53      */

54     public void setEndDate(Date JavaDoc endDate) {
55         this.endDate = endDate;
56     }
57     /**
58      * @return Returns the facility.
59      */

60     public String JavaDoc getFacility() {
61         return facility;
62     }
63     /**
64      * @param facility The facility to set.
65      */

66     public void setFacility(String JavaDoc facility) {
67         if (facility!=null) {
68             this.facility = facility;
69         }
70     }
71     /**
72      * @return Returns the firstName.
73      */

74     public String JavaDoc getFirstName() {
75         return firstName;
76     }
77     /**
78      * @param firstName The firstName to set.
79      */

80     public void setFirstName(String JavaDoc firstName) {
81         if (firstName!=null)
82             this.firstName = firstName;
83     }
84     /**
85      * @return Returns the lastName.
86      */

87     public String JavaDoc getLastName() {
88         return lastName;
89     }
90     /**
91      * @param lastName The lastName to set.
92      */

93     public void setLastName(String JavaDoc lastName) {
94         if (lastName!=null)
95             this.lastName = lastName;
96     }
97     /**
98      * @return Returns the startDate.
99      */

100     public Date JavaDoc getStartDate() {
101         return startDate;
102     }
103     /**
104      * @param startDate The startDate to set.
105      */

106     public void setStartDate(Date JavaDoc startDate) {
107         this.startDate = startDate;
108     }
109     /**
110      * @return Returns the strEndDate.
111      */

112     public String JavaDoc getStrEndDate() {
113         if (endDate!=null && !UtilMethods.isSet(strEndDate)) {
114             return new SimpleDateFormat JavaDoc("MM/dd/yyyy").format(endDate);
115         }
116         return strEndDate;
117     }
118     /**
119      * @param strEndDate The strEndDate to set.
120      */

121     public void setStrEndDate(String JavaDoc strEndDate) {
122         if (strEndDate!=null)
123             this.strEndDate = strEndDate;
124         try {
125             this.endDate = new SimpleDateFormat JavaDoc("MM/dd/yyyy").parse(strEndDate);
126         }
127         catch(Exception JavaDoc ex) {
128         }
129     }
130     /**
131      * @return Returns the strStartDate.
132      */

133     public String JavaDoc getStrStartDate() {
134         if (startDate!=null && !UtilMethods.isSet(strStartDate)) {
135             return new SimpleDateFormat JavaDoc("MM/dd/yyyy").format(startDate);
136         }
137         return strStartDate;
138     }
139     /**
140      * @param strStartDate The strStartDate to set.
141      */

142     public void setStrStartDate(String JavaDoc strStartDate) {
143         if (strStartDate!=null)
144             this.strStartDate = strStartDate;
145         try {
146             this.startDate = new SimpleDateFormat JavaDoc("MM/dd/yyyy").parse(strStartDate);
147         }
148         catch(Exception JavaDoc ex) {
149         }
150     }
151     /**
152      * @return Returns the system.
153      */

154     public String JavaDoc getSystem() {
155         return system;
156     }
157     /**
158      * @param system The system to set.
159      */

160     public void setSystem(String JavaDoc system) {
161         if (system!=null)
162             this.system = system;
163     }
164     /**
165      * @return Returns the eventInode.
166      */

167     public String JavaDoc getEventInode() {
168         return eventInode;
169     }
170     /**
171      * @param eventInode The eventInode to set.
172      */

173     public void setEventInode(String JavaDoc eventInode) {
174         this.eventInode = eventInode;
175     }
176     /**
177      * @return Returns the locationInode.
178      */

179     public String JavaDoc getLocationInode() {
180         return locationInode;
181     }
182     /**
183      * @param locationInode The locationInode to set.
184      */

185     public void setLocationInode(String JavaDoc locationInode) {
186         this.locationInode = locationInode;
187     }
188     /**
189      * @return Returns the facilityTitle.
190      */

191     public String JavaDoc getFacilityTitle() {
192         return facilityTitle;
193     }
194     /**
195      * @param facilityTitle The facilityTitle to set.
196      */

197     public void setFacilityTitle(String JavaDoc facilityTitle) {
198         if (facilityTitle!=null)
199             this.facilityTitle = facilityTitle;
200     }
201     /**
202      * @return Returns the registrationNumber.
203      */

204     public String JavaDoc getRegistrationNumber() {
205         return registrationNumber;
206     }
207     /**
208      * @param registrationNumber The registrationNumber to set.
209      */

210     public void setRegistrationNumber(String JavaDoc registrationNumber) {
211         if (registrationNumber!=null)
212             this.registrationNumber = registrationNumber;
213     }
214     /**
215      * @return Returns the institute.
216      */

217     public int getInstitute() {
218         return institute;
219     }
220     /**
221      * @param institute The institute to set.
222      */

223     public void setInstitute(int institute) {
224         this.institute = institute;
225     }
226     public String JavaDoc getOrderBy() {
227         return orderBy;
228     }
229     public void setOrderBy(String JavaDoc orderBy) {
230         this.orderBy = orderBy;
231     }
232     public String JavaDoc getSelectedColumn() {
233         return selectedColumn;
234     }
235     public void setSelectedColumn(String JavaDoc selectedColumn) {
236         this.selectedColumn = selectedColumn;
237     }
238     public String JavaDoc getSelectedDirection() {
239         return selectedDirection;
240     }
241     public void setSelectedDirection(String JavaDoc selectedDirection) {
242         this.selectedDirection = selectedDirection;
243     }
244
245     public String JavaDoc getInvoiceNumber() {
246         return invoiceNumber;
247     }
248
249     public void setInvoiceNumber(String JavaDoc invoiceNumber) {
250         this.invoiceNumber = invoiceNumber;
251     }
252
253     public int getPaymentStatus() {
254         return paymentStatus;
255     }
256
257     public void setPaymentStatus(int paymentStatus) {
258         this.paymentStatus = paymentStatus;
259     }
260
261     public int[] getPaymentStatusArray() {
262         return paymentStatusArray;
263     }
264
265     public void setPaymentStatusArray(int[] paymentStatusArray) {
266         this.paymentStatusArray = paymentStatusArray;
267     }
268 }
269
Popular Tags