lixiaojun
2024-10-14 145dcc3a9ed1c3bcbc01c8da2b341aaa6ee5dbd2
WinFrmUI/Yw.WinFrmUI.Bimface.Core/02-file/AddBimfaceFileDlg.cs
@@ -57,7 +57,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();
        }
@@ -106,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("添加失败!");