namespace HStation.WinFrmUI.Basic { public class SysModuleViewModel { public SysModuleViewModel(Yw.Vmo.SysModuleVmo 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(Yw.Vmo.SysModuleVmo rhs) { this.ID = rhs.ID; this.Description = rhs.Description; this.Name = rhs.Name; this.Code = rhs.Code; } public long ID { get; set; } public string Name { get; set; } public string Code { get; set; } public int SortCode { get; set; } public string Description { get; set; } } }