private void DoBatchDelete() { IList <object> idList = RequestData.GetList <object>("IdList"); if (idList != null && idList.Count > 0) { PartQualityReport.DoBatchDelete(idList.ToArray()); } }
protected void Page_Load(object sender, EventArgs e) { PartQualityReport ent = null; switch (this.RequestAction) { case RequestActionEnum.Delete: ent = this.GetTargetData <PartQualityReport>(); ent.DoDelete(); this.SetMessage("删除成功!"); break; default: if (RequestActionString == "batchdelete") { DoBatchDelete(); } else { DoSelect(); } break; } }