示例#1
0
    protected void VerdetallePrecio(object sender, EventArgs e)

    {
        ImageButton btnSelect = ((ImageButton)sender);

        GridViewRow grdrow = (GridViewRow)((ImageButton)sender).NamingContainer;


        string _Requ_Numero      = GridView2.DataKeys[grdrow.RowIndex].Values["Requ_Numero"].ToString();
        string _Reqd_CodLinea    = GridView2.DataKeys[grdrow.RowIndex].Values["Reqd_CodLinea"].ToString();
        string _Reqs_Correlativo = GridView2.DataKeys[grdrow.RowIndex].Values["Reqs_Correlativo"].ToString();


        BL_TBL_RequerimientoSubDetalle obj = new BL_TBL_RequerimientoSubDetalle();
        DataTable dtResultado = new DataTable();


        dtResultado = obj.uspSEL_TBL_REQUERIMIENTOSUBDETALLE_PDC_HISTORIAL(_Requ_Numero, _Reqd_CodLinea, _Reqs_Correlativo);
        if (dtResultado.Rows.Count > 0)
        {
            GridView3.DataSource = dtResultado;
            GridView3.DataBind();
        }
        else
        {
            GridView3.DataSource = dtResultado;
            GridView3.DataBind();
        }
        ModalRegistro.Show();
    }