private void campoCodSupKeyPressed( java.awt.event.KeyEvent evt) { // GEN-FIRST:event_campoCodSupKeyPressed if (evt.getKeyCode() == KeyEvent.VK_ENTER) { String cod = campoCodSup.getText(); int codS = Integer.parseInt(cod); String nome = ps.selectComboFuncionario(codS); campoNomeSup.setText(nome); } } // GEN-LAST:event_campoCodSupKeyPressed
public void preencheCampos(areasBean ab) { Object codigoArea = ab.getCodarea(); String codA = "" + codigoArea; campoCod.setText(codA); Object codigoSetor = ab.getCodsetor(); String codS = "" + codigoSetor; campoCodSetor.setText(codS); campoDescicao.setText(ab.getDescricao()); campoDataAltera.setText(ab.getDataAltera()); campoUserAltera.setText(ab.getUserAltera()); campoDataInclusao.setText(ab.getUserDataInclusao()); campoUserInclusao.setText(ab.getUserInclusao()); Object codsu = ab.getCodSupervisor(); int nomeS = Integer.parseInt(codS); String codSuper = "" + codsu; campoCodSup.setText(codSuper); campoNomeSup.setText(ps.selectComboFuncionario(nomeS)); campoFiscaisL.setText(ab.getFiscaisL()); campoFiscaisR.setText(ab.getFiscaisR()); campoMunicipio.setText(ab.getMunicipio()); campoExtensao.setText(ab.getExtensao()); campoSigla.setText(ab.getSigla()); campoRuas.setText(ab.getRuas()); }