copy from WinFrmUI/Yw.WinFrmUI.Division.Core/01-part/Class1.cs
copy to Vmo/Yw.Vmo.Division.Core/BuildingTypeVmo.cs
文件从 WinFrmUI/Yw.WinFrmUI.Division.Core/01-part/Class1.cs 复制 |
| | |
| | | 锘縩amespace Yw.WinFrmUI |
| | | 锘縩amespace Yw.Vmo |
| | | { |
| | | public class PartViewModel |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | public class BuildingTypeVmo |
| | | { |
| | | public PartViewModel() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public BuildingTypeVmo() |
| | | { } |
| | | |
| | | public PartViewModel(Vmo.PartVmo rhs) |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public BuildingTypeVmo(Dto.BuildingTypeDto rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.Paras = rhs.Paras; |
| | | this.Flags = rhs.Flags; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Paras = rhs.Paras == null ? null : new(rhs.Paras); |
| | | this.Flags = rhs.Flags?.ToList(); |
| | | this.TagName = rhs.TagName; |
| | | this.Description = rhs.Description; |
| | | } |
| | | |
| | | public void Reset(Vmo.PartVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.Paras = rhs.Paras; |
| | | this.Flags = rhs.Flags; |
| | | this.SortCode = rhs.SortCode; |
| | | this.TagName = rhs.TagName; |
| | | this.Description = rhs.Description; |
| | | } |
| | | |