1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.core.salarygroup.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.KPMELookupableHelper;
23 import org.kuali.kpme.core.service.HrServiceLocator;
24 import org.kuali.kpme.core.util.TKUtils;
25 import org.kuali.rice.krad.bo.BusinessObject;
26
27 public class SalaryGroupLookupableHelper extends KPMELookupableHelper {
28
29 @Override
30 public List<? extends BusinessObject> getSearchResults(Map<String, String> fieldValues) {
31 String hrSalGroup = fieldValues.get("hrSalGroup");
32 String fromEffdt = TKUtils.getFromDateString(fieldValues.get("effectiveDate"));
33 String toEffdt = TKUtils.getToDateString(fieldValues.get("effectiveDate"));
34 String active = fieldValues.get("active");
35 String showHist = fieldValues.get("history");
36 String institution = fieldValues.get("institution");
37 String location = fieldValues.get("location");
38 String leavePlan = fieldValues.get("leavePlan");
39 String benefitsEligible = fieldValues.get("benefitsEligible");
40 String leaveEligible = fieldValues.get("leaveEligible");
41 String percentTime = fieldValues.get("percentTime");
42
43 if (StringUtils.equals(hrSalGroup, "%")) {
44 hrSalGroup = "";
45 }
46
47 return HrServiceLocator.getSalaryGroupService().getSalaryGroups(hrSalGroup, institution, location, leavePlan, TKUtils.formatDateString(fromEffdt),
48 TKUtils.formatDateString(toEffdt), active, showHist, benefitsEligible, leaveEligible, percentTime);
49 }
50 }