lixiaojun
2024-10-11 79c8977a39744e046a121e7ef491532b9451babb
WinFrmUI/Yw.WinFrmUI.Hydro.Core/02-model/HydroModelMgrViewModel.cs
@@ -13,32 +13,34 @@
        /// <summary>
        /// 
        /// </summary>
        public HydroModelMgrViewModel(Yw.Dto.HydroModelDto rhs, bool hasRelation)
        public HydroModelMgrViewModel(HydroModelVmo rhs, bool hasRelation)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
            this.Content = rhs.Content;
            this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Dto = rhs;
            this.Vmo = rhs;
            this.HasRelation = hasRelation;
        }
        /// <summary>
        /// 
        /// </summary>
        public void Reset(Yw.Dto.HydroModelDto rhs)
        public void Reset(HydroModelVmo rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
            this.Content = rhs.Content;
            this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Dto = rhs;
            this.Vmo = rhs;
        }
        /// <summary>
@@ -58,6 +60,12 @@
        /// </summary>
        [Display(Name = "编码")]
        public string Code { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name = "内容")]
        public string Content { get; set; }
        /// <summary>
        /// 标签
@@ -84,10 +92,10 @@
        public string Description { get; set; }
        /// <summary>
        /// Dto
        /// Vmo
        /// </summary>
        [Display(Name = "Dto")]
        public Yw.Dto.HydroModelDto Dto { get; set; }
        [Display(Name = "Vmo")]
        public HydroModelVmo Vmo { get; set; }
        /// <summary>
        ///