presentationModel = new PresentationModel(
new ExcelReportSettingDeviation(excelReportType));
JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
.getBean("jobFunctionManager");
DeviationStatusManager deviationStatusManager = (DeviationStatusManager) ModelUtil
.getBean("deviationStatusManager");
// ProductAreaManager productAreaManager = (ProductAreaManager)
// ModelUtil.getBean("productAreaManager");
deviationFunctionList = new ArrayList<JobFunction>();
List<JobFunction> functions = jobFunctionManager.findAll();
if (functions != null) {
for (JobFunction function : functions) {
jobFunctionManager
.lazyLoad(function, new LazyLoadEnum[][] { {
LazyLoadEnum.FUNCTION_CATEGORIES,
LazyLoadEnum.NONE } });
}
deviationFunctionList.addAll(functions);
deviationFunctionList.add(0, null);
}
functionCategoryList = new ArrayListModel();
deviationStatusList = deviationStatusManager.findAll();
deviationStatusList.add(0, null);
ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
.getBean("productAreaGroupManager");
areas = productAreaGroupManager.findAll();