private void assignProductByReference() { try { ProductInfoExt oProduct = m_dlSales.getProductInfoByReference(m_jreference.getText()); if (oProduct == null) { assignProduct(null); Toolkit.getDefaultToolkit().beep(); } else { // Se anade directamente una unidad con el precio y todo assignProduct(oProduct); } } catch (BasicException eData) { assignProduct(null); MessageInf msg = new MessageInf(eData); msg.show(this); } }
private void jEditProductActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jEditProductActionPerformed assignProduct(JProductFinder.showMessage(this, m_dlSales)); } // GEN-LAST:event_jEditProductActionPerformed