| | |
| | | { |
| | | _ExchangerVmo = new Vmo.AssetsExchangerMainVmo(); |
| | | _ExchangerVmo.SeriesID = SeriesID; |
| | | var allCaliber = await new Yw.BLL.SysDictData().GetByTypeCode("1"); |
| | | if (allCaliber != null) |
| | | { |
| | | foreach (var item in allCaliber) |
| | | { |
| | | var imageItem = new ImageComboBoxItem(item.Name, item.ID); |
| | | TextEditCaliber.Properties.Items.Add(imageItem); |
| | | } |
| | | } |
| | | var allMaterial = await new Yw.BLL.SysDictData().GetByTypeCode("3"); |
| | | if (allMaterial != null) |
| | | { |
| | |
| | | TextEditMaterial.Properties.Items.Add(imageItem); |
| | | } |
| | | } |
| | | TextEditCaliber.SelectedIndex = 0; |
| | | TextEditMaterial.SelectedIndex = 0; |
| | | } |
| | | |
| | |
| | | { |
| | | _ExchangerVmo.MaterialName = TextEditMaterial.Text.Trim(); |
| | | } |
| | | if (double.TryParse(TextEditCoefficient.Text, out double Coefficient)) |
| | | { |
| | | _ExchangerVmo.Coefficient = Coefficient; |
| | | } |
| | | if (await this.ReloadDataEvent.Invoke(_ExchangerVmo)) |
| | | if (double.TryParse(TextEditCoefficient.Text, out double Coefficient)) |
| | | { |
| | | _ExchangerVmo.Coefficient = Coefficient; |
| | | } |
| | | if (await this.ReloadDataEvent.Invoke(_ExchangerVmo)) |
| | | { |
| | | TipFormHelper.ShowSucceed("添加成功!"); |
| | | } |