using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace Yw.WinFrmUI.Q3D { [Serializable] class MeterModel : Q3DNodeCalcModel { /// /// 需水量 /// public float Demand { get; set; } /// /// 用水模式编号 /// public string PatternID { get; set; } public override string ToString() { if (string.IsNullOrEmpty(PatternID)) PatternID = ""; return $"{ID}\t{Z}\t{Demand}\t{PatternID}\tMeter\t;\t"; } public JunctionModel ToJunction() { return new JunctionModel() { Y = base.Y, Z = base.Z, ID = base.ID, Name = base.Name, Status = base.Status, X = base.X, }; } } }