| | |
| | | #region 涓婃姤WMS |
| | | public WebResponseContent TaskFeedback(Dt_Task dt_Task, int Status) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | WMSInOutBoundCompleteFeedback boundCompleteFeedback = new WMSInOutBoundCompleteFeedback(); |
| | | WMSReturn agvContent = null; |
| | | try |
| | |
| | | boundCompleteFeedback.custStatus = ""; |
| | | string response = HttpHelper.Post(apiInfo.ApiAddress, boundCompleteFeedback.Serialize()); |
| | | agvContent = response.DeserializeObject<WMSReturn>(); |
| | | if (agvContent.code != 0) dt_Task.ExceptionMessage = agvContent.msg; |
| | | content.OK(data: agvContent); |
| | | if (agvContent.code != 200) |
| | | { |
| | | dt_Task.ExceptionMessage = agvContent.message; |
| | | content.Error(agvContent.message); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | dt_Task.ExceptionMessage = ex.Message; |
| | | } |
| | | if (agvContent != null && agvContent.code == 0 && Status == 2) |
| | | BaseDal.DeleteAndMoveIntoHty(dt_Task, OperateTypeEnum.鑷姩瀹屾垚); |
| | | else |
| | | BaseDal.UpdateData(dt_Task); |
| | | finally |
| | | { |
| | | _trackloginfoService.AddTrackLog(boundCompleteFeedback, content, "鍑哄叆搴撲换鍔$姸鎬佸弽棣圵MS", "", ""); |
| | | if (agvContent != null && agvContent.code == 200 && Status == 2) |
| | | BaseDal.DeleteAndMoveIntoHty(dt_Task, OperateTypeEnum.鑷姩瀹屾垚); |
| | | else |
| | | BaseDal.UpdateData(dt_Task); |
| | | } |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | #endregion |