| | |
| | | stockViewDTOs.ForEach(x => |
| | | { |
| | | x.ProductCode = string.Join(",", x.Details.Select(x => x.ProductCode).Distinct()); |
| | | x.ProductName = x.Details.FirstOrDefault()?.ProductName ?? ""; |
| | | x.ProductSpec = x.Details.FirstOrDefault()?.ProductSpec ?? ""; |
| | | x.ProductUnit = x.Details.FirstOrDefault()?.ProductUnit ?? ""; |
| | | } |
| | | ); |
| | | return new PageGridData<ProStockViewDTO>(totalCount + pktotalCount, stockViewDTOs.OrderByDescending(x=>x.CreateDate).ToList()); |
| | |
| | | stockViewDTOs.ForEach(x => |
| | | { |
| | | x.ProductCode = string.Join(",", x.Details.Select(x => x.ProductCode).Distinct()); |
| | | x.StockRemark = warehouses.FirstOrDefault(v => v.WarehouseId == x.WarehouseId).WarehouseName; |
| | | x.ProductName = x.Details.FirstOrDefault()?.ProductName ?? ""; |
| | | x.ProductSpec = x.Details.FirstOrDefault()?.ProductSpec ?? ""; |
| | | x.ProductUnit = x.Details.FirstOrDefault()?.ProductUnit ?? ""; |
| | | } |
| | | ); |
| | | |