2025-05-22 13:06:49 +08:00
|
|
|
|
using WcsMain.Tcp.Entity.Message;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WcsMain.Tcp.Entity.Convey;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 回复 PLC 路向的实体
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class SetRouterData : MsgHeader
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 消息标记
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string MagTag { get; set; } = "STROUTER";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 请求位置
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? Area { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 条码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? Code { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 尺寸
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? Size { get; set; } = "0";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 重量
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public decimal Weight { get; set; } = decimal.Zero;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 长
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public decimal Length { get; set; } = decimal.Zero;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 宽
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public decimal Width { get; set; } = decimal.Zero;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 高
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public decimal Hight { get; set; } = decimal.Zero;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 任务号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int? PlcId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 路向
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int? Router { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备用1
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? Spare1 { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备用2
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? Spare2 { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
|
{
|
|
|
|
|
|
string body = string.Join(';', MsgType, ClientId, MsgId, MsgTag, Area, Code, Size, Weight.ToString("N4"),
|
|
|
|
|
|
Length.ToString("N4"), Width.ToString("N4"), Hight.ToString("N4"), PlcId, Router, Spare1, Spare2);
|
|
|
|
|
|
return string.Concat("<", body, ">");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|