private void b_searchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_b_searchActionPerformed
        f_payment.setText("");
        f_payment.setEnabled(false);
        d_date_first.setEnabled(true);
        d_date_last.setEnabled(true);
        rb_payment.setSelected(false);
        rb_expiry.setSelected(false);
        d_date_first.grabFocus();
        tableModel.clear();
        listPayment.clear();
        t_payment.setModel(tableModel);
        rb_date_expiry.setSelected(true);
        if(d_date_first.getDate() != null && d_date_first.getDate() != null){
            try {
                tableModel.clear();
                listPayment.clear();
                List<PaymentModel> payment = new PaymentDAO().getPaymentByDateExpiry(ut.dateFormatInsertSql(sdf.parse(sdf.format(d_date_first.getDate()))),
                        ut.dateFormatInsertSql(sdf.parse(sdf.format(d_date_last.getDate()))), Long.valueOf(this.IdBusiness));
                for(PaymentModel u : payment) {
                    try {
                        String date_expiry = ut.dateFormatReturn(u.getDate_expiry());
                        String id_truck = trucksDAO.getBoardTruckById(u.getId_truck());
                        String valor = decimal.format(u.getValor()).replace(".", ",");
                        listPayment.add(new PaymentTableModel(u.getId(), id_truck, u.getPayment(), u.getObservation(), date_expiry, valor, u.getIdentify(), u.getPaid()));
                    } catch (ParseException ex) {
                        Logger.getLogger(PaymentSearch.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
                tableModel.setData(listPayment);
                t_payment.setModel(tableModel);
                modulateTablePayment();
            } catch (ParseException ex) {
                Logger.getLogger(PaymentSearch.class.getName()).log(Level.SEVERE, null, ex);
            }
        }else if(d_date_first.getDate() == null || d_date_first.getDate() == null){
            JOptionPane.showMessageDialog(null, "Escolha uma data para continuar.", "CadoreSistemas", JOptionPane.INFORMATION_MESSAGE);
            setDate();
        }
    }//GEN-LAST:event_b_searchActionPerformed