You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.6 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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