using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WIDESEA_StorageSocketServices { public class ParseMessage { /// /// 1WMS下发--0HOST下发 /// public string bDir { get; set; } /// /// 设备ID /// public string bObjID { get; set; } /// /// 是否回复 /// public string bReply { get; set; } /// /// 命令步序 /// public string bCmdID { get; set; } /// /// 任务号 /// public string nSeqNo { get; set; } /// /// 主体 /// public ReceiveBody body { get; set; } } public class ReceiveBody { /// /// 状态 /// public string state { get; set; } /// /// 回调 /// public string ret { get; set; } /// /// 作业任务ID /// public string JobOrderID { get; set; } /// /// 优先级 /// public string priority { get; set; } /// /// 起点位置 /// public string FromLocation { get; set; } /// /// 终点位置 /// public string ToLocation { get; set; } /// /// 作业类型,I入库、O出库、S站台到站台、R移库 /// public string JobType { get; set; } /// /// 托盘个数默认为1 /// public string TrayCnt { get; set; } public string TrayIdList { get; set; } } public class InStationStatus { /// /// 站台名称 /// public string StationName { get; set; } /// /// 是否启用 /// public string StationEnable { get; set; } /// /// 是否分配任务 /// public string IsDistributionTask { get; set; } /// /// 是否有盘 /// public string IsHasPallte { get; set; } = "1"; /// /// 预留 /// public string Spare1 { get; set; } = "000"; /// /// 托盘个数 /// public string StationPallteCount { get; set; } = "1"; /// /// 托盘号 /// public string PallteCode { get; set; } /// /// 预留 /// public string Spare2 { get; set; } = "0000000000000000000000000000000000000000000000000000000000000000000000"; } public class OutStationStatus { /// /// 站台名称 /// public string StationName { get; set; } /// /// 是否启用 /// public string StationEnable { get; set; } /// /// 是否分配任务 /// public string IsDistributionTask { get; set; } /// /// 预留 /// public string Spare1 { get; set; } = "00"; public string Spare2 { get; set; } = "000000000000"; } public class StationStatus { /// /// 是否启用 /// public string WorkstationO { get; set; } public string WorkstationT { get; set; } } public class Connection { public string IP { get; set; } public int Port { get; set; } } }