using Yw.Dto; namespace HStation.WinFrmUI.Basic { public class SysModuleViewModel : Yw.Dto.SysModuleDto { public SysModuleViewModel(SysModuleDto rhs) { this.ID = rhs.ID; this.Description = rhs.Description; this.Name = rhs.Name; this.Code = rhs.Code; this.SortCode = rhs.SortCode; } public SysModuleViewModel(Yw.Dto.AddSysModuleInput rhs) { this.Description = rhs.Description; this.Name = rhs.Name; this.Code = rhs.Code; } public void Reset(UpdateSysModuleInput rhs) { this.ID = rhs.ID; this.Description = rhs.Description; this.Name = rhs.Name; this.Code = rhs.Code; } } }