| | |
| | | this.ID = rhs.ID; |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Name = rhs.Name; |
| | | this.UpdatePropStatus(nameof(this.Name), rhs, nameof(rhs.Name)); |
| | | this.Code = rhs.Code; |
| | | this.UpdatePropStatus(nameof(this.Code), rhs, nameof(rhs.Code)); |
| | | this.ModelType = rhs.ModelType; |
| | | this.UpdatePropStatus(nameof(this.ModelType), rhs, nameof(rhs.ModelType)); |
| | | this.DbId = rhs.DbId; |
| | | this.HasDb = !string.IsNullOrEmpty(rhs.DbId); |
| | | this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.UpdatePropStatus(nameof(this.Flags), rhs, nameof(rhs.Flags)); |
| | | this.Description = rhs.Description; |
| | | this.UpdatePropStatus(nameof(this.Description), rhs, nameof(rhs.Description)); |
| | | this.DbLocked = rhs.DbLocked; |
| | | } |
| | | |
| | |
| | | [Category("基础信息")] |
| | | [DisplayName("分类")] |
| | | [PropertyOrder(1)] |
| | | [Browsable(true)] |
| | | [ReadOnly(true)] |
| | | [Browsable(true)] |
| | | public virtual string Catalog { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | [Category("基础信息")] |
| | | [DisplayName("编码")] |
| | | [PropertyOrder(3)] |
| | | [Browsable(true)] |
| | | [ReadOnly(true)] |
| | | [Browsable(true)] |
| | | public virtual string Code { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | [Category("基础信息")] |
| | | [DisplayName("匹配")] |
| | | [PropertyOrder(5)] |
| | | [ReadOnly(true)] |
| | | [ShowEditor(false)] |
| | | [Browsable(true)] |
| | | public virtual bool HasDb { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | this.ID = rhs.ID; |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Name = rhs.Name; |
| | | this.UpdatePropStatus(nameof(this.Name), rhs, nameof(rhs.Name)); |
| | | this.Code = rhs.Code; |
| | | this.UpdatePropStatus(nameof(this.Code), rhs, nameof(rhs.Code)); |
| | | this.ModelType = rhs.ModelType; |
| | | this.UpdatePropStatus(nameof(this.ModelType), rhs, nameof(rhs.ModelType)); |
| | | this.DbId = rhs.DbId; |
| | | this.HasDb = !string.IsNullOrEmpty(rhs.DbId); |
| | | this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.UpdatePropStatus(nameof(this.Flags), rhs, nameof(rhs.Flags)); |
| | | this.Description = rhs.Description; |
| | | this.UpdatePropStatus(nameof(this.Description), rhs, nameof(rhs.Description)); |
| | | this.DbLocked = rhs.DbLocked; |
| | | } |
| | | |