| | |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraCharts; |
| | | using DevExpress.XtraEditors; |
| | | using HStation.Vmo; |
| | | using Yw; |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.phartDiagramRelationListCtrl1.SelectedChangedEvent += PhartDiagramRelationListCtrl1_SelectedChangedEvent; |
| | | this.pumpChartViewCtrl1.DataChangedEvent += PumpChartViewCtrl1_DataChangedEvent; |
| | | } |
| | | |
| | | private AssetsPumpMainVmo _vmo; |
| | |
| | | .GetByObjectTypeAndObjectID(HStation.Assets.DataType.PumpMain, vmo.ID); |
| | | allList?.ForEach(x => _allBindingList.Add(x)); |
| | | this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList); |
| | | } |
| | | |
| | | private async void PumpChartViewCtrl1_DataChangedEvent(Yw.Vmo.PhartDiagramExGraphListVmo vmo) |
| | | { |
| | | var bol = await BLLFactory<Yw.BLL.PhartDiagramExtensions>.Instance.Update(vmo); |
| | | if (!bol) |
| | | { |
| | | TipFormHelper.ShowError("更新失败!"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | TipFormHelper.ShowSucceed("更新成功!"); |
| | | } |
| | | } |
| | | |
| | | //选择改变 |
| | |
| | | var bol = await BLLFactory<HStation.BLL.PhartDiagramRelation>.Instance.Update(_relation); |
| | | if (bol) |
| | | { |
| | | this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList); |
| | | return true; |
| | | this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList); |
| | | return true; |
| | | } |
| | | return false; |
| | | }; |
| | |
| | | var bol = await BLLFactory<HStation.BLL.PhartDiagramRelation>.Instance.Update(_relation); |
| | | if (bol) |
| | | { |
| | | this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList); |
| | | return true; |
| | | this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList); |
| | | return true; |
| | | } |
| | | return false; |
| | | }; |
| | | dlg.ShowDialog(); |
| | | |
| | | } |
| | | |
| | | //删除 |