文件名从 WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/BimfaceFileViewModel.cs 修改 |
| | |
| | | /// <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; |
| | |
| | | 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> |
| | |
| | | /// |
| | | /// </summary> |
| | | [Display(Name = "鏍囩")] |
| | | public string Flags { get; set; } |
| | | public string FlagsString { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 鏍囩 |
| | | /// </summary> |
| | | [Display(Name = "鏍囩")] |
| | | public List<string> Flags { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | [Display(Name = "鎸囧畾")] |
| | | [Display(Name = "鍏宠仈")] |
| | | public bool HasRelation { get; set; } |
| | | |
| | | } |