From 9cba325e0d7c30644606e63e5df01faba0c42038 Mon Sep 17 00:00:00 2001 From: lss <2538410689@qq.com> Date: 星期三, 06 八月 2025 17:18:41 +0800 Subject: [PATCH] 优化 --- HH.WCS.Mobox3 - 大车间/HH.WCS.Mobox3.JiaTong/process/DeviceProcess.cs | 46 +++++++++++----------------------------------- 1 files changed, 11 insertions(+), 35 deletions(-) diff --git "a/HH.WCS.Mobox3 - \345\244\247\350\275\246\351\227\264/HH.WCS.Mobox3.JiaTong/process/DeviceProcess.cs" "b/HH.WCS.Mobox3 - \345\244\247\350\275\246\351\227\264/HH.WCS.Mobox3.JiaTong/process/DeviceProcess.cs" index 29f1da9..f392a58 100644 --- "a/HH.WCS.Mobox3 - \345\244\247\350\275\246\351\227\264/HH.WCS.Mobox3.JiaTong/process/DeviceProcess.cs" +++ "b/HH.WCS.Mobox3 - \345\244\247\350\275\246\351\227\264/HH.WCS.Mobox3.JiaTong/process/DeviceProcess.cs" @@ -1,19 +1,21 @@ -锘縰sing HH.WCS.JiaTong.api; -using HH.WCS.JiaTong.device; -using HH.WCS.JiaTong.dispatch; -using HH.WCS.JiaTong.util; -using HH.WCS.JiaTong.wms; +锘縰sing HH.WCS.JiaTong_DCJ.api; +using HH.WCS.JiaTong_DCJ.device; +using HH.WCS.JiaTong_DCJ.dispatch; +using HH.WCS.JiaTong_DCJ.util; +using HH.WCS.JiaTong_DCJ.wms; using Newtonsoft.Json; using S7.Net; using System; using System.Collections.Generic; using System.IO; using System.Linq; +using System.Net.Sockets; using System.Threading; -using static HH.WCS.JiaTong.LISTA.process.HttpModel; +using System.Threading.Tasks; +using static HH.WCS.JiaTong_DCJ.LISTA.process.HttpModel; using static System.Collections.Specialized.BitVector32; -namespace HH.WCS.JiaTong.process +namespace HH.WCS.JiaTong_DCJ.process { /// <summary> /// 璁惧淇″彿澶勭悊锛屼富瑕佹槸tcp淇″彿锛屾垜浠仛server琚姩鎺ユ敹淇″彿鏉ュ鐞嗭紝鏍规嵁椤圭洰瀹氬埗鐨�@@ -91,36 +93,10 @@ /// </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鍙犵洏鍥炲簱 /// </summary> -- Gitblit v1.9.1