using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WCS.Mobox3.ZS7412.api { /// /// 通用model /// public class ApiModel { #region hosttoagv 相关 /// /// 返回给hosttoagv /// public class ReturnResult { public int ResultCode { get; set; } public string ResultMsg { get; set; } } /// /// hosttoagv上报任务状态 /// public class AgvTaskState { public int State { get; set; } //任务状态 public string No { get; set; } //任务号 public string ForkliftNo { get; set; } //小车编号 //public string ErrCode { get; set; } public string LockNo { get; set; } //锁编号 //public string Ext1 { get; set; } //public string Ext2 { get; set; } //public string N_CNTR_COUNT { get; set; } public string ExtData { get; set; } //扩展数据 } /// /// hosttoagv上报车辆状态(参数在hosttoagv服务配置,可修改) /// public class AgvDeviceStatus { public string forkliftNo { get; set; } public string errCode { get; set; } public string errCode2 { get; set; } public string faildCode { get; set; } public string xPos { get; set; } public string yPos { get; set; } public string battery { get; set; } public string detail { get; set; } public string infoType { get; set; } public string inMapRoute { get; set; } public string CumInfo { get; set; } } /// /// osttoagv上报其它事件信息 /// public class AgvEventInfo { public int Code { get; set; } public string CarID { get; set; } public string Param1 { get; set; } public string Param2 { get; set; } public string Param3 { get; set; } } #endregion #region mobox 相关 /// /// mobox 取消任务、标记完成任务 /// public class MoboxTaskBase { public string TaskNo { get; set; } } /// /// mobox 接口返回 /// public class SimpleResult { public int resultCode { get; set; } public string resultMsg { get; set; } public List result { get; set; } = new List(); } public class InstockInfo { public string start { get; set; } // 起始货位 public string item { get; set; } // 物料编码 public string endArea { get; set; } // 目标库区 } public class ShiftStockInfo { public string startArea { get; set; } // 起始货区 public int startRow { get; set; } // 起始排 public string item { get; set; } // 物料编码 public string endArea { get; set; } // 目标库区 public int endRow { get; set; } // 目标排 } // 国自任务状态 public class GZAgvTaskState { public int OrderID { get; set; } //订单ID public string orderName { get; set; } public string OrderStatus { get; set; } //订单状态 public string agvIDList { get; set; } //小车编号 public int priority { get; set; } //订单优先级 public string currentDes { get; set; } //当前目的地 public string currentCmd { get; set; } public int errorCode { get; set; } public string deadLine { get; set; } public string createdTime { get; set; } public string extraInfo1 { get; set; } //扩展数据 public string extraInfo2 { get; set; } public string StatusChangeTime { get; set; } } public class SafetyInfo{ public string station_name { get; set; } // 1:取货请求进入 2:取货请求动作 4:取货后已离开 5:卸货请求进入 6:卸货请求动作 8:卸货后已离开 public int apply_code { get; set; } public int orderid { get; set; } //订单ID } public class SafetyResponse { public int code { get; set; } public string msg { get; set; } } public class GZReturnResult { public int resultCode { get; set; } public string msg { get; set; } public int orderID { get; set; } } #endregion } /// /// 项目订制model /// public class OtherModel { /// /// mobox3接口替代,入库单信息 /// public class Putaway_Order_In { public DataInfo Data { get; set; } public class DataInfo { /// /// 入库单号(唯一) /// public string arrival_no { get; set; } /// /// 单据类型 /// public string op_type { get; set; } public List items { get; set; } } public class Detail { public string item_code { get; set; } /// /// 保留4位小数 /// public float qty { get; set; } public string batch_no { get; set; } } } public class OutboundOrder { public DataInfo1 Data { get; set; } public class DataInfo1 { /// /// 出库单号(唯一) /// public string out_no { get; set; } /// /// 单据类型 /// public string op_type { get; set; } /// /// 生产出库的需要指定线边库区 /// public string line_area { get; set; } public List items { get; set; } } public class Detail1 { public string item_code { get; set; } /// /// 保留4位小数 /// public float qty { get; set; } public string batch_no { get; set; } } } public class ApiBaseModel { public string Name { get; set; } public string Source { get; set; } } } }