179 lines
5.4 KiB
C#
179 lines
5.4 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace MDM.Models.Process
|
||
{
|
||
/// <summary>
|
||
/// 工艺参数实体化工位表(如温度、压力、时间等,关联工艺路线与工序)
|
||
/// </summary>
|
||
///
|
||
|
||
[SugarTable("process_operation_workstation_flow_collect_parameter", "工艺参数实体化工位表(如温度、压力、时间等,关联工艺路线与工序)")]
|
||
public class ProcessOperationWorkstationFlowCollectParameter
|
||
{
|
||
|
||
/// <summary>
|
||
/// Id
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||
public int Id { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工序路线code
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "fk_routing_code",Length =50)]
|
||
public string FkRoutingCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工序code
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "fk_operation_code", Length = 50)]
|
||
public string FkOperationCode { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 生产线体/工作中心code
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "fk_productlinebody_code", Length = 50)]
|
||
public string FkProductlinebodyCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工位ID
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "fk_workstation_code", Length = 50)]
|
||
public string FkWorkstationCode { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 所属流程code
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "fk_flow_code", Length = 50)]
|
||
public string FkFlowCode { get; set; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/// <summary>
|
||
/// 参数名称,如:温度、压力、时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "parameter_code", Length = 50)]
|
||
public string ParameterCode { get; set; }
|
||
|
||
|
||
|
||
/// <summary>
|
||
///plc 点位
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "plc_point", Length = 50)]
|
||
public string PlcPoint { get; set; }
|
||
|
||
|
||
|
||
|
||
/// <summary>
|
||
/// 显示名称(用于UI展示,可和name一样)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "parameter_name", Length = 50)]
|
||
public string ParameterName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 参数描述,如:模具温度,用于热压工序
|
||
/// </summary>
|
||
public string Description { get; set; }
|
||
|
||
/// <summary>
|
||
/// 数据类型:FLOAT, INT, STRING, BOOL, AI(模拟量输入)等
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "data_type", Length = 50)]
|
||
public string DataType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 单位,如:℃、MPa、秒、mm
|
||
/// </summary>
|
||
[SugarColumn(Length = 50)]
|
||
public string Unit { get; set; }
|
||
|
||
/// <summary>
|
||
/// 标准/目标值(如目标温度 200.0 ℃)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "standard_value", DecimalDigits = 2)]
|
||
public decimal StandardValue { get; set; }
|
||
|
||
/// <summary>
|
||
/// 最小允许值(用于报警/校验)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "min_value",DecimalDigits = 2)]
|
||
public decimal MinValue { get; set; }
|
||
|
||
/// <summary>
|
||
/// 最大允许值(用于报警/校验)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "max_value", DecimalDigits = 2)]
|
||
public decimal MaxValue { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否为控制参数:1=是(如PID控制),0=否(仅采集)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "is_controlled")]
|
||
public int IsControlled { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否为监控参数(是否采集/显示):1=是,0=否
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "is_monitored")]
|
||
public int IsMonitored { get; set; }
|
||
|
||
/// <summary>
|
||
/// 控制类型(如PID、ON/OFF、手动设定等,可选)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "control_type", Length = 50)]
|
||
public string ControlType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 默认值(如未采集时使用)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "default_value", DecimalDigits = 2)]
|
||
public decimal DefaultValue { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否必填/必采:1=是,0=否
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "is_required")]
|
||
public int IsRequired { get; set; }
|
||
|
||
/// <summary>
|
||
/// 参数排序(用于UI展示顺序)
|
||
/// </summary>
|
||
public int? Sequence { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "created_time")]
|
||
public DateTime? CreatedTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建人
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "created_by", Length = 50)]
|
||
public string CreatedBy { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "updated_time")]
|
||
public DateTime? UpdatedTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新人
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "updated_by", Length = 50)]
|
||
public string UpdatedBy { get; set; }
|
||
}
|
||
}
|