1234567891011121314151617181920212223242526272829303132 |
- 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();
- }
- }
- }
|