protected bool AddLog(string ids) { bool IsDelete = true; Face condition = new Face(); Face value = new Face(); condition.AddConditon(" and id in(" + ids + ")"); List <Face> list = TableOperate <Face> .Select(value, condition); if (list.Count > 0) { string deltitle = ""; for (int i = 0; i < list.Count; i++) { deltitle += list[i].UserinfoID + ","; CloudSQL.DeleteFace(list[i].HeadImage); IsDelete = IsDelete && Delete(list[i].ID); } deltitle = deltitle.TrimEnd(','); if (deltitle != "") { string logbrief = "管理员:【" + AdminMethod.AdminFullName + "】在" + DateTime.Now.GetDateTimeFormats('f')[0].ToString() + "删除了【" + deltitle + "】的用户头像"; Lognet.AddLogin(logbrief); } } return(IsDelete); }
protected void Page_Load(object sender, EventArgs e) { Face condition = new Face(); Face value = new Face(); string phone = GetstringKey("phone"); if (!string.IsNullOrEmpty(Request["Name"])) { condition.AddConditon(" and ( Name like @Name or NickName like @Name)"); condition.AddParameter("Name", "%" + Request["Name"] + "%"); } m_tableManageList = TableOperate <Face> .SelectByPage(value, condition, "order by OrderID asc", PageSize, PageIndex, ref Count); DataBind(); }