using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EntityDataSet; using IntelligentControlForsx.Common; namespace IntelligentControlForsx.Service { public class MatrixFormService { public static String[] GetDeviceIdArrayByStationId(string stationId) { string[] ret = CacheService.Instance.GetWindturbineListByStationId(stationId).Select(q => q.ID).ToArray(); string[] result = new string[ret.Length]; for (int i=0;i GetStationList(string stationId) { if ("all".Equals(stationId)) { return CacheService.Instance.GetFDCList(); } else { return CacheService.Instance.GetFDCList().Where(q => q.ID == stationId).ToList(); } } } }