1
dengjunjie
8 天以前 a770206c91e495b802b3e9371e06834586ad7715
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
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
 
namespace WIDESEA_Model.Models
{
    [SugarTable(nameof(Dt_EquipmentAlarmInfor), "立库设备管理")]
    public class Dt_EquipmentAlarmInfor: BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
 
        /// <summary>
        /// 设备名称
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备名称")]
        public string RobotName { get; set; }
 
 
        /// <summary>
        /// 设备编码
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备编码")]
        public string RobotCode { get; set; }
 
 
        /// <summary>
        /// 设备状态
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备状态")]
        public string Status { get; set; }
 
 
        /// <summary>
        /// 同步时间
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "同步时间")]
        public DateTime SyncTime { get; set; } = DateTime.Now;
    }
 
    public enum DeviceStatus
    {
        Disabled = 0,   // 不可用
        Enable = 1,     // 可用
        Error = 2,      // 发生错误
        Charging = 3,   // 充电中
        Occupied = 4,   // 被占用
        Down = 5        // 离库
    }
 
 
}