| | |
| | | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | | public class ValveMainViewModel |
| | | public class AssetsValveMainViewModel |
| | | { |
| | | public ValveMainViewModel(Vmo.ValveMainVmo rhs) |
| | | public AssetsValveMainViewModel(Vmo.AssetsValveMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.Description = rhs.Description; |
| | | this.Material = rhs.Material; |
| | | if (rhs.Caliber == null) |
| | | { |
| | | this.Caliber = "默认"; |
| | |
| | | else |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | if (rhs.MaterialName == null) |
| | | { |
| | | this.Material = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.Material = rhs.MaterialName.ToString(); |
| | | } |
| | | this.Coefficient = rhs.Coefficient; |
| | | this.SeriesID = rhs.SeriesID; |
| | |
| | | this.SortCode = rhs.SortCode; |
| | | } |
| | | |
| | | public void Reset(Vmo.ValveMainVmo rhs) |
| | | public void Reset(Vmo.AssetsValveMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.Description = rhs.Description; |
| | | this.Material = rhs.Material; |
| | | this.Material = rhs.MaterialName; |
| | | if (rhs.Caliber == null) |
| | | { |
| | | this.Caliber = "默认"; |
| | |
| | | else |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | if (rhs.MaterialName == null) |
| | | { |
| | | this.Material = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.Material = rhs.MaterialName.ToString(); |
| | | } |
| | | this.Coefficient = rhs.Coefficient; |
| | | this.SeriesID = rhs.SeriesID; |
| | |
| | | /// </summary> |
| | | [DisplayName("类型")] |
| | | [Browsable(true)] |
| | | public HStation.Assets.eValveSeriesType SeriesType { get; set; } |
| | | public HStation.Assets.eAssetsValveSeriesType SeriesType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 说明 |