duheng
2025-02-19 bb7165071ee890cfac760dbb15cd921e6f6e3096
WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/01-parter/HydroParterViewModel.cs
@@ -26,9 +26,10 @@
            this.ModelType = rhs.ModelType;
            this.DbId = rhs.DbId;
            this.DbLocked = rhs.DbLocked;
            this.BeginGroup = rhs.BeginGroup;
            this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.Description = rhs.Description;
            this.Paras = new DictionaryPropertyAdapter(rhs.Paras);
            this.Vmo = rhs;
            this.HydroInfo = hydroInfo;
        }
@@ -92,21 +93,40 @@
        }
        /// <summary>
        /// 分组
        /// </summary>
        [Category("基础信息")]
        [DisplayName("分组")]
        [PropertyOrder(6)]
        [Browsable(true)]
        public virtual string BeginGroup { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        [Category("基础信息")]
        [DisplayName("标签")]
        [PropertyOrder(6)]
        [PropertyOrder(7)]
        [HydroFlagsPro]
        [Browsable(true)]
        public virtual string Flags { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        [Category("基础信息")]
        [DisplayName("参数")]
        [HydroParasPro]
        [PropertyOrder(8)]
        [Browsable(true)]
        public virtual DictionaryPropertyAdapter Paras { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        [Category("基础信息")]
        [DisplayName("说明")]
        [PropertyOrder(7)]
        [PropertyOrder(9)]
        [MultiText]
        [Browsable(true)]
        public virtual string Description { get; set; }
@@ -116,7 +136,7 @@
        /// </summary>
        [Category("基础信息")]
        [DisplayName("锁定")]
        [PropertyOrder(8)]
        [PropertyOrder(10)]
        [Browsable(true)]
        public virtual bool DbLocked { get; set; }
@@ -160,7 +180,9 @@
            this.Catalog = HydroParterCatalogHelper.GetName(this.Vmo.Catalog);
            this.ModelType = this.Vmo.ModelType;
            this.DbId = this.Vmo.DbId;
            this.BeginGroup = this.Vmo.BeginGroup;
            this.Flags = Yw.Untity.FlagsHelper.ToString(this.Vmo.Flags);
            this.Paras = new DictionaryPropertyAdapter(this.Vmo.Paras);
            this.Description = this.Vmo.Description;
            this.DbLocked = this.Vmo.DbLocked;
        }
@@ -176,7 +198,9 @@
            this.Vmo.ModelType = this.ModelType;
            this.Vmo.DbId = this.DbId;
            this.Vmo.DbLocked = this.DbLocked;
            this.Vmo.BeginGroup = this.BeginGroup;
            this.Vmo.Flags = Yw.Untity.FlagsHelper.ToList(this.Flags);
            this.Vmo.Paras = (Dictionary<string, string>)this.Paras?.Dictionary;
            this.Vmo.Description = this.Description;
        }