public List<ProductExt_W49> getByEnterpriser(Enterprise e) {
   List<ProductExt_W49> list = selectAll();
   List<ProductExt_W49> lr = new ArrayList<ProductExt_W49>();
   for (int i = 0; i < list.size(); i++) {
     Product p = productBN.getById(list.get(i).getProductIdActual());
     if (p.getEnterpriseIdActual() == e.getId()) {
       lr.add(list.get(i));
     }
   }
   return lr;
 }
  @Override
  protected void addNotify() {
    super.addNotify();
    if (enterprise != null) {
      list = productBN.getByEnterprise(enterprise);
      Vector instr = new Vector();
      for (int i = 0; i < list.size(); i++) {
        if (list.get(i).getProductGroupIdActual() == Product.getId()) {
          Product product1 = new Product();
          product1.setProductName(list.get(i).getProductName());
          // Product1.setDirector(list.get(i).getDirector());
          product1.setProductGroupIdActual(list.get(i).getProductGroupIdActual());
          instr.addElement(product1);
        }
      }

      Product[] products = new Product[instr.size()];
      for (int i = 0; i < instr.size(); i++) {
        products[i] = (Product) instr.elementAt(i);
      }
      setKeys(products);
    }
  }