| | |
| | | using WIDESEA_Core.Enums; |
| | | using System.Diagnostics; |
| | | using WIDESEA_Core.Log; |
| | | using FastReport.DevComponents.DotNetBar; |
| | | namespace WIDESEA_Tasks |
| | | { |
| | | public partial class AGVjob |
| | |
| | | Dt_CachePoint CachePointYCl = _cachePointRepository.QueryFirst(x => x.PointCode == agvtask.SourceAddress && x.Remark != null && x.PointCode.Contains("鍘熸潗鏂欏簱")); |
| | | if (CachePoint != null && CachePointSO != null) |
| | | { |
| | | var pointnames = _cachePointRepository.QueryData(x => x.Remark == CachePoint.Remark && x.Remark != "0").ToList(); |
| | | var pointnames = _cachePointRepository.QueryData(x => x.Remark == CachePoint.Remark && x.Depth != 0).ToList(); |
| | | foreach (var item in pointnames) |
| | | { |
| | | var a = CachePoint.Depth.ObjToInt(); |
| | |
| | | } |
| | | if (CachePointSO.Remark != null) |
| | | { |
| | | var pointname = _cachePointRepository.QueryData(x => x.Remark == CachePointSO.Remark && x.Remark != "0").ToList(); |
| | | var pointname = _cachePointRepository.QueryData(x => x.Remark == CachePointSO.Remark && x.Depth != 0).ToList(); |
| | | foreach (var item1 in pointname) |
| | | { |
| | | var c = CachePointSO.Depth.ObjToInt(); |
| | |
| | | } |
| | | } |
| | | } |
| | | //if (dt_CachePoint != null) |
| | | //{ |
| | | // var pointname = _cachePointRepository.QueryData(x => x.Remark == dt_CachePoint.Remark).ToList(); |
| | | // foreach (var item in pointname) |
| | | // { |
| | | // var a = dt_CachePoint.Depth.ObjToInt(); |
| | | // var b = item.Depth.ObjToInt(); |
| | | // if (b > a) |
| | | // { |
| | | // //Dt_CachePoint c = _cachePointRepository.QueryFirst(x => x.PointCode == item.PointCode && x.PointStatus == 0); |
| | | // Dt_Task dt_Task = _taskRepository.QueryFirst(x => x.TargetAddress == item.PointCode); |
| | | // if (dt_Task != null) |
| | | // { |
| | | // continue; |
| | | // } |
| | | // } |
| | | // } |
| | | //} |
| | | else |
| | | { |
| | | AGVTaskPend pend = new AGVTaskPend(); |