From 59f2c4c04e06d77de7f10ab96d1a5c73ccd01262 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期四, 05 十二月 2024 16:23:42 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/EditBimfaceFileDlg.cs | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/EditBimfaceFileDlg.cs b/WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/EditBimfaceFileDlg.cs index 60d7c00..22ccb09 100644 --- a/WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/EditBimfaceFileDlg.cs +++ b/WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/EditBimfaceFileDlg.cs @@ -1,6 +1,4 @@ -锘縰sing DevExpress.CodeParser; -using DevExpress.Mvvm.POCO; -using Mapster; +锘縰sing 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; -- Gitblit v1.9.3