添加项目文件。

This commit is contained in:
2024-07-04 17:42:03 +08:00
parent dc72862945
commit 1bd6cd358f
71 changed files with 7218 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FreeSql" Version="3.2.808" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,54 @@
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
{
/// <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 = "Category", IsNullable = false, StringLength = 50)]
public string? Category { 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,56 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
/// <summary>
/// ConfigChartYAxis表设置
/// </summary>
[Table(Name = "ConfigChartYAxis")]
public class ConfigChartYAxis
{
/// <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 = "Name", IsNullable = false, StringLength = 50)]
public string? Name { get; set; }
/// <summary>
/// Max
/// </summary>
[Column(Name = "Max")]
public double Max { get; set; }
/// <summary>
/// Min
/// </summary>
[Column(Name = "Min")]
public double Min { get; set; }
/// <summary>
/// 单位
/// </summary>
[Column(Name = "Unit", IsNullable = false, StringLength = 10)]
public string? Unit { get; set; }
//[Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
//public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
public enum ConfigValueType
{
/// <summary>
/// 常值
/// </summary>
Constant = 1,
/// <summary>
/// 斜坡
/// </summary>
Slope = 2,
}
}

View File

@@ -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
{
/// <summary>
/// Pd表设置
/// </summary>
[Table(Name = "MeterPd")]
public class MeterPd
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 程序步骤序号
/// </summary>
[Column(Name = "StepNo")]
public int StepNo { get; set; }
/// <summary>
/// 开始值
/// </summary>
[Column(Name = "StartValue")]
public double StartValue { get; set; }
/// <summary>
/// 结束值
/// </summary>
[Column(Name = "EndValue")]
public double EndValue { get; set; }
/// <summary>
/// 维持时间
/// </summary>
[Column(Name = "KeepTime")]
public double KeepTime { get; set; }
/// <summary>
/// 配置值类型
/// </summary>
[Column(MapType = typeof(int))]
public ConfigValueType ValueType { get; set; }
/// <summary>
/// 常值
/// 在ValueType为常值时会使用
/// </summary>
[Column(Name = "Constant")]
public double Constant { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long ProStepId { get; set; }
public ProStep? ProStep { get; set; }
}
}

View File

@@ -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
{
/// <summary>
/// Ps表设置
/// </summary>
[Table(Name = "MeterPs")]
public class MeterPs
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 程序步骤序号
/// </summary>
[Column(Name = "StepNo")]
public int StepNo { get; set; }
/// <summary>
/// 开始值
/// </summary>
[Column(Name = "StartValue")]
public double StartValue { get; set; }
/// <summary>
/// 结束值
/// </summary>
[Column(Name = "EndValue")]
public double EndValue { get; set; }
/// <summary>
/// 维持时间
/// </summary>
[Column(Name = "KeepTime")]
public double KeepTime { get; set; }
/// <summary>
/// 配置值类型
/// </summary>
[Column(MapType = typeof(int))]
public ConfigValueType ValueType { get; set; }
/// <summary>
/// 常值
/// 在ValueType为常值时会使用
/// </summary>
[Column(Name = "Constant")]
public double Constant { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long ProStepId { get; set; }
public ProStep? ProStep { get; set; }
}
}

View File

@@ -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
{
/// <summary>
/// 速度表设置
/// </summary>
[Table(Name = "MeterSpeed")]
public class MeterSpeed
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 程序步骤序号
/// </summary>
[Column(Name = "StepNo")]
public int StepNo { get; set; }
/// <summary>
/// 开始值
/// </summary>
[Column(Name = "StartValue")]
public double StartValue { get; set; }
/// <summary>
/// 结束值
/// </summary>
[Column(Name = "EndValue")]
public double EndValue { get; set; }
/// <summary>
/// 维持时间
/// </summary>
[Column(Name = "KeepTime")]
public double KeepTime { get; set; }
/// <summary>
/// 配置值类型
/// </summary>
[Column(MapType = typeof(int))]
public ConfigValueType ValueType { get; set; }
/// <summary>
/// 常值
/// 在ValueType为常值时会使用
/// </summary>
[Column(Name = "Constant")]
public double Constant { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long ProStepId { get; set; }
public ProStep? ProStep { get; set; }
}
}

View File

@@ -0,0 +1,165 @@
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 = "ProStepExecute")]
public class ProStepExecute
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true)]
public Guid Id { get; set; }
/// <summary>
/// 程序段名称
/// </summary>
[Column(Name = "ProName", IsNullable = false, StringLength = 20)]
public string ProName { get; set; }
/// <summary>
/// 程序段步骤
/// </summary>
[Column(Name = "ProStep", IsNullable = false)]
public int ProStep { get; set; }
/// <summary>
/// 程序段反复
/// </summary>
[Column(Name = "ProRepeat")]
public int ProRepeat { get; set; }
/// <summary>
/// 是否正在执行当前程序段
/// </summary>
[Column(Name = "IsCurrentProStep")]
public bool IsCurrentProStep { get; set; }
/////////////////////////////////////////////////////////////////
////////////////////////程序步骤///////////////////////////////
////////////////////////////////////////////////////////////////
/// <summary>
/// 是否正在执行当前程序段
/// </summary>
[Column(Name = "IsCurrentMeterStep")]
public bool IsCurrentMeterStep { get; set; }
/// <summary>
/// 仪表功能名称
/// </summary>
[Column(Name = "MeterName", IsNullable = false, StringLength = 20)]
public string MeterName { get; set; }
/// <summary>
/// 步骤
/// </summary>
[Column(Name = "MeterStep", IsNullable = false)]
public int MeterStep { get; set; }
/// <summary>
/// 速度 DegC
/// </summary>
[Column(Name = "SV", IsNullable = true)]
public int SV { get; set; }
/// <summary>
/// 时间-分钟
/// </summary>
[Column(Name = "TimeMin", IsNullable = true)]
public int TimeMin { get; set; }
/// <summary>
/// 时间-秒
/// </summary>
[Column(Name = "TimeSec", IsNullable = true)]
public int TimeSec { get; set; }
/// <summary>
/// PID NO
/// </summary>
[Column(Name = "PIDNo", IsNullable = true)]
public int PIDNo { get; set; }
/// <summary>
/// Limit NO
/// </summary>
[Column(Name = "LitmitNo", IsNullable = true)]
public int LitmitNo { get; set; }
/// <summary>
/// Alarm NO
/// </summary>
[Column(Name = "AlarmNo", IsNullable = true)]
public int AlarmNo { get; set; }
///// <summary>
///// 时间信号
///// </summary>
//[Column(Name = "TimeSign1", IsNullable = true)]
//public int TimeSign1 { get; set; }
///// <summary>
///// 时间信号
///// </summary>
//[Column(Name = "TimeSign2", IsNullable = true)]
//public int TimeSign2 { get; set; }
///// <summary>
///// 时间信号
///// </summary>
//[Column(Name = "TimeSign3", IsNullable = true)]
//public int TimeSign3 { get; set; }
/// <summary>
/// 步进重复
/// </summary>
[Column(Name = "Repeat", IsNullable = true)]
public int StepRepeat { get; set; }
///// <summary>
///// 拓展字段1
///// </summary>
//[Column(Name = "FeildExte1", IsNullable = true)]
//public string FeildExte1 { get; set; }
///// <summary>
///// 拓展字段1
///// </summary>
//[Column(Name = "FeildExte2", IsNullable = true)]
//public string FeildExte2 { get; set; }
///// <summary>
///// 拓展字段1
///// </summary>
//[Column(Name = "FeildExte3", IsNullable = true)]
//public string FeildExte3 { get; set; }
///// <summary>
///// 拓展字段1
///// </summary>
//[Column(Name = "FeildExte4", IsNullable = true)]
//public string FeildExte4 { get; set; }
///// <summary>
///// 拓展字段1
///// </summary>
//[Column(Name = "FeildExte5", IsNullable = true)]
//public string FeildExte5 { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,68 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
/// <summary>
/// 步骤
/// </summary>
[Table(Name = "ProStep")]
public class ProStep
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 程序步骤序号
/// </summary>
[Column(Name = "StepNo")]
public int StepNo { get; set; }
/// <summary>
/// 程序步骤反复次数
/// </summary>
[Column(Name = "StepRepeat")]
public int StepRepeat { get; set; }
///// <summary>
///// 程序段反复
///// </summary>
//[Column(Name = "ProRepeat")]
//public int ProRepeat { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column(Name = "Remark", IsNullable = false, StringLength = 200)]
public string Remark { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public ICollection<MeterSpeed>? MeterSpeeds { get; set; }
public ICollection<MeterPd>? MeterPds { get; set; }
public ICollection<MeterPs>? MeterPss { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public long ProgramSegId { get; set; }
public ProgramSeg? ProgramSeg { get; set; }
}
}

View File

@@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
public class ProStepDto
{
/// <summary>
/// 主键
/// </summary>
public long Id { get; set; }
/// <summary>
/// 程序步骤序号
/// </summary>
public int StepNo { get; set; }
/// <summary>
/// 程序循环次数
/// </summary>
public int StepRepeat { get; set; }
/// <summary>
/// 压缩机转速信息
/// </summary>
public string? SpeedInfo { get; set; }
/// <summary>
/// PID信息
/// </summary>
public string? PID { get; set; }
/// <summary>
/// PID输出限幅信息
/// </summary>
public string? PIDOutLimit { get; set; }
/// <summary>
/// Ps信息
/// </summary>
public string? Ps { get; set; }
/// <summary>
/// Pd信息
/// </summary>
public string? PdInfo{ get; set; }
}
}

View File

@@ -0,0 +1,52 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
namespace CapMachine.Model
{
[Table(Name = "ProgramSeg")]
public class ProgramSeg
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true,IsIdentity =true)]
public long Id { get; set; }
/// <summary>
/// 程序名称
/// 工况名称
/// </summary>
[Column(Name = "Name", IsNullable = false, StringLength = 50)]
public string Name { get; set; }
/// <summary>
/// 程序段反复
/// </summary>
[Column(Name = "ProRepeat")]
public int ProRepeat { get; set; }
/// <summary>
/// 编辑者
/// </summary>
[Column(Name = "UserName", IsNullable = false, StringLength = 20)]
public string UserName { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column(Name = "Remark", IsNullable = false, StringLength = 100)]
public string Remark { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
/// <summary>
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
/// </summary>
public ICollection<ProStep>? ProSteps { get; set; }
}
}

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
{
[Table(Name = "QuickCpLimtNo")]
public class QuickCpLimtNo
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true)]
public Guid Id { get; set; }
/// <summary>
/// 快速设置仪表名称
/// </summary>
[Column(Name = "MeterName", IsNullable = true, StringLength = 30)]
public string MeterName { get; set; }
/// <summary>
/// 序号
/// </summary>
[Column(Name = "IndexNo", IsNullable = false)]
public int IndexNo { get; set; }
/// <summary>
/// 上限
/// </summary>
[Column(Name = "Up", DbType = "decimal(5, 1)", IsNullable = true)]
public decimal Up { get; set; }
/// <summary>
/// 下限
/// </summary>
[Column(Name = "Down", DbType = "decimal(5, 1)", IsNullable = true)]
public decimal Down { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,52 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Model
{
[Table(Name = "QuickCpPIDNo")]
public class QuickCpPIDNo
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true)]
public Guid Id { get; set; }
/// <summary>
/// 快速设置仪表名称
/// </summary>
[Column(Name = "MeterName", IsNullable = true, StringLength = 30)]
public string MeterName { get; set; }
/// <summary>
/// 序号
/// </summary>
[Column(Name = "IndexNo", IsNullable = false)]
public int IndexNo { get; set; }
/// <summary>
/// P
/// </summary>
[Column(Name = "P", DbType = "decimal(5, 1)", IsNullable = true)]
public decimal P { get; set; }
/// <summary>
/// I
/// </summary>
[Column(Name = "I", IsNullable = true)]
public int I { get; set; }
/// <summary>
/// D
/// </summary>
[Column(Name = "D", IsNullable = true)]
public int D { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,162 @@
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 = "QuickProStepExecute")]
public class QuickProStepExecute
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true)]
public Guid Id { get; set; }
/// <summary>
/// 程序段名称
/// </summary>
[Column(Name = "ProName", IsNullable = false, StringLength = 30)]
public string ProName { get; set; }
/// <summary>
/// 程序段步骤
/// </summary>
[Column(Name = "ProStep", IsNullable = false)]
public int ProStep { get; set; }
/// <summary>
/// 程序段反复
/// </summary>
[Column(Name = "ProRepeat")]
public int ProRepeat { get; set; }
/// <summary>
/// 是否正在执行当前程序段
/// </summary>
[Column(Name = "IsCurrentProStep")]
public bool IsCurrentProStep { get; set; }
/////////////////////////////////////////////////////////////////
////////////////////////程序步骤///////////////////////////////
////////////////////////////////////////////////////////////////
/// <summary>
/// 是否正在执行当前程序段
/// </summary>
[Column(Name = "IsCurrentMeterStep")]
public bool IsCurrentMeterStep { get; set; }
/// <summary>
/// 仪表功能名称
/// </summary>
[Column(Name = "MeterName", IsNullable = false, StringLength = 20)]
public string MeterName { get; set; }
/// <summary>
/// 步骤
/// </summary>
[Column(Name = "MeterStep", IsNullable = false)]
public int MeterStep { get; set; }
/// <summary>
/// 这个步骤是打开具体设置步骤界面的那个层面的信息例如2-3,代表是程序2里面的仪表步骤3方便调试和给液击使用
/// </summary>
[Column(Name = "ProStepInfo", IsNullable = false)]
public string ProStepInfo { get; set; }
/// <summary>
/// SV DegC
/// </summary>
[Column(Name = "SV", IsNullable = true)]
public int SV { get; set; }
/// <summary>
/// 时间-分钟-步骤维持时间
/// </summary>
[Column(Name = "TimeMin", IsNullable = true)]
public int TimeMin { get; set; }
/// <summary>
/// 时间-秒-步骤维持时间
/// </summary>
[Column(Name = "TimeSec", IsNullable = true)]
public int TimeSec { get; set; }
/// <summary>
/// PID NO-PID序号
/// </summary>
[Column(Name = "PIDNo", IsNullable = true)]
public int PIDNo { get; set; }
/// <summary>
/// 是否启用坡度
/// </summary>
[Column(Name = "ExistSlop", IsNullable = false)]
public bool ExistSlop { get; set; }
/// <summary>
/// 时间-秒-斜坡时间
/// </summary>
[Column(Name = "SlopTimeSec", IsNullable = true)]
public int SlopTimeSec { get; set; }
/// <summary>
/// 启用状态-没有启用就是什么数据都没有
/// Const-常值-常值StepValue有值只有一个步骤CycleTime为0
/// MultisStep-有步骤细节-此时在一个仪表下就会有很多步骤的细节数据
/// </summary>
[Column(Name = "ConfigState", IsNullable = false, StringLength = 10)]
public string ConfigState { get; set; }
/// <summary>
/// PID NO-CpPIDNoInfo-用的是Cp表的QuickCpPIDNo模型是一样的因为里面有仪表名称
/// </summary>
public QuickCpPIDNo KpPIDNoInfo { get; set; }
/// <summary>
/// Limit NO
/// </summary>
[Column(Name = "LitmitNo", IsNullable = true)]
public int LitmitNo { get; set; }
/// <summary>
/// PID NO-CpPIDNoInfo 用的是Cp表的QuickCpLimtNo模型是一样的因为里面有仪表名称
/// </summary>
public QuickCpLimtNo KpLimitNoInfo { get; set; }
/// <summary>
/// Alarm NO
/// </summary>
[Column(Name = "AlarmNo", IsNullable = true)]
public int AlarmNo { get; set; }
///// <summary>
///// 步进重复
///// </summary>
//[Column(Name = "Repeat", IsNullable = true)]
//public int StepRepeat { get; set; }
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
/////////////////////////////////////////////////////////////////
////////////////////////步骤运行时间//////////////////////////
////////////////////////////////////////////////////////////////
///// <summary>
///// 当前仪表步骤执行时间信息
///// </summary>
//public CpRunTime CpRunTimeInfo { get; set; }
}
}