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