コード例 #1
0
ファイル: InboundService.cs プロジェクト: orgad/backend
        private IQueryable <TInInbound> Query(QueryInbound query)
        {
            var q = wmsinbound.TInInbounds as IQueryable <TInInbound>;

            q = q.Where(x => x.TransCode == query.TransCode);
            return(q);
        }
コード例 #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);
        }
コード例 #3
0
ファイル: InboundService.cs プロジェクト: orgad/backend
 //分页查询
 public List <TInInbound> PageList(QueryInbound query)
 {
     return(this.Query(query).OrderByDescending(x => x.Id).ToList());
 }
コード例 #4
0
ファイル: InboundService.cs プロジェクト: orgad/backend
 public int TotalCount(QueryInbound query)
 {
     return(this.Query(query).Count());
 }