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