}
}
void generateAssemblyReport() throws ProTransException {
Assembly assembly = (Assembly) assemblySelectionList
.getElementAt(tableOrders
.convertRowIndexToModel(assemblySelectionList
.getSelectionIndex()));
if (assembly != null) {
managerRepository.getOrderManager().lazyLoadOrder(
assembly.getOrder(),
new LazyLoadOrderEnum[] { LazyLoadOrderEnum.ORDER_COSTS,
LazyLoadOrderEnum.COMMENTS });
List<Ordln> vismaOrderLines = managerRepository.getOrdlnManager()
.findByOrderNr(assembly.getOrder().getOrderNr());
AssemblyReport assemblyReport = assemblyReportFactory.create(
assembly.getOrder(), vismaOrderLines);
mailConfig.addToHeading(" for ordrenummer "
+ assembly.getOrder().getOrderNr());
ReportViewer reportViewer = new ReportViewer("Montering",
mailConfig);
List<AssemblyReport> assemblyReportList = new ArrayList<AssemblyReport>();
assemblyReportList.add(assemblyReport);