namespace Yw.WinFrmUI
{
///
///
///
public class HydroVisualMonitorValueViewModel
{
///
///
///
public HydroVisualMonitorValueViewModel() { }
///
///
///
public HydroVisualMonitorValueViewModel(Yw.Model.HydroVisualInfo visual, Yw.Vmo.HydroMonitorVmo vmo)
{
this.Relation = visual.Name;
this.PropName = HydroCalcuPropHelper.GetName(vmo.PropName);
this.MonitorValue = null;
this.UnitName = HydroCalcuPropHelper.GetUnit(vmo.PropName);
this.SortCode = vmo.SortCode;
this.Description = vmo.Description;
this.Vmo = vmo;
}
///
/// 构件
///
[DisplayName("构件")]
public string Relation { get; set; }
///
/// 属性
///
[DisplayName("属性")]
public string PropName { get; set; }
///
/// 值
///
[DisplayName("值")]
public double? MonitorValue { get; set; }
///
/// 单位
///
[DisplayName("单位")]
public string UnitName { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
[DisplayName("说明")]
public string Description { get; set; }
///
/// vmo
///
public Yw.Vmo.HydroMonitorVmo Vmo { get; set; }
}
}