From f04e6ed843d66c22e08132ca23d2193d6800905c Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期四, 26 九月 2024 11:51:19 +0800 Subject: [PATCH] 增加窗体图标 --- WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/AddBimfaceFileDlg.cs | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/AddBimfaceFileDlg.cs b/WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/AddBimfaceFileDlg.cs index fbc8f2c..a4f3fd4 100644 --- a/WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/AddBimfaceFileDlg.cs +++ b/WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/AddBimfaceFileDlg.cs @@ -57,10 +57,9 @@ 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(); } - //楠岃瘉 private bool Valid() @@ -107,17 +106,17 @@ { return; } - var dto = new Yw.Dto.AddBimfaceFileInput(); - dto.BimfaceId = this.txtBimFaceFileID.Text.Trim(); - dto.Name = this.txtFileName.Text.Trim(); - dto.ModelType = (int)(eModelType)this.imgCmbBimfaceModelType.EditValue; - dto.FormatType = (int)(eFormatType)this.imgCmbFormatType.EditValue; - dto.FileStatus = (int)(eFileStatus)this.imgCmbFileStatus.EditValue; - dto.FileSuffix = this.txtExtension.Text.Trim(); - dto.FileSize = this.txtFileSize.Text.Trim(); - dto.Description = this.txtDescription.Text.Trim(); + var vmo = new Vmo.BimfaceFileVmo(); + vmo.BimfaceId = this.txtBimFaceFileID.Text.Trim(); + vmo.Name = this.txtFileName.Text.Trim(); + vmo.ModelType = (int)(eModelType)this.imgCmbBimfaceModelType.EditValue; + vmo.FormatType = (int)(eFormatType)this.imgCmbFormatType.EditValue; + vmo.FileStatus = (int)(eFileStatus)this.imgCmbFileStatus.EditValue; + vmo.FileSuffix = this.txtExtension.Text.Trim(); + vmo.FileSize = this.txtFileSize.Text.Trim(); + vmo.Description = this.txtDescription.Text.Trim(); - var id = await _bll.Value.Insert(dto); + var id = await _bll.Value.Insert(vmo); if (id < 1) { XtraMessageBox.Show("娣诲姞澶辫触锛�"); -- Gitblit v1.9.3