Ejemplo n.º 1
0
 public void addOrderQc() throws IOException {
   eOrderQc.setEEmployee(eEmployeeFacade.find(employeeId));
   eOrderQc.setEOrder(eOrderFacade.find(requestorder.getOrderId()));
   eOrderQcFacade.create(eOrderQc);
   eOrderQc = new EOrderQc();
   setTransaction();
 }
Ejemplo n.º 2
0
  public boolean setColor(OrderListClass order) {
    System.out.println("inside setcolor...............");
    List<EOrderQc> qlist =
        em.createNamedQuery("EOrderQc.findByOrder")
            .setParameter("eOrder", eOrderFacade.find(order.getOrderId()))
            .getResultList();
    renderRow = false;
    if (!qlist.isEmpty()) {
      renderRow = true;
    }

    return renderRow;
  }