ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Assets.Core/12-kit/01-series/AddAssetsKitSeriesDlg.cs ÐÞ¸Ä |
| | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | | public partial class AddAssetsKitSeriesDlg : DevExpress.XtraEditors.XtraForm |
| | | public partial class AddAssetsPackageSeriesDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | public AddAssetsKitSeriesDlg() |
| | | public AddAssetsPackageSeriesDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | |
| | | |
| | | public event Func<Vmo.AssetsPackageSeriesVmo, object, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | private List<AssetsKitSeriesViewModel> _assetsEquipmentSeriesViews; |
| | | private List<AssetsPackageSeriesViewModel> _assetsEquipmentSeriesViews; |
| | | |
| | | //åå§å |
| | | private async void AddAssetsEquipmentSeriesDlg_Load(object sender, EventArgs e) |
| | | { |
| | | _assetsEquipmentSeriesViews = new List<AssetsKitSeriesViewModel>(); |
| | | var allList = await new BLL.AssetsKitSeries().GetAll(); |
| | | _assetsEquipmentSeriesViews = new List<AssetsPackageSeriesViewModel>(); |
| | | var allList = await new BLL.AssetsPackageSeries().GetAll(); |
| | | if (allList != null) |
| | | { |
| | | foreach (var item in allList) |
| | | { |
| | | _assetsEquipmentSeriesViews.Add(new AssetsKitSeriesViewModel(item)); |
| | | _assetsEquipmentSeriesViews.Add(new AssetsPackageSeriesViewModel(item)); |
| | | } |
| | | } |
| | | treeListLookUpEdit1TreeList.DataSource = _assetsEquipmentSeriesViews; |