| | |
| | | { |
| | | foreach (var item in stockDetail) |
| | | { |
| | | if (!string.IsNullOrEmpty(item.WareHouseNo)) |
| | | if (!string.IsNullOrEmpty(item.WareHouseNo) && !string.IsNullOrEmpty(item.AreaNo)) |
| | | { |
| | | throw new Exception("该托盘未在库外,请核查!"); |
| | | if (item.AreaNo != "B06" && item.AreaNo != "B07" && item.AreaNo != "B09") |
| | | { |
| | | throw new Exception("该托盘未在库外,请核查!"); |
| | | } |
| | | } |
| | | } |
| | | iscount = 1; //回流入库 |
| | |
| | | public async Task<List<DataStockDetail>> GetStockQueryList(string locatNo, string palletNo) |
| | | { |
| | | return await Db.Queryable<DataStockDetail>() |
| | | .Where(s => s.IsDel == "0" && s.LocatNo.Contains(locatNo) && s.PalletNo.Contains(palletNo)) |
| | | .Where(s => s.IsDel == "0" && s.LocatNo.Contains(locatNo) || s.PalletNo.Contains(palletNo)) |
| | | .OrderBy(s => new { s.LotNo, s.LocatNo, s.PalletNo }) |
| | | .ToListAsync(); |
| | | |