using MathNet.Numerics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MDM.Models.Session { /// /// 生产过程参数 /// [SugarTable("product_process_parameters")] public class ProductProcessParameters { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 工单号 /// [SugarColumn(ColumnName = "workorder", Length = 50)] public string Workorder { get; set; } /// /// 产品SN /// [SugarColumn(ColumnName = "product_SN", Length = 50)] public string ProductSN { get; set; } /// /// 工艺路线编码 /// [SugarColumn(ColumnName = "routingCode", Length = 50)] public string RoutingCode { get; set; } /// /// 工序号 /// [SugarColumn(ColumnName = "operationCode", Length = 50)] public string OperationCode { get; set; } /// /// 流程code /// [SugarColumn(ColumnName = "flowCode", Length = 50)] public string FlowCode { get; set; } /// /// 产线code /// [SugarColumn(ColumnName = "productlinebodyCode", Length = 50)] public string ProductlinebodyCode { get; set; } /// /// 工站code /// [SugarColumn(ColumnName = "workstationCode", Length = 50)] public string WorkstationCode { get; set; } /// /// 参数名称,如:温度、压力、时间 /// [SugarColumn(ColumnName = "parameter_code")] public string ParameterCode { get; set; } /// /// 显示名称(用于UI展示,可和name一样) /// [SugarColumn(ColumnName = "parameter_name", Length = 100)] public string ParameterName { get; set; } /// /// plc点位 /// [SugarColumn(ColumnName = "plc_point", Length = 50)] public string PlcPoint { get; set; } /// /// 参数描述,如:模具温度,用于热压工序 /// [SugarColumn(ColumnName = "description", ColumnDataType = "text")] public string Description { get; set; } /// /// 数据类型:FLOAT, INT, STRING, BOOL, AI(模拟量输入)等 /// [SugarColumn(ColumnName = "data_type", Length = 50, IsNullable = false)] public string DataType { get; set; } = "FLOAT"; /// /// 单位,如:℃、MPa、秒、mm /// [SugarColumn(ColumnName = "unit", Length = 20)] public string Unit { get; set; } /// /// 标准/目标值(如目标温度 200.0 ℃) /// [SugarColumn(ColumnName = "standard_value" )] public decimal? StandardValue { get; set; } /// /// 最小允许值(用于报警/校验) /// [SugarColumn(ColumnName = "min_value")] public decimal? MinValue { get; set; } /// /// 最大允许值(用于报警/校验) /// [SugarColumn(ColumnName = "max_value")] public decimal? MaxValue { get; set; } /// /// 最小允许值(用于报警/校验) /// [SugarColumn(ColumnName = "result")] public int? Result { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "createdby", Length = 50)] public string Createdby { get; set; } /// /// 更新人 /// [SugarColumn(ColumnName = "updatedby", Length = 50)] public string Updatedby { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "created_time")] public DateTime? CreatedTime { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "updated_time")] public DateTime? UpdatedTime { get; set; } } }