FIC_Solar/SolarPower/Models/AnalysisStationInfo.cs
wanling040@gmail.com 162338d3e9 修改裝置管理、新增裝置子項目新增查詢功能
裝置設定: 裝置類型選擇改為讀取sensorType資料表
電站交叉分析: 選擇比較欄位(以sensorTypeDetail做更新)
PowerStationRepository.cs -> 刪除已不使用的資料表判斷
debug -> 電站交叉分析中 設備有兩個導致查詢不了,增加查詢判斷
2022-07-21 18:29:42 +08:00

52 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SolarPower.Models
{
public class AnalysisStationInfo
{
}
public class PowerStationDevice
{
public int PowerStationId { get; set; }
public string CityName { get; set; }
public string PowerStationName { get; set; }
public string DeviceName { get; set; }
public string DeviceType { get; set; }
public string DeviceId { get; set; }
public string SensorTypeId { get; set; }
public string SensorTypeDetailId { get; set; }
}
public class PostAnalysisStation
{
public byte SearchType { get; set; }
public string SelectedDate { get; set; }
public List<DeviceIdInfo> DeviceIdInfos { get; set; }
}
public class DeviceIdInfo
{
public int PowerStationId { get; set; }
public string DeviceType { get; set; }
public string DeviceId { get; set; }
}
public class AnalysisDevice
{
public List<string> XAxis { get; set; } //時間
public Dictionary<string, string> MultipleYaxes { get; set; } //Y軸名稱
public List<DeviceHistoryInfo> Series { get; set; } //數組
}
public class DeviceHistoryInfo
{
public string Name { get; set; }
public string YaxesKey { get; set; }
public List<double> Values { get; set; }
}
}