lss
3 天以前 9cba325e0d7c30644606e63e5df01faba0c42038
HH.WCS.Mobox3 - ´ó³µ¼ä/HH.WCS.Mobox3.JiaTong/process/DeviceProcess.cs
@@ -9,7 +9,9 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using static HH.WCS.JiaTong_DCJ.LISTA.process.HttpModel;
using static System.Collections.Specialized.BitVector32;
@@ -91,35 +93,9 @@
        /// </summary>
        internal static void Traffic()
        {
            Console.WriteLine("开始原材料叠盘位置判断");
            var db = new SqlHelper<object>().GetInstance();
            List<string> locs = new List<string>() { "LCDP-001", "BADPW-01" };
            var location = db.Queryable<Location>().Where(a => locs.Contains(a.S_CODE)).ToList();
            if (location.Count > 0)
            {
                string cntrcode = "";
                foreach (var item in location)
                {
                    if (item.N_CURRENT_NUM >= 6)
                    {
                        var cntr = db.Queryable<LocCntrRel>().Where(a => a.S_LOC_CODE.Trim() == item.S_CODE).ToList();
                        if (cntr.Count > 0)
                        {
                             cntrcode = cntr.OrderBy(a=>a.T_CREATE).First().S_CNTR_CODE;
                           // cntrcode = string.Join(",", cntrcodes);
                        }
                        //创建过未完成的任务不发起请求
                        var mst = WCSHelper.GetTaskByStartloc(item.S_CODE);
                        if (mst == null)
                        {
                            AgvEmptyBack(item.S_CODE, cntrcode);
                        }
                    }
                }
            }
        }
        /// <summary>
        /// äº•松agv叠盘回库