using System; using System.Collections.Generic; using System.Linq; namespace IStation.Model { /// /// 设备组 /// public partial class ProductGroup : BaseModel, System.ICloneable { /// /// /// public ProductGroup() { } /// /// /// public ProductGroup(ProductGroup rhs) : base(rhs) { this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(ProductGroup rhs) { this.ID = rhs.ID; this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 所属类型 /// public string BelongType { get; set; } /// /// 所属id /// public long BelongID { get; set; } /// /// 父级id列表 /// public List ParentIds { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 标签列表 /// public List Flags { get; set; } /// /// 标签名称 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public ProductGroup Clone() { return new ProductGroup(this); } object ICloneable.Clone() { return Clone(); } } }