领胜LDS 键盘AOI检测项目
xcd
2020-07-11 56d73b9710766e7acab2e084a6af322175c78f1b
src/Bro.M071.Process/M071Models.cs
@@ -178,7 +178,22 @@
        public string GetDisplayText()
        {
            return $"{AliasName}";
            string snapShot = "未指定";
            using (var scope = GlobalVar.Container.BeginLifetimeScope())
            {
                var config = scope.Resolve<IProcessConfig>();
                if (config != null)
                {
                    var snapshotPoint = (config as M071Config).SnapshotPointCollection.FirstOrDefault(u => u.Id == SnapshotPointId);
                    if (snapshotPoint != null)
                    {
                        snapShot = snapshotPoint.Name;
                    }
                }
            }
            return $"{AliasName}-{snapShot}-{ImageSeq}";
        }
        public List<string> GetHalconToolPathList()
@@ -204,6 +219,7 @@
    public class ProductionMeasurement : INotifyPropertyChanged, IDisposable
    {
        public string Barcode;
        public string PResult;
        public List<MeasurementUnit> Measurements = new List<MeasurementUnit>();