using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace IStation.WinTest
{
///
/// 调度验证
///
public class ScheduleValidViewModel
{
[Display(Name = "时间")]
public DateTime Time { get; set; }
[Display(Name = "流量")]
public double TotalFlowSrc { get; set; }
[Display(Name = "扬程")]
public double TotalHeadSrc { get; set; }
[Display(Name = "功率")]
public double TotalPowerSrc { get; set; }
[Display(Name = "运行标志")]
public string RunFlagsSrc { get; set; }
[Display(Name = "单泵转速字典")]
public Dictionary FlagRpmDict { get; set; }
[Display(Name = "单泵流量字典")]
public Dictionary FlagFlowDict { get; set; }
[Display(Name = "单泵扬程字典")]
public Dictionary FlagHeadDict { get; set; }
[Display(Name = "单泵功率字典")]
public Dictionary FlagPowerDict { get; set; }
[Display(Name = "计算流量")]
public double TotalFlowCalc { get; set; }
[Display(Name = "计算功率")]
public double TotalPowerCalc { get; set; }
[Display(Name = "调度流量")]
public double TotalFlowSchedule { get; set; }
[Display(Name = "调度扬程")]
public double TotalHeadSchedule { get; set; }
[Display(Name = "调度功率")]
public double TotalPowerSchedule { get; set; }
[Display(Name = "调度运行标志")]
public string RunFlagsSchedule { get; set; }
[Display(Name = "调度流量偏差")]
public double TotalFlowScheduleSrcDiff { get; set; }
[Display(Name = "调度功率偏差")]
public double TotalPowerScheduleSrcDiff { get; set; }
[Display(Name = "计算流量偏差")]
public double TotalFlowCalcSrcDiff { get; set; }
[Display(Name = "计算功率偏差")]
public double TotalPowerCalcSrcDiff { get; set; }
public void Round()
{
this.TotalFlowSchedule = Math.Round(this.TotalFlowSchedule, 1);
this.TotalHeadSchedule = Math.Round(this.TotalHeadSchedule, 3);
this.TotalPowerSchedule = Math.Round(this.TotalPowerSchedule, 1);
this.TotalFlowScheduleSrcDiff = Math.Round(this.TotalFlowScheduleSrcDiff, 1);
this.TotalPowerScheduleSrcDiff = Math.Round(this.TotalPowerScheduleSrcDiff, 1);
this.TotalFlowCalc = Math.Round(this.TotalFlowCalc, 1);
this.TotalPowerCalc = Math.Round(this.TotalPowerCalc, 1);
this.TotalFlowCalcSrcDiff = Math.Round(this.TotalFlowCalcSrcDiff, 1);
this.TotalPowerCalcSrcDiff = Math.Round(this.TotalPowerCalcSrcDiff, 1);
}
}
}