| | |
| | | { |
| | | public class ValveSingleMatchingViewModel |
| | | { |
| | | public ValveSingleMatchingViewModel(Vmo.AssetsPumpSeriesVmo rhs) |
| | | public ValveSingleMatchingViewModel(Vmo.AssetsValveMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.IsPump = false; |
| | | } |
| | | |
| | | public ValveSingleMatchingViewModel(Vmo.AssetsPumpGroupVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.ParentID = rhs.PumpSeriesID; |
| | | this.IsPump = false; |
| | | } |
| | | |
| | | public ValveSingleMatchingViewModel(Vmo.AssetsPumpMainVmo rhs, long GroupID) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.ParentID = GroupID; |
| | | this.IsPump = true; |
| | | } |
| | | |
| | | public ValveSingleMatchingViewModel(Vmo.AssetsPumpMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.ParentID = rhs.PumpSeriesID; |
| | | this.IsPump = true; |
| | | this.Erosion = rhs.Erosion; |
| | | this.RatedPower = rhs.RatedPower; |
| | | this.RatedFlow = rhs.RatedFlow; |
| | | this.RatedSpeed = rhs.RatedSpeed; |
| | | this.RatedEfficiency = rhs.RatedEfficiency; |
| | | this.D2 = rhs.D2; |
| | | this.Description = rhs.Description; |
| | | this.SortCode = rhs.SortCode; |
| | | 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.Material == null) |
| | | { |
| | | this.Material = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.Material = rhs.Material.ToString(); |
| | | } |
| | | this.Coefficient = rhs.MinorLoss; |
| | | this.SeriesID = rhs.SeriesID; |
| | | this.SeriesType = rhs.ValveType; |
| | | this.SortCode = rhs.SortCode; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | this.ValveSetting = rhs.ValveSetting; |
| | | } |
| | | |
| | | [DisplayName("ID")] |
| | | [Browsable(false)] |
| | | public long ID { get; set; } |
| | | public long ParentID { get; set; } |
| | | public string Name { get; set; } |
| | | public bool IsPump { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 泵系列ID |
| | | /// 系列ID |
| | | /// </summary> |
| | | public long PumpSeriesID { get; set; } |
| | | [DisplayName("系列ID")] |
| | | [Browsable(false)] |
| | | public long SeriesID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 参数 |
| | | /// 口径 |
| | | /// </summary> |
| | | public Dictionary<string, string> Paras { get; set; } |
| | | [DisplayName("口径(mm)")] |
| | | [Browsable(true)] |
| | | public string Caliber { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// 材料 |
| | | /// </summary> |
| | | public List<string> Flags { get; set; } |
| | | [DisplayName("材料")] |
| | | [Browsable(true)] |
| | | public string Material { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标志 |
| | | /// 损失系数 |
| | | /// </summary> |
| | | public string TagName { get; set; } |
| | | [DisplayName("损失系数")] |
| | | [Browsable(true)] |
| | | public double Coefficient { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序码 |
| | | /// 类型 |
| | | /// </summary> |
| | | public int SortCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 额定转速 |
| | | /// </summary> |
| | | public double RatedSpeed { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 额定流量 |
| | | /// </summary> |
| | | public double RatedFlow { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 额定扬程 |
| | | /// </summary> |
| | | public double RatedHead { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 额定效率 |
| | | /// </summary> |
| | | public double? RatedEfficiency { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 额定功率 |
| | | /// </summary> |
| | | public double RatedPower { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 气蚀 |
| | | /// </summary> |
| | | public double? Erosion { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 叶轮外径 |
| | | /// </summary> |
| | | public double? D2 { get; set; } |
| | | [DisplayName("类型")] |
| | | [Browsable(true)] |
| | | public HStation.Assets.eValveType SeriesType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 说明 |
| | | /// </summary> |
| | | [DisplayName("说明")] |
| | | [Browsable(true)] |
| | | public string Description { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 阀门开度 |
| | | /// </summary> |
| | | [DisplayName("阀门开度")] |
| | | [Browsable(true)] |
| | | public int? ValveLift { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序码 |
| | | /// </summary> |
| | | [DisplayName("排序码")] |
| | | [Browsable(true)] |
| | | public int SortCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 名称 |
| | | /// </summary> |
| | | [DisplayName("名称")] |
| | | [Browsable(true)] |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 创建人 |
| | | /// </summary> |
| | | [DisplayName("创建人")] |
| | | [Browsable(false)] |
| | | public string CreateName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 创建时间 |
| | | /// </summary> |
| | | [DisplayName("创建时间")] |
| | | [Browsable(false)] |
| | | public string CreateTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 识别关键字 |
| | | /// </summary> |
| | | [DisplayName("关键字")] |
| | | [Browsable(true)] |
| | | public string KeyWord { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 阀门设置 |
| | | /// </summary> |
| | | [DisplayName("阀门设置")] |
| | | [Browsable(true)] |
| | | public string ValveSetting { get; set; } |
| | | } |
| | | } |