1 package com.dotmarketing.portlets.event_registrations.struts; 2 3 import java.text.SimpleDateFormat ; 4 import java.util.Date ; 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 eventInode; 12 private String locationInode; 13 private Date startDate; 14 private Date endDate; 15 private String strStartDate; 16 private String strEndDate; 17 private String firstName; 18 private String lastName; 19 private String system; 20 private String facility; 21 private String facilityTitle; 22 private String registrationNumber; 23 private String orderBy; 24 private int institute; 25 private String selectedColumn; 26 private String selectedDirection; 27 private String 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 48 public Date getEndDate() { 49 return endDate; 50 } 51 54 public void setEndDate(Date endDate) { 55 this.endDate = endDate; 56 } 57 60 public String getFacility() { 61 return facility; 62 } 63 66 public void setFacility(String facility) { 67 if (facility!=null) { 68 this.facility = facility; 69 } 70 } 71 74 public String getFirstName() { 75 return firstName; 76 } 77 80 public void setFirstName(String firstName) { 81 if (firstName!=null) 82 this.firstName = firstName; 83 } 84 87 public String getLastName() { 88 return lastName; 89 } 90 93 public void setLastName(String lastName) { 94 if (lastName!=null) 95 this.lastName = lastName; 96 } 97 100 public Date getStartDate() { 101 return startDate; 102 } 103 106 public void setStartDate(Date startDate) { 107 this.startDate = startDate; 108 } 109 112 public String getStrEndDate() { 113 if (endDate!=null && !UtilMethods.isSet(strEndDate)) { 114 return new SimpleDateFormat ("MM/dd/yyyy").format(endDate); 115 } 116 return strEndDate; 117 } 118 121 public void setStrEndDate(String strEndDate) { 122 if (strEndDate!=null) 123 this.strEndDate = strEndDate; 124 try { 125 this.endDate = new SimpleDateFormat ("MM/dd/yyyy").parse(strEndDate); 126 } 127 catch(Exception ex) { 128 } 129 } 130 133 public String getStrStartDate() { 134 if (startDate!=null && !UtilMethods.isSet(strStartDate)) { 135 return new SimpleDateFormat ("MM/dd/yyyy").format(startDate); 136 } 137 return strStartDate; 138 } 139 142 public void setStrStartDate(String strStartDate) { 143 if (strStartDate!=null) 144 this.strStartDate = strStartDate; 145 try { 146 this.startDate = new SimpleDateFormat ("MM/dd/yyyy").parse(strStartDate); 147 } 148 catch(Exception ex) { 149 } 150 } 151 154 public String getSystem() { 155 return system; 156 } 157 160 public void setSystem(String system) { 161 if (system!=null) 162 this.system = system; 163 } 164 167 public String getEventInode() { 168 return eventInode; 169 } 170 173 public void setEventInode(String eventInode) { 174 this.eventInode = eventInode; 175 } 176 179 public String getLocationInode() { 180 return locationInode; 181 } 182 185 public void setLocationInode(String locationInode) { 186 this.locationInode = locationInode; 187 } 188 191 public String getFacilityTitle() { 192 return facilityTitle; 193 } 194 197 public void setFacilityTitle(String facilityTitle) { 198 if (facilityTitle!=null) 199 this.facilityTitle = facilityTitle; 200 } 201 204 public String getRegistrationNumber() { 205 return registrationNumber; 206 } 207 210 public void setRegistrationNumber(String registrationNumber) { 211 if (registrationNumber!=null) 212 this.registrationNumber = registrationNumber; 213 } 214 217 public int getInstitute() { 218 return institute; 219 } 220 223 public void setInstitute(int institute) { 224 this.institute = institute; 225 } 226 public String getOrderBy() { 227 return orderBy; 228 } 229 public void setOrderBy(String orderBy) { 230 this.orderBy = orderBy; 231 } 232 public String getSelectedColumn() { 233 return selectedColumn; 234 } 235 public void setSelectedColumn(String selectedColumn) { 236 this.selectedColumn = selectedColumn; 237 } 238 public String getSelectedDirection() { 239 return selectedDirection; 240 } 241 public void setSelectedDirection(String selectedDirection) { 242 this.selectedDirection = selectedDirection; 243 } 244 245 public String getInvoiceNumber() { 246 return invoiceNumber; 247 } 248 249 public void setInvoiceNumber(String 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 |