| | |
| | | //} |
| | | var task = BaseDal.QueryFirst(x => x.PalletCode == lineDTO.Barcode); |
| | | if (task == null) throw new Exception($"æªæ¾å°æçå·[{lineDTO.Barcode}]çå
¥åºä»»å¡"); |
| | | if (task.TaskType == TaskTypeEnum.PalletInbound.ObjToInt()) return content; |
| | | if (task.TaskType == TaskTypeEnum.PalletInbound.ObjToInt()) |
| | | { |
| | | task.NextAddress = "1004"; |
| | | task.CurrentAddress = lineDTO.stationCode; |
| | | task.TaskState = (int)InTaskStatusEnum.Line_InExecuting; |
| | | BaseDal.UpdateData(task); |
| | | return content; |
| | | } |
| | | if (task.TaskType != TaskTypeEnum.Inbound.ObjToInt()) throw new Exception($"æªæ¾å°æçå·[{lineDTO.Barcode}]çå
¥åºä»»å¡"); |
| | | |
| | | //if (task.TaskState != (int)InTaskStatusEnum.AGV_InFinish) throw new Exception($"æçå·[{lineDTO.Barcode}]çå
¥åºä»»å¡ç¶æä¸å¹é
"); |