*/
void showMissingCollies(WindowInterface window) {
Assembly assembly = (Assembly) assemblySelectionList.getSelection();
if (assembly != null) {
Order order = assembly.getOrder();
Deviation deviation = assembly.getDeviation();
List<OrderLine> missing = null;
if (order != null) {
orderViewHandler.lazyLoadOrder(order, new LazyLoadOrderEnum[] {
LazyLoadOrderEnum.ORDER_LINES,
LazyLoadOrderEnum.COMMENTS,
LazyLoadOrderEnum.ORDER_LINE_ORDER_LINES });
missing = order.getMissingCollies();
} else {
DeviationManager deviationManager = (DeviationManager) ModelUtil
.getBean("deviationManager");
deviationManager.lazyLoad(deviation,
new LazyLoadDeviationEnum[] {
LazyLoadDeviationEnum.ORDER_LINES,
LazyLoadDeviationEnum.COMMENTS,
LazyLoadDeviationEnum.ORDER_LINE_ORDER_LINES });
missing = deviation.getMissingCollies();
}
if (missing != null) {
Util
.showOptionsDialog(window, missing, "Mangler", false,