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