duheng
2025-02-17 26f45822a2a84af81e20ca543da98d3b822c5afd
Service/HStation.Service.Xhs.Core/02-model/XhsProject.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,115 @@
using Yw.Model;
namespace HStation.Model
{
    /// <summary>
    /// ä¸šåŠ¡ç«™
    /// </summary>
    [SysType("xhs-project")]
    public class XhsProject : BaseModel, IParas, IFlags, ITagName, ITreeSorter, System.ICloneable
    {
        /// <summary>
        ///
        /// </summary>
        public XhsProject() { }
        /// <summary>
        ///
        /// </summary>
        public XhsProject(XhsProject rhs) : base(rhs)
        {
            this.ParentIds = rhs.ParentIds?.ToList();
            this.NO = rhs.NO;
            this.Name = rhs.Name;
            this.Address = rhs.Address;
            this.Customer = rhs.Customer;
            this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(rhs.Paras);
            this.Flags = rhs.Flags?.ToList();
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
        /// <summary>
        ///
        /// </summary>
        public void Reset(XhsProject rhs)
        {
            this.ID = rhs.ID;
            this.ParentIds = rhs.ParentIds?.ToList();
            this.NO = rhs.NO;
            this.Name = rhs.Name;
            this.Address = rhs.Address;
            this.Customer = rhs.Customer;
            this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(rhs.Paras);
            this.Flags = rhs.Flags?.ToList();
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
        /// <summary>
        /// çˆ¶çº§id列表
        /// </summary>
        public List<long> ParentIds { get; set; }
        /// <summary>
        /// ç¼–号
        /// </summary>
        public string NO { get; set; }
        /// <summary>
        /// åç§°
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// è¯¦ç»†åœ°å€
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// å®¢æˆ·
        /// </summary>
        public string Customer { 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 string Description { get; set; }
        /// <summary>
        ///
        /// </summary>
        public XhsProject Clone()
        {
            return new XhsProject(this);
        }
        object ICloneable.Clone()
        {
            return this.Clone();
        }
    }
}