| | |
| | | this.TankCoefficientViewModelBindingSource.DataSource = _AssetsTankCoefficient; |
| | | |
| | | _TankVmo = TankVmo; |
| | | var allCaliber = await new Yw.BLL.SysDictData().GetByTypeCode("1"); |
| | | if (allCaliber != null) |
| | | { |
| | | foreach (var item in allCaliber) |
| | | { |
| | | var imageItem = new ImageComboBoxItem(item.Name, item.Name); |
| | | TextEditCaliber.Properties.Items.Add(imageItem); |
| | | } |
| | | } |
| | | var allMaterial = await new Yw.BLL.SysDictData().GetByTypeCode("3"); |
| | | if (allMaterial != null) |
| | | { |
| | | foreach (var item in allMaterial) |
| | | { |
| | | var imageItem = new ImageComboBoxItem(item.Name, item.Name); |
| | | TextEditMaterial.Properties.Items.Add(imageItem); |
| | | } |
| | | } |
| | | |
| | | this.TextEditName.Text = _TankVmo.Name; |
| | | this.DescriptionTextEdit.Text = _TankVmo.Description; |
| | | this.TextEditKeyWord.Text = string.Join(",", _TankVmo.KeyWord); |