This commit is contained in:
2024-12-18 15:50:21 +08:00
parent 684973e6b7
commit b2c54119ea
214 changed files with 65908 additions and 8461 deletions

View File

@@ -0,0 +1,53 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model.CANLIN
{
/// <summary>
/// CAN配置拓展数据
/// </summary>
[Table(Name = "CANConfigExd")]
public class CANConfigExd
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 波特率
/// </summary>
[Column(Name = "BaudRate")]
public int BaudRate { get; set; }
/// <summary>
/// 周期
/// </summary>
[Column(Name = "Cycle")]
public int Cycle { get; set; }
/// <summary>
/// Dbc文件路径
/// </summary>
[Column(Name = "DbcPath", IsNullable = false, StringLength = 500)]
public string? DbcPath { get; set; }
///// <summary>
///// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
///// </summary>
////[Key]
//public long CanLinConfigProId { get; set; }
////[Navigate(nameof(CanLinConfigProId))]
//public CanLinConfigPro? CanLinConfigPro { get; set; }
}
}

View File

@@ -0,0 +1,56 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model.CANLIN
{
/// <summary>
/// CAN和LIN的配置信息数据
/// </summary>
[Table(Name = "CanLinConfigPro")]
public class CanLinConfigPro
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 配置名称
/// </summary>
[Column(Name = "ConfigName", IsNullable = false, StringLength = 100)]
public string? ConfigName { get; set; }
/// <summary>
/// 分类信息-CAN/LIN
/// </summary>
[Column(Name = "CANLINInfo", IsNullable = false, MapType = typeof(string))]
public CANLIN CANLINInfo { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public List<CanLinRWConfig>? CanLinConfigContents { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性 一对一///////////////////////////////////////////////////////
/// </summary>
public long CANConfigExdId { get; set; } // 外键字段,必要
public CANConfigExd CANConfigExd { get; set; }
}
}

View File

@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model.CANLIN
{
public class CanLinEnum
{
}
/// <summary>
/// CANLIN的枚举
/// </summary>
public enum CANLIN
{
/// <summary>
/// CAN
/// </summary>
CAN = 1,
/// <summary>
/// LIN
/// </summary>
LIN = 2,
}
/// <summary>
/// Write/Read
/// </summary>
public enum RW
{
/// <summary>
/// Write
/// </summary>
Write = 1,
/// <summary>
/// Read
/// </summary>
Read = 2,
}
}

View File

@@ -0,0 +1,55 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model.CANLIN
{
/// <summary>
/// CAN和LIN的配置数据内容
/// </summary>
[Table(Name = "CanLinConfigContent")]
public class CanLinRWConfig
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 输入输出信息 读取/写入/系统
/// </summary>
[Column(Name = "RWInfo", IsNullable = false, MapType = typeof(string))]
public RW RWInfo { get; set; }
/// <summary>
/// 配置项名称-比如转速、功率限制等
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 50)]
public string? Name { get; set; }
/// <summary>
/// 配置项值
/// </summary>
[Column(Name = "Content", IsNullable = false, StringLength = 100)]
public string? Content { get; set; }
/// <summary>
/// 配置项默认值和数据
/// </summary>
[Column(Name = "DefautValue", IsNullable = true, StringLength = 50)]
public string? DefautValue { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long CanLinConfigProId { get; set; }
public CanLinConfigPro? CanLinConfigPro { get; set; }
}
}

View File

@@ -6,6 +6,6 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FreeSql" Version="3.2.833" />
<PackageReference Include="FreeSql" Version="3.5.102" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,44 @@
using FreeSql.DataAnnotations;
namespace CapMachine.Model
{
/// <summary>
/// ChartTabGroup表设置
/// 分页数据名称维护
/// </summary>
[Table(Name = "ChartTabGroup")]
public class ChartTabGroup
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 序号
/// </summary>
[Column(Name = "Index")]
public int Index { get; set; }
/// <summary>
/// Machine
/// 机器名称
/// </summary>
[Column(Name = "Machine", IsNullable = false, StringLength = 50)]
public string? Machine { get; set; }
/// <summary>
/// Name
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 50)]
public string? Name { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Column(Name = "IsEnable")]
public bool IsEnable { get; set; }
}
}

View File

@@ -1,17 +1,12 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
/// <summary>
/// ConfigChartSelect表设置
/// </summary>
[Table(Name = "ConfigChartSelect")]
public class ConfigChartSelect
[Table(Name = "ConfigChart")]
public class ConfigChart
{
/// <summary>
/// 主键
@@ -26,10 +21,18 @@ namespace CapMachine.Model
public int Index { get; set; }
/// <summary>
/// 分类/工况
/// 机器名称
/// 可能有三台机器并为1个
/// </summary>
[Column(Name = "Category", IsNullable = false, StringLength = 50)]
public string? Category { get; set; }
[Column(Name = "Machine", IsNullable = false, StringLength = 50)]
public string? Machine { get; set; }
/// <summary>
/// 分组 Index
/// 工况/过热度/环境 等分组的曲线配置
/// </summary>
[Column(Name = "GroupTabIndex")]
public int GroupTabIndex { get; set; }
/// <summary>
/// 名称
@@ -46,7 +49,7 @@ namespace CapMachine.Model
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long ConfigChartYAxisId { get; set; }
public ConfigChartYAxis? ConfigChartYAxis { get; set; }

View File

@@ -7,14 +7,14 @@ using System.Threading.Tasks;
namespace CapMachine.Model
{
[Table(Name = "QuickLimtNo")]
public class QuickLimtNo
[Table(Name = "ConfigLimit")]
public class ConfigLimit
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true)]
public Guid Id { get; set; }
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 快速设置仪表名称

View File

@@ -7,14 +7,14 @@ using System.Threading.Tasks;
namespace CapMachine.Model
{
[Table(Name = "QuickPIDNo")]
public class QuickPIDNo
[Table(Name = "ConfigPID")]
public class ConfigPID
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true)]
public Guid Id { get; set; }
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 快速设置仪表名称

View File

@@ -0,0 +1,44 @@
using FreeSql.DataAnnotations;
namespace CapMachine.Model
{
/// <summary>
/// HistoryChartTabGroup表设置
/// 分页数据名称维护
/// </summary>
[Table(Name = "HistoryChartTabGroup")]
public class HistoryChartTabGroup
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 序号
/// </summary>
[Column(Name = "Index")]
public int Index { get; set; }
/// <summary>
/// Machine
/// 机器名称
/// </summary>
[Column(Name = "Machine", IsNullable = false, StringLength = 50)]
public string? Machine { get; set; }
/// <summary>
/// Name
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 50)]
public string? Name { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Column(Name = "IsEnable")]
public bool IsEnable { get; set; }
}
}

View File

@@ -0,0 +1,57 @@
using FreeSql.DataAnnotations;
namespace CapMachine.Model
{
/// <summary>
/// HistoryConfigChart表设置
/// </summary>
[Table(Name = "HistoryConfigChart")]
public class HistoryConfigChart
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 序号
/// </summary>
[Column(Name = "Index")]
public int Index { get; set; }
/// <summary>
/// 机器名称
/// 可能有三台机器并为1个
/// </summary>
[Column(Name = "Machine", IsNullable = false, StringLength = 50)]
public string? Machine { get; set; }
/// <summary>
/// 分组 Index
/// 工况/过热度/环境 等分组的曲线配置
/// </summary>
[Column(Name = "GroupTabIndex")]
public int GroupTabIndex { get; set; }
/// <summary>
/// 名称
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 50)]
public string? Name { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long ConfigChartYAxisId { get; set; }
public ConfigChartYAxis? ConfigChartYAxis { get; set; }
}
}

View File

@@ -0,0 +1,155 @@
using FreeSql.DataAnnotations;
namespace CapMachine.Model
{
/// <summary>
/// 历史试验信息
/// 保存的文件信息
/// </summary>
[Table(Name = "HistoryExp")]
public class HistoryExp
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 试验名称
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 200)]
public string? Name { get; set; }
/// <summary>
/// 是否完成
/// </summary>
[Column(Name = "IsComplete")]
public bool IsComplete { get; set; }
/// <summary>
/// 实验工况
/// </summary>
[Column(Name = "WorkCond", IsNullable = true, StringLength = 100)]
public string? WorkCond { get; set; }
/// <summary>
/// 实验编号
/// </summary>
[Column(Name = "ExpNo", IsNullable = true, StringLength = 100)]
public string? ExpNo { get; set; }
/// <summary>
/// 试验人
/// </summary>
[Column(Name = "ExpPerson", IsNullable = true, StringLength = 20)]
public string? ExpPerson { get; set; }
/// <summary>
/// 压缩机型号
/// </summary>
[Column(Name = "CapModel", IsNullable = true, StringLength = 150)]
public string? CapModel { get; set; }
/// <summary>
/// 压缩机编号
/// </summary>
[Column(Name = "CapNo", IsNullable = true, StringLength = 150)]
public string? CapNo { get; set; }
/// <summary>
/// 制冷剂
/// </summary>
[Column(Name = "RNo", IsNullable = true, StringLength = 100)]
public string? RfNo { get; set; }
/// <summary>
/// 生产厂家
/// </summary>
[Column(Name = "Manufactor", IsNullable = true, StringLength = 150)]
public string? Manufactor { get; set; }
/// <summary>
/// 润滑油型号
/// </summary>
[Column(Name = "LubrOilModel", IsNullable = true, StringLength = 100)]
public string? LubrOilModel { get; set; }
/// <summary>
/// 压缩机类型
/// 电动/皮带轮
/// </summary>
[Column(Name = "CompressorType", IsNullable = true, StringLength = 50)]
public string? CapType { get; set; }
/// <summary>
/// 压缩机重量 Kg
/// </summary>
[Column(Name = "Weight", IsNullable = true, StringLength = 100)]
public string? Weight { get; set; }
/// <summary>
/// 充油量
/// </summary>
[Column(Name = "OilCount", IsNullable = true, StringLength = 50)]
public string? OilCount { get; set; }
///// <summary>
///// 加油量
///// </summary>
//[Column(Name = "RefuelingCount", IsNullable = false, StringLength = 50)]
//public string? RefuelingCount { get; set; }
/// <summary>
/// 委托人
/// </summary>
[Column(Name = "Cnee", IsNullable = true, StringLength = 100)]
public string? Cnee { get; set; }
/// <summary>
/// 委托公司
/// </summary>
[Column(Name = "CneeCo", IsNullable = true, StringLength = 150)]
public string? CneeCo { get; set; }
/// <summary>
/// 委托单号
/// </summary>
[Column(Name = "CneeNo", IsNullable = true, StringLength = 150)]
public string? CneeNo { get; set; }
/// <summary>
/// 试验类型
/// </summary>
[Column(Name = "ExpType", IsNullable = true, StringLength = 100)]
public string? ExpType { get; set; }
/// <summary>
/// 生产批号
/// </summary>
[Column(Name = "BatchNo", IsNullable = true, StringLength = 50)]
public string? BatchNo { get; set; }
/// <summary>
/// 参考标准
/// </summary>
[Column(Name = "RefStd", IsNullable = true, StringLength = 150)]
public string? RefStd { get; set; }
///// <summary>
///// 备注
///// </summary>
//[Column(Name = "Remark", IsNullable = false, StringLength = 400)]
//public string? Remark { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public List<HistoryWorkCondFile>? HistoryWorkCondFiles { get; set; }
}
}

View File

@@ -0,0 +1,53 @@
using FreeSql.DataAnnotations;
namespace CapMachine.Model
{
/// <summary>
/// 历史工况对应的文件信息
/// </summary>
[Table(Name = "HistoryWorkCondFile")]
public class HistoryWorkCondFile
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
///// <summary>
///// 序号
///// </summary>
//[Column(Name = "Index")]
//public int Index { get; set; }
/// <summary>
/// 日期
/// </summary>
[Column(Name = "WorkDay", IsNullable = false, StringLength = 50)]
public string? WorkDay { get; set; }
/// <summary>
/// 文件路径
/// </summary>
[Column(Name = "FilePath", IsNullable = false, StringLength = 200)]
public string? FilePath { get; set; }
///// <summary>
///// 开始时间
///// </summary>
//[Column(Name = "StartTime")]
//public DateTime StartTime { get; set; }
///// <summary>
///// 结束时间
///// </summary>
//[Column(Name = "EndTime")]
//public DateTime EndTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long HistoryExpId { get; set; }
public HistoryExp? HistoryExp { get; set; }
}
}

View File

@@ -56,6 +56,23 @@ namespace CapMachine.Model
[Column(Name = "Constant")]
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,24 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -52,6 +52,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -52,6 +52,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -57,6 +57,25 @@ namespace CapMachine.Model
public double Constant { get; set; }
/// <summary>
/// PID No
/// </summary>
[Column(Name = "PIDNo")]
public int PIDNo { get; set; }
/// <summary>
/// 限幅 No
/// </summary>
[Column(Name = "LimitNo")]
public int LimitNo { get; set; }
/// <summary>
/// 报警 No
/// </summary>
[Column(Name = "AlarmNo")]
public int AlarmNo { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }

View File

@@ -97,11 +97,11 @@ namespace CapMachine.Model
public bool InhExhValve { get; set; }
// <summary>
/// 加热器使能0/1
/// 加热器使能0/1PTC使能
/// 跟随速度步骤的常值数据
/// </summary>
[Column(Name = "HeatEnable")]
public bool HeatEnable { get; set; }
[Column(Name = "PTCEnable")]
public bool PTCEnable { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]

View File

@@ -0,0 +1,85 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model.ModelMapConfig
{
/// <summary>
/// ModelMap的Columns
/// </summary>
[Table(Name = "Columns")]
public class Columns
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 名称
/// </summary>
[Column(Name = "Name", IsNullable = true, StringLength = 50)]
public string? Name { get; set; }
/// <summary>
/// MapType
/// </summary>
[Column(Name = "MapType", IsNullable = true, StringLength = 50)]
public string? MapType { get; set; }
/// <summary>
/// 使用字符串属性时
/// 字符串长度
/// </summary>
[Column(Name = "StringLength")]
public short StringLength { get; set; }
/// <summary>
/// 是否可空
/// 可空
/// </summary>
[Column(Name = "IsNullable")]
public bool IsNullable { get; set; }
/// <summary>
/// 使用decimal 属性时
/// 小数点
/// </summary>
[Column(Name = "Precision")]
public short Precision { get; set; }
/// <summary>
/// 使用decimal 属性时
/// 长度
/// </summary>
[Column(Name = "Scale")]
public short Scale { get; set; }
///// <summary>
///// 使用时间属性时
///// 时间的特点
///// </summary>
//[Column(Name = "ServerTime", IsNullable = true, StringLength = 50)]
//public string ServerTime { get; set; }
/// <summary>
/// 是否主键
/// </summary>
[Column(Name = "IsPrimary")]
public bool IsPrimary { get; set; }
/// <summary>
/// 是否自增
/// </summary>
[Column(Name = "IsIdentity")]
public bool IsIdentity { get; set; }
}
}

View File

@@ -0,0 +1,42 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model.ModelMapConfig
{
/// <summary>
/// ModelMap
/// 模型的匹配
/// </summary>
[Table(Name = "ModelMap")]
public class ModelMap
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 名称
/// </summary>
[Column(Name = "Name", IsNullable = true, StringLength = 50)]
public string? Name { get; set; }
/// <summary>
/// 内容
/// </summary>
[Column(Name = "Comment", IsNullable = true, StringLength = 50)]
public string? Comment { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public List<Columns>? Columns { get; set; }
}
}

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model.ModelMapConfig
{
/// <summary>
/// 存储的Key值数据
/// </summary>
public class RecordKeyValue
{
/// <summary>
/// 数据表名称
/// </summary>
public string? TableName { get; set; }
/// <summary>
/// 要存储的键值对集合
/// </summary>
public Dictionary<string, object>? KeyValuePairs { get; set; }
}
}

View File

@@ -13,7 +13,7 @@ namespace CapMachine.Model
{
public PlcParsData()
{
//实例化
Steps=new List<PlcMeterStepCell> ();
Unit = "";
}
@@ -64,5 +64,35 @@ namespace CapMachine.Model
/// </summary>
public int? CycleStartAddress { get; set; }
/// <summary>
/// 步长
/// </summary>
public int Step { get; set; } = 100;
/// <summary>
/// 设置类型
/// </summary>
public AddressInfo? SetAddressInfo { get; set; }
}
/// <summary>
/// 地址信息
/// </summary>
public enum AddressInfo
{
/// <summary>
/// 无时间和次数,整个程序段都是恒值
/// </summary>
NoTimeAndCycle=1,
/// <summary>
/// 无次数,也就是代表了没有多个参数列表了,也就没有斜坡的
/// </summary>
NoCycle = 2,
/// <summary>
/// OK
/// </summary>
OK =3,
}
}

View File

@@ -26,11 +26,12 @@ namespace CapMachine.Model
[Column(Name = "StepNo")]
public int StepNo { get; set; }
/// <summary>
/// 程序步骤反复次数
/// </summary>
[Column(Name = "StepRepeat")]
public int StepRepeat { get; set; }
///// <summary>
///// 程序步骤反复次数
///// 速度的循环次数
///// </summary>
//[Column(Name = "StepRepeat")]
//public int StepRepeat { get; set; }
///// <summary>
///// 程序段反复

View File

@@ -195,10 +195,10 @@ namespace CapMachine.Model.QuickMeterConfig
public bool InhExhValve { get; set; }
// <summary>
/// 加热器使能0/1
/// 加热器使能0/1PTC使能
/// 跟随速度步骤的常值数据
/// </summary>
[Column(Name = "HeatEnable")]
public bool HeatEnable { get; set; }
[Column(Name = "PTCEnable")]
public bool PTCEnable { get; set; }
}
}

View File

@@ -119,7 +119,7 @@ namespace CapMachine.Model
/// <summary>
/// PID NO-CpPIDNoInfo-用的是Cp表的QuickCpPIDNo模型是一样的因为里面有仪表名称
/// </summary>
public QuickPIDNo KpPIDNoInfo { get; set; }
public ConfigPID KpPIDNoInfo { get; set; }
/// <summary>
/// Limit NO
@@ -130,7 +130,7 @@ namespace CapMachine.Model
/// <summary>
/// PID NO-CpPIDNoInfo 用的是Cp表的QuickCpLimtNo模型是一样的因为里面有仪表名称
/// </summary>
public QuickLimtNo KpLimitNoInfo { get; set; }
public ConfigLimit KpLimitNoInfo { get; set; }
/// <summary>
/// Alarm NO

46
CapMachine.Model/User.cs Normal file
View File

@@ -0,0 +1,46 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
/// <summary>
/// 用户信息
/// </summary>
[Table(Name = "User")]
public class User
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// Name
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 100)]
public string? Name { get; set; }
/// <summary>
/// 密码
/// </summary>
[Column(Name = "Password", IsNullable = false, StringLength = 50)]
public string? Password { get; set; }
/// <summary>
/// 等级
/// </summary>
[Column(Name = "Level", IsNullable = false, StringLength = 50)]
public string? Level { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Column(Name = "IsEnable")]
public bool IsEnable { get; set; }
}
}