using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Bro.M071.Model.Model { /// /// 检测结果 /// public class MeasurementUnitResult : BaseModel { /// /// 产品测量记录Id /// [StringLength(64)] public string ProductionMeasurementRecordsId { get; set; } /// /// 检测名称 /// [StringLength(64)] public string MeasurementName { get; set; } /// /// 检测结果类型 (Slant Alignment... ) /// [StringLength(64)] public string MeasurementType { get; set; } /// /// 检测结果值 /// [StringLength(64)] public string MeasurementValue { get; set; } /// /// 检测结果 ok ng /// [StringLength(64)] public string MeasurementResult { get; set; } /// /// 产品编码 /// [NotMapped] public string ProductionCode { get; set; } [NotMapped] public string ProductionBarcode { get; set; } } public class MeasurementUnitResultRequest : BaseRequest { /// /// 产品编码 /// public string ProductionCode { get; set; } /// /// 产品条码 /// public string ProductionBarcode { get; set; } /// /// 检测名称 /// public string MeasurementName { get; set; } /// /// 检测和标准类型 /// public string MeasurementType { get; set; } /// /// 检测结果 ok ng /// public string MeasurementResult { get; set; } } public class ProductionMeasurementUnitResultAndKeyUnitDataSet { public ProductionMeasurementRecords ProductionMeasurementRecord { get; set; } /// /// 关系数据 /// public List MeasurementAndKeyDataRelationList { get; set; } /// /// 检测结果 /// public List MeasurementUnitResultList { get; set; } /// /// 原始数据 /// public List KeyUnitDataList { get; set; } public ProductionMeasurementUnitResultAndKeyUnitDataSet() { ProductionMeasurementRecord = new ProductionMeasurementRecords(); MeasurementUnitResultList = new List(); KeyUnitDataList = new List(); } } /// /// MeasurementUnitResult_DTO 数据库查询使用 /// public class MeasurementUnitResult_DTO { /// /// 产品测量记录Id /// public string Id { get; set; } /// /// 产品测量记录Id /// public string ProductionMeasurementRecordsId { get; set; } /// /// 检测名称 /// public string MeasurementName { get; set; } /// /// 检测结果类型 (Slant Alignment... ) /// public string MeasurementType { get; set; } /// /// 检测结果值 /// public string MeasurementValue { get; set; } /// /// 检测结果 ok ng /// public string MeasurementResult { get; set; } /// /// 产品编码 /// public string ProductionCode { get; set; } /// /// 产品条码 /// public string ProductionBarcode { get; set; } /// /// 操作开始时间 /// public DateTime OperationStartTime { get; set; } /// /// 操作结束时间 /// public DateTime OperationEndTime { get; set; } } }