protected void AddLog(string ids) { News condition = new News(); News value = new News(); condition.AddConditon(" and id in(" + ids + ")"); List <News> list = TableOperate <News> .Select(value, condition); if (list.Count > 0) { string deltitle = ""; for (int i = 0; i < list.Count; i++) { CloudSQL.DeleteOldFile(list[i]); Update(list[i].OldID); deltitle += list[i].Title + ","; } deltitle = deltitle.TrimEnd(','); if (deltitle != "") { string logbrief = "管理员:【" + AdminMethod.AdminFullName + "】在" + DateTime.Now.GetDateTimeFormats('f')[0].ToString() + "删除了【" + deltitle + "】的云资源"; Lognet.AddLogin(logbrief); Lognet.AddMailBox(logbrief); } } }
protected void DeleteNews(string checkshop) { News condition = new News(); condition.AddConditon(" and PcID in(" + checkshop + ")"); condition.TypeID = 0;//0是个人展厅 1 是资源池 TableOperate <News> .Delete(condition); }
protected void DeleteNews(string checkshop) { News condition = new News(); News value = new News(); condition.AddConditon(" and PcID in(" + checkshop + ")"); condition.TypeID = 0;//0是个人展厅 1 是资源池 List <News> list = TableOperate <News> .Select(value, condition); DeleteFile(list); TableOperate <News> .Delete(condition); }