| | |
| | | namespace HStation.WinFrmUI.Assets |
| | | using DevExpress.XtraEditors.Controls; |
| | | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | | public partial class AddAssetsCompressorSeriesDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | |
| | | } |
| | | } |
| | | treeListLookUpEdit1TreeList.DataSource = _assetsCompressorSeriesViews; |
| | | var alllist = await new Yw.BLL.SysCatalog().GetAll(); |
| | | foreach (var item in alllist) |
| | | { |
| | | var imageItem = new ImageComboBoxItem(item.Name, item.ID); |
| | | TextEditCatalogChoice.Properties.Items.Add(imageItem); |
| | | } |
| | | } |
| | | |
| | | //数据验证 |
| | |
| | | model.Name = NameTextEdit.Text; |
| | | model.TagName = TagNameTextEdit.Text; |
| | | model.Description = DescriptionTextEdit.Text; |
| | | if (this.TextEditCatalogChoice.EditValue != null) |
| | | { |
| | | model.CatalogID = (long)this.TextEditCatalogChoice.EditValue; |
| | | } |
| | | if (await this.ReloadDataEvent.Invoke(model, this.textEditParentList.EditValue)) |
| | | { |
| | | TipFormHelper.ShowSucceed("添加成功!"); |