Valeo_Line_MES_backend/RIZO.Model/MES/WIP/ProductProcessParameters.cs
2026-01-15 13:25:01 +08:00

152 lines
4.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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