| | |
| | | this.txtTagName.EditValue = _last.TagName; |
| | | this.txtDescription.EditValue = _last.Description; |
| | | } |
| | | this.textEditAlgorithmType.Properties.AddEnum(typeof(HStation.Assets.eAlgorithmType)); |
| | | this.textEditAlgorithmType.SelectedIndex = 0; |
| | | this.textEditTranslationType.Properties.AddEnum(typeof(HStation.Assets.eTranslationType)); |
| | | this.textEditTranslationType.SelectedIndex = 0; |
| | | } |
| | | |
| | | //验证 |
| | |
| | | _vmo.StartDiameter = double.Parse(this.textEditStartDiameter.EditValue?.ToString()); |
| | | _vmo.EndDiameter = double.Parse(this.textEditEndDiameter.EditValue?.ToString()); |
| | | _vmo.Roughness = 120;//默认值 |
| | | _vmo.eAlgorithmType = (HStation.Assets.eAlgorithmType)this.textEditAlgorithmType.EditValue; |
| | | _vmo.TranslationType = (HStation.Assets.eTranslationType)this.textEditTranslationType.EditValue; |
| | | var id = await BLLFactory<HStation.BLL.AssetsTranslationMain>.Instance.Insert(_vmo); |
| | | if (id < 1) |
| | | { |