Shuxia Ning
2025-01-03 5e776f1884d4d865c8d3d037a1fb10fb083f37ed
WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/EditBimfaceFileDlg.cs
@@ -1,6 +1,4 @@
using DevExpress.CodeParser;
using DevExpress.Mvvm.POCO;
using Mapster;
using Mapster;
namespace Yw.WinFrmUI
{
@@ -16,8 +14,7 @@
        }
        public event Action<long> ReloadDataEvent;
        private Yw.Dto.UpdateBimfaceFileInput _updateModel = null;
        private Lazy<Yw.BLL.BimfaceFile> _bll = new(() => new Yw.BLL.BimfaceFile());
        private Yw.Vmo.BimfaceFileVmo _updateModel = null;
        /// <summary>
        /// 绑定数据
@@ -27,7 +24,7 @@
            InitialModelType();
            InitialFormatType();
            InitialFileStatus();
            _updateModel = vm.Adapt<BimfaceFileMgrViewModel, Yw.Dto.UpdateBimfaceFileInput>();
            _updateModel = vm.Adapt<BimfaceFileMgrViewModel, Yw.Vmo.BimfaceFileVmo>();
            this.txtBimfaceId.EditValue = vm.BimfaceId;
            this.txtName.EditValue = vm.Name;
            this.imgCmbBimfaceModelType.EditValue = vm.ModelType;
@@ -55,7 +52,7 @@
            this.imgCmbFormatType.Properties.BeginUpdate();
            this.imgCmbFormatType.Properties.Items.Clear();
            this.imgCmbFormatType.Properties.Items.AddEnum(typeof(eFormatType), false);
            this.imgCmbFormatType.EditValue = eFormatType._3D;
            this.imgCmbFormatType.EditValue = eFormatType.d3;
            this.imgCmbFormatType.Properties.EndUpdate();
        }
@@ -123,7 +120,7 @@
            _updateModel.FileSize = this.txtFileSize.Text.Trim();
            _updateModel.Description = this.txtDescription.Text.Trim();
            if (!await _bll.Value.Update(_updateModel))
            if (!await BLLFactory<Yw.BLL.BimfaceFile>.Instance.Update(_updateModel))
            {
                XtraMessageBox.Show("更新失败!");
                return;