服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
4 天以前 beca28ecb3a730ffb33c21e0c55c729774725faf
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
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_PREP_BTH")]
    public class BIZ_WMS_PREP_BTH : DbEntityWithAuth
    {
        #region 构造函数
        /// <summary>
        /// 实体:备料任务(WMS)发料批次
        /// </summary>
        public BIZ_WMS_PREP_BTH() {}
        #endregion
 
        #region 公共属性
        /// <summary>
        /// 备料任务号
        /// </summary>
        [DisplayName("备料任务号")]
        public string ORDER_NO { get; set; }
        /// <summary>
        /// 发料批次
        /// </summary>
        [DisplayName("发料批次")]
        public string DLVY_BATCH { get; set; }
        /// <summary>
        /// 备料方式(0Whole整单备料|1SideA/A面备料|2SideB/B面备料)
        /// </summary>
        [DisplayName("备料方式(0Whole整单备料|1SideA/A面备料|2SideB/B面备料)")]
        public int PREP_MODE { get; set; }
        /// <summary>
        /// 发料方式(0Supply正常发料|1First首套发料)
        /// </summary>
        [DisplayName("发料方式(0Supply正常发料|1First首套发料)")]
        public int DLVY_MODE { get; set; }
        /// <summary>
        /// 状态(0Init初始化|1Called已叫料|2WaitPick待捡料|3Picking捡料中|4Picked已捡完|5Sended已发料|6Close已关闭|7Cancel作废)
        /// </summary>
        [DisplayName("状态(0Init初始化|1Called已叫料|2WaitPick待捡料|3Picking捡料中|4Picked已捡完|5Sended已发料|6Close已关闭|7Cancel作废)")]
        public int STATUS { get; set; }
        /// <summary>
        /// 工厂编码
        /// </summary>
        [DisplayName("工厂编码")]
        public string FTY_CODE { get; set; }
        /// <summary>
        /// 车间编码
        /// </summary>
        [DisplayName("车间编码")]
        public string WS_CODE { get; set; }
        /// <summary>
        /// 产线编码
        /// </summary>
        [DisplayName("产线编码")]
        public string LINE_CODE { get; set; }
        /// <summary>
        /// 岗位编码
        /// </summary>
        [DisplayName("岗位编码")]
        public string POST_CODE { get; set; }
        /// <summary>
        /// 工序编码
        /// </summary>
        [DisplayName("工序编码")]
        public string OPER_CODE { get; set; }
        /// <summary>
        /// 加工段
        /// </summary>
        [DisplayName("加工段")]
        public string SEGMENT { get; set; }
        /// <summary>
        /// 叫料时间
        /// </summary>
        [DisplayName("叫料时间")]
        public DateTime CALL_TIME { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 计划完成时间
        /// </summary>
        [DisplayName("计划完成时间")]
        public DateTime PLAN_TIME { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 备料开始时间
        /// </summary>
        [DisplayName("备料开始时间")]
        public DateTime PICK_TIME { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 备料优先级(1-7)越小越优先
        /// </summary>
        [DisplayName("备料优先级(1-7)越小越优先")]
        public int PRIORITY { get; set; }
        /// <summary>
        /// 备料人
        /// </summary>
        [DisplayName("备料人")]
        public string PREP_PERSON { get; set; }
        /// <summary>
        /// 备料完成时间
        /// </summary>
        [DisplayName("备料完成时间")]
        public DateTime FINISH_TIME { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 关联领料单ID
        /// </summary>
        [DisplayName("关联领料单ID")]
        public string REQ_ID { get; set; }
        /// <summary>
        /// 关联领料单号
        /// </summary>
        [DisplayName("关联领料单号")]
        public string REQ_ORDER { get; set; }
        /// <summary>
        /// 领料人
        /// </summary>
        [DisplayName("领料人")]
        public string REQ_PERSON { get; set; }
        /// <summary>
        /// 领料部门
        /// </summary>
        [DisplayName("领料部门")]
        public string REQ_DEPT { get; set; }
        /// <summary>
        /// 领料出库时间
        /// </summary>
        [DisplayName("领料出库时间")]
        public DateTime DLVY_TIME { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string REMARK { get; set; }
        /// <summary>
        /// -1:未处理,0:同步处理完,>0:同步处理失败次数
        /// </summary>
        [DisplayName("-1:未处理,0:同步处理完,>0:同步处理失败次数")]
        public int HANDLED { get; set; } = -1;
        /// <summary>
        /// 最后一次同步处理日期
        /// </summary>
        [DisplayName("最后一次同步处理日期")]
        public DateTime HANDLED_DATE { get; set; } = DateTime.MinValue;
        /// <summary>
        /// 过账提交的JSON
        /// </summary>
        [DisplayName("过账提交的JSON")]
        public string COMMIT_JSON { get; set; }
        /// <summary>
        /// 过账提交的返回信息
        /// </summary>
        [DisplayName("过账提交的返回信息")]
        public string COMMIT_MSG { get; set; }
        #endregion
 
        #region 虚拟属性
        /*例子
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
        #endregion
 
        #region 外键属性
        /*例子
        //一对一外键导航
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BIZ_WMS_PREP_BTH类里面的外键ID字段
        public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
        //一对多外键导航
        [Navigate(NavigateType.OneToMany, nameof(ClassA.BIZ_WMS_PREP_BTHId))]//ClassA表中的BIZ_WMS_PREP_BTHId
        public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
        //多对多外键导航
        [Navigate(typeof(MappingClass), nameof(MappingClass.BIZ_WMS_PREP_BTHId), nameof(MappingClass.ClassAId))]//注意顺序
        public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null
        */
        #endregion
 
        #region 枚举变量
        /*例子
        public enum FieldNames
        {
            [Description("枚举描述0")]
            Enum0,
            [Description("枚举描述1")]
            Enum1,
        }
        */
 
        /// <summary>
        /// 枚举:生成范围(0CurTrans本次操作|1CurWH当前仓库|2Whole当前单据)
        /// </summary>
        public enum BATCH_RANGEs
        {
            [Description("本次操作")]
            CurTrans = 0,
            [Description("当前仓库")]
            CurWH = 1,
            [Description("当前单据")]
            Whole = 2,
        }
 
        /// <summary>
        /// 枚举:备料方式(0Whole整单备料|1SideA/A面备料|2SideB/B面备料)
        /// </summary>
        public enum PREP_MODEs
        {
            [Description("整单备料")]
            Whole = 0,
            [Description("A面备料")]
            SideA = 1,
            [Description("B面备料")]
            SideB = 2,
        }
 
        /// <summary>
        /// 枚举:发料方式(0Supply正常发料|1First首套发料)
        /// </summary>
        public enum DLVY_MODEs
        {
            [Description("正常发料")]
            Supply = 0,
            [Description("首套发料")]
            First = 1,
        }
 
        /// <summary>
        /// 枚举:状态(0Init初始化|1Called已叫料|2WaitPick待捡料|3Picking捡料中|4Picked已捡完|5Sended已发料|6Close已关闭|7Cancel作废)
        /// </summary>
        public enum STATUSs
        {
            [Description("初始化")]
            Init = 0,
            [Description("已叫料")]
            Called = 1,
            [Description("待捡料")]
            WaitPick = 2,
            [Description("捡料中")]
            Picking = 3,
            [Description("已捡完")]
            Picked = 4,
            [Description("已发料")]
            Sended = 5,
            [Description("已关闭")]
            Close = 6,
            [Description("作废")]
            Cancel = 7,
        }
        #endregion
 
        #region 公共方法
 
        #endregion
 
    }//endClass
}