using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WCS.JiaTong.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 task_no { get; set; } public string forklift_no { get; set; } public string ext_data { 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 SortingResultCheck { public string sortNo { get; set; } public string cntrCode { get; set; } public string itemCode { get; set; } public float qty { get; set; } } public class CheckSortingWholeCntr { public string cntr { get; set; } /// /// 默认0,1表示自动生成分拣结果 /// public int autoSort { get; set; } } public class InstockInfo { public string start { get; set; } public string cntr { get; set; } } /// /// lua调用接口,码盘信息 /// public class PalletSorting { public string cntr_code { get; set; } public string item_code { get; set; } public float qty { get; set; } public string arrival_no { get; set; } } public class PalletSorting1 { public string cntr_code { get; set; } public string bar_code { get; set; } public string org { get; set; } public float qty { get; set; } } public class ShippingOrderCheck { /// /// 多个发货单号 /// public string out_nos { get; set; } } public class SortingOrderCheck { public string s_no { get; set; } } public class CreateTask { public string TaskType { get; set; }//创建任务 1创建取托盘任务 2创建取物料任务 3创建送满拖任务 4创建出库任务 public string startBit { get; set; } public string endBit { get; set; } public string ItemCode { get; set; } } public class BindCntr { public string LocCode { get; set; } public string ItemCode { get; set; } public int number { get; set; } } public class UntieCntr { public string LocCode { get; set; } public string CntrCode { 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; } } public class LocList { public string Location { get; set; } } } #region 合肥佳通接口 #region 接口返回 public class Result { public string code { get; set; } public string msg { get; set; } public List data { get; set; } } public class Result { public string code { get; set; } public string msg { get; set; } } public class WmsResult { public bool success { get; set; } public string message { get; set; } } public class GzResult { public string err_code { get; set; } public string err_msg { get; set; } public string loc_state { get; set; } } public class MesResult { public string icode { get; set; } public string imsg { get; set; } } public class MesResult { public string code { get; set; } public string msg { get; set; } public List idata { get; set; } } public class Resultmobox { public string err_code { get; set; } public string err_msg { get; set; } } public class Resultmobox { public string Name { get; set; } public string Source { get; set; } public T data { get; set; } } #endregion /// /// 创建任务 /// public class CreateTask { public string useToken { get; set; } public string requestId { get; set; } public string requestTime { get; set; } public partData partData { get; set; } public taskData taskData { get; set; } } public class taskData { /// /// 任务号 /// public string taskNum { get; set; } /// /// 取货点 /// public string pickStation { get; set; } /// /// 卸货点 /// public string dropStation { get; set; } /// /// 任务类型 /// 1取货,2放货,3移库、4原材料库下发,需要电梯参与任务 /// public int taskType { get; set; } /// /// 工装类型 /// public string carrierType { get; set; } /// /// 优先级 /// public int priority { get; set; } /// /// wms任务号 /// public string wmsTaskNo { get; set; } /// /// 物料等级 /// public string level { get; set; } /// /// 轮型/左右旋 /// public string tyreType { get; set; } /// /// 供应商 /// public string supplier { get; set; } /// /// 收获批次 /// public string receiveLot { get; set; } /// /// 子库 /// public string subpool { get; set; } /// /// 任务来源 /// public string source { get; set; } /// /// GTWMS内部批号 /// public string wmsLot { get; set; } /// /// mes任务号 /// public string mesTaskNo { get; set; } } public class partData { /// /// 托盘号 /// public string rfid { get; set; } /// /// 批次号 /// public string lotNumber { get; set; } /// /// 物料编码 /// public string partNumber { get; set; } /// /// 物料描述 /// public string partDesc { get; set; } /// /// 物料类型 /// public string partType { get; set; } /// /// 重量 /// public string weight { get; set; } /// /// 单位 /// public string unit { get; set; } /// /// 到期时间 /// public string maturityTime { get; set; } /// /// 生产时间 /// public string productionTime { get; set; } /// /// 静置时长 /// public DateTime? stewingTime { get; set; } /// /// 超期时长 /// public DateTime? overdueTime { get; set; } } public class MstStateInquire { /// /// 任务号 /// public string taskNum { get; set; } /// /// 任务状态 /// public string taskStatus { get; set; } } /// /// 原材料库通知agv行走 /// public class AllowThrough { /// /// 任务号 /// public string task_no { get; set; } /// /// 货位号 /// public string loc { get; set; } /// /// 请求类型 /// public string type { get; set; } /// /// 唯一码 /// public string req_no { get; set; } } /// /// Request /// public class Request { [JsonProperty("requestId")] public string RequestId { get; set; } [JsonProperty("useToken")] public string UseToken { get; set; } public T data { get; set; } } public class RequestList { [JsonProperty("requestId")] public string RequestId { get; set; } [JsonProperty("useToken")] public string UseToken { get; set; } public List data { get; set; } } public partial class Iteminquire { /// /// 物料编码 /// [JsonProperty("partNumber")] public string PartNumber { get; set; } /// /// 数量 /// [JsonProperty("qty")] public long? Qty { get; set; } } /// /// 产出信息 /// public class TrayItembind { /// /// 批次号 /// [JsonProperty("lotNumber")] public string LotNumber { get; set; } /// /// 到期时间 /// [JsonProperty("maturityTime")] public string MaturityTime { get; set; } /// /// 物料描述 /// [JsonProperty("partDesc")] public string PartDesc { get; set; } /// /// 物料编码 /// [JsonProperty("partNumber")] public string PartNumber { get; set; } /// /// 生产时间 /// [JsonProperty("productionTime")] public string ProductionTime { get; set; } /// /// 工装编号 /// [JsonProperty("rfid")] public string Rfid { get; set; } /// /// 批次重量 /// [JsonProperty("weight")] public string Weight { get; set; } /// /// 批次重量 /// [JsonProperty("qty")] public int Qty { get; set; } } /// /// 入平库 /// public partial class Putin { /// /// 起始库位 /// public string InitialLocation { get; set; } /// /// 物料描述 /// public string PartDesc { get; set; } /// /// 物料编码 /// public string PartNumber { get; set; } /// /// 工装编号 /// public string Rfid { get; set; } /// /// 任务号 /// public string TaskNumber { get; set; } } /// /// 出平库 /// public partial class PutOut { /// /// 物料描述 /// [JsonProperty("partDesc")] public string PartDesc { get; set; } /// /// 物料号 /// [JsonProperty("partNumber")] public string PartNumber { get; set; } /// /// 物料等级 /// [JsonProperty("partLevel")] public string PartLevel { get; set; } /// /// 数量,默认1拖 /// [JsonProperty("qty")] public long Qty { get; set; } /// /// 目标区域,机台料口 /// [JsonProperty("targetLocation")] public string TargetLocation { get; set; } /// /// 任务号 /// [JsonProperty("taskNumber")] public string TaskNumber { get; set; } /// /// 要料类型,1人工要料,2自动要料 /// [JsonProperty("type")] public long Type { get; set; } /// /// 要料机台 /// [JsonProperty("workCenter")] public string WorkCenter { get; set; } } /// /// 空工装返回 /// public partial class Empty { /// /// 起始库位 /// [JsonProperty("initialLocation")] public string InitialLocation { get; set; } /// /// 工装编号 /// [JsonProperty("rfid")] public string Rfid { get; set; } /// /// 任务号 /// [JsonProperty("taskNumber")] public string TaskNumber { get; set; } } /// /// 余料返回 /// public partial class ItemBack { /// /// 起始库位 /// [JsonProperty("initialLocation")] public string InitialLocation { get; set; } [JsonProperty("lotList")] public List LotList { get; set; } /// /// 物料描述 /// [JsonProperty("partDesc")] public string PartDesc { get; set; } /// /// 物料号 /// [JsonProperty("partNumber")] public string PartNumber { get; set; } /// /// 工装编号 /// [JsonProperty("rfid")] public string Rfid { get; set; } /// /// 任务号 /// [JsonProperty("taskNumber")] public string TaskNumber { get; set; } } public partial class LotList { /// /// 批次号 /// [JsonProperty("lotNumber")] public string LotNumber { get; set; } /// /// 到期时间 /// [JsonProperty("maturityTime")] public string MaturityTime { get; set; } /// /// 生产时间 /// [JsonProperty("productionTime")] public string ProductionTime { get; set; } [JsonProperty("qualityStatus")] public string QualityStatus { get; set; } public string qty { get; set; } /// /// 批次重量 /// [JsonProperty("weight")] public double? Weight { get; set; } } /// /// 物料数据同步 /// public partial class add { /// /// 物料类型 /// [JsonProperty("partClass")] public string PartClass { get; set; } /// /// 物料描述 /// [JsonProperty("partDesc")] public string PartDesc { get; set; } /// /// 物料编号 /// [JsonProperty("partNumber")] public string PartNumber { get; set; } /// /// 静置时长 /// [JsonProperty("stewingTime")] public string StewingTime { get; set; } /// /// 超期时长 /// [JsonProperty("overdueTime")] public string OverdueTime { get; set; } /// /// 单位 /// [JsonProperty("unit")] public string Unit { get; set; } } /// /// 库存查询 /// public partial class itemqtyfind { /// /// 物料编码 /// [JsonProperty("partNumber")] public string PartNumber { get; set; } } /// /// 空工装呼叫 /// public partial class callfixture { /// /// 工装类型 /// [JsonProperty("carrierType")] public string CarrierType { get; set; } /// /// 目标位置 /// [JsonProperty("targetLocation")] public string TargetLocation { get; set; } /// /// 任务号 /// [JsonProperty("taskNumber")] public string TaskNumber { get; set; } } /// /// 货位信息同步 /// public partial class UploadLoc { /// /// 库位编码 /// [JsonProperty("locationNum", NullValueHandling = NullValueHandling.Ignore)] public string LocationNum { get; set; } /// /// 库位类型 /// [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] public string Type { get; set; } /// /// 库区 /// [JsonProperty("warehouse", NullValueHandling = NullValueHandling.Ignore)] public string Warehouse { get; set; } /// /// 机台编号 /// [JsonProperty("workCenter", NullValueHandling = NullValueHandling.Ignore)] public string WorkCenter { get; set; } } public partial class CreatTask { /// /// 起始位置 /// [JsonProperty("initialLocation", NullValueHandling = NullValueHandling.Ignore)] public string InitialLocation { get; set; } /// /// 目标位置 /// [JsonProperty("targetLocation", NullValueHandling = NullValueHandling.Ignore)] public string TargetLocation { get; set; } /// /// 任务号 /// [JsonProperty("taskNumber", NullValueHandling = NullValueHandling.Ignore)] public string TaskNumber { get; set; } } /// /// 清除货位状态(删除大屏中间表) /// public partial class ClearTask { /// /// 货位编码 /// [JsonProperty("locationNum", NullValueHandling = NullValueHandling.Ignore)] public string LocationNum { get; set; } /// /// 货位状态,1:清空,2:占用 /// [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] public long? Status { get; set; } /// /// 清空时间 /// [JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)] public string Time { get; set; } } /// /// 库内搬运 /// public partial class ElevatorModel { public string Name { get; set; } public string Source { get; set; } public DataElevatorModel Data { get; set; } } public partial class DataElevatorModel { /// /// 任务号 /// public string task_no { get; set; } /// /// 终点 /// public string end_loc_code { get; set; } /// /// 托盘编码 /// public string cntr_code { get; set; } /// /// 起点 /// public string start_loc_code { get; set; } } /// /// 合肥佳通大屏接口数据类 /// public partial class DeviceInfoModel { /// /// agv数量 /// public int AgvQty { get; set; } /// /// agv报警数量 /// public int AgvErrorQty { get; set; } /// /// agv运行数量 /// public int AgvRunQty { get; set; } /// /// agv充电数量 /// public int AgvChargeQty { get; set; } /// /// 车辆信息 /// //public List AgvInfos { get; set; } /// /// 设备信息 /// public List DeviceInfos { get; set; } } public partial class DeviceInfos { /// /// 车号 /// public string AgvNo { get; set; } /// /// agv状态 /// public string AgvInfo { get; set; } /// /// 设备名称 /// public string Device { get; set; } /// /// 设备信息 /// public string DeviceInfo { get; set; } } public partial class AgvInfos { /// /// 车号 /// public string AgvNo { get; set; } /// /// agv状态 /// public string AgvInfo { get; set; } } #endregion }