ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Assets.Core/08-Nozzle/02-main/NozzleManageMainPanel.cs ÐÞ¸Ä |
| | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | | public partial class NozzleManageMainPanel : DocumentPage |
| | | public partial class NozzleManageMainPage : DocumentPage |
| | | { |
| | | public NozzleManageMainPanel() |
| | | public NozzleManageMainPage() |
| | | { |
| | | InitializeComponent(); |
| | | this.PageTitle.Caption = "å·å¤´ç®¡ç"; |
| | |
| | | this.nozzleTreeListCtrl1.ReloadEvent += NozzleTreeListCtrl1_ReloadEvent; |
| | | } |
| | | |
| | | private BLL.NozzleMain _bll = null; |
| | | private BLL.AssetsNozzleMain _bll = null; |
| | | |
| | | private List<NozzleViewModel> _allBindingList = new List<NozzleViewModel>(); |
| | | |
| | | //åå§åæ°æ® |
| | | public override void InitialDataSource() |
| | | { |
| | | _bll = new BLL.NozzleMain(); |
| | | _bll = new BLL.AssetsNozzleMain(); |
| | | this.nozzleTreeListCtrl1.SetBindingData(); |
| | | this.nozzleViewModelBindingSource.DataSource = _allBindingList; |
| | | this.nozzleViewModelBindingSource.ResetBindings(false); |
| | |
| | | //æ·»å 管é |
| | | private void BtnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var dlg = new AddNozzleMainDlg(); |
| | | var dlg = new AddAssetsNozzleMainDlg(); |
| | | var series = this.nozzleTreeListCtrl1.GetCurrentSeries(); |
| | | if (series == null) |
| | | { |
| | |
| | | MessageBoxHelper.ShowWarning("è¯·éæ©æ°æ®è¡!"); |
| | | return; |
| | | } |
| | | var dlg = new EditNozzleMainDlg(); |
| | | var dlg = new EditAssetsNozzleMainDlg(); |
| | | var Nozzle = await _bll.GetByID(vm.ID); |
| | | if (Nozzle == null) |
| | | return; |