wangxinhui
2024-12-26 78b99e5348592a29ca1393a5e13db619cc4eba56
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
/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化,请在代码生器重新生成此Model
 */
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WIDESEA_Entity.SystemModels;
 
namespace WIDESEA_Entity.DomainModels
{
    [Entity(TableCnName = "货位表", TableName = "base_ware_location")]
    [Table("base_ware_location")]
    public class base_ware_location : BaseEntity
    {
        /// <summary>
        ///主键
        /// </summary>
        [Key]
        [Display(Name = "id")]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid id { get; set; }
 
        /// <summary>
        ///上料货位编号
        /// </summary>
        [Display(Name = "upper_code")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Required(AllowEmptyStrings = false)]
        [Editable(true)]
        public string upper_code { get; set; }
 
        /// <summary>
        ///下料货位编号
        /// </summary>
        [Display(Name = "down_code")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string down_code { get; set; }
 
        /// <summary>
        ///货物区域
        /// </summary>
        [Display(Name = "area")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string area { get; set; }
 
        /// <summary>
        ///货位类型
        /// </summary>
        [Display(Name = "equipment_type")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string equipment_type { get; set; }
 
        /// <summary>
        ///货位名称
        /// </summary>
        [Display(Name = "name")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string name { get; set; }
 
        /// <summary>
        ///货位层
        /// </summary>
        [Display(Name = "logic_layer")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string logic_layer { get; set; }
 
        /// <summary>
        ///货位状态指示灯:1.良品(亮绿灯)0:未良品(亮黄灯)
        /// </summary>
 
        [Display(Name = "logic_col")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? logic_col { get; set; }
 
        /// <summary>
        ///货位行
        /// </summary>
        [Display(Name = "logic_row")]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string logic_row { get; set; }
 
        /// <summary>
        ///货位状态
        /// </summary>
        [Display(Name = "location_state")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Required(AllowEmptyStrings = false)]
        [Editable(true)]
        public string location_state { get; set; }
 
        /// <summary>
        ///是否启用,1启动0禁用
        /// </summary>
        [Display(Name = "status")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        [Editable(true)]
        public int status { get; set; }
 
        /// <summary>
        ///创建者
        /// </summary>
        [Display(Name = "created_user")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
 
        [Editable(true)]
        public string? created_user { get; set; }
 
        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "created_time")]
        [Column(TypeName = "datetime")]
        //[Required(AllowEmptyStrings = false)]
        public DateTime? created_time { get; set; }
        /// <summary>
        ///光电1
        /// </summary>
        [Display(Name = "gd1")]
        [Column(TypeName = "int")]
 
        public int? gd1 { get; set; }
        /// <summary>
        ///光电2
        /// </summary>
        [Display(Name = "gd2")]
        [Column(TypeName = "int")]
        public int? gd2 { get; set; }
        /// <summary>
        ///光电3
        /// </summary>
        [Display(Name = "gd3")]
        [Column(TypeName = "int")]
        public int? gd3 { get; set; }
        /// <summary>
        ///光电4
        /// </summary>
        [Display(Name = "gd4")]
        [Column(TypeName = "int")]
        public int? gd4 { get; set; }
 
        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "update_time")]
        [Column(TypeName = "datetime")]
        public DateTime? update_time { get; set; }
 
        /// <summary>
        ///无线模块更新时间
        /// </summary>
        [Display(Name = "wireless_time")]
        [Column(TypeName = "datetime")]
        public DateTime? wireless_time { get; set; }
 
        /// <summary>
        ///排序字段
        /// </summary>
        [Display(Name = "order_num")]
        [Column(TypeName = "int")]
        public int? order_num { get; set; }
 
        /// <summary>
        ///信号灯颜色
        /// </summary>
        [Display(Name = "light_color")]
        [Column(TypeName = "nvarchar(50")]
        public string light_color { get; set; }
 
 
        /// <summary>
        ///货架是否存在任务:1存在,2不存在
        /// </summary>
        [Display(Name = "task")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int task { get; set; }
 
        /// <summary>
        ///托盘光电
        /// </summary>
        [Display(Name = "tpgd")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int tpgd { get; set; }
 
        /// <summary>
        /// 物料档位
        /// </summary>
        [Display(Name = "geartype")]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string geartype { get; set; }
    }
}