服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-12-07 790032df98d586627a771159d5b6c7646e3fff35
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
using System;
using SqlSugar;
using System.Linq;
using System.ComponentModel;
using System.Collections.Generic;
 
namespace Tiger.Model
{
    /// <summary>
    /// ÊµÌ壺Í깤Èë¿âÅú´Î±í
    /// </summary>
    [Description("Primary:ID")]
    [DisplayName("Í깤Èë¿âÅú´Î±í")]
    [Serializable]
    [SugarTable("BIZ_ERP_PROD_IN_BTH")]
    public class BIZ_ERP_PROD_IN_BTH : DbEntityWithAuth
    {
        #region ¹¹Ô캯Êý
        /// <summary>
        /// ÊµÌ壺Í깤Èë¿âÅú´Î±í
        /// </summary>
        public BIZ_ERP_PROD_IN_BTH() {}
        #endregion
 
        #region ¹«¹²ÊôÐÔ
        /// <summary>
        /// Èë¿âµ¥ºÅ
        /// </summary>
        [DisplayName("Èë¿âµ¥ºÅ")]
        public string ORDER_NO { get; set; }
        /// <summary>
        /// ¹¤µ¥Åú´ÎºÅ
        /// </summary>
        [DisplayName("¹¤µ¥Åú´ÎºÅ")]
        public string BATCH_NO { get; set; }
        /// <summary>
        /// ¹¤µ¥ºÅ
        /// </summary>
        [DisplayName("¹¤µ¥ºÅ")]
        public string WORK_ORDER { get; set; }
        /// <summary>
        /// ÎïÁϱàÂë
        /// </summary>
        [DisplayName("ÎïÁϱàÂë")]
        public string ITEM_CODE { get; set; }
        /// <summary>
        /// ÎïÁÏÃû³Æ
        /// </summary>
        [DisplayName("ÎïÁÏÃû³Æ")]
        public string ITEM_NAME { get; set; }
        /// <summary>
        /// ÒÑɨÃèÊýÁ¿
        /// </summary>
        [DisplayName("ÒÑɨÃèÊýÁ¿")]
        public double SCAN_QTY { get; set; }
        /// <summary>
        /// ÊÇ·ñɨÃèÍê³É(Y/N)
        /// </summary>
        [DisplayName("ÊÇ·ñɨÃèÍê³É(Y/N)")]
        public string IS_SCANED { get; set; }
        /// <summary>
        /// É¨ÃèÍê³Éʱ¼ä
        /// </summary>
        [DisplayName("ɨÃèÍê³Éʱ¼ä")]
        public DateTime SCANED_DATE { get; set; } = DateTime.MinValue;
        /// <summary>
        /// ÊÇ·ñ²Ö¿âµãÊÕ(Y/N)
        /// </summary>
        [DisplayName("ÊÇ·ñ²Ö¿âµãÊÕ(Y/N)")]
        public string IS_RECEIVED { get; set; }
        /// <summary>
        /// ²Ö¿âµãÊÕʱ¼ä
        /// </summary>
        [DisplayName("²Ö¿âµãÊÕʱ¼ä")]
        public DateTime RECEIVED_DATE { get; set; } = DateTime.MinValue;
        /// <summary>
        /// ÊÇ·ñÉϼÜÍê³É(Y/N)
        /// </summary>
        [DisplayName("ÊÇ·ñÉϼÜÍê³É(Y/N)")]
        public string IS_IN_STORE { get; set; }
        /// <summary>
        /// ÉϼÜÍê³Éʱ¼ä
        /// </summary>
        [DisplayName("ÉϼÜÍê³Éʱ¼ä")]
        public DateTime IN_STORE_DATE { get; set; } = DateTime.MinValue;
        /// <summary>
        /// ÊÇ·ñÒÑͬ²½ERP(Y/N)
        /// </summary>
        [DisplayName("ÊÇ·ñÒÑͬ²½ERP(Y/N)")]
        public string IS_HANDLED { get; set; }
        /// <summary>
        /// Í¬²½ERPʱ¼ä
        /// </summary>
        [DisplayName("ͬ²½ERPʱ¼ä")]
        public DateTime HANDLED_DATE { get; set; } = DateTime.MinValue;
        /// <summary>
        /// ±¸×¢
        /// </summary>
        [DisplayName("±¸×¢")]
        public string REMARK { get; set; }
        #endregion
 
        #region ÐéÄâÊôÐÔ
        /*Àý×Ó
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
 
        [SugarColumn(IsIgnore = true)]
        public string SALES_ORDER { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string SapCode { get; set; }
        [SugarColumn(IsIgnore = true)]
        public int CartonQty { get; set; }
        #endregion
 
        #region Íâ¼üÊôÐÔ
        /*Àý×Ó
        //Ò»¶ÔÒ»Íâ¼üµ¼º½
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//Ò»¶ÔÒ» ClassAIdÊÇBIZ_ERP_PROD_IN_BTHÀàÀïÃæµÄÍâ¼üID×Ö¶Î
        public ClassA ClassA { get; set; } //×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull
        //Ò»¶Ô¶àÍâ¼üµ¼º½
        [Navigate(NavigateType.OneToMany, nameof(ClassA.BIZ_ERP_PROD_IN_BTHId))]//ClassA±íÖеÄBIZ_ERP_PROD_IN_BTHId
        public List<ClassA> ClassAList { get; set; }//×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull
        //¶à¶Ô¶àÍâ¼üµ¼º½
        [Navigate(typeof(MappingClass), nameof(MappingClass.BIZ_ERP_PROD_IN_BTHId), 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
 
    public class ProdInBatch
    {
        /// <summary>
        /// Èë¿âµ¥ºÅ
        /// </summary>
        [DisplayName("Èë¿âµ¥ºÅ")]
        public string ORDER_NO { get; set; }
        public string SALES_ORDER { get; set; }
        public string STATUS { get; set; }
        /// <summary>
        /// ¹¤µ¥Åú´ÎºÅ
        /// </summary>
        [DisplayName("¹¤µ¥Åú´ÎºÅ")]
        public string BATCH_NO { get; set; }
        /// <summary>
        /// ¹¤µ¥ºÅ
        /// </summary>
        [DisplayName("¹¤µ¥ºÅ")]
        public string WORK_ORDER { get; set; }
        /// <summary>
        /// ÎïÁϱàÂë
        /// </summary>
        [DisplayName("ÎïÁϱàÂë")]
        public string ITEM_CODE { get; set; }
        /// <summary>
        /// ÎïÁÏÃû³Æ
        /// </summary>
        [DisplayName("ÎïÁÏÃû³Æ")]
        public string ITEM_NAME { get; set; }
        public string SapCode { get; set; }
        /// <summary>
        /// ¼Æ»®ÊýÁ¿
        /// </summary>
        [DisplayName("¼Æ»®ÊýÁ¿")]
        public double PLAN_QTY { get; set; }
        /// <summary>
        /// ÒÑɨÃèÊýÁ¿
        /// </summary>
        [DisplayName("ÒÑɨÃèÊýÁ¿")]
        public double SCAN_QTY { get; set; }
    }
 
    public class InStoreScanInfo
    {
        /// <summary>
        /// ÌõÂë
        /// </summary>
        [DisplayName("ÌõÂë")]
        public string SN { get; set; }
        public string SALES_ORDER { get; set; }
        [DisplayName("¹¤µ¥Åú´ÎºÅ")]
        public string BATCH_NO { get; set; }
        /// <summary>
        /// ¹¤µ¥ºÅ
        /// </summary>
        [DisplayName("¹¤µ¥ºÅ")]
        public string WORK_ORDER { get; set; }
        /// <summary>
        /// ÒÑɨÃèÊýÁ¿
        /// </summary>
        [DisplayName("ÒÑɨÃèÊýÁ¿")]
        public double SCAN_QTY { get; set; }
    }
 
    public class InStoreInfo { 
        public BIZ_ERP_PROD_IN_BTH ErpProdInBth { get; set; }
        //public ProdInBatch ProdInBatch { get; set; }
        public InStoreScanInfo InStoreScanInfo { get; set; }
    }
 
    public class InStoreInfos
    {
        public List<BIZ_ERP_PROD_IN_BTH> ErpProdInBths { get; set; }
        public List<InStoreScanInfo> InStoreScanInfos { get; set; }
    }
}