| | |
| | | string skuNo = boxInfos.First().SkuNo; |
| | | string skuName = boxInfos.First().SkuName; |
| | | |
| | | // 验证是否车间线边仓库 |
| | | //验证是否车间线边仓库 |
| | | string areaNoSql = $@"select AreaNo from SysStorageArea where IsDel='0' and AreaType='1'"; |
| | | DataTable areaNoDt = Db.Ado.GetDataTable(areaNoSql); |
| | | List<string> areaNoList = areaNoDt.Rows.Cast<DataRow>().Select(e => e["AreaNo"] + "").ToList(); |
| | |
| | | throw Oops.Bah("未查询到该托盘上货物的库存明细信息!"); |
| | | } |
| | | |
| | | // 验证是否车间线边仓库 |
| | | var areaList = new List<string>() { "B06", "B07", "B09", "B24", "B29" }; |
| | | if (!areaList.Contains(stockDetail.AreaNo)) |
| | | //验证是否车间线边仓库 |
| | | string areaNoSql = $@"select AreaNo from SysStorageArea where IsDel='0' and AreaType='1'"; |
| | | DataTable areaNoDt = Db.Ado.GetDataTable(areaNoSql); |
| | | List<string> areaNoList = areaNoDt.Rows.Cast<DataRow>().Select(e => e["AreaNo"] + "").ToList(); |
| | | |
| | | if (!areaNoList.Contains(stockDetail.AreaNo)) |
| | | { |
| | | throw Oops.Bah("托盘不是车间托盘!"); |
| | | } |