Exemplo n.º 1
0
        public List <RouteCacheItem> GetCachedRoutes(int wpId, DateTime carryoutDate, int depotId, int affairId)
        {
            var depots = WorkManager.GetShareDepots(wpId);
            var ret    = new List <RouteCacheItem>();

            foreach (var depot in depots)
            {
                var lst = _routeCache.Get(carryoutDate, depot);
                lst.Sort((a, b) => a.StartTime.CompareTo(b.StartTime));
                ret.AddRange(lst);
            }
            return(ret);
        }