lixiaojun
2024-07-26 6dad261c5671357bbb7f056898b572398293f6fe
WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/BimfaceFileMgrViewModel.cs
文件名从 WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/BimfaceFileViewModel.cs 修改
@@ -3,17 +3,17 @@
    /// <summary>
    /// 
    /// </summary>
    public class BimfaceFileViewModel
    public class BimfaceFileMgrViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public BimfaceFileViewModel() { }
        public BimfaceFileMgrViewModel() { }
        /// <summary>
        /// 
        /// </summary>
        public BimfaceFileViewModel(Yw.Dto.BimfaceFileDto rhs, bool hasRelation)
        public BimfaceFileMgrViewModel(Yw.Dto.BimfaceFileDto rhs, bool hasRelation)
        {
            this.ID = rhs.ID;
            this.BimfaceId = rhs.BimfaceId;
@@ -26,11 +26,35 @@
            this.StorageUrl = rhs.StorageUrl;
            this.Content = rhs.Content;
            this.Paras = rhs.Paras;
            this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.Flags = rhs.Flags;
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.HasRelation = hasRelation;
        }
        /// <summary>
        ///
        /// </summary>
        public void Reset(Yw.Dto.BimfaceFileDto rhs)
        {
            this.ID = rhs.ID;
            this.BimfaceId = rhs.BimfaceId;
            this.Name = rhs.Name;
            this.ModelType = (eModelType)rhs.ModelType;
            this.FileStatus = (eFileStatus)rhs.FileStatus;
            this.FileSize = rhs.FileSize;
            this.FormatType = (eFormatType)rhs.FormatType;
            this.FileSuffix = rhs.FileSuffix;
            this.StorageUrl = rhs.StorageUrl;
            this.Content = rhs.Content;
            this.Paras = rhs.Paras;
            this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.Flags = rhs.Flags;
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
        /// <summary>
@@ -103,7 +127,13 @@
        /// 
        /// </summary>
        [Display(Name = "鏍囩")]
        public string Flags { get; set; }
        public string FlagsString { get; set; }
        /// <summary>
        /// 鏍囩
        /// </summary>
        [Display(Name = "鏍囩")]
        public List<string> Flags { get; set; }
        /// <summary>
        /// 
@@ -126,7 +156,7 @@
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "鎸囧畾")]
        [Display(Name = "鍏宠仈")]
        public bool HasRelation { get; set; }
    }