public ActionResult ReportCreate_TaskCreate(string sWatchIDs) { ReportManage man = new ReportManage(); List <tblReportInfo> list = man.GetRecordsByID <tblReportInfo>(sWatchIDs); bool flag = false; string sReturnWatchIDs = sWatchIDs; foreach (tblReportInfo model in list) { if (model.HandleFlag == "处理完成") { flag = true; List <string> t = sReturnWatchIDs.Split(CosValue.SPLITOPERATOR2).ToList(); t.Remove(model.ID.ToString()); if (t.Count > 0) { sReturnWatchIDs = string.Join(CosValue.SPLITOPERATOR2.ToString(), t.ToArray()); } else { sReturnWatchIDs = ""; TaskManager task = this.GetCmp <TaskManager>("ReportCreate_Task"); task.StopTask("ServerTime"); } SetHiddenValue("ReportCreate_NowWatchIDs", sReturnWatchIDs); } } if (flag) { RefreashDataList(sDataListName); } return(this.Direct()); }