ItEr45S07ImplantacionAplicacionItEr44S08 : Fixes the orders filter of the planner . Shows all orders when there is not filters.

This commit is contained in:
Susana Montes Pedreira 2010-02-01 12:02:11 +01:00 committed by Óscar González Fernández
parent e3236a2f2c
commit 451dc3508c

View file

@ -139,12 +139,7 @@ public class CompanyPlanningController implements Composer{
}
public void onApplyFilter() {
OrderPredicate predicate = createPredicate();
if (predicate != null) {
filterByPredicate(predicate);
} else {
showAllOrders();
}
filterByPredicate(createPredicate());
}
private OrderPredicate createPredicate() {
@ -164,11 +159,7 @@ public class CompanyPlanningController implements Composer{
private void filterByPredicate(OrderPredicate predicate) {
// Recalculate predicate
model.setConfigurationToPlanner(planner, additional,
doubleClickCommand, createPredicate());
planner.invalidate();
}
public void showAllOrders() {
doubleClickCommand, predicate);
planner.invalidate();
}