153 lines
3.7 KiB
C#
153 lines
3.7 KiB
C#
using Community;
|
||
using Model;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Model
|
||
{
|
||
/// <summary>
|
||
/// 载具对象
|
||
/// </summary>
|
||
public class VehicleModel : NotificationObject
|
||
{
|
||
public int ID { get; set; }
|
||
/// <summary>
|
||
/// 上级ID(这里指机种ID)
|
||
/// </summary>
|
||
public int HigherID { get; set; }
|
||
|
||
/// <summary>
|
||
/// 流水(PLC)
|
||
/// </summary>
|
||
public int StreamNo { get; set; }
|
||
/// <summary>
|
||
/// 载具编号
|
||
/// </summary>
|
||
public string VehicleNo { get; set; }
|
||
/// <summary>
|
||
/// 使用状态 0闲置 1上线中 2,待上传MES
|
||
/// </summary>
|
||
public int UsageState { get; set; }
|
||
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
public string Notes { get; set; }
|
||
|
||
public DateTime AddTime { get; set; }
|
||
/// <summary>
|
||
/// 产品数据
|
||
/// </summary>
|
||
public ProductValueModel ProductData { get; set; }
|
||
|
||
/// <summary>
|
||
/// 厚度测试数据集合
|
||
/// </summary>
|
||
public RangeValueModel HouDuValue { get; set; }
|
||
/// <summary>
|
||
/// 电感测试数据集合
|
||
/// </summary>
|
||
public RangeValueModel DianGnaTestValue { get; set; }
|
||
/// <summary>
|
||
/// 点胶检查数据集合
|
||
/// </summary>
|
||
public RangeValueModel DianjiaoJianChaValue { get; set; }
|
||
|
||
public VehicleModel()
|
||
{
|
||
Notes = "";
|
||
VehicleNo = "";
|
||
HouDuValue = new RangeValueModel();
|
||
DianGnaTestValue = new RangeValueModel();
|
||
DianjiaoJianChaValue = new RangeValueModel();
|
||
ProductData = new ProductValueModel();
|
||
}
|
||
}
|
||
}
|
||
/// <summary>
|
||
/// 产品数据上传模型
|
||
/// </summary>
|
||
public class ProductValueModel
|
||
{
|
||
//lineno string 是 线体 V28
|
||
//procno string 是 工序号 10940
|
||
//thickness string 是 厚度
|
||
//inductor string 是 电感值
|
||
//speed string 是 点胶速度
|
||
//pressure string 是 点胶气压
|
||
//path string 是 CDC 检测图片路径
|
||
//result string 是 判定结果 OK/NG
|
||
//ngreason string 否 不良原因
|
||
//ngcode string 否 不良代码
|
||
|
||
//电感值不良:WK2801
|
||
//厚度不良:WK2802
|
||
//点胶不良:WK2803
|
||
|
||
/// <summary>
|
||
/// 线体 V28
|
||
/// </summary>
|
||
public string lineno { get; set; }
|
||
/// <summary>
|
||
/// 工序号
|
||
/// </summary>
|
||
public string procno { get; set; }
|
||
/// <summary>
|
||
/// 厚度
|
||
/// </summary>
|
||
public string thickness { get; set; }
|
||
/// <summary>
|
||
/// 电感值
|
||
/// </summary>
|
||
public string inductor { get; set; }
|
||
/// <summary>
|
||
/// 点胶速度
|
||
/// </summary>
|
||
public string speed { get; set; }
|
||
/// <summary>
|
||
/// 点胶气压
|
||
/// </summary>
|
||
public string pressure { get; set; }
|
||
/// <summary>
|
||
/// 检测图片路径
|
||
/// </summary>
|
||
public string path { get; set; }
|
||
/// <summary>
|
||
/// 判定结果 OK/NG
|
||
/// </summary>
|
||
public string result { get; set; }
|
||
/// <summary>
|
||
/// 不良原因
|
||
/// </summary>
|
||
public string ngreason { get; set; }
|
||
/// <summary>
|
||
/// 不良代码 电感值不良:WK2801 厚度不良:WK2802 点胶不良:WK2803
|
||
/// </summary>
|
||
public string ngcode { get; set; }
|
||
|
||
|
||
|
||
public ProductValueModel()
|
||
{
|
||
lineno = "V27";
|
||
procno = "10940";
|
||
|
||
thickness = "";
|
||
inductor = "";
|
||
speed = "";
|
||
pressure = "";
|
||
path = "";
|
||
result = "OK";
|
||
ngreason = "";
|
||
ngcode = "";
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
}
|