using Yw.Dto; namespace HStation.WinFrmUI.Xhs { public class TypeViewModel : Yw.Dto.SysTypeDto { public TypeViewModel(SysTypeDto rhs) { this.ID = rhs.ID; this.Description = rhs.Description; this.Name = rhs.Name; if (ExtendType == Yw.Basic.eExtendType.None) { this.ExtendTypeDisPlayName = "无"; } else if (ExtendType == Yw.Basic.eExtendType.Config) { this.ExtendTypeDisPlayName = "配置"; } else { this.ExtendTypeDisPlayName = "分类"; } this.ModuleID = rhs.ModuleID; this.Code = rhs.Code; this.SortCode = rhs.SortCode; } public void Reset(UpdateSysTypeInput rhs) { this.ID = rhs.ID; this.Description = rhs.Description; this.Name = rhs.Name; if (ExtendType == Yw.Basic.eExtendType.None) { this.ExtendTypeDisPlayName = "无"; } else if (ExtendType == Yw.Basic.eExtendType.Config) { this.ExtendTypeDisPlayName = "配置"; } else { this.ExtendTypeDisPlayName = "分类"; } this.Code = rhs.Code; } public string ExtendTypeDisPlayName { get; set; } } }