using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { /// /// 物料追溯码 /// [SugarTable(nameof(Dt_TraceabilityCode), "物料追溯码")] public class Dt_TraceabilityCode : BaseEntity { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int Id { get; set; } /// /// 物料编号 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")] public string MaterielCode { get; set; } /// /// 入库单号 /// [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "入库单号")] public string Inorder { get; set; } /// /// 入库单详情id /// [SugarColumn(IsNullable = true, ColumnDescription = "入库单详情id")] public int InorderDetail { get; set; } /// /// 出库单号 /// [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "出库单号")] public string Outorder { get; set; } /// /// 出库单详情id /// [SugarColumn(IsNullable = true, ColumnDescription = "出库单详情id")] public int OutorderDetail { get; set; } /// /// 大追溯码 /// [SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")] public int BigTraceabilityCode { get; set; } /// /// 中追溯码 /// [SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")] public int MediumTraceabilityCode { get; set; } /// /// 小追溯码 /// [SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")] public int SmallTraceabilityCode { get; set; } /// /// 物料批次id /// [SugarColumn(IsNullable = true, ColumnDescription = "物料批次id")] public int MaterialBatchID { get; set; } /// /// 追溯码状态(未使用,已使用,已销户,已禁用) /// [SugarColumn(IsNullable = true, ColumnDescription = "追溯码状态")] public int TraceabilityState { get; set; } } /// /// 追溯码状态 /// public enum TraceabilityStateEnum { /// /// 未使用 /// [Description("未使用")] Unused = 0, /// /// 已使用 /// [Description("已使用")] Used = 1, /// /// 已销户 /// [Description("已销户(出库完成的时候的状态)")] AccountClosed = 2, /// /// 禁用 /// [Description("已禁用")] Disable = 3 } }