Esempio n. 1
0
 @Override
 public EstateSearchWrapper getEstateSearchWrapper() {
   EstateSearchWrapper wrapper = new EstateSearchWrapper();
   wrapper.setStatusSearchTypeId(BaseListBoxUtils.getSelectedValueAsInteger(estateStatusLB));
   Integer oId = BaseListBoxUtils.getSelectedValueAsInteger(officesLB);
   if (oId != null && oId > 0) wrapper.setOfficeId(oId);
   Integer bId = BaseListBoxUtils.getSelectedValueAsInteger(brokersLB);
   if (bId != null && bId > 0) wrapper.setBrokerId(bId);
   return wrapper;
 }
Esempio n. 2
0
 @Override
 public void setEstateSearchWrapper(EstateSearchWrapper wrapper) {
   if (wrapper.getStatusSearchTypeId() != null)
     BaseListBoxUtils.setSelectedItemByValue(estateStatusLB, "" + wrapper.getStatusSearchTypeId());
 }