using MiniExcelLibs.Attributes; using System; namespace SlnMesnac.RfidUpload.Model { /// /// 指令信息 /// public class InstructionInfo { [ExcelColumn(Name = "no", Index = 0), ExcelColumnWidth(23)] public int no { get; set; } /// /// /// [ExcelColumn(Name = "stx",Index = 1),ExcelColumnWidth(23)] public string stx { get; set; } /// /// 报文长度,包含帧头、校验 /// [ExcelColumn(Name = "len", Index = 2), ExcelColumnWidth(23)] public int len { get; set; } /// /// 报文类型0x31 /// [ExcelColumn(Name = "cmd", Index = 3), ExcelColumnWidth(23)] public byte cmd { get; set; } /// /// 擦除状态:0-成功;1-失败 /// [ExcelColumn(Name = "status", Index = 4), ExcelColumnWidth(23)] public int status { get; set; } /// /// 数据 /// [ExcelColumn(Name = "data", Index = 5), ExcelColumnWidth(53)] public string data { get; set; } /// /// 异或和校验,10进制 /// [ExcelColumn(Name = "xor", Index = 6), ExcelColumnWidth(23)] public byte xor { get; set; } /// /// 记录时间 /// [ExcelColumn(Name = "recordtime", Index = 7), ExcelColumnWidth(23)] public DateTime recordtime { get; set; } } }