服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-10-15 37c4128d884e46d1f50c0a003c34a1749cda5841
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
using System;
using SqlSugar;
using System.Linq;
using System.ComponentModel;
using System.Collections.Generic;
 
namespace Tiger.Model
{
    /// <summary>
    /// ÊµÌ壺SMT¹¤¾ßÐÅÏ¢
    /// </summary>
    [Description("Primary:ID")]
    [Serializable]
    [SugarTable("V_SMT_TOOL")]
    public class V_SMT_TOOL : DbEntityWithAuth
    {
        #region ¹¹Ô캯Êý
        /// <summary>
        /// ÊµÌ壺SMT¹¤¾ßÐÅÏ¢
        /// </summary>
        public V_SMT_TOOL() {}
        #endregion
 
        #region ¹«¹²ÊôÐÔ
        /// <summary>
        /// ¹¤¾ß±àÂë
        /// </summary>
        public string TOOL_CODE { get; set; }
        /// <summary>
        /// ¹¤¾ßÐͺÅ
        /// </summary>
        public string TOOL_MODEL { get; set; }
        /// <summary>
        /// Ô¤¾¯±¨·ÏÀàÐÍ
        /// </summary>
        public string ALARM_TYPE { get; set; }
        /// <summary>
        /// ¹¤¾ß¹æ¸ñ
        /// </summary>
        public string TOOL_SPEC { get; set; }
        /// <summary>
        /// ÀàÐÍ(0SMTStencil¸ÖÍø|1Squeegee¹Îµ¶)
        /// </summary>
        public int TYPE { get; set; }
        /// <summary>
        /// ×´Ì¬(0InStoreÒÑÈë¿â|1SendedÒÑÁìÓÃ|2OnlineÒÑÉÏÏß|3OfflineÒÑÏÂÏß|4Maintain±£ÑøÖÐ|5ScrappedÒѱ¨·Ï)
        /// </summary>
        public int STATUS { get; set; }
        /// <summary>
        /// ÖÆÔìÉÌ
        /// </summary>
        public string MANUFACTURER { get; set; }
        /// <summary>
        /// ²úÆ·±àÂë
        /// </summary>
        public string PROD_CODE { get; set; }
        /// <summary>
        /// Ê¹ÓôÎÊýÉÏÏÞ
        /// </summary>
        public int USE_LIMIT { get; set; }
        /// <summary>
        /// ±£ÑøÔ¤¾¯´ÎÊý
        /// </summary>
        public int MT_ALARM_NO { get; set; }
        /// <summary>
        /// ±¨·ÏÔ¤¾¯´ÎÊý
        /// </summary>
        public int SCRAP_ALARM_NO { get; set; }
        /// <summary>
        /// ×ÜÊý
        /// </summary>
        public int TOTAL { get; set; }
        /// <summary>
        /// Ê¹ÓôÎÊý
        /// </summary>
        public int USE_COUNT { get; set; }
        /// <summary>
        /// ²Ö¿â±àÂë
        /// </summary>
        public string WH_CODE { get; set; }
        /// <summary>
        /// ´¢Çø±àÂë
        /// </summary>
        public string REGION_CODE { get; set; }
        /// <summary>
        /// »õ¼Ü/Áϳµ±àÂë
        /// </summary>
        public string SHELF_CODE { get; set; }
        /// <summary>
        /// ´¢Î»±àÂë
        /// </summary>
        public string LOCATION_CODE { get; set; }
        /// <summary>
        /// ²úÏß±àÂë
        /// </summary>
        public string LINE_CODE { get; set; }
        /// <summary>
        /// ±¸×¢
        /// </summary>
        public string REMARK { get; set; }
        #endregion
 
        #region ÐéÄâÊôÐÔ
        /*Àý×Ó
        [SugarColumn(IsIgnore = true)]
        public string FieldName { get; set; }
        */
        #endregion
 
        #region Íâ¼üÊôÐÔ
        /*Àý×Ó
        //Ò»¶ÔÒ»Íâ¼üµ¼º½
        [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//Ò»¶ÔÒ» ClassAIdÊÇSMT_TOOLÀàÀïÃæµÄÍâ¼üID×Ö¶Î
        public ClassA ClassA { get; set; } //×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull
        //Ò»¶Ô¶àÍâ¼üµ¼º½
        [Navigate(NavigateType.OneToMany, nameof(ClassA.SMT_TOOLId))]//ClassA±íÖеÄSMT_TOOLId
        public List<ClassA> ClassAList { get; set; }//×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull
        //¶à¶Ô¶àÍâ¼üµ¼º½
        [Navigate(typeof(MappingClass), nameof(MappingClass.SMT_TOOLId), nameof(MappingClass.ClassAId))]//×¢Òâ˳Ðò
        public List<ClassA> ClassAList { get; set; } //×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull
        */
        #endregion
 
        #region Ã¶¾Ù±äÁ¿
        /*Àý×Ó
        public enum FieldNames
        {
            [Description("ö¾ÙÃèÊö0")]
            Enum0,
            [Description("ö¾ÙÃèÊö1")]
            Enum1,
        }
        */
        public enum TYPEs
        {
            [Description("¸ÖÍø")]
            SMTStencil,
            [Description("¹Îµ¶")]
            Squeegee
        }
        public enum STATUSs
        {
            [Description("ÒÑÈë¿â")]
            InStore,
            [Description("ÒÑÁìÓÃ")]
            Sended,
            [Description("ÒÑÉÏÏß")]
            Online,
            [Description("ÒÑÏÂÏß")]
            Offline,
            [Description("±£ÑøÖÐ")]
            Maintain,
            [Description("Òѱ¨·Ï")]
            Scrapped,
        }
        public enum ALARM_TYPEs
        {
            [Description("Õý³£")]
            NORMAL,
            [Description("±£ÑøÔ¤¾¯")]
            MT_ALARM_,
            [Description("±¨·ÏÔ¤¾¯")]
            SCRAP_ALARM
        }
        #endregion
 
        #region ¹«¹²·½·¨
 
        #endregion
 
    }//endClass
}