private string Delete(HttpContext context) { string ids = context.Request["id"]; string[] idarry = ids.Split(','); int count = 0; count = bllActivity.Delete(new ActivityFieldMappingInfo(), string.Format("ActivityID='{0}' and ExFieldIndex in({1})", activityID, ids)); if ((count == idarry.Length) && count > 0) { if (bllActivity.Update(new ActivityInfo(), "DistinctKeys=''", string.Format("ActivityID='{0}'", activityID)) > 0) { resp.Status = 1; resp.Msg = "删除成功"; } else { resp.Status = 0; resp.Msg = "删除失败"; } } else { resp.Status = 0; resp.Msg = "删除失败"; } return(ZentCloud.Common.JSONHelper.ObjectToJson(resp)); }