Пример #1
0
    protected void btnBuscarDetalle_Click(object sender, EventArgs e)
    {
        string formaPago      = "";
        string identificacion = "";
        string referencia     = "";
        string estado         = "";
        int    encSop_Id      = int.Parse(Session["encSop_Id"].ToString());

        if (txtBuscarFormaPago.Text != "")
        {
            formaPago = txtBuscarFormaPago.Text;
        }

        if (txtBuscarIdentificacion.Text != "")
        {
            identificacion = txtBuscarIdentificacion.Text;
        }

        if (txtBuscarReferencia.Text != "")
        {
            referencia = txtBuscarReferencia.Text;
        }

        if (txtBuscarEstDetalle.Text != "")
        {
            estado = txtBuscarEstDetalle.Text;
        }

        DataTable dt = AdministrarSoportesBancarios.BuscarSoporteBancario(formaPago, identificacion, referencia, estado, encSop_Id);

        grvConsutarSop.DataSource = dt;
        grvConsutarSop.DataBind();
    }