protected void AddLog(string ids) { TagTree condition = new TagTree(); TagTree value = new TagTree(); condition.AddConditon(" and id in(" + ids + ")"); List <TagTree> list = TableOperate <TagTree> .Select(value, condition); if (list.Count > 0) { string deltitle = ""; for (int i = 0; i < list.Count; i++) { deltitle += list[i].Name + ","; } deltitle = deltitle.TrimEnd(','); if (deltitle != "") { string logbrief = "管理员:【" + AdminMethod.AdminFullName + "】在" + DateTime.Now.GetDateTimeFormats('f')[0].ToString() + "删除了【" + deltitle + "】的资源分类"; Lognet.AddLogin(logbrief); } } }