lixiaojun
2024-09-11 ec0d0b6f8e3ac7791c736ae8aad69c4a1587cad9
WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/EditBimfaceFileDlg.cs
@@ -16,8 +16,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 +26,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;
@@ -123,7 +122,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;