| | |
| | | public string KeyResultId { get; set; } |
| | | #endregion |
| | | |
| | | [Category("补偿配置")] |
| | | [DisplayName("单键补偿")] |
| | | [Description("单键补偿")] |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [Editor(typeof(ComplexCollectionEditor<KeyCompensation>), typeof(UITypeEditor))] |
| | | public List<KeyCompensation> KeyCompensationCollection { get; set; } = new List<KeyCompensation>(); |
| | | |
| | | #region 检测相关字段 |
| | | public Dictionary<string, double> KeyValues = null; |
| | | //public SnapshotPoint SnapshotPoint = null; |
| | |
| | | } |
| | | } |
| | | |
| | | public class KeyCompensation : IComplexDisplay |
| | | { |
| | | [Category("单键补偿")] |
| | | [DisplayName("单键结果")] |
| | | [Description("针对单键的某一项结果做补偿,一般为Z1,Z2,Z3,Z4,B1,B2")] |
| | | public string KeyResult { get; set; } |
| | | |
| | | [Category("单键补偿")] |
| | | [DisplayName("补偿值")] |
| | | [Description("单键结果补偿值")] |
| | | public float Compensation { get; set; } |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return $"{KeyResult} {Compensation}"; |
| | | } |
| | | } |
| | | |
| | | public class ProductionMeasurement : INotifyPropertyChanged, IDisposable |
| | | { |
| | | public string Barcode; |