服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-03-23 5ec2816b25ccc33855c48da7f7f9305e21e6dc38
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
using System;
using SqlSugar;
using System.Linq;
using System.ComponentModel;
using System.Collections.Generic;
using System.Security.Cryptography;
 
namespace Tiger.Model
{
    /// <summary>
    /// 实体:库存历史
    /// </summary>
    [Description("Primary:ID")]
    [Serializable]
    [SugarTable("V_WMS_ITEM_HIS")]
    public class V_WMS_ITEM_HIS : iViewEntity, iTableHasAuth
    {
        #region 构造函数
        /// <summary>
        /// 实体:库存历史
        /// </summary>
        public V_WMS_ITEM_HIS() {}
        #endregion
 
        #region 公共属性
        /// <summary>
        /// 创建时间
        /// </summary>
        public string CREATE_TIME { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public string UPDATE_TIME { get; set; }
        /// <summary>
        /// 更新者
        /// </summary>
        public string UPDATE_USER { get; set; }
        /// <summary>
        /// 条码
        /// </summary>
        public string SN { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string ITEM_CODE { get; set; }
        /// <summary>
        /// 条码类型(规则编码)
        /// </summary>
        public string SN_TYPE { get; set; }
        /// <summary>
        /// 储存状态(0NotExists不存在|10Incoming送货中|20WaitTest待检验|30WaitIn待入库|40InStore在库|50OffShelf已下架|60Sended已发料|70Loaded已上料|80UseUp已耗尽|90Returned已退料|100Shipped已出货)
        /// </summary>
        public int STATUS { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal QTY { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string UNIT { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime PROD_DATE { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 首次入库日期
        /// </summary>
        public DateTime FIRST_IN_DATE { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 业务单据编码
        /// </summary>
        public string TRANS_CODE { get; set; }
        /// <summary>
        /// 业务单据号码
        /// </summary>
        public string TRANS_NO { get; set; }
        /// <summary>
        /// 业务单据行号
        /// </summary>
        public string TRANS_LINE { get; set; }
        /// <summary>
        /// 来源单据编码
        /// </summary>
        public string SOURCE_CODE { get; set; }
        /// <summary>
        /// 来源单据号码
        /// </summary>
        public string SOURCE_ORDER { get; set; }
        /// <summary>
        /// 来源单据行号
        /// </summary>
        public string SOURCE_LINE { get; set; }
        /// <summary>
        /// 供应商代码
        /// </summary>
        public string SUPP_CODE { get; set; }
        /// <summary>
        /// 供应商批次号
        /// </summary>
        public string SUPP_LOTNO { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string LOTNO { get; set; }
        /// <summary>
        /// 箱号
        /// </summary>
        public string CARTON_NO { get; set; }
        /// <summary>
        /// 栈板号
        /// </summary>
        public string PALLET_NO { get; set; }
        /// <summary>
        /// 仓库代码
        /// </summary>
        public string WH_ID { get; set; }
        /// <summary>
        /// 储区代码
        /// </summary>
        public string REGION_ID { get; set; }
        /// <summary>
        /// 货架/料车编码
        /// </summary>
        public string SHELF_ID { get; set; }
        /// <summary>
        /// 储位代码
        /// </summary>
        public string LOCATION_ID { get; set; }
        /// <summary>
        /// ERP库位代码
        /// </summary>
        public string ERP_WH { get; set; }
        /// <summary>
        /// 是否被单据锁定(Y/N)
        /// </summary>
        public string IS_LOCKED { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string REMARK { get; set; }
        /// <summary>
        /// 追溯信息
        /// </summary>
        public string TRACE_INFO { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string AUTH_ORG { get; set; }
        public string AUTH_PROD { get; set; }
        public string AUTH_WH { get; set; }
        public string WH_CODE { get; set; }
        public string WH_NAME { get; set; }
        public string REGION_CODE { get; set; }
        public string SHELF_CODE { get; set; }
        public string LOCATION_CODE { get; set; }
        #endregion
 
        #region 虚拟属性
        /*例子
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
        #endregion
 
        #region 外键属性
        /*例子
        //一对一外键导航
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是WMS_ITEM_HIS类里面的外键ID字段
        public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
        //一对多外键导航
        [Navigate(NavigateType.OneToMany, nameof(ClassA.WMS_ITEM_HISId))]//ClassA表中的WMS_ITEM_HISId
        public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
        //多对多外键导航
        [Navigate(typeof(MappingClass), nameof(MappingClass.WMS_ITEM_HISId), 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
}