服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
3 天以前 36746596927952a6b860129a62eec9059bf083a7
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
using System;
using SqlSugar;
using System.Linq;
using System.ComponentModel;
using System.Collections.Generic;
 
namespace Tiger.Model
{
    /// <summary>
    /// 实体:调拨单(WMS)条码明细
    /// </summary>
    [Description("Primary:ID")]
    [DisplayName("调拨单(WMS)条码明细")]
    [Serializable]
    [SugarTable("BIZ_WMS_TRANSFER_SN")]
    public class BIZ_WMS_TRANSFER_SN : DbEntityWithAuth
    {
        #region 构造函数
        /// <summary>
        /// 实体:调拨单(WMS)条码明细
        /// </summary>
        public BIZ_WMS_TRANSFER_SN() {}
        #endregion
 
        #region 公共属性
        /// <summary>
        /// 调拨单号
        /// </summary>
        [DisplayName("调拨单号")]
        public string ORDER_NO { get; set; }
        /// <summary>
        /// 调拨单行号
        /// </summary>
        [DisplayName("调拨单行号")]
        public string ORDER_LINE { get; set; }
        /// <summary>
        /// 条码
        /// </summary>
        [DisplayName("条码")]
        public string SN { get; set; }
        /// <summary>
        /// 状态(同WMS_ITEM状态)
        /// </summary>
        [DisplayName("状态(同WMS_ITEM状态)")]
        public int STATUS { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        [DisplayName("物料编码")]
        public string ITEM_CODE { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [DisplayName("数量")]
        public double QTY { get; set; }
        /// <summary>
        /// 批号
        /// </summary>
        [DisplayName("批号")]
        public string LOTNO { get; set; }
        /// <summary>
        /// 调出仓库
        /// </summary>
        [DisplayName("调出仓库")]
        public string OUT_WH_CODE { get; set; }
        /// <summary>
        /// 调出储区
        /// </summary>
        [DisplayName("调出储区")]
        public string OUT_REGION_CODE { get; set; }
        /// <summary>
        /// 调出货架
        /// </summary>
        [DisplayName("调出货架")]
        public string OUT_SHELF_CODE { get; set; }
        /// <summary>
        /// 调出储位
        /// </summary>
        [DisplayName("调出储位")]
        public string OUT_LOCATION_CODE { get; set; }
        /// <summary>
        /// 调出时间
        /// </summary>
        [DisplayName("调出时间")]
        public DateTime OUT_TIME { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 拨入仓库
        /// </summary>
        [DisplayName("拨入仓库")]
        public string IN_WH_CODE { get; set; }
        /// <summary>
        /// 拨入储区
        /// </summary>
        [DisplayName("拨入储区")]
        public string IN_REGION_CODE { get; set; }
        /// <summary>
        /// 拨入货架
        /// </summary>
        [DisplayName("拨入货架")]
        public string IN_SHELF_CODE { get; set; }
        /// <summary>
        /// 拨入储位
        /// </summary>
        [DisplayName("拨入储位")]
        public string IN_LOCATION_CODE { get; set; }
        /// <summary>
        /// 拨入时间
        /// </summary>
        [DisplayName("拨入时间")]
        public DateTime IN_TIME { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string REMARK { get; set; }
        #endregion
 
        #region 虚拟属性
        /*例子
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
        #endregion
 
        #region 外键属性
        /*例子
        //一对一外键导航
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BIZ_WMS_TRANSFER_SN类里面的外键ID字段
        public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
        //一对多外键导航
        [Navigate(NavigateType.OneToMany, nameof(ClassA.BIZ_WMS_TRANSFER_SNId))]//ClassA表中的BIZ_WMS_TRANSFER_SNId
        public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
        //多对多外键导航
        [Navigate(typeof(MappingClass), nameof(MappingClass.BIZ_WMS_TRANSFER_SNId), nameof(MappingClass.ClassAId))]//注意顺序
        public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null
        */
        #endregion
 
        #region 枚举变量
        /*例子
        public enum FieldNames
        {
            [Description("枚举描述0")]
            Enum0,
            [Description("枚举描述1")]
            Enum1,
        }
        */
        #endregion
 
        #region 公共方法
 
        #endregion
 
    }//endClass
}