lixiaojun
2024-10-12 dd4fa076e58b00f46118928bbdaf38f7593544b4
WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/02-link/00-core/HydroLinkPropertyViewModel.cs
@@ -18,8 +18,11 @@
        public HydroLinkPropertyViewModel(Yw.Model.HydroLinkInfo rhs) : base(rhs)
        {
            this.StartCode = rhs.StartCode;
            this.UpdatePropStatus(nameof(this.StartCode), rhs, nameof(rhs.StartCode));
            this.EndCode = rhs.EndCode;
            this.LinkStatus = rhs.LinkStatus;
            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>
@@ -98,8 +101,11 @@
            if (rhs is Yw.Model.HydroLinkInfo hydroLinkInfo)
            {
                this.StartCode = hydroLinkInfo.StartCode;
                this.UpdatePropStatus(nameof(this.StartCode), hydroLinkInfo, nameof(hydroLinkInfo.StartCode));
                this.EndCode = hydroLinkInfo.EndCode;
                this.LinkStatus = hydroLinkInfo.LinkStatus;
                this.UpdatePropStatus(nameof(this.EndCode), hydroLinkInfo, nameof(hydroLinkInfo.EndCode));
                this.LinkStatus = HydroLinkStatusHelper.GetStatusName(hydroLinkInfo.LinkStatus);
                this.UpdatePropStatus(nameof(this.LinkStatus), hydroLinkInfo, nameof(hydroLinkInfo.LinkStatus));
            }
        }