| | |
| | | using HH.WCS.JiaTong.api; |
| | | using HH.WCS.JiaTong.device; |
| | | using HH.WCS.JiaTong.dispatch; |
| | | using HH.WCS.JiaTong.util; |
| | | using HH.WCS.JiaTong.wms; |
| | | using 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è¢«å¨æ¥æ¶ä¿¡å·æ¥å¤çï¼æ ¹æ®é¡¹ç®å®å¶ç |
| | |
| | | /// </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> |