From 8bd46da0c9fbfe39a65d75b1d85692d8783f5905 Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期三, 15 九月 2021 10:50:54 +0800 Subject: [PATCH] 现场修改 --- src/Bro.M071.Process/M071Models.cs | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/Bro.M071.Process/M071Models.cs b/src/Bro.M071.Process/M071Models.cs index 790745a..6459031 100644 --- a/src/Bro.M071.Process/M071Models.cs +++ b/src/Bro.M071.Process/M071Models.cs @@ -213,6 +213,13 @@ 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; @@ -260,6 +267,24 @@ } } + 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; -- Gitblit v1.8.0