namespace Yw.WinFrmUI { /// /// 水表匹配ViewModel /// public class HydroMeterMatchingViewModel { /// /// /// public HydroMeterMatchingViewModel() { } /// /// /// public HydroMeterMatchingViewModel(Yw.Model.HydroMeterInfo rhs, Yw.Model.HydroModelInfo hydroInfo) { this.ID = rhs.ID; this.Name = rhs.Name; this.Code = rhs.Code; this.DbLocked = rhs.DbLocked; this.DbId = rhs.DbId; this.ModelType = rhs.ModelType; this.MinorLoss = rhs.MinorLoss; } /// /// /// public HydroMeterMatchingViewModel(Yw.Model.HydroMeterInfo rhs, Yw.Model.HydroModelInfo hydroInfo, HydroCalcuNodeResult calcuResult) : this(rhs, hydroInfo) { } /// /// /// public HydroMeterMatchingViewModel(HydroMeterViewModel rhs) : this(rhs.Vmo, rhs.HydroInfo) { } /// /// ID /// public long ID { get; set; } /// /// 编码 /// public string Code { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// Db锁定 /// public bool DbLocked { get; set; } /// /// DbId /// public string DbId { get; set; } /// /// 型号 /// public string ModelType { get; set; } /// /// 损失系数 /// public double? MinorLoss { get; set; } /// /// 匹配型号 /// public string MatchingModelType { get; set; } /// /// 匹配Dbid /// public string MatchingDbId { get; set; } /// /// 匹配损失系数 /// public double? MatchingMinorLoss { get; set; } } }