using DevExpress.XtraCharts.Native; using Yw; using Yw.Dto; namespace HStation.WinFrmUI.Xhs { public class TypeTreeListViewModel { public TypeTreeListViewModel(SysTypeLogicalTreeDto rhs) { var Module = rhs.LogicalModel as SysModuleStdDto; this.ID = Module.ID; this.Name = Module.Name; this.SortCode = Module.SortCode; this.Description = Module.Description; } public TypeTreeListViewModel(LogicalTreeExDto rhs) { var systype = rhs.LogicalModel as SysTypeStdDto; this.ParentID = systype.ModuleID; this.ID = systype.ID; this.Name = systype.Name; this.SortCode = systype.SortCode; this.Description = systype.Description; } public void Reset(SysTypeLogicalTreeDto rhs) { } /// /// 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; } } }