| | |
| | | |
| | | EntityProperties.ValidatePageOptions(options, ref sugarQueryable); |
| | | |
| | | ISugarQueryable<ProStockViewDTO> list = sugarQueryable1.InnerJoin(sugarQueryable, (b, a) => a.LocationCode == b.LocationCode).Select((b, a) |
| | | ISugarQueryable<ProStockViewDTO> list = sugarQueryable1.InnerJoin(sugarQueryable, (b, a) => a.LocationCode == b.LocationCode).OrderByDescending(b=>b.CreateDate).Select((b, a) |
| | | => new ProStockViewDTO |
| | | { |
| | | ProStockAttribute=b.ProStockAttribute, |
| | |
| | | x.ProductUnit = x.Details.FirstOrDefault()?.ProductUnit ?? ""; |
| | | } |
| | | ); |
| | | return new PageGridData<ProStockViewDTO>(totalCount + pktotalCount, stockViewDTOs.OrderByDescending(x=>x.CreateDate).ToList()); |
| | | return new PageGridData<ProStockViewDTO>(totalCount + pktotalCount, stockViewDTOs.ToList()); |
| | | } |
| | | catch (Exception ex) |
| | | { |