default:
return getValueAtOrder(rowIndex, columnIndex);
}*/
}
private Object getValueAtConfirmReport(int rowIndex, int columnIndex) {
Order order = (Order) getRow(rowIndex);
switch (columnIndex) {
case 0:
return order.getCustomer();
case 1:
return order.getOrderNr();
case 2:
return order.getDeliveryAddress();
case 3:
return order.getPostalCode();
case 4:
return order.getPostOffice();
case 5:
return order.getConstructionType();
case 6:
return order.getTransport();
case 7:
return order.getCost("Egenproduksjon", "Kunde");
case 8:
return order.getCost("Frakt", "Kunde");
case 9:
return order.getCost("Montering", "Kunde");
case 10:
return order.getCost("Egenproduksjon", "Intern");
case 11:
return order.getContributionRate();
default:
throw new IllegalStateException("Unknown column");
}
}