private IQueryable <TInInbound> Query(QueryInbound query) { var q = wmsinbound.TInInbounds as IQueryable <TInInbound>; q = q.Where(x => x.TransCode == query.TransCode); return(q); }
public JsonResult List(QueryInbound query) { var list = inboundService.PageList(query); var totalCount = inboundService.TotalCount(query); var response = new JsonResult( new SingleResponse { Data = list, TotalCount = totalCount } ); return(response); }
//分页查询 public List <TInInbound> PageList(QueryInbound query) { return(this.Query(query).OrderByDescending(x => x.Id).ToList()); }
public int TotalCount(QueryInbound query) { return(this.Query(query).Count()); }