@Override
  public void actionPerformed(ActionEvent e) {

    if (e.getSource() == vfiltro.getChFecha()) {
      if (vfiltro.getChFecha().isSelected()) {
        vfiltro.getTxtDesde().setEnabled(true);
        vfiltro.getTxtHasta().setEnabled(true);
        fecha = 1;
      } else {
        vfiltro.getTxtDesde().setEnabled(false);
        vfiltro.getTxtHasta().setEnabled(false);
        fecha = 0;
      }
    }

    if (e.getSource() == vfiltro.getChProve()) {
      if (vfiltro.getChProve().isSelected()) {
        vfiltro.getTxtPromotor().setEnabled(true);
        vfiltro.getBtmProveedor().setEnabled(true);
        promotor = 1;
      } else {
        vfiltro.getTxtPromotor().setEnabled(false);
        vfiltro.getBtmProveedor().setEnabled(false);
        promotor = 0;
      }
    }

    if (e.getSource() == vfiltro.getBtmProveedor()) {
      ListPromotor vProm = new ListPromotor("Promotor", this.vfiltro);
      centrarFrm(vProm, VisorMDI.getFrmMenu());
      content.add(vProm); // Agregamos el frame al escritorio
      try {
        vProm.setSelected(true); // Decimos que comience Enfocado			
      } catch (PropertyVetoException e1) {
      }
    }

    if (e.getSource() == vfiltro.getBtmBuscar()) {

      String path = "report/precintos/rPrecintosAC.jasper";
      String titulo = "Precintos por Ente/Tecnico";
      String strSql = "";
      String estatus = vfiltro.getCmbEstatus().getSelectedItem().toString();

      strSql = estatus;

      if (fecha == 1 && promotor == 1) {

        strSql =
            strSql
                + " AND fecha_registro BETWEEN '"
                + ValidarCampos.soloFecha(vfiltro.getTxtDesde().getDate())
                + "' AND '"
                + ValidarCampos.soloFecha(vfiltro.getTxtHasta().getDate())
                + "' AND codigo_promotor="
                + vfiltro.getTxtPromotor().getText();

      } else if (fecha == 1 && promotor == 0) {

        strSql =
            strSql
                + " AND fecha_registro BETWEEN '"
                + ValidarCampos.soloFecha(vfiltro.getTxtDesde().getDate())
                + "' AND '"
                + ValidarCampos.soloFecha(vfiltro.getTxtHasta().getDate())
                + "'";

      } else if (fecha == 0 && promotor == 1) {

        strSql = strSql + " AND codigo_promotor=" + vfiltro.getTxtPromotor().getText();
      }

      Precinto modelo = new Precinto();
      List<PrecintosPromotor> lista = modelo.listPrecintoByFiltro(strSql);
      DSPrecintosEnte ds = new DSPrecintosEnte(lista);
      ViewReport report = new ViewReport();
      report.visualizar(ds, path, titulo);
      ds = null;
      modelo = null;
      lista = null;
    }
  }
 public Controller_filtro(FiltroReportPrecinto vista) {
   this.content = VisorMDI.getFrmMenu().formMdi;
   this.perDao = new PermisosDao();
   this.vfiltro = vista;
 }