using System.Linq; namespace IStation.Model { /// /// /// public class SignalTypeGroupTreeItem { /// /// /// public SignalTypeGroupTreeItem() { } /// /// /// public SignalTypeGroupTreeItem(Model.SignalTypeGroup rhs) { this.ID = rhs.ID; this.ParentID = rhs.ParentIds.LastOrDefault(); this.Name = rhs.Name; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public SignalTypeGroupTreeItem(SignalTypeGroupTreeItem rhs) { this.ID = rhs.ID; this.ParentID = rhs.ParentID; this.Name = rhs.Name; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// id /// public long ID { get; set; } /// /// 父级id /// public long ParentID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } } }