public void ListarFlujo() { Controlador.ControladorFlujoDeTareas controlador1 = new Controlador.ControladorFlujoDeTareas(); DataTable dt = new DataTable(); dt = controlador1.ListarFlujo(); GridFlujoTarea.DataSource = dt; GridFlujoTarea.DataBind(); }
public void FiltrarFLujoTarea() { Conexion conexion = new Conexion(); OracleConnection conn = new OracleConnection(); conn = conexion.getConn(); conn.Open(); OracleCommand comando = new OracleCommand("SELECT * FROM FLUJO_TAREA WHERE ID_FLUJO_TAREA = '" + TXTBuscar.Text + "'", conn); OracleDataAdapter da = new OracleDataAdapter(comando); DataSet ds = new DataSet(); da.Fill(ds); conn.Clone(); GridFlujoTarea.DataSource = ds; GridFlujoTarea.DataBind(); }