| | |
| | | _stockService.StockInfoService.Repository.AddData(dt_Stock); |
| | | } |
| | | } |
| | | /*else if(generate.SourceAddress == "R01-002-042-001-01") |
| | | { |
| | | WebResponseContent webResponse= Queryinventory(generate); |
| | | if (!webResponse.Status) |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"缁勭洏澶辫触锛歿webResponse.Message}"); |
| | | } |
| | | }*/ |
| | | |
| | | |
| | | |
| | | Dt_StockInfo dt_StockInfo = _stockService.StockInfoService.Repository.QueryFirst(x => x.PalletCode == generate.PalletCode && x.StockStatus== (int)StockStatusEmun.缁勭洏鏆傚瓨); |
| | | if (dt_StockInfo != null) |
| | | { |
| | |
| | | { |
| | | if (dt_StockInfo.StockStatus == (int)StockStatusEmun.缁勭洏鏆傚瓨) |
| | | { |
| | | List<Dt_Task> dt_Tasks= BaseDal.QueryData(x => x.PalletCode.Contains(PalletCodetarget)); |
| | | if (dt_Tasks.Count > 0) |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"搴撳瓨宸叉湁璇ユ潯鐮侊紝鏉$爜淇℃伅锛歿generate.PalletCode}"); |
| | | } |
| | | else |
| | | { |
| | | return content = WebResponseContent.Instance.OK(data: 1); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"搴撳瓨宸叉湁璇ユ潯鐮侊紝鏉$爜淇℃伅锛歿generate.PalletCode}"); |