using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.Dto.DispatchAna
|
{
|
/// <summary>
|
/// 当前泵站能效分析记录
|
/// </summary>
|
public class StationEtaAnaRecord
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public StationEtaAnaRecord() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public StationEtaAnaRecord(Model.EtaMultiRealRecordPure rhs)
|
{
|
if (rhs.Qa != null)
|
{
|
this.Q = Math.Round(rhs.Qa.Value, 1);
|
}
|
if (rhs.Ha != null)
|
{
|
this.H = Math.Round(rhs.Ha.Value, 1);
|
}
|
if (rhs.Pa != null)
|
{
|
this.P = Math.Round(rhs.Pa.Value, 1);
|
}
|
if (rhs.Ea != null)
|
{
|
this.E = Math.Round(rhs.Ea.Value, 1);
|
}
|
if (rhs.WPa != null)
|
{
|
this.WP = Math.Round(rhs.WPa.Value, 1);
|
}
|
if (rhs.UWPa != null)
|
{
|
this.UWP = Math.Round(rhs.UWPa.Value, 1);
|
}
|
this.RunStatus = rhs.RunningCount > 0 ? IStation.RunStatus.Run : IStation.RunStatus.Shut;
|
if (rhs.RunningCount > 0)
|
{
|
this.Items = new List<PumpEtaAnaRecord>();
|
}
|
}
|
|
/// <summary>
|
/// 名称
|
/// </summary>
|
public string Name { get; set; }
|
/// <summary>
|
/// 流量
|
/// </summary>
|
public double? Q { get; set; }
|
/// <summary>
|
/// 功率
|
/// </summary>
|
public double? P { get; set; }
|
/// <summary>
|
/// 扬程
|
/// </summary>
|
public double? H { get; set; }
|
/// <summary>
|
/// 效率
|
/// </summary>
|
public double? E { get; set; }
|
/// <summary>
|
/// 千吨能耗
|
/// </summary>
|
public double? WP { get; set; }
|
/// <summary>
|
/// 单位能耗
|
/// </summary>
|
public double? UWP { get; set; }
|
/// <summary>
|
/// 运行状态
|
/// </summary>
|
public int RunStatus { get; set; }
|
/// <summary>
|
/// 子项集合
|
/// </summary>
|
public List<PumpEtaAnaRecord> Items { get; set; }
|
|
}
|
}
|