using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mesnac.Compressor.Entity
{
public class FrameFormat
{
public FrameFormat()
{
data = new DataFormat();
}
///
/// 帧头
///
public string Framehead { get; set; }
///
/// 长度
///
public int length { get; set; }
///
/// 帧类型
///
public string Type { get; set; }
public DataFormat data { get; set; }
///
/// 校验码
///
public string CheckCode { get; set; }
///
/// 帧尾
///
public string FrameTail { get; set; }
///
/// 数据是否正确
///
public bool CompleteFlag { get; set; }
}
public class DataFormat
{
#region Socket上传格式
public string PC { get; set; }
public string Epc
{ get; set; }
public string Rssi { get; set; }
///
/// 天线
///
public string ANT { get; set; }
///
/// IP的最后一位
///
public string IP { get; set; }
//超时
public string TimeOut { get; set; }
#endregion
public bool PrepareWork { get; set; }
///
/// 是否已经下发工作指令
///
public bool HaveWorked { get; set; }
///
///刻字工位是否成功
///
public bool EngravingCodeSuccess = false;
///
/// 刻字条码是否已经经过扫描确认
///
public bool EngravingScan = false;
///
/// 是否下发工作指令
///
public bool workOrder = false;
///
/// 是否已经保存数据
///
public bool DataSave = false;
public WorkTray workTray;
//是否已经扫描条码
public bool ScanCode = false;
public StationInsertInfo InsertInfo;
}
}