using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WCS.Application { #region JC34 /// /// agv任务下发model /// public class AgvTaskSend { /// /// 外部任务唯一编号,如果为空,系统生成任务号并返回。 /// public string robotTaskCode { get; set; } /// /// 任务类型 /// public string taskType { get; set; } /// /// 执行步骤集合。本次任务机器人需要执行的关键路径,如货架起点 A 至出库工作台 B /// public List targetRoute { get; set; } /// /// 任务执行的初始优先顺序,数值越大,优先级越高。但机器人调度系统会根据任务繁忙程度,机器人的工作状态,以及其他优先级修正条件,进行综合判定后,实时动态调整任务实际的优先级数值。范围:1~120 /// public int? initPriority { get; set; } /// /// 自定义扩展字段,可随业务的差异而传入不同的扩展内容,在业务流程的执行中使用 /// public extra extra { get; set; } } /// /// 执行步骤集合。本次任务机器人需要执行的关键路径,如货架起点 A 至出库工作台 B /// public class targetRoute { /// /// 目标路径序列。从 0 开始。 /// public int seq { get; set; } /// /// 目标类型。可扩展枚举值。 /// 预制枚举值: /// ZONE目标所处区域编号 /// SITE站点别名 /// STORAGE仓位别名 /// MAT_LABEL物料标签 /// CARRIER载具编号 /// STACK巷道编号 /// STACK_LABEL巷道特征值 /// CHANNEL通道编号 /// EQPT 外部设备 /// PTL_WALL /// CTU 缓存架 /// CARRIER_TYPE载具类型 /// BIN_TYPE仓位类型 /// AREA_STATION区域工作台 /// PILE_COUNT一次搬几个 /// MIX_CONDITION条件组合 /// DEGREE 热度 /// MULTI_BIN_GROUP多深位组号 /// public string type { get; set; } /// /// 机器人到达目标位置后的操作。国标要求, /// 非必要。对 AMR 动作无影响。可扩展的枚举值。 /// 预制枚举值: /// COLLECT取货 /// DELIVERY送货 /// ROTATE旋转 /// public string code { get; set; } } public class extra { /// /// 载具的信息,包含载具编号、层号。 /// 使用场景: /// 1.装卸机或输送线专用 /// 2.载具与站点没有绑定,但需要传入载具的场景。 /// public List carrierInfo { get; set; } } public class carrierInfo { /// /// 载具类型 /// public string carrierType { get; set; } /// /// 载具编号 /// public string carrierCode { get; set; } /// /// 层号: 从 0 开始、从下往上编号 /// public int layer { get; set; } } /// /// 返回实体 /// public class ResponseAgvDto { /// /// true 成功 false 失败 /// public bool success { get; set; } /// /// 返回码 /// SUCCESS:成功 /// FAIL:失败 /// 是否必填:是 /// public string code { get; set; } /// /// 返回消息 /// 是否必填:是 /// public string message { get; set; } /// /// 返回的数据结构 /// 是否必填:否 /// public data data { get; set; } } public class data { public string robotTaskCode { get; set; } } #endregion public class AGVApplyLockInput { /// /// 门 111去平库 222去车间 /// public string DeviceIndex { get; set; } public string UUID { get; set; } public string ActionTask { get; set; } public string DeviceType { get; set; } public string Des { get; set; } } public class AGVCallBackInput { public string ReqCode { get; set; } public string ReqTime { get; set; } public string CurrentPositionCode { get; set; } /// /// 任务号 /// public string robotTaskCode { get; set; } /// /// 托盘号 /// public string CtnrCode { get; set; } public ExtraInfo Extra { get; set; } } public class ExtraInfo { public ExtraInfoVal Values { get; set; } } public class ExtraInfoVal { /// /// 方法名 end : 任务结束 /// public string Method { get; set; } } public class AGVCallBackResponse { public string Code { get; set; } public string Message { get; set; } public string ReqCode { get; set; } } public class AgvTaskInput { /// /// /// public string ReqCode { get; set; } /// /// /// public string TaskTyp { get; set; } /// /// /// public string CtnrTyp { get; set; } = "1"; /// /// /// public string CtnrCode { get; set; } /// /// /// public List PositionCodePath { get; set; } /// /// /// public string TaskCode { get; set; } } public class PositionCodePathItem { /// /// /// public string PositionCode { get; set; } /// /// /// public string Type { get; set; } = "00"; } public class AgvResponse { /// /// /// public string code { get; set; } /// /// /// public string data { get; set; } /// /// /// public string message { get; set; } /// /// /// public string reqCode { get; set; } } public class AgvResponse2 { /// /// /// public int code { get; set; } /// /// /// public string data { get; set; } /// /// /// public string message { get; set; } /// /// /// public string reqCode { get; set; } } public class AgvNotifyInput { /// /// /// public string UUID { get; set; } /// /// /// public string DeviceIndex { get; set; } /// /// /// public string ActionStatus { get; set; } /// /// /// public string DeviceType { get; set; } = "door"; /// /// /// public string Des { get; set; } } public class StorageCacheStatus { public bool? Z11 { get; set; } public bool? Z12 { get; set; } public bool? Z13 { get; set; } public bool? Z21 { get; set; } public bool? Z22 { get; set; } public bool? Z23 { get; set; } public bool? Z31 { get; set; } public bool? Z32 { get; set; } public bool? Z33 { get; set; } public bool? Z41 { get; set; } public bool? Z42 { get; set; } public bool? Z43 { get; set; } public bool? Z51 { get; set; } public bool? Z52 { get; set; } public bool? Z53 { get; set; } } public class CancelTaskModel { /// /// /// public string ReqCode { get; set; } /// /// /// public string ReqTime { get; set; } /// /// /// public string ClientCode { get; set; } /// /// /// public string TokenCode { get; set; } /// /// /// public string ForceCancel { get; set; } /// /// /// public string MatterArea { get; set; } /// /// /// public string AgvCode { get; set; } /// /// /// public string TaskCode { get; set; } } }