| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using SqlSugar; |
| | | using System.Linq; |
| | | using System.Linq.Expressions; |
| | | using Model.InterFaceModel; |
| | | using Model.InterFaceModel; |
| | | using Model.ModelDto; |
| | | using SqlSugar.Extensions; |
| | | using WMS.Entity.BllSoEntity; |
| | | using WMS.Entity.Context; |
| | | using WMS.Entity.DataEntity; |
| | | using WMS.Entity.SysEntity; |
| | | using WMS.IBLL.IPdaServer; |
| | | using Model.ModelVm; |
| | | using Model.ModelVm.PdaVm; |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using SqlSugar.Extensions; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Linq.Expressions; |
| | | using System.Threading.Tasks; |
| | | using System.Web; |
| | | using Utility; |
| | | using Utility.Tools; |
| | | using WMS.BLL.Logic; |
| | | using WMS.BLL.LogServer; |
| | | using WMS.DAL; |
| | | using WMS.Entity.LogEntity; |
| | | using WMS.Entity.BllQualityEntity; |
| | | using WMS.Entity.BllAsnEntity; |
| | | using System.Threading.Tasks; |
| | | using Utility; |
| | | using WMS.BLL.Logic; |
| | | using System.Web; |
| | | using WMS.Entity.BllQualityEntity; |
| | | using WMS.Entity.BllSoEntity; |
| | | using WMS.Entity.Context; |
| | | using WMS.Entity.DataEntity; |
| | | using WMS.Entity.LogEntity; |
| | | using WMS.Entity.SysEntity; |
| | | using WMS.IBLL.IPdaServer; |
| | | |
| | | namespace WMS.BLL.BllPdaServer |
| | | { |
| | |
| | | string skuNo = boxInfos.First().SkuNo; |
| | | string skuName = boxInfos.First().SkuName; |
| | | |
| | | // 验证是否车间线边仓库 |
| | | var areaList = new List<string>() { "B06", "B07", "B09", "B24" }; |
| | | 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("托盘不是车间托盘!"); |
| | | } |
| | |
| | | throw Oops.Bah("未查询到该托盘上货物的库存明细信息!"); |
| | | } |
| | | |
| | | // 验证是否车间线边仓库 |
| | | var areaList = new List<string>() { "B06", "B07", "B09", "B24" }; |
| | | 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("托盘不是车间托盘!"); |
| | | } |