| | |
| | | return await Db.Queryable<Dt_OutOrderAndStock>() |
| | | .Includes(x => x.OrderList) |
| | | .Includes(x => x.StockList) |
| | | .Includes(x => x.OrderDetailList) |
| | | .Includes(x => x.StockDetailList) |
| | | .Includes(x => x.LocationList) |
| | | .WhereIF(locationID != null, x => x.LocationCode == locationID) |
| | | .WhereIF(orderNum != null, x => x.OrderNumber == orderNum) |
| | |
| | | public bool DeleteNavOrderStock(Dt_OutOrderAndStock stock) |
| | | { |
| | | return Db.DeleteNav<Dt_OutOrderAndStock>(x => x.Id == stock.Id) |
| | | .Include(x => x.OrderDetailList) |
| | | .Include(x => x.OrderList) |
| | | .Include(x => x.StockDetailList) |
| | | .Include(x => x.StockList) |
| | | .Include(x => x.OrderList).ThenInclude(x => x.OrderDetailList) |
| | | .Include(x => x.StockList).ThenInclude(x => x.Dt_BillGroupStockDetailList) |
| | | .ExecuteCommand(); |
| | | } |
| | | |
| | |
| | | public bool UpdateNavOrderStock(Dt_OutOrderAndStock stock) |
| | | { |
| | | return Db.UpdateNav(stock) |
| | | .Include(x => x.OrderDetailList) |
| | | .Include(x => x.OrderList) |
| | | .Include(x => x.StockDetailList) |
| | | .Include(x => x.StockList) |
| | | .ExecuteCommand(); |
| | | } |