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

65 lines
1.7 KiB

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