using WcsMain.Tcp.Entity.Message; namespace WcsMain.Tcp.Entity.Convey; /// /// 回复 PLC 路向的实体 /// public class SetRouterData : MsgHeader { /// /// 消息标记 /// public string MagTag { get; set; } = "STROUTER"; /// /// 请求位置 /// public string? Area { get; set; } /// /// 条码 /// public string? Code { get; set; } /// /// 尺寸 /// public string? Size { get; set; } = "0"; /// /// 重量 /// public decimal Weight { get; set; } = decimal.Zero; /// /// 长 /// public decimal Length { get; set; } = decimal.Zero; /// /// 宽 /// public decimal Width { get; set; } = decimal.Zero; /// /// 高 /// public decimal Hight { get; set; } = decimal.Zero; /// /// 任务号 /// public int? PlcId { get; set; } /// /// 路向 /// public int? Router { get; set; } /// /// 备用1 /// public string? Spare1 { get; set; } /// /// 备用2 /// 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, ">"); } }