lixiaojun
2025-01-15 b2b2686f9c49e9ce7c27fffaf76347b38f03f0aa
WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/04-link/00-core/HydroLinkViewModel.cs
@@ -16,23 +16,10 @@
        public HydroLinkViewModel(Yw.Model.HydroLinkInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
        {
            this.StartCode = rhs.StartCode;
            this.UpdatePropStatus(nameof(this.StartCode), rhs, nameof(rhs.StartCode));
            this.EndCode = rhs.EndCode;
            this.UpdatePropStatus(nameof(this.EndCode), rhs, nameof(rhs.EndCode));
            this.LinkStatus = HydroLinkStatusHelper.GetStatusName(rhs.LinkStatus);
            this.UpdatePropStatus(nameof(this.LinkStatus), rhs, nameof(rhs.LinkStatus));
        }
        /// <summary>
        /// Y流向
        /// </summary>
        [Category("拓扑结构")]
        [DisplayName("Y流向")]
        [HydroFlowDirectionPro]
        [PropertyOrder(102)]
        [TypeConverter(typeof(HydroFlowDirectionConverter))]
        [Browsable(false)]
        public override string FlowDirectionY { get; set; }
        /// <summary>
        /// 上游节点
@@ -147,11 +134,8 @@
        {
            base.UpdateProperty();
            this.StartCode = this.Vmo.StartCode;
            this.UpdatePropStatus(nameof(this.StartCode), this.Vmo, nameof(this.Vmo.StartCode));
            this.EndCode = this.Vmo.EndCode;
            this.UpdatePropStatus(nameof(this.EndCode), this.Vmo, nameof(this.Vmo.EndCode));
            this.LinkStatus = HydroLinkStatusHelper.GetStatusName(this.Vmo.LinkStatus);
            this.UpdatePropStatus(nameof(this.LinkStatus), this.Vmo, nameof(this.Vmo.LinkStatus));
        }
        /// <summary>
@@ -161,11 +145,8 @@
        {
            base.UpdateVmoProperty();
            this.Vmo.StartCode = this.StartCode;
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.StartCode), this, nameof(this.StartCode));
            this.Vmo.EndCode = this.EndCode;
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.EndCode), this, nameof(this.EndCode));
            this.Vmo.LinkStatus = HydroLinkStatusHelper.GetStatusCode(this.LinkStatus);
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.LinkStatus), this, nameof(this.LinkStatus));
        }
        /// <summary>