namespace HStation.WinFrmUI.Xhs
{
///
///
///
public class HydroPumpViewModel
{
///
///
///
public HydroPumpViewModel()
{ }
///
///
///
public HydroPumpViewModel(HydroPumpViewModel rhs, bool IsMatching)
{
this.ID = rhs.ID;
this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog);
this.Code = rhs.Code;
this.Name = rhs.Name;
// this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
this.Description = rhs.Description;
this.StartCode = rhs.StartCode;
this.EndCode = rhs.EndCode;
this.LinkStatus = rhs.LinkStatus;
this.CurveQH = rhs.CurveQH;
this.SpeedRatio = rhs.SpeedRatio;
this.SpeedRatioPattern = rhs.SpeedRatioPattern;
this.Price = rhs.Price;
this.PricePattern = rhs.PricePattern;
this.CurveQE = rhs.CurveQE;
this.IsMatching = IsMatching;
this.testChildrens = rhs.testChildrens;
}
///
/// id
///
[DisplayName("ID")]
[Display(Name = "ID")]
public long ID { get; set; }
///
/// 分类
///
[DisplayName("分类")]
[Display(Name = "分类")]
public string Catalog { get; set; }
///
/// 编码
///
[DisplayName("编码")]
[Display(Name = "编码")]
public string Code { get; set; }
///
/// 名称
///
[DisplayName("名称")]
[Display(Name = "名称")]
public string Name { get; set; }
///
/// 标签
///
[DisplayName("标签")]
[Display(Name = "标签")]
public string FlagsString { get; set; }
///
/// 说明
///
[DisplayName("说明")]
[Display(Name = "说明")]
public string Description { get; set; }
///
/// 上游节点编码
///
[DisplayName("上游节点编码")]
[Display(Name = "上游节点编码")]
public string StartCode { get; set; }
///
/// 下游节点编码
///
[DisplayName("下游节点编码")]
[Display(Name = "下游节点编码")]
public string EndCode { get; set; }
///
/// 水泵状态
///
[DisplayName("水泵状态")]
[Display(Name = "水泵状态")]
public string LinkStatus { get; set; }
///
/// 额定功率
///
[DisplayName("额定功率")]
[Display(Name = "额定功率")]
public double RatedPower { get; set; }
///
/// 流量扬程曲线
///
[DisplayName("流量扬程曲线")]
[Display(Name = "流量扬程曲线")]
public string CurveQH { get; set; }
///
/// 转速比
///
[DisplayName("转速比")]
[Display(Name = "转速比")]
public double? SpeedRatio { get; set; }
///
/// 转速比模式
///
[DisplayName("转速比模式")]
[Display(Name = "转速比模式")]
public string SpeedRatioPattern { get; set; }
///
/// 能耗价格
///
[DisplayName("能耗价格")]
[Display(Name = "能耗价格")]
public double? Price { get; set; }
///
/// 价格模式
///
[DisplayName("价格模式")]
[Display(Name = "价格模式")]
public string PricePattern { get; set; }
///
/// 流量效率曲线
///
[DisplayName("流量效率曲线")]
[Display(Name = "流量效率曲线")]
public string CurveQE { get; set; }
///
/// 是否匹配成功
///
[DisplayName("是否匹配成功")]
[Display(Name = "是否匹配成功")]
public bool IsMatching { get; set; }
[Browsable(true)]
[DisplayName("曲线信息")]
[Display(Name = "曲线信息")]
public List testChildrens { get; set; }
}
public class TestChildren
{
[Browsable(false)]
public long Id { get; set; }
[DisplayName("名称")]
[Display(Name = "名称")]
public string Name { get; set; }
[DisplayName("说明")]
[Display(Name = "说明")]
public string Description { get; set; }
}
}