Example #1
0
        private IQueryable <TInInbound> Query(QueryInbound query)
        {
            var q = wmsinbound.TInInbounds as IQueryable <TInInbound>;

            q = q.Where(x => x.TransCode == query.TransCode);
            return(q);
        }
Example #2
0
        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);
        }
Example #3
0
 //分页查询
 public List <TInInbound> PageList(QueryInbound query)
 {
     return(this.Query(query).OrderByDescending(x => x.Id).ToList());
 }
Example #4
0
 public int TotalCount(QueryInbound query)
 {
     return(this.Query(query).Count());
 }