/************************************************************************************* * * 文 件 名: TaskApply * 描 述: 任务申请 * 备 注: * 创 建 者: Du * 创建时间: 2022/8/1 8:30:48 *************************************************************************************/ using System.Collections.Generic; namespace RGD.HaiRouAPI.HaiRouModel { public class TaskApply { private string TaskType; private string BusinessType; private string TaskGroupCode; private int GroupPriority; private List taskss; /// /// 任务类型 /// tote_outbound:容器出库; /// tote_inbound:容器入库 /// public string taskType { get => TaskType; set => TaskType = value; } /// /// 业务类型,非必填,当任务类型是出库时,可选填业务类型 /// public string businessType { get => BusinessType; set => BusinessType = value; } /// /// 任务组号,非必填,任务组,若不传则系统自动生成 /// public string taskGroupCode { get => TaskGroupCode; set => TaskGroupCode = value; } /// /// 组优先级,非必填 /// 0代表不区分优先级;从1开始,数值越大,优先级越高;系统会优先执行高优先级组的任务 /// public int groupPriority { get => GroupPriority; set => GroupPriority = value; } /// /// 任务列表 /// public List tasks { get => taskss; set => taskss = value; } } public class task { private string TaskCode; private int TaskPriority; private taskDescribe TaskDescribe; /// /// 任务号 /// public string taskCode { get => TaskCode; set => TaskCode = value; } /// /// 任务优先级,非必填项,0代表不区分优先级;从1开始,数值越大,优先级越高;系统会优先分配优先级高的任务 /// public int taskPriority { get => TaskPriority; set => TaskPriority = value; } /// /// 任务描述 /// public taskDescribe taskDescribe { get => TaskDescribe; set => TaskDescribe = value; } } public class taskDescribe { } /// /// 入库任务描述 /// public class InTaskDescribe : taskDescribe { private string ContainerCode; private string ContainerType; private string StorageTag; private string FromLocationCode; private string LocationCode; /// /// 容器编码,必填项 /// public string containerCode { get => ContainerCode; set => ContainerCode = value; } /// /// 容器型号,入库任务必填项,必须指定一个型号才能入库 /// public string containerType { get => ContainerType; set => ContainerType = value; } /// /// 工作位标签,入库任务非必填项 /// public string storageTag { get => StorageTag; set => StorageTag = value; } /// /// 起始工作位,非必填项 /// public string fromLocationCode { get => FromLocationCode; set => FromLocationCode = value; } /// /// 目标工作位,入库任务非必填项 /// public string locationCode { get => LocationCode; set => LocationCode = value; } } /// /// 出库任务描述 /// public class OutTaskDescribe : taskDescribe { private long Deadline; private string ContainerCode; private string FromLocationCode; private List ToStationCode; private string ToLocationCode; private int Specifiedtrunk; /// /// 时间戳,ms,出库任务非必填项,若临近截单时间N(N可配置),则任务优先级会提高,会优先执行 /// public long deadLine { get => Deadline; set => Deadline = value; } /// /// 容器编码,必填项 /// public string containerCode { get => ContainerCode; set => ContainerCode = value; } /// /// 起始工作位,非必填项 /// public string fromLocationCode { get => FromLocationCode; set => FromLocationCode = value; } /// /// 目标工作站编码,出库任务必填项,支持传多个工作站,系统均衡分配 /// public List toStationCode { get => ToStationCode; set => ToStationCode = value; } /// /// 目标工作站工作位,出库任务非必填项 /// public string toLocationCode { get => ToLocationCode; set => ToLocationCode = value; } /// /// 指定背篓 /// public int specifiedTrunk { get => Specifiedtrunk; set => Specifiedtrunk = value; } } }