| | |
| | | { |
| | | public class SysTypeViewModel |
| | | { |
| | | public SysTypeViewModel(Yw.Vmo.SysType rhs) |
| | | public SysTypeViewModel(Yw.Vmo.SysTypeVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Description = rhs.Description; |
| | | this.Name = rhs.Name; |
| | | if (rhs.ExtendType == Yw.Vmo.eExtendType.None) |
| | | if (rhs.ExtendType == Yw.Basic.eExtendType.None) |
| | | { |
| | | this.ExtendTypeDisPlayName = "无"; |
| | | } |
| | | else if (rhs.ExtendType == Yw.Vmo.eExtendType.Config) |
| | | else if (rhs.ExtendType == Yw.Basic.eExtendType.Config) |
| | | { |
| | | this.ExtendTypeDisPlayName = "配置"; |
| | | } |
| | |
| | | this.SortCode = rhs.SortCode; |
| | | } |
| | | |
| | | public void Reset(Yw.Vmo.SysType rhs) |
| | | public void Reset(Yw.Vmo.SysTypeVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Description = rhs.Description; |
| | | this.Name = rhs.Name; |
| | | if (rhs.ExtendType == Yw.Vmo.eExtendType.None) |
| | | if (rhs.ExtendType == Yw.Basic.eExtendType.None) |
| | | { |
| | | this.ExtendTypeDisPlayName = "无"; |
| | | } |
| | | else if (rhs.ExtendType == Yw.Vmo.eExtendType.Config) |
| | | else if (rhs.ExtendType == Yw.Basic.eExtendType.Config) |
| | | { |
| | | this.ExtendTypeDisPlayName = "配置"; |
| | | } |