private void jTextFieldSearchKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldSearchKeyTyped
        char c = evt.getKeyChar();
        switch (newSelection) {
            case SEARCH_TYPE_INN:
                if (!(Character.isDigit(c) || (c == KeyEvent.VK_BACK_SPACE) || c == KeyEvent.VK_DELETE)) {
                    getToolkit().beep();
                    evt.consume();
                }
                break;
            case SEARCH_TYPE_FIO_DATE:
                if (!(Character.isLetter(c) || (c == KeyEvent.VK_SPACE) ||c == KeyEvent.VK_BACK_SPACE)) {
                  getToolkit().beep();
                  evt.consume();
              } break;
        }
    }//GEN-LAST:event_jTextFieldSearchKeyTyped