using HStation.Vmo; using System.ComponentModel.DataAnnotations; namespace HStation.WinFrmUI { /// /// /// public class PhartDiagramRelationGridItemViewModel { /// /// /// public PhartDiagramRelationGridItemViewModel() { } /// /// /// public PhartDiagramRelationGridItemViewModel(PhartDiagramRelationVmo rhs) { this.ID = rhs.ID; this.Name = rhs.OtherName; this.Importance = rhs.Importance; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.Vmo = rhs; } /// /// ID /// [Display(Name = "ID")] public long ID { get; set; } /// /// 名称 /// [Display(Name = "名称")] public string Name { get; set; } /// /// 重要度 /// [Display(Name = "重要度")] public int Importance { get; set; } /// /// 排序码 /// [Display(Name = "排序码")] public int SortCode { get; set; } /// /// 说明 /// [Display(Name = "说明")] public string Description { get; set; } /// /// /// public PhartDiagramRelationVmo Vmo { get; set; } } }