OrderModel orderModel = null;
if (orders.size() != 0) {
mainPackageVList.addAll(orders);
}
orderModel = new OrderModel(new Order(), false, false, true, null, null);
presentationModelPackable = new PresentationModel(orderModel);
// colliListViewHandler.setPresentationModel(presentationModelPackable);
orderLineSelectionList.addPropertyChangeListener(
SelectionInList.PROPERTYNAME_SELECTION_INDEX,
new OrderLineSelectionListener());
SumOrderReadyV sum = managerRepository.getSumOrderReadyVManager()
.findByDate(Calendar.getInstance().getTime());
if (sum == null) {
sum = new SumOrderReadyV(null, BigDecimal.valueOf(0), null, null,
null);
}
presentationModelSum = new PresentationModel(new SumOrderReadyVModel(
sum));
SumOrderReadyV sumWeek = managerRepository.getSumOrderReadyVManager()
.findSumByWeek(currentYear, currentWeek);
if (sumWeek == null) {
sumWeek = new SumOrderReadyV(null, BigDecimal.valueOf(0), null,
null, null);
}
presentationModelWeekSum = new PresentationModel(
new SumOrderReadyVModel(sumWeek));
Budget productionBudget = null;
ProductAreaGroup productAreaGroup = (ProductAreaGroup) productAreaGroupModel
.getValue(ProductAreaGroupModel.PROPERTY_PRODUCT_AREA_GROUP);
productionBudget = managerRepository.getBudgetManager()
.findByYearAndWeekPrProductAreaGroup(currentYear, currentWeek,
productAreaGroup,BudgetType.PRODUCTION);
if (productionBudget == null) {
productionBudget = new Budget(null, null, null,
BigDecimal.valueOf(0), null,null);
}
presentationModelBudget = new PresentationModel(
new ProductionBudgetModel(productionBudget));
postShipmentList.clear();
List<PostShipment> postShipments = managerRepository
.getPostShipmentManager().findAllNotSent();