| | |
| | | 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() |
| | |
| | | { |
| | | 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("添加失败!"); |
| | |
| | | this.Close(); |
| | | } |
| | | |
| | | private void txtDescription_EditValueChanged(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |