| | |
| | | using Quartz; |
| | | using Microsoft.Extensions.Caching.Memory; |
| | | using Newtonsoft.Json; |
| | | using Quartz; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Threading.Tasks; |
| | | using System.Linq; |
| | | using System.Threading; |
| | | using WIDESEA.Core.EFDbContext; |
| | | using WIDESEA.Entity.DomainModels; |
| | | using WIDESEA.Services.Repositories; |
| | | using WIDESEA.Common; |
| | | using WIDESEA.Core.Utilities; |
| | | using WIDESEA_Services; |
| | | using System.ServiceModel; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Xml; |
| | | using WIDESEA.Core.ManageUser; |
| | | using WIDESEA_Common.LogEnum; |
| | | using Microsoft.Extensions.Caching.Memory; |
| | | using WIDESEA.Common; |
| | | using WIDESEA.Core.EFDbContext; |
| | | using WIDESEA.Core.Extensions; |
| | | using WIDESEA.Services.IServices; |
| | | using Newtonsoft.Json; |
| | | using WIDESEA.Core.ManageUser; |
| | | using WIDESEA.Core.Services; |
| | | using WIDESEA.Core.Utilities; |
| | | using WIDESEA.Entity.DomainModels; |
| | | using WIDESEA.Services.IServices; |
| | | using WIDESEA.Services.Repositories; |
| | | using WIDESEA_Common.LogEnum; |
| | | using WIDESEA_Entity.CustomModels.RGVModel; |
| | | using WIDESEA_Services; |
| | | using WIDESEA_Services.Services.APIInvoke.RGV; |
| | | using static WIDESEA_Entity.CustomModels.RGVModel.RgvDeviceStatusModel; |
| | | |
| | | namespace WIDESEA.Job |
| | | { |
| | |
| | | string[] array = null; |
| | | foreach (var item in tmpList) |
| | | { |
| | | if (item.task_type == TaskType.TaskType_Box_Pallet_Measure_Back.ToString() && item.task_type.Length > 10) // è¿ä¸ªå¤æèä½¼å ä¸ç01-13 |
| | | { |
| | | array = item.task_tolocationid.Split('-'); |
| | | } |
| | | else |
| | | { |
| | | array = item.task_fromlocationid.Split('-'); |
| | | } |
| | | |
| | | currentLayer.Add(int.Parse(array[0])); |
| | | } |
| | | } |
| | |
| | | { |
| | | //å¢å å¤ææ²¡æå½åå±çææ·»å |
| | | if (!currentLayer.Contains(tmpInfo.location_layer) && null == containerInfos.Find(r => r.location_layer == tmpInfo.location_layer)) |
| | | { |
| | | // èä½¼è¦å¨è¿éå ä¸ä¸ª 妿rgv车ææ
é åä¸è½å å
¥è¿å±ç |
| | | List<int> rgvLayer = new List<int>(); |
| | | WebResponseContent resultcontent = RGVAPIInvokeGetRgvInfo.GetRgvInfo(); |
| | | if (resultcontent.Status) |
| | | { |
| | | RgvDeviceStatusModel rgvData = (RgvDeviceStatusModel)resultcontent.Data; |
| | | //0离线 1æ£å¸¸ 2æ
é |
| | | for (int i = 0; i < rgvData.data.Count(); i++) |
| | | { |
| | | Info _info = rgvData.data[i]; |
| | | if (_info.status != 1) |
| | | { |
| | | rgvLayer.Add(_info.layer); |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (rgvLayer.Contains(int.Parse(tmpInfo.location_id.Split('-')[0]))) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | containerInfos.Add(tmpInfo); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | Dt_taskinfo sendTask = measureTasks[0]; |
| | | |
| | | |
| | | |
| | | content = WCSApi.SendTaskToWCS(new List<Dt_taskinfo>() { sendTask }); |
| | | if (content.Status) |
| | | { |