myArrayList1 = new ArrayList();
for (int i = 0; i < GridView1.Rows.Count; i++)
{
CheckBox myCheckBox = GridView1.Rows[i].Cells[0].FindControl("gvChkBox") as CheckBox;
if (myCheckBox != null && myCheckBox.Checked == true)
{
myArrayList1.Add("DELETE from TABLE where TiaoJian=" + GridView1.Rows[i].Cells[1].Text.ToString());
int Fhz = 0;
if (types == "1")
{
Fhz = myBusinessOperation.bGetInt(myArrayList1);
}
else
{
Fhz = myBusinessOperation.Oracle_GetInt(myArrayList1);
}
if (Fhz > 0)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert1", "<script>alert('删除成功!');</script>");
}
}
}