diff --git a/CapMachine.Model/ActionLog.cs b/CapMachine.Model/ActionLog.cs
new file mode 100644
index 0000000..01d96a2
--- /dev/null
+++ b/CapMachine.Model/ActionLog.cs
@@ -0,0 +1,47 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// ActionLog
+ /// 动作日志
+ ///
+ [Table(Name = "ActionLog")]
+ public class ActionLog
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 等级
+ ///
+ [Column(Name = "Level")]
+ public int Level { get; set; }
+
+ ///
+ /// 分类
+ ///
+ [Column(Name = "Category", IsNullable = true, StringLength = 30)]
+ public string? Category { get; set; }
+
+ ///
+ /// 内容
+ ///
+ [Column(Name = "Content", IsNullable = true, StringLength = 300)]
+ public string? Content { get; set; }
+
+ ///
+ /// 创建时间
+ ///
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterCond1Temp.cs b/CapMachine.Model/MeterConfig/MeterCond1Temp.cs
new file mode 100644
index 0000000..27d1e18
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterCond1Temp.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// COND1温度 表设置
+ ///
+ [Table(Name = "MeterCond1Temp")]
+ public class MeterCond1Temp
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterCond2Temp.cs b/CapMachine.Model/MeterConfig/MeterCond2Temp.cs
new file mode 100644
index 0000000..869d470
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterCond2Temp.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// COND2温度 表设置
+ ///
+ [Table(Name = "MeterCond2Temp")]
+ public class MeterCond2Temp
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterCondPress.cs b/CapMachine.Model/MeterConfig/MeterCondPress.cs
new file mode 100644
index 0000000..0248e1f
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterCondPress.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// COND2压力 表设置
+ ///
+ [Table(Name = "MeterCondPress")]
+ public class MeterCondPress
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterEVAPExpTemp.cs b/CapMachine.Model/MeterConfig/MeterEVAPExpTemp.cs
new file mode 100644
index 0000000..46383b0
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterEVAPExpTemp.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// EVAP出口温度(℃) 表设置
+ ///
+ [Table(Name = "MeterEVAPExpTemp")]
+ public class MeterEVAPExpTemp
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterExPress.cs b/CapMachine.Model/MeterConfig/MeterExPress.cs
new file mode 100644
index 0000000..b278787
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterExPress.cs
@@ -0,0 +1,71 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// 排气压力设置
+ ///
+ [Table(Name = "MeterExPress")]
+ public class MeterExPress
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterHVVol.cs b/CapMachine.Model/MeterConfig/MeterHVVol.cs
new file mode 100644
index 0000000..b123d1e
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterHVVol.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// HV电压 表设置
+ ///
+ [Table(Name = "MeterHVVol")]
+ public class MeterHVVol
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterInhPress.cs b/CapMachine.Model/MeterConfig/MeterInhPress.cs
new file mode 100644
index 0000000..8d98cb2
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterInhPress.cs
@@ -0,0 +1,65 @@
+using FreeSql.DataAnnotations;
+
+namespace CapMachine.Model
+{
+ ///
+ /// 吸气压力 表设置
+ ///
+ [Table(Name = "MeterInhPress")]
+ public class MeterInhPress
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterInhTemp.cs b/CapMachine.Model/MeterConfig/MeterInhTemp.cs
new file mode 100644
index 0000000..316a9d3
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterInhTemp.cs
@@ -0,0 +1,66 @@
+using FreeSql.DataAnnotations;
+
+namespace CapMachine.Model
+{
+ ///
+ /// 吸气温度 设置
+ ///
+ [Table(Name = "MeterInhTemp")]
+ public class MeterInhTemp
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterLVVol.cs b/CapMachine.Model/MeterConfig/MeterLVVol.cs
new file mode 100644
index 0000000..19eb742
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterLVVol.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// LV电压 表设置
+ ///
+ [Table(Name = "MeterLVVol")]
+ public class MeterLVVol
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterLoPress.cs b/CapMachine.Model/MeterConfig/MeterLoPress.cs
new file mode 100644
index 0000000..1f7eb3b
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterLoPress.cs
@@ -0,0 +1,71 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// 润滑油压力 设置
+ ///
+ [Table(Name = "MeterLoPress")]
+ public class MeterLoPress
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterOCR.cs b/CapMachine.Model/MeterConfig/MeterOCR.cs
new file mode 100644
index 0000000..bf44daf
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterOCR.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// OCR 表设置
+ ///
+ [Table(Name = "MeterOCR")]
+ public class MeterOCR
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterOS1Temp.cs b/CapMachine.Model/MeterConfig/MeterOS1Temp.cs
new file mode 100644
index 0000000..b767e9a
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterOS1Temp.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// OS1温度 表设置
+ ///
+ [Table(Name = "MeterOS1Temp")]
+ public class MeterOS1Temp
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterOS2Temp.cs b/CapMachine.Model/MeterConfig/MeterOS2Temp.cs
new file mode 100644
index 0000000..e9f01b7
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterOS2Temp.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// OS2温度 表设置
+ ///
+ [Table(Name = "MeterOS2Temp")]
+ public class MeterOS2Temp
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterPTCEntTemp.cs b/CapMachine.Model/MeterConfig/MeterPTCEntTemp.cs
new file mode 100644
index 0000000..242e871
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterPTCEntTemp.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// PTC入口温度(℃) 表设置
+ ///
+ [Table(Name = "MeterPTCEntTemp")]
+ public class MeterPTCEntTemp
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterPTCFlow.cs b/CapMachine.Model/MeterConfig/MeterPTCFlow.cs
new file mode 100644
index 0000000..4f765fc
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterPTCFlow.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// PTC流量 表设置
+ ///
+ [Table(Name = "MeterPTCFlow")]
+ public class MeterPTCFlow
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterPTCPw.cs b/CapMachine.Model/MeterConfig/MeterPTCPw.cs
new file mode 100644
index 0000000..e215c8f
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterPTCPw.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// PTC功率 表设置
+ ///
+ [Table(Name = "MeterPTCPw")]
+ public class MeterPTCPw
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterPd.cs b/CapMachine.Model/MeterConfig/MeterPd.cs
similarity index 100%
rename from CapMachine.Model/MeterPd.cs
rename to CapMachine.Model/MeterConfig/MeterPd.cs
diff --git a/CapMachine.Model/MeterPs.cs b/CapMachine.Model/MeterConfig/MeterPs.cs
similarity index 100%
rename from CapMachine.Model/MeterPs.cs
rename to CapMachine.Model/MeterConfig/MeterPs.cs
diff --git a/CapMachine.Model/MeterSpeed.cs b/CapMachine.Model/MeterConfig/MeterSpeed.cs
similarity index 100%
rename from CapMachine.Model/MeterSpeed.cs
rename to CapMachine.Model/MeterConfig/MeterSpeed.cs
diff --git a/CapMachine.Model/MeterConfig/MeterTestBoxRH.cs b/CapMachine.Model/MeterConfig/MeterTestBoxRH.cs
new file mode 100644
index 0000000..358f04f
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterTestBoxRH.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// 试验箱湿度 表设置
+ ///
+ [Table(Name = "MeterTestBoxRH")]
+ public class MeterTestBoxRH
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/MeterConfig/MeterTestBoxTemp.cs b/CapMachine.Model/MeterConfig/MeterTestBoxTemp.cs
new file mode 100644
index 0000000..4a15bcc
--- /dev/null
+++ b/CapMachine.Model/MeterConfig/MeterTestBoxTemp.cs
@@ -0,0 +1,70 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CapMachine.Model
+{
+ ///
+ /// 试验箱温度 表设置
+ ///
+ [Table(Name = "MeterTestBoxTemp")]
+ public class MeterTestBoxTemp
+ {
+ ///
+ /// 主键
+ ///
+ [Column(IsPrimary = true, IsIdentity = true)]
+ public long Id { get; set; }
+
+ ///
+ /// 程序步骤序号
+ ///
+ [Column(Name = "StepNo")]
+ public int StepNo { get; set; }
+
+ ///
+ /// 开始值
+ ///
+ [Column(Name = "StartValue")]
+ public double StartValue { get; set; }
+
+ ///
+ /// 结束值
+ ///
+ [Column(Name = "EndValue")]
+ public double EndValue { get; set; }
+
+ ///
+ /// 维持时间
+ ///
+ [Column(Name = "KeepTime")]
+ public double KeepTime { get; set; }
+
+ ///
+ /// 配置值类型
+ ///
+ [Column(MapType = typeof(int))]
+ public ConfigValueType ValueType { get; set; }
+
+ ///
+ /// 常值
+ /// 在ValueType为常值时会使用
+ ///
+ [Column(Name = "Constant")]
+ public double Constant { get; set; }
+
+
+ [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
+ public DateTime CreateTime { get; set; }
+
+ ///
+ /// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
+ ///
+
+ public long ProStepId { get; set; }
+ public ProStep? ProStep { get; set; }
+ }
+}
diff --git a/CapMachine.Model/ProStep.cs b/CapMachine.Model/ProStep.cs
index f992cf8..9f67167 100644
--- a/CapMachine.Model/ProStep.cs
+++ b/CapMachine.Model/ProStep.cs
@@ -53,10 +53,27 @@ namespace CapMachine.Model
///
public ICollection? MeterSpeeds { get; set; }
- public ICollection? MeterPds { get; set; }
- public ICollection? MeterPss { get; set; }
-
+ public ICollection? MeterCond1Temps { get; set; }
+ public ICollection? MeterCond2Temps { get; set; }
+ public ICollection? MeterCondPresss { get; set; }
+ public ICollection? MeterEVAPExpTemps { get; set; }
+ public ICollection? MeterExPresss { get; set; }
+ public ICollection? MeterHVVols { get; set; }
+ public ICollection? MeterInhPresss { get; set; }
+ public ICollection? MeterInhTemps { get; set; }
+ public ICollection? MeterLoPresss { get; set; }
+ public ICollection? MeterLVVols { get; set; }
+ public ICollection? MeterOCRs { get; set; }
+ public ICollection? MeterOS1Temps { get; set; }
+ public ICollection? MeterOS2Temps { get; set; }
+ public ICollection? MeterPTCEntTemps { get; set; }
+ public ICollection? MeterPTCFlows { get; set; }
+ public ICollection? MeterPTCPws { get; set; }
+ public ICollection? MeterTestBoxRHs { get; set; }
+ public ICollection? MeterTestBoxTemps { get; set; }
+ //public ICollection? MeterPds { get; set; }
+ //public ICollection? MeterPss { get; set; }
///
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
diff --git a/CapMachine.Model/ProgramSeg.cs b/CapMachine.Model/ProgramSeg.cs
index ebe4669..8d87e17 100644
--- a/CapMachine.Model/ProgramSeg.cs
+++ b/CapMachine.Model/ProgramSeg.cs
@@ -4,6 +4,9 @@ using System.Collections.Generic;
namespace CapMachine.Model
{
+ ///
+ /// 程序设置
+ ///
[Table(Name = "ProgramSeg")]
public class ProgramSeg
{
@@ -18,7 +21,7 @@ namespace CapMachine.Model
/// 工况名称
///
[Column(Name = "Name", IsNullable = false, StringLength = 50)]
- public string Name { get; set; }
+ public string? Name { get; set; }
///
/// 程序段反复
@@ -30,13 +33,13 @@ namespace CapMachine.Model
/// 编辑者
///
[Column(Name = "UserName", IsNullable = false, StringLength = 20)]
- public string UserName { get; set; }
+ public string? UserName { get; set; }
///
/// 备注
///
[Column(Name = "Remark", IsNullable = false, StringLength = 100)]
- public string Remark { get; set; }
+ public string? Remark { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
diff --git a/CapMachine.Shared/Controls/Meter.xaml.cs b/CapMachine.Shared/Controls/Meter.xaml.cs
index 992f75e..6ac5ea3 100644
--- a/CapMachine.Shared/Controls/Meter.xaml.cs
+++ b/CapMachine.Shared/Controls/Meter.xaml.cs
@@ -32,14 +32,14 @@ namespace CapMachine.Shared.Controls
{
get
{
- return (string)base.GetValue(MeterConfig.MeterNameProperty);
+ return (string)base.GetValue(Meter.MeterNameProperty);
}
set
{
- base.SetValue(MeterConfig.MeterNameProperty, value);
+ base.SetValue(Meter.MeterNameProperty, value);
}
}
- public static readonly DependencyProperty MeterNameProperty = DependencyProperty.Register("MeterName", typeof(string), typeof(MeterConfig), new PropertyMetadata("速度"));
+ public static readonly DependencyProperty MeterNameProperty = DependencyProperty.Register("MeterName", typeof(string), typeof(Meter), new PropertyMetadata("名称"));
diff --git a/CapMachine.Wpf/App.xaml.cs b/CapMachine.Wpf/App.xaml.cs
index 3bd39ed..d13b483 100644
--- a/CapMachine.Wpf/App.xaml.cs
+++ b/CapMachine.Wpf/App.xaml.cs
@@ -53,7 +53,9 @@ namespace CapMachine.Wpf
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
////注册日志服务
- //containerRegistry.RegisterSingleton();
+ containerRegistry.RegisterSingleton();
+ containerRegistry.RegisterSingleton();
+ containerRegistry.RegisterSingleton();
////注册设备服务
//containerRegistry.RegisterSingleton();
@@ -79,9 +81,12 @@ namespace CapMachine.Wpf
containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
- //containerRegistry.RegisterForNavigation();
- //containerRegistry.RegisterForNavigation();
-
+ containerRegistry.RegisterForNavigation();
+ containerRegistry.RegisterForNavigation();
+ containerRegistry.RegisterForNavigation();
+ containerRegistry.RegisterForNavigation();
+ containerRegistry.RegisterForNavigation();
+
//注册Dialog视图时绑定VM
containerRegistry.RegisterDialog();
containerRegistry.RegisterDialog();
@@ -120,6 +125,7 @@ namespace CapMachine.Wpf
//从容器中获取MainView的实例对象
var container = ContainerLocator.Container;
var shell = container.Resolve