文件名从 WinFrmUI/HStation.WinFrmUI.Assets.Core/19-translation/02-main/AddAssetsSprinklerMainDlg.cs 修改 |
| | |
| | | this.TranslationCoefficientViewModelBindingSource.DataSource = _AssetsTranslationCoefficient; |
| | | _TranslationVmo = new Vmo.AssetsTranslationMainVmo(); |
| | | _TranslationVmo.SeriesID = SeriesID; |
| | | |
| | | this.textEditAlgorithmType.Properties.AddEnum(typeof(HStation.Assets.eAlgorithmType)); |
| | | var allMaterial = await new Yw.BLL.SysDictData().GetByTypeCode("3"); |
| | | if (allMaterial != null) |
| | | { |
| | |
| | | _TranslationVmo.Description = DescriptionTextEdit.Text.Trim(); |
| | | _TranslationVmo.Name = TextEditName.Text.Trim(); |
| | | _TranslationVmo.KeyWord = this.TextEditKeyWord.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList(); |
| | | _TranslationVmo.Material = TextEditMaterial.Text.Trim(); |
| | | |
| | | if (TextEditMaterial.Text != "榛樿") |
| | | { |
| | | _TranslationVmo.Material = TextEditMaterial.Text.Trim(); |
| | | } |
| | | if (double.TryParse(textEditDiameter.Text, out double Diameter)) |
| | | { |
| | | _TranslationVmo.Diameter = Diameter; |
| | | } |
| | | if (double.TryParse(textEditStartDiameter.Text, out double StartDiameter)) |
| | | { |
| | | _TranslationVmo.StartDiameter = StartDiameter; |
| | | } |
| | | if (double.TryParse(textEditEndDiameter.Text, out double EndDiameter)) |
| | | { |
| | | _TranslationVmo.EndDiameter = EndDiameter; |
| | | } |
| | | if (double.TryParse(textEditRoughness.Text, out double Roughness)) |
| | | { |
| | | _TranslationVmo.Roughness = Roughness; |
| | | } |
| | | if (double.TryParse(TextEditMinorLoss.Text, out double minorLoss)) |
| | | { |
| | | _TranslationVmo.MinorLoss = minorLoss; |
| | | } |
| | | _TranslationVmo.Flags = this.selectFlagsPopupCtrl1.SelectedFlags; |
| | | if (await this.ReloadDataEvent.Invoke(_TranslationVmo)) |
| | | _TranslationVmo.eAlgorithmType = (HStation.Assets.eAlgorithmType)this.textEditAlgorithmType.EditValue; |
| | | if (await this.ReloadDataEvent.Invoke(_TranslationVmo)) |
| | | { |
| | | TipFormHelper.ShowSucceed("娣诲姞鎴愬姛!"); |
| | | } |