using System;
namespace IStation.Dispatch.Model
{
///
///
///
public class AnaSchemeItem
{
///
///
///
public AnaSchemeItem()
{
}
///
///
///
///
///
public AnaSchemeItem(MachineDetail detail, AnaCurveItem ana)
{
WorkPointQ = ana.WorkPointQ;
WorkPointH = ana.WorkPointH;
WorkPointE = ana.WorkPointE;
WorkPointP = ana.WorkPointP;
PumpCurveID = detail.PumpCurveID;
PumpID = detail.PumpID;
MachineID = detail.MachineID;
MachineName = detail.MachineName;
Frequence = ana.Frequence;
IsCurveExtend = ana.IsExtendCurve;
RatioExtend = ana.RatioExtend;
IsFrequency = detail.IsFrequency;
Speed = ana.Speed;
CurveInfoQH = ana.CurveInfoQH;
CurveInfoQP = ana.CurveInfoQP;
}
///
///
///
///
public void ResetItem(Dispatch.Model.AnaCurveItem ana)
{
WorkPointQ = ana.WorkPointQ;
WorkPointH = ana.WorkPointH;
WorkPointE = ana.WorkPointE;
WorkPointP = ana.WorkPointP;
Frequence = ana.Frequence;
IsCurveExtend = ana.IsExtendCurve;
RatioExtend = ana.RatioExtend;
Speed = ana.Speed;
CurveInfoQH = ana.CurveInfoQH;
CurveInfoQP = ana.CurveInfoQP;
}
///
///
///
public long PumpID { get; set; }
///
///
///
public long MachineID { get; set; }
///
///
///
public string MachineName { get; set; }
///
/// 是否是变频泵
///
public bool IsFrequency { get; set; }
///
///
///
public double WorkPointQ { get; set; }
///
/// /
///
public double WorkPointH { get; set; }
///
///
///
public double WorkPointE { get; set; }
///
///
///
public double WorkPointP { get; set; }
///
/// 是否延长线上
///
public bool IsCurveExtend { get; set; }//
///
/// 延长比例
///
public double RatioExtend { get; set; }
///
///
///
public double Frequence { get; set; }
///
///
///
public double Speed { get; set; }
///
///
///
public IStation.Model.CurveExpress CurveInfoQH { get; set; }
///
///
///
public IStation.Model.CurveExpress CurveInfoQP { get; set; }
public long PumpCurveID { get; set; }
public void Round()
{
this.WorkPointQ = Math.Round(this.WorkPointQ, 1);
this.WorkPointH = Math.Round(this.WorkPointH, 1);
this.WorkPointE = Math.Round(this.WorkPointE, 1);
this.WorkPointP = Math.Round(this.WorkPointP, 1);
this.Speed = Math.Round(this.Speed, 1);
}
}
}