| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.Extensions.Logging; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Logical; |
| | | using Org.BouncyCastle.Math.EC; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | if (task == null) |
| | | return webResponse.Error($"鏈壘鍒颁换鍔′俊鎭紝鎵樼洏鏉$爜锛歿wCSTask.PalletCode}"); |
| | | |
| | | Dt_Task Outtask = BaseDal.QueryData(x => x.TargetAddress == task.SourceAddress).FirstOrDefault(); |
| | | if (Outtask != null) |
| | | return webResponse.Error($"褰撳墠宸叉湁鏉ヨ鐩爣浣嶇疆鐨勪换鍔★紝涓嶅彲杩涜鍏ュ簱锛屾墭鐩樻潯鐮侊細{wCSTask.PalletCode}",501); |
| | | //Dt_Task Outtask = BaseDal.QueryData(x => x.TargetAddress == task.SourceAddress).FirstOrDefault(); |
| | | // 澶勭悊鍦板潃杞崲 |
| | | string targetAddress = wCSTask.FromPoint; |
| | | if (targetAddress == "1104") |
| | | { |
| | | targetAddress = "1103"; |
| | | } |
| | | else if (targetAddress == "1102") |
| | | { |
| | | targetAddress = "1101"; |
| | | } |
| | | |
| | | Dt_Task Outtask = BaseDal.QueryData(x => x.TargetAddress == targetAddress).FirstOrDefault(); |
| | | if (Outtask != null) return webResponse.Error($"褰撳墠宸叉湁鏉ヨ鐩爣浣嶇疆{wCSTask.FromPoint}鐨勪换鍔★紝涓嶅彲杩涜鍏ュ簱锛屾墭鐩樻潯鐮侊細{wCSTask.PalletCode}", 501); |
| | | |
| | | if (task.PalletType != wCSTask.ContainerType.ToString()) |
| | | { |