private Boolean concatenarCriterio(TextBox txt, ComboBox combo, string criterio)
{
if (this.datosCorrectos(txt, combo))
{
if (!this.huboCondicion && !this.loActivoGenerarViajes)
{
this.huboCondicion = true;
this.query += " WHERE ";
}
else
this.query += " AND ";
this.query += nombreColumna(combo.Text) + criterio;
string mensaje = "'" + txt.Text + "'" + " sobre el campo " + combo.Text;
if (this.filtro1)
{
listaFiltros.Items.Add("Se ha agregado el filtro por contenido del valor ");
}
else
{
listaFiltros.Items.Add("Se ha agregado el filtro por igualdad del valor ");
}
listaFiltros.Items.Add(mensaje);
return true;
}
return false;
}