namespace HStation.WinFrmUI
{
///
///
///
public class XhsProjectSimulationThreelinkUnMatchingViewModel
{
///
///
///
public XhsProjectSimulationThreelinkUnMatchingViewModel() { }
///
///
///
public XhsProjectSimulationThreelinkUnMatchingViewModel(Yw.Model.HydroThreelinkInfo rhs)
{
this.ID = rhs.ID;
this.Catalog = HydroParterCatalogHelper.GetName(rhs.Catalog);
this.Code = rhs.Code;
this.Name = rhs.Name;
this.DbId = rhs.DbId;
this.DbLocked = rhs.DbLocked;
this.Material = rhs.Material;
this.Caliber = rhs.Caliber;
this.Elev = rhs.Elev;
this.Demand = rhs.Demand;
this.DemandPattern = rhs.DemandPattern;
this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
this.Description = rhs.Description;
this.Vmo = rhs;
}
///
/// id
///
[DisplayName("ID")]
[Display(Name = "ID")]
public long ID { get; set; }
///
/// 分类
///
[DisplayName("分类")]
[Display(Name = "分类")]
public string Catalog { get; set; }
///
/// 编码
///
[DisplayName("编码")]
[Display(Name = "编码")]
public string Code { get; set; }
///
/// 名称
///
[DisplayName("名称")]
[Display(Name = "名称")]
public string Name { get; set; }
///
/// 数据id
///
[DisplayName("数据id")]
[Display(Name = "数据id")]
public string DbId { get; set; }
///
/// 锁定
///
[DisplayName("锁定")]
[Display(Name = "锁定")]
public bool DbLocked { get; set; }
///
/// 材料
///
[DisplayName("材料")]
[Display(Name = "材料")]
public string Material { get; set; }
///
/// 口径
///
[DisplayName("口径")]
[Display(Name = "口径")]
public double? Caliber { get; set; }
///
/// 初始水质
///
[DisplayName("初始水质")]
[Display(Name = "初始水质")]
public double Quality { get; set; }
///
/// 标高
///
[DisplayName("标高")]
[Display(Name = "标高")]
public double Elev { get; set; }
///
/// 需水量
///
[DisplayName("需水量")]
[Display(Name = "需水量")]
public double? Demand { get; set; }
///
/// 需水模式
///
[DisplayName("需水模式")]
[Display(Name = "需水模式")]
public string DemandPattern { get; set; }
///
/// 标签
///
[DisplayName("标签")]
[Display(Name = "标签")]
public string FlagsString { get; set; }
///
/// 说明
///
[DisplayName("说明")]
[Display(Name = "说明")]
public string Description { get; set; }
///
///
///
public Yw.Model.HydroThreelinkInfo Vmo { get; set; }
}
}