using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XImagingXhandler.XDAL { /// /// 软件(小)设备信息表 /// [SugarTable("softwareinnerdevice")] public class SoftwareInformationDevice { /// /// 设备信息ID /// [SugarColumn(ColumnName = "software_information_id", IsPrimaryKey = true)] public string software_information_id { get; set; } /// /// ID /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true)] public int id { get; set; } /// /// 设备名称 /// [SugarColumn(ColumnName = "device_name")] public string device_name { get; set; } /// /// 设备开关状态:0:关闭;1:打开 /// [SugarColumn(ColumnName = "device_state")] public int device_state { get; set; } /// /// 设备设定的打开时间 /// [SugarColumn(ColumnName = "device_starttime")] public string device_starttime { get; set; } /// /// 设备设定的关闭时间 /// [SugarColumn(ColumnName = "device_endtime")] public string device_endtime { get; set; } /// /// 设备已被打开总时长 /// [SugarColumn(ColumnName = "device_periodtime")] public double device_periodtime { get; set; } } /// /// 设备开关状态:0:关闭;1:打开 /// public enum DeviceStateModeEnum { /// /// 关闭 /// [Description("关闭")] TurnOff = 0, /// /// 打开 /// [Description("打开")] TurnOn = 1 } }