| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Reflection.Emit; |
| | | using System.Linq; |
| | | |
| | | namespace IStation.CalcModel |
| | | { |
| | |
| | | List < AnaPrjPointTime > list = new List<AnaPrjPointTime>(); |
| | | if (this.BlockTimes != null) |
| | | { |
| | | |
| | | foreach (var bt in this.BlockTimes) |
| | | { |
| | | if(bt.PointTimes != null) |
| | |
| | | /// <returns></returns> |
| | | public AnaPrjPointTime FindPointTime(DateTime time) |
| | | { |
| | | if (BlockTimes == null) |
| | | if (BlockTimes == null || BlockTimes.Count == 0) |
| | | return null; |
| | | if(time > this.BlockTimes.Last().PointTimes.Last().Time.AddMinutes(-5)) |
| | | { |
| | | return this.BlockTimes.Last().PointTimes.Last(); |
| | | } |
| | | foreach (var bt in BlockTimes) |
| | | { |
| | | if (bt.PointTimes == null) |