20230201_145_upperpc/InSituLaboratory.Entities/Sensor/ParticleAnalyzerModel.cs

124 lines
3.4 KiB
C#
Raw Normal View History

2024-09-02 02:59:06 +00:00
using LiveCharts;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2024-09-02 02:59:06 +00:00
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InSituLaboratory.Entities.Sensor
{
/// <summary>
/// 颗粒物分析仪
/// </summary>
public class ParticleAnalyzerModel
{
/// <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; }
2024-09-02 02:59:06 +00:00
/// <summary>
/// 颗粒物序号
/// </summary>
public float? ParticleNumber { get; set; }
/// <summary>
/// 坐标X
/// </summary>
public float? CoordinateX { get; set; }
/// <summary>
/// 坐标Y
/// </summary>
public float? CoordinateY { get; set; }
/// <summary>
/// 类型
/// </summary>
public float? Type { get; set; }
/// <summary>
/// 面积
/// </summary>
public float? Area { get; set; }
/// <summary>
/// 长
/// </summary>
public float? Long { get; set; }
/// <summary>
/// 宽
/// </summary>
public float? Wide { get; set; }
[NotMapped]
public int DataIdNum { get; set; }
public ChartsModel AreaCharts { get; set; } = new ChartsModel()
{
Values = new ChartValues<float>(),
Value_Name = "面积",
X_Time = new List<string>(),
Y_MinValue = Convert.ToInt32(tools.GetAppSetting("颗粒物分析仪面积Min")),
Y_MaxValue = Convert.ToInt32(tools.GetAppSetting("颗粒物分析仪面积Max"))
};
public ChartsModel LongCharts { get; set; } = new ChartsModel()
{
Values = new ChartValues<float>(),
Value_Name = "长",
X_Time = new List<string>(),
Y_MinValue = Convert.ToInt32(tools.GetAppSetting("颗粒物分析仪长Min")),
Y_MaxValue = Convert.ToInt32(tools.GetAppSetting("颗粒物分析仪长Max"))
2024-09-02 02:59:06 +00:00
};
2024-09-02 02:59:06 +00:00
public ChartsModel WideCharts { get; set; } = new ChartsModel()
{
Values = new ChartValues<float>(),
Value_Name = "宽",
X_Time = new List<string>(),
Y_MinValue = Convert.ToInt32(tools.GetAppSetting("颗粒物分析仪宽Min")),
Y_MaxValue = Convert.ToInt32(tools.GetAppSetting("颗粒物分析仪宽Max"))
2024-09-02 02:59:06 +00:00
};
}
}