| | |
| | | using System.ComponentModel; |
| | | using HStation.Assets; |
| | | using System.ComponentModel; |
| | | |
| | | 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.SortCode = rhs.SortCode; |
| | | } |
| | | |
| | | public void Reset(Vmo.ValveMainVmo rhs) |
| | | public void Reset(Vmo.AssetsValveMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | |
| | | /// </summary> |
| | | [DisplayName("类型")] |
| | | [Browsable(true)] |
| | | public HStation.Assets.eValveSeriesType SeriesType { get; set; } |
| | | public HStation.Assets.eAssetsValveSeriesType SeriesType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 说明 |
| | |
| | | public string? Description { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 阀门状态 |
| | | /// </summary> |
| | | [DisplayName("阀门状态")] |
| | | [Browsable(true)] |
| | | public eValveOpenStatus OpenStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序码 |
| | | /// </summary> |
| | | [DisplayName("排序码")] |