using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EC.Utils.OtherCommand
{
public class QcCommand
{
#region 字段
///
/// 人工检工位
///
public string WorkSite { get; set; } = "";
///
/// 检验员
///
public string QCUser { get; set; } = "";
///
/// 传送带位置
///
public string EquipSite { get; set; } = "";
///
/// 检验结果
///
public int QCState { get; set; }
///
/// 检验结果描述
///
//public string Remark { get; set; } = "";
///
/// 丝饼编号
///
public string BarCode { get; set; } = "";
///
/// 是否心跳包 0:否 1:是
///
public int IsHeartBeat { get; set; }
#endregion
public QcCommand() { }
public QcCommand(string jsonStr)
{
QcCommand qcCommand = JsonUnit.JSONToObject(jsonStr);
WorkSite = qcCommand.WorkSite;
QCUser = qcCommand.QCUser;
EquipSite = qcCommand.EquipSite;
QCState = qcCommand.QCState;
//Remark = qcCommand.Remark;
BarCode = qcCommand.BarCode;
IsHeartBeat = qcCommand.IsHeartBeat;
}
///
/// 取对象的Json字符串
///
///
public string ToJsonStr()
{
return JsonUnit.ObjectToJson(this);
}
}
}