Ejemplo n.º 1
0
    /// <summary>
    /// 查看检测明细
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GridView1_RowDeleting1(object sender, GridViewDeleteEventArgs e)
    {
        string Id = this.grid1.DataKeys[e.RowIndex].Values["id"].ToString();//标志

        BProductCheckDetailBB checkDetailBB = new BProductCheckDetailBB();
        DataSet ds = new DataSet();

        try
        {
            ds = checkDetailBB.GetVList(" checkDetailId=" + Id);
            this.grid.DataSource = ds.Tables[0];
            this.grid.DataBind();
            //赋值记录条数、页面总数
        }
        finally
        {
            checkDetailBB.Dispose();
        }

        this.ClientScript.RegisterStartupScript(this.GetType(), "alert", "showFloat();", true);
    }
Ejemplo n.º 2
0
    public DataTable GetProductCheckDetail(int checkDetailId)
    {
        BProductCheckDetailBB productCheckDetailBB = new BProductCheckDetailBB();

        try
        {
            DataTable dt = new DataTable();

            dt = productCheckDetailBB.GetVList("checkDetailId=" + checkDetailId.ToString()).Tables[0];
            return dt;
        }
        finally
        {
            productCheckDetailBB.Dispose();
        }
    }