1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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<ret.Length;i++)
- {
- result[i] = CommonMethod.GetShortWindturbineId(ret[i]);
- }
- return result;
- }
- public static IList<windpowerstation> GetStationList(string stationId)
- {
- if ("all".Equals(stationId))
- {
- return CacheService.Instance.GetFDCList();
- }
- else
- {
- return CacheService.Instance.GetFDCList().Where(q => q.ID == stationId).ToList();
- }
- }
- }
- }
|