ItEr45S07ImplantacionAplicacionItEr44S08 : Fixes the orders filter of the planner . Shows all orders when there is not filters.
This commit is contained in:
parent
e3236a2f2c
commit
451dc3508c
1 changed files with 2 additions and 11 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue