using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using XdCxRhDW.Dto; using XdCxRhDW.Entity; namespace XdCxRhDW.App.Model { public class ModelPosRes : PosRes { public ModelPosRes() { if (TargetInfo != null && !string.IsNullOrWhiteSpace(TargetInfo.TargeColor)) ColorKey = this.TargetInfo?.TargeColor; } [Display(Name = "目标名称")] [ToolTip] public string TargetName => TargetInfo?.TargetName; [Display(Name = "检测方式")] [ToolTip] public string CheckType => CheckRes?.PosCheckType?.GetEnumDisplayName(); public override int GetHashCode() { return $"ModelPosRes_{TaskInfoID}_{ID}".GetHashCode(); } } }