119 lines
3.7 KiB
C#
119 lines
3.7 KiB
C#
using LiveCharts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace InSituLaboratory.Entities.Sensor
|
|
{
|
|
/// <summary>
|
|
/// CO2同位素分析仪
|
|
/// </summary>
|
|
public class CO2IsotopsModel
|
|
{
|
|
/// <summary>
|
|
/// 主键
|
|
/// </summary>
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采样时间
|
|
/// </summary>
|
|
public DateTime SamplingTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 记录时间
|
|
/// </summary>
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 故障代码--设备温度 (未开启/未监控 正常 警报 故障)
|
|
/// </summary>
|
|
public string? Tem { get; set; }
|
|
|
|
/// <summary>
|
|
/// 故障代码--设备湿度 (未开启/未监控 正常 警报 故障)
|
|
/// </summary>
|
|
public string? Hum { get; set; }
|
|
|
|
/// <summary>
|
|
/// 故障代码--压力 (未开启/未监控 正常 警报 故障)
|
|
/// </summary>
|
|
public string? Pressure { get; set; }
|
|
|
|
/// <summary>
|
|
/// 故障代码--绝缘 (未开启/未监控 正常 警报 故障)
|
|
/// </summary>
|
|
public string? Insulation { get; set; }
|
|
|
|
/// <summary>
|
|
/// 光强
|
|
/// </summary>
|
|
public float LightIntensity { get; set; }
|
|
|
|
/// <summary>
|
|
/// 激光温度
|
|
/// </summary>
|
|
public float LaserTemperature { get; set; }
|
|
|
|
/// <summary>
|
|
/// 12CO2浓度
|
|
/// </summary>
|
|
public float CO2Concentration { get; set; }
|
|
|
|
/// <summary>
|
|
/// C12同位素丰度
|
|
/// </summary>
|
|
public float IsotopicAbundance { get; set; }
|
|
|
|
|
|
[NotMapped]
|
|
public int DataIdNum { get; set; }
|
|
|
|
public ChartsModel CO2IsotopsChartsLightIntensity { get; set; } = new ChartsModel()
|
|
{
|
|
Values = new ChartValues<float>(),
|
|
Value_Name = "光强",
|
|
X_Time = new List<string>(),
|
|
Y_MinValue = Convert.ToInt32(tools.GetAppSetting("CO2同位素分析仪光强Min")),
|
|
Y_MaxValue = Convert.ToInt32(tools.GetAppSetting("CO2同位素分析仪光强Max"))
|
|
|
|
};
|
|
|
|
public ChartsModel CO2IsotopsChartsLaserTemperature { get; set; } = new ChartsModel()
|
|
{
|
|
Values = new ChartValues<float>(),
|
|
Value_Name = "激光温度",
|
|
X_Time = new List<string>(),
|
|
Y_MinValue = Convert.ToInt32(tools.GetAppSetting("CO2同位素分析仪激光温度Min")),
|
|
Y_MaxValue = Convert.ToInt32(tools.GetAppSetting("CO2同位素分析仪激光温度Max"))
|
|
|
|
};
|
|
|
|
public ChartsModel CO2IsotopsChartsCO2Concentration { get; set; } = new ChartsModel()
|
|
{
|
|
Values = new ChartValues<float>(),
|
|
Value_Name = "12CO2浓度",
|
|
X_Time = new List<string>(),
|
|
Y_MinValue = Convert.ToInt32(tools.GetAppSetting("CO2同位素分析仪12CO2浓度Min")),
|
|
Y_MaxValue = Convert.ToInt32(tools.GetAppSetting("CO2同位素分析仪12CO2浓度Max"))
|
|
|
|
};
|
|
|
|
public ChartsModel CO2IsotopsChartsIsotopicAbundance { get; set; } = new ChartsModel()
|
|
{
|
|
Values = new ChartValues<float>(),
|
|
Value_Name = "12C同位素丰度",
|
|
X_Time = new List<string>(),
|
|
Y_MinValue = Convert.ToInt32(tools.GetAppSetting("CO2同位素分析仪12C同位素丰度Min")),
|
|
Y_MaxValue = Convert.ToInt32(tools.GetAppSetting("CO2同位素分析仪12C同位素丰度Max"))
|
|
|
|
};
|
|
|
|
}
|
|
}
|