lixiaojun
2024-10-17 4cb1f00f84d160f97afd0fb86cf600e1be667dd5
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;
@@ -55,7 +54,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 +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;