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