using System.ComponentModel.DataAnnotations;
namespace IStation.OpenDto
{
///
/// 测试台测试测点
///
public partial class MonitorPointValue
{
public MonitorPointValue() { }
///
/// ID
///
[Display(Name = "ID")]
public long ID { get; set; }
///
/// 编号
///
[Display(Name = "编号")]
public string Code { get; set; }
///
/// 名称
///
[Display(Name = "名称")]
public string Name { get; set; }
///
/// 测点类型
///
[Display(Name = "测点类型")]
public eMonitorType MonitorType { get; set; }
///
/// 标记名称
///
[Display(Name = "标记名称")]
public string Property { get; set; }
///
/// 管径
///
[Display(Name = "管径")]
public double? PipeDia { get; set; }
///
///
///
[Display(Name = "测量值")]
public string Value { get; set; }
///
/// 标高
///
[Display(Name = "标高")]
public double? Elevation { get; set; }
///
/// 排序号
///
[Display(Name = "排序号")]
public int SortCode { get; set; }
///
///
///
[Display(Name = "是否显示在仪表面板中")]
public int DispInPanel
{
get { return _dispInPanel; }
set { _dispInPanel = value; }
}
private int _dispInPanel = 1;
///
/// 修正参数 ValueCoeffParas
///
[Display(Name = "修正参数")]
public ValueCoeffParas ValueCoeffParas { get; set; }
///
/// 多个流量计时,合并使用
///
[Display(Name = "合计系数")]
public double SumCalcCoeff { get; set; } = 1;
///
/// 是否允许有负值
///
public bool IsHaveNavigateValue { get; set; } = true;
///
/// 计算修正后的值
///
///
///
public double CalcRealValue(double v)
{
if (ValueCoeffParas == null)
return v;
else
return ValueCoeffParas.CalcRealValue(v);
}
}
}