/// <summary> /// 获取日志分页列表 /// </summary> /// <param name="rows">页大小</param> /// <param name="p">第页</param> /// <returns></returns> public ActionResult GetListView(view_loginlog p) { try { Expression <Func <view_loginlog, bool> > where = ExpressExtens.True <view_loginlog>(); if (!string.IsNullOrEmpty(p.LoginName)) { where = where.And((q) => q.LoginName.Contains(p.LoginName)); } if (!p.beginDate.IsEmptyDate()) { where = where.And((q) => q.LogTime >= p.beginDate); } if (!p.endDate.IsEmptyDate()) { p.endDate = p.endDate.AddDays(1); where = where.And((q) => q.LogTime < p.endDate); } var list = logdal.GetList(p.rows, p.page, out total, where); return(DateJson(new { total = total, rows = list })); } catch (Exception e) { return(Error(e)); } }
/// <summary> /// 获取分页列表 /// </summary> /// <param name="rows">页大小</param> /// <param name="en">第页</param> /// <returns></returns> public override ActionResult GetList(daohang en) { listWhere = ExpressExtens.True <daohang>(); if (!string.IsNullOrEmpty(en.Name)) { listWhere = listWhere.And(q => q.Name.Contains(en.Name.Trim())); } listOrder = "OrderNum"; return(base.GetList(en)); }
public override ActionResult GetList(question en) { listWhere = ExpressExtens.True <question>(); if (!string.IsNullOrEmpty(en.Title)) { listWhere = listWhere.And((q) => q.Title.Contains(en.Title)); } listOrder = "Id"; return(base.GetList(en)); }
public override ActionResult GetList(homeinfo en) { listWhere = ExpressExtens.True <homeinfo>(); if (!string.IsNullOrEmpty(en.Title)) { listWhere = listWhere.And(q => q.Title.Contains(en.Title.Trim())); } listOrder = "OrderNum"; return(base.GetList(en)); }
/// <summary> /// 获取用户列表 /// </summary> /// <param name="rows">页大小</param> /// <param name="p">第页</param> /// <returns></returns> public override ActionResult GetList(view_user p) { listWhere = ExpressExtens.True <view_user>(); if (!string.IsNullOrEmpty(p.LoginName)) { listWhere = listWhere.And((q) => q.LoginName.Contains(p.LoginName)); } listOrder = "Id"; return(base.GetList(p)); }
public override ActionResult GetList(role en) { listWhere = ExpressExtens.True <role>(); if (!string.IsNullOrEmpty(en.Name)) { listWhere = listWhere.And(q => q.Name.Contains(en.Name.Trim())); } listOrder = "CreateTime"; return(base.GetList(en)); }
// // GET: /Back/AnLiView/ /// <summary> /// 获取分页列表 /// </summary> /// <param name="rows">页大小</param> /// <param name="en">第页</param> /// <returns></returns> public override ActionResult GetList(view_anlidetails en) { listWhere = ExpressExtens.True <view_anlidetails>(); if (!string.IsNullOrEmpty(en.Title)) { listWhere = listWhere.And(q => q.Title.Contains(en.Title.Trim())); } en.AId = en.AId ?? 0; if (en.AId != 0) { listWhere = listWhere.And(q => q.AId == en.AId); } listOrder = "AId"; return(base.GetList(en)); }
/// <summary> /// 获取分页列表 /// </summary> /// <param name="rows">页大小</param> /// <param name="en">第页</param> /// <returns></returns> public override ActionResult GetList(downfile en) { listWhere = ExpressExtens.True <downfile>(); if (!string.IsNullOrEmpty(en.FileName)) { listWhere = listWhere.And(q => q.FileName.Contains(en.FileName)); } if (!en.beginDate.IsEmptyDate()) { listWhere = listWhere.And(q => q.UpDateTime >= en.beginDate); } if (!en.endDate.IsEmptyDate()) { en.endDate = en.endDate.AddDays(1); listWhere = listWhere.And(q => q.UpDateTime < en.endDate); } listOrder = "Id"; return(base.GetList(en)); }
// // GET: /Back/AnLiView/ /// <summary> /// 获取分页列表 /// </summary> /// <param name="rows">页大小</param> /// <param name="en">第页</param> /// <returns></returns> public override ActionResult GetList(fankui en) { listWhere = ExpressExtens.True <fankui>(); if (en.Flag != -1 && en.Flag != null) { listWhere = listWhere.And(q => q.Flag == en.Flag); } if (!en.beginDate.IsEmptyDate()) { listWhere = listWhere.And(q => q.CreateTime >= en.beginDate); } if (!en.endDate.IsEmptyDate()) { en.endDate = en.endDate.AddDays(1); listWhere = listWhere.And(q => q.CreateTime < en.endDate); } listOrder = "CreateTime"; ListIsAsc = false; return(base.GetList(en)); }