qin
2025-03-20 00ab1b5282ada6ffdc78b3dd46f0ce08726a51e6
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("添加失败!");
@@ -130,9 +129,5 @@
            this.Close();
        }
        private void txtDescription_EditValueChanged(object sender, EventArgs e)
        {
        }
    }
}