1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.pm.positionappointment.web;
17
18 import java.util.List;
19 import java.util.Map;
20
21 import org.apache.commons.lang.StringUtils;
22 import org.kuali.kpme.core.lookup.KPMELookupableImpl;
23 import org.kuali.kpme.core.util.TKUtils;
24 import org.kuali.kpme.pm.service.base.PmServiceLocator;
25 import org.kuali.rice.krad.web.form.LookupForm;
26
27 public class PositionAppointmentLookupableImpl extends KPMELookupableImpl {
28
29 private static final long serialVersionUID = 4826886027602440306L;
30
31 @Override
32 public List<?> getSearchResults(LookupForm form, Map<String, String> searchCriteria, boolean bounded) {
33
34
35
36 String description = searchCriteria.get("description");
37 String fromEffdt = TKUtils.getFromDateString(searchCriteria.get("effectiveDate"));
38 String toEffdt = TKUtils.getToDateString(searchCriteria.get("effectiveDate"));
39 String active = searchCriteria.get("active");
40 String showHist = searchCriteria.get("history");
41 String positionAppointment = searchCriteria.get("positionAppointment");
42 String institution = searchCriteria.get("institution");
43 String location = searchCriteria.get("location");
44
45 return PmServiceLocator.getPositionAppointmentService().getPositionAppointmentList(positionAppointment, description,
46 institution, location, TKUtils.formatDateString(fromEffdt), TKUtils.formatDateString(toEffdt), active, showHist);
47 }
48
49 }