using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JinYuan.MES.Models { /// /// 执行结果 /// public class MesResponse { /// /// 错误代码 错误代码,成功不返回 /// public string code { get; set; } /// /// 数据处理消息 成功不返回 /// public string message { get; set; } /// /// 成功标识 false失败 true 成功 /// public bool success { get; set; } } #region 获取箱唛信息 public class MesResponseCarton { /// /// 返回箱唛信息参数 /// public List rows { get; set; } /// /// MES信息返回成功标识 false失败 true 成功,整盘绑定无问题允许放行:true;箱唛还没完全绑定成功:false /// public bool success { get; set; } /// /// 返回错误代码:成功200,错误204 /// public string code { get; set; } /// /// 返回报错消息类型:A:停线、B:排出、C:忽略(需警示) /// public string category { get; set; } /// /// 返回失败原因 /// public string message { get; set; } } public class TagInfo { /// /// 箱唛信息参数代码 /// public string tagCode { get; set; } /// /// 箱唛信息参数值 /// public string tagValue { get; set; } } #endregion #region 获取栈板信息 public class PalletRow { /// /// 栈板编码 /// public string palletCode { get; set; } /// /// 标签信息列表 /// public List tagList { get; set; } } public class MesResponsePallet { /// /// 返回栈板信息参数 /// public List rows { get; set; } /// /// MES信息返回成功标识 false失败 true 成功,整盘绑定无问题允许放行:true;箱唛还没完全绑定成功:false /// public bool success { get; set; } /// /// 返回错误代码:成功200,错误204 /// public string code { get; set; } /// /// 返回报错消息类型:A:停线、B:排出、C:忽略(需警示) /// public string category { get; set; } /// /// 返回失败原因 /// public string message { get; set; } } #endregion #region 员工校验反馈 public class MesResponseLogin { /// /// 返回参数 /// // public List rows { get; set; } public List rows { get; set; } /// /// 错误代码 错误代码,成功不返回 /// public string code { get; set; } /// /// MES信息返回成功标识 false失败 true 成功 /// public bool success { get; set; } /// /// 数据处理消息 成功不返回 /// public string message { get; set; } /// /// 报错消息类型 A=停线,B=排出,C=忽略(需警示) /// public string category { get; set; } /// /// 返回参数条数 /// public int total { get; set; } } public class RowsItemLogin { /// /// 用户名 /// public string username { get; set; } /// /// 用户名权限 /// public string permissionLevel { get; set; } } #endregion #region 自动分档返回接口 public class MesResponseGrad { /// /// 返回参数 /// public List rows { get; set; } /// /// MES信息返回成功标识 false失败 true 成功 /// public bool success { get; set; } /// /// 返回参数条数 /// public int total { get; set; } } public class RowsItemGrad { /// /// 返回成品条码 /// public string identification { get; set; } /// /// 返回等级 /// public string level { get; set; } /// /// /// public string rank { get; set; } /// /// 返回通道 /// public string passage { get; set; } /// /// 返回信息 /// public string message { get; set; } /// /// /// public string ngType { get; set; } /// /// /// //public string passagewayNum { get; set; } } #endregion #region 获取OCV返回接口 public class MESOCVResponse { public bool result { get; set; } public string code { get; set; } public string message { get; set; } public List dataList { get; set; } } public class MesData { public string factoryCode { get; set; } public string factoryDescription { get; set; } public string sku { get; set; } public string cellModel { get; set; } public int warehouseId { get; set; } public int customerId { get; set; } public string TransNo { get; set; } public string Employee { get; set; } public DateTime? Optime { get; set; } public DateTime? TestTime { get; set; } public string CardID { get; set; } public string StdSN { get; set; } public string Thickness1 { get; set; } public string Thickness2 { get; set; } public string Thickness3 { get; set; } public string Thickness4 { get; set; } public string Thickness5 { get; set; } public string Weighing { get; set; } public string Resistance { get; set; } public string CellResistance { get; set; } public string CellVoltage { get; set; } public string CellCapacity { get; set; } public string insulationCurrent { get; set; } public string OVCResistance1 { get; set; } public string OVCResistance2 { get; set; } public string OVCResistance3 { get; set; } public double? OCV1 { get; set; } public double? OCV2 { get; set; } public double? OCV3 { get; set; } public double? OCV4 { get; set; } public double? OCV5 { get; set; } public DateTime? OCVTIME1 { get; set; } public DateTime? OCVTIME2 { get; set; } public DateTime? OCVTIME3 { get; set; } public DateTime? OCVTIME4 { get; set; } public DateTime? OCVTIME5 { get; set; } public string K1 { get; set; } public string K2 { get; set; } public string warehouseCodeRot { get; set; } public string customerCodeRot { get; set; } } #endregion #region 获取VDA信息 public class VDAResponse { public string result { get; set; } public string code { get; set; } public string message { get; set; } public List dataList { get; set; } } public class DataItem { public string trayLabel { get; set; } /// /// 1 /// public string receiver { get; set; } /// /// 2 /// public string unloading { get; set; } /// /// 3暂时不使用 数字+条形码(格式为39码) /// public string adciveNo { get; set; } /// /// 4 /// public string supplier { get; set; } /// /// 5 /// public string netWeight { get; set; } /// /// 6 /// public string groWeight { get; set; } /// /// 7 /// public string noBoxes { get; set; } /// /// 8数字+条形码(格式为39码) /// public string partNo { get; set; } /// /// 8-1 二维码 /// public string bmwDmc { get; set; } /// /// 8-1 二维码(解析后) /// public string bmwDmcJYA { get; set; } /// /// 9数字+条形码(格式为39码) /// public string quantity { get; set; } /// /// 10 /// public string skuDescr { get; set; } /// /// 11.1 /// public string sku { get; set; } /// /// 11.2 /// public string packageNo { get; set; } /// /// 12 数字+条形码(格式为39码) /// public string spid { get; set; } /// /// 13 /// public string date { get; set; } /// /// 14 /// public string drawNo { get; set; } /// /// 15 数字+条形码(格式为39码) /// public string serialNo { get; set; } /// /// 16 数字+条形码(格式为39码) /// public string batchNo { get; set; } } #endregion #region WMS上传反馈 public class WMSResponse { /// /// 结果 /// public bool result { get; set; } /// /// 错误码 /// public string code { get; set; } /// /// 信息 /// public string message { get; set; } } #endregion /// /// 执行结果Entity,带返回值 /// /// public class RequestResult : MesResponse { public T Result { get; set; } } /// /// 执行结果List,带返回值 /// /// public class RequestResultList : MesResponse { public List Result { get; set; } } }