| | |
| | | var request = JsonConvert.SerializeObject(model); |
| | | try |
| | | { |
| | | var response = apiHelper.Post(baseUrl + "/api/hecWms/produceProcessTracing/trayMaterialUnBind", request); |
| | | var response = apiHelper.Post(baseUrl + "/sendTask", request); |
| | | LogHelper.Info($"[WCS-sendTask] request={request} response={response}", "WMS"); |
| | | if (response != null && response != "") |
| | | { |
| | | |
| | | var dataResult = JsonConvert.DeserializeObject<ResponseResult>(response); |
| | | if (dataResult.code == 200) |
| | | { |
| | | result = true; |
| | | } |
| | | else |
| | | { |
| | | LogHelper.Info($"调用WCS任务下发接口成功,但WCS反馈下发任务失败,失败原因:{dataResult.msg}", "WMS"); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | |
| | | LogHelper.Info("调用WCS任务下发接口失败", "WMS"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | LogHelper.Info($"调用WCS任务下发接口错误,错误原因:{ex.Message}", "WMS"); |
| | | } |
| | | return result; |
| | | } |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | catch (Exception ex) |
| | | { |
| | | |
| | |
| | | public string to { get; set; } // 终点 |
| | | public string cntrNo { get; set; } // 容器编码 |
| | | public string cntrType { get; set; } // 容器类型 |
| | | public List<object> extData { get; set; } // 容器类型 |
| | | public List<object> extData { get; set; } // |
| | | |
| | | } |
| | | } |