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 // 离库
|
}
|
|
|
}
|