using Yw.Model; namespace HStation.Model { /// /// 设备 /// [SysType("assets_package_main")] public class AssetsPackageMain : BaseModel, ISorter, IFlags, IParas, ITagName, System.ICloneable { /// /// /// public AssetsPackageMain() { } /// /// /// public AssetsPackageMain(AssetsPackageMain rhs) : base(rhs) { this.NO = rhs.NO; this.Name = rhs.Name; this.SeriesID = rhs.SeriesID; this.CatalogID = rhs.CatalogID; this.PumpTotal = rhs.PumpTotal; this.PumpUseCount = rhs.PumpUseCount; this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras); this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } public void Reset(AssetsPackageMain rhs) { this.NO = rhs.NO; this.Name = rhs.Name; this.SeriesID = rhs.SeriesID; this.CatalogID = rhs.CatalogID; this.PumpTotal = rhs.PumpTotal; this.PumpUseCount = rhs.PumpUseCount; this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras); this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 系列 id /// public long SeriesID { get; set; } /// /// 编号 /// public string NO { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 类别 /// public long CatalogID { get; set; } /// /// 设备数量 /// public int PumpTotal { get; set; } /// /// 使用数量 /// public int PumpUseCount { get; set; } /// /// 参数 /// public Dictionary Paras { get; set; } /// /// 标签 /// public List Flags { get; set; } /// /// 标志 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public AssetsPackageMain Clone() { return (AssetsPackageMain)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }