use of org.mifos.application.servicefacade.CustomerSearch in project head by mifos.
the class CenterCustAction method searchTransfer.
@TransactionDemarcate(joinToken = true)
public ActionForward searchTransfer(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
cleanUpSearch(request);
CenterCustActionForm actionForm = (CenterCustActionForm) form;
String searchString = actionForm.getSearchString();
CustomerSearch searchResult = this.customerServiceFacade.search(searchString);
addSeachValues(searchString, searchResult.getOfficeId(), searchResult.getOfficeName(), request);
SessionUtils.setQueryResultAttribute(Constants.SEARCH_RESULTS, searchResult.getSearchResult(), request);
return mapping.findForward(ActionForwards.transferSearch_success.toString());
}
use of org.mifos.application.servicefacade.CustomerSearch in project head by mifos.
the class CenterCustAction method search.
/**
* invoked when searching for centers from group creation screen
*/
@Override
@TransactionDemarcate(joinToken = true)
public ActionForward search(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
ActionForward actionForward = super.search(mapping, form, request, response);
CenterCustActionForm actionForm = (CenterCustActionForm) form;
String searchString = actionForm.getSearchString();
CustomerSearch searchResult = this.customerServiceFacade.search(searchString);
addSeachValues(searchString, searchResult.getOfficeId(), searchResult.getOfficeName(), request);
SessionUtils.setQueryResultAttribute(Constants.SEARCH_RESULTS, searchResult.getSearchResult(), request);
return actionForward;
}
Aggregations