namespace IStation.Entity
{
///
/// 调度结论
///
[SplitTable(SplitType._Custom01)]
public class ScheduleConclusion
{
public ScheduleConclusion()
{
this.ID = SnowflakeIdHelper.NextId();
}
public ScheduleConclusion(ScheduleConclusion rhs)
{
this.ID = rhs.ID;
this.ScheduleCombineID = rhs.ScheduleCombineID;
this.Pump1 = rhs.Pump1;
this.Pump2 = rhs.Pump2;
this.Pump3 = rhs.Pump3;
this.Head = rhs.Head;
this.Flow = rhs.Flow;
this.Power = rhs.Power;
this.WP = rhs.WP;
this.UWP = rhs.UWP;
}
public void Round()
{
this.Pump1 = Math.Round(this.Pump1, 1);
this.Pump2 = Math.Round(this.Pump2, 1);
this.Pump3 = Math.Round(this.Pump3, 1);
this.Head = Math.Round(this.Head, 1);
this.Flow = Math.Round(this.Flow, 1);
this.Power = Math.Round(this.Power, 1);
this.WP = Math.Round(this.WP, 1);
this.UWP = Math.Round(this.UWP, 1);
}
///
/// 自增标识
///
[SugarColumn(IsPrimaryKey = true)]
public long ID { get; set; }
///
/// 组合标识
///
public long ScheduleCombineID { get; set; }
///
/// 运行标志
///
[SplitField]
public string RunFlag { get; set; }
///
/// 泵1
///
public double Pump1 { get; set; }
///
/// 泵2
///
public double Pump2 { get; set; }
///
/// 泵3
///
public double Pump3 { get; set; }
///
/// 扬程
///
public double Head { get; set; }
///
/// 总流量
///
public double Flow { get; set; }
///
/// 总功率
///
public double Power { get; set; }
///
/// 千吨水能耗
///
public double WP { get; set; }
///
/// 单位能耗
///
public double UWP { get; set; }
}
}