using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MDM.Models.Session { /// /// 过站记录表 /// [SugarTable("product_passstation_record")] public class ProductPassstationRecord { /// /// 主键ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] // 修正:启用自增 public long Id { get; set; } /// /// 工单号 /// [SugarColumn(ColumnName = "workorder", Length = 50)] public string Workorder { get; set; } /// /// 过程码 /// [SugarColumn(ColumnName = "product_SN", Length = 100)] public string ProductSN { get; set; } /// /// 工位号 /// [SugarColumn(ColumnName = "workstationCode", Length = 50)] public string WorkstationCode { get; set; } /// /// 工艺路线code /// [SugarColumn(ColumnName = "routingcode", Length = 50)] public string Routingcode { get; set; } /// /// 工序号 /// [SugarColumn(ColumnName = "operationCode", Length = 50)] public string OperationCode { get; set; } /// /// 产品生命周期阶段(1,是生产中,2是完工,3是返工) /// [SugarColumn(ColumnName = "production_life_stage")] public int? ProductionLifeStage { get; set; } /// /// 过站类型(IN 进站,OUT 出站) /// [SugarColumn(ColumnName = "apply_type")] public ApplyTypeEnum? ApplyType { get; set; } /// /// 过站状态(SUCCESS 准许过站放行,REJECTED 禁止过站) /// [SugarColumn(ColumnName = "apply_status")] public ApplyStatusEnum? ApplyStatus { get; set; } /// /// 进站时间 /// [SugarColumn(ColumnName = "InStationTime")] public DateTime? InStationTime { get; set; } /// /// 出站时间 /// [SugarColumn(ColumnName = "OutStationTime")] public DateTime? OutStationTime { get; set; } /// /// 停留时间,秒 /// [SugarColumn(ColumnName = "DurationSeconds")] public int? DurationSeconds { get; set; } /// /// 操作人员 /// [SugarColumn(ColumnName = "operator", Length = 50)] public string Operator { get; set; } /// /// 禁止过站代码 /// [SugarColumn(ColumnName = "reject_reason_code")] public string RejectReasonCode { get; set; } /// /// 禁止过站描述 /// [SugarColumn(ColumnName = "reject_reason_desc", Length = 255)] public string RejectReasonDesc { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "created_time")] public DateTime? CreatedTime { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "updated_time")] public DateTime? UpdatedTime { get; set; } } /// /// 过站类型枚举 /// public enum ApplyTypeEnum { IN = 0, OUT = 1 } /// /// 过站状态枚举 /// public enum ApplyStatusEnum { SUCCESS = 0, REJECTED = 1 } }