copy from WinFrmUI/Yw.WinFrmUI.Division.Core/01-part/Class1.cs
copy to Dto/Yw.Dto.Division.Core/03-buildingType/BuildingTypeDto.cs
文件从 WinFrmUI/Yw.WinFrmUI.Division.Core/01-part/Class1.cs 复制 |
| | |
| | | 锘縩amespace Yw.WinFrmUI |
| | | 锘縩amespace Yw.Dto |
| | | { |
| | | public class PartViewModel |
| | | /// <summary> |
| | | /// |
| | | ///</summary> |
| | | public class BuildingTypeDto |
| | | { |
| | | public PartViewModel() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public BuildingTypeDto() |
| | | { } |
| | | |
| | | public PartViewModel(Vmo.PartVmo rhs) |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public BuildingTypeDto(Model.BuildingType 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; |
| | | } |
| | | |