| | |
| | | using System.Linq; |
| | | using System.Runtime.Intrinsics.X86; |
| | | using System.Security.Claims; |
| | | using System.Security.Policy; |
| | | using System.Text; |
| | | using Model.InterFaceModel; |
| | | using Model.ModelDto; |
| | | using Model.ModelDto.DataDto; |
| | | using Model.ModelDto.SysDto; |
| | | using Model.ModelVm.DataVm; |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using Utility.Tools; |
| | | using WMS.BLL.LogServer; |
| | | using WMS.DAL; |
| | | using WMS.Entity.BllSoEntity; |
| | | using WMS.Entity.Context; |
| | |
| | | /// AGV入库完成 |
| | | /// </summary> |
| | | /// <param name="TaskCode">任务号</param> |
| | | /// <param name="wcsurl">下发WCS放货完成地址</param> |
| | | /// <returns></returns> |
| | | public void ArriveFinish(string TaskCode) |
| | | public void ArriveFinish(string TaskCode,string wcsurl) |
| | | { |
| | | try |
| | | { |
| | |
| | | stockDetail.WareHouseNo = ""; |
| | | Db.Updateable(stockDetail).ExecuteCommand(); |
| | | |
| | | //下发WCS申请入库 |
| | | #region 下发WCS放货完成 |
| | | var data = new |
| | | { |
| | | Port = palletNo.EndLocat |
| | | }; |
| | | var jsonData = JsonConvert.SerializeObject(data); |
| | | string response = ""; |
| | | try |
| | | { |
| | | var time1 = DateTime.Now;//发送时间 .ToString("yyyy-MM-dd HH:mm:ss") |
| | | response = HttpHelper.DoPost(wcsurl, jsonData, "下发给WCS放货完成命令", "WCS"); |
| | | var time2 = DateTime.Now;//返回时间 .ToString("yyyy-MM-dd HH:mm:ss") |
| | | |
| | | //////解析返回数据 |
| | | var res = JsonConvert.DeserializeObject<WcsModel>(response); |
| | | if (res.StatusCode == -1) |
| | | { |
| | | throw new Exception("放货失败,WCS返回信息错误"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception(ex.Message); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | Db.CommitTran(); |
| | |
| | | /// <summary> |
| | | /// 反馈数字孪生系统库存信息 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <param name=""></param> |
| | | /// <returns></returns> |
| | | public List<ReLocateData> GetLocateList() |
| | | { |