protected void GvList_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "buildBill") { string supplyID = e.CommandArgument.ToString(); UseMatBLL bll = BLLFactory.CreateBLL <UseMatBLL>(); bll.Build(supplyID); ClientScript.RegisterStartupScript(this.GetType(), "myjs", "MS('提示', '生成完成')", true); } this.BindData(); }