提交了仪表的模型

This commit is contained in:
2024-07-28 22:59:11 +08:00
parent c9f4e88e04
commit a76546ebe6
59 changed files with 3273 additions and 586 deletions

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>
/// OCR 表设置
/// </summary>
[Table(Name = "MeterOCR")]
public class MeterOCR
{
/// <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; }
}
}