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