namespace Yw.WinFrmUI
{
///
///
///
public class SetHydroGradingModelViewModel
{
///
///
///
public SetHydroGradingModelViewModel() { }
///
///
///
public SetHydroGradingModelViewModel(Yw.Vmo.HydroGradingVmo rhs)
{
this.ID = rhs.ID;
this.ModelID = rhs.ModelID;
this.Catalog = rhs.Catalog;
this.PropName = rhs.PropName;
this.SetValue = rhs.SetValue;
this.MinValue = rhs.MinValue;
this.MaxValue = rhs.MaxValue;
this.MinPercent = rhs.MinPercent;
this.MaxPercent = rhs.MaxPercent;
this.Color = ColorTranslator.FromHtml(rhs.Color);
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// id
///
[DisplayName("ID")]
public long ID { get; set; }
///
/// 模型id
///
[DisplayName("模型ID")]
public long ModelID { get; set; }
///
/// 分类
///
[DisplayName("分类")]
public string Catalog { get; set; }
///
/// 属性
///
[DisplayName("属性")]
public string PropName { get; set; }
///
/// 属性值
///
[DisplayName("属性值")]
public string SetValue { get; set; }
///
/// 下限
///
[DisplayName("区间下限")]
public double MinValue { get; set; }
///
/// 上限
///
[DisplayName("区间上限")]
public double MaxValue { get; set; }
///
/// 上限
///
[DisplayName("百分比下限")]
public double MinPercent { get; set; }
///
/// 上限
///
[DisplayName("百分比上限")]
public double MaxPercent { get; set; }
///
/// 颜色
///
[DisplayName("颜色")]
public Color Color { get; set; }
///
/// 排序码
///
[DisplayName("排序码")]
public int SortCode { get; set; }
///
/// 说明
///
[DisplayName("说明")]
public string Description { get; set; }
}
}