private void escogerSector() {
   try {
     if (this.jcboCP.getSelectedIndex() > -1) {
       produccion.TO.PrdListaSectorTO prdListaSectorTO =
           this.produccionBBSector1.getListaPrdListaSectorTO().get(this.jcboCP.getSelectedIndex());
       this.codigoSector = "'" + prdListaSectorTO.getSecCodigo() + "'";
     }
   } catch (Exception e) {
     shrimp.helper.Excepciones.guardarExcepcionesAC(
         e, getClass().getName(), mDIShrimp.getSisInfoTO());
   }
 }
示例#2
0
 private void escogerSector() {
   try {
     if (this.jcboCP.getSelectedIndex() > -1) {
       produccion.TO.PrdListaSectorTO prdListaSectorTO =
           this.produccionBBSector1.getListaPrdListaSectorTO().get(this.jcboCP.getSelectedIndex());
       this.codigoSector = prdListaSectorTO.getSecCodigo();
     } else
       javax.swing.JOptionPane.showMessageDialog(
           this, "Tiene que seleccionar un dato de la lista...\nIntente de nuevo...");
   } catch (javax.ejb.EJBException eje) {
     javax.swing.JOptionPane.showMessageDialog(
         null, "Se perdio la conexion. Contacte con el administrador...");
   } catch (Exception e) {
     shrimp.helper.Excepciones.guardarExcepcionesAC(
         e, getClass().getName(), mDIShrimp.getSisInfoTO());
   }
 }