private void SearchCustomer() { CustomerSearchFlow csFlow = new CustomerSearchFlow(); ArrayList zArr = csFlow.GetSearchCustomer(GetSearchData()); gvResult.DataSource = zArr; gvResult.DataBind(); }
public void DeleteData() { double LOID; ArrayList arrLOID = new ArrayList(); CustomerSearchFlow csFlow = new CustomerSearchFlow(); bool ret = true; for (int i = 0; i < gvResult.Rows.Count; i++) { CheckBox chkItem = (CheckBox)gvResult.Rows[i].Cells[0].FindControl("chkItem"); if (chkItem.Checked == true) { LOID = Convert.ToDouble(gvResult.Rows[i].Cells[1].Text); arrLOID.Add(LOID); } } if (arrLOID.Count != 0) { ret = csFlow.DeleteData(arrLOID); } if (ret == true) { Appz.ClientAlert(Page, "·Ó¡ÒÃź¢éÍÁÙÅÅÙ¡¤éÒàÃÕºÃéÍÂ"); SearchCustomer(); } else Appz.ClientAlert(Page, csFlow.ErrorMessage); }