protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "del") { Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.FinanceDelTuihui); ChangeLogs cl = new ChangeLogs("ChongHong", "ltrim(rtrim(str(ID)))"); cl.AddRecord(int.Parse(e.CommandArgument.ToString())); //获取当前选择的行 GridViewRow row = (GridViewRow)((LinkButton)e.CommandSource).NamingContainer; //删除 bool blean = ReleaseBLL.DelChongHong(int.Parse(e.CommandArgument.ToString()), double.Parse(row.Cells[4].Text), row.Cells[2].Text); if (blean) { cl.DeletedIntoLogs(ChangeCategory.company17, e.CommandArgument.ToString(), ENUM_USERTYPE.objecttype5); Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("000749", "删除成功!") + "')</script>"); } GetShopList(); } }