namespace HStation.WinFrmUI { /// /// /// public class XhsProjectSimulationValveCalcuPrefixViewModel { /// /// /// public XhsProjectSimulationValveCalcuPrefixViewModel() { } /// /// /// public XhsProjectSimulationValveCalcuPrefixViewModel(Yw.Model.HydroValveInfo rhs) { this.ID = rhs.ID; this.Catalog = Yw.WinFrmUI.HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); this.Code = rhs.Code; this.Name = rhs.Name; this.ModelType = rhs.ModelType; this.HasDb = !string.IsNullOrEmpty(rhs.DbId); this.DbLocked = rhs.DbLocked; this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); this.Description = rhs.Description; this.ValveStatus = Yw.WinFrmUI.HydroLinkStatusHelper.GetStatusName(rhs.LinkStatus); this.Diameter = rhs.Diameter; this.MinorLoss = rhs.MinorLoss; this.ValveType = rhs.ValveType; this.ValveSetting = rhs.ValveSetting; this.Vmo = rhs; } /// /// id /// [DisplayName("ID")] public long ID { get; set; } /// /// 分类 /// [DisplayName("分类")] public string Catalog { get; set; } /// /// 编码 /// [DisplayName("编码")] public string Code { get; set; } /// /// 名称 /// [DisplayName("名称")] public string Name { get; set; } /// /// 型号 /// [DisplayName("型号")] public string ModelType { get; set; } /// /// 匹配 /// [DisplayName("匹配")] public bool HasDb { get; set; } /// /// 锁定 /// [DisplayName("锁定")] public bool DbLocked { get; set; } /// /// 标签 /// [DisplayName("标签")] public string FlagsString { get; set; } /// /// 说明 /// [DisplayName("说明")] public string Description { get; set; } /// /// 阀门状态 /// [DisplayName("阀门状态")] public string ValveStatus { get; set; } /// /// 直径(mm) /// [DisplayName("直径(mm)")] public double Diameter { get; set; } /// /// 局阻系数 /// [DisplayName("局阻系数")] public double MinorLoss { get; set; } /// /// 阀门类型 /// [DisplayName("阀门类型")] public string ValveType { get; set; } /// /// 阀门设置 /// [DisplayName("阀门设置")] public string ValveSetting { get; set; } /// /// /// [Browsable(false)] public Yw.Model.HydroValveInfo Vmo { get; set; } } }