| | |
| | | } |
| | | |
| | | 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> |
| | | /// 绑定数据 |
| | |
| | | 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; |
| | |
| | | _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; |