using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WCS.NongFuChaYuan.ApiService { /// /// 通用model /// public class ApiModel { #region 标准模型 /// /// 标准状态返回接口 /// public class SimpleResultModel { public bool success { get; set; } public int errCode { get; set; } public string errMsg { get; set; } = ""; } #endregion #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; } = ""; public string agvCurrTaskInfo { get; set; } = ""; /// /// 1----手动 ,2----半自动 , 3----自动 /// public string AutoMode { get; set; } = ""; /// /// 0----未充电 ,1----充电状态 /// public string chargedstate { get; set; } = ""; } /// /// hosttoagv上报其它事件信息 /// 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-实体模型 public class AddTaskModel { public string StartBit { get; set; } public string EndBit { get; set; } public string ItemCode { get; set; } public string TrayCode { get; set; } } /// /// 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(); } #endregion } /// /// 项目订制model /// public class OtherModel { #region 苏州西门子 public class AddTaskModel { public string taskNo { get; set; } public string startBit { get; set; } public string endBit { get; set; } public int priority { get; set; } public string taskType { get; set; } public string trayCode { get; set; } } public class SetPriorityModel { public string taskNo { get; set; } public string priority { get; set; } } public class CancelTaskModel { public string taskNo { get; set; } } public class ForcedChargingModel { public string agvNo { get; set; } } #endregion #region 农夫淳安--富勒WMS /// /// 工单信息接口 /// public class TASK_WorkInfoModel { public string WorkNo { get; set; } public string DeviceName { get; set; } public string ItemCode { get; set; } /// /// 工单开始时间 /// public string WorkTime { get; set; } /// /// 工单状态--1-新建 2-完成 /// public string WorkState { get; set; } } /// /// 托盘信息下发接口 /// public class SendTrayCodeModel { public List TrayInfo { get; set; } } public class TrayInfo { /// /// 产线号 /// public string deviceName { get; set; } /// /// 工单号 /// public string workNo { get; set; } /// /// 托盘码 /// public string trayCode { get; set; } /// /// 托盘数量 /// public string trayNum { get; set; } /// /// 富勒接收到托盘码的时间 /// public string dateTime { get; set; } /// /// 批次号--同标准托规 /// public string batchNo { get; set; } = ""; /// /// 标准托规 /// --成品下线:因存在中途切换 生产物料 动作;因此将 批次号、物料层高以及托规 存在于物料信息接口 /// --不一定每次都有值,当首次托规与 trayNum 相同时,需更新至 Mobox 工单对应字段 /// --后续收到托规时,先判断当前物料托规 与 工单托规是否相同,不同即代表换物料了 /// public string trayRule { get; set; } = ""; /// /// 物料层高-6、7、8--同标准托规 /// public string itemLayer { get; set; } = ""; } /// /// 人工分拣解绑托盘接口 /// public class UnbindingTrayCodeModel { public string[] TrayInfo { get; set; } } public class BindingTrayCodeModel { public string location { get; set; } public string TrayInfo { get; set; } } public class BindingItemCodeModel { /// /// 站点编码 /// public string Location { get; set; } /// /// 托盘号 /// public string TrayInfo { get; set; } /// /// 物料编码 /// public string ItemCode { get; set; } /// /// 批次号 /// public string BatchNo { get; set; } } /// /// 无码入库-人工分拣解绑托盘接口 /// public class NoCodeUnbindingTrayCodeModel { /// /// 托盘号 /// public string TrayNo { get; set; } = ""; /// /// 托盘类型 /// public string Type { get; set; } = ""; public string Location { get; set; } = ""; /// /// 库位号-排号 /// public string RowNo { get; set; } = ""; /// /// 锁定状态 1-锁定 2-解锁 3-绑定 4-解绑 5-单点绑定 6-单点解绑 /// public string LockState { get; set; } /// /// 删除绑定数据 1-删除 2-不删除 3-绑定 /// //public string IsDelete { get; set; } = "2"; } /// /// 空托绑定解绑托盘接口 /// public class EmptyLocaBindAUnBindModel { /// /// 货位编码 /// public string Location { get; set; } /// /// 绑定状态--1:绑定 2:解绑 /// public string BindState { get; set; } } /// /// 接口状态回报处理 /// public class ReturnMsgModel { public ResponseModel Response { get; set; } } public class ResponseModel { public ReturnModel @return { get; set; } } public class ReturnModel { public string returnCode { get; set; } public string returnDesc { get; set; } public string returnFlag { get; set; } } /// /// 任务下发实体模型 /// public class TASK_PUTModel { /// /// 仓库编码 /// public string warehouseld { get; set; } = "CA02"; /// /// 起点 /// public string fmPosition { get; set; } /// /// 终点 /// public string toPosition { get; set; } /// /// 任务类型 下线(入库)-IN 缠膜(移库)-MV /// public string taskType { get; set; } /// /// 任务号 /// public string taskId { get; set; } /// /// 托盘号 /// public string traceId { get; set; } /// /// 单/双托 /// public int qty { get; set; } /// /// 层数 /// public int layers { get; set; } /// /// 优先级 1--成品下线 2-缠绕膜移库 3--理货 /// public string priority { get; set; } } public class TASK_CANCELModel { /// /// 仓库编码 /// public string warehouseld { get; set; } = "CA02"; /// /// 任务编码 /// public string taskId { get; set; } public string udf01 { get; set; } public string udf02 { get; set; } public string udf03 { get; set; } } public class TrayCodeUpdateModel { public string WorkNo { get; set; } public string DeviceName { get; set; } public string ItemCode { get; set; } /// /// 长宽高-用于区分大小板 /// public string ItemRule { get; set; } public string BatchNo { get; set; } //public string TrayCode { get; set; } //public string TrayCodeNum { get; set; } public string TrayRule { get; set; } public string ItemLayer { get; set; } } #endregion #region 农夫大明山 public class YiKuworkinfomodel { /// /// 工单号 /// public string S_WorkNo { get; set; }//S_WorkNo /// /// 批次号 /// public string S_BatchNo { get; set; } //public string S_ORDER_TYPE { get; set; }//工单类型 /// /// 工单状态 /// public string S_WorkState { get; set; }//S_WorkState /// /// 物料编码 /// public string S_ItemCode { get; set; } = ""; /// /// 起点排 多个排用逗号隔开 /// public string S_StartLoca { get; set; } /// /// 终点排 多个排用逗号隔开 /// public string S_EndLoca { get; set; } /// /// 移库数量 /// public int S_YiKuNum { get; set; } } public class FuWeiInfomodel { public string deviceName { get; set; } public string location { get; set; } } #endregion } }