添加数据表文件
This commit is contained in:
parent
d2b40fee3a
commit
088112ba44
22
InSituLaboratory.Entities/BaseCavity.cs
Normal file
22
InSituLaboratory.Entities/BaseCavity.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.Entities
|
||||
{
|
||||
public class BaseCavity
|
||||
{
|
||||
/// <summary>
|
||||
/// 记录时间
|
||||
/// </summary>
|
||||
public DateTime RecordTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 腔体识别码
|
||||
/// </summary>
|
||||
public int CavityPIN { get; set; }
|
||||
}
|
||||
}
|
||||
26
InSituLaboratory.Entities/cavitybatterylevel.cs
Normal file
26
InSituLaboratory.Entities/cavitybatterylevel.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 电池电量表
|
||||
/// </summary>
|
||||
public class cavitybatterylevel: BaseCavity
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据编号
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int DataIdNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电池电压
|
||||
/// </summary>
|
||||
public float Voltage { get; set; }
|
||||
}
|
||||
}
|
||||
63
InSituLaboratory.Entities/cavityenergyconversion.cs
Normal file
63
InSituLaboratory.Entities/cavityenergyconversion.cs
Normal file
@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 腔体电能转换板使能状态表
|
||||
/// </summary>
|
||||
public class cavityenergyconversion : BaseCavity
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据编号
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int DataIdNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板1 24V使能
|
||||
/// </summary>
|
||||
public string? Enable1Of24V { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板1 12V使能
|
||||
/// </summary>
|
||||
public string? Enable1Of12V { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板2 24V使能
|
||||
/// </summary>
|
||||
public string? Enable2Of24V { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板2 12V使能
|
||||
/// </summary>
|
||||
public string? Enable2Of12V { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板3 24V使能
|
||||
/// </summary>
|
||||
public string? Enable3Of24V { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板3 12V使能
|
||||
/// </summary>
|
||||
public string? Enable3Of12V { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板4 24V使能
|
||||
/// </summary>
|
||||
public string? Enable4Of24V { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板4 12V使能
|
||||
/// </summary>
|
||||
public string? Enable4Of12V { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
51
InSituLaboratory.Entities/cavityenvironment.cs
Normal file
51
InSituLaboratory.Entities/cavityenvironment.cs
Normal file
@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 腔体内部环境
|
||||
/// </summary>
|
||||
public class cavityenvironment : BaseCavity
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据编号
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int DataIdNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 温度1
|
||||
/// </summary>
|
||||
public float Temperature1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 温度2
|
||||
/// </summary>
|
||||
public float Temperature2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 湿度1
|
||||
/// </summary>
|
||||
public float HumDataIdNumity1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 湿度2
|
||||
/// </summary>
|
||||
public float HumDataIdNumity2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 漏水1
|
||||
/// </summary>
|
||||
public float Leak1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 漏水2
|
||||
/// </summary>
|
||||
public float Leak2 { get; set; }
|
||||
}
|
||||
}
|
||||
87
InSituLaboratory.Entities/cavityoperationstatus.cs
Normal file
87
InSituLaboratory.Entities/cavityoperationstatus.cs
Normal file
@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 腔体运行状态表
|
||||
/// </summary>
|
||||
public class cavityoperationstatus : BaseCavity
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据编号
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int DataIdNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板1的48V电压
|
||||
/// </summary>
|
||||
public float Voltage48V1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板1的48V电流
|
||||
/// </summary>
|
||||
public float Current48V1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板1的24V电流
|
||||
/// </summary>
|
||||
public float Current24V1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板2的48V电流
|
||||
/// </summary>
|
||||
public float Current48V2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板2的24V电流
|
||||
/// </summary>
|
||||
public float Current24V2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板3的48V电流
|
||||
/// </summary>
|
||||
public float Current48V3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板3的24V电流
|
||||
/// </summary>
|
||||
public float Current24V3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板4的48V电流
|
||||
/// </summary>
|
||||
public float Current48V4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能转换板4的24V电流
|
||||
/// </summary>
|
||||
public float Current24V4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 漏电流模块1
|
||||
/// </summary>
|
||||
public float LeakageCurrent1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 漏电流模块2
|
||||
/// </summary>
|
||||
public float LeakageCurrent2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 漏电流模块3
|
||||
/// </summary>
|
||||
public float LeakageCurrent3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 漏电流模块4
|
||||
/// </summary>
|
||||
public float LeakageCurrent4 { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
111
InSituLaboratory.Entities/cavityoutputcurrent.cs
Normal file
111
InSituLaboratory.Entities/cavityoutputcurrent.cs
Normal file
@ -0,0 +1,111 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 腔体输出电流表
|
||||
/// </summary>
|
||||
public class cavityoutputcurrent: BaseCavity
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据编号
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int DataIdNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 色质联用输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfGC_MS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用串口1输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfSecondComPort1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用串口2输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfSecondComPort2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 光通讯机输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfOpticalComm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ADCP输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfADCP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CTD输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfCTD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 气相色谱仪输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfDC_ECD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 甲烷同位素分析仪电流
|
||||
/// </summary>
|
||||
public float CurrentOfCH4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 二氧化碳同位素分析仪电流
|
||||
/// </summary>
|
||||
public float CurrentOfCo2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用网口输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfSNetPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 串口服务器输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfSerialServer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工作机输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfIPC { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 显微拉曼分析仪输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfMicroRaman { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 质谱仪输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfMS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 声学定位输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfALD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摄像1的输出电流
|
||||
/// </summary>
|
||||
public float CurrrentOfVDataIdNumeo1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摄像2的输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfVDataIdNumeo2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电交换机2输出电流
|
||||
/// </summary>
|
||||
public float CurrentOfSwichBoard { get; set; }
|
||||
}
|
||||
}
|
||||
111
InSituLaboratory.Entities/cavityoutputfeedback.cs
Normal file
111
InSituLaboratory.Entities/cavityoutputfeedback.cs
Normal file
@ -0,0 +1,111 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 腔体输出反馈表
|
||||
/// </summary>
|
||||
public class cavityoutputfeedback : BaseCavity
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据编号
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int DataIdNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 色质联用输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfGC_MS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用串口1输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedback1OfSecondComPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用串口2输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedback2OfSecondComPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 光通讯机输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfOpticalComm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ADCP输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfADCP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CTD输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfCTD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 气相色谱仪输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfDC_ECD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 甲烷同位素分析仪反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfCH4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 二氧化碳同位素分析仪反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfCo2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用网口反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfSNetPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 串口服务器反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfSerialServer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工作机输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfIPC { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 显微拉曼分析仪输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfMicroRaman { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 质谱仪输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfMS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 声学定位输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfALD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摄像1的输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfVDataIdNumeo1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摄像2的输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfVDataIdNumeo2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电交换机2输出反馈
|
||||
/// </summary>
|
||||
public string? OutputFeedbackOfSwichBoard { get; set; }
|
||||
}
|
||||
}
|
||||
112
InSituLaboratory.Entities/cavityoutputstatus.cs
Normal file
112
InSituLaboratory.Entities/cavityoutputstatus.cs
Normal file
@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 腔体输出状态表
|
||||
/// </summary>
|
||||
public class cavityoutputstatus : BaseCavity
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据编号
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int DataIdNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 色质联用输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfGC_MS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用串口1输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfSecondComPort1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用串口2输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfSecondComPort2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 光通讯机输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfOpticalComm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ADCP输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfADCP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CTD输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfCTD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 气相色谱仪输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfDC_ECD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 甲烷同位素分析仪状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfCH4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 二氧化碳同位素分析仪状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfCo2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备用网口状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfSNetPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 串口服务器状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfSerialServer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工作机输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfIPC { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 显微拉曼分析仪输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfMicroRaman { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 质谱仪输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfMS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 声学定位输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfALD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摄像1的输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfVDataIdNumeo1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摄像2的输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfVDataIdNumeo2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电交换机2输出状态
|
||||
/// </summary>
|
||||
public string? OutputStateOfSwichBoard { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -58,5 +58,12 @@ namespace InSituLaboratory.ORM
|
||||
public virtual DbSet<SysRole> SysRole { get; set; }
|
||||
public virtual DbSet<RoleMenu> RoleMenu { get; set; }
|
||||
public virtual DbSet<RoleUser> RoleUser { get; set; }
|
||||
public virtual DbSet<cavityoperationstatus> cavityoperationstatus { get; set; }
|
||||
public virtual DbSet<cavityenvironment> cavityenvironment { get; set; }
|
||||
public virtual DbSet<cavityoutputfeedback> cavityoutputfeedback { get; set; }
|
||||
public virtual DbSet<cavityoutputstatus> cavityoutputstatus { get; set; }
|
||||
public virtual DbSet<cavityoutputcurrent> cavityoutputcurrent { get; set; }
|
||||
public virtual DbSet<cavityenergyconversion> cavityenergyconversion { get; set; }
|
||||
public virtual DbSet<cavitybatterylevel> cavitybatterylevel { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user