| | |
| | | this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList); |
| | | } |
| | | |
| | | private async Task<bool> PumpChartViewCtrl1_DataChangedEvent(Yw.Vmo.PhartDiagramExGraphListVmo vmo) |
| | | { |
| | | var bol = await BLLFactory<Yw.BLL.PhartDiagramExtensions>.Instance.Update(vmo); |
| | | if (!bol) |
| | | { |
| | | TipFormHelper.ShowError("更新失败!"); |
| | | } |
| | | else |
| | | { |
| | | TipFormHelper.ShowSucceed("更新成功!"); |
| | | } |
| | | return bol; |
| | | } |
| | | |
| | | //选择改变 |
| | | private void PhartDiagramRelationListCtrl1_SelectedChangedEvent(PhartDiagramRelationVmo obj) |
| | | { |
| | |
| | | //别名 |
| | | private void barBtnOtherName_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_relation == null) |
| | | return; |
| | | var dlg = new SetPumpOtherNameDlg(); |
| | | dlg.SetBindingData(_relation.OtherName); |
| | | dlg.VerifyValueChanged += async (name) => |
| | |
| | | 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; |
| | | }; |
| | |
| | | //重要度 |
| | | private void barBtnUpdateimportance_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_relation == null) |
| | | return; |
| | | var dlg = new SetPumpImportanceDlg(); |
| | | dlg.SetBindingData(_relation.Importance); |
| | | dlg.VerifyValueChanged += async (Importance) => |
| | |
| | | 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(); |
| | | |
| | | } |
| | | |
| | | //删除 |
| | |
| | | return; |
| | | } |
| | | _allBindingList.Remove(vm); |
| | | this.pumpChartViewCtrl1.ClearBindingData(); |
| | | this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList); |
| | | TipFormHelper.ShowSucceed("删除成功!"); |
| | | } |