zhaowc
2025-02-16 1293aeec722e06dc11b657455941abbc1c274090
Wms/WMS.BLL/BllPdaServer/PdaCrServer.cs
@@ -972,13 +972,18 @@
                //请求WCS入库口放货确认
                try
                {
                    var res = HttpHelper.DoPost(wcsurl, EndLocat, "请求WCS入库口是否可放货", "WCS");
                    var port = new
                    {
                        Port = EndLocat
                    };
                    var json = JsonConvert.SerializeObject(port);
                    var res = HttpHelper.DoPost(wcsurl, json, "请求WCS入库口是否可放货", "WCS");
                    //////解析返回数据 
                    var ret = JsonConvert.DeserializeObject<WcsModel>(res);
                    if (ret.StatusCode == -1)
                    {
                        throw new Exception(EndLocat + "入库口已有其他任务占用,请选择其他入库口");
                        throw new Exception(EndLocat + "号入库口已有其他任务占用,请选择其他入库口");
                    }
                }
                catch (Exception ex)
@@ -1620,6 +1625,27 @@
                throw new Exception(ex.Message);
            }
        }
        public void AgvContinue(string taskno,string url)
        {
            var data = new { reqCode =taskno  };
            var jsonData = JsonConvert.SerializeObject(data);
            try
            {
                var response = HttpHelper.DoPost(url, jsonData, "下发给AGV继续执行命令", "AGV");
                //////解析返回数据
                var agvModel = JsonConvert.DeserializeObject<OutCommanAgvDto>(response);
                if (agvModel.Code == "1")
                {
                    throw new Exception(agvModel.Message);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
        #endregion
        #region 人工转运