lixiaojun
2024-08-14 30d1c646b63604b59ce9d665054bd748e56e171c
Service/HStation.Service.Assets.Core/02-model/PumpMain.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,143 @@
using Yw.Model;
namespace HStation.Model
{
    /// <summary>
    /// æ³µåž‹å·
    /// </summary>
    [SysType("xhs-pumpmain")]
    [SugarTable("xhs-pumpmain")]
    public class PumpMain : BaseModel, IParas, IFlags, ITagName, ISorter, System.ICloneable
    {
        /// <summary>
        ///
        /// </summary>
        public PumpMain()
        { }
        /// <summary>
        ///
        /// </summary>
        public PumpMain(PumpMain rhs) : base(rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(rhs.Paras);
            this.PumpSeriesID = rhs.PumpSeriesID;
            this.Flags = rhs.Flags?.ToList();
            this.RatedEfficiency = rhs.RatedEfficiency;
            this.RatedPower = rhs.RatedPower;
            this.Erosion = rhs.Erosion;
            this.D2 = rhs.D2;
            this.TagName = rhs.TagName;
            this.RatedSpeed = rhs.RatedSpeed;
            this.RatedHead = rhs.RatedHead;
            this.RatedFlow = rhs.RatedFlow;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
        public void Reset(PumpMain rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.PumpSeriesID = rhs.PumpSeriesID;
            this.RatedEfficiency = rhs.RatedEfficiency;
            this.RatedPower = rhs.RatedPower;
            this.Erosion = rhs.Erosion;
            this.D2 = rhs.D2;
            this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(rhs.Paras);
            this.PumpSeriesID = rhs.PumpSeriesID;
            this.Flags = rhs.Flags?.ToList();
            this.TagName = rhs.TagName;
            this.RatedSpeed = rhs.RatedSpeed;
            this.RatedHead = rhs.RatedHead;
            this.RatedFlow = rhs.RatedFlow;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
        /// <summary>
        /// åç§°
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// æ³µç³»åˆ—ID
        /// </summary>
        public long PumpSeriesID { get; set; }
        /// <summary>
        /// å‚æ•°
        /// </summary>
        public Dictionary<string, string> Paras { get; set; }
        /// <summary>
        /// æ ‡ç­¾
        /// </summary>
        public List<string> Flags { get; set; }
        /// <summary>
        /// æ ‡å¿—
        /// </summary>
        public string TagName { get; set; }
        /// <summary>
        /// æŽ’序码
        /// </summary>
        public int SortCode { get; set; }
        /// <summary>
        /// é¢å®šè½¬é€Ÿ
        /// </summary>
        public double RatedSpeed { get; set; }
        /// <summary>
        /// é¢å®šæµé‡
        /// </summary>
        public double RatedFlow { get; set; }
        /// <summary>
        /// é¢å®šæ‰¬ç¨‹
        /// </summary>
        public double RatedHead { get; set; }
        /// <summary>
        /// é¢å®šæ•ˆçއ
        /// </summary>
        public double RatedEfficiency { get; set; }
        /// <summary>
        /// é¢å®šåŠŸçŽ‡
        /// </summary>
        public double RatedPower { get; set; }
        /// <summary>
        /// æ°”蚀
        /// </summary>
        public double? Erosion { get; set; }
        /// <summary>
        /// å¶è½®å¤–径
        /// </summary>
        public double? D2 { get; set; }
        /// <summary>
        /// è¯´æ˜Ž
        /// </summary>
        public string? Description { get; set; }
        /// <summary>
        ///
        /// </summary>
        public PumpMain Clone()
        {
            return (PumpMain)this.MemberwiseClone();
        }
        object ICloneable.Clone()
        {
            return this.MemberwiseClone();
        }
    }
}