using System.ComponentModel;
namespace PBS.WinFrmUI.WE
{
public class WaterUtensilViewModel
{
public WaterUtensilViewModel()
{
}
public WaterUtensilViewModel(PBS.Vmo.WE.UtensilVmo rhs)
{
this.ID = rhs.ID;
this.NO = rhs.NO;
this.Name = rhs.Name;
this.GroupID = rhs.GroupID;
this.RatedFlow = rhs.RatedFlow;
this.MinRatedFlow = rhs.MinRatedFlow;
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
public void Reset(PBS.Vmo.WE.UtensilVmo rhs)
{
this.ID = rhs.ID;
this.NO = rhs.NO;
this.Name = rhs.Name;
this.GroupID = rhs.GroupID;
this.RatedFlow = rhs.RatedFlow;
this.MinRatedFlow = rhs.MinRatedFlow;
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// 标识
///
[DisplayName("标识")]
[Browsable(false)]
public long ID { get; set; }
///
/// 编号
///
[DisplayName("编号")]
[Browsable(false)]
public string NO { get; set; }
///
/// 名称
///
[DisplayName("名称")]
[Browsable(true)]
public string Name { get; set; }
///
/// 组标识
///
[DisplayName("组标识")]
[Browsable(false)]
public long GroupID { get; set; }
///
/// 额定流量
///
[DisplayName("额定流量")]
[Browsable(true)]
public double RatedFlow { get; set; }
///
/// 最小额定流量
///
[DisplayName("最小额定流量")]
[Browsable(true)]
public double MinRatedFlow { get; set; }
///
/// 标志
///
[DisplayName("标志")]
[Browsable(true)]
public string TagName { get; set; }
///
/// 使用状态
///
[DisplayName("使用状态")]
[Browsable(true)]
public int UseStatus { get; set; }
///
/// 排序码
///
[DisplayName("排序码")]
[Browsable(true)]
public int SortCode { get; set; }
///
/// 说明
///
[DisplayName("说明")]
[Browsable(true)]
public string Description { get; set; }
}
}