yanjinhui
2025-12-01 2b49f7643d15b74889d190f216630559006ed93a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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
{
    /// <summary>
    /// 物料追溯码
    /// </summary>
    [SugarTable(nameof(Dt_TraceabilityCode), "物料追溯码")]
    public class Dt_TraceabilityCode : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
 
        /// <summary>
        /// 物料编号
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")]
        public string MaterielCode { get; set; }
 
        /// <summary>
        /// 入库单号
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "入库单号")]
        public string Inorder { get; set; }
 
        /// <summary>
        /// 入库单详情id
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "入库单详情id")]
        public int InorderDetail { get; set; }
 
 
        /// <summary>
        /// 出库单号
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "出库单号")]
        public string Outorder { get; set; }
 
        /// <summary>
        /// 出库单详情id
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "出库单详情id")]
        public int OutorderDetail { get; set; }
 
        /// <summary>
        /// 大追溯码
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")]
        public int BigTraceabilityCode { get; set; }
 
        /// <summary>
        /// 中追溯码
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")]
        public int MediumTraceabilityCode { get; set; }
 
 
        /// <summary>
        /// 小追溯码
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")]
        public int SmallTraceabilityCode { get; set; }
 
 
        /// <summary>
        /// 物料批次id
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "物料批次id")]
        public int MaterialBatchID { get; set; }
 
 
        /// <summary>
        /// 追溯码状态(未使用,已使用,已销户,已禁用)
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "追溯码状态")]
        public  int  TraceabilityState { get; set; }
 
    }
 
    /// <summary>
    /// 追溯码状态
    /// </summary>
    public enum TraceabilityStateEnum
    {
        /// <summary>
        /// 未使用
        /// </summary>
        [Description("未使用")]
        Unused = 0,
 
        /// <summary>
        /// 已使用
        /// </summary>
        [Description("已使用")]
        Used = 1,
 
        /// <summary>
        /// 已销户
        /// </summary>
        [Description("已销户(出库完成的时候的状态)")]
        AccountClosed = 2,
 
        /// <summary>
        /// 禁用
        /// </summary>
        [Description("已禁用")]
        Disable = 3
    }
}