using HH.WCS.ZhongCeJinTan.wms; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WCS.ZhongCeJinTan.api { /// /// 通用model /// public class ApiModel { #region hosttoagv 相关 /// /// 返回给hosttoagv /// public class ReturnResult { public int ResultCode { get; set; } public string ResultMsg { get; set; } } public class ReturnResult1 { public int code { get; set; } public string msg { get; set; } } /// /// 按钮盒接口参数 /// public class boxParme { public string location { get; set; } public string taskNo { get; set; } /// /// 1-满托盘位请求入库2-空托盘位请求补货 /// public string state { get; set; } } /// /// 返回给GZ /// public class GzResult { public int resultCode { get; set; } public string msg { get; set; } public int orderID { get; set; } } /// /// 安全交互 /// public class Interaction { public string station_name { get; set; } public string apply_code { get; set; } public int orderid { get; set; } } /// /// 门安全交互 /// public class doorInteraction { public string doorname { get; set; } public int apply_code { 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; } } /// /// 接驳位均衡记录 /// public class connectionBalance { public int taskCount { get; set; } public Location loc { 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; } } public class ResetBase { public string S_PLineNo { 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(); } #endregion /// /// 接口返回 /// public class Result { /// /// 错误说明,当success为False时,errCode有值 /// public string errMsg { get; set; } /// /// 接口调用结果 true成功 false失败 /// public bool success { get; set; } /// /// 接口反馈码 无错误为0 /// public int errCode { get; set; } } public class zcResult { /// /// 错误说明,当success为False时,errCode有值 /// public object errMsg { get; set; } /// /// 接口反馈码 无错误为0 /// public int errCode { get; set; } } public class data { /// /// 订单ID /// public string orderID { get; set; } /// /// 订单名 /// public string orderName { get; set; } /// /// 订单状态 /// public string orderStatus { get; set; } /// /// agv车号列表 /// public int[] agvIDList { get; set; } /// /// 优先级 /// public string 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; } /// /// 额外信息1 /// public string extraInfo1 { get; set; } /// /// 额外信息2 /// public string extraInfo2 { get; set; } } public class replenishmentParme { /// /// Y开始人工补货进入交通管制,N表示人工补货完成可以开启自动转运 /// public string stauts { get; set; } } public class orderStatusReportParme { /// /// 订单ID /// public int orderID { get; set; } /// /// 订单名 /// public string orderName { get; set; } /// /// 订单状态 /// public string orderStatus { get; set; } /// /// agv车号列表 /// public string agvIDList { get; set; } /// /// 优先级 /// public string 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; } /// /// 额外信息1 /// public string extraInfo1 { get; set; } /// /// 额外信息2 /// public string extraInfo2 { get; set; } } /// /// 安全交互参数 /// public class AskSecurityParame { /// /// 货位编码 /// public string stnNo { get; set; } /// /// 任务号唯一标识 /// public string taskNo { get; set; } } /// /// 任务状态回报上游 /// public class taskreportParme { public string taskNo { get; set; } public int state { get; set; } public string agvNo { get; set; } public string cancelMsg { get; set; } public string stnNo { get; set; } public DateTime startTime { get; set; } } public class finish { public string taskNo { get; set; } } public class taskreportReturn { public int errCode { get; set; } public string errMsg { get; set; } } /// /// 通知设备取货完成 /// public class loadCompleteParme { public string taskNo { get; set; } public string stnNo { get; set; } } /// /// 上报任务参数 /// public class taskReportParame { /// /// 任务号唯一标识 /// public string taskNo { get; set; } /// /// 任务状态 /// public string state { get; set; } /// /// 任务车号 /// public string agvNo { get; set; } } /// /// 取消任务参数 /// public class cancleTaskParme { /// /// 任务号唯一标识 /// public string task_no { get; set; } } /// /// 修改物料参数 /// public class MesUdeItemParme { /// /// 周转卡号 /// public string TurnCardNum { get; set; } /// /// 胶料质量状态 /// public string CHECK_INFO { get; set; } /// /// 胶料编码 /// public string PROD_NO { get; set; } /// /// 延长报告时间(单位为:H) /// public float EXPIRED_REP { get; set; } /// /// 数量 /// public float CURRENT_AMOUNT { get; set; } /// /// operator /// public string Operator { get; set; } /// /// operattime /// public DateTime Operattime { get; set; } } /// /// 查询物料参数 /// public class MesAreaSecItemParme { /// /// 周转卡号 /// public string TurnCardNum { get; set; } /// /// 库区 /// public string Location_From { get; set; } } /// /// 查询物料返回参数 /// public class MesAreaSecItemReturn { /// /// 错误说明,当success为False时,errCode有值 /// public string Msg { get; set; } /// /// 接口调用结果 true成功 false失败 /// public bool Success { get; set; } /// /// 接口反馈码 无错误为0 /// public int Code { get; set; } public int AffectedRows { get; set; } public object Data { get; set; } public int Status { get; set; } } /// /// 绑定或解绑参数 /// public class BindUnbindParme { /// /// 周转卡号 /// public string TurnCardNum { get; set; } /// /// 标准重量 /// public float standardWeight { get; set; } /// /// 制品编号 /// public string PROD_NO { get; set; } /// /// 工艺编号 /// public string PROD_TECH { get; set; } /// /// 状态有2种【合格】【封存】 /// public string CHECK_INFO { get; set; } /// /// 制品规格 /// public string PROD_SPEC { get; set; } /// /// 制品类型 /// public string PROD_BOM { get; set; } /// /// 工装编号 /// public string TOOLS_NO { get; set; } /// /// 载料数量 /// public float ST_AMOUNT { get; set; } /// /// 当前数量 /// public float CURRENT_AMOUNT { get; set; } /// /// 生产时间 /// public DateTime PRODUCE_TIME { get; set; } /// /// 生效时间 /// public DateTime SHELF_LIFE_TIME { get; set; } /// /// 失效时间 /// public DateTime EXPIRED_TIME { get; set; } /// /// 缩短报告时间 /// public float SHELF_REP { get; set; } /// /// 延长报告时间 /// public float EXPIRED_REP { get; set; } /// /// 业务类型 /// 100 绑定 /// 200 解绑 /// public string BUSI_TYPE { get; set; } /// /// 绑定的货位 /// public string LOCATION_CODE { get; set; } } public class taskParme { /// /// 任务优先级 /// public int priority { get; set; } /// /// 任务号唯一标识 /// public string taskNo { get; set; } } /// /// 添加任务参数 /// public class addTaskParme { /// /// 托盘码 /// public string cntrCode { get; set; } /// /// 任务类型 /// public string taskType { get; set; } /// /// 来源系统名称 /// public string creator { get; set; } /// /// 任务号唯一标识 /// public string taskNo { get; set; } /// /// 任务起点 /// public string start { get; set; } /// /// 任务终点 /// public string end { get; set; } /// /// 任务优先级 /// public int priority { get; set; } } /// /// 点到点参数 /// public class PtpTaskParme { /// /// 托盘码 /// public string TOOLS_NO { get; set; } /// /// 任务号唯一标识 /// public string task_no { get; set; } /// /// 任务起点 /// public string Location_From { get; set; } /// /// 任务终点 /// public string Location_To { get; set; } /// /// 任务优先级 /// public int priority { get; set; } } /// /// 出入库任务下发接口参数 /// public class ZcInWorkAreaParme { /// /// 任务号 /// public string task_no { get; set; } /// /// 任务类型1:入库;2:出库 /// public int Task_type { get; set; } /// /// 周转卡号 /// public string TurnCardNum { get; set; } /// /// 标准重量 /// public float standardWeight { get; set; } /// /// 工装类型 胎侧25,内衬35,胎体/帘布45,带束55,胎圈65,胎面15,纤维85,钢丝95 /// public string TOOLS_TPYE { get; set; } /// /// 制品编号 /// public string PROD_NO { get; set; } /// /// 工艺编号 /// public string PROD_TECH { get; set; } /// /// 制品规格 /// public string PROD_SPEC { get; set; } /// /// 制品类型 /// public string PROD_BOM { get; set; } /// /// 制品特征值 /// public string PROD_Feature { get; set; } /// /// 工装编号 /// public string TOOLS_NO { get; set; } /// /// 载料数量 /// public float ST_AMOUNT { get; set; } /// /// 当前数量 /// public float CURRENT_AMOUNT { get; set; } /// /// 起始库位编号 /// public string Location_From { get; set; } /// /// 目的库位编号 /// public string Location_To { get; set; } /// /// 生产时间 /// public DateTime PRODUCE_TIME { get; set; } /// /// 生效时间 /// public DateTime SHELF_LIFE_TIME { get; set; } /// /// 失效时间 /// public DateTime EXPIRED_TIME { get; set; } /// /// 缩短报告时间 /// public float SHELF_REP { get; set; } /// /// 延长报告时间 /// public float EXPIRED_REP { get; set; } /// /// 质检状态代码 /// public string CHECK_CODE { get; set; } /// /// 质检状态 /// public string CHECK_INFO { get; set; } /// /// 优先级0-普通:任务生成时,均为此级别;1-加急;2-紧急 /// public int Priority { get; set; } /// /// 任务状态0-初始状态;1-进行中;2-完成;3-任务取消 /// public int Data_status { get; set; } /// /// 业务类型 /// 1 半成品满托入库 /// 2 成型机半桶回库 /// 3 成型机空桶回库 /// 4 成型机满托出库 /// 5 成型机带束回库 /// 6 成型机带束满托出库 /// 7 半成品空托出库 /// 8 胶料入库 /// 9 呼叫胶料 /// 10 叠盘机空托入库 /// 11 胶料半桶回库 /// 12 空架子入库 /// 13 胎圈空托入不带垫片 /// 14 胎圈空托出不带垫片 /// 100 绑定 /// 200 解绑 /// public string BUSI_TYPE { get; set; } } /// /// 立库报警上报参数 /// public class WcsWarningParme : BaseModel { public string requestPk { get; set; } public string taskNo { get; set; } public string reqTime { get; set; } public string errorNo { get; set; } public string errorDes { get; set; } public string remarks { get; set; } public string roadway { get; set; } public string areaCode { get; set; } } /// /// 巷道可用上报 /// public class WcsRoadwaystateParme : BaseModel { /// /// 请求编号 /// public string requestPk { get; set; } /// /// 库区 /// public string areaCode { get; set; } /// /// 巷道 /// public string roadWay { get; set; } /// /// 可用: 0可用 1不可用 /// public string status { get; set; } /// /// 操作时间 /// public string reqTime { get; set; } } /// /// 改道参数 /// public class changeBitParme : BaseModel { /// /// 请求编号 /// public string requestPk { get; set; } /// /// 任务号 /// public string taskNo { get; set; } } /// /// 通知确认 /// public class agvResponseParme : BaseModel { /// /// 请求编号 /// public string requestPk { get; set; } /// /// 任务类型 1取货 2放货 /// public string trkType { get; set; } /// /// allow允许 /// public string isAllow { get; set; } /// /// 目的地站台号 /// public string stnNo { get; set; } /// /// 操作人 /// public string clientCode { get; set; } /// /// 车号 /// public string carNo { get; set; } /// /// 操作时间 /// public string reqTime { get; set; } } public class WcsCVParme : BaseModel { /// /// 任务号 /// public string S_TASK_NO { get; set; } /// /// 接驳位 /// public string JbLocation { get; set; } } /// /// 立库任务执行通知参数 /// public class WcsOperateTaskParme : BaseModel { /// /// 任务号 /// public string requestPk { get; set; } /// /// 托盘码 /// public string contNo { get; set; } /// /// 通知类型 1:任务开始;2:完成3:执行中;4 : rfid检验上报 8:放货有货 9: 取货无货 /// public string noticeType { get; set; } /// /// 当前位置 /// public string curPos { get; set; } /// /// RFID结果码 /// public string code { get; set; } /// /// 到达结果 /// public string result { get; set; } /// /// 操作人 /// public string clientCode { get; set; } /// /// 操作时间 /// public string reqTime { get; set; } } /// /// 立库呼叫空托、满托 /// public class WcsOperateTaskParme1 : BaseModel { /// /// 任务号 /// public string requestPk { get; set; } /// /// 托盘码 /// public string contNo { get; set; } /// /// 通知类型 0:托盘检测合格,(满拖入)(contNo+curPos必须有值);5:空托出(curPos必须有值)6:空托入(contNo+curPos必须有值)7:空架子入(curPos必须有值) /// public string noticeType { get; set; } /// /// 当前位置 /// public string curPos { get; set; } /// /// RFID结果码 0成功 1失败 /// public string code { get; set; } /// /// 到达结果 /// public string result { get; set; } /// /// 操作人 /// public string clientCode { get; set; } /// /// 操作时间 /// public string reqTime { get; set; } } public class WcsWarningReurn { /// /// 返回码(0-成功 其他-异常码) /// public string code { get; set; } /// /// "成功"或“失败原因” /// public string msg { get; set; } /// /// 任务号 /// public string requestPk { get; set; } } /// /// hosttoagv上报车辆状态(参数在hosttoagv服务配置,可修改) /// public class AgvDeviceStatus { public string infoType { get; set; } public string forkliftNo { get; set; } public string battery { get; set; } public string errCode { get; set; } public string errCode2 { get; set; } public string faildCode { get; set; } public string mileage { get; set; } public string motor { get; set; } public string traffic { get; set; } public string time { get; set; } public string lifts { get; set; } public string pos { get; set; } public string angle { get; set; } public string agvstate { get; set; } public DateTime Operattime { get; set; } = DateTime.Now; } } /// /// 项目订制model /// public class OtherModel { } }