| | |
| | | var ResultData = HttpHelper.PostAsync(WMSInterfaceAddress.StackerCraneRequestInbound, lineDTO.ToJson(), headers: new Dictionary<string, string>()); |
| | | if (ResultData.Result == null) throw new Exception($"åWMS请æ±å
¥åºåé
è´§ä½è¶
æ¶!ä»»å¡å·:{task.TaskNum}"); |
| | | content = JsonConvert.DeserializeObject<WebResponseContent>(ResultData.Result); |
| | | if (!content.Status) throw new Exception(content.Message); |
| | | if (content.Status) |
| | | { |
| | | var receiveWMSInfo = JsonConvert.DeserializeObject<ReceiveWMSInfo>(content.Data.ToJson()); |
| | | task.SourceIsPickPlace = receiveWMSInfo.SourceIsPickPlace; |
| | | task.TargetIsPickPlace = receiveWMSInfo.TargetIsPickPlace; |
| | | task.TargetAddress = receiveWMSInfo.TargetAddress; |
| | | task.NextAddress = task.TargetAddress; |
| | | task.ExceptionMessage = null; |
| | | } |
| | | else |
| | | task.ExceptionMessage = content.Message; |
| | | |
| | | var receiveWMSInfo = JsonConvert.DeserializeObject<ReceiveWMSInfo>(content.Data.ToJson()); |
| | | task.IsPickPlace = receiveWMSInfo.IsPickPlace; |
| | | task.TargetAddress = receiveWMSInfo.TargetAddress; |
| | | task.NextAddress = task.TargetAddress; |
| | | BaseDal.UpdateData(task); |
| | | } |
| | | catch (Exception ex) |