public void addOrderQc() throws IOException { eOrderQc.setEEmployee(eEmployeeFacade.find(employeeId)); eOrderQc.setEOrder(eOrderFacade.find(requestorder.getOrderId())); eOrderQcFacade.create(eOrderQc); eOrderQc = new EOrderQc(); setTransaction(); }
public void forDialog(OrderListClass orderListClass) { requestorder = orderListClass; employeList.clear(); selectEmployeeList.clear(); employeList = eEmployeeFacade.findAll(); for (int i = 0; i < employeList.size(); i++) { if (employeList.get(i).getEDesignation().getDesignation().equals("Quality Manager")) { selectEmployeeList.add( new SelectItem(employeList.get(i).getId(), employeList.get(i).getEmpName())); } } }