| | |
| | | { |
| | | 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; //回流入库 |
| | |
| | | { |
| | | foreach (var box in boxInfoList) |
| | | { |
| | | var bllBox = Db.Queryable<BllBoxInfo>().First(w => w.IsDel == "0" && w.Status != "0"); |
| | | var bllBox = Db.Queryable<BllBoxInfo>().First(w => w.IsDel == "0" && w.Status != "0" && w.BoxNo == box.BoxNo); |
| | | if (bllBox != null) |
| | | { |
| | | bllBox.Status = "0"; |