public Listado ( string Campos, string Condicion, string Orden ) : |
||
Campos | string | |
Condicion | string | |
Orden | string | |
Résultat |
public override DataTable Listado(string Campos, string Condicion, string Orden)
{
ConexionDb Conexion = new ConexionDb();
string OrdenFinal = " ";
if (!Orden.Equals(""))
{
OrdenFinal = " Orden by " + Orden;
}
return Conexion.ObtenerDatos("select " + Campos + " from Ingresos where " + Condicion + " " + OrdenFinal);
}
}
void LlenarGrid(string Condicion) { Ingresos Ingreso = new Ingresos(); ConsultaGridView.DataSource = Ingreso.Listado(" * ", Condicion, ""); ConsultaGridView.DataBind(); }