| | |
| | | using Yw.WinFrmUI.Q3d; |
| | | using Hydro.Model; |
| | | using Hydro.Model; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using Yw.WinFrmUI.Q3d; |
| | | using static Yw.WinFrmUI.Q3d.MapViewEnum; |
| | | |
| | | namespace Yw.WinFrmUI.Q3d |
| | |
| | | #endregion |
| | | |
| | | #region 属性 |
| | | |
| | | |
| | | |
| | | [Category("基本信息")] |
| | | [DisplayName("编号")] |
| | |
| | | [Browsable(true)] |
| | | public virtual string PatternID { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | [Category("其他参数")] |
| | | [DisplayName("链表清单")] |
| | | [Browsable(true)] |
| | | [JsonIgnore] |
| | | public List<Q3DLinkCalcModel> Links |
| | | { |
| | | get |
| | | { |
| | | //if (base.Links == null) return null; |
| | | return base.Links; |
| | | } |
| | | set |
| | | { |
| | | base.Links = value; |
| | | } |
| | | |
| | | } |
| | | public LinkViewModelList Links { get; set; } = new LinkViewModelList(); |
| | | |
| | | |
| | | public List<LinkViewModel> ViewLinks |
| | | { |
| | |
| | | { |
| | | return base.Links.Select(oo => oo as LinkViewModel).ToList(); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [Category("其他参数")] |
| | |
| | | //[Editor(typeof(MyEditor), typeof(UITypeEditor))] |
| | | //public TagList Tags { get; set; } = null; |
| | | |
| | | |
| | | |
| | | |
| | | [Browsable(false)] |
| | | [JsonIgnore] |
| | |
| | | if (this is TankViewModel) return MapObjectType.水池; |
| | | if (this is MeterViewModel) return MapObjectType.水表; |
| | | if (this is NozzleViewModel) return MapObjectType.喷头; |
| | | |
| | | |
| | | |
| | | |
| | | if (this is PipeViewModel) return MapObjectType.管线; |
| | | if (this is ValveViewModel) return MapObjectType.阀门; |
| | | |
| | | |
| | | if (this is PumpViewModel) return MapObjectType.水泵; |
| | | |
| | | |
| | | |
| | | return MapObjectType.节点; |
| | | } |