using System;
using System.Collections.Generic;
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; }
}
///
/// 单个上传(只上传条码,不上传卷芯码)
///
public class MesResponseSingle
{
///
///
///
public string code { get; set; }
///
///
///
public string message { get; set; }
///
///
///
public bool success { get; set; }
///
///
///
public string category { get; set; }
}
#region 进站反馈
public class MesResponseIn
{
///
/// 返回参数
///
public List rows { get; set; }
///
/// MES信息返回成功标识 false失败 true 成功
///
public bool success { get; set; }
///
/// 返回参数条数
///
public int total { get; set; }
}
public class RowsItemIn
{
///
/// 错误代码 错误代码,成功不返回
///
public string code { get; set; }
///
/// 返回条码成功标识 false失败 true 成功
///
public bool success { get; set; }
///
/// 数据处理消息 成功不返回
///
public string message { get; set; }
///
/// 返回成品条码
///
public string identification { get; set; }
///
/// 返回的容器码
///
public string containerCode { get; set; }
///
/// 返回产品状态
///
public string qualityStatus { get; set; }
///
/// 报错消息类型 A=停线,B=排出,C=忽略(需警示)
///
public string category { get; set; }
public string moveInErrorInfo { get; set; }
}
#endregion
#region 出站反馈
//{"rows":[{"code":null,"success":true,"message":null,"identification":"InsertAt20231218095755934","containerCode":null,"category":null}],"success":true,"total":1}
public class MesResponseOut
{
///
/// 返回参数
///
public List rows { get; set; }
///
/// MES信息返回成功标识 false失败 true 成功
///
public bool success { get; set; }
///
/// 返回参数条数
///
public int total { get; set; }
}
public class RowsItemOut
{
///
/// 错误代码 错误代码,成功不返回
///
public string code { get; set; }
///
/// 返回条码成功标识 false失败 true 成功
///
public bool success { get; set; }
///
/// 数据处理消息 成功不返回
///
public string message { get; set; }
///
/// 返回成品条码
///
public string identification { get; set; }
///
/// 返回的容器码
///
public string containerCode { get; set; }
///
/// 返回产品状态
///
public string qualityStatus { get; set; }
///
/// 报错消息类型 A=停线,B=排出,C=忽略(需警示)
///
public string category { get; set; }
}
#endregion
#region 原材料
///
/// 原材料
///
public class MaterialMesRespons
{
public List rows { get; set; }
public bool success { get; set; }
public string message { get; set; }
public int total { get; set; }
}
public class Row
{
public string materialLotCode { get; set; }
public string materialCode { get; set; }
public string materialName { get; set; }
public string qty { get; set; }
public double primaryUomQty { get; set; }
public string lot { get; set; }
public object shelfLifeToDate { get; set; }
public string materialId { get; set; }
public int sequence { get; set; }
public string materialLotId { get; set; }
public string workCellId { get; set; }
public string unbindingJudgment { get; set; }
public object lineNum { get; set; }
public object primaryUomQty1 { get; set; }
}
#endregion
#region 员工校验反馈
public class MesResponseLogin
{
///
/// 返回参数
///
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
///
/// 执行结果Entity,带返回值
///
///
public class RequestResult : MesResponse
{
public T Result { get; set; }
}
///
/// 执行结果List,带返回值
///
///
public class RequestResultList : MesResponse
{
public List Result { get; set; }
}
// 添加的电池结果类
public class BatteryResult
{
public string Identification { get; set; }
public bool Success { get; set; }
public string Message { get; set; }
}
}